/* =====================================================
   Rehan Oncology — design system (public site)
   Palette: sage primary, deep teal text, warm cream bg,
   soft coral accent. Calming, warm, not clinical white.
   ===================================================== */

:root {
  /* Brand */
  --sage-50:   #F2F6F4;
  --sage-100:  #DDE9E3;
  --sage-200:  #BCD3C9;
  --sage-300:  #9BBDAF;
  --sage-400:  #7BA89C;  /* primary */
  --sage-500:  #5F8E81;
  --sage-600:  #4A7468;
  --sage-700:  #385A51;
  --teal-800:  #2D5F5F;  /* headlines / strong text */
  --teal-900:  #1F4444;

  --cream-50:  #FBF8F2;
  --cream-100: #F5EFE6;  /* page bg */
  --cream-200: #EDE3D2;

  --coral-300: #F4C2B6;
  --coral-400: #E8A598;  /* accent */
  --coral-500: #D78779;

  --ink-900:   #1B2B2B;
  --ink-700:   #3A4D4D;
  --ink-500:   #5E7373;
  --ink-300:   #9BABAB;
  --ink-100:   #D9E2E2;

  --white:     #FFFFFF;

  /* Typography */
  --font-sans:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Fraunces', Georgia, 'Times New Roman', serif;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radius / shadow */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(31, 68, 68, 0.08);
  --shadow-md: 0 6px 24px rgba(31, 68, 68, 0.10);
  --shadow-lg: 0 16px 48px rgba(31, 68, 68, 0.14);

  /* Containers */
  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--teal-800); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--teal-900);
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  line-height: 1.15;
  text-wrap: balance;
  font-feature-settings: "kern", "liga", "ss01";
}
p, li, dd { text-wrap: pretty; hanging-punctuation: first allow-end last; }
.stat__num, .metric__num { font-variant-numeric: tabular-nums lining-nums; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--sage-600);
  margin-bottom: var(--sp-3);
}
.lede { font-size: 1.2rem; color: var(--ink-700); line-height: 1.65; max-width: 60ch; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
section { padding: var(--sp-8) 0; }
section.tight { padding: var(--sp-6) 0; }
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.text-center { text-align: center; }
.mx-auto    { margin-left: auto; margin-right: auto; }
.max-prose  { max-width: 68ch; }

/* ---------- Header / Navigation ----------
   z-index must be HIGHER than .nav-backdrop (54) because the backdrop sits
   directly on <body> while .nav lives inside this stacking context. If the
   header sat below the backdrop, the drawer would be hidden beneath it. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(31, 68, 68, 0.08);
  box-shadow: 0 1px 3px rgba(31,68,68,0.04);
}
/* Header gets its own wider container so the nav has room to breathe */
.site-header .container {
  max-width: 1480px;
  padding: 0 24px;
}

/* Row 1 — top bar (brand on left, contact on right) */
.site-header__top {
  border-bottom: 1px solid rgba(31,68,68,0.06);
}
.site-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 64px;
  /* prevent overflow: lets brand truncate if needed */
  min-width: 0;
}
.topbar-contact {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;  /* never let contact area collapse */
}
.topbar-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px;
  color: var(--teal-800);
  font-family: var(--font-sans); font-weight: 500; font-size: 0.88rem;
  white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.topbar-link i { color: var(--sage-600); font-size: 1rem; }
.topbar-link:hover { background: var(--sage-50); color: var(--teal-900); text-decoration: none; }
.topbar-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--sage-500);
  color: var(--white) !important;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.88rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(95,142,129,0.30);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.topbar-cta:hover { background: var(--teal-800); transform: translateY(-1px); text-decoration: none; box-shadow: 0 4px 14px rgba(45,95,95,0.30); }
.topbar-cta i { font-size: 1rem; color: inherit; }

/* Row 2 — primary navigation bar */
.site-header__nav .container {
  display: flex;
  justify-content: center;
  min-height: 56px;
  align-items: center;
}
.site-header__nav nav { width: 100%; display: flex; justify-content: center; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-serif);
  color: var(--teal-900);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  min-width: 0;          /* allow brand to shrink within flex parent */
  overflow: hidden;      /* ellipsis on overflow */
}
.brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand:hover { text-decoration: none; color: var(--teal-900); }
.brand > span:last-child { display: inline-flex; flex-direction: column; gap: 3px; }
.brand__logo {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sage-300), var(--sage-600));
  display: grid; place-items: center;
  color: var(--white); font-weight: 700; font-family: var(--font-sans);
  font-size: 0.98rem; letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(45,95,95,0.22);
  flex-shrink: 0;
}
.brand__sub {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-500);
  letter-spacing: 0.12em;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
}

