/* ==========================================================================
   Digital Shields design system — v1
   One stylesheet shared by the parent website, the parent portal, the schools
   website and the schools portal.

   Themes: light-first and follows the device by default. An explicit choice
   is stamped on <html data-theme="light|dark"> by /ds/ds.js (key: ds_theme).
   Density: add .ds-compact to <body> for the data-dense schools tuning.
   Icons: <svg class="icon"><use href="/ds/icons.svg#i-home"/></svg>
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see /fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin.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: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-italic-latin.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: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/space-grotesk-latin.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: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/space-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens: light (default) ---------- */
:root {
  color-scheme: light;

  /* Brand primitives */
  --navy-950: #060E19; --navy-900: #0B1929; --navy-800: #12263D; --navy-700: #1B3350;
  --navy-600: #2A4766; --navy-500: #3F5E80; --navy-400: #6C87A6; --navy-300: #9DB1C8;
  --navy-200: #C9D5E3; --navy-100: #E3EAF2; --navy-50: #F1F5F9;
  --gold-500: #F5C518; --gold-600: #E8B800; --gold-700: #A88200; --gold-800: #7A5E00;
  --gold-300: #FFDD66; --gold-100: #FFF4CC; --gold-50: #FFFAE6;

  /* Surfaces */
  --bg: #F4F6F9;            /* Mist: page ground, cool-tinted toward navy */
  --bg-2: #EBEFF4;          /* recessed ground */
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #EEF2F6;
  --surface-inverse: #0B1929;
  --overlay: rgba(6, 14, 25, .5);
  --line: #E3E8EF;
  --line-2: #CED6E0;

  /* Text */
  --text: #0B1929;
  --text-2: #3A4A5D;
  --text-3: #5E6F83;
  --text-4: #617084;   /* lightest text that still meets AA on white and Mist */
  --text-inverse: #FFFFFF;

  /* Brand roles */
  --primary: #0B1929;        /* strong actions, navigation anchor */
  --primary-hover: #1B3350;
  --primary-ink: #FFFFFF;
  --accent: #F5C518;         /* Shield Gold: the one primary action per screen */
  --accent-hover: #E8B800;
  --accent-ink: #0B1929;
  --accent-text: #8A6D00;    /* gold as text on light grounds (4.9:1) */
  --accent-tint: #FFF6D6;
  --accent-line: #F0D477;

  /* Status (never borrow the brand gold) */
  --safe: #13806C;  --safe-tint: #E2F4EF;  --safe-text: #0E6B5A;
  --watch: #D98E04; --watch-tint: #FFF2D9; --watch-text: #7A4C00;
  --act: #E5484D;   --act-tint: #FDECEC;   --act-text: #B4262B;
  --info: #2F6FEB;  --info-tint: #E8F0FE;  --info-text: #1E57C8;
  --focus: #2F6FEB;

  /* Categories (chips, cover art accents) */
  --cat-social: #E0457B; --cat-gaming: #7553EA; --cat-ai: #1597C9; --cat-privacy: #0F8C79;
  --cat-bullying: #E9772A; --cat-law: #3C4FD1; --cat-talk: #E59A0B; --cat-screen: #B34FA0;
  --cat-safeguarding: #1E8E5A; --cat-wellbeing: #D9536B; --cat-school: #2F6FEB; --cat-general: #3F5E80;

  /* Type */
  --font-display: "Space Grotesk", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --fs-2xs: .6875rem;  /* 11 */
  --fs-xs: .75rem;     /* 12 */
  --fs-sm: .8125rem;   /* 13 */
  --fs-md: .9375rem;   /* 15 */
  --fs-base: 1rem;     /* 16 */
  --fs-lg: 1.125rem;   /* 18 */
  --fs-xl: 1.25rem;    /* 20 */
  --fs-2xl: 1.5rem;    /* 24 */
  --fs-3xl: 1.875rem;  /* 30 */
  --fs-4xl: 2.25rem;   /* 36 */
  --fs-5xl: 3rem;      /* 48 */
  --fs-6xl: 3.75rem;   /* 60 */
  --fs-7xl: 4.5rem;    /* 72 */
  --lh-tight: 1.08; --lh-snug: 1.25; --lh-normal: 1.5; --lh-relaxed: 1.68;

  /* Space: 8-point grid with a 4px half-step */
  --sp-0: 0; --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
  --sp-7: 32px; --sp-8: 40px; --sp-9: 48px; --sp-10: 64px; --sp-11: 80px; --sp-12: 96px; --sp-13: 128px;

  /* Shape: four radii */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;

  /* Elevation: three levels */
  --shadow-1: 0 1px 2px rgba(11, 25, 41, .06), 0 1px 1px rgba(11, 25, 41, .03);
  --shadow-2: 0 6px 16px -4px rgba(11, 25, 41, .10), 0 2px 4px -2px rgba(11, 25, 41, .06);
  --shadow-3: 0 28px 56px -16px rgba(11, 25, 41, .28), 0 10px 20px -10px rgba(11, 25, 41, .14);
  --ring: 0 0 0 3px rgba(47, 111, 235, .28);

  /* Motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --dur-1: 120ms; --dur-2: 180ms; --dur-3: 280ms; --dur-4: 420ms;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --container-wide: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --sidenav-w: 248px;
  --tabbar-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --icon-stroke: 1.85;
}

/* ---------- Tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07111D; --bg-2: #050C16;
    --surface: #0E1B2C; --surface-2: #112135; --surface-3: #172C44; --surface-inverse: #EEF3F9;
    --overlay: rgba(2, 6, 12, .66);
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
    --text: #EEF3F9; --text-2: #BAC7D6; --text-3: #8D9EB3; --text-4: #8796AA; --text-inverse: #0B1929;
    --primary: #EEF3F9; --primary-hover: #FFFFFF; --primary-ink: #0B1929;
    --accent-text: #F5C518; --accent-tint: rgba(245, 197, 24, .12); --accent-line: rgba(245, 197, 24, .38);
    --safe: #2BB596;  --safe-tint: rgba(43, 181, 150, .14); --safe-text: #62D6B9;
    --watch: #F2A531; --watch-tint: rgba(242, 165, 49, .14); --watch-text: #F8C46F;
    --act: #F0646A;   --act-tint: rgba(240, 100, 106, .15); --act-text: #FF9A9E;
    --info: #5B93F5;  --info-tint: rgba(91, 147, 245, .15); --info-text: #93B8FF;
    --focus: #8DB4FF;
    --cat-social: #F06A97; --cat-gaming: #9479F5; --cat-ai: #3DB6E3; --cat-privacy: #2DB39C;
    --cat-bullying: #F29149; --cat-law: #7383F0; --cat-talk: #F2B33C; --cat-screen: #CE72BD;
    --cat-safeguarding: #3DB57C; --cat-wellbeing: #EE7389; --cat-school: #6C9BF5; --cat-general: #8DA5C2;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 8px 20px -6px rgba(0, 0, 0, .5), 0 2px 4px -2px rgba(0, 0, 0, .4);
    --shadow-3: 0 32px 64px -16px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
    --ring: 0 0 0 3px rgba(141, 180, 255, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111D; --bg-2: #050C16;
  --surface: #0E1B2C; --surface-2: #112135; --surface-3: #172C44; --surface-inverse: #EEF3F9;
  --overlay: rgba(2, 6, 12, .66);
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
  --text: #EEF3F9; --text-2: #BAC7D6; --text-3: #8D9EB3; --text-4: #8796AA; --text-inverse: #0B1929;
  --primary: #EEF3F9; --primary-hover: #FFFFFF; --primary-ink: #0B1929;
  --accent-text: #F5C518; --accent-tint: rgba(245, 197, 24, .12); --accent-line: rgba(245, 197, 24, .38);
  --safe: #2BB596;  --safe-tint: rgba(43, 181, 150, .14); --safe-text: #62D6B9;
  --watch: #F2A531; --watch-tint: rgba(242, 165, 49, .14); --watch-text: #F8C46F;
  --act: #F0646A;   --act-tint: rgba(240, 100, 106, .15); --act-text: #FF9A9E;
  --info: #5B93F5;  --info-tint: rgba(91, 147, 245, .15); --info-text: #93B8FF;
  --focus: #8DB4FF;
  --cat-social: #F06A97; --cat-gaming: #9479F5; --cat-ai: #3DB6E3; --cat-privacy: #2DB39C;
  --cat-bullying: #F29149; --cat-law: #7383F0; --cat-talk: #F2B33C; --cat-screen: #CE72BD;
  --cat-safeguarding: #3DB57C; --cat-wellbeing: #EE7389; --cat-school: #6C9BF5; --cat-general: #8DA5C2;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 8px 20px -6px rgba(0, 0, 0, .5), 0 2px 4px -2px rgba(0, 0, 0, .4);
  --shadow-3: 0 32px 64px -16px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
  --ring: 0 0 0 3px rgba(141, 180, 255, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" off;
  /* Plus Jakarta Sans has a narrow word space (0.17em); small bold labels
     and buttons read as run-together words without a little more. */
  word-spacing: .06em;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; word-spacing: inherit; }
