/* PDA Compass design system (A01). Tokens, base, shell, components. Pages add css/pages/<page>.css for layout only.
   Fonts: Atkinson Hyperlegible (body, legibility) + Fraunces (display), self-hosted in fonts/ (X1 2026-10-22: the
   Bunny Fonts @import was the only third-party request on load, BRIEF 2.11, and a render-blocking one; the six latin
   woff2 files, 107 KB in all, were copied from fonts.bunny.net with the unicode-range Bunny serves. Both families are
   SIL Open Font Licence. font-display: swap, so text paints in the system fallback first and nothing ever blocks). */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --ink: #1e2430;
  --ink-muted: #58616f;
  --line: #e4dcd0;
  --line-strong: #c9bfb0;
  --accent: #0f6e72;
  --accent-ink: #ffffff;
  --accent-soft: #dcefee;
  --accent-deep: #0a5457;
  --warm: #b8532a;
  --warm-soft: #fbe7da;
  --focus: #0f6e72;
  --focus-halo: #ffffff;
  --ok: #2f7a3e;
  --ok-soft: #e1f2e3;
  --caution: #8a5a00;
  --caution-soft: #fdf0d2;
  --danger: #b3261e;
  --danger-soft: #fbe3e1;
  /* Audience hues: Okabe–Ito colour-blind-safe set. Always paired with a text label. */
  --aud-parent: #0072b2;
  --aud-family: #cc79a7;
  --aud-child: #e69f00;
  --aud-teen: #009e73;
  --aud-adult: #d55e00;
  --aud-educator: #56b4e9;
  --aud-clinician: #7a5195;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --font-body: "Atkinson Hyperlegible", "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --shadow-1: 0 1px 2px rgba(30, 36, 48, 0.05), 0 2px 10px -2px rgba(30, 36, 48, 0.08);
  --shadow-2: 0 2px 6px rgba(30, 36, 48, 0.06), 0 18px 40px -16px rgba(30, 36, 48, 0.22);
  --maxw: 1180px;
  --measure: 66ch;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
  --std: 260ms;
  /* data-explorer / info-tip hooks */
  --bg-elevated: var(--surface);
  --bg-surface: var(--surface);
  --bg-subtle: var(--surface-2);
  --text-primary: var(--ink);
  --text-muted: var(--ink-muted);
  --border-subtle: var(--line);
  --border-strong: var(--line-strong);
  --accent-primary: var(--accent);
  --accent-primary-soft: var(--accent-soft);
  --link: var(--accent-deep);
  --focus-ring: var(--focus);
  --warning: var(--caution);
  --it-size: 20px;
}

:root:not([data-theme="light"]) { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1623;
    --surface: #16202f;
    --surface-2: #1d2938;
    --ink: #ece8e1;
    --ink-muted: #adb5c2;
    --line: #2b3749;
    --line-strong: #3f4d62;
    --accent: #6fcbcb;
    --accent-ink: #082527;
    --accent-soft: #163a3d;
    --accent-deep: #8fdcdb;
    --warm: #f0a077;
    --warm-soft: #3b2a21;
    --focus: #8fe0df;
    --focus-halo: #0f1623;
    --ok: #7bd389;
    --ok-soft: #1d3a26;
    --caution: #f2c14e;
    --caution-soft: #3b3115;
    --danger: #ff8a80;
    --danger-soft: #45211f;
    --aud-educator: #7cc6f0;
    --aud-clinician: #b391d0;
    --aud-parent: #4da3e0;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 10px -2px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 40px -16px rgba(0, 0, 0, 0.6);
    --link: var(--accent-deep);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1623;
  --surface: #16202f;
  --surface-2: #1d2938;
  --ink: #ece8e1;
  --ink-muted: #adb5c2;
  --line: #2b3749;
  --line-strong: #3f4d62;
  --accent: #6fcbcb;
  --accent-ink: #082527;
  --accent-soft: #163a3d;
  --accent-deep: #8fdcdb;
  --warm: #f0a077;
  --warm-soft: #3b2a21;
  --focus: #8fe0df;
  --focus-halo: #0f1623;
  --ok: #7bd389;
  --ok-soft: #1d3a26;
  --caution: #f2c14e;
  --caution-soft: #3b3115;
  --danger: #ff8a80;
  --danger-soft: #45211f;
  --aud-educator: #7cc6f0;
  --aud-clinician: #b391d0;
  --aud-parent: #4da3e0;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 10px -2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  --link: var(--accent-deep);
}