/* Top nav (desktop) — modern, text-led, no pills, no bullets */
.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--teal-800);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  transition: color .15s ease;
}
/* Reset button defaults WITHOUT clobbering the font-size set by .nav__link */
button.nav__link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  background: transparent;
  border: 0;
  cursor: pointer;
}
/* Invisible hover bridge — keeps mega menu open while the mouse travels from the trigger down to it */
.nav__item[data-mega]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 16px;
  pointer-events: none;
}
.nav__item[data-mega]:hover::after,
.nav__item[data-mega]:focus-within::after { pointer-events: auto; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--sage-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.nav__link:hover, .nav__link:focus-visible, .nav__link.is-active, .nav__link[aria-expanded="true"] {
  color: var(--teal-900); text-decoration: none; background: transparent;
}
.nav__link:hover::after, .nav__link.is-active::after, .nav__link[aria-expanded="true"]::after {
  transform: scaleX(1);
}
.nav__chevron {
  width: 11px; height: 11px;
  transition: transform .2s ease;
  opacity: 0.6;
}
.nav__link[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); opacity: 1; }

/* (Legacy .nav__cta — no longer used in top nav; WhatsApp moved to topbar. Kept in case any page references it.) */
.nav__cta { display: none; }

/* Mega menu — base / mobile-first state. Desktop hover-open lives in the
   "@media (min-width: 1241px)" block further down. Mobile click-open is in
   the "@media (max-width: 1240px)" block. Single source of truth — no fighting. */
.megamenu {
  background: var(--white);
  border-radius: 16px;
  padding: var(--sp-5);
  border: 1px solid rgba(31,68,68,0.04);
}
.megamenu::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: var(--white);
  border-top: 1px solid rgba(31,68,68,0.04);
  border-left: 1px solid rgba(31,68,68,0.04);
}

/* Desktop only: absolutely-positioned dropdown, hover-driven */
@media (min-width: 1241px) {
  .megamenu {
    position: absolute;
    left: 50%;
    top: calc(100% + 16px);
    transform: translateX(-50%) translateY(-6px);
    width: min(960px, 92vw);
    box-shadow: 0 24px 64px rgba(31,68,68,0.18), 0 2px 8px rgba(31,68,68,0.06);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .22s ease, visibility 0s linear .18s;
    pointer-events: none;
    z-index: 60;
  }
  /* Wider panel for 4-column mega menu */
  .megamenu--wide { width: min(1180px, 95vw); }
  .nav__item[data-mega]:hover .megamenu,
  .nav__item[data-mega]:focus-within .megamenu,
  .nav__item.is-open .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
    pointer-events: auto;
  }
}
.megamenu__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.1fr;
  gap: var(--sp-4);
}
/* Wider 4-column variant for mega menus with 3 content lists (e.g. Cancers We Treat) */
.megamenu__grid--cols-4 {
  grid-template-columns: 0.9fr 1fr 1fr 1fr;
}

/* ---- Overview column (left-most) ---- */
.mm-overview {
  padding: 6px 6px 6px 6px;
  border-right: 1px solid var(--ink-100);
}
.mm-overview__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--sp-2);
}
.mm-overview__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sage-100), var(--cream-200));
  color: var(--sage-700);
  display: grid; place-items: center; font-size: 1.15rem;
}
.mm-overview__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--teal-900);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.005em;
  padding: 0;
}
.mm-overview__desc {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--ink-700);
  line-height: 1.55;
  margin: 0 0 var(--sp-3);
}
.mm-overview__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sage-700);
  margin-bottom: var(--sp-4);
}
.mm-overview__cta i { transition: transform .15s ease; }
.mm-overview__cta:hover { color: var(--teal-900); text-decoration: none; }
.mm-overview__cta:hover i { transform: translateX(3px); }

/* Featured CTA pill (e.g. "Side-effect Guide") */
.mm-featured {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  color: var(--teal-800);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  transition: background .12s ease, transform .12s ease;
}
.mm-featured:hover { background: var(--sage-100); text-decoration: none; transform: translateY(-1px); color: var(--teal-900); }
.mm-featured i { color: var(--sage-600); font-size: 0.95rem; }

/* ---- Content-column heading (Treatments / Care Pathways / etc.) ---- */
.mm-col-heading {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-700);
  margin: 0 0 var(--sp-3);
  font-weight: 700;
  padding: 0 12px;
}
.mm-col-heading i { color: var(--sage-500); font-size: 0.95rem; }

.megamenu__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }

