/* tokens.css */
/* Mind Recovery design tokens.
   Colours are sampled from the existing logo and the approved prototype
   screenshot (see DESIGN.md for the reasoning behind each). Every colour and
   size in the other stylesheets references one of these. */

@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 800; font-display: swap; src: url('../assets/fonts/schibsted-grotesk-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/atkinson-hyperlegible-next-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2'); }

:root {
  /* Brand colour, from the logo: the pen line, the mist behind the head, the sun. */
  --c-deep: #0e3d3c;        /* utility bar, service panel, footer */
  --c-action: #04665f;      /* buttons and links; 6.8:1 on white */
  --c-action-hover: #035852;
  --c-line: #009694;        /* the logo's teal: illustration pen line (graphics only, 3.6:1 on white) */
  --c-mist: #d9eaea;        /* the blob behind the head */
  --c-butter: #f7e5b0;      /* the sun and the hand */
  --c-ochre: #e2ad48;       /* small accents on deep panels only (arrows, focus on dark) */
  --c-on-deep: #ffffff;
  --c-on-deep-soft: #c3d9d5;
  --c-on-deep-accent: #7fd6cb;

  /* Neutrals, tinted toward the brand teal. */
  --c-ink: #142624;
  --c-ink-soft: #3d5450;
  --c-paper: #ffffff;
  --c-wash: #f1f7f6;        /* quiet bands */
  --c-wash-2: #eaf1f0;      /* training card, form panels */
  --c-rule: #d3dfdd;
  --c-rule-strong: #a9bcb9;

  /* State colours for capacity and update status. Text pairs stay above 4.5:1. */
  --c-open: #1d6b3a;    --c-open-bg: #e5f2e8;
  --c-limited: #7a4f00; --c-limited-bg: #fbf0d6;
  --c-closed: #8a2a1e;  --c-closed-bg: #f8e4e0;
  --c-unknown: #3d5450; --c-unknown-bg: #eef2f1;

  /* Type. Display: Schibsted Grotesk, a sturdy news grotesque that matches the
     approved headings. Text: Atkinson Hyperlegible Next, drawn by the Braille
     Institute for readers with low vision; chosen because participants and
     families read this site, often on phones, sometimes with impaired vision. */
  --f-display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-text: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;

  --t-small: 0.9375rem;   /* 15px: meta, captions; never smaller */
  --t-body: 1.0625rem;    /* 17px mobile */
  --t-lead: 1.1875rem;
  --t-h4: 1.125rem;
  --t-h3: 1.3125rem;
  --t-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.375rem);
  --t-h1: clamp(2.375rem, 1.55rem + 3.4vw, 4rem);
  --lh-tight: 1.08;
  --lh-head: 1.2;
  --lh-body: 1.6;
  --measure: 66ch;

  /* Space: 8px base. */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --page: 80rem;          /* 1280px */
  --page-narrow: 46rem;

  /* Shape. Two radii only: controls, and containers. No shadows on content. */
  --r-control: 4px;
  --r-box: 6px;
  --rule-w: 1px;
  --panel-top: 4px;       /* the teal top edge on deep panels */

  /* Layers. */
  --z-skip: 50; --z-header: 20; --z-menu: 30;

  /* Motion. One orchestrated moment per page; UI feedback is short. */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --d-ui: 140ms;
  --d-draw: 1600ms;
}

@media (min-width: 48em) {
  :root { --t-body: 1.125rem; --t-lead: 1.3125rem; }
}

/* base.css */
/* Base: reset, type, links, focus, layout primitives. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  line-height: var(--lh-head);
  color: var(--c-ink);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.005em; }
h4 { font-size: var(--t-h4); font-weight: 700; }
p { text-wrap: pretty; }
strong, b { font-weight: 700; }
small { font-size: var(--t-small); }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.2em; }

a { color: var(--c-action); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-action-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--c-action); outline-offset: 3px; border-radius: 2px; }
.on-deep :focus-visible, .on-deep:focus-visible { outline-color: var(--c-ochre); }

.skip-link {
  position: absolute; left: var(--s-4); top: -10rem; z-index: var(--z-skip);
  background: var(--c-deep); color: var(--c-on-deep); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-control); font-weight: 700;
}
.skip-link:focus { top: var(--s-4); color: var(--c-on-deep); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* The forms' honeypot (lib/forms.mjs): off screen, and aria-hidden in the HTML. */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Layout primitives */
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), var(--page-narrow)); margin-inline: auto; }
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-6); }
.section--wash { background: var(--c-wash); }
.stack > * + * { margin-top: var(--flow, var(--s-4)); }
.measure { max-width: var(--measure); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--c-ink); }
.muted { color: var(--c-ink-soft); }
.meta { font-size: var(--t-small); color: var(--c-ink-soft); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-bottom: var(--s-5); }
.section-head p { max-width: 52ch; color: var(--c-ink-soft); margin-top: var(--s-2); }

/* Long-form reading (guides, policies, updates). */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
.prose h3 { margin-top: var(--s-6); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-3); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--c-line); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s-3); border-bottom: var(--rule-w) solid var(--c-rule); }
.prose th { font-family: var(--f-display); font-weight: 700; }

@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; }
}

/* components.css */
/* Components: shell, buttons, shared blocks. */

/* ---------- Utility bar ---------- */
.utility { background: var(--c-deep); color: var(--c-on-deep); font-size: var(--t-small); }
.utility__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 2.5rem; }
.utility a { color: var(--c-on-deep); text-decoration: none; font-weight: 700; }
.utility a:hover { text-decoration: underline; color: var(--c-on-deep); }
.utility__links { display: flex; gap: var(--s-5); }
@media (max-width: 40em) {
  .utility__lang { display: none; }
  .utility__in { justify-content: flex-end; }
  .utility__links li:first-child { display: none; }
}

/* ---------- Header and navigation ---------- */
.site-header { background: var(--c-paper); border-bottom: var(--rule-w) solid var(--c-rule); position: relative; z-index: var(--z-header); }
.site-header__in { display: flex; align-items: center; gap: var(--s-5); min-height: 4.75rem; }
.brand { display: block; flex: none; margin-right: auto; }
.brand .logo { width: clamp(11.5rem, 9rem + 6vw, 14.5rem); height: auto; }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav__list { display: flex; align-items: center; gap: clamp(0.75rem, 0.2rem + 1.2vw, 1.75rem); }
.nav__item > a, .nav__btn {
  display: inline-flex; align-items: center; gap: 0.35em; min-height: 44px;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--c-ink); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.nav__item > a:hover, .nav__btn:hover { color: var(--c-action); }
.nav__item > a[aria-current], .nav__btn[aria-current] { box-shadow: inset 0 -3px 0 var(--c-line); }
.nav__chev { width: 0.7em; transition: transform var(--d-ui) var(--ease-out); }
.nav__btn[aria-expanded='true'] .nav__chev { transform: rotate(180deg); }
.nav__item--menu { position: relative; }
.nav__menu { display: none; position: absolute; top: calc(100% + 0.5rem); left: -1rem; min-width: 19rem; background: var(--c-paper); border: var(--rule-w) solid var(--c-rule); border-top: var(--panel-top) solid var(--c-line); border-radius: 0 0 var(--r-box) var(--r-box); padding: var(--s-2); z-index: var(--z-menu); }
.nav__btn[aria-expanded='true'] + .nav__menu { display: block; }
.nav__menu a { display: block; padding: var(--s-3); border-radius: var(--r-control); text-decoration: none; color: var(--c-ink); }
.nav__menu a:hover { background: var(--c-wash); }
.nav__menu-title { display: block; font-family: var(--f-display); font-weight: 700; }
.nav__menu-note { display: block; font-size: var(--t-small); color: var(--c-ink-soft); }
.nav__call { display: none; }
.menu-btn { display: none; }

@media (max-width: 68em) {
  .menu-btn { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3); border: 1.5px solid var(--c-ink); border-radius: var(--r-control); background: var(--c-paper); font-weight: 700; cursor: pointer; }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ''; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -6px; } .menu-btn__bars::after { top: 6px; }
  .menu-btn[aria-expanded='true'] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded='true'] .menu-btn__bars::before { top: 0; transform: rotate(45deg); }
  .menu-btn[aria-expanded='true'] .menu-btn__bars::after { top: 0; transform: rotate(-45deg); }
  .js .nav { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--s-4); background: var(--c-paper); border-bottom: var(--rule-w) solid var(--c-rule); padding: var(--s-4) var(--gutter) var(--s-5); }
  .js .nav.is-open { display: flex; }
  .no-js .nav, html:not(.js) .nav { position: static; display: flex; padding-inline: 0; border: 0; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: var(--rule-w) solid var(--c-rule); }
  .nav__item > a, .nav__btn { width: 100%; justify-content: space-between; min-height: 52px; font-size: 1.0625rem; }
  .nav__item > a[aria-current], .nav__btn[aria-current] { box-shadow: inset 4px 0 0 var(--c-line); padding-left: var(--s-3); }
  .nav__menu { position: static; min-width: 0; border: 0; padding: 0 0 var(--s-3); }
  .nav__cta { align-self: flex-start; }
  .nav__call { display: block; font-size: var(--t-small); }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0.55rem 1.15rem; border-radius: var(--r-control);
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid var(--c-action); cursor: pointer;
  transition: background-color var(--d-ui) var(--ease-out), color var(--d-ui) var(--ease-out), border-color var(--d-ui) var(--ease-out);
}
.btn--primary { background: var(--c-action); color: var(--c-paper); }
.btn--primary:hover { background: var(--c-action-hover); border-color: var(--c-action-hover); color: var(--c-paper); }
.btn--secondary { background: var(--c-paper); color: var(--c-action); border-width: 1.5px; }
.btn--secondary:hover { background: var(--c-wash); color: var(--c-action-hover); }
.on-deep .btn--primary { background: var(--c-paper); color: var(--c-deep); border-color: var(--c-paper); }
.on-deep .btn--secondary { background: transparent; color: var(--c-on-deep); border-color: var(--c-on-deep-soft); }

