/* ESDE 15.10.203 — Marvin Round webfont and heading consistency. */
@font-face {
  font-family: "Marvin";
  src: url("../fonts/marvin-round.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ed3-font-display: "Marvin", "Marvin Round", "Marvin Visions", sans-serif;
}

/* Institutional headings inside ESDE. UI controls and body text remain Poppins. */
.ed3-shell :is(h1, h2, h3, .ed3-brand-title, .ed3-marvin, .ed3-display),
.ed3-profile :is(h1, h2, h3, .ed3-brand-title, .ed3-marvin, .ed3-display),
.ed3-login :is(h1, h2, h3, .ed3-brand-title, .ed3-marvin, .ed3-display),
.ed3-route-shell :is(h1, h2, h3, .ed3-brand-title, .ed3-marvin, .ed3-display),
.ed3-single-page :is(h1, h2, h3, .ed3-brand-title, .ed3-marvin, .ed3-display) {
  font-family: "Marvin", "Marvin Round", "Marvin Visions", sans-serif !important;
}

/* Elementor heading widgets on public site pages. */
body.elementor-page .elementor-widget-heading .elementor-heading-title,
body.elementor-page .elementor-widget-heading .elementor-heading-title a {
  font-family: "Marvin", "Marvin Round", "Marvin Visions", sans-serif !important;
}

/* Prevent font loading from causing horizontal overflow on narrow Android screens. */
body.elementor-page .elementor-widget-heading .elementor-heading-title,
.ed3-shell :is(h1, h2, h3),
.ed3-profile :is(h1, h2, h3) {
  max-width: 100%;
  overflow-wrap: break-word;
}