/* ---- Per-item link with coloured icon ---- */
.megamenu__link {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--teal-900);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.3;
  transition: background .12s ease, transform .12s ease;
}
.megamenu__link:hover {
  background: var(--sage-50);
  text-decoration: none;
  color: var(--teal-900);
  transform: translateX(2px);
}
.mm-item-icon {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(0,0,0,0.025);
  font-size: 1.05rem;
  transition: background .12s ease;
}
.megamenu__link:hover .mm-item-icon { background: rgba(255,255,255,0.6); }
.mm-item-label { display: flex; flex-direction: column; gap: 2px; }
.mm-item-label small {
  display: block;
  color: var(--ink-500);
  font-weight: 400;
  font-size: 0.76rem;
  line-height: 1.3;
}
.megamenu__link:hover .mm-item-label small { color: var(--ink-700); }

/* Per-item icon colour classes — match an item's `color` key in mega-menu data */
.mm-color-sage     { color: var(--sage-600); }
.mm-color-teal     { color: var(--teal-800); }
.mm-color-coral    { color: var(--coral-500); }
.mm-color-gold     { color: #C99B3B; }
.mm-color-rose     { color: #D87985; }
.mm-color-lavender { color: #9C82B5; }
.mm-color-sky      { color: #6FA3C2; }
.mm-color-mint     { color: #62A87C; }
.mm-color-sage     .ph, .mm-color-teal  .ph, .mm-color-coral .ph,
.mm-color-gold     .ph, .mm-color-rose  .ph, .mm-color-lavender .ph,
.mm-color-sky      .ph, .mm-color-mint  .ph { color: inherit; }

/* Mobile nav toggle — hamburger that morphs into X when the menu is open.
   !important is used on the icon visibility toggle because the .nav-toggle svg
   selector (0,1,1) would otherwise out-specificity our .nav-toggle__menu /
   .nav-toggle__close rules (0,1,0). */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--teal-800);
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
}
.nav-toggle:hover { background: var(--sage-50); }

/* By default: show hamburger, hide X */
.nav-toggle .nav-toggle__menu  { display: block !important; }
.nav-toggle .nav-toggle__close { display: none  !important; }
/* When menu is open: hide hamburger, show X */
.nav-toggle[aria-expanded="true"] .nav-toggle__menu  { display: none  !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block !important; }

/* Old in-menu close button is removed; this selector is just a safety net */
.nav-close { display: none !important; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }

  /* Second row collapses; nav becomes a fixed flyout escaping its parent */
  .site-header__nav {
    border-top: 0;
  }
  .site-header__nav .container { min-height: 0; padding: 0; }

  /* Backdrop behind the flyout */
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(31,68,68,0.5);
    z-index: 54;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }

  /* Nav becomes a fixed flyout below the topbar.
     Uses display:block (not flex) so items stack naturally as block elements
     and the drawer scrolls properly when content exceeds the viewport.
     Explicit height is set in addition to top/bottom inset as a fallback for
     browsers that mis-compute fixed-element heights from top+bottom. */
  .nav {
    position: fixed !important;
    top: 64px !important;
    right: 0 !important;
    left: max(0px, calc(100% - 360px)) !important;
    bottom: 0 !important;
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;  /* dynamic viewport (mobile browser chrome) */
    width: auto !important;
    max-width: 360px !important;
    background: var(--cream-50);
    padding: var(--sp-4);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: none !important;
    z-index: 55;
    box-shadow: -12px 0 40px rgba(31,68,68,0.18);
    list-style: none;
    margin: 0;
  }
  .nav.is-open { display: block !important; }
  .nav__item    { display: block; width: 100%; }
  .nav__item + .nav__item { margin-top: 2px; }

  /* Disable the desktop hover-bridge on touch */
  .nav__item[data-mega]::after { display: none; }

  .nav__link {
    padding: 14px 16px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
  }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--sage-100); }
  /* Reset desktop button defaults that we explicitly want on mobile */
  button.nav__link { font-size: 1rem; }

  /* Mobile mega menu: inline accordion, click-toggled via .is-open */
  .megamenu {
    width: 100%;
    max-height: 0; overflow: hidden;
    opacity: 0;
    padding: 0; border: 0; margin: 0;
    border-radius: 0; box-shadow: none;
    transition: max-height .3s ease, opacity .15s ease, padding .2s ease;
  }
  .megamenu::before { display: none; }
  .nav__item.is-open > .megamenu {
    opacity: 1;
    max-height: 3000px;
    padding: var(--sp-3) 0 var(--sp-3) var(--sp-4);
    border-left: 2px solid var(--sage-200);
    margin: 4px 0 8px 8px;
  }
  .megamenu__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .mm-overview { border-right: 0; border-bottom: 1px solid var(--ink-100); padding-bottom: var(--sp-3); }
  .mm-col-heading { padding: 0; }
  .megamenu__link { padding: 10px 12px; }

  /* Body scroll-lock when the flyout is open */
  body.nav-open { overflow: hidden; }

  /* When the hamburger morphs into X, raise it above the backdrop */
  .nav-toggle[aria-expanded="true"] { position: relative; z-index: 56; color: var(--teal-900); }
}

