/*
  My Health 360 theme styles. Built on tokens.css (loaded first): no hard-coded colors or fonts here.

  Scope: everything is under .mh (the new header and footer, and later the coded templates),
  so pages still built in Elementor keep their own look. Selectors use at least two classes so
  they win over the Elementor kit (.elementor-kit-18284 a / h2 / button) and Astra's element rules.

  Sections
  1. Fonts (self-hosted, font-display: swap)
  2. Base: reset, typography, container, buttons, section spacing (scoped to .mh)
  3. Header (top bar, main row, menu, mobile menu)
  4. Footer
*/

/* 1. Fonts ------------------------------------------------------------------------------------ */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-wght.woff2") format("woff2-variations"), url("../fonts/outfit-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Base (scoped) ----------------------------------------------------------------------------- */

.mh {
  --mh-focus: var(--mh-gold-hover);
  font-family: var(--mh-font-body);
  font-size: var(--mh-text);
  line-height: var(--mh-leading);
  color: var(--mh-paper);
  background: var(--mh-ink);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.mh,
.mh *,
.mh *::before,
.mh *::after {
  box-sizing: border-box;
}

/* Reset the element rules Astra and the Elementor kit apply site-wide. */
.mh h1, .mh h2, .mh h3, .mh h4, .mh h5, .mh h6,
.mh p, .mh ul, .mh ol, .mh li, .mh figure, .mh address, .mh blockquote {
  margin: 0;
  padding: 0;
  color: inherit;
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
}
.mh ul,
.mh ol {
  list-style: none;
}
.mh img,
.mh svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.mh a {
  color: var(--mh-gold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.mh a:hover {
  color: var(--mh-gold-hover);
}
.mh a:focus-visible,
.mh button:focus-visible {
  outline: 3px solid var(--mh-focus);
  outline-offset: 3px;
  box-shadow: none;
}

/* Typography */
.mh .mh-eyebrow {
  font: var(--mh-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mh-gold);
}
.mh .mh-h1,
.mh h1.mh-title {
  font: var(--mh-h1);
  letter-spacing: -0.03em;
}
.mh .mh-h2 {
  font: var(--mh-h2);
  letter-spacing: -0.02em;
}
.mh .mh-h3 {
  font: var(--mh-h3);
}
.mh .mh-lead {
  font-size: var(--mh-text-lead);
  color: var(--mh-mist);
}
.mh .mh-small {
  font-size: var(--mh-text-small);
}
.mh .mh-fine {
  font-size: var(--mh-text-fine);
  color: var(--mh-mist);
}

/* One gap from a section heading (or its intro) to the section's content (polish, Nov 24). */
.mh {
  --mh-head-gap: 32px;
}
@media (min-width: 700px) {
  .mh {
    --mh-head-gap: 40px;
  }
}

/* Container: content never grows past --mh-container, even on ultrawide screens. */
.mh .mh-container {
  width: 100%;
  max-width: calc(var(--mh-container) + 2 * var(--mh-gutter));
  margin-inline: auto;
  padding-inline: var(--mh-gutter);
}
.mh .mh-container--narrow {
  max-width: calc(var(--mh-container-narrow) + 2 * var(--mh-gutter));
}

/* Sections */
.mh .mh-section {
  padding-block: var(--mh-section);
}
.mh .mh-section--teal {
  background: var(--mh-teal);
}
.mh .mh-section--light {
  --mh-focus: var(--mh-ink);
  background: var(--mh-paper);
  color: var(--mh-ink);
}
.mh .mh-section--light .mh-lead,
.mh .mh-section--light .mh-fine {
  color: var(--mh-slate);
}
.mh .mh-section--light a:not(.mh-btn) {
  color: var(--mh-ink);
}

/* Buttons: square, gold primary, gold outline secondary, at least 44px tall. */
.mh .mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 44px;
  padding: var(--mh-btn-pad);
  border: 1.5px solid var(--mh-gold);
  border-radius: var(--mh-radius);
  font-family: var(--mh-font-body);
  font-size: var(--mh-text-small);
  font-weight: var(--mh-btn-weight);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mh .mh-btn--primary {
  background: var(--mh-gold);
  color: var(--mh-ink);
}
.mh .mh-btn--primary:hover {
  background: var(--mh-gold-hover);
  border-color: var(--mh-gold-hover);
  color: var(--mh-ink);
}
.mh .mh-btn--secondary {
  background: transparent;
  color: var(--mh-gold);
}
.mh .mh-btn--secondary:hover {
  border-color: var(--mh-gold-hover);
  color: var(--mh-gold-hover);
}
.mh .mh-section--light .mh-btn--secondary {
  border-color: var(--mh-ink);
  color: var(--mh-ink);
}

/* Visually hidden, still read by screen readers. */
.mh .mh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 699px) {
  .mh {
    --mh-gutter: 18px;
    --mh-section: 64px;
  }
}

/* 3. Header -------------------------------------------------------------------------------------- */

.mh-site-header.mh {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--mh-line);
}
.mh-site-header .mh-container {
  max-width: calc(1360px + 2 * var(--mh-gutter));
}

/* Top bar */
.mh-site-header .mh-topbar {
  border-bottom: 1px solid var(--mh-line);
  font-size: var(--mh-text-fine);
  line-height: 1.3;
}
.mh-site-header .mh-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
}
.mh-site-header .mh-topbar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 22px;
}
.mh-site-header .mh-topbar__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mh-paper);
  text-decoration: none;
}
.mh-site-header .mh-topbar__link:hover {
  color: var(--mh-gold-hover);
  text-decoration: underline;
}
.mh-site-header .mh-topbar__utility .mh-topbar__link {
  color: var(--mh-mist);
}
.mh-site-header .mh-topbar__utility .mh-topbar__link:hover {
  color: var(--mh-gold-hover);
}

