/* ==========================================================================
   InclusionFirst Education — design system
   Palette derived from the logo: cream ground, lime → green → teal → blue arc.
   Built to WCAG 2.2 AA. All text/background pairs below are contrast-checked;
   see accessibility.html before changing any colour.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Brand ramp, straight off the logo arc */
  --lime:       #8CC63F;
  --green:      #52B15B;
  --green-deep: #3D8E48;   /* 4.6:1 on white — safe for text */
  --teal-mid:   #2E9E92;
  --teal:       #17707F;   /* primary. 5.4:1 on white */
  --teal-deep:  #0E5A68;   /* 7.6:1 on white — AAA */
  --blue:       #2C6D9E;
  --blue-deep:  #1F5279;

  /* Neutrals */
  --ink:        #12303A;   /* body text. 13.9:1 on white */
  --ink-soft:   #40616C;   /* secondary text. 5.9:1 on white */
  --cream:      #F8F4EC;
  --cream-warm: #F2ECE0;
  --line:       #DCD5C7;
  --white:      #FFFFFF;

  /* Brand tints — pale washes of the arc colours, for section and card
     backgrounds. Light enough that --ink still clears 12:1 on all of them. */
  --tint-lime:  #F3F8E9;
  --tint-green: #EDF6EA;
  --tint-teal:  #E8F3F3;
  --tint-blue:  #EAF2F8;

  /* The arc itself, as a reusable gradient for rules and keylines.
     Every colour referenced here must exist above — one undefined custom
     property invalidates the whole gradient and it silently renders as none. */
  --arc: linear-gradient(90deg,
          var(--lime) 0 20%, var(--green) 20% 40%, var(--teal-mid) 40% 60%,
          var(--teal) 60% 80%, var(--blue) 80% 100%);
  --arc-smooth: linear-gradient(90deg,
          var(--lime), var(--green), var(--teal-mid), var(--teal), var(--blue));

  /* Semantic surfaces */
  --bg:            var(--cream);
  --bg-raised:     var(--white);
  --bg-sunken:     var(--cream-warm);
  --bg-invert:     var(--teal-deep);
  --text:          var(--ink);
  --text-soft:     var(--ink-soft);
  --text-invert:   #EAF4F5;
  --border:        var(--line);
  --accent:        var(--teal);
  --accent-strong: var(--teal-deep);
  --link:          var(--teal-deep);
  --focus:         #A63A12;   /* warm, deliberately outside the palette so it
                                 never reads as decoration. 5.1:1 on cream */

  /* Type scale — fluid, capped so it never runs away on wide screens */
  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1:  clamp(1.17rem, 1.11rem + 0.3vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.28rem + 0.6vw, 1.8rem);
  --step-3:  clamp(1.68rem, 1.45rem + 1.1vw, 2.4rem);
  --step-4:  clamp(2rem, 1.6rem + 1.9vw, 3.15rem);

  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
          "Helvetica Neue", Arial, sans-serif;

  /* Spacing, radii, shadow */
  --sp-1: 0.375rem;  --sp-2: 0.75rem;  --sp-3: 1.125rem;
  --sp-4: 1.75rem;   --sp-5: 2.5rem;   --sp-6: 4rem;  --sp-7: 6rem;
  --r-sm: 8px;  --r: 14px;  --r-lg: 22px;  --r-pill: 999px;
  --shadow:    0 1px 2px rgba(18, 48, 58, 0.06), 0 4px 16px rgba(18, 48, 58, 0.06);
  --shadow-lg: 0 2px 4px rgba(18, 48, 58, 0.05), 0 16px 40px rgba(18, 48, 58, 0.11);
  --wrap: 1140px;
  --measure: 68ch;
}