/* Below 1080px hide the topbar phone number — keep WhatsApp pill */
@media (max-width: 1080px) {
  .topbar-link { display: none; }
}

/* Below 540px also hide the WhatsApp pill (use the floating button) and the brand subtitle */
@media (max-width: 540px) {
  .topbar-cta { display: none; }
  .brand__sub { display: none; }
  .brand { font-size: 1rem; gap: 10px; }
  .brand__logo { width: 38px; height: 38px; font-size: 0.86rem; }
  .site-header .container { padding: 0 14px; }
}

/* Below 380px tighten brand even more */
@media (max-width: 380px) {
  .brand > span:last-child { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
  .brand { font-size: 0.92rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--teal-800); color: var(--white);
  box-shadow: 0 4px 14px rgba(45, 95, 95, 0.25);
}
.btn-primary:hover { background: var(--teal-900); color: var(--white); }
.btn-secondary {
  background: var(--white); color: var(--teal-800); border-color: var(--sage-300);
}
.btn-secondary:hover { background: var(--sage-50); color: var(--teal-900); }
.btn-coral {
  background: var(--coral-400); color: var(--teal-900);
}
.btn-coral:hover { background: var(--coral-500); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--sp-9) 0 var(--sp-8);
  background:
    radial-gradient(1100px 600px at 85% -10%, var(--sage-100) 0%, transparent 60%),
    radial-gradient(700px 400px at -10% 110%, var(--coral-300) 0%, transparent 55%),
    var(--cream-50);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--sp-7);
}
@media (max-width: 880px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 span.accent { color: var(--sage-600); }
.hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.hero__visual {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  background: var(--cream-50);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.hero__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__visual-inner {
  position: relative; z-index: 1;
  font-family: var(--font-serif);
  color: var(--white);
  text-align: center;
  padding: var(--sp-6);
  font-size: 1.05rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
  background: radial-gradient(ellipse at center, rgba(45,95,95,0.55) 0%, transparent 70%);
  border-radius: var(--r-lg);
  margin: var(--sp-5);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sage-200); }
.card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--sage-100);
  color: var(--sage-700);
  display: grid; place-items: center;
  margin-bottom: var(--sp-4);
  font-size: 1.4rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: var(--sp-2); }
.card p { color: var(--ink-700); margin: 0 0 var(--sp-3); }
.card .card__link { font-weight: 600; }

/* ---------- Sections ---------- */
.section-head { text-align: center; margin-bottom: var(--sp-7); }
.section-head .lede { margin-left: auto; margin-right: auto; }

.bg-cream  { background: var(--cream-50); }
.bg-sage   { background: var(--sage-50); }
.bg-white  { background: var(--white); }

/* Stats / numbers */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.stat { text-align: center; padding: var(--sp-5); background: var(--white); border-radius: var(--r-md); }
.stat__num { font-family: var(--font-serif); font-size: 2.2rem; color: var(--teal-800); font-weight: 600; }
.stat__lbl { color: var(--ink-500); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Quote / pull-quote (emotional copy) */
blockquote.pull {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--teal-800);
  line-height: 1.5;
  border-left: 3px solid var(--coral-400);
  padding: var(--sp-3) var(--sp-5);
  margin: var(--sp-6) 0;
  background: var(--cream-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-800), var(--sage-600));
  color: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  text-align: center;
  margin: var(--sp-7) 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 56ch; margin: 0 auto var(--sp-5); }
.cta-band .btn-primary { background: var(--white); color: var(--teal-900); }
.cta-band .btn-primary:hover { background: var(--cream-100); color: var(--teal-900); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--sp-4); max-width: 560px; }
.field { display: grid; gap: var(--sp-2); }
.field label { font-weight: 600; color: var(--teal-800); font-size: 0.95rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  font: inherit;
  background: var(--white);
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--sage-400);
  box-shadow: 0 0 0 3px var(--sage-100);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: var(--cream-100);
  padding: var(--sp-7) 0 var(--sp-5);
  margin-top: var(--sp-9);
}
.site-footer a { color: var(--sage-200); }
.site-footer a:hover { color: var(--white); }
.site-footer__grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--sp-5); } }
.site-footer h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-200);
  margin-bottom: var(--sp-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.site-footer__bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  color: rgba(255,255,255,0.6); font-size: 0.88rem;
}
.site-footer__credit {
  margin-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
}
.site-footer__credit-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.site-footer__credit-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: rgba(255,255,255,0.66);
  font-size: 0.76rem;
  line-height: 1.5;
}
.site-footer__credit-heart {
  color: var(--coral-400);
  animation: footer-heartbeat 1.8s ease-in-out infinite;
}
.site-footer__credit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-weight: 700;
  text-decoration: none;
}
.site-footer__credit-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__credit-link--person { color: var(--sage-200); }
.site-footer__credit-link--company { color: var(--coral-300); }
.site-footer__credit-separator { color: rgba(255,255,255,0.28); }
@keyframes footer-heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  padding: var(--sp-8) 0 var(--sp-6);
  background:
    radial-gradient(700px 400px at 90% 0%, var(--sage-100), transparent 60%),
    var(--cream-50);
}
.page-head .breadcrumb {
  color: var(--ink-500); font-size: 0.9rem; margin-bottom: var(--sp-3);
}
.page-head .breadcrumb a { color: var(--sage-600); }