/* Main row: logo, menu, actions */
.mh-site-header .mh-header__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 28px;
  padding-block: 10px;
}
.mh-site-header .mh-header__logo {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}
.mh-site-header .mh-header__logo-img {
  width: auto;
  height: 56px;
}
.mh-site-header .mh-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mh-site-header .mh-header__call {
  min-height: 48px;
  padding: 12px 18px;
}

/* Menu button (mobile and tablet) */
.mh-site-header .mh-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--mh-line);
  border-radius: var(--mh-radius);
  background: transparent;
  color: var(--mh-paper);
  font-family: var(--mh-font-body);
  font-size: var(--mh-text-small);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}
.mh-site-header .mh-menu-btn:hover,
.mh-site-header .mh-menu-btn:focus {
  border-color: var(--mh-gold);
  background: transparent;
  color: var(--mh-paper);
}
.mh-site-header .mh-menu-btn__icon,
.mh-site-header .mh-menu-btn__icon::before,
.mh-site-header .mh-menu-btn__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.mh-site-header .mh-menu-btn__icon {
  position: relative;
}
.mh-site-header .mh-menu-btn__icon::before,
.mh-site-header .mh-menu-btn__icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.mh-site-header .mh-menu-btn__icon::before {
  top: -6px;
}
.mh-site-header .mh-menu-btn__icon::after {
  top: 6px;
}
.mh-site-header .mh-menu-btn[aria-expanded="true"] .mh-menu-btn__icon {
  background: transparent;
}
.mh-site-header .mh-menu-btn[aria-expanded="true"] .mh-menu-btn__icon::before {
  transform: translateY(6px) rotate(45deg);
}
.mh-site-header .mh-menu-btn[aria-expanded="true"] .mh-menu-btn__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Menu: mobile and tablet layout (a panel under the header row) */
.mh-site-header .mh-nav {
  order: 3;
  flex: 1 0 100%;
}
.mh-js .mh-site-header .mh-nav {
  display: none;
}
.mh-js .mh-site-header .mh-nav.is-open {
  display: block;
}
.mh-site-header .mh-nav__list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  border-top: 1px solid var(--mh-line);
}
.mh-site-header .mh-nav__item {
  border-bottom: 1px solid var(--mh-line);
}
.mh-site-header .mh-nav__sub .mh-nav__item {
  border-bottom: 0;
}
.mh-site-header .mh-nav__link,
.mh-site-header .mh-nav__toggle,
.mh-site-header .mh-nav__sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mh-paper);
  font-family: var(--mh-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}
.mh-site-header .mh-nav__sublink {
  padding-left: 18px;
  color: var(--mh-mist);
  font-size: 15px;
}
.mh-site-header .mh-nav__link:hover,
.mh-site-header .mh-nav__sublink:hover,
.mh-site-header .mh-nav__toggle:hover,
.mh-site-header .mh-nav__toggle:focus {
  background: transparent;
  color: var(--mh-gold-hover);
}
.mh-site-header .mh-nav__link[aria-current="page"],
.mh-site-header .mh-nav__sublink[aria-current="page"] {
  color: var(--mh-gold);
}
.mh-site-header .mh-nav__caret {
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}
.mh-site-header .mh-nav__toggle[aria-expanded="true"] .mh-nav__caret {
  transform: translateY(2px) rotate(-135deg);
}
.mh-site-header .mh-nav__sub {
  padding-bottom: 8px;
}
.mh-js .mh-site-header .mh-nav__toggle[aria-expanded="false"] + .mh-nav__sub {
  display: none;
}

/* WordPress menus assigned to the location (Appearance > Menus) use WP's own classes. */
.mh-site-header .mh-nav__list > li > a,
.mh-site-header .mh-nav__list .sub-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--mh-paper);
  text-decoration: none;
}

@media (min-width: 480px) {
  .mh-site-header .mh-header__logo-img {
    height: 64px;
  }
}
@media (max-width: 479px) {
  .mh-site-header .mh-header__call-number {
    display: none;
  }
  .mh-site-header .mh-header__main {
    column-gap: 12px;
  }
  .mh-site-header .mh-header__actions {
    gap: 8px;
  }
  .mh-site-header .mh-header__call {
    padding: 12px 16px;
  }
  .mh-site-header .mh-menu-btn {
    padding: 10px 12px;
  }
}
@media (max-width: 699px) {
  /* The header row's Call button drops its number under 480 px, so the top bar keeps "Call 716-407-3250". */
  .mh-site-header .mh-topbar__list {
    column-gap: 16px;
  }
}

/* Menu: desktop layout */
@media (min-width: 1240px) {
  .mh-site-header .mh-header__logo-img {
    height: 72px;
  }
  .mh-site-header .mh-menu-btn {
    display: none;
  }
  .mh-site-header .mh-nav,
  .mh-js .mh-site-header .mh-nav {
    display: block;
    order: 0;
    flex: 0 1 auto;
  }
  .mh-site-header .mh-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 22px;
    margin-top: 0;
    border-top: 0;
  }
  .mh-site-header .mh-nav__item {
    position: relative;
    border-bottom: 0;
  }
  .mh-site-header .mh-nav__link,
  .mh-site-header .mh-nav__toggle {
    width: auto;
    min-height: 44px;
    padding: 12px 0;
    font-size: var(--mh-text-small);
  }
  .mh-site-header .mh-nav__list > li > a {
    min-height: 44px;
    font-size: var(--mh-text-small);
  }
  .mh-site-header .mh-nav__sub,
  .mh-site-header .mh-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    z-index: 60;
    min-width: 250px;
    padding: 8px 20px;
    background: var(--mh-teal);
    border: 1px solid var(--mh-line);
  }
  /* Opens on hover, on keyboard focus, or when the toggle button is pressed. */
  .mh-js .mh-site-header .mh-nav__toggle[aria-expanded="false"] + .mh-nav__sub {
    display: none;
  }
  .mh-js .mh-site-header .mh-nav__item--parent:hover > .mh-nav__sub,
  .mh-js .mh-site-header .mh-nav__item--parent:focus-within > .mh-nav__sub {
    display: block;
  }
  .mh-site-header .mh-nav__sublink {
    min-height: 44px;
    padding-left: 0;
    color: var(--mh-paper);
  }
  .mh-site-header .mh-header__call {
    padding: 14px 24px;
  }
}

