/* ==========================================================================
   Epilepsy South Africa — action.epilepsysouthafrica.co.za
   Design system

   PALETTE PROVENANCE
   Brand hues are taken verbatim from epilepsy.org.za's live theme tokens
   (Flatsome --fs-color-*), cross-checked against the logo artwork:
     primary   #c71f25   secondary #f37535   base #606062   ink ~#201820

   ACCESSIBILITY CORRECTION — the reason this file has more colours than the
   brand does. Measured against white:
     #c71f25  5.75:1  OK for body text; white-on-red also 5.75:1  OK
     #f37535  2.84:1  FAILS even the 3:1 large-text floor
     #81d742  1.79:1  FAILS badly
   So the orange and green are used ONLY as backgrounds carrying dark ink
   (ink-on-orange = 6.11:1), never as text or as a white-text button. Where an
   orange or green *text* colour is genuinely needed, the hue is preserved and
   the lightness dropped until it clears 4.5:1 — that is --accent-text and
   --positive-text. Never reintroduce raw #f37535 as a text colour.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* Brand, unaltered */
  --red:            #c71f25;
  --orange:         #f37535;
  --ink:            #201820;
  --grey:           #606062;

  /* Derived, accessibility-corrected (hue preserved) */
  --red-dark:       #ae1b20;   /* 7.05:1 — hover/active */
  --accent-text:    #cd4d0c;   /* 4.50:1 — orange that is safe as text */
  --positive-text:  #49851c;   /* 4.51:1 — green that is safe as text */

  /* Neutrals */
  --white:          #ffffff;
  --paper:          #fbf9f8;   /* warm off-white, pulled toward the brand reds */
  --sand:           #f4efec;
  --line:           #e3dcd8;
  --grey-soft:      #6f6f72;

  /* Semantic */
  --bg:             var(--white);
  --bg-alt:         var(--paper);
  --text:           var(--ink);
  --text-muted:     var(--grey);
  --brand:          var(--red);
  --brand-hover:    var(--red-dark);

  /* Type — fluid scale, 1.25 ratio, clamped so it never runs away */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.875rem, 0.84rem + 0.17vw, 0.95rem);
  --step-0:  clamp(1rem,     0.96rem + 0.22vw, 1.125rem);
  --step-1:  clamp(1.25rem,  1.16rem + 0.44vw, 1.5rem);
  --step-2:  clamp(1.5rem,   1.34rem + 0.8vw,  2rem);
  --step-3:  clamp(1.875rem, 1.6rem + 1.36vw,  2.75rem);
  --step-4:  clamp(2.25rem,  1.8rem + 2.2vw,   3.75rem);

  /* Space — 4px base */
  --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;  --s4: 1rem;
  --s5: 1.5rem;   --s6: 2rem;     --s7: 3rem;     --s8: 4rem;   --s9: 6rem;

  --measure: 68ch;          /* readable line length ceiling */
  --wrap: 75rem;            /* rem, not px — the whole layout scales with the
                               root font-size ramp for large screens (end of file) */
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(32,24,32,.06), 0 1px 3px rgba(32,24,32,.05);
  --shadow-md: 0 4px 12px rgba(32,24,32,.07), 0 2px 4px rgba(32,24,32,.05);

  /* Single source of truth for motion. Every transition references this, so
     the reduced-motion block below can neutralise all of them at once. */
  --tr: 160ms ease;
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; font-weight: 700; letter-spacing: -0.015em; }
p, li { text-wrap: pretty; }

/* ---- Motion policy ------------------------------------------------------
   This site is animated, deliberately and richly — but inside a hard safety
   envelope, because a portion of this audience is photosensitive.

   PERMITTED
     - One-shot entrance reveals (opacity + small translate), 400-700ms.
     - Hover/focus lifts and colour transitions under 250ms.
     - Slow, low-contrast ambient drift measured in TENS OF SECONDS per cycle.
     - Progress and counter animations that run once and settle.

   FORBIDDEN — these are correctness constraints, not preferences
     - Any luminance oscillation at or above 3 Hz. Nothing blinks, strobes or
       pulses at a rate the eye reads as flashing.
     - Rapid transitions involving saturated red, which carries the highest
       photosensitive risk of any hue and is also this brand's primary colour.
     - Moving high-contrast stripes, checks or fine grids (pattern-sensitive
       triggers need no flashing at all to provoke a seizure).
     - Large-field motion tied to scroll position (parallax).

   Every animation below therefore has a cycle time far outside the flash band,
   or runs exactly once. Two independent off-switches exist: the OS-level
   prefers-reduced-motion query, and a visible in-page toggle that sets
   data-motion="off" on <html> and persists — because most users never discover
   the OS setting. */

:root { --reveal-dur: 620ms; --reveal-ease: cubic-bezier(.22,.72,.28,1); }

@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;
  }
}
/* In-page toggle. Mirrors the media query so the two are interchangeable. */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* ---- Reveal-on-scroll ---------------------------------------------------
   .reveal starts hidden ONLY when JS has confirmed it can observe it
   (html.js). Without JS everything is visible immediately — content is never
   dependent on animation running. */
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--reveal-dur) var(--reveal-ease),
              transform var(--reveal-dur) var(--reveal-ease);
}
/* Stagger children. Capped at 6 so a long list never crawls. */
html.js .reveal-group > * { opacity: 0; transform: translateY(16px); }
html.js .reveal-group.is-in > * {
  opacity: 1; transform: none;
  transition: opacity var(--reveal-dur) var(--reveal-ease),
              transform var(--reveal-dur) var(--reveal-ease);
}
html.js .reveal-group.is-in > *:nth-child(1) { transition-delay: 0ms; }
html.js .reveal-group.is-in > *:nth-child(2) { transition-delay: 70ms; }
html.js .reveal-group.is-in > *:nth-child(3) { transition-delay: 140ms; }
html.js .reveal-group.is-in > *:nth-child(4) { transition-delay: 210ms; }
html.js .reveal-group.is-in > *:nth-child(5) { transition-delay: 280ms; }
html.js .reveal-group.is-in > *:nth-child(n+6) { transition-delay: 350ms; }

/* ---- Skip link & focus -------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: var(--s3) var(--s5); border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- Layout primitives -------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { font-size: var(--step-2); margin-top: var(--s7); }
.prose h3 { font-size: var(--step-1); margin-top: var(--s6); }
.prose ul, .prose ol { padding-left: var(--s5); }
.prose li + li { margin-top: var(--s2); }
.section { padding-block: clamp(var(--s7), 6vw, var(--s9)); }
.section--alt { background: var(--bg-alt); }
.stack > * + * { margin-top: var(--s4); }
.grid { display: grid; gap: var(--s5); }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.eyebrow {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-text);
}
.lede { font-size: var(--step-1); color: var(--grey-soft); line-height: 1.5; }

/* Standalone section heading. Feedback, Sept 2026: several section headings were
   set as small uppercase eyebrows and did not read as headings at all. Anything
   that is genuinely the heading of a section uses this, not .eyebrow. */
.sectionhead { font-size: var(--step-3); font-weight: 600; }

/* Province filter: the submit button is the no-JS fallback. With JS the change
   handler filters in place, so the button is redundant and hidden. */
html.js .filterbar__go { display: none; }

.givelist { list-style: none; padding: 0; margin-top: var(--s3);
             font-size: var(--step--1); }
.givelist li { padding: var(--s2) 0; border-top: 1px solid var(--line); }
.givelist b { color: var(--accent-text); font-variant-numeric: tabular-nums; }

/* Suggested legal wording (bequest clause). Set apart so it is obviously text to
   be copied to an attorney, not prose to be read past. */
.willclause {
  margin-top: var(--s4); padding: var(--s5);
  border-left: 4px solid var(--accent-text);
  background: var(--bg-alt);
  font-family: var(--font-serif); font-size: var(--step-0); line-height: 1.6;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  /* 44px min target — motor control may be impaired post-seizure */
  min-height: 44px; padding: var(--s3) var(--s5);
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background-color var(--tr), border-color var(--tr), color var(--tr);
}
.btn--primary { background: var(--brand); color: var(--white); }      /* 5.75:1 */
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: transparent; color: var(--brand); border-color: currentColor; }
.btn--ghost:hover { background: var(--brand); color: var(--white); }
/* Ink on orange = 6.11:1. White on orange would be 2.84:1 — never do that. */
.btn--accent { background: var(--orange); color: var(--ink); }
.btn--accent:hover { background: var(--accent-text); color: var(--white); }
.btn--lg { font-size: var(--step-1); padding: var(--s4) var(--s6); }

/* ---- Header ------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white);
          border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; gap: var(--s5);
               min-height: 76px; }
.brand { display: flex; align-items: center; gap: var(--s3);
         text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand__mark { flex: 0 0 auto; }
.brand__name { font-weight: 800; font-size: 1.0625rem; line-height: 1.1; letter-spacing: -0.02em; }
.brand__sub { display: block; font-weight: 600; font-size: 0.7rem;
              letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s2); list-style: none; padding: 0; }
.nav__link {
  display: block; padding: var(--s2) var(--s3); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-weight: 600;
  font-size: var(--step--1); transition: background-color var(--tr), color var(--tr);
}
.nav__link:hover { background: var(--sand); color: var(--brand); }
.nav__link[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }

/* The emergency route is deliberately the loudest thing in the header and is
   present on every page — someone may arrive here mid-crisis. */