/* ---------- Service article layout ---------- */
/* About / Contact page split layouts (responsive) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-7);
  align-items: start;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
}
@media (max-width: 880px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

.service-article { padding: var(--sp-7) 0; }

/* Lede paragraph — bigger, slightly tinted, with a sage accent rule */
.service-article .lede {
  margin-bottom: var(--sp-5);
  font-size: 1.2rem;
  color: var(--teal-800);
  padding-left: var(--sp-4);
  border-left: 3px solid var(--sage-400);
}

/* Drop-cap on the first paragraph AFTER the lede */
.service-article > .container > p:not(.lede):first-of-type::first-letter,
.service-article .container > p:not(.lede):first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 0.9;
  float: left;
  padding: 4px 12px 0 0;
  color: var(--sage-600);
  font-weight: 500;
}

/* H2 with auto-injected icon bubble (JS adds .h2-icon span as first child) */
.service-article h2 {
  margin-top: var(--sp-7);
  display: flex; align-items: center; gap: 14px;
}
.service-article h2 .h2-icon {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--sage-100);
  color: var(--sage-700);
  font-size: 1.15rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .service-article h2 .h2-icon { width: 32px; height: 32px; font-size: 1rem; }
}

.service-article ul, .service-article ol { padding-left: var(--sp-5); }
.service-article li { margin-bottom: var(--sp-2); }
.service-article ul li::marker { color: var(--sage-500); }

/* Ordered lists — coloured numbered bubbles via CSS counters */
.service-article ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.service-article ol > li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: var(--sp-3);
  min-height: 32px;
}
.service-article ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--sage-400), var(--sage-600));
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(95,142,129,0.30);
}

/* Callout with built-in info icon */
.service-article .callout {
  background: var(--sage-50);
  border-left: 3px solid var(--sage-400);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-4) var(--sp-5) var(--sp-4) 56px;
  margin: var(--sp-5) 0;
  color: var(--teal-900);
  position: relative;
}
.service-article .callout::before {
  content: "i";
  font-family: var(--font-serif); font-weight: 700;
  position: absolute;
  left: 18px; top: 18px;
  width: 24px; height: 24px;
  background: var(--sage-500);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.85rem;
  font-style: italic;
}

/* Pull-quote with decorative quote mark */
blockquote.pull {
  position: relative;
  padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-7);
}
blockquote.pull::before {
  content: "\201C"; /* left double quotation mark */
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.8;
  position: absolute;
  left: 14px; top: 16px;
  color: var(--coral-400);
  opacity: 0.55;
}

/* ============================================================
   Hero image band — full-width photo strip auto-injected after
   .page-head on medical content pages. JS in footer.php picks
   the right image from /assets/images/library/ based on URL.
   ============================================================ */
.page-image-band {
  position: relative;
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-color: var(--sage-200);
  margin: 0 0 var(--sp-7);
  overflow: hidden;
}
.page-image-band::before {
  /* Soft sage tint overlay so photos blend with brand palette */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(45,95,95,0.05) 0%,
    rgba(45,95,95,0.18) 50%,
    rgba(45,95,95,0.55) 100%);
}
.page-image-band__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-5) var(--sp-6);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; gap: var(--sp-3);
}
.page-image-band__caption i {
  font-size: 1.6rem;
  color: var(--coral-300);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .page-image-band { height: 220px; }
  .page-image-band__caption { font-size: 1rem; padding: var(--sp-4); }
}
@media (max-width: 480px) {
  .page-image-band { height: 180px; }
  .page-image-band__caption { font-size: 0.9rem; }
  .page-image-band__caption i { font-size: 1.2rem; }
}

/* ============================================================
   Quick Facts panel — opt-in icon-rich panel for any content page
   ============================================================ */