/* ---------- Breadcrumbs and inner page hero ---------- */
.crumbs { font-size: var(--t-small); margin-bottom: var(--s-4); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.crumbs li + li::before { content: '/'; color: var(--c-rule-strong); margin-right: var(--s-2); }
.crumbs a { color: var(--c-ink-soft); }
.crumbs [aria-current] { color: var(--c-ink); }
.page-hero { padding-block: var(--s-6) var(--s-7); border-bottom: var(--rule-w) solid var(--c-rule); }
.page-hero__in { display: grid; gap: var(--s-6); align-items: center; }
.page-hero--art .page-hero__in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.page-hero__text { max-width: 44rem; }
.page-hero__text > * + * { margin-top: var(--s-4); }
.page-hero__text .actions { margin-top: var(--s-5); }
.page-hero__kicker { font-family: var(--f-display); font-weight: 700; color: var(--c-action); }
.page-hero__art { justify-self: end; width: min(100%, 22rem); }
.page-hero--article h1 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem); line-height: 1.15; max-width: 34ch; }
.page-hero__kicker .status { vertical-align: 0.1em; }
.page-hero__art .ill { width: 100%; height: auto; }
@media (max-width: 48em) {
  .page-hero--art .page-hero__in { grid-template-columns: 1fr; }
  .page-hero__art { justify-self: start; width: min(60%, 14rem); order: -1; }
}

/* ---------- Capacity line and status badges ---------- */
.cap { display: inline-flex; align-items: baseline; gap: var(--s-2); }
.cap__ring { flex: none; width: 0.8em; height: 0.8em; border-radius: 50%; border: 2px solid currentColor; transform: translateY(0.08em); }
.cap--open .cap__ring { background: var(--c-open); border-color: var(--c-open); }
.cap--limited .cap__ring, .cap--waitlist .cap__ring { background: var(--c-limited); border-color: var(--c-limited); }
.cap--closed .cap__ring { background: var(--c-closed); border-color: var(--c-closed); }
.cap--unknown .cap__ring { color: var(--c-ink-soft); }
.status { display: inline-block; font-size: 0.8125rem; font-weight: 700; line-height: 1.5; padding: 0 0.5em; border-radius: var(--r-control); }
.status--open { color: var(--c-open); background: var(--c-open-bg); }
.status--limited { color: var(--c-limited); background: var(--c-limited-bg); }
.status--closed { color: var(--c-closed); background: var(--c-closed-bg); }
.status--unknown { color: var(--c-unknown); background: var(--c-unknown-bg); }

/* ---------- Updates highlight ---------- */
/* Knowledge Hub: three updates side by side in a mist box. */
.updates-panel { padding-top: var(--s-6); }
.updates-panel__box { background: var(--c-mist); border-radius: var(--r-box); padding: var(--s-5) var(--s-5) var(--s-4); }
.updates-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-4); }
.updates-panel__head h2 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); }
.updates-panel__head p { color: var(--c-ink-soft); font-size: var(--t-small); margin-top: var(--s-1); }
.updates-panel__all { font-family: var(--f-display); font-weight: 700; }
.updates-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); } /* slop-ok: spec 10 asks for the newest three updates side by side */
.updates-list__item { background: var(--c-paper); border-radius: var(--r-control); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--t-small); }
.updates-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); color: var(--c-ink-soft); font-size: 0.875rem; }
.updates-list__cat { font-weight: 700; color: var(--c-ink); }
.updates-list__title { font-size: 1.0625rem; line-height: 1.3; }
.updates-list__title a { color: var(--c-ink); text-decoration-color: var(--c-line); }
.updates-list__title a:hover { color: var(--c-action); }
.updates-panel__sub, .updates-panel__empty { margin-top: var(--s-4); font-size: var(--t-small); }
@media (max-width: 60em) {
  .updates-list { grid-template-columns: 1fr; gap: 0; background: var(--c-paper); border-radius: var(--r-control); }
  .updates-list__item { border-radius: 0; }
  .updates-list__item + .updates-list__item { border-top: var(--rule-w) solid var(--c-rule); }
  .updates-list__item p:not(.updates-list__meta) { display: none; }
}
/* Homepage: a column beside the service panel. Headlines on pale cards,
   separated by space rather than rules. */
.svc-row .updates-panel { display: flex; flex-direction: column; padding-top: 0; }
.svc-row .updates-panel h2 { font-size: 1.5rem; line-height: 1.15; }
.updates-panel__intro { color: var(--c-ink-soft); font-size: var(--t-small); margin-top: var(--s-2); }
.svc-row .updates-list { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); background: none; border-radius: 0; }
.svc-row .updates-list__item { display: block; background: var(--c-wash); border-radius: var(--r-box); padding: var(--s-4) 1.15rem; }
.svc-row .updates-list__item + .updates-list__item { border-top: 0; }
.svc-row .updates-list__meta { gap: var(--s-1) var(--s-2); }
.svc-row .status { background: var(--c-paper); }
.svc-row .updates-list__title { font-size: 1rem; line-height: 1.32; margin-top: var(--s-2); }
.svc-row .updates-list__title a { text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.updates-panel__foot { margin-top: auto; padding-top: 1.1rem; font-size: var(--t-small); }
.updates-panel__foot .updates-panel__all { display: inline-block; margin-bottom: var(--s-1); }

/* ---------- Service panel (deep) ---------- */
.section--svc { padding-top: var(--s-6); }
/* Straight under the hero, with the updates column beside it; the rows share
   any extra height so the panel never ends in an empty band. */
.hero + .section--svc { padding-top: 0; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: var(--s-5); align-items: stretch; }
.svc-row .svc { display: flex; flex-direction: column; }
.svc-row .svc__list { flex: 1; display: flex; flex-direction: column; }
.svc-row .svc__row { flex: 1; }
@media (max-width: 60em) {
  .svc-row { grid-template-columns: 1fr; gap: var(--s-7); }
}
.svc { background: var(--c-deep); color: var(--c-on-deep); border-radius: var(--r-box); border-top: var(--panel-top) solid var(--c-line); }
.svc a { color: var(--c-on-deep); }
.svc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-2) var(--s-5); padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: var(--rule-w) solid rgba(255, 255, 255, 0.14); }
.svc__head h2 { color: var(--c-on-deep); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.svc__head p { color: var(--c-on-deep-soft); font-size: var(--t-small); }
.svc__head > a { font-family: var(--f-display); font-weight: 700; }
.svc__row { position: relative; display: grid; grid-template-columns: 2.75rem minmax(0, 0.85fr) minmax(0, 1.3fr) 2rem; gap: var(--s-4); align-items: center; padding: var(--s-5); border-bottom: var(--rule-w) solid rgba(255, 255, 255, 0.14); transition: background-color var(--d-ui) var(--ease-out); }
.svc__row:hover { background: rgba(255, 255, 255, 0.04); }
.svc__icon .ill { width: 2.5rem; height: 2.5rem; }
.svc__icon .l { stroke: var(--c-on-deep-accent); }
.svc__icon .d { fill: var(--c-on-deep-accent); }
.svc__icon .b { fill: var(--c-ochre); }
.svc__name h3 { color: var(--c-on-deep); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.2; }
.svc__name a { text-decoration: none; }
.svc__name a::after { content: ''; position: absolute; inset: 0; }
.svc__name a:focus-visible { outline: none; }
.svc__row:has(a:focus-visible) { outline: 3px solid var(--c-ochre); outline-offset: -3px; }
.svc__stage { color: var(--c-on-deep-accent); font-size: 0.875rem; font-weight: 700; margin-top: var(--s-1); }
.svc__text { color: var(--c-on-deep-soft); font-size: var(--t-small); }
.svc__text strong { color: var(--c-on-deep); }
.svc__arrow { color: var(--c-ochre); justify-self: end; }
.svc__arrow .arrow { width: 1.75rem; height: 1.75rem; transition: transform var(--d-ui) var(--ease-out); }
.svc__row:hover .arrow { transform: translateX(3px); }
.svc__foot { padding: var(--s-4) var(--s-5) var(--s-5); font-size: var(--t-small); color: var(--c-on-deep-soft); }
.svc__foot a { font-weight: 700; }
@media (max-width: 48em) {
  .svc__row { grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem; padding: var(--s-4); gap: var(--s-2) var(--s-3); align-items: start; }
  .svc__text { grid-column: 2 / 3; }
  .svc__arrow { grid-row: 1; grid-column: 3; align-self: center; }
  .svc__head, .svc__foot { padding-inline: var(--s-4); }
}

/* ---------- Divider ---------- */
.divider { display: flex; justify-content: center; padding-top: var(--s-7); }
.divider .ill { width: min(100%, 35rem); height: auto; }
@media (max-width: 52em) { .divider { padding-top: 0; } } /* the section above already leaves room */

/* ---------- Training and supervision cards ---------- */
.section--pro { padding-top: var(--s-5); }
.pro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-4); align-items: stretch; }
.pro-card { border-radius: var(--r-box); display: flex; flex-direction: column; }
.pro-card h3 { font-size: var(--t-h3); }
.pro-card p { margin-top: var(--s-2); }
.pro-card .actions { margin-top: auto; padding-top: var(--s-5); }
.pro-card--training { background: var(--c-wash-2); padding: var(--s-5); }
.pro-card__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.pro-card__art { width: 100%; height: auto; }
.pro-card--training .pro-card__art { max-width: 17rem; justify-self: end; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); /* slop-ok: the three confirmed delivery modes (spec 04A) */ margin-top: var(--s-5); border-top: var(--rule-w) solid var(--c-rule-strong); border-bottom: var(--rule-w) solid var(--c-rule-strong); }
.modes li { padding: var(--s-4) var(--s-4) var(--s-4) 0; font-size: var(--t-small); line-height: 1.4; }
.modes li + li { border-left: var(--rule-w) solid var(--c-rule-strong); padding-left: var(--s-4); }
.modes__icon { width: 1.75rem; height: 1.75rem; color: var(--c-action); margin-bottom: var(--s-3); }
.modes strong { display: block; font-family: var(--f-display); }
.modes span { color: var(--c-ink-soft); }
.pro-card--supervision { border: var(--rule-w) solid var(--c-rule-strong); overflow: hidden; }
.pro-card__band { margin: 0; background: var(--c-deep); color: var(--c-on-deep); padding: var(--s-3) var(--s-5); font-family: var(--f-display); font-weight: 700; font-size: var(--t-small); }
.pro-card__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.pro-card--supervision .pro-card__art { max-width: 12.5rem; margin-bottom: var(--s-4); }
.pro-card__note { font-size: var(--t-small); color: var(--c-ink-soft); }
@media (max-width: 60em) {
  .pro { grid-template-columns: 1fr; }
}
@media (max-width: 36em) {
  .pro-card__top { grid-template-columns: 1fr; }
  .pro-card--training .pro-card__art { justify-self: start; max-width: 14rem; order: -1; }
  .modes { grid-template-columns: 1fr; }
  .modes li, .modes li + li { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: var(--s-3); border-left: 0; padding: var(--s-3) 0; }
  .modes li + li { border-top: var(--rule-w) solid var(--c-rule-strong); }
  .modes__icon { grid-row: span 2; margin: 0; }
}