.nav__emergency { background: var(--brand); color: var(--white); }
.nav__emergency:hover { background: var(--brand-hover); color: var(--white); }

.navtoggle { display: none; align-items: center; gap: var(--s2);
             margin-left: auto; background: none; border: 2px solid var(--line);
             border-radius: var(--radius); min-height: 44px; padding: 0 var(--s3);
             font-weight: 650; cursor: pointer; }

@media (max-width: 940px) {
  .navtoggle { display: inline-flex; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--white);
         border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
         margin: 0; padding: var(--s4) 0 var(--s6); display: none; }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch;
               gap: 0; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .nav__link { padding: var(--s4) var(--s3); font-size: var(--step-0);
               border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
  .nav__emergency { border-radius: var(--radius); margin-top: var(--s4);
                    border-bottom: 0; text-align: center; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line);
        padding-block: clamp(var(--s7), 7vw, var(--s9)); }
.hero__grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr 1fr; } }
.hero h1 { font-size: var(--step-4); }
.hero__lede { font-size: var(--step-1); color: var(--grey-soft); max-width: 46ch; margin-top: var(--s4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* Static decorative panel. No animation, no gradient shimmer — a flat,
   high-contrast composition that is safe at any refresh rate. */
.hero__panel { background: var(--ink); color: var(--white);
               border-radius: var(--radius-lg); padding: var(--s6);
               box-shadow: var(--shadow-md); }
.hero__panel h2 { font-size: var(--step-1); }
.hero__panel p { color: #ded8d8; margin-top: var(--s3); }
.hero__stat { display: flex; align-items: baseline; gap: var(--s3);
              padding-block: var(--s4); border-top: 1px solid #3a2f3a; }
.hero__stat b { font-size: var(--step-2); color: var(--orange); font-variant-numeric: tabular-nums; }
.hero__stat span { color: #ded8d8; font-size: var(--step--1); }

/* ---- Cards -------------------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--line);
        border-radius: var(--radius-lg); padding: var(--s6);
        transition: border-color var(--tr), box-shadow var(--tr); }
.card:hover { border-color: var(--grey-soft); box-shadow: var(--shadow-md); }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--grey-soft); margin-top: var(--s3); }
.card__link { display: inline-flex; align-items: center; gap: var(--s2);
              margin-top: var(--s4); font-weight: 650; color: var(--brand);
              text-decoration: none; }
.card__link:hover { text-decoration: underline; }
/* Whole-card click target without nesting interactive elements */
.card--link { position: relative; }
.card--link a::after { content: ""; position: absolute; inset: 0; }

.card__icon { width: 44px; height: 44px; border-radius: var(--radius);
              display: grid; place-items: center; margin-bottom: var(--s4);
              background: var(--sand); color: var(--accent-text); }

/* ---- Emergency / first-aid treatment ------------------------------------ */
.alertbar { background: var(--ink); color: var(--white); }
.alertbar__inner { display: flex; flex-wrap: wrap; align-items: center;
                   gap: var(--s3) var(--s5); padding-block: var(--s3);
                   font-size: var(--step--1); }
.alertbar a { color: var(--white); font-weight: 700; }
.alertbar strong { color: var(--orange); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative;
              padding: var(--s5) var(--s5) var(--s5) calc(var(--s8) + var(--s2));
              border: 1px solid var(--line); border-radius: var(--radius-lg);
              background: var(--white); }
.steps > li + li { margin-top: var(--s4); }
.steps > li::before {
  content: counter(step); position: absolute; left: var(--s5); top: var(--s5);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 1.125rem;
}
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--grey-soft); margin-top: var(--s2); }

.callout { border-left: 5px solid var(--brand); background: var(--paper);
           padding: var(--s5); border-radius: 0 var(--radius) var(--radius) 0; }
.callout--urgent { border-left-color: var(--brand); background: #fdf2f2; }
.callout h3 { font-size: var(--step-1); margin-bottom: var(--s2); }

/* Do / Don't — never colour-only. Each carries a text label and a glyph. */
.dd { display: grid; gap: var(--s5); }
@media (min-width: 800px) { .dd { grid-template-columns: 1fr 1fr; } }
.dd__col { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); }
.dd__col h3 { display: flex; align-items: center; gap: var(--s2); font-size: var(--step-1); }
.dd__col ul { list-style: none; padding: 0; margin-top: var(--s4); }
.dd__col li { display: flex; gap: var(--s3); padding-block: var(--s3); }
.dd__col li + li { border-top: 1px solid var(--line); }
.dd__col li::before { flex: 0 0 auto; font-weight: 800; }
.dd--do { border-color: #cfe3c0; }
.dd--do h3 { color: var(--positive-text); }
.dd--do li::before { content: "✓"; color: var(--positive-text); }
.dd--dont { border-color: #f0cdcd; }
.dd--dont h3 { color: var(--brand); }
.dd--dont li::before { content: "✕"; color: var(--brand); }

/* ---- Branch finder ------------------------------------------------------ */
.filterbar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center;
             margin-bottom: var(--s6); }
.filterbar label { font-weight: 650; }
.field { min-height: 44px; padding: var(--s2) var(--s3);
         border: 2px solid var(--line); border-radius: var(--radius);
         background: var(--white); }
.field:focus { border-color: var(--brand); }
.branch { border: 1px solid var(--line); border-radius: var(--radius-lg);
          padding: var(--s5); background: var(--white); }
.branch h3 { font-size: var(--step-1); }
.branch__region { font-size: var(--step--1); font-weight: 700; color: var(--accent-text);
                  text-transform: uppercase; letter-spacing: .06em; }
.branch dl { margin-top: var(--s4); display: grid; grid-template-columns: auto 1fr;
             gap: var(--s2) var(--s4); font-size: var(--step--1); }
.branch dt { color: var(--grey-soft); font-weight: 650; }
.branch dd { margin: 0; }

/* ---- Footer ------------------------------------------------------------- */
.footer { background: var(--ink); color: #d9d2d2; padding-block: var(--s8) var(--s6); margin-top: var(--s9); }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer h2 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em;
             color: var(--orange); margin-bottom: var(--s4); }
.footer ul { list-style: none; padding: 0; }
.footer li + li { margin-top: var(--s2); }
.footer__bottom { border-top: 1px solid #3a2f3a; margin-top: var(--s7); padding-top: var(--s5);
                  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
                  font-size: var(--step--1); }

/* ---- Utilities ---------------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-6 { margin-top: var(--s6); }

/* ---- Print --------------------------------------------------------------
   First aid gets printed and stuck on staffroom walls. Make that work. */
@media print {
  .header, .footer, .navtoggle, .alertbar, .noprint { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .steps > li { break-inside: avoid; border: 1px solid #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}

/* ==========================================================================
   VISUAL UPGRADE — richer surfaces, depth, and safe ambient motion
   ========================================================================== */

/* ---- Top helpline bar ----------------------------------------------------
   Highest-priority element on the page. A national helpline is the single most
   valuable thing a medical charity site can surface, and it must survive with
   CSS or JS unavailable. */
.topbar {
  background: linear-gradient(100deg, #a8171d 0%, var(--red) 46%, var(--accent-text) 100%);
  color: var(--white);
}
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s3) var(--s5); padding-block: var(--s3);
}
.topbar__help { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.topbar__label {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; opacity: .92;
}
.topbar__num {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.375rem); font-weight: 800;
  letter-spacing: .01em; color: var(--white); text-decoration: none;
  padding: var(--s1) var(--s3); border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.45);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--tr), border-color var(--tr);
}
.topbar__num:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.topbar__meta { font-size: var(--step--1); opacity: .95; }
.topbar__meta a { color: #fff; }
@media (max-width: 700px) { .topbar__meta { display: none; } }

/* Placeholder flag — removed once the real helpline is confirmed. */
.topbar__flag {
  font-size: .625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--white); color: var(--red); border-radius: 999px; padding: 2px 8px;
}

/* ---- Motion toggle ------------------------------------------------------- */
.motiontoggle {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: transparent; border: 2px solid var(--line); border-radius: 999px;
  min-height: 36px; padding: 0 var(--s3); font-size: var(--step--1); font-weight: 650;
  cursor: pointer; color: var(--grey-soft);
  transition: border-color var(--tr), color var(--tr);
}
.motiontoggle:hover { border-color: var(--grey-soft); color: var(--ink); }
.motiontoggle__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--positive-text);
}
html[data-motion="off"] .motiontoggle__dot { background: var(--grey-soft); }

/* ---- Hero, upgraded ------------------------------------------------------
   Ambient gradient wash. The drift cycle is 48s — roughly 0.02 Hz, some 150x
   slower than the 3 Hz flash threshold, and the two stops are close in
   luminance so the field never reads as a change in brightness. */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 12% -10%, #fdeee7 0%, transparent 62%),
    radial-gradient(900px 460px at 92% 8%, #fbe6e6 0%, transparent 58%),
    var(--paper);
}
.hero::after {
  content: ""; position: absolute; inset: -30%;
  background: radial-gradient(560px 560px at 30% 40%, rgba(243,117,53,.10), transparent 70%);
  animation: drift 48s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }
html[data-motion="off"] .hero::after { animation: none; }

.hero__grid { position: relative; z-index: 1; }
.hero h1 .accent {
  background: linear-gradient(96deg, var(--red) 10%, var(--accent-text) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__panel {
  background: linear-gradient(160deg, #2c212c 0%, var(--ink) 62%);
  position: relative; overflow: hidden;
}
.hero__panel::before {
  content: ""; position: absolute; top: -40%; right: -25%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243,117,53,.22), transparent 68%);
}
.hero__panel > * { position: relative; }
.hero__stat b { display: inline-block; min-width: 3.6ch; }

/* ---- Cards, upgraded ----------------------------------------------------- */
.card {
  position: relative; overflow: hidden;
  transition: transform 220ms var(--reveal-ease), border-color var(--tr), box-shadow var(--tr);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--reveal-ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card:focus-within { box-shadow: var(--shadow-lg); }
.card__icon { transition: transform 260ms var(--reveal-ease), background-color var(--tr); }
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); background: #fbe3d6; }

:root { --shadow-lg: 0 18px 40px rgba(32,24,32,.10), 0 6px 14px rgba(32,24,32,.06); }

/* ---- Section rhythm ------------------------------------------------------ */
.section--alt {
  background:
    linear-gradient(180deg, rgba(243,117,53,.05), transparent 220px),
    var(--bg-alt);
}
.rule {
  height: 4px; width: 68px; border-radius: 999px; border: 0;
  background: linear-gradient(90deg, var(--red), var(--orange));
  margin: var(--s4) 0 var(--s5);
}

/* ---- Numbered steps, upgraded -------------------------------------------- */
.steps > li {
  transition: transform 220ms var(--reveal-ease), box-shadow var(--tr), border-color var(--tr);
}
.steps > li:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.steps > li::before { box-shadow: 0 4px 10px rgba(199,31,37,.32); }

/* ---- Stat counters ------------------------------------------------------- */
.counter { font-variant-numeric: tabular-nums; }

/* ---- Illustration -------------------------------------------------------- */
.illus { width: 100%; height: auto; display: block; }
/* One-shot line draw, 1.4s, runs once on reveal. Not a loop. */
html.js .illus .draw {
  stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400);
}
html.js .reveal.is-in .illus .draw { animation: draw 1400ms var(--reveal-ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { html.js .illus .draw { stroke-dashoffset: 0; animation: none; } }
html[data-motion="off"] .illus .draw { stroke-dashoffset: 0; animation: none; }

/* ---- Link underline flourish --------------------------------------------- */
.card__link { position: relative; }
.card__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px;
  background: currentColor; transition: right 260ms var(--reveal-ease);
}
.card:hover .card__link::after, .card__link:hover::after { right: 0; }
.card__link:hover { text-decoration: none; }

/* ==========================================================================
   ASSISTANT WIDGET
   Progressive enhancement: injected by JS. With JS off, nothing appears and
   nothing is lost — every answer it gives also exists as a page.
   ========================================================================== */
.chat-fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60; display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 56px; padding: 0 var(--s5); border: 0; border-radius: 999px;
  background: var(--red); color: var(--white); font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 28px rgba(199,31,37,.34);
  transition: transform 220ms var(--reveal-ease), background-color var(--tr);
}
.chat-fab:hover { transform: translateY(-3px); background: var(--red-dark); }
.chat-fab[hidden] { display: none; }

.chat-panel {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 61; width: min(calc(100vw - 2rem), 400px); max-height: min(78vh, 640px);
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(32,24,32,.24);
  overflow: hidden;
}
.chat-panel[hidden] { display: none; }
html.js .chat-panel { animation: panel-in 260ms var(--reveal-ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.js .chat-panel { animation: none; } }
html[data-motion="off"] .chat-panel { animation: none; }

.chat-head {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5); background: var(--ink); color: var(--white);
}
.chat-head h2 { font-size: var(--step-0); margin: 0; }
.chat-head p { font-size: .75rem; color: #cfc7c7; margin: 0; }
.chat-close {
  margin-left: auto; background: transparent; border: 0; color: var(--white);
  font-size: 1.5rem; line-height: 1; cursor: pointer; width: 44px; height: 44px;
  border-radius: var(--radius);
}
.chat-close:hover { background: rgba(255,255,255,.14); }

.chat-log { flex: 1 1 auto; overflow-y: auto; padding: var(--s5); background: var(--paper); }
.chat-msg { max-width: 92%; margin-bottom: var(--s4); }
.chat-msg__bubble {
  padding: var(--s4); border-radius: var(--radius-lg); font-size: var(--step--1); line-height: 1.6;
}
.chat-msg--bot .chat-msg__bubble { background: var(--white); border: 1px solid var(--line); }
.chat-msg--user { margin-left: auto; }
.chat-msg--user .chat-msg__bubble { background: var(--red); color: var(--white); }
/* Emergency answers are visually distinct without relying on colour alone —
   they also carry an explicit heading. */
.chat-msg--emergency .chat-msg__bubble {
  background: #fdf2f2; border: 2px solid var(--red);
}
.chat-msg--emergency .chat-msg__bubble strong { color: var(--red); display: block; margin-bottom: var(--s2); }

.chat-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.chat-chip {
  display: inline-block; padding: var(--s2) var(--s3); border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: .8125rem; font-weight: 600; color: var(--accent-text);
  text-decoration: none; cursor: pointer;
  transition: border-color var(--tr), background-color var(--tr);
}
.chat-chip:hover { border-color: var(--accent-text); background: #fff6f0; }
.chat-call {
  display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s3);
  background: var(--red); color: var(--white); text-decoration: none; font-weight: 700;
  padding: var(--s3) var(--s4); border-radius: var(--radius); min-height: 44px;
}
.chat-disc { font-size: .6875rem; color: var(--grey-soft); margin-top: var(--s2); }

.chat-form { display: flex; gap: var(--s2); padding: var(--s4); border-top: 1px solid var(--line); background: var(--white); }
.chat-input { flex: 1 1 auto; min-height: 44px; padding: var(--s2) var(--s3);
              border: 2px solid var(--line); border-radius: var(--radius); }
.chat-input:focus { border-color: var(--red); outline: none; }
.chat-send { min-height: 44px; padding: 0 var(--s4); border: 0; border-radius: var(--radius);
             background: var(--red); color: var(--white); font-weight: 700; cursor: pointer; }
.chat-send:hover { background: var(--red-dark); }

/* Typing indicator: opacity fade at ~1.1 Hz — well under the 3 Hz flash
   threshold, low contrast, and only three small dots rather than a large
   field. Still removed entirely under reduced motion. */
.chat-dots { display: inline-flex; gap: 4px; }
.chat-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--grey-soft);
  animation: dot 900ms ease-in-out infinite alternate;
}
.chat-dots span:nth-child(2) { animation-delay: 150ms; }
.chat-dots span:nth-child(3) { animation-delay: 300ms; }
@keyframes dot { from { opacity: .3; } to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .chat-dots span { animation: none; opacity: .6; } }
html[data-motion="off"] .chat-dots span { animation: none; opacity: .6; }

/* ==========================================================================
   OVERHAUL ROUND 1 — editorial sections, data visuals, deeper page rhythm
   Same motion envelope as everything above: one-shot or tens-of-seconds,
   transform/opacity only, both kill-switches respected.
   ========================================================================== */

/* ---- Section eyebrow + heading pattern ---------------------------------- */
.sechead { max-width: 60ch; }
.sechead h2 { font-size: var(--step-3); }
.sechead .lede { margin-top: var(--s3); }

/* ---- Curved section divider ---------------------------------------------
   A single soft arc, not a stripe pattern — flat fills only. */
.divider { display: block; width: 100%; height: 56px; }
.divider--paper { color: var(--paper); }
.divider--ink { color: var(--ink); }

/* ---- Dark editorial band ------------------------------------------------ */
.band { background: linear-gradient(165deg, #2a1f2a 0%, var(--ink) 55%); color: #e9e2e2; position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; right: -12%; top: -30%;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243,117,53,.14), transparent 70%);
}
.band h2 { color: var(--white); }
.band .eyebrow { color: var(--orange); }
.band > .wrap { position: relative; }

/* ---- Impact timeline ----------------------------------------------------
   Vertical rule with alternating cards on wide screens. */
.timeline { position: relative; list-style: none; padding: 0; margin-top: var(--s7); }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, var(--red), var(--orange));
}
.timeline li { position: relative; padding: 0 0 var(--s6) var(--s7); }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 6px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--red);
}
.timeline time {
  display: inline-block; font-weight: 800; color: var(--accent-text);
  font-size: var(--step-1); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.timeline h3 { font-size: var(--step-0); margin-top: var(--s1); }
.timeline p { color: var(--grey-soft); font-size: var(--step--1); margin-top: var(--s1); max-width: 52ch; }
@media (min-width: 880px) {
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .timeline li { width: 50%; padding: 0 var(--s7) var(--s7) 0; text-align: right; }
  .timeline li::before { left: auto; right: -10px; }
  .timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 var(--s7) var(--s7); text-align: left; }
  .timeline li:nth-child(even)::before { right: auto; left: -10px; }
  .timeline p { margin-left: auto; }
  .timeline li:nth-child(even) p { margin-left: 0; }
}