/* 4. Footer -------------------------------------------------------------------------------------- */

.mh-site-footer.mh {
  border-top: 1px solid var(--mh-line);
  padding-top: 64px;
  font-size: var(--mh-text-small);
}
.mh-site-footer .mh-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.mh-site-footer .mh-footer__logo {
  display: inline-block;
  text-decoration: none;
}
.mh-site-footer .mh-footer__logo-img {
  width: auto;
  height: 64px;
}
.mh-site-footer .mh-footer__name-line {
  margin-top: 18px;
  font-family: var(--mh-font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.mh-site-footer .mh-footer__tagline {
  margin-top: 6px;
  color: var(--mh-gold);
  font-weight: 600;
}
.mh-site-footer .mh-footer__positioning {
  margin-top: 6px;
  color: var(--mh-mist);
  max-width: 380px;
}
.mh-site-footer .mh-footer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.mh-site-footer .mh-footer__cta .mh-btn {
  padding: 14px 20px;
}
.mh-site-footer .mh-footer__title {
  margin-bottom: 12px;
  font: var(--mh-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mh-gold);
}
.mh-site-footer .mh-footer__address,
.mh-site-footer .mh-footer__text {
  color: var(--mh-mist);
}
.mh-site-footer .mh-footer__text + .mh-footer__text,
.mh-site-footer .mh-footer__address + .mh-footer__text {
  margin-top: 10px;
}
.mh-site-footer .mh-footer__label {
  color: var(--mh-paper);
  font-weight: 600;
}
.mh-site-footer .mh-footer__link {
  display: inline-block;
  padding-block: 11px;
  line-height: 22px;
  color: var(--mh-paper);
  text-decoration: none;
}
.mh-site-footer .mh-footer__address .mh-footer__link {
  padding-block: 4px;
  line-height: inherit;
  color: var(--mh-mist);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.mh-site-footer .mh-footer__link:hover,
.mh-site-footer .mh-footer__address .mh-footer__link:hover {
  color: var(--mh-gold-hover);
  text-decoration: underline;
}
.mh-site-footer .mh-footer__list li.mh-footer__text {
  margin: 0;
  padding-block: 11px;
  line-height: 22px;
}
.mh-site-footer .mh-footer__social {
  margin-top: 8px;
}
.mh-site-footer .mh-footer__list--links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}
.mh-site-footer .mh-footer__treatments {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--mh-line);
}
.mh-site-footer .mh-footer__treatments .mh-footer__title {
  margin-bottom: 2px;
}
.mh-site-footer .mh-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 28px;
  margin-top: 24px;
  padding-block: 14px 18px;
  border-top: 1px solid var(--mh-line);
}
.mh-site-footer .mh-footer__fine {
  color: var(--mh-mist);
  font-size: var(--mh-text-fine);
}
.mh-site-footer .mh-footer__inline {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  font-size: var(--mh-text-fine);
}
.mh-site-footer .mh-footer__inline .mh-footer__link {
  color: var(--mh-mist);
}
.mh-site-footer .mh-footer__inline .mh-footer__link:hover {
  color: var(--mh-gold-hover);
}

@media (min-width: 700px) {
  .mh-site-footer .mh-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}
@media (min-width: 1100px) {
  .mh-site-footer .mh-footer__grid {
    grid-template-columns: 1.3fr 1fr 1.15fr 1.45fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh *,
  .mh *::before,
  .mh *::after {
    transition: none !important;
  }
}

/* Footer disclaimer (decisions.md, Nov 21): its own line of small print, above the legal links. */
.mh-site-footer .mh-footer__disclaimer {
  flex: 1 0 100%;
  color: var(--mh-paper);
}

/* 5. Coded templates (Prompt 3: Home, Pathway, Standard) ---------------------------------------- */

/* Document: no Astra or Elementor CSS loads on these pages. */
body.mh-coded {
  margin: 0;
  background: var(--mh-ink);
  color: var(--mh-paper);
  font-family: var(--mh-font-body);
}
.mh-coded .mh-main {
  display: block;
  overflow-x: clip;
}
.mh-coded .mh-main:focus {
  outline: none;
}

/* Skip link: hidden until focused. */
.mh-skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 18px;
  background: var(--mh-gold);
  color: var(--mh-ink);
  font: 600 var(--mh-text-small)/1.2 var(--mh-font-body);
  text-decoration: none;
}
.mh-skip-link:focus {
  top: 12px;
  outline: 3px solid var(--mh-gold-hover);
  outline-offset: 2px;
}

/* Placeholders waiting on Dr. Fatima (CLAUDE.md rule 5): impossible to miss. */
.mh .mh-ph {
  padding: 0.05em 0.3em;
  background: var(--mh-gold);
  color: var(--mh-ink);
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  outline: 2px dashed var(--mh-ink);
  outline-offset: -2px;
}

/* Text links */
.mh .mh-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.mh .mh-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  margin-top: 20px;
}
.mh .mh-links--inline {
  margin-top: 0;
}
.mh .mh-accent {
  color: var(--mh-gold);
}