/* ---------- Team cards ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: var(--s-4); }
.person { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-4); align-items: start; padding: var(--s-4); border: var(--rule-w) solid var(--c-rule); border-radius: var(--r-box); }
.person__photo { position: relative; }
.person__photo .ill { width: 100%; height: auto; }
.person__photo-note { display: block; margin-top: var(--s-1); line-height: 1.2; }
.person__name { font-size: var(--t-h3); }
.person__name a { color: var(--c-ink); text-decoration-color: var(--c-line); }
.person__role { font-weight: 700; color: var(--c-action); margin: var(--s-1) 0 var(--s-2); }
.person__body > p:last-child { font-size: var(--t-small); color: var(--c-ink-soft); }

/* ---------- Guides list ---------- */
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--rule-w) solid var(--c-rule); }
.guide { position: relative; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-5) var(--s-4) var(--s-5) 0; border-bottom: var(--rule-w) solid var(--c-rule); }
.guide:nth-child(even) { padding-left: var(--s-5); border-left: var(--rule-w) solid var(--c-rule); }
.guide__art { width: 100%; height: auto; }
.guide__title { font-size: 1.1875rem; line-height: 1.25; }
.guide__title a { color: var(--c-ink); text-decoration: none; }
.guide__title a::after { content: ''; position: absolute; inset: 0; }
.guide:hover .guide__title a { color: var(--c-action); text-decoration: underline; }
.guide:has(a:focus-visible) { outline: 3px solid var(--c-action); outline-offset: -3px; }
.guide__title a:focus-visible { outline: none; }
.guide p { font-size: var(--t-small); color: var(--c-ink-soft); margin-top: var(--s-1); }
.guide .guide__more { color: var(--c-action); font-weight: 700; margin-top: var(--s-2); }
@media (max-width: 52em) {
  .guides { grid-template-columns: 1fr; }
  .guide:nth-child(even) { padding-left: 0; border-left: 0; }
  .guide { grid-template-columns: 5rem minmax(0, 1fr); }
}

/* ---------- Resources + subscribe band ---------- */
.res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); }
.res__list { margin-top: var(--s-4); border-top: var(--rule-w) solid var(--c-rule-strong); }
.res__list li { padding: var(--s-4) 0; border-bottom: var(--rule-w) solid var(--c-rule-strong); }
.res__list a { font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; }
.res__list span { display: block; color: var(--c-ink-soft); font-size: var(--t-small); margin-top: var(--s-1); }
.res__sub-h { font-size: var(--t-h3); }
.res__sub > p { color: var(--c-ink-soft); margin: var(--s-1) 0 var(--s-4); }
@media (max-width: 52em) { .res { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- Final call to action ---------- */
.final { padding-block: var(--s-7); }
.final__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); border-top: var(--rule-w) solid var(--c-rule); padding-top: var(--s-7); }
.final h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.final p { color: var(--c-ink-soft); margin-top: var(--s-2); max-width: 46ch; }
.final__call { font-weight: 700; }

/* ---------- Review / sources box ---------- */
.review { border-top: var(--panel-top) solid var(--c-line); background: var(--c-wash); border-radius: 0 0 var(--r-box) var(--r-box); padding: var(--s-5); font-size: var(--t-small); }
.review dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--s-3) var(--s-5); }
.review dt { font-weight: 700; }
.review dd { margin: 0; }
.review__h { font-family: var(--f-text); font-size: var(--t-small); font-weight: 700; margin-top: var(--s-5); }
.review__sources { padding-left: 1.25em; margin-top: var(--s-2); }
.review__sources li + li { margin-top: var(--s-1); }

/* ---------- Notices and FAQ ---------- */
.notice { border-radius: var(--r-box); padding: var(--s-4) var(--s-5); font-size: var(--t-small); border: var(--rule-w) solid var(--c-rule); background: var(--c-wash); }
.notice > * + * { margin-top: var(--s-2); }
.notice--warn { background: var(--c-limited-bg); border-color: #ecd59b; }
.notice--safety { background: var(--c-paper); border: 2px solid var(--c-deep); }
.notice strong:first-child { font-family: var(--f-display); }
.faq { border-top: var(--rule-w) solid var(--c-rule); }
.faq__item { border-bottom: var(--rule-w) solid var(--c-rule); }
.faq__item summary { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--c-action); }
.faq__item[open] summary::after { content: '−'; }
.faq__a { padding-bottom: var(--s-5); max-width: var(--measure); }
.faq__a > * + * { margin-top: var(--s-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-deep); color: var(--c-on-deep-soft); font-size: var(--t-small); padding-block: var(--s-7) var(--s-5); }
.site-footer a { color: var(--c-on-deep); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-7); }
.site-footer__logo .logo { width: 13rem; height: auto; }
.site-footer__brand p { margin-top: var(--s-4); max-width: 34ch; }
.site-footer__contact { margin-top: var(--s-4); }
.site-footer__contact li + li { margin-top: var(--s-1); }
.site-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.site-footer__h { font-family: var(--f-display); font-size: 1rem; color: var(--c-on-deep); margin-bottom: var(--s-3); }
.site-footer__nav li + li { margin-top: var(--s-2); }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__safety { margin-top: var(--s-6); padding: var(--s-4) var(--s-5); border: var(--rule-w) solid rgba(255, 255, 255, 0.24); border-radius: var(--r-box); }
.site-footer__safety strong { color: var(--c-on-deep); }
.site-footer__base { margin-top: var(--s-6); padding-top: var(--s-5); border-top: var(--rule-w) solid rgba(255, 255, 255, 0.16); display: grid; gap: var(--s-3); }
.site-footer__ack { max-width: 80ch; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-5); }
@media (max-width: 60em) {
  .site-footer__top { grid-template-columns: 1fr; gap: var(--s-6); }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* story.css */
/* Illustrations, draw-on, the hero planes and the "How support works" route.
   Motion is progressive: without JS, or with reduced motion, every line is
   drawn and every stage is visible. */

/* Theme the generated SVGs from tokens. */
.ill .l { stroke: var(--c-line); }
.ill .m { fill: var(--c-mist); }
.ill .b { fill: var(--c-butter); }
.ill .d { fill: var(--c-line); }

/* Draw-on: lines start undrawn only when JS is running and motion is OK. */
@media (prefers-reduced-motion: no-preference) {
  .js .drawable .draw { stroke-dasharray: 1 2; stroke-dashoffset: 1.001; }
  .js .drawable.is-drawn .draw { stroke-dashoffset: 0; transition: stroke-dashoffset var(--d-draw) var(--ease-out); }
  .js .drawable.is-drawn .draw:nth-of-type(2) { transition-delay: 120ms; }
  .js .drawable.is-drawn .draw:nth-of-type(3) { transition-delay: 240ms; }
  .js .drawable.is-drawn .draw:nth-of-type(n + 4) { transition-delay: 360ms; }
}

/* ---------- Home hero ---------- */
/* White ground, the mark on its mist cloud, and a headline that leaves the
   drawing to lead. */
.hero { position: relative; padding-block: 5.5rem 4.5rem; overflow: clip; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.hero__text { max-width: 41rem; }
.hero h1 { font-size: clamp(2.5rem, 1.7rem + 2.3vw, 3.75rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 10.5em; }
.hero__text .lead { margin-top: var(--s-5); max-width: 38ch; font-size: 1.1875rem; }
.hero__text .actions { margin-top: var(--s-6); }
.hero__call { margin-top: var(--s-4); font-size: var(--t-small); color: var(--c-ink-soft); }
.hero__call a { font-weight: 700; }
.hero__art { position: relative; justify-self: center; width: min(100%, 34rem); }
.hero__art .ill { width: 100%; height: auto; overflow: visible; }
.hero .plane { will-change: transform; transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .ill--hero .plane--front .draw { stroke-dasharray: 1 2; stroke-dashoffset: 1.001; }
  .js .hero.is-ready .ill--hero .plane--front .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1800ms var(--ease-out); }
  .js .hero.is-ready .ill--hero .plane--front .draw + .draw { transition-delay: 500ms; transition-duration: 1500ms; }
  .js .hero .ill--hero .plane--mid { opacity: 0; transform: translateY(12px); }
  .js .hero.is-ready .ill--hero .plane--mid { opacity: 1; transition: opacity 900ms var(--ease-out) 900ms; }
  .js .hero .ill--hero .d { opacity: 0; }
  .js .hero.is-ready .ill--hero .d { opacity: 1; transition: opacity 300ms ease 200ms; }
}
@media (max-width: 52em) {
  .hero { padding-block: var(--s-5) var(--s-7); }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: min(62%, 17rem); justify-self: start; }
}

/* ---------- How support works ---------- */
.how { position: relative; background: var(--c-paper); border-top: var(--rule-w) solid var(--c-rule); }
.how__in { padding-block: var(--s-8); }
.how__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-3) var(--s-6); }
.how__head p { max-width: 46ch; color: var(--c-ink-soft); }
.how__route { margin-top: var(--s-5); }
.how__svg { width: 100%; height: auto; overflow: visible; }
.how__svg .route-node__fill { transform-box: fill-box; transform-origin: center; }
.how__stages { position: relative; display: grid; grid-template-columns: 28% repeat(5, minmax(0, 1fr)); margin-top: var(--s-3); }
.how__stage { grid-row: 1; padding: 0 var(--s-3); font-size: var(--t-small); }
.how__stage:nth-child(1) { grid-column: 2; } .how__stage:nth-child(2) { grid-column: 3; } .how__stage:nth-child(3) { grid-column: 4; }
.how__stage:nth-child(4) { grid-column: 5; } .how__stage:nth-child(5) { grid-column: 6; }
.how__stage h3 { font-size: 1.1875rem; margin-bottom: var(--s-2); }
.how__num { display: none; }
.how__foot { margin-top: var(--s-6); font-size: var(--t-small); }