button { cursor: pointer; }
:where(button, [role="button"]):disabled { cursor: not-allowed; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p { margin: 0 0 var(--sp-4); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: var(--lh-snug); letter-spacing: -.015em; word-spacing: normal; text-wrap: balance; color: var(--text); }
ul, ol { margin: 0; padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
.tnum, .num { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: calc(var(--safe-top) - 60px); z-index: 1000;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-md);
  background: var(--primary); color: var(--primary-ink); font-weight: 700; text-decoration: none;
  transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus { top: calc(var(--safe-top) + var(--sp-3)); }

/* ---------- Typography ---------- */
.display-1, .display-2, .display-3, .h1, .h2, .h3, .h4 { font-family: var(--font-display); font-weight: 700; color: var(--text); text-wrap: balance; }
.display-1 { font-size: clamp(2.5rem, 6.2vw, var(--fs-7xl)); line-height: var(--lh-tight); letter-spacing: -.035em; }
.display-2 { font-size: clamp(2.125rem, 4.8vw, var(--fs-6xl)); line-height: var(--lh-tight); letter-spacing: -.03em; }
.display-3 { font-size: clamp(1.875rem, 3.6vw, var(--fs-5xl)); line-height: 1.12; letter-spacing: -.025em; }
.h1 { font-size: clamp(1.75rem, 3vw, var(--fs-4xl)); line-height: 1.15; letter-spacing: -.022em; }
.h2 { font-size: clamp(1.375rem, 2.2vw, var(--fs-3xl)); line-height: 1.2; letter-spacing: -.02em; }
.h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); letter-spacing: -.012em; }
.h4 { font-size: var(--fs-lg); line-height: var(--lh-snug); letter-spacing: -.008em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font: 700 var(--fs-xs)/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow--muted { color: var(--text-3); }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); } .text-muted { color: var(--text-3); }
.text-sm { font-size: var(--fs-sm); } .text-xs { font-size: var(--fs-xs); } .text-md { font-size: var(--fs-md); } .text-lg { font-size: var(--fs-lg); }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.font-display { font-family: var(--font-display); }
.link { color: var(--info-text); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link--quiet { color: inherit; font-weight: inherit; }
.measure { max-width: 66ch; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; } .clamp-3 { -webkit-line-clamp: 3; }
kbd {
  font: 600 var(--fs-2xs) var(--font-mono); padding: 1px 6px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-3);
}
code { font: 500 .88em var(--font-mono); background: var(--surface-3); padding: .08em .4em; border-radius: var(--r-sm); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
/* Each stack sets its own gap, so a nested stack never inherits its parent's. */
.stack { --stack-gap: var(--sp-4); display: flex; flex-direction: column; gap: var(--stack-gap); }
.stack-1 { --stack-gap: var(--sp-1); } .stack-2 { --stack-gap: var(--sp-2); } .stack-3 { --stack-gap: var(--sp-3); }
.stack-4 { --stack-gap: var(--sp-4); } .stack-5 { --stack-gap: var(--sp-5); } .stack-6 { --stack-gap: var(--sp-6); } .stack-7 { --stack-gap: var(--sp-7); }
.stack-8 { --stack-gap: var(--sp-8); } .stack-10 { --stack-gap: var(--sp-10); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--sp-3)); }
.cluster-1 { --cluster-gap: var(--sp-1); } .cluster-2 { --cluster-gap: var(--sp-2); } .cluster-4 { --cluster-gap: var(--sp-4); } .cluster-6 { --cluster-gap: var(--sp-6); }
.row { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.row > * { min-width: 0; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-width: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--grid-gap, var(--sp-5)); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.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(var(--min, 260px), 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.center { text-align: center; margin-inline: auto; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); } .mt-10 { margin-top: var(--sp-10); }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: var(--sp-2); } .mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.w-full { width: 100%; }
.hide-sm { } .show-sm { display: none !important; }
@media (max-width: 720px) { .hide-sm { display: none !important; } .show-sm { display: revert !important; } }