/* Hero (all templates) */
.mh .mh-hero {
  padding-block: 40px 64px;
}
.mh .mh-hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.mh .mh-hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.mh .mh-hero__text--wide {
  max-width: 920px;
  margin-top: 8px;
}
.mh .mh-hero__title {
  overflow-wrap: break-word;
}
.mh .mh-hero__answer {
  max-width: 640px;
}
.mh .mh-hero__persona {
  font-family: var(--mh-font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--mh-gold);
}
.mh .mh-hero__label {
  font-family: var(--mh-font-display);
  font-size: 20px;
  color: var(--mh-gold);
}
.mh .mh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.mh .mh-hero__media {
  min-width: 0;
}
.mh .mh-hero__img {
  width: 100%;
  height: auto;
}
.mh .mh-hero--home .mh-hero__title {
  font: var(--mh-h2);
  letter-spacing: -0.02em;
}

/* Pathway hero colors: the pathway panel color (teal, gold, paper). */
.mh .mh-hero--teal {
  background: var(--mh-teal);
}
.mh .mh-hero--gold {
  --mh-focus: var(--mh-ink);
  background: var(--mh-gold);
  color: var(--mh-ink);
}
.mh .mh-hero--paper {
  --mh-focus: var(--mh-ink);
  background: var(--mh-paper);
  color: var(--mh-ink);
}
.mh .mh-hero--gold .mh-hero__label,
.mh .mh-hero--paper .mh-hero__label {
  color: var(--mh-ink);
}
.mh .mh-hero--gold .mh-lead {
  color: var(--mh-ink);
}
.mh .mh-hero--paper .mh-lead {
  color: var(--mh-slate);
}
.mh .mh-hero--gold a:not(.mh-btn),
.mh .mh-hero--paper a:not(.mh-btn) {
  color: var(--mh-ink);
}
.mh .mh-hero--gold .mh-btn--primary,
.mh .mh-hero--paper .mh-btn--primary {
  background: var(--mh-ink);
  border-color: var(--mh-ink);
  color: var(--mh-paper);
}
.mh .mh-hero--gold .mh-btn--primary:hover,
.mh .mh-hero--paper .mh-btn--primary:hover {
  background: var(--mh-teal);
  border-color: var(--mh-teal);
  color: var(--mh-paper);
}
.mh .mh-hero--gold .mh-btn--secondary,
.mh .mh-hero--paper .mh-btn--secondary {
  border-color: var(--mh-ink);
  color: var(--mh-ink);
}
.mh .mh-hero--gold .mh-btn--secondary:hover,
.mh .mh-hero--paper .mh-btn--secondary:hover {
  background: var(--mh-ink);
  color: var(--mh-paper);
}

/* Breadcrumb */
.mh .mh-breadcrumb {
  margin-bottom: 20px;
  font-size: var(--mh-text-fine);
}
.mh .mh-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.mh .mh-breadcrumb__item {
  display: inline-flex;
  align-items: center;
}
.mh .mh-breadcrumb__item + .mh-breadcrumb__item::before {
  content: "/";
  margin-inline: 10px;
  opacity: 0.7;
}
.mh .mh-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}
.mh .mh-hero--teal .mh-breadcrumb,
.mh .mh-hero--standard .mh-breadcrumb {
  color: var(--mh-mist);
}

/* Photos: placeholders keep the photo size so nothing shifts when it arrives. */
.mh .mh-photo {
  display: block;
  width: 100%;
  height: auto;
}
.mh .mh-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--mh-teal);
  border: 1px solid var(--mh-line);
  color: var(--mh-mist);
  font-size: var(--mh-text-small);
  text-align: center;
}
.mh .mh-hero--teal .mh-photo--placeholder,
.mh .mh-section--teal .mh-photo--placeholder {
  background: var(--mh-ink);
}

/* Blocks */
.mh .mh-block__title {
  max-width: 900px;
}
.mh .mh-block__intro {
  max-width: 720px;
  margin-top: 16px;
}
.mh .mh-block__note {
  max-width: 760px;
  margin-top: 32px;
  color: var(--mh-mist);
}
.mh .mh-section--light .mh-block__note {
  color: var(--mh-slate);
}
.mh .mh-eyebrow + .mh-block__title {
  margin-top: 14px;
}
.mh .mh-block + .mh-block:not(.mh-section--teal):not(.mh-section--light):not(.mh-block--cta) {
  border-top: 1px solid var(--mh-line);
}
.mh .mh-section--teal + .mh-block,
.mh .mh-section--light + .mh-block {
  border-top: 0;
}

/* Split: heading on the left, text on the right (one column on phones). */
.mh .mh-split {
  display: grid;
  gap: 20px 72px;
}
.mh .mh-split__head .mh-block__title {
  font: 600 clamp(30px, 3.2vw, 44px)/1.08 var(--mh-font-display);
  letter-spacing: -0.02em;
}
.mh .mh-prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  font-size: 18px;
}
.mh .mh-ticks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mh .mh-ticks li {
  position: relative;
  padding-left: 22px;
}
.mh .mh-ticks li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--mh-gold);
}
.mh .mh-section--light .mh-ticks li::before {
  background: var(--mh-ink);
}

/* Cards */
.mh .mh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  margin-top: var(--mh-head-gap);
  background: var(--mh-line);
  border: 1px solid var(--mh-line);
}
.mh .mh-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px 30px;
  background: var(--mh-ink);
}
.mh .mh-section--teal .mh-card {
  background: var(--mh-teal);
}
.mh .mh-card__text,
.mh .mh-card__list {
  color: var(--mh-mist);
}
.mh .mh-card__link {
  margin-top: auto;
}