/* Scroll-linked version (desktop, motion OK, JS running). */
@media (min-width: 60em) and (prefers-reduced-motion: no-preference) {
  .js .how.is-scrolly { height: 260vh; }
  .js .how.is-scrolly .how__sticky { position: sticky; top: var(--how-top, 0px); min-height: 100vh; display: flex; align-items: center; }
  .js .how.is-scrolly .how__in { padding-block: var(--s-6); width: min(100% - 2 * var(--gutter), var(--page)); }
  .js .how.is-scrolly #route-line { stroke-dasharray: 1 2; stroke-dashoffset: calc(1.001 - var(--p, 0)); }
  .js .how.is-scrolly .route-node__fill { transform: scale(0); transition: transform 260ms var(--ease-out); }
  .js .how.is-scrolly .route-node.is-on .route-node__fill { transform: scale(1); }
  /* Text never dims (contrast); the reached stage gets the pen-line rule. */
  .js .how.is-scrolly .how__stage { box-shadow: inset 0 3px 0 transparent; padding-top: var(--s-3); transition: box-shadow 300ms var(--ease-out); }
  .js .how.is-scrolly .how__stage.is-on { box-shadow: inset 0 3px 0 var(--c-line); }
}

/* Stacked version: vertical line down the left, numbered nodes. */
@media (max-width: 59.99em) {
  .how__route { display: none; }
  .how__stages { display: block; margin-top: var(--s-6); padding-left: 0; }
  .how__stage { position: relative; padding: 0 0 var(--s-5) 3.25rem; }
  .how__stage::before { content: ''; position: absolute; left: 1.05rem; top: 2.2rem; bottom: 0.2rem; width: 3px; background: var(--c-line); border-radius: 2px; transform-origin: top; }
  .how__stage:last-child::before { display: none; }
  .how__num { display: grid; place-items: center; position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 3px solid var(--c-line); background: var(--c-paper); font-family: var(--f-display); font-weight: 800; color: var(--c-action); }
  .how__stage h3 { padding-top: 0.2rem; }
}
@media (max-width: 59.99em) and (prefers-reduced-motion: no-preference) {
  .js .how__stage::before { transform: scaleY(0); transition: transform 700ms var(--ease-out) 150ms; }
  .js .how__stage.is-on::before { transform: scaleY(1); }
}

/* forms.css */
/* Forms */
.form { max-width: 44rem; }
.form > * + *, .form-section > * + * { margin-top: var(--s-5); }
.form-section { border-top: var(--rule-w) solid var(--c-rule); padding-top: var(--s-5); }
.form-section > h2, .form-section > h3 { font-size: var(--t-h3); }
.field { display: grid; gap: var(--s-1); }
.field label, .choices legend { font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem; }
.opt { font-family: var(--f-text); font-weight: 400; color: var(--c-ink-soft); font-size: var(--t-small); }
.field__hint { font-size: var(--t-small); color: var(--c-ink-soft); max-width: 60ch; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.6rem 0.75rem; border: 1.5px solid var(--c-ink-soft); border-radius: var(--r-control); background: var(--c-paper); font-size: 1.0625rem;
}
.field--s input { max-width: 10rem; }
.field--m input, .field--m select { max-width: 24rem; }
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--c-action); outline-offset: 1px; border-color: var(--c-action); }
.field [aria-invalid='true'] { border-color: var(--c-closed); border-width: 2px; }
.field__error { color: var(--c-closed); font-weight: 700; font-size: var(--t-small); display: flex; gap: var(--s-2); }
.field__error::before { content: '!'; flex: none; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--c-closed); color: var(--c-paper); font-size: 0.8em; margin-top: 0.15em; }
.field--check label { font-family: var(--f-text); font-weight: 400; display: flex; gap: var(--s-3); align-items: flex-start; }

.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: var(--s-2); }
.choices ul { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.choices li { position: relative; display: flex; gap: var(--s-3); align-items: flex-start; }
.choices input, .checks input, .field--check input { flex: none; width: 1.375rem; height: 1.375rem; margin: 0.15rem 0 0; accent-color: var(--c-action); }
.choices label { cursor: pointer; }
.choices__label { display: block; }
.choices__note { display: block; font-size: var(--t-small); color: var(--c-ink-soft); }
.choices--cards ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: var(--s-3); }
.choices--cards li { border: 1.5px solid var(--c-rule-strong); border-radius: var(--r-box); padding: var(--s-4); }
.choices--cards li:has(input:checked) { border-color: var(--c-action); box-shadow: inset 0 0 0 1px var(--c-action); background: var(--c-wash); }
.choices--cards label::after { content: ''; position: absolute; inset: 0; }
.choices--cards .choices__label { font-family: var(--f-display); font-weight: 700; }

.checks { display: grid; gap: var(--s-2); }
.checks label { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; }
.subscribe fieldset { border: 0; padding: 0; margin: 0; }
.subscribe legend { font-family: var(--f-display); font-weight: 700; margin-bottom: var(--s-2); }
.subscribe > * + * { margin-top: var(--s-4); }
.subscribe .field input { max-width: 26rem; }

.form-errors { border: 2px solid var(--c-closed); border-radius: var(--r-box); padding: var(--s-4) var(--s-5); background: var(--c-closed-bg); }
.form-errors h2 { font-size: 1.125rem; color: var(--c-closed); }
.form-errors ul { margin-top: var(--s-2); padding-left: 1.2em; }
.form-errors a { color: var(--c-closed); font-weight: 700; }
.form-note { font-size: var(--t-small); background: var(--c-limited-bg); border-radius: var(--r-box); padding: var(--s-3) var(--s-4); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form-actions .meta { max-width: 40ch; }
button.btn:disabled { opacity: 0.7; cursor: progress; }
[hidden] { display: none !important; }

/* pages/00-inner.css */
/* Shared inner-page layout: content column + action aside, and the blocks
   service pages are built from. */

.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s-7); align-items: start; padding-block: var(--s-7) var(--s-8); }
.page-body--single { grid-template-columns: minmax(0, 1fr); }
.page-main > section + section { margin-top: var(--s-7); }
.page-main > section > h2 + p { max-width: var(--measure); }
.page-main > section > * + * { margin-top: var(--s-4); }
.page-main > section > h2 + * { margin-top: var(--s-3); }
.page-aside { position: sticky; top: var(--s-5); display: grid; gap: var(--s-4); }
@media (max-width: 60em) {
  .page-body { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .page-aside { position: static; }
}

/* Action box in the aside: one main action, availability, phone. */
.action-box { border: var(--rule-w) solid var(--c-rule-strong); border-top: var(--panel-top) solid var(--c-line); border-radius: 0 0 var(--r-box) var(--r-box); padding: var(--s-5); font-size: var(--t-small); }
.action-box h2 { font-size: 1.1875rem; }
.action-box > * + * { margin-top: var(--s-3); }
.action-box .btn { width: 100%; }
.action-box dl { display: grid; gap: var(--s-2); }
.action-box dt { font-weight: 700; }
.action-box dd { margin: 0; }
.toc { font-size: var(--t-small); border-top: var(--rule-w) solid var(--c-rule); padding-top: var(--s-4); }
.toc h2 { font-family: var(--f-text); font-size: var(--t-small); font-weight: 700; margin-bottom: var(--s-2); }
.toc li + li { margin-top: var(--s-1); }
.toc a { color: var(--c-ink-soft); text-decoration: none; }
.toc a:hover { color: var(--c-action); text-decoration: underline; }

/* Plain bulleted list with pen-line markers. */
.ticks { display: grid; gap: var(--s-2); max-width: var(--measure); }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before { content: ''; position: absolute; left: 0.1em; top: 0.55em; width: 0.7em; height: 0.7em; border-radius: 50%; border: 2px solid var(--c-line); }

/* Numbered steps (real sequences only). */
.steps { counter-reset: step; display: grid; gap: var(--s-4); max-width: var(--measure); }
.steps > li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--c-line); font-family: var(--f-display); font-weight: 800; color: var(--c-action); font-size: 0.9375rem; }
.steps h3 { font-size: 1.125rem; margin-bottom: var(--s-1); }