/* ---------- Icon ---------- */
.icon {
  width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em;
  fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 1em; height: 1em; vertical-align: -.15em; }
.icon--lg { width: 1.5em; height: 1.5em; }
.icon-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--surface-3); color: var(--text-2);
}
.icon-badge .icon { width: 20px; height: 20px; }
.icon-badge--sm { width: 32px; height: 32px; border-radius: var(--r-sm); }
.icon-badge--sm .icon { width: 17px; height: 17px; }
.icon-badge--lg { width: 52px; height: 52px; border-radius: var(--r-lg); }
.icon-badge--lg .icon { width: 24px; height: 24px; }
.icon-badge--accent { background: var(--accent-tint); color: var(--accent-text); }
.icon-badge--safe { background: var(--safe-tint); color: var(--safe-text); }
.icon-badge--watch { background: var(--watch-tint); color: var(--watch-text); }
.icon-badge--act { background: var(--act-tint); color: var(--act-text); }
.icon-badge--info { background: var(--info-tint); color: var(--info-text); }
.icon-badge--navy { background: var(--navy-900); color: var(--gold-500); }
/* Dark: navy-900 vanishes on dark surfaces, so the badge lifts to navy-700. */
:root[data-theme="dark"] .icon-badge--navy { background: var(--navy-700); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-badge--navy { background: var(--navy-700); } }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.0625rem/1 var(--font-display); letter-spacing: -.015em; white-space: nowrap; }
.brand svg { width: 26px; height: 28px; flex: none; }
.brand small { display: block; font: 700 var(--fs-2xs)/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 40px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: var(--btn-h); padding: 0 calc(var(--btn-h) * .42); border-radius: var(--r-md);
  border: 1px solid transparent; background: var(--surface); color: var(--text);
  font: 700 var(--fs-md)/1 var(--font-sans); letter-spacing: -.005em; white-space: nowrap; text-decoration: none;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn--sm { --btn-h: 32px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn--lg { --btn-h: 48px; font-size: var(--fs-base); border-radius: 12px; }
.btn--xl { --btn-h: 56px; font-size: var(--fs-lg); border-radius: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding: 0; width: var(--btn-h); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 1px 2px rgba(122, 94, 0, .25); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: var(--surface); border-color: var(--line-2); color: var(--text); box-shadow: var(--shadow-1); }
.btn--secondary:hover { border-color: var(--text-4); background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-3); color: var(--text); }
.btn--danger { background: #C42B31; color: #fff; } /* fixed: white text needs AA on both themes */
.btn--danger:hover { filter: brightness(.94); }
.btn--danger-ghost { background: transparent; color: var(--act-text); }
.btn--danger-ghost:hover { background: var(--act-tint); }
.btn--on-dark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn--on-dark:hover { background: rgba(255, 255, 255, .16); }
.btn[aria-busy="true"] { color: transparent !important; pointer-events: none; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--text-3) transparent var(--text-3) transparent;
  animation: ds-spin .8s linear infinite;
}
.btn--accent[aria-busy="true"]::after, .btn--primary[aria-busy="true"]::after { border-color: var(--accent-ink) transparent var(--accent-ink) transparent; }
.btn--primary[aria-busy="true"]::after { border-color: var(--primary-ink) transparent var(--primary-ink) transparent; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md);
  border: 0; background: transparent; color: var(--text-2); position: relative;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--act); box-shadow: 0 0 0 2px var(--surface); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.label .opt { font-weight: 500; color: var(--text-3); }