/* Dark scheme. Warm-neutral rather than pure grey so the brand still reads. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tint-lime:     #1E2C1B;
    --tint-green:    #17302A;
    --tint-teal:     #14302F;
    --tint-blue:     #16293A;
    --bg:            #10242B;
    --bg-raised:     #16313A;
    --bg-sunken:     #0C1C22;
    --bg-invert:     #0A171C;
    --text:          #E7EFF0;
    --text-soft:     #A9C0C5;
    --text-invert:   #E7EFF0;
    --border:        #2A4A54;
    --accent:        #4FBFC9;
    --accent-strong: #7FD6DC;
    --link:          #7FD6DC;
    --focus:         #FFA36B;
    --shadow:    0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --bg: #10242B;  --bg-raised: #16313A;  --bg-sunken: #0C1C22;
  --bg-invert: #0A171C;  --text: #E7EFF0;  --text-soft: #A9C0C5;
  --text-invert: #E7EFF0;  --border: #2A4A54;  --accent: #4FBFC9;
  --accent-strong: #7FD6DC;  --link: #7FD6DC;  --focus: #FFA36B;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.45);
}

/* --- 2. Reset ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

/* Only smooth-scroll for people who haven't asked us not to animate */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, li, figcaption { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.18; font-weight: 700; }

h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); letter-spacing: -0.015em; }
h3 { font-size: var(--step-2); letter-spacing: -0.01em; }
h4 { font-size: var(--step-1); }

a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }

strong, b { font-weight: 700; }
ul, ol { padding-inline-start: 1.35em; }
li + li { margin-top: 0.35em; }

/* --- 3. Focus & assistive -------------------------------------------------
   Visible focus is a hard requirement (WCAG 2.4.7 / 2.4.11). The double ring
   guarantees contrast against both cream and dark surfaces.
   ------------------------------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-2); top: var(--sp-2);
  z-index: 200;
  padding: 0.7em 1.2em;
  background: var(--bg-invert);
  color: #FFF;
  font-weight: 600;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* The header is sticky, so anything linked to by a fragment must reserve room
   for it or its heading lands underneath. Applies to cross-page links such as
   schools.html#testimonial and families.html#ehcp. */
[id] { scroll-margin-top: 6rem; }

@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;
  }
}

/* --- 4. Layout ----------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-3); }
@media (min-width: 40em) { .wrap { padding-inline: var(--sp-4); } }

.section { padding-block: var(--sp-6); }
.section--tight { padding-block: var(--sp-5); }
.section--sunken { background: var(--bg-sunken); }
.section--raised { background: var(--bg-raised); }

/* Brand-tinted sections, so the page alternates in colour rather than
   in shades of cream. Decorative only — text contrast is unaffected. */
.section--tint-lime  { background: var(--tint-lime); }
.section--tint-green { background: var(--tint-green); }
.section--tint-teal  { background: var(--tint-teal); }
.section--tint-blue  { background: var(--tint-blue); }