/* Two-column definition rows: "what you get", "what to bring". */
.rows { border-top: var(--rule-w) solid var(--c-rule); max-width: 52rem; }
.rows > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: var(--s-2) var(--s-5); padding: var(--s-4) 0; border-bottom: var(--rule-w) solid var(--c-rule); }
.rows dd { margin: 0; }
.rows dt, .rows .rows__k { font-family: var(--f-display); font-weight: 700; }
@media (max-width: 40em) { .rows > div { grid-template-columns: 1fr; } }

/* Split block: text with a small illustration. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: var(--s-5); align-items: center; }
.split .ill { width: 100%; height: auto; }
@media (max-width: 40em) { .split { grid-template-columns: 1fr; } .split .ill { width: 9rem; order: -1; } }

/* Cards used on hubs (services, knowledge hub): content-led, one layer only. */
.link-rows { border-top: var(--rule-w) solid var(--c-rule); }
.link-row { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; padding: var(--s-5) 0; border-bottom: var(--rule-w) solid var(--c-rule); }
.link-row .ill { width: 4rem; height: auto; }
.link-row h3 { font-size: var(--t-h3); }
.link-row h3 a { color: var(--c-ink); text-decoration: none; }
.link-row h3 a::after { content: ''; position: absolute; inset: 0; }
.link-row:hover h3 a { color: var(--c-action); text-decoration: underline; }
.link-row:has(a:focus-visible) { outline: 3px solid var(--c-action); outline-offset: 2px; }
.link-row h3 a:focus-visible { outline: none; }
.link-row p { color: var(--c-ink-soft); margin-top: var(--s-1); max-width: 60ch; }
.link-row__go { color: var(--c-action); font-family: var(--f-display); font-weight: 700; white-space: nowrap; }
@media (max-width: 40em) { .link-row { grid-template-columns: 3rem minmax(0, 1fr); } .link-row .ill { width: 3rem; } .link-row__go { display: none; } }

/* "Related" links at the foot of a page. */
.related { border-top: var(--rule-w) solid var(--c-rule); padding-top: var(--s-5); }
.related h2 { font-size: 1.1875rem; margin-bottom: var(--s-3); }
.related ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }

/* Guides */
.brief { background: var(--c-mist); border-radius: var(--r-box); padding: var(--s-5); max-width: var(--measure); }
.brief h2 { font-size: 1.1875rem; }
.brief > * + * { margin-top: var(--s-3); }
.guide-body .page-main > section:not(.brief):not(.related) { max-width: var(--measure); }
.guide-body .page-main > section ul:not([role]), .guide-body .page-main > section ol:not([role]) { padding-left: 1.25em; }
.guide-body .page-main > section :is(ul, ol):not([role]) > li + li { margin-top: var(--s-2); }
.guide-body .page-main > section li::marker { color: var(--c-line); }
.guide-body .review { margin-top: var(--s-7); }
.def { border-top: var(--rule-w) solid var(--c-rule); padding-top: var(--s-3); }
.def dt { font-family: var(--f-display); font-weight: 700; }
.def dd { margin: var(--s-1) 0 0; }
.def + .def { margin-top: var(--s-4); }
.src { font-size: var(--t-small); color: var(--c-ink-soft); }

/* pages/about.css */
/* About group: About, Our team, Quality and your rights.
   Builds on the shared inner-page blocks in 00-inner.css. */

/* Definition lists on these pages sit flush with the text column. */
.about-body dd { margin-inline-start: 0; }
.about-body dd > * + * { margin-top: var(--s-2); }
.about-body .page-main > section > h3 { font-size: var(--t-h3); margin-top: var(--s-6); }

/* A person: photo slot beside name, role and summary. Used for the Clinical
   Director on About and for every profile on Our team. */
.about-person { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-5); align-items: start; max-width: 52rem; }
.about-person__photo .ill { width: 100%; height: auto; }
.about-person__photo p { margin-top: var(--s-2); line-height: 1.2; }
.about-person__body > * + * { margin-top: var(--s-3); }
.about-person__body h2, .about-person__body h3 { font-size: var(--t-h2); }
.about-person__body h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
.about-person__role { font-family: var(--f-display); font-weight: 700; color: var(--c-action); margin-top: var(--s-1); }
.about-person__label { font-family: var(--f-display); font-weight: 700; }
.about-person__body .ticks { font-size: var(--t-small); }
@media (max-width: 40em) {
  .about-person { grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s-4); }
  .about-person__body h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); }
}

/* Team profiles: each one opens with a hairline so people read as separate. */
.page-main > .about-profile { border-top: var(--rule-w) solid var(--c-rule-strong); padding-top: var(--s-6); }
.about-rows > div { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); }
.about-rows .ticks { gap: var(--s-1); }
@media (max-width: 40em) { .about-rows > div { grid-template-columns: 1fr; gap: var(--s-1); } }

/* Proposed content waiting for the owner: a quiet panel, never a claim. */
.about-pending { max-width: 52rem; border: var(--rule-w) dashed var(--c-rule-strong); border-radius: var(--r-box); padding: var(--s-5); }
.about-pending > * + * { margin-top: var(--s-3); }

/* Two routes for feedback: internal and independent. */
.about-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); max-width: 52rem; }
.about-route { border: var(--rule-w) solid var(--c-rule-strong); border-top: var(--panel-top) solid var(--c-line); border-radius: 0 0 var(--r-box) var(--r-box); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.about-route h3 { font-size: var(--t-h3); }
.about-route dl { display: grid; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); border-top: var(--rule-w) solid var(--c-rule); }
.about-route dl > div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s-3); }
.about-route dt { font-weight: 700; }
.about-route dd a { font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 48em) { .about-routes { grid-template-columns: minmax(0, 1fr); } }

/* Steps nested under an h3 use h4 titles. */
.about-steps h4 { font-size: var(--t-h4); margin-bottom: var(--s-1); }
.about-body .page-main > section > .notice { max-width: 52rem; }

/* On Our team the detail rows sit in the text column, under the name. */
.about-person--profile > .about-person__photo { grid-row: span 2; }
.about-person--profile > .about-rows { grid-column: 2; margin-top: 0; }
@media (max-width: 40em) {
  .about-person--profile > .about-person__photo { grid-row: auto; }
  .about-person--profile > .about-rows { grid-column: 1 / -1; }
}

/* pages/access.css */
/* Access group: For referrers, Availability, Fees and funding.
   Builds on the shared inner-page blocks in 00-inner.css. */

/* Definition lists on these pages sit flush with their column. */
.access-body dd { margin-inline-start: 0; }

/* A table that follows definition rows needs its own breathing room. */
.page-main > section > .rows + .access-table { margin-top: var(--s-6); }

/* ---------- Referral pack: a dated document inside the page ---------- */
.access-pack { max-width: 52rem; border: var(--rule-w) solid var(--c-rule-strong); border-top: var(--panel-top) solid var(--c-line); border-radius: 0 0 var(--r-box) var(--r-box); }
.page-main > .access-pack > * + * { margin-top: 0; }
.access-pack__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: var(--s-4) var(--s-6); padding: var(--s-5); background: var(--c-wash); border-bottom: var(--rule-w) solid var(--c-rule); }
.access-pack__head h2 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); }
.access-pack__date { margin-top: var(--s-2); font-size: var(--t-small); color: var(--c-ink-soft); }
.access-pack__tools { display: grid; gap: var(--s-2); align-content: start; font-size: var(--t-small); line-height: 1.5; }
.access-pack__tools a { overflow-wrap: anywhere; }
.access-pack__body { padding: var(--s-5); }
.access-pack__body > * + * { margin-top: var(--s-4); }
.access-pack__body > h3 { font-size: var(--t-h4); margin-top: var(--s-6); }
.access-pack__body > h3 + * { margin-top: var(--s-3); }

.access-pack__facts { border-top: var(--rule-w) solid var(--c-rule); font-size: var(--t-small); line-height: 1.5; }
.access-pack__facts > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--s-1) var(--s-4); padding: var(--s-3) 0; border-bottom: var(--rule-w) solid var(--c-rule); }
.access-pack__facts dt { font-weight: 700; }
.access-pack__facts dd { margin: 0; }

.access-pack__process { counter-reset: pack; columns: 2; column-gap: var(--s-6); font-size: var(--t-small); line-height: 1.45; max-width: 52rem; }
.access-pack__process li { counter-increment: pack; position: relative; break-inside: avoid; padding: var(--s-3) 0 var(--s-3) 2.4rem; border-top: var(--rule-w) solid var(--c-rule); }
.access-pack__process li::before { content: counter(pack); position: absolute; left: 0; top: var(--s-3); width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--c-line); font-family: var(--f-display); font-weight: 800; font-size: 0.8125rem; color: var(--c-action); line-height: 1; }
.access-pack__process strong { display: block; font-family: var(--f-display); }

.access-pack__check { display: grid; gap: var(--s-2); font-size: var(--t-small); line-height: 1.5; max-width: var(--measure); }
.access-pack__check li { position: relative; padding-left: 2rem; }
.access-pack__check li::before { content: ''; position: absolute; left: 0; top: 0.15em; width: 1.05rem; height: 1.05rem; border: 2px solid var(--c-rule-strong); border-radius: 2px; }

.access-pack__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-small); }
.access-pack__url { display: none; }