.help { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; }
.error-text { font-size: var(--fs-xs); color: var(--act-text); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-md);
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2);
  font-size: var(--fs-md); line-height: 1.4;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: var(--ring); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--act); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-3); color: var(--text-3); }
.select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A97A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.input-wrap { position: relative; }
.input-wrap > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-4); pointer-events: none; }
.input-wrap > .icon ~ .input { padding-left: 42px; } /* room for a leading icon only when there is one */
.input-wrap > .input-action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--fs-md); color: var(--text-2); line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface); display: grid; place-items: center; transition: background-color var(--dur-1), border-color var(--dur-1); cursor: pointer; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--primary-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--primary-ink); transform: none; }
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 44px; height: 26px; border-radius: var(--r-full); background: var(--line-2); position: relative; cursor: pointer; transition: background-color var(--dur-2) var(--ease-out); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--dur-2) var(--ease-spring); }
.switch input:checked { background: var(--safe); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button, .segmented a {
  flex: none; border: 0; background: transparent; color: var(--text-2); font: 700 var(--fs-sm)/1 var(--font-sans);
  padding: 9px 14px; border-radius: 9px; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2), box-shadow var(--dur-2);
}
.segmented button:hover, .segmented a:hover { color: var(--text); }
.segmented [aria-selected="true"], .segmented [aria-current="page"], .segmented .is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--card-pad, var(--sp-6)); box-shadow: var(--shadow-1); min-width: 0;
}
.card--flat { box-shadow: none; }
.card--sunken { background: var(--surface-2); box-shadow: none; }
.card--tight { --card-pad: var(--sp-4); }
.card--roomy { --card-pad: var(--sp-8); }
.card--interactive { cursor: pointer; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2); text-decoration: none; color: inherit; display: block; }
.card--interactive:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card--interactive:active { transform: translateY(0); }
.card--hero {
  background: radial-gradient(120% 140% at 100% 0%, rgba(245, 197, 24, .22) 0%, rgba(245, 197, 24, 0) 46%), linear-gradient(140deg, #0B1929 0%, #15304F 100%);
  border-color: transparent; color: #fff; box-shadow: var(--shadow-2);
}
.card--hero h1, .card--hero h2, .card--hero h3, .card--hero h4 { color: #fff; }
.card--hero p { color: #B9C8D8; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.card__title { font: 700 var(--fs-md)/1.3 var(--font-display); letter-spacing: -.005em; color: var(--text); margin: 0; }
.card__link { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.card__link:hover { text-decoration: underline; }
.card__foot { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__label { font: 700 var(--fs-2xs)/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.stat__value { font: 700 var(--fs-3xl)/1 var(--font-display); letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat__value small { font-size: .45em; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.stat__note { font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- Badges, chips, tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--r-full);
  font: 700 var(--fs-2xs)/1 var(--font-sans); letter-spacing: .01em; white-space: nowrap;
  background: var(--surface-3); color: var(--text-2);
}
.badge .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.badge--safe { background: var(--safe-tint); color: var(--safe-text); }
.badge--watch { background: var(--watch-tint); color: var(--watch-text); }
.badge--act { background: var(--act-tint); color: var(--act-text); }
.badge--info { background: var(--info-tint); color: var(--info-text); }
.badge--accent { background: var(--accent-tint); color: var(--accent-text); }
.badge--navy { background: var(--navy-900); color: var(--gold-500); }
:root[data-theme="dark"] .badge--navy { background: var(--navy-700); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge--navy { background: var(--navy-700); } }
.badge--outline { background: transparent; border: 1px solid var(--line-2); }
.badge--count { min-width: 20px; justify-content: center; padding: 0 6px; background: #C42B31; color: #fff; } /* 5.6:1 in both themes */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-full);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2);
  font: 600 var(--fs-sm)/1 var(--font-sans); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2), color var(--dur-2);
}
.chip:hover { border-color: var(--text-4); color: var(--text); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip .count { font-size: var(--fs-2xs); font-weight: 700; } /* full colour: faded counts fell below AA */
.chip-row { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chip-row::-webkit-scrollbar { display: none; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--cat, var(--cat-general)); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 700 var(--fs-2xs)/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--cat, var(--text-3)); }

/* ---------- Avatars ---------- */
.avatar {
  --size: 36px; position: relative; width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; overflow: hidden;
  background: var(--av, var(--navy-600)); color: #fff;
  font: 700 calc(var(--size) * .4)/1 var(--font-display); letter-spacing: -.01em;
  padding-top: .09em; /* capitals sit high in their line box: centre them optically */
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { --size: 28px; } .avatar--lg { --size: 48px; } .avatar--xl { --size: 64px; }
.avatar--ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--av, var(--navy-600)); }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-row {
  display: flex; align-items: center; gap: var(--sp-3); padding: 14px 0; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none; min-width: 0;
}
.list > li:first-child > .list-row, .list > .list-row:first-child { border-top: 0; }
.list-row__body { flex: 1; min-width: 0; }
.list-row__title { font-weight: 700; font-size: var(--fs-md); color: var(--text); line-height: 1.35; }
.list-row__meta { font-size: var(--fs-xs); color: var(--text-3); margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.list-row__chev { color: var(--text-4); flex: none; }
a.list-row:hover .list-row__title, button.list-row:hover .list-row__title { color: var(--accent-text); }
button.list-row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; font: inherit; }
.list--inset .list-row { padding-inline: var(--sp-4); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: var(--sp-6); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"], .tabs a {
  flex: none; position: relative; padding: 12px 0 14px; border: 0; background: none; color: var(--text-3);
  font: 700 var(--fs-md)/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.tabs [role="tab"]:hover, .tabs a:hover { color: var(--text); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--text); }
.tabs [aria-selected="true"]::after, .tabs [aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }

/* ---------- App shell (portals) ---------- */
.app { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: var(--sidenav-w) minmax(0, 1fr); font-size: var(--fs-md); }
.sidenav {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 2px; padding: calc(var(--safe-top) + 20px) 14px 16px;
  background: var(--surface); border-right: 1px solid var(--line);
}
.sidenav .brand { margin: 2px 10px 22px; }
.sidenav__label { font: 700 var(--fs-2xs)/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); padding: 16px 12px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; border-radius: var(--r-md);
  color: var(--text-2); font: 600 var(--fs-md)/1.2 var(--font-sans); text-decoration: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2);
}
.nav-item .icon { width: 20px; height: 20px; color: var(--text-3); transition: color var(--dur-2); }
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item:hover .icon { color: var(--text-2); }
.nav-item[aria-current="page"], .nav-item.is-active { background: var(--navy-900); color: #fff; }
.nav-item[aria-current="page"] .icon, .nav-item.is-active .icon { color: var(--gold-500); }
:root[data-theme="dark"] .nav-item[aria-current="page"], :root[data-theme="dark"] .nav-item.is-active { background: var(--surface-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-item[aria-current="page"], :root:not([data-theme="light"]) .nav-item.is-active { background: var(--surface-3); } }
.nav-item .badge { margin-left: auto; }
.nav-item--danger { color: var(--act-text); }
.nav-item--danger .icon { color: var(--act-text); }
.sidenav__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); text-decoration: none; color: inherit; }
.me:hover { background: var(--surface-3); }
.me__name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; }
.me__sub { font-size: var(--fs-xs); color: var(--text-3); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: var(--sp-3);
  min-height: var(--header-h); padding: var(--safe-top) var(--gutter) 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-2);
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__title { font: 700 var(--fs-lg)/1.2 var(--font-display); letter-spacing: -.015em; min-width: 0; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.page { width: 100%; max-width: calc(1180px + var(--gutter) * 2); margin: 0 auto; padding: var(--sp-6) var(--gutter) var(--sp-12); }
.page--narrow { max-width: calc(820px + var(--gutter) * 2); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.025em; line-height: 1.15; }
.page-head p { margin: 6px 0 0; color: var(--text-3); font-size: var(--fs-md); }
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 6px 8px calc(6px + var(--safe-bottom));
  /* 96%: the labels (--text-3) keep 4.5:1 even over a dark button behind. */
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar__inner { display: grid; grid-template-columns: repeat(var(--tabs, 5), 1fr); max-width: 560px; margin: 0 auto; }
.tabbar a, .tabbar button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px;
  border: 0; background: none; color: var(--text-3); text-decoration: none; font: 700 11px/1 var(--font-sans); letter-spacing: .01em; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tabbar .icon { width: 23px; height: 23px; transition: transform var(--dur-2) var(--ease-spring); }
.tabbar [aria-current="page"] { color: var(--text); }
.tabbar [aria-current="page"] .icon { color: var(--accent-text); transform: translateY(-1px); }
.tabbar .badge--count { position: absolute; top: 0; left: calc(50% + 6px); height: 17px; min-width: 17px; font-size: 10px; box-shadow: 0 0 0 2px var(--surface); }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidenav { display: none; }
  .tabbar { display: block; }
  .page { padding-bottom: calc(var(--tabbar-h) + var(--sp-10) + var(--safe-bottom)); }
}

/* ---------- Marketing header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; padding-top: var(--safe-top);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-2), background-color var(--dur-2);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--sp-6); height: var(--header-h); }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: var(--sp-4); }
.site-nav a { white-space: nowrap; padding: 8px 12px; border-radius: var(--r-md); color: var(--text-2); font: 600 var(--fs-md)/1 var(--font-sans); text-decoration: none; transition: color var(--dur-2), background-color var(--dur-2); }
.site-nav a:hover { color: var(--text); background: var(--surface-3); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.site-menu-btn { display: none; }
/* A link marked wide drops out when the header gets tight (it stays in the
   menu). Below 1025px the links move into the menu, before they would crowd
   the brand and buttons; the secondary buttons go at 900px. */
@media (max-width: 1180px) { .site-nav .site-nav__wide { display: none; } }
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-menu-btn { display: inline-grid; }
}
@media (max-width: 900px) {
  .site-header__actions .hide-md { display: none; }
}
.site-footer { background: var(--navy-950); color: #9FB1C6; padding: var(--sp-11) 0 calc(var(--sp-8) + var(--safe-bottom)); font-size: var(--fs-sm); }
.site-footer .brand { color: #fff; }
.site-footer a { color: #C9D5E3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h3 { color: #fff; font: 700 var(--fs-xs)/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-8); }
.site-footer__base { margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); justify-content: space-between; color: #7F93AA; font-size: var(--fs-xs); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Overlays: dialog, sheet, menu, toast, tooltip ---------- */
.dialog {
  width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 860px); padding: 0; border: 0; border-radius: var(--r-xl);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); overflow: hidden;
}
.dialog[open] { display: flex; flex-direction: column; animation: ds-pop var(--dur-3) var(--ease-out); }
.dialog::backdrop { background: var(--overlay); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: ds-fade var(--dur-3) var(--ease-out); }
.dialog--wide { width: min(820px, calc(100vw - 32px)); }
.dialog__head { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-6) var(--sp-6) var(--sp-2); }
.dialog__title { font: 700 var(--fs-xl)/1.25 var(--font-display); letter-spacing: -.015em; flex: 1; }
.dialog__body { padding: var(--sp-2) var(--sp-6) var(--sp-6); overflow-y: auto; }
.dialog__foot { display: flex; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
@media (max-width: 640px) {
  .dialog.dialog--sheet { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: var(--safe-bottom); }
  .dialog.dialog--sheet[open] { animation: ds-rise var(--dur-3) var(--ease-out); }
}
.menu {
  position: absolute; z-index: 80; min-width: 220px; padding: 6px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3);
  animation: ds-pop var(--dur-2) var(--ease-out); transform-origin: top right;
}
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--r-sm); border: 0; background: none; color: var(--text-2); font: 600 var(--fs-sm)/1.2 var(--font-sans); text-align: left; text-decoration: none; cursor: pointer; }
.menu__item:hover, .menu__item:focus-visible { background: var(--surface-3); color: var(--text); outline: none; }
.menu__item .icon { width: 18px; height: 18px; color: var(--text-3); }
.menu__sep { height: 1px; background: var(--line); margin: 6px 4px; }
.toast-region { position: fixed; z-index: 200; left: 50%; bottom: calc(var(--sp-6) + var(--safe-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; pointer-events: none; width: min(480px, calc(100vw - 32px)); }
@media (max-width: 900px) { .app ~ .toast-region, .has-tabbar .toast-region { bottom: calc(var(--tabbar-h) + var(--sp-4) + var(--safe-bottom)); } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  padding: 12px 14px 12px 16px; border-radius: var(--r-lg); background: var(--navy-900); color: #fff;
  box-shadow: var(--shadow-3); font-size: var(--fs-sm); font-weight: 600; animation: ds-rise var(--dur-3) var(--ease-out);
}
:root[data-theme="dark"] .toast { background: #1E3550; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #1E3550; } }
.toast .icon { width: 18px; height: 18px; flex: none; }
.toast--safe .icon { color: #5FD3B6; } .toast--act .icon { color: #FF9A9E; } .toast--watch .icon { color: #F8C46F; } .toast--info .icon { color: #93B8FF; }
.toast__msg { flex: 1; line-height: 1.4; }
.toast__action { border: 0; background: rgba(255, 255, 255, .12); color: var(--gold-500); font: 700 var(--fs-xs) var(--font-sans); padding: 6px 10px; border-radius: var(--r-sm); cursor: pointer; }
.toast.is-leaving { animation: ds-sink var(--dur-2) var(--ease-in-out) forwards; }
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; padding: 6px 9px; border-radius: var(--r-sm); background: var(--navy-900); color: #fff;
  font: 600 var(--fs-xs)/1.2 var(--font-sans); box-shadow: var(--shadow-2); pointer-events: none; z-index: 90;
}

/* ---------- Feedback ---------- */
.banner {
  display: flex; align-items: center; gap: var(--sp-3); padding: 12px 16px; border-radius: var(--r-lg);
  background: var(--info-tint); color: var(--text); border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); font-size: var(--fs-sm);
}
.banner > .icon { color: var(--info-text); width: 20px; height: 20px; }
.banner__body { flex: 1; min-width: 0; line-height: 1.45; }
.banner__body b { font-weight: 700; }
.banner--watch { background: var(--watch-tint); border-color: color-mix(in srgb, var(--watch) 28%, transparent); }
.banner--watch > .icon { color: var(--watch-text); }
.banner--act { background: var(--act-tint); border-color: color-mix(in srgb, var(--act) 28%, transparent); }
.banner--act > .icon { color: var(--act-text); }
.banner--safe { background: var(--safe-tint); border-color: color-mix(in srgb, var(--safe) 26%, transparent); }
.banner--safe > .icon { color: var(--safe-text); }
.banner--accent { background: var(--accent-tint); border-color: var(--accent-line); }
.banner--accent > .icon { color: var(--accent-text); }
.callout { padding: var(--sp-5); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-3); padding: var(--sp-10) var(--sp-6); color: var(--text-3); }
.empty .icon-badge { margin-bottom: var(--sp-2); }
.empty h3 { font-size: var(--fs-lg); color: var(--text); }
.empty p { max-width: 42ch; margin: 0; font-size: var(--fs-md); }
.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: var(--r-sm); min-height: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: ds-shimmer 1.4s infinite; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--text-2); animation: ds-spin .8s linear infinite; }
.progress { height: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; width: var(--value, 0%); border-radius: inherit; background: var(--progress-color, var(--safe)); transition: width var(--dur-4) var(--ease-out); }
.progress--sm { height: 6px; }
.ring { --size: 96px; --thick: 9px; --value: 0; --ring-fs: .38; position: relative; width: var(--size); height: var(--size); flex: none; container-type: inline-size; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: var(--thick); }
.ring .ring__track { stroke: var(--surface-3); }
.ring .ring__value { stroke: var(--ring-color, var(--safe)); stroke-linecap: round; transition: stroke-dashoffset 900ms var(--ease-out); }
/* The label sits in the ring's inner disc and is sized from it (container
   units, so it follows the ring's rendered width), one step smaller for 3
   digits: numbers keep clear space from the stroke at every size. */