/* Text size steps (settings) and easier reading */
:root { font-size: 106.25%; }               /* 17px base: generous for a reading site */
:root[data-text-size="2"] { font-size: 118.75%; }
:root[data-text-size="3"] { font-size: 131.25%; }
:root[data-easy-read] { --measure: 56ch; }
:root[data-easy-read] body { line-height: 1.8; letter-spacing: 0.01em; word-spacing: 0.06em; }
:root[data-easy-read] p, :root[data-easy-read] li { max-width: var(--measure); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* regression 2026-10-21-panel-hidden: display:grid on .card__panel beat the UA [hidden] rule, so strategy cards rendered open */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Paper texture: a very faint grain, decoration only */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
  background-image: radial-gradient(rgba(30, 36, 48, 0.035) 1px, transparent 1px);
  background-size: 7px 7px;
}
:root[data-theme="dark"] body::before { opacity: 0.18; background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { opacity: 0.18; background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); } }
main { position: relative; z-index: 1; display: block; }
main:focus { outline: none; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
svg { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 var(--space-3); color: var(--ink); text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin-bottom: var(--space-2); }
p, ul, ol { margin: 0 0 var(--space-4); }
ul, ol { padding-left: 1.3em; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; transition: color var(--fast) var(--ease); }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
strong { font-weight: 700; }
small, .small { font-size: 0.875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-halo); border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }
code, kbd { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
blockquote { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-5); border-left: 3px solid var(--warm); background: var(--surface-2); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-style: italic; }
summary { cursor: pointer; }