@media (max-width: 48em) {
  .access-pack__head { grid-template-columns: minmax(0, 1fr); }
  .access-pack__process { columns: 1; }
}
@media (max-width: 30em) {
  .access-pack__head, .access-pack__body { padding: var(--s-4); }
  .access-pack__facts > div { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Training and supervision panel (referrers) ---------- */
.access-pro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); max-width: 52rem; }
.access-pro__item { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); background: var(--c-wash-2); border-radius: var(--r-box); }
.access-pro__item--supervision { background: var(--c-paper); border: var(--rule-w) solid var(--c-rule-strong); }
.access-pro__icon { width: 3.5rem; height: 3.5rem; }
.access-pro__item h3 { font-size: var(--t-h3); }
.access-pro__item p { font-size: var(--t-small); line-height: 1.5; }
.access-pro__item .actions { margin-top: auto; padding-top: var(--s-2); flex-direction: column; align-items: flex-start; font-size: var(--t-small); font-weight: 700; }
@media (max-width: 40em) { .access-pro { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Capacity records, one card per service family ---------- */
/* Subgrid keeps the heading, text, status and links of each card on the same
   rows, so the three statuses line up side by side. */
.access-cap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s-4); }
.access-cap__item { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--s-3); align-content: start; padding: var(--s-5); border: var(--rule-w) solid var(--c-rule-strong); border-top: var(--panel-top) solid var(--c-line); border-radius: 0 0 var(--r-box) var(--r-box); }
.access-cap__item h3 { font-size: var(--t-h3); }
.access-cap__covers { font-size: var(--t-small); line-height: 1.5; color: var(--c-ink-soft); }
.access-cap__status { align-self: start; padding: var(--s-3); border-radius: var(--r-control); background: var(--c-unknown-bg); font-size: var(--t-small); line-height: 1.45; font-weight: 700; }
.access-cap__status:has(.cap--open) { background: var(--c-open-bg); }
.access-cap__status:has(.cap--limited), .access-cap__status:has(.cap--waitlist) { background: var(--c-limited-bg); }
.access-cap__status:has(.cap--closed) { background: var(--c-closed-bg); }
.access-cap__links { align-self: end; display: grid; gap: var(--s-1); padding-top: var(--s-3); border-top: var(--rule-w) solid var(--c-rule); font-size: var(--t-small); font-weight: 700; }

/* ---------- Tables ---------- */
.access-table { width: 100%; max-width: 52rem; border-collapse: collapse; border-top: var(--rule-w) solid var(--c-rule); }
.access-table caption { text-align: left; font-family: var(--f-display); font-weight: 700; font-size: var(--t-h4); padding-bottom: var(--s-3); }
.access-table th, .access-table td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-5) var(--s-4) 0; border-bottom: var(--rule-w) solid var(--c-rule); }
.access-table th:last-child, .access-table td:last-child { padding-right: 0; }
.access-table thead th { font-family: var(--f-text); font-weight: 700; font-size: var(--t-small); color: var(--c-ink-soft); padding-block: var(--s-3); }
.access-table tbody th { font-family: var(--f-display); font-weight: 700; width: 13rem; }
.access-table--stack td { font-size: var(--t-small); line-height: 1.5; }
.access-table--stack td:last-child { width: 30%; }
@media (max-width: 40em) {
  .access-table { font-size: var(--t-small); }
  .access-table tbody th { width: 38%; padding-right: var(--s-3); }
  /* Three columns are too narrow on a phone: each row becomes a block,
     with the column name shown above each cell. Roles stay explicit in the
     markup so the table is still announced as a table. */
  .access-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .access-table--stack tr { display: block; padding: var(--s-4) 0; border-bottom: var(--rule-w) solid var(--c-rule); }
  .access-table--stack tbody th, .access-table--stack td, .access-table--stack td:last-child { display: block; width: auto; padding: 0; border: 0; }
  .access-table--stack tbody th { font-size: 1.0625rem; }
  .access-table--stack td { margin-top: var(--s-3); }
  .access-table--stack td::before { content: attr(data-label); content: attr(data-label) / ''; display: block; font-weight: 700; color: var(--c-ink-soft); }
}

/* ---------- Rates strip (fees) ---------- */
.access-rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 52rem; border: var(--rule-w) solid var(--c-rule-strong); border-radius: var(--r-box); }
.access-rates > div { padding: var(--s-4) var(--s-5); }
.access-rates > div + div { border-left: var(--rule-w) solid var(--c-rule); }
.access-rates dt { font-size: var(--t-small); font-weight: 700; color: var(--c-ink-soft); line-height: 1.4; }
.access-rates dd { margin: var(--s-2) 0 0; font-family: var(--f-display); font-weight: 700; font-size: var(--t-h4); line-height: 1.3; }
@media (max-width: 48em) {
  .access-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-rates > div:nth-child(3) { border-left: 0; }
  .access-rates > div:nth-child(n + 3) { border-top: var(--rule-w) solid var(--c-rule); }
}
@media (max-width: 30em) { .access-rates > div { padding: var(--s-3) var(--s-4); } }

/* ---------- Price limits panel (fees) ---------- */
.access-panel { max-width: 52rem; padding: var(--s-5) var(--s-5) var(--s-6); background: var(--c-wash); border-top: var(--panel-top) solid var(--c-line); border-radius: 0 0 var(--r-box) var(--r-box); }
.access-panel > * + * { margin-top: var(--s-3); }
.access-panel h2 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); }
.access-panel p { max-width: var(--measure); }

/* ---------- Capacity check form (availability) ---------- */
.access-check { padding: var(--s-6) var(--s-5); background: var(--c-wash-2); border-radius: var(--r-box); }
.access-check .form { margin-top: var(--s-5); }
.access-check .choices--cards li { background: var(--c-paper); }
.access-form .choices--cards ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Restores the form's vertical rhythm: forms.css resets fieldset margins
   (.choices { margin: 0 }) after .form > * + * sets them. */
.access-check .access-form > * + * { margin-top: var(--s-5); }
.access-contact { display: grid; gap: var(--s-4); margin-inline: 0; margin-bottom: 0; padding: 0; border: 0; min-width: 0; }
.access-contact legend { padding: 0; margin-bottom: var(--s-1); font-family: var(--f-display); font-weight: 700; font-size: var(--t-h4); }
@media (max-width: 40em) {
  .access-check { padding: var(--s-5) var(--s-4); }
  .access-form .choices--cards ul { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Printing the referral pack ----------
   "Use your browser's print option" on For referrers prints the pack only. */
@media print {
  .page-access-referrers .skip-link,
  .page-access-referrers .utility,
  .page-access-referrers .site-header,
  .page-access-referrers .site-footer,
  .page-access-referrers .page-hero,
  .page-access-referrers .page-aside,
  .page-access-referrers .page-main > section:not(.access-pack) { display: none; }
  .page-access-referrers .page-body { display: block; padding: 0; }
  .page-access-referrers .access-pack { max-width: none; border: 0; }
  .page-access-referrers .access-pack__head { background: none; padding: 0 0 var(--s-4); }
  .page-access-referrers .access-pack__tools { display: none; }
  .page-access-referrers .access-pack__body { padding: var(--s-4) 0 0; }
  .page-access-referrers .access-pack__process li { border-top-color: #999; }
  .page-access-referrers .access-pack__links { display: grid; gap: var(--s-1); }
  .page-access-referrers .access-pack__url { display: inline; color: var(--c-ink-soft); }
  .page-access-referrers .access-pack__process li, .page-access-referrers .access-pack__facts > div { break-inside: avoid; }
}

/* pages/articles.css */
/* Knowledge Hub articles: archive, latest-articles block, article body */
.art-list { margin-top: var(--s-3); border-top: var(--rule-w) solid var(--c-rule); }
.art-item { padding: var(--s-5) 0; border-bottom: var(--rule-w) solid var(--c-rule); display: grid; gap: var(--s-2); max-width: 52rem; }
.art-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); color: var(--c-ink-soft); font-size: 0.875rem; }
.art-item__cat { font-weight: 700; color: var(--c-ink); }
.art-item__title { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.3; }
.art-item__title a { color: var(--c-ink); text-decoration-color: var(--c-line); }
.art-item__title a:hover { color: var(--c-action); }
.art-item p { color: var(--c-ink-soft); }
.art-empty { max-width: var(--measure); }
.section--articles .art-list { margin-top: 0; }

.art > * + * { margin-top: var(--s-5); }
.art .upd-dates, .art-body, .art .review { max-width: var(--measure); }
.art-body > * + * { margin-top: var(--s-4); }
.art-body > :is(h2, h3) { margin-top: var(--s-6); }
.art-body > :is(h2, h3) + * { margin-top: var(--s-3); }
.art-body :is(ul, ol) { padding-left: 1.25em; }
.art-body li + li { margin-top: var(--s-2); }
.art-body li::marker { color: var(--c-line); }
.art-fig img { display: block; max-width: 100%; height: auto; border-radius: var(--r-control); }
.art-fig figcaption, .art-quote figcaption { margin-top: var(--s-2); font-size: var(--t-small); color: var(--c-ink-soft); }
.art-quote blockquote { font-size: 1.25rem; line-height: 1.5; font-style: italic; padding-inline: var(--s-5); }
.art-all { padding-top: var(--s-4); }

/* pages/forms.css */
/* Enquiry, referral, contact and confirmation pages (group: forms).
   Builds on 00-inner.css (page-body, rows, steps, ticks, link-rows) and
   forms.css. */

/* Definition lists on these pages sit flush with the text column. */
.forms-body dd { margin-inline-start: 0; }

/* Refer page: the note under the hero buttons takes its own line. */
.forms-linknote { flex-basis: 100%; font-size: var(--t-small); color: var(--c-ink-soft); }

/* Enquiry form: keep the standard question spacing for fieldsets (the shared
   .choices reset removes it) and size checkboxes to the box, not to the 48px
   text-input minimum. */
.forms-enquiry > * + fieldset, .forms-enquiry .form-section > * + fieldset { margin-top: var(--s-5); }
.forms-enquiry .field--check input { min-height: 0; padding: 0; }

/* Grouped questions: phone + email (one question, two inputs) and the
   optional email updates under the consent box. */
.forms-pair, .forms-updates { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-4); }
.forms-updates { gap: var(--s-2); }
.forms-pair legend, .forms-updates legend { padding: 0; margin-bottom: var(--s-1); font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem; }
.forms-pair > .field__hint, .forms-updates > .field__hint { margin-top: calc(-1 * var(--s-2)); }
.forms-updates > .field__hint { margin-top: calc(-1 * var(--s-1)); margin-bottom: var(--s-1); }