/* Patient lines */
.mh .mh-lines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: var(--mh-head-gap);
}
.mh .mh-lines__item {
  padding: 22px 24px;
  border-left: 3px solid var(--mh-gold);
  background: var(--mh-teal);
  font-family: var(--mh-font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
}

/* Steps */
.mh .mh-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 28px;
  margin-top: var(--mh-head-gap);
}
.mh .mh-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 2px solid var(--mh-gold);
}
.mh .mh-step__num {
  font: 600 15px/1 var(--mh-font-display);
  color: var(--mh-gold);
  letter-spacing: 0.1em;
}
.mh .mh-step__text {
  color: var(--mh-mist);
}

/* Treatment lists */
.mh .mh-treatments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0 32px;
  margin-top: var(--mh-head-gap);
}
.mh .mh-treatments__item {
  border-bottom: 1px solid var(--mh-line);
}
.mh .mh-treatments__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding-block: 12px;
  color: var(--mh-paper);
  font-family: var(--mh-font-display);
  font-size: 20px;
  text-decoration: none;
}
.mh .mh-treatments__link span {
  color: var(--mh-gold);
}
.mh .mh-treatments__link:hover {
  color: var(--mh-gold-hover);
}

/* Doors: Design 1 three panels. Capped width so they never stretch on ultrawide screens. */
.mh .mh-doors {
  padding-top: var(--mh-section);
}
.mh .mh-doors__head {
  margin-bottom: var(--mh-head-gap);
}
.mh .mh-doors__list {
  display: flex;
  flex-wrap: wrap;
  max-width: 1680px;
  margin-inline: auto;
}
.mh .mh-doors__item {
  flex: 1 1 340px;
  display: flex;
}
.mh .mh-door {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  min-height: 320px;
  padding: 36px 28px;
  text-decoration: none;
}
.mh .mh-door__label {
  font-family: var(--mh-font-display);
  font-size: 20px;
}
.mh .mh-door__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mh .mh-door__word {
  font: 700 clamp(44px, 4vw, 68px)/0.95 var(--mh-font-display);
  letter-spacing: -0.03em;
}
.mh .mh-door__sentence {
  max-width: 360px;
}
.mh .mh-door__line {
  font-weight: 600;
}
.mh .mh-door--teal {
  background: var(--mh-teal);
  color: var(--mh-paper);
}
.mh .mh-door--teal .mh-door__label,
.mh .mh-door--teal .mh-door__line {
  color: var(--mh-gold);
}
.mh .mh-door--teal .mh-door__sentence {
  color: var(--mh-mist);
}
.mh .mh-door--gold {
  --mh-focus: var(--mh-ink);
  background: var(--mh-gold);
  color: var(--mh-ink);
}
.mh .mh-door--paper {
  --mh-focus: var(--mh-ink);
  background: var(--mh-paper);
  color: var(--mh-ink);
}
.mh .mh-door--paper .mh-door__label {
  color: var(--mh-teal);
}
.mh .mh-door--paper .mh-door__sentence {
  color: var(--mh-slate);
}
.mh a.mh-door:hover .mh-door__word {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
}
.mh a.mh-door:focus-visible {
  outline-offset: -6px;
}
.mh a.mh-door--teal:hover {
  color: var(--mh-paper);
}
.mh a.mh-door--gold:hover,
.mh a.mh-door--paper:hover {
  color: var(--mh-ink);
}

/* Featured treatments strip */
.mh .mh-strip {
  padding-block: 30px;
  border-top: 1px solid var(--mh-line);
  border-bottom: 1px solid var(--mh-line);
}
.mh .mh-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 36px;
}
.mh .mh-strip__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mh-paper);
  font-family: var(--mh-font-display);
  font-size: 20px;
  text-decoration: none;
}
.mh .mh-strip__link:hover {
  color: var(--mh-gold-hover);
  text-decoration: underline;
}
.mh .mh-strip__link--strong {
  color: var(--mh-gold);
  font-weight: 600;
}
.mh .mh-strip__note {
  margin-top: 12px;
  font-size: var(--mh-text-fine);
  text-align: center;
}