/* ---------- 3. Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 720px) { .container { padding-inline: var(--space-6); } }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--space-7); }
@media (min-width: 900px) { .section { padding-block: var(--space-8); } }
.section--tint { background: var(--surface-2); }
.section--tight { padding-block: var(--space-5); }
.section__head { margin-bottom: var(--space-5); max-width: var(--measure); }
.section__head h2 { margin-bottom: var(--space-2); }
.stack > * + * { margin-top: var(--space-4); }
.stack--s > * + * { margin-top: var(--space-2); }
.stack--l > * + * { margin-top: var(--space-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.cluster--between { justify-content: space-between; }
.grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.split { display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .split--even { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.page-hero { padding-block: var(--space-7) var(--space-5); position: relative; }
.page-hero h1 { margin-bottom: var(--space-3); }
.page-hero .lede { margin-bottom: var(--space-4); }
.eyebrow { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--space-3); }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul li + li, .prose ol li + li { margin-top: var(--space-1); }
.muted { color: var(--ink-muted); }
.toc { position: sticky; top: calc(var(--header-h) + var(--space-4)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-1); }
.toc h2, .toc h3 { font-size: 0.85rem; font-family: var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-2); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); min-height: 44px; display: flex; align-items: center; border-left: 2px solid transparent; padding-left: var(--space-3); margin-left: calc(-1 * var(--space-3)); }
.toc a:hover, .toc a.is-active, .toc a[aria-current] { border-left-color: var(--accent); color: var(--accent); }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); font-weight: 700; text-decoration: none; transition: top var(--fast) var(--ease); }
.skip-link:focus { top: var(--space-3); }
.icon { display: inline-flex; vertical-align: middle; line-height: 0; flex: none; }
.icon svg { display: block; }
.icon--chev svg { transition: transform var(--std) var(--ease); }
[aria-expanded="true"] > .icon--chev svg { transform: rotate(180deg); }
.print-only { display: none; }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-ink: var(--ink); --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: normal; text-align: center;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn:hover { --btn-bg: var(--surface-2); color: var(--btn-ink); border-color: var(--ink-muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { --btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-line: var(--accent); box-shadow: 0 6px 16px -8px rgba(15, 110, 114, 0.6); }
.btn--primary:hover { --btn-bg: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-ink); }
:root[data-theme="dark"] .btn--primary:hover, :root:not([data-theme="light"]) .btn--primary:hover { --btn-bg: #8fdcdb; border-color: #8fdcdb; }
.btn--ghost { --btn-bg: transparent; --btn-line: transparent; }
.btn--ghost:hover { --btn-bg: var(--surface-2); border-color: transparent; }
.btn--small { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; }
.btn--icon { padding: 0; width: 44px; min-width: 44px; height: 44px; border-radius: 50%; }
.btn--icon.btn--small { width: 36px; min-width: 36px; height: 36px; }
.btn--warm { --btn-bg: var(--warm); --btn-ink: #fff; --btn-line: var(--warm); }
.btn--help { --btn-bg: var(--warm-soft); --btn-ink: var(--warm); --btn-line: transparent; }
.btn--help:hover { --btn-bg: var(--warm); --btn-ink: #fff; border-color: var(--warm); }
:root[data-theme="dark"] .btn--help:hover { --btn-ink: #1a110c; }
.btn .icon svg { width: 1.1em; height: 1.1em; }
.btn--loading { position: relative; color: transparent !important; pointer-events: none; }
.btn--loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 5. Badges, chips, pills ---------- */
.badges { list-style: none; padding: 0; margin: 0; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; line-height: 1.4; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap;
}
.badge__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aud, var(--ink-muted)); flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.badge--aud { --aud: var(--ink-muted); background: color-mix(in srgb, var(--aud) 14%, var(--surface)); border-color: color-mix(in srgb, var(--aud) 38%, var(--line)); }
.badge--aud-parent { --aud: var(--aud-parent); }
.badge--aud-family { --aud: var(--aud-family); }
.badge--aud-child { --aud: var(--aud-child); }
.badge--aud-teen { --aud: var(--aud-teen); }
.badge--aud-adult { --aud: var(--aud-adult); }
.badge--aud-educator { --aud: var(--aud-educator); }
.badge--aud-clinician { --aud: var(--aud-clinician); }
.badge--type { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.badge--age { background: var(--surface); border-color: var(--line-strong); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: var(--surface-2); color: var(--ink-muted); border: 1px solid transparent; white-space: nowrap; }
.pill--level-start-here { background: var(--ok-soft); color: var(--ok); }
.pill--level-next-steps { background: var(--accent-soft); color: var(--accent-deep); }
.pill--level-deep-dive { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.pill--core { background: var(--warm-soft); color: var(--warm); }
.pill--cost-free { background: var(--ok-soft); color: var(--ok); }
.pill--cost-paid { background: var(--caution-soft); color: var(--caution); }
.pill--cost-mixed { background: var(--caution-soft); color: var(--caution); }
.pill--effort-quick-win { background: var(--ok-soft); color: var(--ok); }
.pill--effort-practice { background: var(--accent-soft); color: var(--accent-deep); }
.pill--effort-long-term { background: var(--warm-soft); color: var(--warm); }
.pill--evidence { border-color: var(--line); background: var(--surface); color: var(--ink-muted); }
.pill--region { background: var(--surface); border-color: var(--line); color: var(--ink-muted); }
.pill--region .pill__nation { color: var(--ink); font-weight: 700; }
.pill--src-voice { margin-left: 6px; vertical-align: middle; }
.pill--src-voice-lived-experience { background: var(--accent-soft); color: var(--accent-deep); }
.pill--src-voice-parent { background: var(--warm-soft); color: var(--warm); }
:root[data-theme="dark"] .pill--level-start-here, :root[data-theme="dark"] .pill--cost-free, :root[data-theme="dark"] .pill--effort-quick-win { color: var(--ok); }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.9rem; text-decoration: none; cursor: pointer;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.chip:hover { background: var(--surface-2); border-color: var(--ink-muted); color: var(--ink); }
.chip--active, .chip[aria-pressed="true"], .chip[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.panda { display: inline-flex; gap: 3px; }
.panda__letter { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-deep); font-size: 0.72rem; font-weight: 700; }

/* ---------- 6. Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-1); overflow: hidden;
  transition: box-shadow var(--std) var(--ease), transform var(--std) var(--ease), border-color var(--std) var(--ease);
}
.card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-2px); }
.card--link:focus-visible { outline-offset: 3px; }
.card__media { background: var(--surface-2); }
.card__media--cover { display: flex; justify-content: center; padding: var(--space-4) var(--space-4) 0; background: transparent; }
.card__cover { width: 120px; border-radius: var(--radius-s); box-shadow: var(--shadow-1); }
.card__body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }
.card__body > * { margin: 0; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.card__type { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep); }
.card__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; padding-block: 11px; } /* inline padding: a one-word title still gives a 44px tap area */
.card__title a:hover { color: var(--accent); text-decoration: underline; }
.card__title .icon--ext { color: var(--ink-muted); margin-left: 4px; }
.card__meta { font-size: 0.875rem; color: var(--ink-muted); }
.card__summary { color: var(--ink); }
.card__why { font-size: 0.925rem; color: var(--ink-muted); }
.card__badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
.card__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-3) var(--space-5); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.card--compact .card__body { padding: var(--space-4); gap: var(--space-2); }
.card--compact .card__title { font-size: 1.1rem; }
.card--compact .card__actions { padding: var(--space-2) var(--space-4); }
/* Strategy card (X1 2026-10-21, UX-CLICKS principles 1–2): steps + first pair visible; ONE "More" toggle for the rest. */
.card--strategy .card__title { font-size: 1.25rem; }
.card--strategy .card__badges { margin-top: 0; }
.card__toggle, .card__more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; padding: 6px 14px 6px 10px; margin: 0 0 0 -10px; border: 0; border-radius: 999px; background: none; color: var(--accent-deep); font-weight: 700; font-size: 0.92rem; text-align: left; cursor: pointer; transition: background var(--fast) var(--ease); }
.card__toggle:hover, .card__more:hover { background: var(--surface-2); }
.card__toggle .icon--chev, .card__more .icon--chev { color: var(--ink-muted); }
.card__more-hint { font-weight: 500; font-size: 0.85rem; }
.card__more-hint[hidden] { display: none; }
.card__panel { border-top: 1px dashed var(--line); padding-top: var(--space-4); display: grid; gap: var(--space-4); }
.card__section--how .card__steps { margin: 0; }
.card__sources a, .card__whylinks a, .card__related a { display: inline-flex; align-items: center; min-height: 44px; }
.card--compact .card__steps { font-size: 0.95rem; gap: 4px; }
.card--compact .swap__pair { padding: var(--space-2) var(--space-3); }
.openall { display: flex; justify-content: flex-end; margin: 0 0 var(--space-3); }
.openall[hidden] { display: none; }
.openall__btn { gap: 6px; }
.card__section h4 { color: var(--accent-deep); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.card__section > :last-child { margin-bottom: 0; }
.card__steps { padding-left: 1.4em; display: grid; gap: 6px; }
.card__steps li::marker { color: var(--accent); font-weight: 700; }
.card__sources { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.card__whylinks { font-size: 0.9rem; }
.swap { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.swap__pair { display: grid; grid-template-columns: 1fr; gap: 4px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--surface-2); }
@media (min-width: 640px) { .swap__pair { grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); } }
.swap__label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.swap__instead { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.swap__instead .swap__label { text-decoration: none; }
.swap__try { color: var(--ink); font-weight: 600; }
.swap__try .swap__label { color: var(--ok); }
.swap__arrow { color: var(--accent); font-size: 1.3rem; text-align: center; }
.card--skeleton { min-height: 180px; padding: var(--space-5); gap: var(--space-3); }
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; border-radius: 6px; }
.skel--line { height: 14px; width: 100%; }
.skel--pill { height: 24px; width: 90px; border-radius: 999px; margin-top: auto; }
.skel.w60 { width: 60%; } .skel.w80 { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Save button */
.save { gap: 6px; }
.save--on { color: var(--accent-deep); }
.save--on .icon { color: var(--accent); }

/* Video facade */
.video { position: relative; aspect-ratio: 16 / 9; background: #0f1623; border-radius: 0; overflow: hidden; }
.video__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 12px 22px 12px 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.94); color: #0f1623; font-weight: 700; box-shadow: var(--shadow-2); transition: transform var(--fast) var(--ease), background var(--fast) var(--ease); }
.video__play:hover { transform: translate(-50%, -50%) scale(1.04); background: #fff; }
.video__play .icon { color: var(--warm); }
.video__dur { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 22, 35, 0.8); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.video__note { position: absolute; left: 10px; bottom: 8px; margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.72rem; max-width: 60%; }
.video--nothumb { background: linear-gradient(135deg, var(--accent-deep), #0f1623); }
.video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play--link { text-decoration: none; }
.video__play--link .icon { color: var(--accent-deep); }
.video__link { display: flex; align-items: center; gap: 8px; color: #fff; padding: var(--space-4); min-height: 100%; }

/* ---------- 7. Callouts, details, tabs, empty states ---------- */
.callout { --co: var(--accent); --co-bg: var(--accent-soft); position: relative; padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + 6px); border-radius: var(--radius-m); background: var(--co-bg); border: 1px solid color-mix(in srgb, var(--co) 25%, transparent); }
.callout::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--co); }
.callout > :last-child { margin-bottom: 0; }
.callout__title { font-weight: 700; margin-bottom: var(--space-1); display: flex; align-items: center; gap: 8px; }
.callout--info { --co: var(--accent); --co-bg: var(--accent-soft); }
.callout--calm { --co: var(--ok); --co-bg: var(--ok-soft); }
.callout--warn { --co: var(--caution); --co-bg: var(--caution-soft); }
.callout--safety { --co: var(--danger); --co-bg: var(--danger-soft); }
.details { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); margin-bottom: var(--space-3); }
.details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-5); min-height: 52px; font-weight: 700; cursor: pointer; border-radius: var(--radius-m); }
.details > summary::-webkit-details-marker { display: none; }
.details > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg); transition: transform var(--std) var(--ease); flex: none; margin-right: 4px; }
.details[open] > summary::after { transform: rotate(-135deg); }
.details[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--radius-m) var(--radius-m) 0 0; }
.details > summary:hover { background: var(--surface-2); }
.details__body { padding: var(--space-4) var(--space-5); }
.details__body > :last-child { margin-bottom: 0; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: 1 0 auto; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-muted); font-weight: 700; white-space: nowrap; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
[role="tabpanel"] { padding-top: var(--space-5); }
[role="tabpanel"][hidden] { display: none; }
.empty-state { text-align: center; padding: var(--space-7) var(--space-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-l); background: var(--surface); display: grid; justify-items: center; gap: var(--space-2); }
.empty-state__icon { color: var(--accent); margin-bottom: var(--space-2); }
.empty-state__title { margin: 0; }
.empty-state__body { color: var(--ink-muted); max-width: 48ch; margin: 0; }
.empty-state__actions { justify-content: center; margin-top: var(--space-3); }
.notice { padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); background: var(--caution-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--caution) 30%, transparent); font-size: 0.92rem; }