.quick-facts {
  background: linear-gradient(180deg, var(--cream-50), var(--white));
  border: 1px solid var(--sage-200);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin: var(--sp-5) 0 var(--sp-6);
  position: relative;
}
.quick-facts__head {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 var(--sp-4);
  font-family: var(--font-sans);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--sage-700); font-weight: 700;
}
.quick-facts__head i { font-size: 1.05rem; color: var(--sage-600); }
.quick-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
}
.qf-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.qf-item__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sage-100); color: var(--sage-700);
  display: grid; place-items: center; font-size: 1.05rem;
}
.qf-item__label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-500); font-weight: 600;
}
.qf-item__value {
  font-family: var(--font-serif); color: var(--teal-900);
  font-size: 1.05rem; line-height: 1.3; margin-top: 2px;
}

/* ============================================================
   Decorative section divider — sage wave SVG
   ============================================================ */
.wave-divider {
  display: block; width: 100%; height: 60px;
  margin: var(--sp-6) 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,30 C200,5 400,55 600,30 C800,5 1000,55 1200,30 L1200,60 L0,60 Z' fill='%237BA89C' fill-opacity='0.15'/><path d='M0,30 C200,5 400,55 600,30 C800,5 1000,55 1200,30' stroke='%237BA89C' stroke-opacity='0.5' stroke-width='1.5' fill='none'/></svg>");
  background-size: 100% 100%; background-repeat: no-repeat;
  opacity: 0.85;
}

/* ============================================================
   Highlight key phrase utility
   ============================================================ */
.highlight {
  background: linear-gradient(180deg, transparent 60%, var(--coral-300) 60%);
  padding: 0 2px;
  font-weight: 500;
}

/* ============================================================
   Staging Calculator (free patient tool)
   ============================================================ */
.calc-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-4);
  margin: var(--sp-5) 0;
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  transition: opacity .2s ease;
}
.calc-step--disabled  { opacity: 0.55; pointer-events: none; }
.calc-step--disabled .calc-step__num { background: var(--ink-100); color: var(--ink-500); }
.calc-step__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sage-500); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600;
  align-self: start;
}
.calc-step__body h2 { margin: 0 0 var(--sp-2); font-size: 1.35rem; }
.calc-step__body > p { color: var(--ink-700); margin: 0 0 var(--sp-4); }

.calc-select {
  width: 100%;
  padding: 14px 16px;
  font: inherit; font-size: 1rem;
  border: 2px solid var(--ink-100); border-radius: var(--r-md);
  background: var(--cream-50);
  cursor: pointer;
}
.calc-select:hover, .calc-select:focus { border-color: var(--sage-400); outline: none; }
.calc-select option small { color: var(--ink-500); }

.calc-field {
  margin-bottom: var(--sp-5);
}
.calc-field > label {
  display: block;
  font-weight: 600; color: var(--teal-800);
  font-size: 1rem; margin-bottom: 4px;
}
.calc-help {
  display: block;
  color: var(--ink-500); font-size: 0.88rem;
  margin-bottom: var(--sp-3);
}
.calc-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
.calc-opt {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--ink-100);
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--cream-50);
  transition: border-color .15s ease, background .15s ease;
}
.calc-opt:hover { border-color: var(--sage-300); background: var(--sage-50); }
.calc-opt input[type=radio] { accent-color: var(--sage-500); width: 18px; height: 18px; }
.calc-opt input[type=radio]:checked ~ .calc-opt__code { background: var(--sage-500); color: var(--white); }
.calc-opt:has(input[type=radio]:checked) { border-color: var(--sage-500); background: var(--sage-50); }
.calc-opt__code {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px; border-radius: 6px;
  background: var(--ink-100); color: var(--ink-700);
  letter-spacing: 0.04em;
  transition: background .15s ease, color .15s ease;
}
.calc-opt__label { font-weight: 500; color: var(--teal-900); }
.calc-opt small  { grid-column: 2 / -1; color: var(--ink-500); font-size: 0.85rem; }