/* Physician */
.mh .mh-physician {
  display: grid;
  gap: 40px 72px;
  align-items: center;
}
.mh .mh-physician__photo {
  max-width: 420px;
}
.mh .mh-physician__img {
  width: 100%;
  height: auto;
}
.mh .mh-physician__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.mh .mh-physician__body .mh-lead {
  max-width: 560px;
}
.mh .mh-physician__id {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mh .mh-physician__name {
  font-weight: 600;
}
.mh .mh-physician__bio,
.mh .mh-physician__creds {
  color: var(--mh-mist);
  font-size: var(--mh-text-small);
  max-width: 560px;
}
.mh .mh-physician__creds {
  margin-top: 4px;
}
.mh .mh-physician .mh-links {
  margin-top: 0;
}

/* Statements: philosophy, vision, mission */
.mh .mh-statements {
  display: grid;
  gap: 36px;
  margin: 0;
}
.mh .mh-statement {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mh .mh-statement__text {
  margin: 0;
  font: 500 clamp(22px, 2vw, 28px)/1.3 var(--mh-font-display);
}

/* Medically reviewed line */
.mh .mh-reviewed {
  padding-block: 24px;
}

/* FAQ: native details/summary */
.mh .mh-faq {
  margin-top: var(--mh-head-gap);
  border-top: 1px solid var(--mh-line);
}
.mh .mh-faq__item {
  border-bottom: 1px solid var(--mh-line);
}
.mh .mh-faq__q {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 16px 44px 16px 0;
  font-family: var(--mh-font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.mh .mh-faq__q::-webkit-details-marker {
  display: none;
}
.mh .mh-faq__q::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--mh-gold);
  border-bottom: 2px solid var(--mh-gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.mh .mh-faq__item[open] > .mh-faq__q::after {
  transform: translateY(-30%) rotate(-135deg);
}
.mh .mh-faq__q:hover {
  color: var(--mh-gold-hover);
}
.mh .mh-faq__q:focus-visible {
  outline: 3px solid var(--mh-focus);
  outline-offset: 3px;
}
.mh .mh-faq__a {
  padding-bottom: 22px;
  color: var(--mh-mist);
  max-width: 760px;
}

/* Closing call to action */
.mh .mh-block--cta {
  background: var(--mh-teal);
  text-align: center;
}
.mh .mh-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mh .mh-cta__title {
  font: 600 clamp(30px, 3.6vw, 48px)/1.1 var(--mh-font-display);
  letter-spacing: -0.02em;
}
.mh .mh-cta__text {
  max-width: 680px;
}
.mh .mh-cta__links {
  justify-content: center;
  margin-top: 0;
}
.mh .mh-cta__fine {
  max-width: 680px;
}

/* Light sections */
.mh .mh-section--light .mh-prose,
.mh .mh-section--light .mh-ticks {
  color: var(--mh-ink);
}

/* Wider screens */
@media (min-width: 700px) {
  .mh .mh-door {
    min-height: 520px;
    padding: 44px 36px;
  }
  .mh .mh-hero {
    padding-block: 56px 88px;
  }
}
@media (min-width: 1000px) {
  .mh .mh-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px;
  }
  .mh .mh-hero--nophoto .mh-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mh .mh-hero--nophoto .mh-hero__text {
    max-width: 920px;
  }
  .mh .mh-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .mh .mh-physician {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  }
  .mh .mh-statements {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
  .mh .mh-door {
    min-height: 620px;
  }
}
@media (max-width: 699px) {
  .mh .mh-hero__title {
    font-size: clamp(36px, 10vw, 44px);
  }
  .mh .mh-hero--home .mh-hero__title {
    font-size: clamp(34px, 9.5vw, 42px);
  }
  .mh .mh-hero__actions .mh-btn {
    flex: 1 1 auto;
  }
}

/* 6. Service template (Prompt 4) -------------------------------------------------------------------
 * Design language of design/elite-surgical-landing.html: dark ground, eyebrow, very large headline
 * with a gold second line, three-panel band, numbered rows, light FAQ, gold calls to action, square corners.
 * ---------------------------------------------------------------------------------------------------- */

/* Hero */
.mh .mh-hero--service {
  background: var(--mh-ink);
}
.mh .mh-hero__accent {
  display: block;
}
.mh .mh-hero__media--service {
  display: flex;
  justify-content: center;
}
/* Treatment photos on the old pages are portrait (about 406 x 637): never upscaled, never taller than the screen. */
.mh .mh-hero__media--service .mh-hero__img {
  width: auto;
  max-width: 100%;
  max-height: min(640px, 70vh);
}

/* 2. Three-panel band: "Is this for you?" */
.mh .mh-panels {
  padding-top: var(--mh-section);
}
.mh .mh-panels__head {
  margin-bottom: var(--mh-head-gap);
}
.mh .mh-panels__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  max-width: 1680px;
  margin-inline: auto;
}
.mh .mh-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 260px;
  padding: 32px var(--mh-gutter) 36px;
}
.mh .mh-panel--teal {
  background: var(--mh-teal);
}
.mh .mh-panel--gold {
  background: var(--mh-gold);
  color: var(--mh-ink);
}
.mh .mh-panel--paper {
  background: var(--mh-paper);
  color: var(--mh-ink);
}
.mh .mh-panel__num {
  font: 500 20px/1 var(--mh-font-display);
  color: var(--mh-gold);
}
.mh .mh-panel--gold .mh-panel__num {
  color: var(--mh-ink);
}
.mh .mh-panel--paper .mh-panel__num {
  color: var(--mh-teal);
}
.mh .mh-panel__text {
  font: 600 clamp(26px, 2.4vw, 36px)/1.12 var(--mh-font-display);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

/* 4. Numbered rows: "What to expect" */
.mh .mh-rows {
  display: grid;
  gap: 0 72px;
  margin-top: var(--mh-head-gap);
}
.mh .mh-row {
  display: flex;
  gap: 12px 28px;
  padding-block: 30px;
  border-top: 1px solid var(--mh-line);
}
.mh .mh-row__value {
  flex: 0 0 150px;
  font: 600 30px/1.1 var(--mh-font-display);
  color: var(--mh-gold);
  overflow-wrap: break-word;
}
.mh .mh-row__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.mh .mh-row__text {
  color: var(--mh-mist);
}

/* 5 and 6. Pricing, booking and deposit */
.mh .mh-terms__grid {
  display: grid;
  gap: 48px 72px;
}
.mh .mh-terms__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 2px solid var(--mh-gold);
  min-width: 0;
}
.mh .mh-terms__title {
  font: 600 clamp(26px, 2.6vw, 36px)/1.1 var(--mh-font-display);
  letter-spacing: -0.02em;
}
.mh .mh-terms__text {
  max-width: 680px;
  font-size: 18px;
  color: var(--mh-mist);
}
.mh .mh-terms__text.mh-terms__price {
  font: 500 clamp(22px, 2vw, 28px)/1.3 var(--mh-font-display);
  color: var(--mh-paper);
}

/* 7. Physician: the "Medically reviewed" line */
.mh .mh-physician__reviewed {
  padding-top: 16px;
  border-top: 1px solid var(--mh-line);
}

/* 8. FAQ on the light section */
.mh .mh-section--light .mh-faq,
.mh .mh-section--light .mh-faq__item {
  border-color: var(--mh-mist);
}
.mh .mh-section--light .mh-faq__a {
  color: var(--mh-slate);
}
.mh .mh-section--light .mh-faq__q::after {
  border-color: var(--mh-ink);
}
.mh .mh-section--light .mh-faq__q:hover {
  color: var(--mh-slate);
}

/* 9. Related: the pathway link carries a small label */
.mh .mh-treatments__link .mh-treatments__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
}
.mh .mh-treatments__link .mh-treatments__kind {
  font: var(--mh-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mh-gold);
}

@media (min-width: 700px) {
  .mh .mh-panel {
    min-height: 360px;
    padding: 44px 36px;
  }
}
@media (min-width: 1000px) {
  .mh .mh-hero--service .mh-hero__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
  .mh .mh-hero--service.mh-hero--nophoto .mh-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mh .mh-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mh .mh-terms__grid--2 {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}
@media (max-width: 699px) {
  .mh .mh-row {
    flex-direction: column;
  }
  .mh .mh-row__value {
    flex-basis: auto;
    font-size: 26px;
  }
  .mh .mh-hero__media--service .mh-hero__img {
    max-height: 460px;
  }
  .mh .mh-panel {
    min-height: 0;
    gap: 28px;
  }
}

/* 7. Contact and legal pages (Prompt 6a) -------------------------------------------------------- */

/* Contact: details, and the GoHighLevel form beside them on wide screens. */
.mh .mh-contact {
  display: grid;
  gap: 48px;
}
.mh .mh-contact__list {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--mh-line);
}
.mh .mh-contact__item {
  display: grid;
  gap: 4px 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--mh-line);
}
.mh .mh-contact__label {
  font: var(--mh-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mh-gold);
}
.mh .mh-contact__value {
  margin: 0;
  font-size: 18px;
}
.mh .mh-contact__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mh-font-display);
  font-size: 24px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (max-width: 479px) {
  .mh .mh-contact__link {
    font-size: 19px;
  }
}
.mh .mh-contact__more {
  margin-top: 4px;
}
.mh .mh-contact__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.mh .mh-contact__formnote,
.mh .mh-contact__formhelp {
  color: var(--mh-mist);
}
/* The help line sits directly on top of the form it describes. */
.mh .mh-contact__formhelp + .mh-contact__frame {
  margin-top: 0;
}
.mh .mh-contact__frame {
  width: 100%;
  margin-top: 8px;
}
.mh .mh-contact__frame iframe {
  display: block;
  width: 100%;
  min-height: inherit;
}
@media (min-width: 700px) {
  .mh .mh-contact__item {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: baseline;
  }
}
@media (min-width: 1100px) {
  .mh .mh-contact--form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
}