/* Aside: short numbered "what happens next" and quiet notes. */
.forms-next { padding-left: 1.25em; display: grid; gap: var(--s-2); }
.forms-next li::marker { color: var(--c-action); font-weight: 700; }
.forms-aside-note { font-size: var(--t-small); border-top: var(--rule-w) solid var(--c-rule); padding-top: var(--s-3); }
.forms-aside-note h2 { font-family: var(--f-text); font-size: var(--t-small); font-weight: 700; margin-bottom: var(--s-1); }

/* Confirmation page: the service-specific block sits inside [data-thanks],
   so it needs the section rhythm that .page-main gives direct children. */
.forms-thanks [data-thanks] > section > * + * { margin-top: var(--s-4); }
.forms-thanks [data-thanks] > section > h2 + * { margin-top: var(--s-3); }
.forms-thanks > [data-thanks] + section { margin-top: var(--s-7); }
.forms-thanks .notice { max-width: var(--measure); }

/* Contact details: the number and address people come for, read first. */
.forms-details__main { font-family: var(--f-display); font-weight: 700; font-size: var(--t-h4); }
.forms-details .meta { margin-top: var(--s-1); }

/* Contact: ways to get in touch, text-led (no small illustrations). */
.forms-routes .link-row { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 40em) { .forms-routes .link-row { grid-template-columns: minmax(0, 1fr); } }

/* pages/hub.css */
/* Knowledge Hub */
.hub-search { margin-top: var(--s-6); max-width: 40rem; }
.hub-search label { font-family: var(--f-display); font-weight: 700; display: block; margin-bottom: var(--s-2); }
.hub-search__row { display: flex; gap: var(--s-2); }
.hub-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0.6rem 0.75rem; border: 1.5px solid var(--c-ink-soft); border-radius: var(--r-control); }
.hub-search input:focus-visible { outline: 3px solid var(--c-action); outline-offset: 1px; }
.hub-updates { padding-top: var(--s-6); }
.hub-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); }
.hub-more > div > * + * { margin-top: var(--s-3); }
.hub-more h2 { font-size: var(--t-h3); }
.hub-more .hub-more__h2 { margin-top: var(--s-6); }
@media (max-width: 52em) { .hub-more { grid-template-columns: 1fr; gap: var(--s-6); } }

/* pages/np.css */
/* Nurse practitioner clinic page (/nurse-practitioner/). */

/* The six services: a two-column list on hairlines, ring markers from .ticks. */
.np-services { columns: 2; column-gap: var(--s-6); margin-top: var(--s-3); max-width: 46rem; }
.np-services li { break-inside: avoid; position: relative; padding: var(--s-2) 0 var(--s-2) 1.6em; border-top: var(--rule-w) solid var(--c-rule); }
.np-services li::before { content: ''; position: absolute; left: 0.1em; top: calc(var(--s-2) + 0.45em); width: 0.7em; height: 0.7em; border-radius: 50%; border: 2px solid var(--c-line); }
.np-services--page { margin-top: 0; }
.np-billing { margin-top: var(--s-4); font-family: var(--f-display); font-weight: 700; }
.np-body .notice { max-width: 52rem; }

@media (max-width: 40em) {
  .np-services { columns: 1; }
}

/* pages/policy.css */
/* Policy group: Privacy, Accessibility, Terms of use, the 404 page and the
   Brand kit. Builds on .prose (base.css) and the inner-page blocks in
   00-inner.css. Brand kit classes use the bk- prefix. */

/* ---------- Shared ---------- */
.policy-body dd { margin: 0; }
.policy-body dd > * + * { margin-top: var(--s-2); }
.policy-body code { font-family: inherit; font-size: 0.9375em; font-weight: 700; color: var(--c-ink); background: var(--c-wash); border-radius: var(--r-control); padding: 0 0.3em; white-space: nowrap; }

/* Contents: in the aside on wide screens; folded at the top of the text on
   narrow screens, where the aside falls below the whole page. */
.policy-toc-top { display: none; }
.policy-toc-top .faq__a { padding-bottom: var(--s-4); font-size: var(--t-small); }
.policy-toc-top ul[role='list'] { padding-left: 0; display: grid; gap: var(--s-2); }
.policy-toc-top ul[role='list'] > li + li { margin-top: 0; }
@media (max-width: 60em) {
  .policy-toc-top { display: block; margin-top: var(--s-5); }
  .policy-body .page-aside .toc { display: none; }
}

/* ---------- Policy documents: one prose column, contents in the aside ---------- */
.policy-doc h2 { margin-top: 0; }
.policy-doc > section:first-of-type { margin-top: var(--s-6); }
.policy-doc section > h3 { margin-top: var(--s-6); font-size: var(--t-h4); }
.policy-doc ul[role='list'] { padding-left: 0; }
.policy-doc ul[role='list'] > li + li { margin-top: 0; }
.policy-doc .rows > div { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--s-1) var(--s-5); }
.policy-doc .rows dt { line-height: var(--lh-head); padding-top: 0.2em; }
.policy-doc .rows dd a { overflow-wrap: anywhere; }
@media (max-width: 40em) { .policy-doc .rows > div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.policy-404 { padding-block: var(--s-7) var(--s-8); }
.policy-404 h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); margin-bottom: var(--s-4); }
.policy-404__routes { max-width: 52rem; }
.policy-404__routes .ill { max-height: 3.5rem; }
.policy-404__call { margin-top: var(--s-6); max-width: var(--measure); }
.policy-404__call a { font-weight: 700; }
/* The not-found drawing's background shape runs slightly past its viewBox. */
.page-hero__art .ill--not-found { overflow: visible; }
@media (max-width: 40em) {
  .policy-404__routes .link-row { align-items: start; }
  .policy-404__routes .ill { margin-top: var(--s-1); }
}

/* ---------- Brand kit ---------- */
.bk .page-main > section:first-of-type { margin-top: var(--s-6); }
.bk .page-main > section > h3 { margin-top: var(--s-6); font-size: var(--t-h3); }

/* Logo */
.bk-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); max-width: 52rem; }
.bk-logo { margin: 0; }
.bk-logo__stage { display: grid; place-items: center; min-height: 9rem; padding: var(--s-5); border: var(--rule-w) solid var(--c-rule); border-radius: var(--r-box); background: var(--c-paper); }
.bk-logo--deep .bk-logo__stage { background: var(--c-deep); border-color: var(--c-deep); }
.bk-logo .logo { width: 14rem; height: auto; }
.bk-logo figcaption { margin-top: var(--s-2); font-size: var(--t-small); color: var(--c-ink-soft); }
@media (max-width: 40em) { .bk-logos { grid-template-columns: minmax(0, 1fr); } }

/* Colour swatches */
.bk-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: var(--s-4); }
.bk-swatch { display: flex; flex-direction: column; border: var(--rule-w) solid var(--c-rule); border-radius: var(--r-box); overflow: hidden; }
.bk-swatch__chip { display: grid; place-items: center; height: 5rem; padding: var(--s-2); background: var(--bk-c); border-bottom: var(--rule-w) solid var(--c-rule); text-align: center; line-height: 1.2; }
.bk-swatch__chip--pair { color: var(--bk-fg); font-weight: 700; }
.bk-swatch__body { display: grid; gap: var(--s-1); align-content: start; padding: var(--s-3) var(--s-4) var(--s-4); font-size: var(--t-small); line-height: 1.45; }
.bk-swatch__body code { white-space: normal; overflow-wrap: anywhere; }
.bk-swatch__hex { color: var(--c-ink-soft); }
.bk-checks { display: grid; gap: var(--s-2); margin-top: var(--s-2); padding-top: var(--s-2); border-top: var(--rule-w) solid var(--c-rule); }
.bk-grade { display: block; color: var(--c-ink-soft); }
@media (max-width: 40em) {
  .bk-swatch { flex-direction: row; }
  .bk-swatch__chip { flex: none; width: 5.5rem; height: auto; border-bottom: 0; border-right: var(--rule-w) solid var(--c-rule); }
  .bk-swatch__body { flex: 1; min-width: 0; padding: var(--s-3); }
}

/* Type */
.bk-specimens { display: grid; gap: var(--s-5); }
.bk-specimen { border-top: var(--rule-w) solid var(--c-rule); padding-top: var(--s-4); }
.bk-specimen__meta { font-size: var(--t-small); color: var(--c-ink-soft); max-width: var(--measure); }
.bk-specimen__meta strong { color: var(--c-ink); }
.bk-specimen__sample { margin-top: var(--s-3); color: var(--c-ink); }
.bk-specimen__sample--h1 { font-family: var(--f-display); font-weight: 800; font-size: var(--t-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
.bk-specimen__sample--h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-h3); line-height: var(--lh-head); }
.bk-specimen__sample--body { max-width: var(--measure); }
.bk-specimen__sample--glyphs { font-size: var(--t-h3); word-spacing: 0.4em; }