/* Result panel */
.calc-result {
  background: linear-gradient(180deg, var(--cream-50), var(--white));
  border: 1px solid var(--sage-200);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.calc-result__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  align-items: start;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--ink-100);
}
@media (max-width: 640px) { .calc-result__head { grid-template-columns: 1fr; } }
.calc-result__cancer { color: var(--ink-500); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.calc-result__stage {
  font-family: var(--font-serif);
  font-size: 2.4rem; color: var(--teal-900);
  line-height: 1; margin-top: 4px;
}
.calc-result__badge {
  display: inline-block;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  margin-top: var(--sp-3);
  background: var(--sage-100); color: var(--sage-700);
}
.calc-result__badge--sage  { background: #DDE9E3; color: #385A51; }
.calc-result__badge--gold  { background: #F4E4C4; color: #7A5C1B; }
.calc-result__badge--coral { background: #FCE6E1; color: #8A3B2E; }
.calc-result__badge--teal  { background: #C8DCDC; color: #1F4444; }
.calc-result__inputs { display: flex; flex-wrap: wrap; gap: 6px; }
.calc-result__chip {
  padding: 6px 10px; border-radius: 6px;
  background: var(--white); border: 1px solid var(--ink-100);
  font-size: 0.85rem; color: var(--ink-700);
}
.calc-result h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-700);
  margin: var(--sp-4) 0 var(--sp-2);
  font-weight: 700;
}
.calc-result__text { color: var(--ink-700); margin: 0; line-height: 1.65; }
.calc-result__cta {
  display: flex; gap: var(--sp-3); flex-wrap: wrap;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ink-100);
}
.calc-result__disclaimer {
  margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4);
  background: var(--cream-200); border-radius: var(--r-md);
  color: var(--ink-700); font-size: 0.88rem;
}

@media (max-width: 640px) {
  .calc-step { grid-template-columns: 1fr; padding: var(--sp-4); }
  .calc-step__num { width: 36px; height: 36px; font-size: 1rem; }
  .calc-result { padding: var(--sp-4); }
  .calc-result__stage { font-size: 1.8rem; }
}

/* ============================================================
   Free Patient Tools card (homepage section)
   ============================================================ */
.tool-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-300);
  text-decoration: none;
  color: inherit;
}
.tool-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sage-200), var(--cream-200));
  color: var(--sage-700);
  display: grid; place-items: center;
  font-size: 1.6rem;
}
.tool-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem; color: var(--teal-900);
  margin: 0 0 4px;
}
.tool-card__desc { margin: 0; color: var(--ink-700); font-size: 0.95rem; }
.tool-card__arrow { color: var(--sage-600); font-size: 1.4rem; }
@media (max-width: 640px) {
  .tool-card { grid-template-columns: 48px 1fr; }
  .tool-card__arrow { display: none; }
}

/* ============================================================
   Floating WhatsApp button (bottom-right, every page)
   ============================================================ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px;
  width: 56px; height: 56px;
  background: #25D366; color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
  z-index: 45; /* below nav-backdrop (54) and flyout (55) */
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; text-decoration: none; }
.wa-float .icon { width: 28px; height: 28px; }
body.nav-open .wa-float { display: none; }

/* ============================================================
   Accessibility — skip link + focus rings
   ============================================================ */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal-900); color: var(--white);
  padding: var(--sp-3) var(--sp-4);
  z-index: 999; border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; outline: 3px solid var(--coral-400); }
*:focus-visible { outline: 3px solid var(--sage-400); outline-offset: 2px; border-radius: 3px; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Icons — Phosphor webfont + inline SVG helper
   ============================================================ */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* Phosphor base sizing */
[class^="ph-"], [class*=" ph-"] {
  font-size: 1.05em;
  vertical-align: -0.12em;
  display: inline-block;
  line-height: 1;
}

/* Nav-specific icon sizing */
.nav__link i[class*="ph-"] {
  font-size: 0.98rem;
  color: var(--sage-600);
  transition: color .15s ease;
}
.nav__link:hover i[class*="ph-"],
.nav__link[aria-expanded="true"] i[class*="ph-"],
.nav__link.is-active i[class*="ph-"] {
  color: var(--sage-700);
}
.nav__chevron { width: 11px; height: 11px; }
.nav__cta i[class*="ph-"] { font-size: 1.1rem; color: inherit; }

/* Mega-menu intro paragraph */
.megamenu__intro {
  margin: 0 12px var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-700);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 60ch;
}

/* Page-head decorative icon + duotone backdrop ----------------------------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; }
.page-head::before {
  /* Faint duotone version of the page icon as a giant background flourish.
     The actual <i> goes in via JS in footer.php; we inherit its colour via CSS vars. */
  content: "";
  position: absolute;
  right: -60px; top: -40px;
  width: 360px; height: 360px;
  background: radial-gradient(circle at 30% 30%, var(--sage-100) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}
.page-head__icon {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--sage-100), var(--cream-200));
  color: var(--sage-700);
  font-size: 1.8rem;
  margin-bottom: var(--sp-3);
  box-shadow: 0 4px 14px rgba(95,142,129,0.18);
  position: relative;
}
.page-head__icon i { line-height: 1; }
.page-head__icon::after {
  /* Subtle ring decoration */
  content: "";
  position: absolute; inset: -6px;
  border: 1px dashed var(--sage-300);
  border-radius: 24px;
  opacity: 0.5;
}

/* Giant duotone illustration behind the page head — visual anchor */
.page-illustration {
  position: absolute;
  right: -40px; top: 20px;
  font-size: 14rem;
  line-height: 1;
  color: var(--sage-300);
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 768px) {
  .page-illustration { font-size: 9rem; right: -30px; opacity: 0.12; }
}