/* Legal pages: the existing text in the theme's typography. */
.mh .mh-legal {
  max-width: 760px;
  font-size: 17px;
}
.mh .mh-legal > * + * {
  margin-top: 16px;
}
.mh .mh-legal h2 {
  margin-top: 48px;
  font: 600 clamp(26px, 2.6vw, 34px)/1.15 var(--mh-font-display);
  letter-spacing: -0.01em;
}
.mh .mh-legal h3,
.mh .mh-legal h4,
.mh .mh-legal h5,
.mh .mh-legal h6,
.mh .mh-legal [class^="mh-legal__lv"]:not(.mh-legal__lv2) {
  margin-top: 32px;
  font: var(--mh-h3);
}
.mh .mh-legal > :first-child {
  margin-top: 0;
}
.mh .mh-legal ul,
.mh .mh-legal ol {
  padding-left: 1.4em;
}
.mh .mh-legal ul {
  list-style: disc;
}
.mh .mh-legal ol {
  list-style: decimal;
}
.mh .mh-legal li + li {
  margin-top: 8px;
}
.mh .mh-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.mh .mh-legal strong {
  font-weight: 600;
}
.mh .mh-hero--legal {
  padding-bottom: 24px;
}

/* ------------------------------------------------------------------------------------------
 * Third-party: the Cherry "Pay over time" badge (Elementor Custom Code 19513, site-wide).
 * Between 481 and 768 px its own CSS fixes the button at 240 px, narrower than its text
 * ("No hard credit checks • 0% APR options"), so the text spills out of the pill.
 * Let it size to its text instead (decisions.md, Nov 23). Its class names carry a build
 * hash, so match the stable prefix; the id outranks the widget's single-class rule.
 * ------------------------------------------------------------------------------------------ */
@media (min-width: 481px) and (max-width: 768px) {
  #widget-floatingEstimator-mount [class*="floatingEstimator-floatingButton"] {
    width: auto;
    max-width: calc(100vw - 32px);
  }
}

/* ------------------------------------------------------------------------------------------
 * Landing template (Prompt 7): price line, Reserve button, evidence with numbered
 * references, the references list. Everything else comes from the Service template.
 * ------------------------------------------------------------------------------------------ */
.mh .mh-price {
  font: 600 clamp(24px, 2.4vw, 32px)/1.15 var(--mh-font-display);
  letter-spacing: -0.01em;
  color: var(--mh-gold);
}
.mh .mh-hero__price {
  margin-top: 4px;
}
.mh .mh-price__note {
  margin-top: -8px;
}
.mh .mh-cta__price {
  text-align: center;
}

/* Reference markers: superscript numbers that link to the list (24 px target, inline). */
.mh .mh-ref {
  font-size: 0.6em;
  line-height: 0;
  vertical-align: super;
}
.mh .mh-ref__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  margin-left: 1px;
  color: var(--mh-gold);
  text-decoration: none;
}
.mh .mh-ref__link:hover {
  color: var(--mh-gold-hover);
  text-decoration: underline;
}