.ring__label {
  --inner: calc(var(--size) - 2 * var(--thick));
  position: absolute; inset: var(--thick); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font: 700 calc(var(--inner) * var(--ring-fs))/1 var(--font-display); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
@supports (width: 1cqi) { .ring__label { --inner: calc(100cqi - 2 * var(--thick)); } }
.ring[data-digits="3"] { --ring-fs: .31; }
/* Optical centring: digits sit high in their line box, so a lone number
   drops a touch and a number with a caption lifts a touch. */
.ring__num { display: block; letter-spacing: 0; margin-top: .1em; }
.ring__num:not(:only-child) { margin-top: -.12em; }
.ring__label small { display: block; font: 600 max(var(--fs-2xs), calc(var(--inner) * .1))/1 var(--font-sans); color: var(--text-3); letter-spacing: .02em; }

/* ---------- Data ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font: 700 var(--fs-2xs)/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--dur-1); }
.table tbody tr:hover { background: var(--surface-2); }
.table td.strong { color: var(--text); font-weight: 700; }
.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 10px 20px; font-size: var(--fs-sm); }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); font-weight: 600; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.status-dot--safe { background: var(--safe); } .status-dot--watch { background: var(--watch); } .status-dot--act { background: var(--act); }

/* ---------- Cover art (generated, text-free; see covers.js) ---------- */
.cover { position: relative; overflow: hidden; background: var(--surface-3); aspect-ratio: 16 / 10; }
.cover > img, .cover > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cover--band { aspect-ratio: 21 / 8; }
.cover--wide { aspect-ratio: 2 / 1; }
.cover--square { aspect-ratio: 1; }
.cover--round { border-radius: var(--r-lg); }
.cover__tag { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-full); background: rgba(255, 255, 255, .92); color: #0B1929; font: 700 var(--fs-2xs)/1 var(--font-sans); letter-spacing: .02em; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.cover__tag .cat-dot { width: 7px; height: 7px; }
.cover__corner { position: absolute; right: 10px; top: 10px; z-index: 1; }
.resource-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; color: inherit; }
.resource-card .cover { border-bottom: 1px solid var(--line); }
.resource-card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.resource-card__title { font: 700 var(--fs-base)/1.35 var(--font-display); letter-spacing: -.01em; color: var(--text); margin: 0; }
.resource-card__desc { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.5; margin: 0; }
.resource-card__meta { margin-top: auto; padding-top: var(--sp-2); display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- Prose (articles, legal pages) ---------- */
.prose { font-size: 1.0625rem; line-height: var(--lh-relaxed); color: var(--text-2); max-width: 70ch; }
/* Paragraph reset first and at zero specificity on the p: as `.prose p` after
   the spacing rule it zeroed the gap above every paragraph that followed a
   list or another paragraph. */
.prose :where(p) { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; letter-spacing: -.02em; line-height: 1.2; }
.prose h3 { font-size: 1.28rem; margin-top: 1.7em; letter-spacing: -.012em; }
.prose h4 { font-size: 1.08rem; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
/* Section titles in AI answers (bold-only lines, see renderMarkdown): a
   numbered title gets a small gold badge. */
.prose .md-sub { display: flex; align-items: flex-start; gap: 10px; font: 700 1.04rem/1.35 var(--font-display); letter-spacing: -.005em; color: var(--text); }
.prose .md-sub__n { flex: none; display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin-top: -1px; border-radius: 8px; background: var(--accent-tint); color: var(--accent-text); font: 700 13px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.prose a { color: var(--info-text); font-weight: 600; }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--text-4); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--text); font-size: 1.12rem; }
.prose hr { margin: 2.2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { color: var(--text); font-weight: 700; background: var(--surface-2); }
.prose img { border-radius: var(--r-lg); }
.prose code { font-size: .88em; }
.prose .callout { font-size: 1rem; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: 20px 0; cursor: pointer; font: 700 var(--fs-lg)/1.35 var(--font-display); letter-spacing: -.01em; color: var(--text);
}
.accordion summary::-webkit-details-marker { display: none; }
/* Centred on the question's first line (1.35em line box), also when it wraps. */
.accordion summary::after {
  content: ""; flex: none; width: 28px; height: 28px; margin-top: calc((1.35em - 28px) / 2); border-radius: 50%; background: var(--surface-3) center / 14px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6F83' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform var(--dur-3) var(--ease-out);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion__body { padding: 0 0 22px; color: var(--text-2); max-width: 70ch; line-height: 1.65; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); align-items: stretch; }
@media (max-width: 960px) { .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
.price-card { position: relative; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-7); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.price-card--featured { border: 2px solid var(--navy-900); box-shadow: var(--shadow-3); }
:root[data-theme="dark"] .price-card--featured { border-color: var(--gold-500); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .price-card--featured { border-color: var(--gold-500); } }
.price-card__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.price-card__name { font: 700 var(--fs-xl)/1.2 var(--font-display); letter-spacing: -.015em; }
.price-card__price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); }
.price-card__price b { font-size: var(--fs-5xl); line-height: 1; letter-spacing: -.04em; font-weight: 700; color: var(--text); }
.price-card__price span { color: var(--text-3); font: 600 var(--fs-sm) var(--font-sans); }
.price-card ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: var(--fs-md); color: var(--text-2); }
.price-card li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.price-card li .icon { width: 18px; height: 18px; color: var(--safe); margin-top: 2px; stroke-width: 2.4; }
.price-card li.is-off { color: var(--text-4); }
.price-card li.is-off .icon { color: var(--text-4); }
.price-card .btn { margin-top: auto; }