/* Tables */
.bk-table { width: 100%; max-width: 52rem; border-collapse: collapse; font-size: var(--t-small); line-height: 1.45; }
.bk-table caption { text-align: left; font-family: var(--f-display); font-weight: 700; font-size: var(--t-h4); padding-bottom: var(--s-2); }
.bk-table th, .bk-table td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: var(--rule-w) solid var(--c-rule); }
.bk-table thead th { font-family: var(--f-display); border-bottom-color: var(--c-rule-strong); }
.bk-table tbody th { font-weight: 700; }
.bk-table code { font-weight: 400; }
.bk-table--components code { white-space: normal; }
.bk-table--components thead th:nth-child(1) { width: 32%; }
.bk-table--components thead th:nth-child(2) { width: 28%; }
@media (max-width: 40em) {
  .bk-table--components thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bk-table--components tr { display: block; padding: var(--s-3) 0; border-bottom: var(--rule-w) solid var(--c-rule); }
  .bk-table--components tbody th, .bk-table--components td { display: block; padding: 0; border: 0; }
  .bk-table--components td { margin-top: var(--s-1); }
  .bk-table--components td::before { content: attr(data-label) ": "; content: attr(data-label) ": " / ""; color: var(--c-ink-soft); }
}

/* Demo panels */
.bk-demo { max-width: 52rem; padding: var(--s-5); border: var(--rule-w) solid var(--c-rule); border-radius: var(--r-box); }
.bk-demo > * + * { margin-top: var(--s-4); }
.bk-demo--deep { background: var(--c-deep); border-color: var(--c-deep); border-top: var(--panel-top) solid var(--c-line); color: var(--c-on-deep); }
.bk-form > * + * { margin-top: var(--s-5); }
.bk-form > h3 { font-size: var(--t-h4); border-top: var(--rule-w) solid var(--c-rule); padding-top: var(--s-5); }
.bk-form .form-errors h4 { font-size: var(--t-h4); color: var(--c-closed); }
@media (max-width: 30em) { .bk-demo { padding: var(--s-4); } }

/* Badges and capacity states */
.bk-badges { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.bk-states dt code { display: block; width: fit-content; margin-top: var(--s-1); font-family: var(--f-text); }

/* Illustration gallery: fixed-height stages so every row lines up. */
.bk-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
@media (min-width: 48em) {
  .bk-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bk-gallery--icons { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.bk-gallery--wide { grid-template-columns: minmax(0, 1fr); }
.bk-gallery__item { display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--t-small); line-height: 1.4; }
.bk-gallery__stage { display: grid; place-items: center; height: 8.5rem; padding: var(--s-3); margin-bottom: var(--s-1); border: var(--rule-w) solid var(--c-rule); border-radius: var(--r-box); }
.bk-gallery__art { width: 100%; height: 100%; overflow: visible; }
.bk-gallery--icons .bk-gallery__stage { height: 6rem; }
.bk-gallery--icons .bk-gallery__art { width: 3.5rem; height: 3.5rem; }
.bk-gallery--wide .bk-gallery__stage { height: auto; padding: var(--s-5); }
.bk-gallery--wide .bk-gallery__art { height: auto; max-width: 40rem; }
.bk-gallery__note { color: var(--c-ink-soft); }

/* Spacing and shape */
.bk-space { display: grid; gap: var(--s-2); max-width: 52rem; }
.bk-space li { display: grid; grid-template-columns: 4.5rem 8.5rem minmax(0, 1fr); gap: var(--s-3); align-items: center; font-size: var(--t-small); }
.bk-space__val { color: var(--c-ink-soft); }
.bk-space__bar { display: block; width: var(--bk-w); height: var(--s-4); background: var(--c-line); }
@media (max-width: 30em) {
  .bk-space li { grid-template-columns: 4.5rem minmax(0, 1fr); row-gap: var(--s-1); }
  .bk-space__bar { grid-column: 2; }
}
.bk-radii { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.bk-radius { display: inline-block; padding: var(--s-3) var(--s-4); border: 2px solid var(--c-action); font-size: var(--t-small); }
.bk-radius--control { border-radius: var(--r-control); }
.bk-radius--box { border-radius: var(--r-box); }

/* pages/pro.css */
/* Provider training and clinical supervision pages (group: pro).
   Builds on the shared inner-page blocks in 00-inner.css. */

/* Definition lists on these pages sit flush with the text column. */
.pro-body dd { margin-inline-start: 0; }

/* Three ways to attend: always visible as text, side by side when there is room. */
.pro-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s-3); }
.pro-mode { display: flex; flex-direction: column; gap: var(--s-2); background: var(--c-wash-2); border-radius: var(--r-box); padding: var(--s-5); }
.pro-mode__icon { width: 2rem; height: 2rem; color: var(--c-action); margin-bottom: var(--s-1); }
.pro-mode h3 { font-size: var(--t-h4); }
.pro-mode p { font-size: var(--t-small); line-height: 1.5; }
.pro-mode__fine { margin-top: auto; padding-top: var(--s-3); border-top: var(--rule-w) solid var(--c-rule-strong); color: var(--c-ink-soft); }

/* Supervision areas: short definitions in two columns. */
.pro-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); max-width: 52rem; border-top: var(--rule-w) solid var(--c-rule); }
.pro-areas > div { padding: var(--s-4) 0; border-bottom: var(--rule-w) solid var(--c-rule); }
.pro-areas dt { font-family: var(--f-display); font-weight: 700; }
.pro-areas dd { margin-top: var(--s-1); color: var(--c-ink-soft); font-size: var(--t-small); line-height: 1.5; }
@media (max-width: 40em) { .pro-areas { grid-template-columns: 1fr; } }

/* Capability framework statement: a quiet panel with the pen-line top edge. */
.pro-panel { max-width: 52rem; background: var(--c-wash); border-top: var(--panel-top) solid var(--c-line); border-radius: 0 0 var(--r-box) var(--r-box); padding: var(--s-5) var(--s-5) var(--s-6); }
.pro-panel > * + * { margin-top: var(--s-3); }
.pro-panel h2 { font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); }
.pro-panel p { max-width: var(--measure); }

/* pages/services.css */
/* Services group: hub, Behaviour Support Plans, Restrictive Practice
   Consultation. Shared blocks come from 00-inner.css; these are the extras. */

/* Interim vs comprehensive plan, side by side. */
.services-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); max-width: 52rem; }
.services-plan { border: var(--rule-w) solid var(--c-rule-strong); border-radius: var(--r-box); padding: var(--s-5); background: var(--c-paper); }
.services-plan > * + * { margin-top: var(--s-3); }
.services-plan h3 { font-size: var(--t-h3); }
.services-plan dl { display: grid; gap: var(--s-3); border-top: var(--rule-w) solid var(--c-rule); padding-top: var(--s-4); margin-top: var(--s-4); font-size: var(--t-small); }
.services-plan dt { font-family: var(--f-display); font-weight: 700; color: var(--c-ink); }
.services-plan dd { margin: var(--s-1) 0 0; }
@media (max-width: 40em) { .services-plans { grid-template-columns: minmax(0, 1fr); } }

/* Roles table (who does what). */
.services-table { width: 100%; max-width: 52rem; border-collapse: collapse; border-top: var(--rule-w) solid var(--c-rule); }
.services-table th, .services-table td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-5) var(--s-4) 0; border-bottom: var(--rule-w) solid var(--c-rule); }
.services-table td { padding-right: 0; }
.services-table thead th { font-family: var(--f-text); font-weight: 700; font-size: var(--t-small); color: var(--c-ink-soft); padding-block: var(--s-3); }
.services-table tbody th { font-family: var(--f-display); font-weight: 700; width: 14rem; }
@media (max-width: 40em) {
  .services-table { font-size: var(--t-small); }
  .services-table tbody th { width: 38%; padding-right: var(--s-3); }
}

/* The authorisation notice under the roles table keeps to the table width. */
.services-table + .notice { max-width: 52rem; }

/* pages/updates.css */
/* NDIS updates: archive and articles */
.upd-cat { font-family: var(--f-text); font-weight: 700; color: var(--c-ink-soft); margin-left: var(--s-2); }
.upd-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s-3) var(--s-5); padding: var(--s-4) 0; border-block: var(--rule-w) solid var(--c-rule); font-size: var(--t-small); max-width: var(--measure); }
.upd-dates dt { font-weight: 700; }
.upd-dates dd { margin: 0; }
.upd-filters { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: var(--s-3); align-items: end; padding: var(--s-4); background: var(--c-wash); border-radius: var(--r-box); }
.upd-filters .field label { font-size: var(--t-small); }
.upd-filters input, .upd-filters select { min-height: 44px; }
@media (max-width: 60em) { .upd-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .upd-filters .field:first-child { grid-column: 1 / -1; } }
@media (max-width: 30em) { .upd-filters { grid-template-columns: 1fr; } }
.upd-count { margin-top: var(--s-4); }
.upd-list { margin-top: var(--s-3); border-top: var(--rule-w) solid var(--c-rule); }
.upd-item { padding: var(--s-5) 0; border-bottom: var(--rule-w) solid var(--c-rule); display: grid; gap: var(--s-2); max-width: 52rem; }
.upd-item__title { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.3; }
.upd-item__title a { color: var(--c-ink); text-decoration-color: var(--c-line); }
.upd-item__title a:hover { color: var(--c-action); }
.upd-item p { color: var(--c-ink-soft); }
.upd-sub { margin-top: var(--s-8); border-top: var(--rule-w) solid var(--c-rule); padding-top: var(--s-6); max-width: 44rem; }
.upd-sub h2 { font-size: var(--t-h3); }
.upd-sub > p { margin: var(--s-1) 0 var(--s-4); }