/* Footer headings now sport tiny icons */
.site-footer h5 i[class*="ph-"] {
  font-size: 0.95rem;
  margin-right: 6px;
  color: var(--sage-300);
  vertical-align: -0.1em;
}

/* Section eyebrow with icon */
.eyebrow i[class*="ph-"] {
  font-size: 1rem;
  margin-right: 6px;
  vertical-align: -0.15em;
  color: var(--sage-500);
}

/* Bigger, more prominent card icon */
.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sage-100), var(--cream-200));
  color: var(--sage-700);
  display: grid; place-items: center;
  margin-bottom: var(--sp-4);
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(95,142,129,0.10);
}
.card__icon i[class*="ph-"] { font-size: 1.6rem; }

/* ============================================================
   EEAT review block (auto-injected on medical content pages)
   ============================================================ */
.eeat {
  padding: var(--sp-7) 0 0;
  background: linear-gradient(to bottom, transparent, var(--cream-100) 30%);
}
.eeat__card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) {
  .eeat__card { grid-template-columns: 1fr; text-align: left; }
  .eeat__avatar { margin: 0 0 var(--sp-3); }
}
.eeat__avatar {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--sage-300);
}
.eeat__pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage-700); background: var(--sage-100);
  padding: 3px 10px; border-radius: 999px;
  margin-bottom: var(--sp-2);
}
.eeat__heading {
  font-family: var(--font-serif);
  font-size: 1.25rem; color: var(--teal-900);
  margin: 0 0 var(--sp-2); line-height: 1.2;
}
.eeat__meta {
  margin: 0 0 var(--sp-3);
  color: var(--ink-700); font-size: 0.95rem;
}
.eeat__meta small { color: var(--ink-500); }
.eeat__bio { margin: 0 0 var(--sp-3); color: var(--ink-700); font-size: 0.95rem; }
.eeat__disclaimer { margin: 0; color: var(--ink-500); }

/* ============================================================
   Breadcrumb (rendered by render_breadcrumb() in seo.php)
   ============================================================ */
nav.breadcrumb {
  color: var(--ink-500); font-size: 0.9rem; margin-bottom: var(--sp-3);
}
nav.breadcrumb a { color: var(--sage-600); }
nav.breadcrumb [aria-current] { color: var(--ink-700); }

/* ============================================================
   Glossary — A-Z nav + alphabetised list
   ============================================================ */
.az-nav {
  display: flex; flex-wrap: wrap; gap: var(--sp-1);
  padding: var(--sp-4); background: var(--white);
  border-radius: var(--r-md); border: 1px solid var(--ink-100);
  margin-bottom: var(--sp-6);
  position: sticky; top: 130px; z-index: 10;
  font-family: var(--font-sans); font-weight: 600;
}
@media (max-width: 1240px) { .az-nav { top: 70px; } }
.az-nav a, .az-nav span {
  display: inline-grid; place-items: center;
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: var(--r-sm); font-size: 0.92rem;
}
.az-nav a {
  background: var(--sage-50); color: var(--sage-700);
}
.az-nav a:hover { background: var(--sage-100); text-decoration: none; }
.az-nav .az-disabled { color: var(--ink-300); }

.glossary-section { margin-bottom: var(--sp-7); scroll-margin-top: 130px; }
.glossary-letter {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--sage-600);
  border-bottom: 2px solid var(--sage-200);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.glossary-list { display: grid; gap: var(--sp-4); margin: 0; padding: 0; }
.glossary-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  gap: var(--sp-3) var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px dashed var(--ink-100);
}
@media (max-width: 640px) { .glossary-row { grid-template-columns: 1fr; gap: var(--sp-1); } }
.glossary-row dt {
  font-family: var(--font-serif); font-size: 1.1rem;
  color: var(--teal-800); font-weight: 500;
}
.glossary-row dt a { color: inherit; }
.glossary-row dt .aka {
  display: block; font-family: var(--font-sans);
  font-size: 0.78rem; color: var(--ink-500); font-style: italic;
  font-weight: 400; margin-top: 2px;
}
.glossary-row dd { margin: 0; color: var(--ink-700); }

/* ============================================================
   <details> / <summary> styling for FAQ-style pages
   ============================================================ */
details {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-3);
  transition: box-shadow .15s ease;
}
details[open] { box-shadow: var(--shadow-sm); }
details summary {
  cursor: pointer; font-weight: 600; color: var(--teal-800);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; font-size: 1.4rem; color: var(--sage-500);
  transition: transform .2s ease;
}
details[open] summary::after { content: "−"; }
details > *:not(summary) { margin-top: var(--sp-3); }