.section--invert {
  background: linear-gradient(135deg, var(--teal-deep) 0%, #0B4450 52%, var(--blue-deep) 100%);
  color: var(--text-invert);
}
.section--invert h2, .section--invert h3 { color: #FFF; }
/* :not(.btn) matters — a bare `.section--invert a` rule outranks `.btn--light`
   on specificity and would repaint button labels pale blue on a white pill. */
.section--invert a:not(.btn) { color: #BFE9EC; }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose > * + h2 { margin-top: 2.2em; }
.prose > * + h3 { margin-top: 1.9em; }
.prose h2, .prose h3 { color: var(--accent-strong); }
.prose ul, .prose ol { max-width: var(--measure); }

.grid { display: grid; gap: var(--sp-3); }
@media (min-width: 46em)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 46em)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.stack-4 > * + * { margin-top: var(--sp-4); }
.center-text { text-align: center; }
.lede { font-size: var(--step-1); color: var(--text-soft); max-width: 60ch; }
.section-intro { max-width: 62ch; margin-bottom: var(--sp-5); }
.center-text .lede, .center-text .section-intro { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
/* Short gradient dash before each eyebrow — a small, repeated hit of brand */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem; height: 3px;
  border-radius: 2px;
  margin-right: 0.65rem;
  vertical-align: 0.22em;
  background: var(--arc-smooth);
}
.section--invert .eyebrow { color: #9EDCE1; }

/* Gradient rule under section headings */
.section-intro h2::after,
.hero h1::after {
  content: "";
  display: block;
  width: 5.5rem; height: 5px;
  border-radius: 3px;
  margin-top: var(--sp-3);
  background: var(--arc-smooth);
}
.center-text .section-intro h2::after { margin-inline: auto; }
.section--invert h2::after { background: linear-gradient(90deg, var(--lime), #9EDCE1); }

/* --- 5. Header ----------------------------------------------------------- */

.site-header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
/* The arc, as a keyline across the very top of every page */
.site-header::before {
  content: "";
  display: block;
  height: 5px;
  background: var(--arc);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark { width: 54px; height: auto; flex: none; }
.brand__name {
  display: block; font-weight: 700; font-size: 1.06rem;
  letter-spacing: -0.01em; line-height: 1.1; text-transform: uppercase;
  color: var(--teal-deep);
}
.brand__name em { font-style: normal; color: var(--teal); }
.brand__sub {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__name { color: #CDEBEE; }
  :root:not([data-theme="light"]) .brand__name em { color: var(--accent); }
}
:root[data-theme="dark"] .brand__name { color: #CDEBEE; }
:root[data-theme="dark"] .brand__name em { color: var(--accent); }

.nav-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  background: none; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: 0.5rem 0.8rem;
  font-weight: 600; font-size: var(--step--1); cursor: pointer;
}
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: currentColor;
  position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

.nav ul { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.nav li + li { margin-top: 0; }
.nav a {
  display: block; padding: 0.55rem 0.7rem; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600; font-size: 0.96rem; color: var(--text);
}
.nav a:hover { background: var(--bg-sunken); color: var(--accent-strong); }
.nav a[aria-current="page"] {
  color: var(--accent-strong);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.nav .btn { margin-left: var(--sp-2); }
.nav .btn:hover { background: var(--teal-deep); color: #FFF; }

/* Mobile navigation */
@media (max-width: 63.99em) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-2) var(--sp-3) var(--sp-4);
  }
  .nav[hidden] { display: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 0.8rem 0.7rem; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); background: var(--bg-sunken); }
  .nav .btn { margin: var(--sp-2) 0 0; text-align: center; }
}
@media (min-width: 64em) {
  .nav-toggle { display: none; }
  .nav[hidden] { display: block !important; }
}

/* --- 6. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  min-height: 44px;                    /* WCAG 2.5.8 target size */
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--teal);
  color: #FFF;
  font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--teal-deep); color: #FFF; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }

.btn--ghost { background: transparent; color: var(--link); border-color: currentColor; }
.btn--ghost:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #FFF; }
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.94rem; min-height: 40px; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* The theme guards are wrapped in :where() so they add no specificity. Without
   it these selectors are two classes deep and would outrank the single-class
   .btn--light / .btn--outline-light variants below no matter what order they
   appear in — repainting buttons that are meant to stay fixed. */
:where(:root[data-theme="dark"]) .btn,
:where(:root[data-theme="dark"]) .btn:hover { color: #072026; }
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) .btn { background: var(--accent); color: #072026; }
  :where(:root:not([data-theme="light"])) .btn:hover { background: var(--accent-strong); color: #072026; }
  :where(:root:not([data-theme="light"])) .btn--ghost { background: transparent; color: var(--link); }
  :where(:root:not([data-theme="light"])) .btn--ghost:hover { background: var(--accent); color: #072026; }
}

/* Buttons intended for the dark inverted sections. Declared after the
   dark-scheme rules above so they hold their appearance in both schemes —
   the surface behind them is dark either way. */
.btn--light { background: #FFF; color: var(--teal-deep); }
.btn--light:hover { background: #DFF1F3; color: var(--teal-deep); }
.btn--outline-light { background: transparent; border-color: #BFE9EC; color: #FFF; }
.btn--outline-light:hover { background: #FFF; border-color: #FFF; color: var(--teal-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.center-text .btn-row { justify-content: center; }

/* --- 7. Hero ------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  padding-block: var(--sp-6) var(--sp-5);
  /* Soft washes of the arc colours bleeding in from the corners */
  background:
    radial-gradient(ellipse 65% 70% at 88% 115%, rgba(140, 198, 63, 0.20), transparent 62%),
    radial-gradient(ellipse 55% 60% at 96% 8%,  rgba(44, 109, 158, 0.16), transparent 62%),
    radial-gradient(ellipse 50% 55% at 4% -8%,  rgba(46, 158, 146, 0.13), transparent 62%),
    var(--bg-raised);
}
.hero__inner { position: relative; z-index: 1; max-width: 44rem; }
.hero h1 { color: var(--teal-deep); }
:root[data-theme="dark"] .hero h1 { color: #CDEBEE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 { color: #CDEBEE; } }
.hero .lede { margin-top: var(--sp-3); font-size: var(--step-1); }
.hero .btn-row { margin-top: var(--sp-4); }
.hero__reach {
  margin-top: var(--sp-4);
  padding-left: var(--sp-3);
  border-left: 4px solid var(--lime);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-soft);
  max-width: 46ch;
}

/* Decorative arc echoing the logo. aria-hidden in the markup. */
.hero__arc {
  position: absolute; right: -14%; bottom: -46%;
  width: min(640px, 62%); opacity: 0.3; pointer-events: none;
}
@media (max-width: 46em) { .hero__arc { right: -30%; bottom: -30%; width: 90%; opacity: 0.09; } }

.hero--split .hero__inner { max-width: 40rem; }

/* --- 8. Cards ------------------------------------------------------------ */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.card h3 { color: var(--accent-strong); }
.card > :last-child { margin-top: auto; padding-top: var(--sp-1); }
.card p { color: var(--text-soft); }

/* Colour-coded top edge, cycling the logo ramp */
.card--edge { border-top: 6px solid var(--accent); }
.grid > .card--edge:nth-child(5n+1) { border-top-color: var(--lime); }
.grid > .card--edge:nth-child(5n+2) { border-top-color: var(--green); }
.grid > .card--edge:nth-child(5n+3) { border-top-color: var(--teal-mid); }
.grid > .card--edge:nth-child(5n+4) { border-top-color: var(--teal); }
.grid > .card--edge:nth-child(5n+5) { border-top-color: var(--blue); }

/* "These are examples, not a full menu" note under a card grid */
.note-examples {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-raised);
  border: 1px dashed var(--teal-mid);
  border-radius: var(--r);
  color: var(--text-soft);
  font-weight: 600;
  max-width: 62ch;
}

/* Audience chooser — the two front doors on the homepage */
.doors { display: grid; gap: var(--sp-3); }
@media (min-width: 48em) { .doors { grid-template-columns: 1fr 1fr; } }

.door {
  position: relative;
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-4);
  background: var(--tint-green);
  border: 1px solid var(--border);
  border-left: 9px solid var(--green);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  text-decoration: none; color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease;
}
.door:nth-child(2) { background: var(--tint-blue); border-left-color: var(--blue); }
.door:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.door h2 { font-size: var(--step-2); color: var(--accent-strong); }
.door p { color: var(--text-soft); }
.door__cue { font-weight: 700; color: var(--link); margin-top: auto; padding-top: var(--sp-2); }
.door__cue::after { content: " →"; }

/* --- 9. Steps, quotes, callouts ------------------------------------------ */

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--sp-3); }
@media (min-width: 52em) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; margin-top: 0; padding-left: 3.4rem; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: #FFF;
  font-weight: 700; font-size: 1.25rem;   /* 20px bold = WCAG "large text" */
}
/* Cycle the counters through the arc. All three clear 3:1 against white at
   this size and weight; do not shrink the numeral without rechecking. */
.steps li:nth-child(3n+1)::before { background: var(--green-deep); }
.steps li:nth-child(3n+2)::before { background: var(--teal); }
.steps li:nth-child(3n+3)::before { background: var(--blue); }
:root[data-theme="dark"] .steps li::before { color: #072026; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { color: #072026; } }
/* Vertical variant, for step-by-step instructions rather than a 3-up summary */
.steps--stacked { grid-template-columns: 1fr !important; gap: var(--sp-4); max-width: var(--measure); }
.steps h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.steps p { color: var(--text-soft); }

blockquote.quote {
  position: relative;
  margin: 0; padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-5);
  background: var(--bg-raised); border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
blockquote.quote::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: linear-gradient(180deg, var(--lime), var(--green), var(--teal-mid));
}
blockquote.quote p { font-size: var(--step-2); font-weight: 600; color: var(--accent-strong); line-height: 1.35; }
blockquote.quote footer { margin-top: var(--sp-2); color: var(--text-soft); font-size: var(--step--1); font-weight: 600; }
blockquote.quote footer::before { content: "— "; }

/* Long-form testimonial — multiple paragraphs, so set at body size rather than
   as an oversized pull-quote, with a decorative opening mark. */
.testimonial {
  position: relative;
  max-width: 62ch;
  margin: 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.testimonial::before {
  content: "\201C";
  position: absolute; top: -0.15em; left: 0.55rem;
  font-size: 5rem; line-height: 1;
  color: var(--teal-mid);
  opacity: 0.35;
}
.testimonial p { position: relative; }
.testimonial p + p { margin-top: var(--sp-3); }
.testimonial footer {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 2px solid var(--lime);
  font-weight: 700;
  color: var(--accent-strong);
}
.testimonial footer::before { content: "\2014\00A0"; }

.callout {
  padding: var(--sp-4);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue);
  border-radius: var(--r);
}
.callout > * + * { margin-top: var(--sp-2); }
.callout h3 { font-size: var(--step-1); color: var(--accent-strong); }
.callout--warn { border-left-color: #A63A12; }
.callout p:last-child { margin-bottom: 0; }

/* Feature list with tick marks */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 2rem; margin-top: 0.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 1.1rem; height: 0.6rem;
  border-left: 3px solid var(--green-deep);
  border-bottom: 3px solid var(--green-deep);
  transform: rotate(-45deg);
  border-radius: 1px;
}
/* Tick marks cycle the arc. Purely decorative, so the paler greens are fine. */
.ticks li:nth-child(4n+2)::before { border-color: var(--teal-mid); }
.ticks li:nth-child(4n+3)::before { border-color: var(--teal); }
.ticks li:nth-child(4n+4)::before { border-color: var(--blue); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ticks li::before { border-color: var(--accent); }
}
:root[data-theme="dark"] .ticks li::before { border-color: var(--accent); }

/* --- 10. Profile --------------------------------------------------------- */

.profile { display: grid; gap: var(--sp-4); align-items: start; }
@media (min-width: 52em) { .profile { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--sp-5); } }
.profile__photo {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  background: var(--bg-sunken);
}
.profile__figure { margin: 0; }
.profile__figure figcaption {
  margin-top: var(--sp-2); font-size: var(--step--1);
  color: var(--text-soft); font-weight: 600;
}

/* --- 11. Forms ----------------------------------------------------------- */

.form { display: grid; gap: var(--sp-3); max-width: 40rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 650; }
.field .hint { font-size: var(--step--1); color: var(--text-soft); }
.field .req { color: #A63A12; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .req { color: #FFA36B; } }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--bg-raised);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  min-height: 44px;
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.field :is(input, select, textarea):focus-visible { border-color: var(--accent); outline-offset: 1px; }

fieldset { border: 1px solid var(--border); border-radius: var(--r); padding: var(--sp-3); margin: 0; }
legend { font-weight: 650; padding-inline: 0.4rem; }
.radio-row { display: grid; gap: 0.55rem; margin-top: var(--sp-1); }
.radio-row label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.radio-row input { width: auto; min-height: 0; margin-top: 0.35rem; accent-color: var(--teal); }

.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; }
.checkbox input { width: auto; min-height: 0; margin-top: 0.35rem; flex: none; accent-color: var(--teal); }

.char-count { font-size: var(--step--1); color: var(--text-soft); text-align: right; }
.char-count[data-over="true"] { color: #A63A12; font-weight: 700; }

.form-status {
  padding: var(--sp-3);
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--blue);
  background: var(--bg-sunken);
}
.form-status[hidden] { display: none; }
.form-status--error { border-left-color: #A63A12; }

/* --- 12. Contact strip, details, tables ---------------------------------- */

.contact-methods { display: grid; gap: var(--sp-3); }
@media (min-width: 46em) { .contact-methods { grid-template-columns: repeat(2, 1fr); } }
.contact-methods .card p { color: var(--text-soft); }
.contact-methods a.big {
  font-size: var(--step-1); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid currentColor;
}

details.faq {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0;
  overflow: hidden;
}
details.faq + details.faq { margin-top: var(--sp-2); }
details.faq summary {
  padding: var(--sp-3) var(--sp-4);
  font-weight: 650; cursor: pointer;
  min-height: 44px; display: flex; align-items: center; gap: 0.6rem;
  color: var(--accent-strong);
}
details.faq summary:hover { background: var(--bg-sunken); }
details.faq[open] summary { border-bottom: 1px solid var(--border); }
details.faq .faq__body { padding: var(--sp-3) var(--sp-4); }
details.faq .faq__body > * + * { margin-top: var(--sp-2); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 700; color: var(--accent-strong); background: var(--bg-sunken); }
caption { text-align: left; color: var(--text-soft); font-size: var(--step--1); padding-bottom: var(--sp-2); }

dl.meta { display: grid; gap: 0.2rem var(--sp-3); }
@media (min-width: 40em) { dl.meta { grid-template-columns: max-content 1fr; } }
dl.meta dt { font-weight: 700; color: var(--text-soft); }
dl.meta dd { margin: 0 0 var(--sp-2); }
@media (min-width: 40em) { dl.meta dd { margin-bottom: 0.2rem; } }

.tag {
  display: inline-block; padding: 0.2rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--bg-sunken); border: 1px solid var(--border);
  font-size: var(--step--1); font-weight: 650; color: var(--text-soft);
}

/* --- 12b. Jargon buster search ------------------------------------------ */

.glossary-search {
  max-width: var(--measure);
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-top: 6px solid var(--teal-mid);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.glossary-search[hidden] { display: none; }
.glossary-search label { display: block; font-weight: 700; font-size: var(--step-1); color: var(--accent-strong); }
.glossary-search .hint { margin-top: 0.3rem; font-size: var(--step--1); color: var(--text-soft); }

.glossary-search__row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.glossary-search__row input {
  flex: 1 1 16rem;
  padding: 0.7rem 0.9rem;
  min-height: 44px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: var(--step-0);
}
.glossary-search__row input:hover { border-color: var(--accent); }
.glossary-search__row input::-webkit-search-cancel-button { cursor: pointer; }

.glossary-count { margin-top: var(--sp-2); font-size: var(--step--1); font-weight: 650; color: var(--text-soft); }

.glossary-empty {
  padding: var(--sp-4);
  background: var(--bg-sunken);
  border: 1px dashed var(--teal-mid);
  border-radius: var(--r);
}
.glossary-empty[hidden] { display: none; }

/* Each dt/dd pair is wrapped so it can be filtered as a unit */
.term[hidden] { display: none; }
.prose dl[hidden], .prose h2[hidden] { display: none; }
.term + .term { margin-top: var(--sp-3); }
.term dt { font-weight: 700; color: var(--text-soft); }
.term dd { margin: 0.2rem 0 0; }

/* --- 13. Resource / article list ---------------------------------------- */

.res-list { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.res-list li { margin-top: 0; }
.res-item {
  display: block; padding: var(--sp-4);
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r); text-decoration: none; color: var(--text);
}
.res-item h3 { font-size: var(--step-1); color: var(--accent-strong); }
.res-item p { color: var(--text-soft); margin-top: 0.4rem; }
.res-item--soon { opacity: 0.75; cursor: default; }

/* --- 14. Footer ---------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: auto;
  background: linear-gradient(160deg, var(--teal-deep) 0%, #0A3E49 60%, var(--blue-deep) 100%);
  color: var(--text-invert);
  padding-block: var(--sp-5) var(--sp-4);
}
/* Matching keyline, flush to the footer's top edge */
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--arc);
}
:root[data-theme="dark"] .site-footer { background: var(--bg-invert); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer { background: var(--bg-invert); }
  :root:not([data-theme="light"]) .section--invert { background: var(--bg-invert); }
}
.site-footer a:not(.btn) { color: #BFE9EC; }
.site-footer h2 { font-size: var(--step-1); color: #FFF; margin-bottom: var(--sp-2); }
.footer-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 46em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-5); } }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li + li { margin-top: 0.45em; }
.site-footer .brand__name { color: #FFF; }
.site-footer .brand__name em { color: #9EDCE1; }
.site-footer .brand__sub { color: #A9C0C5; }
.footer-legal {
  margin-top: var(--sp-5); padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: var(--step--1); color: #C3D6D9;
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: space-between;
}
.footer-legal p { max-width: 60ch; }

/* --- 15. Print (legal pages get printed and filed) ---------------------- */

@media print {
  .site-header, .site-footer, .skip-link, .hero__arc, .btn { display: none !important; }
  body { background: #FFF; color: #000; font-size: 11pt; }
  .section { padding-block: 0.5rem; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .prose { max-width: none; }
  h2, h3 { break-after: avoid; }
  .callout, table { break-inside: avoid; }
}