/* Five cards: one row on wide screens instead of four plus one. */
@media (min-width: 1100px) {
  .mh .mh-cards--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.mh .mh-evidence__note,
.mh .mh-rows__note {
  font-size: var(--mh-text-small);
}

/* Sources and references */
.mh .mh-block--references {
  padding-block: 64px;
  border-top: 1px solid var(--mh-line);
}
.mh .mh-references {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-left: 1.4em;
  list-style: decimal;
  font-size: var(--mh-text-small);
  color: var(--mh-mist);
}
.mh .mh-references__item {
  padding-left: 4px;
  scroll-margin-top: 120px;
}
.mh .mh-references__item:target {
  color: var(--mh-paper);
}
.mh .mh-references__link {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mh .mh-references__note {
  margin-top: 24px;
}

/* ------------------------------------------------------------------------------------------
 * Polish pass (Nov 24, approved by Abdullah: items 1-12, 14-16). Layout order, colours,
 * fonts and wording unchanged. Motion: transform only, 150-160 ms, hover-capable devices
 * only, none under prefers-reduced-motion.
 * ------------------------------------------------------------------------------------------ */

/* 1. No one-word last lines in headings; better paragraph breaks. Wording unchanged;
   browsers without text-wrap simply wrap as before. */
.mh h1,
.mh h2,
.mh h3,
.mh .mh-door__word,
.mh .mh-panel__text,
.mh .mh-faq__q {
  text-wrap: balance;
}
.mh p,
.mh li,
.mh dd {
  text-wrap: pretty;
}
.mh .mh-nowrap {
  white-space: nowrap;
}

/* 2. Buttons press: 1 px down while held. */
.mh .mh-btn {
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease-out;
}
.mh .mh-btn:active {
  transform: translateY(1px);
}

/* 3. Arrow links: the arrow steps 3 px toward where the link goes. */
@media (hover: hover) and (pointer: fine) {
  .mh a > span[aria-hidden="true"],
  .mh a .mh-door__line > span[aria-hidden="true"] {
    display: inline-block;
    transition: transform 0.16s ease-out;
  }
  .mh a:hover > span[aria-hidden="true"],
  .mh a:hover .mh-door__line > span[aria-hidden="true"] {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh .mh-btn:active,
  .mh a:hover > span[aria-hidden="true"],
  .mh a:hover .mh-door__line > span[aria-hidden="true"] {
    transform: none;
  }
}

/* 5, 6, 8. Phones: reading text at 17 px, footer text at 16 px, fine print at 15 px. */
@media (max-width: 699px) {
  .mh .mh-physician__bio,
  .mh .mh-physician__creds,
  .mh .mh-block__note,
  .mh .mh-references {
    font-size: var(--mh-text);
  }
  .mh-site-footer,
  .mh-site-footer .mh-footer__inline {
    font-size: 16px;
  }
  .mh .mh-fine,
  .mh-site-footer .mh-footer__fine {
    font-size: 15px;
  }
}

/* 9. FAQ, references and the landing form keep their narrow measure but start on the
   page's left edge, like every other section heading. */
.mh .mh-block--faq .mh-container--narrow,
.mh .mh-block--references .mh-container--narrow,
.mh .mh-block--form .mh-container--narrow {
  max-width: calc(var(--mh-container) + 2 * var(--mh-gutter));
}
.mh .mh-block--faq .mh-container--narrow > *,
.mh .mh-block--references .mh-container--narrow > *,
.mh .mh-block--form .mh-container--narrow > * {
  max-width: var(--mh-container-narrow);
}

/* 11. A text section that follows another on the same ground: tighter spacing, the
   dividing line kept, so short sections don't become tall empty bands. */
.mh .mh-block--text:not(.mh-section--teal):not(.mh-section--light):has(+ .mh-block--text:not(.mh-section--teal):not(.mh-section--light)) {
  padding-bottom: 48px;
}
.mh .mh-block--text:not(.mh-section--teal):not(.mh-section--light) + .mh-block--text:not(.mh-section--teal):not(.mh-section--light) {
  padding-top: 48px;
}
@media (min-width: 700px) {
  .mh .mh-block--text:not(.mh-section--teal):not(.mh-section--light):has(+ .mh-block--text:not(.mh-section--teal):not(.mh-section--light)) {
    padding-bottom: 64px;
  }
  .mh .mh-block--text:not(.mh-section--teal):not(.mh-section--light) + .mh-block--text:not(.mh-section--teal):not(.mh-section--light) {
    padding-top: 64px;
  }
}

/* 12. The "Medically reviewed" line belongs to the section above it. */
.mh .mh-reviewed {
  margin-top: calc(24px - var(--mh-section));
  padding-block: 0 32px;
}
.mh .mh-reviewed .mh-fine {
  padding-top: 16px;
  border-top: 1px solid var(--mh-line);
}

/* 16. Her clinical points as open columns (no boxes): a gold line above each, on teal. */
.mh .mh-cards.mh-evidence {
  gap: 32px 40px;
  background: none;
  border: 0;
}
.mh .mh-evidence .mh-evidence__item {
  padding: 20px 0 0;
  border-top: 1px solid var(--mh-gold);
  background: none;
}
.mh .mh-evidence__title .mh-ref {
  font-size: 0.7em;
}

/* Embed block (Dr. Fatima's Canva slides): fixed ratio, square, caption under it. */
.mh .mh-embed {
  margin: var(--mh-head-gap) 0 0;
  max-width: 960px;
}
.mh .mh-embed__frame {
  position: relative;
  width: 100%;
  background: var(--mh-teal);
}
.mh .mh-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.mh .mh-embed__caption {
  margin-top: 14px;
  color: var(--mh-mist);
  font-size: var(--mh-text);
}