/* ---------- Product pieces (shared by the portal and website mock-ups) ---------- */
.app-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font: 800 12px/1 var(--font-display); flex: none; }
/* Dark: a hairline keeps near-black brand tiles (TikTok) from vanishing. */
:root[data-theme="dark"] .app-ic { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-ic { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); } }
.tonight { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px 20px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(245, 197, 24, .26) 0%, rgba(245, 197, 24, 0) 50%), linear-gradient(140deg, #0B1929, #15304F); }
.tonight__ey { font: 700 var(--fs-2xs)/1 var(--font-display); letter-spacing: .12em; color: var(--gold-500); text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.tonight__ey i { font-style: normal; color: #9FB3C8; letter-spacing: .06em; }
.tonight h3 { color: #fff; font-size: 1.125rem; line-height: 1.3; margin: 10px 0 6px; }
.tonight p { margin: 0; color: #B9C8D8; font-size: var(--fs-sm); line-height: 1.5; }
.kapp { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 700; }
.kapp .app-ic { width: 22px; height: 22px; border-radius: 7px; font-size: var(--fs-2xs); }
.kapp em { font-style: normal; font-size: var(--fs-2xs); padding: 1px 6px; border-radius: 6px; background: var(--safe-tint); color: var(--safe-text); }
.kapp.is-watch { background: var(--watch-tint); border-color: color-mix(in srgb, var(--watch) 30%, transparent); }
.kapp.is-watch em { background: color-mix(in srgb, var(--watch) 22%, transparent); color: var(--watch-text); }
.kapp.is-button { cursor: pointer; font: inherit; font-size: var(--fs-xs); font-weight: 700; color: inherit; transition: border-color var(--dur-2), background-color var(--dur-2); }
.kapp.is-button:hover { border-color: var(--text-4); }

/* ---------- Density: schools ---------- */
.ds-compact { --fs-md: .875rem; --fs-base: .9375rem; }
.ds-compact .card { --card-pad: var(--sp-5); }
.ds-compact .table td, .ds-compact .table th { padding: 10px 14px; }
.ds-compact .page { padding-top: var(--sp-5); }

/* ---------- Phones: nothing runs off the side ---------- */
/* iOS Safari zooms the whole page when a field under 16px gets focus, and
   leaves it zoomed (the page then looks wider than the screen). */
@media (max-width: 900px), (pointer: coarse) {
  .input, .select, .textarea { font-size: 16px; }
}
.prose { overflow-wrap: break-word; }
.prose a, .prose code { overflow-wrap: anywhere; }
.sn-short { display: none; }
@media (max-width: 640px) {
  /* Tabs and filter chips wrap onto extra lines instead of scrolling sideways. */
  .segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 92px), 1fr)); width: 100%; overflow: visible; }
  .segmented button, .segmented a { display: flex; align-items: center; justify-content: center; text-align: center; white-space: normal; line-height: 1.2; min-height: 40px; padding: 8px 10px; }
  .chip-row { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  /* Long labels swap for short ones (see SubNav). */
  .sn-long { display: none; }
  .sn-short { display: inline; }
  /* Data tables become a list of rows: "label ... value". */
  .table-wrap:has(> .table--stack) { overflow: visible; }
  .table--stack thead, .table--stack .table-head-row { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table--stack, .table--stack tbody, .table--stack tr { display: block; width: 100%; }
  .table--stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td, .table--stack tbody th { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; text-align: right; white-space: normal; background: none; }
  .table--stack td::before, .table--stack tbody th::before { content: attr(data-label); flex: none; max-width: 46%; text-align: left; font: 600 var(--fs-xs)/1.5 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--text-3); }
  .table--stack td[data-label=""]::before, .table--stack th[data-label=""]::before, .table--stack .cell--primary::before { content: none; }
  .table--stack .cell--primary { display: block; text-align: left; padding: 0 0 6px; }
  .table--stack .table__actions { justify-content: flex-start; gap: 8px; padding-top: 8px; }
  .table--stack .table__actions::before { content: none; }
  .ds-compact .table--stack td, .ds-compact .table--stack tbody th { padding: 3px 0; }
  .ds-compact .table--stack .cell--primary { padding: 0 0 6px; }
}

/* ---------- Motion ---------- */
@keyframes ds-spin { to { transform: rotate(360deg); } }
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ds-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ds-sink { to { opacity: 0; transform: translateY(12px); } }
@keyframes ds-shimmer { to { transform: translateX(100%); } }
.reveal { animation: ds-rise var(--dur-4) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .sidenav, .topbar, .tabbar, .toast-region, .no-print { display: none !important; }
  .app { display: block; }
  .card { box-shadow: none; break-inside: avoid; }
  a { text-decoration: underline; }
}