/* Forms */
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: 0.92rem; }
.input, input[type="search"], input[type="text"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
input[type="search"]:focus-visible, input[type="text"]:focus-visible, input[type="number"]:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); outline-offset: 0; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--accent); margin: 0; }
.field__error { color: var(--danger); font-size: 0.875rem; }

/* ---------- 8. Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .btn { white-space: nowrap; }
.site-header__inner { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; margin-right: auto; }
.logo__mark { color: var(--accent); display: inline-flex; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.logo__tag { display: none; font-size: 0.72rem; color: var(--ink-muted); }
.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav__link.is-active { color: var(--accent-deep); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav__link--menu .icon--chev { color: var(--ink-muted); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-2); padding: var(--space-2); z-index: 120; }
.menu[hidden] { display: none; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__link { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-weight: 600; }
.menu__link:hover { background: var(--surface-2); color: var(--accent-deep); }
.menu__link.is-active { color: var(--accent-deep); background: var(--accent-soft); }
.site-search { display: none; position: relative; align-items: center; }
.site-search input { width: 180px; min-height: 42px; padding-right: 44px; border-radius: 999px; background: var(--surface); transition: width var(--std) var(--ease); }
.site-search input:focus { width: 240px; }
.site-search__go { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 38px; min-width: 38px; height: 38px; border: 0; background: transparent; color: var(--ink-muted); }
.site-search__go:hover { color: var(--accent); background: var(--surface-2); }
.site-header__actions { display: flex; align-items: center; gap: 4px; min-width: 0; flex: none; }
.logo { min-width: 0; }
@media (max-width: 399px) { .logo__name { display: none; } .site-header__inner { gap: var(--space-2); } }
.btn--help > span:not(.icon) { display: none; } /* X1 2026-10-22: "span" alone also hid the lifebuoy icon's span, leaving a blank peach circle on phones */
.btn--help { width: 44px; min-width: 44px; padding: 0; }
.kit { position: relative; }
.kit__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--line-strong); color: var(--ink); font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.kit--has .kit__count { background: var(--accent); color: var(--accent-ink); }
.settings-wrap { position: relative; }
.settings { position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-2); padding: var(--space-4) var(--space-5); z-index: 130; display: grid; gap: var(--space-4); }
.settings[hidden] { display: none; }
.settings__title { font-family: var(--font-body); font-size: 1rem; margin: 0; }
.settings__group { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.settings__group legend { font-weight: 700; font-size: 0.875rem; padding: 0; margin-bottom: 4px; }
/* X1 2026-10-21: was .seg/.seg__item; renamed so strategies.css's own .seg cannot restyle the settings panel. */
.settings__seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.settings__seg-item { flex: 1; position: relative; }
.settings__seg-item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.settings__seg-item label { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: var(--ink-muted); cursor: pointer; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.settings__seg-item input:checked + label { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.settings__seg-item input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 1px; }
.settings__toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.settings__toggle label { cursor: pointer; }
.settings__age { display: grid; gap: 6px; }
.settings__age input { width: 110px; }
.settings__note { margin: 0; }
.nav-toggle { display: inline-flex; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { padding: var(--space-4) var(--space-4) var(--space-5); display: grid; gap: var(--space-2); }
.mobile-menu .site-search { display: flex; margin-bottom: var(--space-2); }
.mobile-menu .site-search input, .mobile-menu .site-search input:focus { width: 100%; }
.mobile-menu__heading { margin: var(--space-3) 0 2px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 520px) { .mobile-menu__list { grid-template-columns: 1fr 1fr; } }
.mobile-menu__link { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-menu__link:hover { background: var(--surface-2); }
.mobile-menu__link.is-active { color: var(--accent-deep); background: var(--accent-soft); }
.mobile-menu .age-row { margin-bottom: var(--space-2); }
@media (min-width: 720px) { .btn--help { width: auto; min-width: 0; padding: 10px 16px; } .btn--help > span:not(.icon) { display: inline; } }

/* Child's age chip (X1, UX-CLICKS principle 4): "My child: 7" in the header opens a tiny picker; every age is one tap. */
.age-wrap { position: relative; display: block; }
.age-chip { min-height: 44px; padding: 6px 12px 6px 10px; gap: 6px; font-size: 0.88rem; max-width: 200px; }
.age-chip__short { display: none; }
/* Phones (<720px): the chip stays in the bar, reads "Age 7" / "Set age", and the picker is a full-width panel under the
   header (the chip's wrapper is static, so the panel's containing block is the sticky header). */
@media (max-width: 719px) {
  .age-wrap { position: static; }
  .age-chip { padding: 6px 8px 6px 8px; gap: 4px; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
  .age-chip__text { display: none; }
  .age-chip__short { display: inline; white-space: nowrap; }
  .age-pick { left: var(--space-4); right: var(--space-4); width: auto; top: calc(100% + 6px); }
}
/* Narrow phones: the bar is logo mark + [Age 7] [help] [kit] [gear] [menu] in one row. Under 400px the chip drops its
   chevron, gaps tighten and the mark is 32px but never squashed (flex: none); under 340px the toolkit button steps out
   (the menu lists "My toolkit"), so 320px still fits: 32 + 4 + 88 + 3×44 + gaps = 294 of 320 − 32 padding. */
@media (max-width: 399px) {
  .site-header__inner { gap: 4px; }
  .site-header__actions { gap: 2px; }
  .logo { flex: none; min-width: auto; }
  .logo__mark svg { width: 32px; height: 32px; }
  .age-chip { padding: 6px 7px; }
  .age-chip .icon--chev { display: none; }
}
@media (max-width: 339px) { .kit { display: none; } }
.age-chip__icon { color: var(--accent); }
.age-chip .icon--chev { color: var(--ink-muted); }
.age-chip[aria-expanded="true"] { background: var(--surface-2); border-color: var(--ink-muted); }
.age-chip__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.age-pick { position: absolute; left: 0; top: calc(100% + 8px); width: min(372px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-2); padding: var(--space-4) var(--space-4) var(--space-4); z-index: 130; display: grid; gap: var(--space-2); }
.age-pick[hidden] { display: none; }
.age-pick__title { font-weight: 700; margin: 0; }
.age-pick__note { margin: 0 0 var(--space-1); }
.age-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip--age { min-width: 44px; min-height: 44px; padding: 4px 10px; justify-content: center; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.chip--age-none { padding-inline: 14px; }
.age-row--compact .chip--age { min-width: 44px; }

/* Roles strip (X1, UX-CLICKS principle 6): the six pathways as visible links, desktop only. The header's first row;
   the sticky header sits at a negative top at ≥1080px so this strip scrolls away and the logo + nav rows stay. */
.roles { display: none; }
@media (min-width: 1080px) {
  :root { --header-h: 112px; --roles-h: 44px; }
  .site-header { top: calc(-1 * var(--roles-h)); }
  .roles { display: block; height: var(--roles-h); background: var(--surface-2); border-bottom: 1px solid var(--line); }
  .age-pick { left: auto; right: 0; } /* the chip is at the far right here; below 1080px it is the first action, so the panel hangs from its left edge */
  .roles__inner { display: flex; align-items: center; gap: var(--space-3); height: 100%; min-width: 0; }
  .roles__label { flex: none; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
  .roles__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; min-width: 0; }
  .roles__link { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
  .roles__link:hover { background: var(--surface); color: var(--accent-deep); }
  .roles__link.is-active { background: var(--accent); color: var(--accent-ink); }
  .site-header__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search actions" "nav nav nav"; align-items: center; column-gap: var(--space-5); row-gap: 0; min-height: 0; }
  .logo { grid-area: logo; margin-right: 0; min-height: 64px; }
  .logo__tag { display: block; }
  .site-search { grid-area: search; display: flex; justify-self: center; width: min(100%, 440px); }
  .site-search input, .site-search input:focus { width: 100%; }
  .site-header__actions { grid-area: actions; justify-self: end; }
  .nav { grid-area: nav; display: block; border-top: 1px solid var(--line); margin-inline: calc(-1 * var(--space-6)); padding-inline: calc(var(--space-6) - 12px); }
  .nav__list { min-height: 48px; }
  .nav__link { min-height: 44px; }
  .nav__link.is-active { box-shadow: inset 0 -3px 0 var(--accent); }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- 9. Footer ---------- */
.site-footer { position: relative; z-index: 1; margin-top: var(--space-8); border-top: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.site-footer__inner { display: grid; gap: var(--space-6); padding-block: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .site-footer__inner { grid-template-columns: 1.1fr 0.9fr 1fr 1.5fr; } }
.site-footer__heading { margin: 0 0 var(--space-1); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.site-footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__brand .logo__mark { color: var(--accent); margin-top: 2px; }
.site-footer__brand p { margin: 0; line-height: 1.4; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; }
.site-footer__nav a:hover { color: var(--accent-deep); text-decoration: underline; }
.site-footer__note p { margin-bottom: var(--space-2); font-size: 0.925rem; }

/* ---------- 10. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
:root[data-reduce-motion] *, :root[data-reduce-motion] *::before, :root[data-reduce-motion] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
:root[data-reduce-motion] html, :root[data-reduce-motion] { scroll-behavior: auto; }

/* ---------- 11. Print ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --ink-muted: #333; }
  body::before { display: none; }
  .site-header, .site-footer, .no-print, .skip-link, .btn, .save, .it-btn, .video__play, .video__note, .mobile-menu, .nav-toggle { display: none !important; }
  .print-only { display: block; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #999; }
  .card__panel[hidden], [role="tabpanel"][hidden] { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #333; word-break: break-all; }
  .section { padding-block: 16px; }
  h1, h2, h3 { break-after: avoid; }
}

/* ---------- 12. Forced colours ---------- */
@media (forced-colors: active) {
  .btn, .card, .chip, .badge, .pill, .callout { border: 1px solid CanvasText; }
  .badge__dot { forced-color-adjust: none; }
  .chip--active { background: Highlight; color: HighlightText; }
}

/* regression: 2026-10-21-header-search-overlap (lead). The lab's hygiene lane (lane 11) found the search
   button absolutely positioned over the input at 1280px: "input#site-search-q overlaps button 38x44".
   The pill is now the form itself; the input and the button sit side by side, so neither covers the other. */
.site-search { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 2px; gap: 2px; }
.site-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.site-search input, .site-search input:focus { border: 0; background: transparent; box-shadow: none; padding-right: 6px; min-height: 38px; flex: 1 1 auto; min-width: 0; outline: none; }
.site-search__go { position: static; transform: none; flex: 0 0 auto; }

/* regression: 2026-10-21-touch-targets-44 (lead). Lane 11 at 375px: footer links 41px tall, the card Save
   button 80x36, the demand planner's tip links 20px tall. NK's rule: 44px touch targets on touch screens. */
.site-footer__nav a { min-height: 44px; }
@media (pointer: coarse), (max-width: 480px) {
  .btn--small, .save { min-height: 44px; }
  .dp-basket__tips a { display: inline-flex; align-items: center; min-height: 44px; }
  .ks-clear { min-width: 44px; min-height: 44px; }
  /* X1 2026-10-22 (X3 measured .ks-clear 37px and .rs-window 40px at 375): doubled class = (0,2,0), so these beat the
     kit's single-class width/height and its 2px window insets whatever the stylesheet order. */
  .ks-clear.ks-clear { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .rs-window.rs-window { top: 0; bottom: 0; min-height: 44px; }
}

/* regression: 2026-10-21-touch-targets-44 (lead, round 2): X2 measured one-word related links 43px wide at 375. */
.card__related a { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Who leads + handing it over (2026-10-22, regression: 2026-10-22-independence) */
.pill--lead-adult { background: var(--surface-2); color: var(--ink-muted); }
.pill--lead-together { background: var(--warm-soft); color: var(--warm); }
.pill--lead-self { background: var(--accent-soft); color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.card__section--handover { border-left: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); padding-left: var(--space-3); }

/* Header logo link: 43px wide at 375px in the 2026-10-22 hygiene run; tap targets are 44px or more. */
a.logo { min-width: 44px; min-height: 44px; }

/* Printable sheets (2026-10-22, js/print.js; regression: 2026-10-22-printable). NK: "cards that you could just print on
   one page". The sheet is built from data, so buttons, tabs and badges never reach the paper. Its styles apply on screen
   as well, so print.js can measure it off-screen at the A4 content width (182mm = 688px) and scale a plan or a single
   card to fit one page; print only shows it. */
#print-sheet { display: none; color: #000; background: #fff; font: 10.5pt/1.4 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
#print-sheet.ps--measure { display: block; position: absolute; left: -10000px; top: 0; width: 688px; }
#print-sheet.ps--one { font-size: 12pt; }
#print-sheet.ps--plan { font-size: 9pt; line-height: 1.3; }
#print-sheet .ps-head { display: flex; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 3pt; margin-bottom: 8pt; font-size: 8.5pt; letter-spacing: 0.08em; text-transform: uppercase; }
#print-sheet .ps-title { font-size: 19pt; line-height: 1.15; margin: 0 0 2pt; color: #000; }
#print-sheet.ps--one .ps-title { font-size: 24pt; }
#print-sheet.ps--plan .ps-title { font-size: 16pt; }
#print-sheet .ps-sub { margin: 0 0 6pt; color: #333; }
#print-sheet .ps-intro { margin: 0 0 6pt; }
#print-sheet .ps-body { columns: 2; column-gap: 8mm; }
#print-sheet.ps--one .ps-body { columns: 1; }
#print-sheet .ps-card { break-inside: avoid; border: 1.2pt solid #000; border-radius: 6pt; padding: 6pt 9pt; margin: 0 0 7pt; }
#print-sheet.ps--plan .ps-card { padding: 5pt 7pt; margin-bottom: 5pt; }
#print-sheet.ps--one .ps-card { border: 0; padding: 0; }
#print-sheet .ps-card h2 { font-size: 13pt; line-height: 1.2; margin: 0 0 2pt; color: #000; }
#print-sheet.ps--plan .ps-card h2 { font-size: 11.5pt; }
#print-sheet.ps--one .ps-card h2 { display: none; }
#print-sheet .ps-card h3 { font-size: 8.5pt; letter-spacing: 0.06em; text-transform: uppercase; margin: 6pt 0 2pt; color: #000; }
#print-sheet .ps-card p { margin: 0 0 3pt; }
#print-sheet .ps-card ol, #print-sheet .ps-card ul { margin: 0; padding-left: 14pt; }
#print-sheet .ps-card li { margin: 0 0 2pt; }
#print-sheet .ps-lead { font-weight: 600; }
#print-sheet .ps-meta { font-size: 8.5pt; color: #333; }
#print-sheet .ps-instead, #print-sheet .ps-instead-big { text-decoration: line-through; }
#print-sheet .ps-instead-big { font-size: 11.5pt; margin: 0 0 3pt; }
#print-sheet .ps-style { font-weight: 700; }
#print-sheet .ps-url { word-break: break-all; font-size: 8.5pt; }
#print-sheet .ps-foot { margin-top: 8pt; border-top: 1px solid #000; padding-top: 3pt; font-size: 8.5pt; }
#print-sheet .ps-foot p { margin: 0 0 2pt; word-break: break-word; }
.card__print-icon { display: inline-flex; }
@page { margin: 14mm; }
@media print {
  body.is-printing > :not(#print-sheet) { display: none !important; }
  body.is-printing { background: #fff !important; }
  body.is-printing #print-sheet { display: block !important; position: static; width: auto; zoom: var(--ps-zoom, 1); }
}