/* ---- Myth / fact cards --------------------------------------------------- */
.myth { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
        background: var(--white); transition: transform 220ms var(--reveal-ease), box-shadow var(--tr); }
.myth:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.myth__myth { padding: var(--s4) var(--s5); background: var(--sand); }
.myth__myth p { font-weight: 650; color: var(--grey); text-decoration: line-through;
                text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.myth__label { font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.myth__myth .myth__label { color: var(--grey-soft); }
.myth__fact { padding: var(--s4) var(--s5); border-top: 3px solid var(--positive-text); }
.myth__fact .myth__label { color: var(--positive-text); }
.myth__fact p { margin-top: var(--s1); }

/* ---- FAQ accordion -------------------------------------------------------
   Native details/summary: keyboard and screen-reader behaviour for free. */
.faq { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.faq + .faq { margin-top: var(--s3); }
.faq summary {
  display: flex; align-items: center; gap: var(--s3); cursor: pointer;
  list-style: none; padding: var(--s4) var(--s5); font-weight: 700; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 700;
  color: var(--accent-text); transition: transform 200ms var(--reveal-ease);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq__body { padding: 0 var(--s5) var(--s5); color: var(--grey-soft); }
.faq__body a { color: var(--brand); font-weight: 600; }

/* ---- Publications / news teasers ---------------------------------------- */
.pub { display: flex; flex-direction: column; border: 1px solid var(--line);
       border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
       transition: transform 220ms var(--reveal-ease), box-shadow var(--tr); }
.pub:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pub__media { aspect-ratio: 16/9; display: grid; place-items: center;
              background: linear-gradient(135deg, var(--sand), #fbe3d6); }
.pub__media svg { width: 52px; height: 52px; color: var(--accent-text); }
.pub__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.pub__tag { font-size: .6875rem; font-weight: 800; letter-spacing: .08em;
            text-transform: uppercase; color: var(--accent-text); }
.pub h3 { font-size: var(--step-0); }
.pub p { color: var(--grey-soft); font-size: var(--step--1); }
.pub .card__link { margin-top: auto; }

/* ---- Partner strip ------------------------------------------------------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.partners__badge {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: var(--s3) var(--s5); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--grey); font-weight: 700; font-size: var(--step--1);
}
.partners__badge small { font-weight: 500; color: var(--grey-soft); font-size: .6875rem; }

/* ---- Newsletter ---------------------------------------------------------- */
.newsletter { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 880px) { .newsletter { grid-template-columns: 1.1fr 1fr; } }
.newsletter__form { display: grid; gap: var(--s3); }
.newsletter__row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.newsletter__row .field { flex: 1 1 240px; }
.newsletter__consent { display: flex; gap: var(--s3); align-items: flex-start;
                       font-size: var(--step--1); color: var(--grey-soft); }
.newsletter__consent input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--red); }

/* ---- Hero backdrop illustration ------------------------------------------
   Decorative neural filaments behind the hero panel. aria-hidden, very low
   contrast against the paper background, one-shot draw. */
.hero__art { position: absolute; right: -4%; top: 4%; width: 46%; max-width: 560px;
             opacity: .5; pointer-events: none; }
@media (max-width: 899px) { .hero__art { display: none; } }

/* ---- Synapse diagram (about page) ---------------------------------------- */
.diagram { border: 1px solid var(--line); border-radius: var(--radius-lg);
           background: var(--paper); padding: var(--s6); }
.diagram figcaption { font-size: var(--step--1); color: var(--grey-soft); margin-top: var(--s4); max-width: 60ch; }

/* ---- Trust / review meta -------------------------------------------------- */
.reviewmeta {
  display: inline-flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center;
  font-size: var(--step--1); color: var(--grey-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: var(--s2) var(--s4);
  background: var(--white);
}
.reviewmeta strong { color: var(--ink); }
.reviewmeta .pending { color: var(--accent-text); font-weight: 650; }

/* ---- Breadcrumbs ---------------------------------------------------------- */
.crumbs { font-size: var(--step--1); color: var(--grey-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); color: var(--line); }
.crumbs a { color: var(--grey-soft); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 650; }

/* ---- CTA banner ----------------------------------------------------------- */
.ctaband { border-radius: var(--radius-lg); overflow: hidden; position: relative;
           background: linear-gradient(120deg, var(--red) 0%, #a8171d 100%); color: var(--white);
           padding: clamp(var(--s6), 5vw, var(--s8)); }
.ctaband::after { content: ""; position: absolute; right: -60px; bottom: -80px;
                  width: 280px; height: 280px; border-radius: 50%;
                  background: rgba(255,255,255,.08); }
.ctaband h2 { font-size: var(--step-2); max-width: 24ch; }
.ctaband p { max-width: 52ch; margin-top: var(--s3); color: #ffe3d6; }
.ctaband .btn { position: relative; z-index: 1; }
.ctaband .btn--onred { background: var(--white); color: var(--red); }
.ctaband .btn--onred:hover { background: var(--paper); }

/* ==========================================================================
   FORMATTING FIXES + ILLUSTRATION PASS
   ========================================================================== */

/* ---- Page-head pattern: replaces per-page inline styles ------------------ */
.page-head { position: relative; }
.page-title { font-size: var(--step-4); max-width: 18ch; }
.page-lede { max-width: 56ch; margin-top: var(--s4); }
.page-art { position: absolute; right: 0; top: 50%; transform: translateY(-50%);
            width: min(280px, 24vw); pointer-events: none; }
@media (max-width: 899px) { .page-art { display: none; } }

/* ---- FIX: dark-band timeline contrast ------------------------------------
   .timeline p is grey-soft (#6f6f72), which on the ink band is ~2.4:1 — an
   accessibility failure. Same for --accent-text dates (dark orange on dark).
   On the band, lift both to values that clear 4.5:1 against #201820. */
.band .timeline p { color: #c9c0c0; }
.band .timeline time { color: var(--orange); }          /* 6.11:1 on ink */
.band .timeline li::before { border-color: var(--orange); background: var(--ink); }
.band .timeline::before { background: linear-gradient(180deg, var(--orange), var(--red)); }

/* ---- FIX: nav overflow between ~940px and ~1150px ------------------------
   Nine items no longer fit above 940px; the row clipped. Burger now appears
   up to 1150px, and the desktop row is allowed to breathe tighter. */
.nav__list { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
@media (min-width: 1151px) { .nav__link { padding-inline: var(--s3); } }
@media (max-width: 1150px) and (min-width: 941px) {
  .navtoggle { display: inline-flex; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--white);
         border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
         margin: 0; padding: var(--s4) 0 var(--s6); display: none; }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0;
               width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .nav__link { padding: var(--s4) var(--s3); font-size: var(--step-0);
               border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
  .nav__emergency { border-radius: var(--radius); margin-top: var(--s4);
                    border-bottom: 0; text-align: center; }
}

/* ---- FIX: crumbs spacing --------------------------------------------------
   Breadcrumbs sat inside their own .wrap with ad-hoc padding; give the block
   a settled rhythm instead. */
.crumbs { padding-top: 0; margin-bottom: var(--s4); }

/* ---- Illustration scenes -------------------------------------------------- */
.scene { border: 1px solid var(--line); border-radius: var(--radius-lg);
         background: var(--white); padding: var(--s5); }
.scene figcaption { font-size: var(--step--1); color: var(--grey-soft); margin-top: var(--s3); }

/* Branch map */
.samap { display: grid; gap: var(--s6); align-items: center; margin-bottom: var(--s7); }
@media (min-width: 900px) { .samap { grid-template-columns: 1.1fr 1fr; } }
.samap__note { font-size: var(--step--1); color: var(--grey-soft); margin-top: var(--s3); }
.samap svg { width: 100%; height: auto; }
.samap .pin { transition: transform 200ms var(--reveal-ease); transform-box: fill-box; transform-origin: center; }
.samap .pin:hover { transform: scale(1.35); }

/* ==========================================================================
   REAL IMAGERY — official brand assets + licensed photography
   Red/orange focus: photos carry a subtle warm brand wash so every image
   sits inside the palette instead of fighting it.
   ========================================================================== */

/* ---- Brand logo in header ------------------------------------------------ */
.brand img { height: 46px; width: auto; }
.brand__chip {
  font-size: .625rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--orange); color: var(--ink); border-radius: 999px; padding: 3px 9px;
  align-self: flex-start; margin-top: 2px;
}
.footer__logo { height: 44px; width: auto; margin-bottom: var(--s4); }

/* ---- Photography --------------------------------------------------------- */
.photo { border-radius: var(--radius-lg); overflow: hidden; position: relative;
         box-shadow: var(--shadow-md); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* warm wash: static gradient, multiply — ties any photo to the brand */
.photo--warm::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(199,31,37,.16), rgba(243,117,53,.14));
  mix-blend-mode: multiply; }
.photo__credit { position: absolute; right: 0; bottom: 0;
  font-size: .625rem; color: #fff; background: rgba(32,24,32,.62);
  padding: 3px 8px; border-top-left-radius: var(--radius); }
.photo__credit a { color: #fff; }

figure.photo-fig { margin: 0; }
figure.photo-fig > figcaption { font-size: var(--step--1); color: var(--grey-soft);
                                margin-top: var(--s3); }

/* ---- Full-width brand-toned photo band ----------------------------------- */
.photoband { position: relative; overflow: hidden; color: #fff; }
.photoband__img { position: absolute; inset: 0; width: 100%; height: 100%;
                  object-fit: cover; filter: saturate(.55); }
.photoband::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(138,15,20,.88) 0%, rgba(199,31,37,.72) 45%, rgba(205,77,12,.55) 100%); }
.photoband > .wrap { position: relative; z-index: 2; padding-block: clamp(var(--s7), 7vw, var(--s9)); }
.photoband h2 { color: #fff; font-size: var(--step-3); max-width: 22ch; }
.photoband p { color: #ffe3d6; max-width: 56ch; margin-top: var(--s3); }
.photoband .photo__credit { z-index: 2; }

/* ---- Campaign tiles: real artwork ---------------------------------------- */
.pub__media { position: relative; }
.pub__media img { width: 100%; height: 100%; object-fit: cover; }
.pub__media--contain { background: var(--sand); padding: var(--s5); }
.pub__media--contain img { object-fit: contain; }

/* ---- Partner logos -------------------------------------------------------- */
.partners__badge img { height: 40px; width: auto; display: block; }
.partners__badge--img { background: var(--white); }

/* ==========================================================================
   AGENCY PASS — fixes driven by actual rendered screenshots
   ========================================================================== */

/* ---- FIX 1: first-paint pallor -------------------------------------------
   Screenshots showed the whole page at half opacity: reveal animations were
   applied to above-the-fold content, so first paint (and LCP) rendered a
   washed-out page. Elements already in view now appear instantly; only
   below-fold content animates in. .instant is set by JS. */
.reveal.instant, .reveal-group.instant, .reveal-group.instant > * { transition: none !important; }
:root { --reveal-dur: 480ms; }
html.js .reveal { transform: translateY(14px); }
html.js .reveal-group > * { transform: translateY(12px); }

/* ---- FIX 2: photographic hero --------------------------------------------
   Replaces the pale gradient hero + stray neural squiggles (which collided
   with the stats panel) with a full-bleed Kruger sunrise — the brand palette
   as an actual photograph. Deep ink-to-transparent scrim keeps text at AAA. */
.hero--photo { background: var(--ink); border-bottom: 0; }
.hero--photo::after { content: none; }               /* kill ambient drift */
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%;
            object-fit: cover; object-position: center 38%; }
.hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(97deg, rgba(22,13,15,.90) 0%, rgba(22,13,15,.74) 36%,
              rgba(199,31,37,.30) 70%, rgba(205,77,12,.10) 100%); }
.hero--photo .hero__grid { position: relative; z-index: 2; }
.hero--photo h1 { color: #fff; }
.hero--photo h1 .accent { background: none; -webkit-text-fill-color: currentColor;
                          color: var(--orange); }
.hero--photo .eyebrow { color: var(--orange); }
.hero--photo .hero__lede { color: #f0e2d8; }
.hero--photo .rule { background: linear-gradient(90deg, var(--orange), #fff0); }
.hero--photo .hero__panel { background: rgba(30,20,26,.66);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost-light:hover { background: #fff; color: var(--red); border-color: #fff; }
.hero--photo .photo__credit { z-index: 2; }

/* ---- FIX 3: header chrome -------------------------------------------------
   The ACTION chip overlapped the logo; the motion toggle bloated the nav onto
   a second row. Chip now sits cleanly beside the logo; the toggle lives in
   the top bar as a compact control. */
.brand { align-items: center; gap: var(--s3); }
.brand__chip { align-self: center; margin: 0; }
.topbar .motiontoggle { border-color: rgba(255,255,255,.5); color: #fff; min-height: 32px;
                        font-size: .75rem; }
.topbar .motiontoggle:hover { border-color: #fff; color: #fff; }
.topbar .motiontoggle__dot { background: #ffe3d6; }
html[data-motion="off"] .topbar .motiontoggle__dot { background: rgba(255,255,255,.45); }

/* ---- FIX 4: photo band legibility -----------------------------------------
   The red overlay was so heavy the Table Mountain photo read as a flat red
   rectangle. Left-weighted scrim: text stays readable, photo actually shows. */
.photoband__img { filter: saturate(.85); }
.photoband::before {
  background: linear-gradient(100deg, rgba(120,12,16,.86) 0%, rgba(160,20,25,.62) 45%,
              rgba(205,77,12,.22) 78%, rgba(205,77,12,.08) 100%); }

/* ==========================================================================
   PAGE HEROES — photographic page-heads for interior pages
   ========================================================================== */
.pagehero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.pagehero__img { position: absolute; inset: 0; width: 100%; height: 100%;
                 object-fit: cover; object-position: center 45%; }
.pagehero__scrim { position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22,13,15,.88) 0%, rgba(22,13,15,.68) 38%,
              rgba(120,12,16,.34) 70%, rgba(205,77,12,.12) 100%); }
.pagehero__content { position: relative; z-index: 2;
                     padding-block: clamp(var(--s6), 6vw, var(--s8)); }
.pagehero .page-title { color: #fff; }
.pagehero .eyebrow { color: var(--orange); }
.pagehero .page-lede { color: #f0e2d8; }
.pagehero .crumbs { margin-bottom: var(--s4); padding-top: 0; }
.pagehero .crumbs, .pagehero .crumbs a { color: #e5d6cf; }
.pagehero .crumbs a:hover { color: #fff; }
.pagehero .crumbs [aria-current] { color: #fff; }
.pagehero .crumbs li + li::before { color: rgba(255,255,255,.4); }
.pagehero .reviewmeta { border-color: transparent; }
.pagehero .photo__credit { z-index: 2; }

/* ---- Header: national number in the sticky bar --------------------------- */
.header__call { display: inline-flex; align-items: center; gap: var(--s2);
  margin-left: var(--s4); background: var(--red); color: #fff; font-weight: 800;
  min-height: 42px; padding: var(--s2) var(--s4); border-radius: 999px;
  text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: background-color var(--tr); }
.header__call:hover { background: var(--red-dark); }
@media (max-width: 460px) { .header__call span { display: none; }
  .header__call { padding: var(--s2); min-width: 42px; justify-content: center; } }

/* ---- Top bar: compact on mobile -------------------------------------------
   The sticky header now carries the helpline, so the red bar can collapse to
   the emergency essentials on small screens instead of stacking three rows. */
@media (max-width: 700px) {
  .topbar__help { display: none; }
  .topbar__meta { display: block; font-size: .8125rem; }
}

/* One-row header with the call pill present: tighten link metrics on desktop.
   Without this, eight items + logo + pill exceeded 1440px and wrapped. */
@media (min-width: 1151px) {
  .nav__list { gap: var(--s1); }
  .nav__link { padding-inline: var(--s2); font-size: .875rem; }
  .header__call { margin-left: var(--s3); padding-inline: var(--s3); }
  .header__bar { gap: var(--s4); }
}

/* Small screens: the full-size logo pushed the helpline pill off-canvas. */
@media (max-width: 700px) {
  .brand img { height: 36px; }
  .brand__chip { font-size: .5625rem; padding: 2px 7px; }
  .header__bar { min-height: 62px; }
  .nav { inset: 62px 0 auto 0; }
}
@media (max-width: 700px) {
  .header__bar { gap: var(--s3); }
  .header__call { margin-left: 0; }
  .brand { gap: var(--s2); }
}

/* ==========================================================================
   DESIGN-DIRECTOR PASS — header stack rebuilt
   Diagnosis from screenshots: the helpline number appeared TWICE within 60px
   (topbar box + header pill); the topbar stacked five competing elements and
   wrapped to two rows at 1024; red-gradient bar + red pill + red CTAs drowned
   the brand red. Remedy: ink utility strip (emergency only, one row), number
   lives once in the sticky header, red reserved for action.
   ========================================================================== */
.topbar { background: var(--ink); }
.topbar__inner { justify-content: space-between; padding-block: var(--s2);
                 flex-wrap: nowrap; }
.topbar__meta { display: block; font-size: .8125rem; color: #cfc5c5;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__meta strong { color: var(--orange); font-weight: 800;
                       letter-spacing: .06em; text-transform: uppercase;
                       font-size: .6875rem; margin-right: var(--s2); }
.topbar__meta a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.topbar__meta a:hover { text-decoration-color: #fff; }
.topbar .motiontoggle { border-color: rgba(255,255,255,.28); color: #cfc5c5;
                        min-height: 28px; font-size: .6875rem; flex: 0 0 auto; }
.topbar .motiontoggle:hover { border-color: rgba(255,255,255,.6); color: #fff; }

/* Helpline pill + quiet placeholder flag */
.header__callwrap { display: inline-flex; align-items: center; gap: var(--s2);
                    margin-left: var(--s3); }
.header__call { margin-left: 0; box-shadow: 0 4px 14px rgba(199,31,37,.28); }
.header__flag { font-size: .5625rem; font-weight: 800; letter-spacing: .1em;
                text-transform: uppercase; color: var(--accent-text);
                border: 1px solid #eecdb5; background: #fff6ef;
                border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
@media (max-width: 700px) { .header__flag { display: none; } }
@media (max-width: 460px) { .header__callnum { display: none; }
  .header__call { padding: var(--s2); min-width: 42px; justify-content: center; } }

/* A whisper of depth so the white header reads as a surface over the heroes */
.header { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(32,24,32,.05); border-bottom: 0; }
/* Placeholder flag hangs below the pill — annotation, not a row participant.
   In-flow it pushed the nav onto a second line at 1440. */
.header__callwrap { position: relative; }
.header__flag { position: absolute; top: calc(100% + 3px); right: 4px; }
/* Emergency strip degrades by dropping whole items — never by truncating a
   phone number mid-digits. */
.topbar__meta { overflow: visible; text-overflow: clip; }
@media (max-width: 640px) { .topbar__extra2 { display: none; } }
@media (max-width: 480px) { .topbar__extra { display: none; } }

/* ==========================================================================
   EDITORIAL TYPOGRAPHY — Source Serif 4 for display headings
   Self-hosted variable font (latin subset, 27-40KB), SIL Open Font License.
   The serif carries the "calm clinical authority" register at display sizes;
   body text stays on the system sans stack for legibility and zero cost.
   font-display: swap — headings render in the fallback serif immediately.
   ========================================================================== */
@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4-latin.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
:root { --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif; }

h1, .page-title, .hero h1 { font-family: var(--font-serif); font-weight: 600;
                            letter-spacing: -0.01em; }
.sechead h2, .prose h2, .band h2, .photoband h2,
.ctaband h2, .newsletter h2 { font-family: var(--font-serif); font-weight: 600;
                              letter-spacing: -0.005em; }
/* Keep small/functional headings on the sans — the serif is a display voice,
   not a body voice. Cards, nav, forms, steps stay sans. */

/* ---- Header search (Mayo/Epilepsy Action pattern: visible, not icon-only) */
.topbar__search { display: flex; gap: 0; flex: 0 1 300px; }
.topbar__search input { flex: 1; min-width: 120px; min-height: 28px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px 0 0 999px;
  background: rgba(255,255,255,.08); color: #fff; padding: 0 var(--s3);
  font-size: .8125rem; }
.topbar__search input::placeholder { color: #a99f9f; }
.topbar__search input:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,.14); }
.topbar__search button { min-height: 28px; border: 1px solid rgba(255,255,255,.28);
  border-left: 0; border-radius: 0 999px 999px 0; background: rgba(255,255,255,.12);
  color: #fff; font-size: .75rem; font-weight: 650; padding: 0 var(--s3); cursor: pointer; }
.topbar__search button:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
@media (max-width: 899px) { .topbar__search { display: none; } }

.nav__search { display: none; }
@media (max-width: 1150px) {
  .nav__search { display: flex; gap: var(--s2);
    width: min(100% - 2.5rem, var(--wrap)); margin: 0 auto var(--s4); }
  .nav__search input { flex: 1; }
}

/* ---- End-of-article trust chrome ---------------------------------------- */
.refblock { border-top: 1px solid var(--line); margin-top: var(--s7); padding-top: var(--s5); }
.refblock__byline { font-size: var(--step--1); color: var(--grey-soft); margin-bottom: var(--s3); }
/* Eight nav items + two pills on one 1200px row: final metrics. */
@media (min-width: 1151px) {
  .nav__link { font-size: .8125rem; padding-inline: 7px; }
  .brand img { height: 42px; }
  .header__call { font-size: .875rem; padding-inline: var(--s3); min-height: 40px; }
  .nav__emergency { font-size: .8125rem; }
}

/* ==========================================================================
   HEADER REFINEMENT — helpline as editorial text, single red action
   The pill + hanging placeholder tag + logo chip all read as clutter in
   review. Now: logo alone; quiet two-line helpline text block; the First aid
   pill is the ONE red element in the header row.
   ========================================================================== */
.helpline { display: flex; flex-direction: column; align-items: flex-start;
            margin-left: var(--s4); line-height: 1.25; }
.helpline__label { font-size: .625rem; font-weight: 800; letter-spacing: .09em;
                   text-transform: uppercase; color: var(--grey-soft); }
.helpline__num { font-size: 1.0625rem; font-weight: 800; color: var(--ink);
                 text-decoration: none; font-variant-numeric: tabular-nums;
                 letter-spacing: .01em; transition: color var(--tr); }
.helpline__num:hover { color: var(--red); }
.helpline__note { color: var(--accent-text); font-weight: 700; }
@media (max-width: 700px) { .helpline { display: none; } }

.header__call--mobile { display: none; }
@media (max-width: 700px) {
  .header__call--mobile { display: inline-flex; margin-left: 0;
    padding: var(--s2); min-width: 42px; justify-content: center; }
}

/* A11y: links inside footer prose must not rely on colour alone (axe
   link-in-text-block). Underline them; nav-style link lists are exempt. */
.footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }
/* Callout headings may open a section directly under the page h1 —
   they are h2s styled at h3 scale so heading order never skips. */
.callout h2 { font-size: var(--step-1); margin-bottom: var(--s2); }

/* ==========================================================================
   EDITORIAL 3.0 — art-direction rebuild
   Direction: national healthcare institution. 80% warm neutral, 15% ink,
   5% flame. Typography builds structure; cards recede; photography is
   sparse and human. Cascade note: this layer intentionally overrides the
   component look above it — later rules win at equal specificity.
   ========================================================================== */

/* ---- Token corrections --------------------------------------------------- */
:root {
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: none;
  --shadow-md: 0 1px 2px rgba(32,24,32,.05);
  --shadow-lg: 0 8px 30px rgba(32,24,32,.08);
  --step-5: clamp(2.75rem, 1.9rem + 4.2vw, 5rem);      /* display scale */
  --measure: 66ch;
}
@font-face {                       /* widen the variable range: 400–700 */
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Eyebrows: quiet by default; flame only earns its keep on dark ground */
.eyebrow { color: var(--grey-soft); font-size: .75rem; letter-spacing: .14em; }
.band .eyebrow, .photoband .eyebrow, .pagehero .eyebrow { color: var(--orange); }

/* De-chrome: cards stop floating */
.card { box-shadow: none; border-color: var(--line); }
.card:hover { transform: none; box-shadow: none; border-color: var(--grey-soft); }
.card::before { content: none; }
.card:hover .card__icon { transform: none; }
.btn { border-radius: var(--radius); }
.pub:hover, .myth:hover { transform: none; box-shadow: none; }

/* ---- Two-level header ---------------------------------------------------- */
.utility { background: var(--paper); border-bottom: 1px solid var(--line);
           font-size: .8125rem; }
.utility__inner { display: flex; align-items: center; justify-content: space-between;
                  gap: var(--s4); min-height: 40px; }
.utility__phone { display: inline-flex; align-items: baseline; gap: var(--s2);
                  color: var(--ink); text-decoration: none; font-weight: 650;
                  font-variant-numeric: tabular-nums; }
.utility__phone span { font-weight: 500; color: var(--grey-soft); }
.utility__phone:hover { color: var(--red); }
.utility__links { display: flex; align-items: center; gap: var(--s5); list-style: none;
                  padding: 0; margin: 0; }
.utility__links a { color: var(--grey); text-decoration: none; }
.utility__links a:hover { color: var(--ink); text-decoration: underline;
                          text-underline-offset: 3px; }
.utility__links .u-firstaid { color: var(--red); font-weight: 700; }
@media (max-width: 700px) {
  .utility__links li:not(.u-keep) { display: none; }
  .utility { font-size: .78rem; }
}

.header { box-shadow: none; border-bottom: 1px solid var(--line); }
.header__bar { min-height: 84px; gap: var(--s5); }
.brand img { height: 50px; }
.nav__link { font-size: .9375rem; font-weight: 550; color: #3c333c;
             padding-inline: var(--s3); }
.nav__link:hover { background: none; color: var(--ink);
                   box-shadow: inset 0 -2px 0 var(--line); border-radius: 0; }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 700;
                                  box-shadow: inset 0 -2px 0 var(--red); }
.btn--donate { border: 1.5px solid var(--ink); color: var(--ink); background: none;
               font-weight: 650; min-height: 40px; padding: var(--s2) var(--s4);
               border-radius: var(--radius); }
.btn--donate:hover { background: var(--ink); color: #fff; }
/* Seven nav items since "Home" was added back (2026-09-03). At the 1151px floor
   of the desktop row the old spacing wrapped "About us" onto a second line, so
   the row runs tight here and only relaxes once there is room at 1320px. This
   is the last min-width:1151px block in the file and therefore the one that
   actually wins — earlier ones are overridden. */
@media (min-width: 1151px) {
  .nav__list { gap: var(--s1); }
  .nav__link { font-size: .9375rem; padding-inline: var(--s2); }
  .header__bar { gap: var(--s4); }
}
@media (min-width: 1320px) {
  .nav__list { gap: var(--s2); }
  .nav__link { padding-inline: var(--s3); }
  .header__bar { gap: var(--s5); }
}

/* ---- Split hero ----------------------------------------------------------- */
.hero2 { background: var(--bg); border-bottom: 1px solid var(--line); }
.hero2__grid { display: grid; align-items: stretch; }
@media (min-width: 960px) { .hero2__grid { grid-template-columns: 7fr 5fr; } }
.hero2__copy { padding: clamp(var(--s7), 7vw, calc(var(--s9) + var(--s6))) 0;
               max-width: 620px; }
.hero2 h1 { font-family: var(--font-serif); font-weight: 600;
            font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.022em; }
.hero2 h1 em { font-style: normal; color: var(--red); }
.hero2__lede { margin-top: var(--s5); font-size: var(--step-1); line-height: 1.55;
               color: var(--grey); max-width: 44ch; }
.hero2__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero2__support { margin-top: var(--s5); font-size: .875rem; color: var(--grey-soft); }
.hero2__support a { color: var(--ink); font-weight: 700; text-decoration: none;
                    font-variant-numeric: tabular-nums; }
.hero2__support a:hover { color: var(--red); }
.hero2__media { position: relative; min-height: 320px; }
.hero2__media img { position: absolute; inset: 0; width: 100%; height: 100%;
                    object-fit: cover; }
/* the flame mark: one quiet signature, not decoration scattered about */
.hero2__mark { position: absolute; left: -1px; bottom: 0; width: 64px; height: 64px;
               background: var(--red); display: grid; place-items: center; }
.hero2__mark svg { width: 30px; height: 30px; }
@media (max-width: 959px) { .hero2__media { min-height: 260px; margin: 0 calc(-1 * var(--s4)); } }

/* ---- Editorial task navigation ------------------------------------------- */
.tasknav { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.tasknav li { border-bottom: 1px solid var(--line); }
.tasknav a { display: flex; align-items: baseline; justify-content: space-between;
             gap: var(--s5); padding: var(--s5) var(--s2);
             text-decoration: none; color: var(--ink);
             transition: padding-left var(--tr); }
.tasknav a:hover { padding-left: var(--s4); }
.tasknav a:hover .tasknav__title { color: var(--red); }
.tasknav__title { font-family: var(--font-serif); font-weight: 600;
                  font-size: var(--step-2); letter-spacing: -.01em;
                  transition: color var(--tr); }
.tasknav__hint { color: var(--grey-soft); font-size: var(--step--1);
                 flex: 0 1 34ch; text-align: right; }
.tasknav__arrow { color: var(--red); font-size: var(--step-2); flex: 0 0 auto; }
@media (max-width: 700px) { .tasknav__hint { display: none; } }

/* ---- Editorial split blocks ---------------------------------------------- */
.edsplit { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 900px) { .edsplit { grid-template-columns: 4fr 7fr; gap: var(--s8); } }
.edsplit h2 { font-family: var(--font-serif); font-weight: 600; font-size: var(--step-3);
              letter-spacing: -.015em; line-height: 1.08; }
.edsplit__body { max-width: var(--measure); }
.edsplit__body > * + * { margin-top: var(--s4); }
.edsplit__body p { color: var(--grey); }
.edlinks { list-style: none; padding: 0; margin-top: var(--s5) !important; }
.edlinks li { border-top: 1px solid var(--line); }
.edlinks a { display: flex; justify-content: space-between; gap: var(--s4);
             padding: var(--s3) 0; text-decoration: none; color: var(--ink);
             font-weight: 600; }
.edlinks a:hover { color: var(--red); }

/* ---- Typographic statistics ---------------------------------------------- */
.statrow { display: grid; gap: var(--s7); text-align: center; }
@media (min-width: 800px) { .statrow { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.statrow__num { font-family: var(--font-serif); font-weight: 600;
                font-size: clamp(3rem, 2rem + 5vw, 5.5rem); line-height: 1;
                color: #fff; letter-spacing: -.02em; }
.statrow__num em { font-style: normal; color: var(--orange); }
.statrow__label { margin-top: var(--s3); color: #c9c0c0; font-size: var(--step--1);
                  max-width: 26ch; margin-inline: auto; line-height: 1.5; }
.statrow__src { text-align: center; margin-top: var(--s7); color: #8d8288;
                font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---- National support section --------------------------------------------- */
.natsupport { text-align: center; }
.natsupport h2 { font-family: var(--font-serif); font-weight: 600; font-size: var(--step-3); }
.natsupport__regions { margin: var(--s5) auto 0; max-width: 54ch; color: var(--grey-soft);
                       line-height: 2; }
.natsupport__regions b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.natsupport__phone { display: block; margin-top: var(--s6);
                     font-family: var(--font-serif); font-weight: 600;
                     font-size: var(--step-3); color: var(--ink); text-decoration: none;
                     font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.natsupport__phone:hover { color: var(--red); }

/* ---- Editorial resource rows ---------------------------------------------- */
.rrows { border-top: 1px solid var(--ink); }
.rrow { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s6);
        padding: var(--s5) var(--s2); border-bottom: 1px solid var(--line);
        align-items: center; }
.rrow h3 { font-family: var(--font-serif); font-weight: 600; font-size: var(--step-1);
           letter-spacing: -.01em; }
.rrow p { color: var(--grey-soft); font-size: var(--step--1); margin-top: var(--s1);
          max-width: 62ch; }
.rrow__meta { color: var(--grey-soft); font-size: .78rem; letter-spacing: .04em;
              margin-top: var(--s2); text-transform: uppercase; }
.rrow__dl { grid-row: 1 / span 3; align-self: center; white-space: nowrap;
            font-weight: 650; color: var(--red); text-decoration: none; }
.rrow__dl:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .rrow { grid-template-columns: 1fr; }
  .rrow__dl { grid-row: auto; margin-top: var(--s2); } }
.rrow--thumb { grid-template-columns: 72px 1fr auto; }
.rrow--thumb img { width: 72px; height: 96px; object-fit: cover; grid-row: 1 / span 3; }
@media (max-width: 640px) { .rrow--thumb { grid-template-columns: 72px 1fr; } }

/* ---- Mission pull-quote ---------------------------------------------------- */
.mission { max-width: 30ch; margin-inline: auto; text-align: center; }
.mission blockquote { font-family: var(--font-serif); font-weight: 400;
                      font-size: var(--step-3); line-height: 1.25; color: var(--ink);
                      letter-spacing: -.01em; }
.mission blockquote strong { font-weight: 600; color: var(--red); }
.mission figcaption { margin-top: var(--s5); font-size: .78rem; letter-spacing: .12em;
                      text-transform: uppercase; color: var(--grey-soft); }

/* ---- First aid: editorial numbered steps ----------------------------------- */
.steps { counter-reset: step; border-top: 1px solid var(--ink); }
.steps > li { counter-increment: step; position: static; display: grid;
              grid-template-columns: 96px 1fr; gap: var(--s5);
              padding: var(--s6) var(--s2); border: 0;
              border-bottom: 1px solid var(--line); border-radius: 0;
              background: none; }
.steps > li::before { content: counter(step, decimal-leading-zero);
  position: static; width: auto; height: auto; border-radius: 0;
  background: none; box-shadow: none; display: block;
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); line-height: .9;
  color: var(--red); }
.steps > li:hover { transform: none; box-shadow: none; border-color: var(--line); }
.steps > li + li { margin-top: 0; }
.steps h3 { font-family: var(--font-serif); font-size: var(--step-2); font-weight: 600; }
.steps p { max-width: 58ch; }
@media (max-width: 560px) { .steps > li { grid-template-columns: 64px 1fr; gap: var(--s4); } }

.emergency-panel { background: var(--ink); color: #efe8e8; border-radius: var(--radius-lg);
                   padding: clamp(var(--s5), 4vw, var(--s7)); border-left: 6px solid var(--red); }
.emergency-panel h2 { color: #fff; font-family: var(--font-serif); font-size: var(--step-2); }
.emergency-panel ul { padding-left: var(--s5); margin-top: var(--s4); }
.emergency-panel li + li { margin-top: var(--s2); }
.emergency-panel strong { color: var(--orange); }
.emergency-panel .btn--primary { background: var(--red); }

/* ---- Refined review metadata ----------------------------------------------- */
.reviewmeta { border: 0; background: none; padding: 0; border-radius: 0;
              font-size: .8125rem; color: inherit; opacity: .92; }
.reviewmeta strong { color: inherit; font-weight: 650; }
.reviewmeta .pending { color: inherit; font-weight: 500; }
.reviewmeta .pending::before { content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: 1px; }
.pagehero .reviewmeta { color: #e8dcd4; }

/* ---- Article template with TOC --------------------------------------------- */
@media (min-width: 1100px) {
  .article-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr);
                  gap: var(--s8); align-items: start; }
  .article-toc { position: sticky; top: 104px; }
}
.article-toc { font-size: .875rem; }
.article-toc h2 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
                  color: var(--grey-soft); margin-bottom: var(--s3); font-family: var(--font-sans); }
.article-toc ol { list-style: none; padding: 0; border-left: 1px solid var(--line); }
.article-toc a { display: block; padding: var(--s2) 0 var(--s2) var(--s4);
                 color: var(--grey); text-decoration: none; border-left: 2px solid transparent;
                 margin-left: -1px; }
.article-toc a:hover { color: var(--red); border-left-color: var(--red); }
@media (max-width: 1099px) { .article-toc { display: none; } }

/* ---- Branch entries: editorial, not boxes ----------------------------------- */
.branch { border: 0; border-radius: 0; background: none; padding: var(--s5) 0 var(--s4);
          border-top: 2px solid var(--ink); }
.branch h3 { font-family: var(--font-serif); font-size: var(--step-2); font-weight: 600; }
.branch__region { color: var(--grey-soft); }

/* ---- Chat: part of the design system ----------------------------------------- */
.chat-fab { background: var(--ink); box-shadow: 0 6px 24px rgba(32,24,32,.28);
            border-radius: var(--radius-lg); font-family: var(--font-sans); }
.chat-fab:hover { background: #362b36; transform: translateY(-2px); }
.chat-head { background: var(--ink); }
.chat-panel { border-radius: var(--radius-lg); }
.chat-chip { border-radius: var(--radius); }
.chat-call { border-radius: var(--radius); }

/* ---- Footer: institutional ---------------------------------------------------- */
.footer { margin-top: 0; }
.footer h2 { font-family: var(--font-sans); }
.footer__legal { border-top: 1px solid #3a2f3a; margin-top: var(--s6); padding-top: var(--s5);
                 font-size: .8125rem; color: #a99e9e; display: grid; gap: var(--s3); }
.footer__legal a { color: #d9d2d2; }

/* Homepage sections breathe more */
.section--roomy { padding-block: clamp(var(--s8), 8vw, calc(var(--s9) + var(--s5))); }

/* Fixes from screenshot critique, round 1 */
/* Steps: pin the numeral to column 1 across all rows — paragraphs were
   falling into the 96px numeral column and setting one word per line. */
.steps > li::before { grid-column: 1; grid-row: 1 / span 4; }
.steps > li > * { grid-column: 2; }
/* Serif carries every section heading inside main content */
main h2:not(.visually-hidden) { font-family: var(--font-serif); letter-spacing: -.012em; }
/* Hero: one red is enough — secondary action in ink */
.hero2 .btn--ghost { color: var(--ink); border-color: var(--ink); }
.hero2 .btn--ghost:hover { background: var(--ink); color: #fff; }
/* Hero photo bleeds to the viewport edge on wide screens */
@media (min-width: 960px) {
  .hero2__media { margin-right: calc(50% - 50vw); }
}
/* Resource rows: explicit grid placement — auto-placement swapped columns */
.rrow > div { grid-column: 1; grid-row: 1; }
.rrow__dl { grid-column: 2; grid-row: 1; align-self: center; }
.rrow--thumb > img { grid-column: 1; grid-row: 1; }
.rrow--thumb > div { grid-column: 2; grid-row: 1; }
.rrow--thumb .rrow__dl { grid-column: 3; }
@media (max-width: 640px) {
  .rrow > div, .rrow__dl { grid-column: 1; grid-row: auto; }
  .rrow--thumb > div { grid-column: 2; }
  .rrow--thumb .rrow__dl { grid-column: 2; grid-row: auto; }
}
/* Mobile chrome: label yields to the number; Donate lives in menu + footer */
@media (max-width: 700px) {
  .utility__phone span { display: none; }
  .header .btn--donate { display: none; }
}
/* A11y regression fixes: components restyled for their new dark grounds */
.footer .motiontoggle { border-color: #5a4f58; color: #cfc5c5; }
.footer .motiontoggle:hover { border-color: #8d8288; color: #fff; }
.footer .motiontoggle__dot { background: var(--orange); }
html[data-motion="off"] .footer .motiontoggle__dot { background: #8d8288; }
.emergency-panel .btn--ghost { color: #fff; border-color: rgba(255,255,255,.72); }
.emergency-panel .btn--ghost:hover { background: #fff; color: var(--ink); }
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Find support: real cartography + accessible pin overlay ------------- */
.mapwrap { position: relative; }
.mapwrap > img { width: 100%; height: auto; display: block; }
.mappin { position: absolute; transform: translate(-50%, -50%);
          display: block; text-decoration: none; }
.mappin__dot { display: block; width: 14px; height: 14px; border-radius: 50%;
               background: var(--red); border: 2.5px solid #fff;
               box-shadow: 0 1px 4px rgba(32,24,32,.4); margin-inline: auto;
               transition: transform var(--tr); }
.mappin:hover .mappin__dot, .mappin:focus-visible .mappin__dot { transform: scale(1.5); }
.mappin__label { position: absolute; top: calc(100% + 2px); left: 50%;
                 transform: translateX(-50%); white-space: nowrap;
                 font-size: .72rem; font-weight: 700; color: var(--ink);
                 background: rgba(255,255,255,.88); padding: 1px 7px;
                 border-radius: 3px; letter-spacing: .02em; }
.mappin--above .mappin__label { top: auto; bottom: calc(100% + 2px); }
@media (max-width: 560px) { .mappin__label { font-size: .625rem; } }
.mappin--right .mappin__label { top: 50%; left: calc(100% + 4px);
  transform: translateY(-50%); bottom: auto; }

/* ==========================================================================
   RESOLUTION ADAPTATION — every screen gets a layout cut to its size
   Audit run 2026-08-10 at 320 / 375 / 768 / 1024 / 1440 / 1920 / 2560.
   ========================================================================== */

/* ---- FIX: branches overflow at narrow widths ------------------------------
   .branch dl is a two-column grid (label / value). At <=480px the value
   column is too narrow for street addresses, and un-breakable strings
   (email addresses) pushed the page into horizontal scroll at 320px.
   Stack the pairs, and let long tokens wrap anywhere. */
.branch dd, .branch dd a { overflow-wrap: anywhere; }
/* Wide screens, second finding (2560 sweep): the auto label column sized
   itself to "Office hours / after hours", squeezing values until email
   addresses broke mid-token. Cap the label column instead — long labels
   wrap, addresses and emails keep their width. */
.branch dl { grid-template-columns: fit-content(7.5rem) 1fr; }
@media (max-width: 480px) {
  .branch dl { grid-template-columns: 1fr; gap: 0; }
  .branch dt { margin-top: var(--s3); }
  .branch dt:first-of-type { margin-top: 0; }
  .branch dd { margin-top: 2px; }
}

/* ---- FIX: full-bleed hero vs. scrollbar width -----------------------------
   .hero2__media bleeds to the viewport edge with calc(50% - 50vw). 100vw
   includes the scrollbar on browsers with classic (non-overlay) scrollbars,
   which produced a few px of horizontal scroll on every desktop view.
   Clip at the section: the bleed still reaches the edge, nothing escapes.
   (clip, unlike hidden, never creates a scroll container.) */
.hero2 { overflow-x: hidden; overflow-x: clip; }

/* ---- Large & high-resolution screens --------------------------------------
   Below 1680px the fluid type scale (clamp + vw) already tracks the
   viewport. Above it, everything used to pin at its ceiling inside a fixed
   1200px column — a 2560px display got the same physical layout as a
   laptop, at ~47% of the screen. The wrap is now rem-based, so ramping the
   root font-size scales type, spacing and column width together —
   proportionally, like a print enlargement, with line lengths (ch/rem
   measures) preserved.
   16px at 1680px -> ~16.8px at 1920px -> 19px cap from ~2500px.
   Pixel breakpoints are unaffected (media queries resolve against the
   viewport, not the root font), and user font-size preferences still
   multiply through, since % inherits from the browser default. */
@media (min-width: 1680px) {
  html { font-size: clamp(100%, 64.2% + 0.341vw, 118.75%); }
  /* Header chrome is metered in px at smaller sizes (deliberately tuned);
     above the ramp threshold it joins the proportional scale. Values are
     the px equivalents at 16px root. */
  .header__bar { min-height: 5.25rem; }     /* 84px */
  .brand img { height: 3.125rem; }          /* 50px */
  .footer__logo { height: 2.75rem; }        /* 44px */
  .utility__inner { min-height: 2.5rem; }   /* 40px */
  .article-toc { top: 6.5rem; }             /* clears the scaled sticky header */
}

/* Campaign banner (Ride Joburg 2026) — the supplied artwork full-bleed
   under the header, one link, static by design. The artwork's dark ground
   sits flush against the header rule; no border or radius. */
/* The Ride Joburg 2026 campaign banner was removed from the home page on
   2026-09-03 at the client's request. The artwork is still in
   assets/img/ride-joburg-2026-banner{,-sm}.jpg — to bring it back, restore the
   .campaign-hero block at the top of index.php and these two rules. */

/* ---- Telephone numbers --------------------------------------------------
   There is no global `a` rule in this file, so a bare <a href="tel:…"> fell
   through to the browser default and rendered blue-and-underlined — the branch
   cards, the contact aside and the About us office block all read as raw
   hyperlinks rather than as contact details.

   These are set solid instead. The tel: href stays, so a phone still dials
   them, and the affordance comes back on hover and on keyboard focus — the
   number is still discoverably tappable, it just is not shouting at rest.

   :not([class]) deliberately leaves alone every phone link that already has a
   deliberate treatment: .btn call buttons, .utility__phone, .header__call,
   .natsupport__phone and .hero2__support. */
a[href^="tel:"]:not([class]) {
  color: inherit;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
a[href^="tel:"]:not([class]):hover,
a[href^="tel:"]:not([class]):focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  color: var(--red);
}

/* Emergency numbers are solid too — no blue, no underline at rest — but they
   stay visually distinct, because on a phone these are the tap target that
   matters most and they must not disappear into the sentence around them.
   Red at 5.9:1 on paper, so it carries on its own without a decoration. */
a[href^="tel:10177"]:not([class]),
a[href^="tel:112"]:not([class]) { color: var(--red); font-weight: 700; }

/* The footer sets its own link treatment on a dark ground, and the emergency
   ambulance numbers there keep their underline on purpose — that block is the
   last-resort route to help. Equal specificity, later in source, so it wins. */
.footer a[href^="tel:"] {
  color: var(--white); text-decoration: underline; text-underline-offset: 2px;
}
.footer a[href^="tel:"]:hover { color: var(--white); }
