/* GPS for Schools — VISUAL DESIGN & UI IMPLEMENTATION AUTHORITY v05 (08 October 2026).

   Every value below is from Tracey's own package:
     Dropbox/Beyond Answers/GPS for Schools_Aus/06 Design & Style Guide/
       00_READ_FIRST_v05.docx          the written contract
       02_Colour_States_v05.png        the palette, surfaces and semantic states
       03_Typography_v05.png           Inter, the type scale and casing rules
       04_Components_v05.png           button hierarchy, cards, fields, sidebar, states
       05_Layout_Responsive_v05.png    the 8px scale, shell geometry and breakpoints
       08_Coder_Tokens_v05.png         the token map this file implements line for line

   HER STOP RULE, which governs this file: "If a screen cannot be implemented without contradicting a
   higher authority, this visual system, or a canonical brand asset, stop and resolve the conflict. Do
   not invent a one-off pattern." No colour, radius, spacing value or state below is invented; anything
   her package does not name is derived from a value it does name, and says so.

   HER NON-NEGOTIABLE: DEFAULT PAGE BACKGROUND = #FFFFFF. "Grey is not an alternative application or
   website page background." The previous build used a cream page throughout; that is gone. */

:root {
  /* ── 02 / 08 · core palette, her hex values ── */
  --brand-navy:#073B57;      /* Deep Navy — primary brand, headings, primary buttons, selected nav */
  --navy-dark:#052C42;       /* app sidebar, footer/trust area, authorised dark surfaces */
  --gps-teal:#18B7AE;        /* accent, GPS mark, secondary controls, dark-surface focus */
  --link-teal:#0A817D;       /* ordinary text links on white — her v04/v05 accessible replacement */
  --leaf-green:#48C79A;      /* positive brand accent / icon; NOT status text on white */
  --body-grey:#526572;       /* body copy */
  --border-grey:#DCE5E9;     /* fine borders and dividers */
  --page-bg:#FFFFFF;         /* her non-negotiable page, canvas and card surface */

  /* restricted support tints — "used sparingly", one deliberate tint per emphasis */
  --soft-blue:#EAF5FB; --soft-teal:#EAF8F5; --soft-lavender:#F0EEFB; --soft-warm:#FAF3E5;

  /* ── 02 · semantic states. Her rule: never colour alone — always words and/or an icon too ── */
  --focus-light:#2563EB;     /* focus ring on light surfaces */
  --error:#B42318; --warning:#A15C00; --success:#177B57; --disabled:#C8D2D8;

  /* ── 03 · typography. Inter 400/500/600/700, no decorative faces in functional UI ── */
  --font-sans:'Inter','Inter var',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --font-mono:ui-monospace,'Cascadia Mono','Segoe UI Mono',Menlo,Consolas,monospace;

  /* ── 05 / 08 · her 8px spacing scale, exactly: 4, 8, 16, 24, 32, 48, 64, 80, 96 ── */
  --s1:4px; --s2:8px; --s3:16px; --s4:24px; --s5:32px; --s6:48px; --s7:64px; --s8:80px; --s9:96px;

  /* ── 08 · geometry ── */
  --r-card:12px;             /* card radius */
  --r-input:8px;             /* field radius */
  --r-pill:999px;            /* pill radius */
  --border-w:1px;            /* her border weight */
  --focus-w:3px; --focus-offset:2px;
  --target-min:44px;         /* minimum interactive target, 44 x 44px */
  --sidebar-w:256px;         /* authenticated shell sidebar */

  /* ── compatibility aliases for names that were used before this token block existed. Each resolves
        to the token in HER palette that the dead name was reaching for, so no new value is invented. ── */
  --system-error:var(--error);   /* every error message in the product used this undefined name */
  --accent:var(--gps-teal);
  --accent-soft:var(--soft-teal);
  --ink-1:var(--brand-navy);
  --r2:var(--r-input);
  --t-lg-size:clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  --utility-h:80px;          /* white top utility bar */

  /* ── 05 · grid ── */
  --w-container:1200px;      /* ~1200px maximum */
  --gutter:24px;             /* ~24px typical */
  --w-report:720px; --w-player:760px;   /* readable measure, preserved per her responsive safeguards */

  /* motion — not specified in her package; kept from the previous build so no new behaviour is
     introduced by this re-skin. */
  --t-fast:150ms; --t-move:200ms; --t-screen:300ms; --ease:cubic-bezier(.2,0,0,1);

  /* ── compatibility aliases ────────────────────────────────────────────────────────────────────
     The app's markup refers to --paper/--ink/--primary and the rest. Rather than touch a thousand
     call sites in one change, each old name is pointed at HER token, so every existing rule renders
     her palette. Nothing maps to a colour she did not approve. */
  --paper:var(--page-bg);        /* was a cream tone — her page is white */
  --surface:var(--page-bg);
  --sand:var(--soft-blue);       /* the only neutral fill she authorises is a restricted tint */
  --ink:var(--brand-navy);       /* headings and strong text */
  --ink-soft:var(--body-grey);
  --ink-faint:var(--body-grey);
  --primary:var(--brand-navy);   /* primary action = Deep Navy + white text */
  --primary-deep:var(--navy-dark);
  --primary-tint:var(--soft-blue);
  --secondary:var(--gps-teal);   /* secondary action = GPS Teal + Deep Navy text */
  --secure:var(--success); --secure-mid:var(--leaf-green); --secure-tint:var(--soft-teal);
  --attention:var(--warning); --attention-mid:var(--warning); --attention-tint:var(--soft-warm);
  --dev:var(--body-grey); --dev-tint:var(--soft-lavender); --dev-border:var(--border-grey);
  --wattle:var(--leaf-green);
  --border:var(--border-grey); --border-soft:var(--border-grey);
  --focus:var(--focus-light); --system-error:var(--error);
  --r-chip:var(--r-card);
  --w-marketing:var(--w-container);
  /* Her package specifies no shadow. Cards are "white + subtle 1px Border Grey", so the shadow
     tokens resolve to none and the border does the work. */
  --shadow-1:none; --shadow-2:none;
  /* Rules further down use var(--line, #hex) / var(--surface-2, #hex) style fallbacks. Left undefined,
     the HARD-CODED FALLBACK is what renders — which is how a cream table hover and three off-palette
     greys survived the re-skin. They are defined here so her tokens win everywhere. */
  --line:var(--border-grey);
  --surface-2:var(--soft-blue);
  --ink-2:var(--body-grey);
  --surface-3:var(--soft-blue);
  --ink-3:var(--body-grey);
}
/* ---------- base ---------- */
*, *::before, *::after { box-sizing:border-box; }
html { font-size:16px; -webkit-text-size-adjust:100%; }
body {
  /* her non-negotiable: the default page background is white */
  margin:0; background:var(--page-bg); color:var(--body-grey);
  font-family:var(--font-sans); line-height:1.5;
  font-variant-numeric:lining-nums tabular-nums;
  overflow-x:hidden;
}
img, svg { max-width:100%; height:auto; display:block; }
h1,h2,h3,h4,p,ul,ol,figure { margin:0; }
ul,ol { padding-left:1.25rem; }
/* 02 · "Ordinary-size links on white: #0A817D. Do not use previous #0C8F8A for normal links."
   4.72:1 on white, so normal-size body links meet WCAG AA. */
a { color:var(--link-teal); }
a:hover { color:var(--navy-dark); }
/* on her dark shell the link must flip to the teal accent, which is 5.83:1 on Navy Dark */
.app-sidebar a, .site-footer a, .on-dark a { color:var(--gps-teal); }
.app-sidebar a:hover, .site-footer a:hover, .on-dark a:hover { color:#fff; }
button { font-family:inherit; }
/* 04 · focus ring: 3px + 2px offset. Blue on light surfaces, GPS Teal on her dark shell — her two
   stated combinations, so focus is visible on both without inventing a third treatment. */
:focus-visible { outline:var(--focus-w) solid var(--focus-light); outline-offset:var(--focus-offset); border-radius:4px; }
.app-sidebar :focus-visible, .site-footer :focus-visible, .on-dark :focus-visible {
  outline-color:var(--gps-teal);
}
.visually-hidden {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
/* A file input styled `display:none` leaves the tab order, so its label cannot be reached by
   keyboard at all. The input is `.visually-hidden` instead — still focusable — and the focus ring is
   drawn on the label that a sighted keyboard user is actually looking at. */
.file-btn { cursor:pointer; position:relative; }
.file-btn:focus-within { outline:var(--focus-w) solid var(--focus-light); outline-offset:var(--focus-offset); border-radius:4px; }
.app-sidebar .file-btn:focus-within, .on-dark .file-btn:focus-within { outline-color:var(--gps-teal); }
/* Her Board 07: "right-aligned quantitative values". Tabular figures alone were not her rule —
   a column of numbers only compares at a glance when the units line up. */
.num { font-variant-numeric:lining-nums tabular-nums; text-align:right; }

/* ---------- 03 · type scale, her exact sizes ----------
   Desktop  H1 56/64/700  H2 40/48/700  H3 28/36/600  H4 22/28/600
            Body Large 18/28/400  Body 16/24/400  Small 14/20/400  Button 16/24/600  Nav 16/24/500
   Mobile   H1 40/48      H2 32/40     H3 24/32     H4 20/28
            Body Large 16/24  Body 14/22  Small 12/18  Button 14/20  Nav 14/20
   clamp() moves between HER two ends, so every width in between is on her scale rather than a
   third size of someone else's choosing. Her casing rule — sentence case for headings, navigation
   and buttons, never ALL CAPS for body or ordinary headings — is applied below. */
.t-display, h1, .t-h1 { font-size:clamp(2.5rem, 1.75rem + 3.1vw, 3.5rem); font-weight:700; line-height:1.143; letter-spacing:-0.01em; }
h2, .t-h2 { font-size:clamp(2rem, 1.6rem + 1.7vw, 2.5rem); font-weight:700; line-height:1.2; }
h3, .t-h3 { font-size:clamp(1.5rem, 1.33rem + 0.7vw, 1.75rem); font-weight:600; line-height:1.286; }
h4, .t-h4 { font-size:clamp(1.25rem, 1.17rem + 0.35vw, 1.375rem); font-weight:600; line-height:1.273; }
.t-question { font-size:clamp(1.25rem, 1.08rem + 0.7vw, 1.5rem); font-weight:500; line-height:1.45; max-width:46ch; }
.t-lg { font-size:clamp(1rem, 0.94rem + 0.25vw, 1.125rem); line-height:1.556; }
.t-caption { font-size:clamp(0.75rem, 0.69rem + 0.25vw, 0.875rem); line-height:1.429; }
/* The only place her package permits uppercase is a small eyebrow label, never body or a heading. */
.t-label { font-size:0.875rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; line-height:1.429; }
/* 02 · "Deep Navy — primary brand, headings". Body copy is Body Grey; headings are Deep Navy.
   Without this they inherited the body colour and every heading rendered grey. On her authorised
   dark surfaces they invert to white, which is her 14.53:1 combination. */
h1, h2, h3, h4, .t-display, .t-h1, .t-h2, .t-h3, .t-h4 { color:var(--brand-navy); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4,
.app-sidebar h1, .app-sidebar h2, .app-sidebar h3 { color:#fff; }
.soft { color:var(--body-grey); }
p, li { max-width:68ch; }
h1, h2, h3, h4, p, li, dt, dd, summary { overflow-wrap:anywhere; }

/* ---------- 04 · button hierarchy, hers ----------
   Primary   Deep Navy + white text
   Secondary GPS Teal + Deep Navy text
   Tertiary  white with a Deep Navy outline
   "Disabled actions must actually be unavailable." Minimum target 44 x 44px. */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:var(--s2);
  min-height:var(--target-min); padding:12px 24px; border-radius:var(--r-pill);
  font-size:1rem; font-weight:600; line-height:1.5; cursor:pointer; text-decoration:none;
  border:var(--border-w) solid transparent;
  transition:background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-primary { background:var(--brand-navy); color:#fff; border-color:var(--brand-navy); }
.btn-primary:hover { background:var(--navy-dark); border-color:var(--navy-dark); color:#fff; }
/* HER BOARD 04 SHOWS A PRESSED STATE FOR ALL THREE LEVELS, not only the primary — her columns are
   Default / Hover / Pressed / Focus / Disabled across Primary, Secondary and Tertiary — and her Board 08
   acceptance gate requires "Hover, pressed, focus and disabled states exist where relevant."
   Only the primary had one. The pressed affordance is the one this build already established for the
   primary (a 1px press), so the other two levels adopt it rather than inventing a colour her board does
   not state in a token. Read from her 06 Design & Style Guide boards on 12 Oct 2026. */
.btn-primary:active, .btn-secondary:active, .btn-tertiary:active { transform:translateY(1px); }
.btn-primary:disabled { background:var(--disabled); border-color:var(--disabled); color:#fff; cursor:not-allowed; transform:none; }
.btn-secondary { background:var(--gps-teal); color:var(--brand-navy); border-color:var(--gps-teal); }
.btn-secondary:hover { background:var(--link-teal); border-color:var(--link-teal); color:#fff; }
.btn-secondary:disabled { background:var(--disabled); border-color:var(--disabled); color:#fff; cursor:not-allowed; }
/* her tertiary is a real outlined button, not a bare text link */
.btn-tertiary {
  background:var(--page-bg); border:var(--border-w) solid var(--brand-navy);
  min-height:var(--target-min); padding:12px 24px; border-radius:var(--r-pill);
  color:var(--brand-navy); font-weight:600; font-size:1rem; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center; gap:var(--s2);
}
.btn-tertiary:hover { background:var(--soft-blue); color:var(--navy-dark); border-color:var(--navy-dark); }
.btn-tertiary:disabled { border-color:var(--disabled); color:var(--disabled); cursor:not-allowed; background:var(--page-bg); }
.btn-lg { min-height:56px; font-size:1.0625rem; }
/* ---------- 04 · fields ----------
   Her rules: 1px border, 8px field radius, minimum 44px target, and "labels persist; placeholders are
   not labels" — so a visible label is required and is never replaced by placeholder text. */
.field label { display:block; font-weight:600; margin-bottom:var(--s2); color:var(--brand-navy); }
.field .help { color:var(--body-grey); font-size:0.875rem; margin-top:var(--s2); }
.input {
  width:100%; min-height:var(--target-min); height:48px; padding:0 var(--s3);
  background:var(--page-bg); border:var(--border-w) solid var(--border-grey); border-radius:var(--r-input);
  font-family:inherit; font-size:1rem; color:var(--brand-navy);
}
.input::placeholder { color:var(--body-grey); opacity:1; }
.input:hover { border-color:var(--body-grey); }
.input:disabled { background:var(--soft-blue); border-color:var(--disabled); color:var(--body-grey); cursor:not-allowed; }
/* her rule: error text belongs adjacent to the affected field, and never colour alone */
.input[aria-invalid="true"] { border-color:var(--error); border-width:2px; }
.field-error, .y3-field-error { color:var(--error); font-size:0.875rem; margin-top:var(--s2); }
.input:focus { border-color:var(--focus); outline:var(--focus-w) solid var(--focus); outline-offset:var(--focus-offset); }

/* ---------- chips ---------- */
.chip-dev {
  display:inline-block; padding:4px 12px; border-radius:var(--r-pill);
  font-size:0.75rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--dev); background:var(--dev-tint); border:1.5px dashed var(--dev-border);
}

/* ---------- marketing layout ---------- */
.site-header {
  background:var(--paper); border-bottom:1px solid var(--border-soft);
}
.site-header .inner {
  max-width:var(--w-marketing); margin:0 auto; padding:var(--s3) clamp(16px, 4vw, 24px);
  display:flex; align-items:center; gap:var(--s4); flex-wrap:wrap;
}
.wordmark { font-weight:700; font-size:1.125rem; color:var(--ink); text-decoration:none; letter-spacing:-0.01em; display:inline-flex; align-items:center; gap:9px; }
.wordmark:hover { color:var(--ink); }
.wordmark .logo { color:var(--primary); flex:0 0 auto; }
.site-nav { margin-left:auto; display:flex; align-items:center; gap:var(--s1); flex-wrap:wrap; }
.site-nav a.nav-link {
  color:var(--ink-soft); text-decoration:none; font-weight:500; font-size:0.9375rem;
  padding:10px; min-height:44px; display:inline-flex; align-items:center; border-radius:var(--r-input); white-space:nowrap;
}
.site-nav a.nav-link:hover { color:var(--primary-deep); }

.mk-section { padding:clamp(44px, 3vw + 32px, 64px) clamp(16px, 4vw, 24px); }
/* 02 · HER SURFACE HIERARCHY. "Ordinary section: white; no container is required simply to indicate a
   section", and support tints are "used sparingly" for "special emphasis ... one restrained support tint
   ... used deliberately". Full-width alternating tint bands are neither sparing nor deliberate, so an
   ordinary alternating section is now white and separated by her spacing, not by a colour band. A section
   that genuinely needs emphasis opts in with .mk-section.emphasis. */
.mk-section.alt { background:var(--page-bg); }
.mk-section.emphasis { background:var(--soft-blue); }
.mk-inner { max-width:var(--w-marketing); margin:0 auto; }
.mk-inner.narrow { max-width:760px; }
.eyebrow { color:var(--primary); margin-bottom:var(--s3); }
.mk-section h2 { margin-bottom:var(--s4); }
.mk-section .lead { font-size:1.125rem; color:var(--ink-soft); max-width:68ch; }

/* 02/04 · "Default card: white + subtle 1px Border Grey." Her component board adds: "No default
   photography or rainbow card fills." Her package specifies no card shadow, so there is none. */
.card {
  background:var(--page-bg); border:var(--border-w) solid var(--border-grey);
  border-radius:var(--r-card); padding:var(--s4);
}
.card h3 { margin-bottom:var(--s3); color:var(--brand-navy); }
.card p { color:var(--body-grey); }

.steps { list-style:none; padding:0; display:grid; gap:var(--s4); counter-reset:step; max-width:760px; }
.steps li { display:flex; gap:var(--s4); align-items:flex-start; counter-increment:step; }
.steps li::before {
  content:counter(step); flex:0 0 auto;
  width:36px; height:36px; border-radius:var(--r-pill);
  background:var(--primary-tint); color:var(--primary-deep); font-weight:700;
  display:inline-flex; align-items:center; justify-content:center;
}
.steps li p { padding-top:4px; }

/* ---------- footer ---------- */
/* 02 · "Footer/trust area: Navy Dark / authorised deep navy treatment." White on Navy Dark is
   14.53:1 in her contrast contract. */
.site-footer { background:var(--navy-dark); color:#fff; padding:var(--s7) clamp(16px, 4vw, 24px) calc(var(--s7) + env(safe-area-inset-bottom)); margin-top:var(--s8); }
.site-footer .inner { max-width:var(--w-marketing); margin:0 auto; display:grid; gap:var(--s4); }
.site-footer .fw { font-weight:700; font-size:1.125rem; display:inline-flex; align-items:center; gap:9px; }
.site-footer .fw .logo { flex:0 0 auto; }
.site-footer p { color:var(--paper); opacity:.92; max-width:68ch; }
.site-footer .disclaimer { font-size:0.875rem; opacity:1; }
.site-footer a { color:var(--paper); }

/* ── The Lantern Strip — a diagnostic state lights exactly ONE discrete block.
   No track, no marker, no position, no number: the lit block IS the reading, and
   her verbatim phrase sits beneath it. Unlit blocks are quiet; one lamp glows. ── */
.lantern { margin:var(--s3) 0; display:grid; gap:var(--s2); }
.lantern .lz-row { display:flex; gap:6px; }
.lz {
  flex:1 1 0; min-width:0; min-height:40px;
  display:flex; align-items:center; justify-content:center; text-align:center;
  padding:6px 8px; border-radius:var(--r-chip);
  font-size:0.8125rem; font-weight:600; line-height:1.15; letter-spacing:0.01em;
  background:var(--dev-tint); color:var(--ink-faint);
  border:1.5px solid transparent;
  transition:background var(--t-move) var(--ease), color var(--t-move) var(--ease), border-color var(--t-move) var(--ease);
}
.lz.on { box-shadow:var(--shadow-1); }
/* Her four restricted support tints, used as a ramp for the learning zones. Her rule is explicit:
   "Do not treat decorative brand colours as error, warning or success signals" and "Show meaning with
   visible words and/or icons as well as colour" — the chip's own label carries the meaning, the tint
   only groups it. Text stays Deep Navy so every chip clears AA on its tint. */
.lz.on.lz-foundational { background:var(--soft-warm);     color:var(--brand-navy); border-color:var(--border-grey); }
.lz.on.lz-specific     { background:var(--soft-lavender); color:var(--brand-navy); border-color:var(--border-grey); }
.lz.on.lz-mostly       { background:var(--soft-blue);     color:var(--brand-navy); border-color:var(--border-grey); }
.lz.on.lz-secure       { background:var(--soft-teal);     color:var(--brand-navy); border-color:var(--border-grey); }
.lz-phrase { color:var(--ink); font-size:0.9375rem; font-weight:500; }
@media (max-width:520px) {
  .lz { font-size:0.75rem; padding:6px 4px; min-height:44px; }
  .lantern .lz-row { gap:4px; }
}
@media (prefers-reduced-motion: reduce) { .lz { transition:none; } }

.confidence { display:flex; align-items:baseline; gap:var(--s2); color:var(--ink-soft); font-size:0.875rem; }
.confidence strong { color:var(--ink); }

/* ---------- report page ---------- */
.report-page { max-width:var(--w-report); margin:0 auto; padding:var(--s7) var(--s4) var(--s8); display:grid; gap:var(--s7); }
.report-head { display:grid; gap:var(--s3); }
.report-head .frame { font-size:1.125rem; color:var(--ink-soft); }
.report-section { display:grid; gap:var(--s4); }
.report-section > h2 { margin-bottom:var(--s2); }
.report-section .intro { color:var(--ink-soft); }

.snapshot-row { background:var(--surface); border-radius:var(--r-chip); padding:var(--s4) var(--s5); box-shadow:var(--shadow-1); }
.snapshot-row h3 { font-size:1.125rem; margin-bottom:2px; }

.finding-card {
  background:var(--surface); border-radius:var(--r-card); padding:var(--s5);
  box-shadow:var(--shadow-1); display:grid; gap:var(--s4);
}
.finding-card.attn { border-left:3px solid var(--attention); }
.finding-card.attn .accent { color:var(--attention); }
.finding-card h3 { line-height:1.3; }
.finding-card .strength-lead { font-size:1.125rem; }
.finding-card .foot-row { display:flex; gap:var(--s3); flex-wrap:wrap; align-items:center; margin:0 -12px; }

.meaning-well { background:var(--sand); border-radius:var(--r-chip); padding:var(--s4) var(--s5); display:grid; gap:var(--s3); }
.meaning-well .pair { display:flex; gap:var(--s3); align-items:flex-start; }
.meaning-well .glyph { flex:0 0 20px; width:20px; height:20px; color:var(--primary); margin-top:3px; }

.secure-panel { background:var(--secure-tint); border-radius:var(--r-card); padding:var(--s5); display:grid; gap:var(--s4); }
.secure-list { list-style:none; padding:0; display:grid; gap:var(--s3); grid-template-columns:1fr; }
@media (min-width:768px) { .secure-list { grid-template-columns:1fr 1fr; } }
.secure-list li { display:flex; gap:var(--s3); align-items:flex-start; }
.secure-list .tick { flex:0 0 18px; width:18px; height:18px; color:var(--secure); margin-top:4px; }

.dev-card {
  background:var(--dev-tint); border:1.5px dashed var(--dev-border); border-radius:var(--r-chip);
  padding:var(--s4) var(--s5); display:grid; gap:var(--s2);
}
/* her heading colour, not the de-emphasis grey — the card's tint and its label carry "in development" */
.dev-card h3, .dev-card h4 { color:var(--brand-navy); font-size:1.0625rem; font-weight:600; margin:0; }
.dev-card p { color:var(--dev); font-size:0.9375rem; }

.candour-card {
  background:var(--surface); border-left:3px solid var(--primary); border-radius:var(--r-chip);
  padding:var(--s5); box-shadow:var(--shadow-1); display:grid; gap:var(--s3);
}

.start-card { background:var(--primary-tint); border-radius:var(--r-card); padding:var(--s6); display:grid; gap:var(--s4); }
.start-card .eyebrow { color:var(--primary-deep); margin:0; }
.start-card .goal { font-size:1.125rem; }

.evidence-details { border:1px solid var(--border-soft); border-radius:var(--r-chip); background:var(--surface); }
.evidence-details > summary {
  cursor:pointer; padding:var(--s4) var(--s5); font-weight:600; color:var(--primary);
  list-style:none; display:flex; align-items:center; gap:var(--s2); min-height:44px;
}
.evidence-details > summary::-webkit-details-marker { display:none; }
.evidence-details > summary::before { content:"▸"; transition:transform var(--t-fast) var(--ease); }
.evidence-details[open] > summary::before { transform:rotate(90deg); }
.evidence-details .ev-body { padding:0 var(--s5) var(--s5); display:grid; gap:var(--s4); }
.table-scroll { overflow-x:auto; }
.ev-table { border-collapse:collapse; width:100%; font-size:0.875rem; min-width:560px; }
.ev-table th, .ev-table td { text-align:left; padding:8px 12px; border-bottom:1px solid var(--border-soft); vertical-align:top; }
.ev-table th { color:var(--ink-soft); font-weight:600; }

.mini-evidence { display:grid; gap:var(--s3); padding-top:var(--s2); }
.mini-evidence .ev-item { border-top:1px solid var(--border-soft); padding-top:var(--s3); font-size:0.875rem; color:var(--ink-soft); }
.mini-evidence .ev-item .q { color:var(--ink); }

/* ---------- authored data tables (timetable, results) ---------- */
.ba-table { border-collapse:collapse; background:var(--surface); width:100%; max-width:440px; margin:0 auto; }
.ba-table caption { font-weight:600; padding-bottom:var(--s2); text-align:left; }
.ba-table th, .ba-table td { border:1px solid var(--border-soft); padding:10px 14px; text-align:left; font-size:1rem; }
.ba-table th { background:var(--sand); font-weight:600; }
.ba-table td.n { text-align:right; }
.ba-table tr.hl td { background:var(--primary-tint); }
.ba-table tr.hl td:first-child { border-left:3px solid var(--primary); }

/* ---------- player ----------
   The one-question-per-screen frame (DESIGN §4.3): a fixed vertical sandwich that
   fills the DYNAMIC viewport. The PAGE never scrolls — only .player-body may, and
   only when a tall visual/response genuinely needs it. Header (progress) and footer
   (Back/Next) are always visible. */
.player {
  height:100vh;   /* fallback for browsers without dvh */
  height:100dvh;  /* dynamic viewport: correct under collapsing mobile URL bars */
  display:flex; flex-direction:column;
  overflow:hidden;
  background:var(--paper);
}
.player-header {
  flex:0 0 auto; min-height:56px; display:flex; align-items:center; gap:var(--s4);
  padding:var(--s2) var(--s4);
  padding-top:calc(var(--s2) + env(safe-area-inset-top));
  padding-left:calc(var(--s4) + env(safe-area-inset-left));
  padding-right:calc(var(--s4) + env(safe-area-inset-right));
  border-bottom:1px solid var(--border-soft); background:var(--paper);
}
.player-header .wordmark { font-size:1rem; }
.progress-group { flex:1; display:grid; gap:4px; min-width:0; }
.progress-count {
  font-size:0.8125rem; font-weight:600; color:var(--ink-soft);
  font-variant-numeric:lining-nums tabular-nums;
}
.progress-count .q-count { white-space:nowrap; }
/* the item's diagnostic family beside the counter ("Question 4 of 43 — Additive"),
   rendered ONLY when the pack's display.show_family_to_student flag is true.
   Calm and secondary to the question: same size, lighter weight. */
.progress-count .q-sep { font-weight:400; }
.progress-count .q-family { font-weight:500; }
/* narrow screens (phones): the family becomes its own smaller line under the counter —
   nothing truncates, and the progress bar keeps its full width */
@media (max-width:639px) {
  .progress-count .q-sep { display:none; }
  .progress-count .q-family { display:block; font-size:0.75rem; line-height:1.4; }
}
.progress {
  height:6px; border-radius:var(--r-pill); background:var(--sand);
  border:1px solid var(--border-soft); overflow:hidden;
}
.progress .fill {
  height:100%; background:var(--primary); border-radius:var(--r-pill);
  transition:width var(--t-screen) var(--ease); width:0%;
}
.player-body {
  flex:1 1 auto; min-height:0;             /* min-height:0 lets THIS region scroll, not the page */
  overflow-y:auto; overflow-x:hidden;
  overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  display:flex; justify-content:center;
  padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right);
}
.qcol {
  width:100%; max-width:var(--w-player);
  /* vertical rhythm breathes with the viewport so a typical question fits a phone screen */
  padding:clamp(12px, 2.2vh, 24px) var(--s4) clamp(14px, 2.6vh, 32px);
  display:flex; flex-direction:column; gap:clamp(12px, 2.2vh, 24px); margin:auto 0;
}
.qcol.fade-in { animation:qin var(--t-screen) var(--ease); }
@keyframes qin { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }

/* Her navigation-only transition screen (Y3 Language Conventions, L04 '02 Build Rules & QA' r28).
   One sentence of hers and one Continue: nothing else may appear here, so there is nothing else to style. */
.y3-transition { justify-content:center; text-align:left; }
.y3-transition-text {
  font-size:clamp(1.25rem, 1.05rem + 1vw, 1.5rem); font-weight:500; line-height:1.5; max-width:46ch; margin:0;
}

.stem { font-size:clamp(1.25rem, 1.05rem + 1vw, 1.5rem); font-weight:500; line-height:1.45; max-width:46ch; }

.visual-card {
  background:var(--surface); border-radius:var(--r-card); padding:var(--s4) var(--s5);
  box-shadow:var(--shadow-1); display:grid; justify-items:center; gap:var(--s3);
  max-width:100%; overflow-x:auto; /* a wide table/visual scrolls inside its card, never the page */
}
/* visuals scale to their column AND to the available height, aspect preserved,
   so a big drawing (Q18 scale, Q8 graph) leaves room for the response below */
.visual-card svg.qsvg { width:100%; max-width:560px; height:auto; max-height:clamp(200px, 42vh, 380px); }
/* Probe data tables (probe-figures.js table type) */
.pf-table { border-collapse:collapse; font-size:1rem; margin:0 auto; }
.pf-table th, .pf-table td { border:1px solid var(--line); padding:6px 14px; text-align:center; color:var(--ink); }
.pf-table th { background:var(--sand); font-weight:600; }
.pf-table tr.pf-hl td { background:rgba(44,110,138,.14); font-weight:600; }

.response-area { display:grid; gap:var(--s3); }
.response-foot { display:flex; gap:var(--s2); margin:0 -12px; }

/* option cards (single select) — one distinct, generously-padded block per option,
   the letter separated from the value as a badge (NAPLAN Online's selectable blocks) */
.opts { display:grid; gap:var(--s3); grid-template-columns:1fr; }
.opt {
  display:flex; align-items:center; gap:var(--s4); text-align:left; width:100%;
  min-height:64px; padding:var(--s4) var(--s5);
  background:var(--surface); border:2px solid var(--border-soft); border-radius:var(--r-chip);
  font-size:1.125rem; color:var(--ink); cursor:pointer;
  transition:background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.opt .opt-value { flex:1; min-width:0; overflow-wrap:anywhere; line-height:1.4; }
.opt .opt-letter {
  flex:0 0 36px; width:36px; height:36px; border-radius:50%;
  border:2px solid var(--border); background:var(--surface);
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:700; font-size:1rem; color:var(--ink-soft);
}
.opt .radio {
  flex:0 0 24px; width:24px; height:24px; border-radius:50%;
  border:2px solid var(--border); background:var(--surface); position:relative;
}
.opt[aria-checked="true"] { background:var(--primary-tint); border-color:var(--primary); }
.opt[aria-checked="true"] .opt-letter { background:var(--primary); border-color:var(--primary); color:var(--surface); }
.opt[aria-checked="true"] .radio { border-color:var(--primary); }
.opt[aria-checked="true"] .radio::after {
  content:""; position:absolute; inset:4px; border-radius:50%; background:var(--primary);
}

/* visual select (figures / models / angles) */
.vopts { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--s3); }
@media (min-width:640px) { .vopts.cols4 { grid-template-columns:repeat(4, minmax(0,1fr)); } }
.vopt {
  display:grid; justify-items:center; gap:var(--s2); padding:var(--s3);
  background:var(--surface); border:2px solid var(--border-soft); border-radius:var(--r-chip);
  cursor:pointer; min-height:44px;
}
.vopt svg { width:100%; max-width:170px; height:auto; }
.vopt .vlabel { font-weight:600; color:var(--ink); }
.vopt[aria-checked="true"] { background:var(--primary-tint); border-color:var(--primary); }
.vopt[aria-checked="true"] .vlabel::after { content:" ●"; color:var(--primary); }

/* numeric entry */
.numeric-wrap { display:flex; align-items:center; gap:var(--s3); flex-wrap:wrap; }
.numeric-input {
  min-width:110px; width:9ch; height:56px; padding:0 var(--s4); text-align:center;
  font-size:1.5rem; font-weight:500; font-variant-numeric:lining-nums tabular-nums;
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--r-input);
  color:var(--ink); font-family:inherit;
}
.numeric-input:focus { border-color:var(--focus); }
.numeric-affix { font-size:1.25rem; color:var(--ink); font-weight:500; }
.keypad { display:none; grid-template-columns:repeat(3, minmax(56px, 64px)); gap:var(--s2); max-width:240px; }
.keypad button {
  min-width:56px; min-height:48px; border-radius:var(--r-input);
  background:var(--surface); border:1.5px solid var(--border); color:var(--ink);
  font-size:1.25rem; font-weight:500; cursor:pointer; font-variant-numeric:lining-nums tabular-nums;
}
.keypad button:active { background:var(--primary-tint); }
@media (pointer:coarse) { .keypad { display:grid; } }

/* interactive map grid (Q33) */
.map-wrap { display:grid; gap:var(--s3); justify-items:center; }
.map-compass { justify-self:end; color:var(--ink-soft); font-weight:600; display:flex; align-items:center; gap:6px; }
.map-grid {
  display:grid; grid-template-columns:repeat(6, minmax(44px, 64px));
  border:2px solid var(--border); background:var(--surface);
}
.map-cell { aspect-ratio:1; border:1px solid var(--border-soft); position:relative; min-width:44px; }
.map-cell .lm-static {
  position:absolute; inset:4px; border-radius:6px; background:var(--sand);
  display:flex; align-items:center; justify-content:center;
  font-size:0.75rem; font-weight:700; color:var(--ink); text-align:center;
}
.map-cell button.lm {
  position:absolute; inset:0; width:100%; height:100%;
  background:transparent; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; padding:2px;
}
.map-cell button.lm .lm-box {
  width:calc(100% - 8px); height:calc(100% - 8px); border-radius:6px;
  background:var(--surface); border:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:0.75rem; font-weight:600; color:var(--ink); text-align:center;
}
.map-cell button.lm[aria-checked="true"] .lm-box {
  background:var(--primary-tint); border:2.5px solid var(--primary);
}
.map-cell button.lm[aria-checked="true"] .lm-box::after { content:" ●"; color:var(--primary); }

/* CSS bar-graph hotspot (Q40) */
.hbar-chart { display:grid; gap:var(--s2); width:100%; max-width:440px; }
.hbar-plot {
  position:relative; height:220px; display:grid; grid-template-columns:repeat(4, 1fr);
  gap:var(--s3); align-items:end; padding:0 var(--s2);
  border-left:2px solid var(--ink); border-bottom:2px solid var(--ink);
  background:repeating-linear-gradient(to top, transparent 0, transparent 21px, var(--border-soft) 21px, var(--border-soft) 22px);
}
.hbar {
  position:relative; height:100%; background:transparent; border:none; cursor:pointer; padding:0;
}
.hbar .bar-fill {
  position:absolute; bottom:0; left:12%; right:12%; height:var(--h);
  background:rgba(44,110,138,.5); border:1.5px solid var(--primary); border-bottom:none;
}
.hbar[aria-checked="true"] .bar-fill { outline:2.5px solid var(--primary); background:rgba(44,110,138,.66); }
.hbar[aria-checked="true"]::after {
  content:"●"; color:var(--primary); position:absolute; top:-22px; left:50%; transform:translateX(-50%);
}
.hbar-labels { display:grid; grid-template-columns:repeat(4, 1fr); gap:var(--s3); padding:0 var(--s2); }
.hbar-labels span { text-align:center; font-size:0.875rem; color:var(--ink); }
.hbar-caption { text-align:center; font-size:0.875rem; color:var(--ink-soft); }

/* in-development (visual or response) */
.dev-visual, .dev-response {
  background:var(--dev-tint); border:1.5px dashed var(--dev-border); border-radius:var(--r-chip);
  padding:var(--s5); display:grid; gap:var(--s3); justify-items:start;
}
.dev-visual p, .dev-response p { color:var(--dev); }

/* player footer — sticky bottom region of the flex frame: Back/Next always visible,
   thumb-reachable, padded for the home-indicator safe area */
.player-footer {
  flex:0 0 auto; min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:var(--s3);
  padding:var(--s2) var(--s4);
  padding-bottom:calc(var(--s2) + env(safe-area-inset-bottom));
  padding-left:calc(var(--s4) + env(safe-area-inset-left));
  padding-right:calc(var(--s4) + env(safe-area-inset-right));
  border-top:1px solid var(--border-soft); background:var(--paper);
}
.player-footer .btn-primary { min-width:140px; min-height:56px; }
.answer-status { flex:1; text-align:center; font-size:0.875rem; color:var(--ink-soft); min-width:0; }
.answer-status.is-answered { color:var(--primary-deep); font-weight:600; }

/* ── Year 3 player tools: flag-for-review + the review summary ──────────────────────────────────────
   Her R05 'Reading Player Rules' r8 (flag/unflag and return before final submission), r9 (a review
   summary of answered / unanswered / flagged, never correctness), r11 (a review opportunity before final
   submission) and r12 (an explicit Finish that warns while anything is outstanding).
   NOTHING here carries meaning by colour alone: every state is a word plus a glyph plus an ARIA state. */
.player-tools { flex:1; display:flex; align-items:center; justify-content:center; gap:var(--s2); min-width:0; flex-wrap:wrap; }
.btn-flag, .btn-review {
  display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:8px 12px;
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--r-input);
  font-family:inherit; font-size:0.9375rem; font-weight:600; color:var(--ink-soft); cursor:pointer;
}
.btn-flag:hover, .btn-review:hover { border-color:var(--primary); color:var(--primary-deep); }
.btn-flag:focus-visible, .btn-review:focus-visible { outline:var(--focus-w) solid var(--focus); outline-offset:var(--focus-offset); }
.btn-flag[aria-pressed="true"] { border-color:var(--primary); color:var(--primary-deep); border-width:2px; }
.btn-flag .flag-ico, .y3-review-glyph { display:inline-flex; }

.y3-review-backdrop {
  position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center;
  padding:var(--s4); background:rgba(23,23,23,0.45);
}
.y3-review-backdrop[hidden] { display:none; }
.y3-review {
  width:100%; max-width:520px; max-height:min(80vh, 640px); overflow:auto;
  display:grid; gap:var(--s3); padding:var(--s5);
  background:var(--paper); border-radius:var(--r-card); box-shadow:0 18px 48px rgba(23,23,23,0.28);
}
.y3-review:focus-visible { outline:var(--focus-w) solid var(--focus); outline-offset:var(--focus-offset); }
.y3-review-title { margin:0; font-size:1.25rem; }
.y3-review-warn { margin:0; padding:var(--s3); border:1.5px solid var(--border); border-radius:var(--r-input); background:var(--surface); font-size:0.9375rem; }
.y3-review-warn[hidden] { display:none; }
.y3-review-counts { margin:0; display:flex; flex-wrap:wrap; gap:var(--s3); font-size:0.9375rem; color:var(--ink-soft); }
.y3-review-count b { color:var(--ink); font-variant-numeric:lining-nums tabular-nums; }
.y3-review-list { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.y3-review-row {
  width:100%; display:flex; align-items:center; gap:var(--s3); min-height:44px; padding:8px 12px;
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--r-input);
  font-family:inherit; font-size:0.9375rem; color:var(--ink); text-align:left; cursor:pointer;
}
.y3-review-row:hover { border-color:var(--primary); }
.y3-review-row:focus-visible { outline:var(--focus-w) solid var(--focus); outline-offset:var(--focus-offset); }
.y3-review-row[data-flagged="1"] { border-width:2px; }
.y3-review-n { min-width:2ch; font-weight:700; font-variant-numeric:lining-nums tabular-nums; }
.y3-review-state, .y3-review-flag { display:inline-flex; align-items:center; gap:5px; }
.y3-review-state[data-state="unanswered"] { color:var(--ink-soft); }
.y3-review-flag { margin-left:auto; font-weight:600; }
.y3-review-actions { display:flex; gap:var(--s3); justify-content:flex-end; flex-wrap:wrap; }
@media (max-width:479px) {
  .player-tools { gap:6px; }
  .btn-flag, .btn-review { padding:8px; font-size:0.875rem; }
  .y3-review { padding:var(--s4); }
  .y3-review-actions .btn { flex:1 1 auto; }
}

/* entry */
.entry-page { min-height:100vh; min-height:100dvh; display:grid; grid-template-rows:auto 1fr auto; }
.entry-main { display:flex; align-items:center; justify-content:center; padding:var(--s6) var(--s4); }
.entry-card { width:100%; max-width:480px; display:grid; gap:var(--s5); }
.entry-card .card { display:grid; gap:var(--s4); }

/* handoff */
.handoff { display:grid; gap:var(--s5); justify-items:center; text-align:center; padding:var(--s7) var(--s4); margin:auto; max-width:480px; }

/* about */
.about-page { max-width:var(--w-report); margin:0 auto; padding:var(--s7) var(--s4); display:grid; gap:var(--s6); }
.about-page .prose { display:grid; gap:var(--s4); color:var(--ink); }
.about-page .prose p { color:var(--ink-soft); font-size:1.0625rem; }

/* ---------- responsive ---------- */
@media (max-width:767px) {
  .card { padding:var(--s4); }
  .report-page { padding:var(--s6) var(--s4) var(--s7); }
}

/* small phones (≤480): tighter option blocks — still ≥48px tap height,
   letter badge still clearly separated from the value */
@media (max-width:480px) {
  .opts { gap:10px; }
  .opt { min-height:56px; padding:12px var(--s4); gap:var(--s3); font-size:1.0625rem; }
  .opt .opt-letter { flex:0 0 32px; width:32px; height:32px; font-size:0.9375rem; }
  .vopts { gap:10px; }
  .ba-table th, .ba-table td { padding:8px 10px; font-size:0.9375rem; }
  .visual-card { padding:var(--s3) var(--s4); }
  .numeric-input { height:52px; font-size:1.375rem; }
}
@media (max-width:400px) {
  .opt { min-height:48px; padding:10px 14px; font-size:1rem; }
  .stem { font-size:1.125rem; }
  .player-footer .btn-primary { min-width:118px; }
  .answer-status { font-size:0.75rem; }
  .player-header .wordmark span { display:none; }
}

/* short portrait phones (e.g. iPhone SE 667): shave vertical fat so a typical
   MC question (progress + stem + 4 options + nav) fits with NO scrolling */
@media (max-height:720px) {
  .visual-card svg.qsvg { max-height:min(36vh, 300px); }
  .keypad { gap:6px; }
  .keypad button { min-height:44px; }
  .opt { min-height:52px; }
}

/* short viewports (phone landscape): header collapses, everything compact,
   the body scrolls if the visual needs it — header/footer never move */
@media (max-height:520px) {
  .player-header { min-height:44px; padding-top:max(var(--s1), env(safe-area-inset-top)); padding-bottom:var(--s1); }
  .player-header .wordmark span { display:none; }
  .player-footer { min-height:52px; padding-top:6px; padding-bottom:calc(6px + env(safe-area-inset-bottom)); }
  .player-footer .btn-primary { min-height:48px; min-width:120px; }
  .qcol { gap:var(--s3); padding:var(--s3) var(--s4); }
  .visual-card svg.qsvg { max-height:200px; } /* the design floor — below this the body scrolls instead */
  .opt { min-height:48px; padding:10px var(--s4); }
  .opts { gap:10px; }
}

/* ---------- skip link ---------- */
.skip-link {
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--surface); color:var(--primary); padding:12px 16px; border-radius:0 0 8px 0; font-weight:600;
}
.skip-link:focus { left:0; }

/* ---------- responsive nav ---------- */
.menu-toggle {
  display:none; margin-left:auto; min-height:44px; padding:8px 16px;
  background:transparent; border:1.5px solid var(--border); border-radius:var(--r-input);
  color:var(--ink); font-weight:600; font-size:0.9375rem; cursor:pointer;
}
/* Her §6.2: "Every interactive target must be at least 44 x 44px." This rule used to set 40px, and
   because it is a single class declared AFTER .btn-tertiary it won the cascade — so the header's
   "Log out" button (class="btn-tertiary btn-nav") rendered 4px under her floor. Her three browser
   sweeps all reported their 44px check green: that button only exists when a signed-in person is on a
   PUBLIC page, and no sweep visits that combination. It is her token now, so the floor cannot be
   undercut by a compact header variant again. */
.btn-nav { min-height:var(--target-min); padding:8px 16px; font-size:0.9375rem; }
.site-nav a.nav-link.active { color:var(--primary-deep); font-weight:600; }
@media (max-width:860px) {
  .menu-toggle { display:inline-flex; }
  .site-nav { display:none; }
  .site-header.menu-open .site-nav {
    display:flex; flex-direction:column; align-items:stretch; width:100%; margin-left:0;
    padding:var(--s3) 0; gap:var(--s1);
  }
  .site-header.menu-open .site-nav a.nav-link { padding:12px; }
  .site-header.menu-open .btn-nav { margin-top:var(--s2); }
}

/* ---------- footer nav ---------- */
.foot-nav { display:flex; flex-wrap:wrap; gap:var(--s2) var(--s4); }
.foot-nav a { color:var(--paper); opacity:.85; text-decoration:none; font-size:0.9375rem; min-height:44px; display:inline-flex; align-items:center; }
.foot-nav a:hover { opacity:1; text-decoration:underline; }

/* ---------- plain tick lists / quotes ---------- */
.plain-list { list-style:none; padding:0; display:grid; gap:var(--s3); }
.plain-list li { display:flex; gap:var(--s3); align-items:flex-start; }
.plain-list .tick { flex:0 0 18px; width:18px; height:18px; color:var(--secure); margin-top:4px; }
.plain-list.small li { font-size:0.9375rem; }

/* ---------- login/boot ---------- */
.boot-state { min-height:70vh; min-height:70dvh; display:grid; place-content:center; gap:var(--s4); text-align:center; padding:var(--s5); }
.boot-state .btn { justify-self:center; }
.boot-dot { width:16px; height:16px; border-radius:50%; background:var(--primary); margin:0 auto; animation:bootpulse 1.2s ease-in-out infinite; }
@keyframes bootpulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }

/* ---------- dashboard ---------- */
.dash-head { display:flex; align-items:flex-start; justify-content:space-between; gap:var(--s4); flex-wrap:wrap; margin-bottom:var(--s5); }
.kpi-grid { display:grid; gap:var(--s4); grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); margin-bottom:var(--s5); }
.kpi { background:var(--surface); border-radius:var(--r-chip); padding:var(--s4) var(--s5); box-shadow:var(--shadow-1); display:grid; gap:2px; }
.kpi-label { font-size:0.8125rem; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; color:var(--ink-soft); }
.kpi-value { font-size:2rem; font-weight:700; line-height:1.15; color:var(--ink); }
.dash-grid { display:grid; gap:var(--s5); grid-template-columns:1fr; }
@media (min-width:1024px) { .dash-grid { grid-template-columns:1fr 1fr; } }
.dash-card { display:grid; gap:var(--s3); align-content:start; }
.dash-card h3 { font-size:1.125rem; margin:0; }
.dash-card .ev-table { min-width:0; }
.dash-card .ev-table td, .dash-card .ev-table th { padding:8px 10px; }
.chart-wrap { overflow-x:auto; }
.chart-svg { width:100%; min-width:420px; height:auto; }
.chart-svg circle[tabindex] { cursor:pointer; }
.chart-table summary { cursor:pointer; color:var(--primary); font-size:0.875rem; font-weight:600; min-height:44px; display:inline-flex; align-items:center; }
.chart-table summary::-webkit-details-marker { display:none; }

.hrows { display:grid; gap:var(--s2); }
.hrow { display:grid; grid-template-columns:minmax(110px, 170px) 1fr 52px; gap:var(--s3); align-items:center; border-radius:6px; padding:2px 4px; }
.hrow:hover { background:var(--primary-tint); }
/* Her broad-area names were truncated to fit: "Spatial Reasoning & Location" needs 178px and was
   given 153px, so a reader saw "Spatial Reasoning & Loc…". The full name was only recoverable by
   hovering, and her Board 06 is explicit that content "must remain readable without interaction".
   These are HER authored area names; the row can get taller instead. */
.hlabel { font-size:0.8125rem; color:var(--ink); overflow-wrap:anywhere; hyphens:auto; }
.htrack { position:relative; height:14px; background:var(--sand); border-radius:var(--r-pill); overflow:hidden; }
.hfill { position:absolute; inset:2px auto 2px 2px; background:var(--primary); border-radius:var(--r-pill); min-width:4px; }
.hval { font-size:0.8125rem; color:var(--ink-soft); text-align:right; }

.pill { display:inline-block; padding:3px 10px; border-radius:var(--r-pill); font-size:0.75rem; font-weight:600; }
.pill-secure { color:var(--secure); background:var(--secure-tint); }
.pill-primary { color:var(--primary-deep); background:var(--primary-tint); }
.pill-dev { color:var(--dev); background:var(--dev-tint); }

.tip {
  position:absolute; z-index:60; background:var(--ink); color:var(--paper);
  font-size:0.8125rem; padding:6px 10px; border-radius:8px; box-shadow:var(--shadow-2);
  pointer-events:none; max-width:260px;
}

/* ---------- family dashboard ---------- */
.family-grid { display:grid; gap:var(--s5); grid-template-columns:1fr; align-items:start; }
@media (min-width:900px) { .family-grid { grid-template-columns:repeat(2, minmax(0,1fr)); } }
.family-section { display:grid; gap:var(--s4); margin-top:var(--s6); }
.family-section:first-of-type { margin-top:0; }
.family-section > h2 { font-size:1.375rem; margin:0; }
.family-empty { background:var(--surface); border:1.5px dashed var(--border); border-radius:var(--r-card); padding:var(--s5); color:var(--ink-soft); }
.child-card { display:grid; gap:var(--s4); align-content:start; }
.child-card .child-head { display:flex; align-items:center; justify-content:space-between; gap:var(--s3); flex-wrap:wrap; }
.child-card h3 { margin:0; }
.child-actions { display:flex; gap:var(--s3); align-items:center; flex-wrap:wrap; }
.secure-well, .attn-well, .start-well { border-radius:var(--r-chip); padding:var(--s4) var(--s5); display:grid; gap:var(--s2); }
.secure-well { background:var(--secure-tint); }
.attn-well { background:var(--attention-tint); }
.start-well { background:var(--primary-tint); }
.secure-well p, .attn-well p, .start-well p { color:var(--ink); }
.secure-well p.t-label { color:var(--secure); }
.attn-well p.t-label { color:var(--attention); }
.start-well p.t-label { color:var(--primary-deep); }

/* System-fault surfaces — calm grey, framed as our fault, never alarming the parent about the child. */
.fault-well { background:var(--dev-tint); border:1.5px solid var(--dev-border); border-radius:var(--r-card); padding:var(--s5); display:grid; gap:var(--s3); }
.fault-well p { color:var(--ink); }
.fault-well p.t-label { color:var(--dev); }
/* Admin anomaly banner — noticeable ochre (attention), not red-alarm; it's a fault to look into.
   HER STOP RULE RESOLVED HERE: her Board 02 says headings are Deep Navy, and this heading was painted
   in her warning ochre, which contradicts it. Her other rule — "never colour alone, always words
   and/or an icon too" — says where the signal belongs: a status chip carrying the WORD. So the heading
   returns to Deep Navy and the warning is carried by the chip, the amber leading edge and the tint. */
.anomaly-alert { border-left:4px solid var(--attention); background:var(--attention-tint); }
.anomaly-alert .t-caption { color:var(--ink-soft); }

/* ============================================================================
   Marketing — Tracey's wireframe (2026-08-20). Sections use the existing
   .mk-section / .mk-inner / .narrow scaffold; these rules style her components.
   ============================================================================ */
/* THE alignment spine for centred sections (defined once, applied via `.center`). A flex column with
   align-items:center forces EVERY child onto ONE centre axis regardless of its own width/max-width —
   so a max-width child can never drift left of the axis. Uniform `gap` (no per-element margins) gives
   one vertical rhythm, and the content width is capped so short sections don't swim at 1920. */
.mk-inner.center {
  text-align:center; display:flex; flex-direction:column; align-items:center; gap:var(--s4);
  max-width:min(680px, 100%);
}
.mk-inner.center > * { margin:0; max-width:100%; }
.cta-row.center { justify-content:center; }
.nav-login { align-self:center; font-weight:600; }

/* Hero (no CTA — her instruction). */
/* Her §12 Hero: "White background; large headline; one strong education/learning image where useful;
   no floating decorative slogan over the image." This rule used to paint the hero
   `linear-gradient(180deg,var(--primary-tint),transparent)` — a Soft Blue wash, which is neither her
   white nor a treatment she authorises for a hero. Her §4.2 is "DEFAULT PAGE BACKGROUND = #FFFFFF",
   her §13.2 is "Do not add tint panels to solve weak hierarchy before fixing spacing and typography",
   and her v05 §9 restates it: "Soft tints are restricted support surfaces, not the application
   structure." Her system does give a tint a home — §12's "Principle / emphasis panel" — and that is
   where .principle-lead already uses it. Neither browser sweep could see this: both read
   getComputedStyle(document.body).backgroundColor, and the wash was on the section.
   Her spacing is unchanged: s8 above, s6 below, which is her "Hero / major transition 80-96px". */
.hero-lite { padding:var(--s8) 0 var(--s6); background:var(--page-bg); }
.hero-lite h1 { font-size:clamp(1.9rem,4.5vw,2.9rem); line-height:1.12; text-wrap:balance; }
.hero-lite .lead { font-size:1.25rem; color:var(--ink); margin-top:var(--s4); max-width:60ch; }
.hero-lite .lead-tag { font-weight:600; }
.hero-lite p { margin-top:var(--s3); max-width:62ch; }

/* Differentiator band — the key visual message. */
.band-diff { background:var(--ink); color:var(--paper); }
.band-diff h2 { color:var(--paper); font-size:clamp(1.6rem,3.5vw,2.3rem); text-wrap:balance; }
.band-diff .diff-lines { margin-top:var(--s5); display:grid; gap:var(--s4); }
.band-diff .diff-lines p { font-size:1.2rem; color:var(--paper); opacity:.94; max-width:64ch; }
.band-diff .diff-lines p:last-child { color:var(--secure-mid); font-weight:600; opacity:1; }

/* Conditional pathway visual. Each step+arrow is one non-breaking unit (.pw-item) so an arrow never
   wraps to the start of a line; the row wraps between units. */
.pathway { display:flex; flex-wrap:wrap; align-items:center; gap:var(--s2); margin:var(--s5) 0 0; }
.pw-item { display:inline-flex; align-items:center; gap:var(--s2); }
.pw-step { display:flex; align-items:center; justify-content:center; text-align:center; padding:var(--s3) var(--s4);
  background:var(--surface); border:1.5px solid var(--primary); border-radius:var(--r-chip); font-weight:600; color:var(--primary-deep); }
.pw-step.pw-cond { border-style:dashed; border-color:var(--attention-mid); color:var(--attention); background:var(--attention-tint); }
.pw-arrow { display:flex; align-items:center; color:var(--ink-faint); font-size:1.2rem; }

/* Before/after comparison (See the difference). */
.compare { display:grid; grid-template-columns:1fr 1.4fr; gap:var(--s4); margin-top:var(--s5); align-items:stretch; }
.cmp-col { border-radius:var(--r-card); padding:var(--s5); }
/* the typical-result card holds its column height and centres its short content — no floating gap. */
.cmp-typical { background:var(--dev-tint); border:1.5px solid var(--dev-border); display:flex; flex-direction:column; justify-content:center; }
.cmp-beyond { background:var(--surface); box-shadow:var(--shadow-2); }
.cmp-label { font-size:.8125rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-faint); }
.cmp-verdict { margin-top:var(--s3); font-size:1.15rem; font-weight:600; color:var(--dev); }
.cmp-rows { list-style:none; padding:0; margin:var(--s3) 0 0; display:grid; gap:var(--s2); }
.cmp-rows li { display:flex; justify-content:space-between; align-items:center; gap:var(--s3); padding:var(--s3) 0; border-bottom:1px solid var(--border-soft); }
.cmp-rows li:last-child { border-bottom:none; }
.cmp-skill { font-weight:500; }
.cmp-state { flex:0 0 auto; font-size:.8125rem; font-weight:700; padding:3px 10px; border-radius:var(--r-pill); white-space:nowrap; }
.cmp-state.st-secure { color:var(--secure); background:var(--secure-tint); }
.cmp-state.st-diff { color:var(--attention); background:var(--attention-tint); }
.cmp-conclusion { margin-top:var(--s5); font-size:1.15rem; font-weight:500; text-align:center; max-width:70ch; margin-inline:auto; }

/* Families / Schools branch. */
.branch-h { text-align:center; }
.branch-grid { display:grid; grid-template-columns:1fr 1fr; gap:var(--s5); margin-top:var(--s6); }
.branch-card { background:var(--surface); border-radius:var(--r-card); padding:var(--s6); box-shadow:var(--shadow-1); display:grid; gap:var(--s3); align-content:start; }
.branch-card .branch-tag { font-weight:600; font-size:1.15rem; color:var(--primary-deep); }
.branch-card .btn { justify-self:start; margin-top:var(--s2); }

/* Starting with NAPLAN. Intro is >= the domains line (never smaller); years is the emphasis. */
.naplan-intro { font-size:1.25rem; color:var(--ink-soft); }
.naplan-years { font-size:1.5rem; font-weight:700; color:var(--primary-deep); }
.naplan-domains { font-size:1.25rem; color:var(--ink); }
.principle-lead { font-size:1.4rem; font-weight:600; color:var(--primary-deep); text-wrap:balance; margin-top:var(--s3); }

/* Accordions (closed by default). */
.ax-list { display:grid; gap:var(--s3); margin-top:var(--s5); }
.ax-item { background:var(--surface); border:1px solid var(--border-soft); border-radius:var(--r-chip); overflow:hidden; }
.ax-item summary { cursor:pointer; padding:var(--s4) var(--s5); font-weight:600; font-size:1.15rem; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.ax-item summary::after { content:"+"; color:var(--primary); font-size:1.4rem; font-weight:400; }
.ax-item[open] summary::after { content:"–"; }
.ax-body { padding:0 var(--s5) var(--s5); display:grid; gap:var(--s3); }
.ax-included { color:var(--ink-soft); }

/* Report-contents bullet lists. */
.report-bullets { list-style:none; padding:0; margin:var(--s4) 0 0; display:grid; gap:var(--s3); }
.report-bullets li { display:flex; gap:var(--s3); align-items:flex-start; }
.report-bullets .tick { flex:0 0 18px; width:18px; height:18px; color:var(--secure); margin-top:3px; }

/* Selection grid (4×2). Fits the container down to phones (no forced-scroll clipping of column 2). */
.grid-scroll { overflow-x:auto; margin-top:var(--s5); }
.select-grid { border-collapse:separate; border-spacing:8px; width:100%; min-width:0; }
@media (max-width:520px) {
  .select-grid { border-spacing:5px; }
  .select-grid th[scope="col"] { font-size:.8rem; }
  .select-grid th[scope="row"] { font-size:.85rem; padding-right:var(--s2); }
  .gc { padding:var(--s3) 4px; }
  .gc-select { font-size:.8rem; gap:4px; min-height:40px; }
  .gc-soon { font-size:.8rem; }
}
.select-grid th[scope="col"] { text-align:center; font-size:.9375rem; color:var(--ink-soft); padding-bottom:var(--s2); }
.select-grid th[scope="row"] { text-align:left; font-weight:700; white-space:nowrap; padding-right:var(--s3); }
.gc { text-align:center; border-radius:var(--r-chip); padding:var(--s4) var(--s3); }
.gc-soon { background:var(--dev-tint); color:var(--ink-faint); border:1.5px dashed var(--dev-border); }
.gc-active { background:var(--primary-tint); border:2px solid var(--primary); }
.gc-select { display:flex; align-items:center; justify-content:center; gap:var(--s2); cursor:pointer; font-weight:600; color:var(--primary-deep); min-height:44px; }
.gc-select input { width:20px; height:20px; accent-color:var(--primary); }

/* Selection summary + buy. */
.selection-panel { margin-top:var(--s6); background:var(--surface); border-radius:var(--r-card); padding:var(--s5); box-shadow:var(--shadow-1); }
.selection-panel h3 { margin-bottom:var(--s3); }
.sel-count { font-weight:700; font-size:1.15rem; }
.sel-lines { list-style:none; padding:0; margin:var(--s2) 0; display:grid; gap:var(--s1); color:var(--ink-soft); }
.sel-total { font-weight:700; font-size:1.25rem; margin-top:var(--s2); }
.selection-panel .btn { margin-top:var(--s4); }
.tbc { color:var(--attention); font-weight:600; }
.classes-block { margin-top:var(--s5); display:grid; gap:var(--s3); }
.classes-input { display:inline-flex; align-items:center; gap:var(--s2); font-weight:600; }
.classes-input input { width:80px; padding:var(--s2) var(--s3); border:1.5px solid var(--border); border-radius:var(--r-input); font:inherit; }
.pricing-block { background:var(--sand); border-radius:var(--r-chip); padding:var(--s4) var(--s5); }

/* Numbered "what happens after you buy" + login prompt. */
.numbered { margin:var(--s4) 0 0; padding-left:1.4rem; display:grid; gap:var(--s3); }
.login-prompt { margin-top:var(--s5); font-weight:500; }

/* How-it-works pieces. */
.example-well { background:var(--sand); border-radius:var(--r-card); padding:var(--s5); margin-top:var(--s5); display:grid; gap:var(--s3); }
.dash-list { margin:0; padding-left:1.3rem; display:grid; gap:var(--s2); }
.evidence-flow { margin-top:var(--s5); background:var(--surface); border-radius:var(--r-card); padding:var(--s5); box-shadow:var(--shadow-1); display:grid; gap:var(--s4); }
.ef-top { display:flex; flex-wrap:wrap; align-items:center; gap:var(--s3); }
.ef-node { padding:var(--s3) var(--s4); background:var(--primary-tint); border-radius:var(--r-chip); font-weight:600; color:var(--primary-deep); }
.ef-q { font-weight:700; font-size:1.15rem; }
.ef-branches { display:grid; gap:var(--s3); grid-template-columns:1fr 1fr; }
.ef-yes { padding:var(--s3) var(--s4); background:var(--secure-tint); color:var(--secure); border-radius:var(--r-chip); font-weight:600; }
.ef-no { padding:var(--s3) var(--s4); background:var(--attention-tint); color:var(--attention); border-radius:var(--r-chip); font-weight:600; }
.how-branch { display:grid; grid-template-columns:1fr 1fr; gap:var(--s6); margin-top:var(--s5); }
.how-branch-col { display:grid; gap:var(--s4); align-content:start; }
.how-steps { display:grid; gap:var(--s5); margin-top:var(--s5); }
.how-step { display:grid; gap:var(--s2); }
.how-step h4 { font-size:1.15rem; }

/* Schools — teaching priority, class groups. */
.teach-priority { margin-top:var(--s4); background:var(--primary-tint); border-radius:var(--r-chip); padding:var(--s4) var(--s5); }
.teach-priority .t-label { color:var(--primary-deep); }
.example-note { margin-top:var(--s3); font-style:italic; }
.class-groups { margin-top:var(--s5); background:var(--surface); border-radius:var(--r-card); box-shadow:var(--shadow-1); padding:var(--s5); }
.cg-head { font-weight:700; font-size:1.15rem; margin-bottom:var(--s3); }
.cg-row { display:flex; justify-content:space-between; align-items:center; gap:var(--s3); padding:var(--s3) 0; border-bottom:1px solid var(--border-soft); }
.cg-row:last-child { border-bottom:none; }
.cg-count { flex:0 0 auto; font-weight:700; color:var(--primary-deep); background:var(--primary-tint); padding:2px 10px; border-radius:var(--r-pill); }
.move-fromto { margin-top:var(--s5); display:grid; gap:var(--s2); }
.mf-label { font-weight:700; color:var(--ink-faint); }
.enquiry-form { margin-top:var(--s5); display:grid; gap:var(--s4); max-width:520px; }

/* About — founder + photo slot. */
.founder-about { display:grid; grid-template-columns:200px 1fr; gap:var(--s6); margin-top:var(--s5); align-items:start; }
.founder-photo { aspect-ratio:3/4; background:var(--sand); border:1.5px dashed var(--border); border-radius:var(--r-card); display:flex; align-items:center; justify-content:center; color:var(--ink-faint); font-weight:600; }
.founder-about-text { display:grid; gap:var(--s3); }
.founder-question { font-size:1.25rem; font-weight:600; color:var(--primary-deep); font-style:italic; text-wrap:balance; }

@media (max-width:720px) {
  .compare, .branch-grid, .how-branch, .ef-branches { grid-template-columns:1fr; }
  .founder-about { grid-template-columns:1fr; }
  .founder-photo { max-width:220px; }
}

/* Checkout + accounts + school dashboard. */
.seg { display:flex; gap:var(--s2); background:var(--sand); border-radius:var(--r-chip); padding:4px; }
.seg-btn { flex:1; padding:var(--s3); border:none; background:transparent; border-radius:var(--r-input); font-weight:600; color:var(--ink-soft); cursor:pointer; min-height:44px; }
.seg-btn.active { background:var(--surface); color:var(--primary-deep); box-shadow:var(--shadow-1); }
.test-banner { background:var(--attention-tint); color:var(--attention); border-radius:var(--r-chip); padding:var(--s3) var(--s4); font-weight:600; margin:var(--s4) 0; }
.child-link-row { display:flex; justify-content:space-between; align-items:center; gap:var(--s3); padding:var(--s3) 0; border-bottom:1px solid var(--border-soft); }
.child-link-row:last-child { border-bottom:none; }
.class-card { display:grid; gap:var(--s3); align-content:start; }
.student-list { display:grid; gap:var(--s1); }
.student-row { display:flex; align-items:center; gap:var(--s3); padding:var(--s2) 0; border-bottom:1px solid var(--border-soft); }
.student-row:last-child { border-bottom:none; }
.student-name { flex:1; font-weight:500; }
.field textarea.input { resize:vertical; font:inherit; width:100%; }

/* ---------- print (parents print marketing pages AND reports) ----------
   Browsers often drop background colours in print. Diagnostic colour carries meaning, so force it to
   print there; decorative marketing bands/buttons degrade to guaranteed-readable dark-on-light. */
@media print {
  .lz, .cmp-state, .pill, .secure-panel, .candour-card, .meaning-well, .start-card,
  .anomaly-alert, .snapshot-row, .teach-priority, .fault-well, .selection-panel {
    -webkit-print-color-adjust:exact; print-color-adjust:exact;
  }
  .band-diff { background:#fff !important; color:var(--ink) !important; }
  .band-diff h2, .band-diff .diff-lines p { color:var(--ink) !important; }
  .band-diff .diff-lines p:last-child { color:var(--secure) !important; }
  .hero-lite { background:#fff !important; }
  /* both buttons of a CTA pair must read as buttons even when backgrounds don't print */
  .btn, .btn-primary, .btn-secondary { background:#fff !important; color:var(--ink) !important; border:1.5px solid var(--ink) !important; }
  .menu-toggle, .skip-link { display:none !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
  .qcol.fade-in { animation:none; }
  .boot-dot { animation:none; }
}

/* ============================ Teacher dashboard (FINAL build) ============================ */
.dash-head-actions { display:flex; align-items:center; gap:var(--s3); }
.td-tabs { display:flex; gap:var(--s2); border-bottom:1px solid var(--line); margin-bottom:var(--s5); flex-wrap:wrap; }
.td-tab { appearance:none; background:none; border:none; border-bottom:2px solid transparent; padding:var(--s3) var(--s4); font:inherit; font-weight:600; color:var(--ink-faint); cursor:pointer; margin-bottom:-1px; }
.td-tab:hover { color:var(--ink); }
.td-tab[aria-selected="true"] { color:var(--primary-deep); border-bottom-color:var(--primary); }
.td-q { font-size:1.05rem; color:var(--ink); font-weight:600; margin-bottom:var(--s4); }
.td-table { width:100%; border-collapse:collapse; background:var(--surface); border-radius:var(--r-card); overflow:hidden; box-shadow:var(--shadow-1); }
.td-table th, .td-table td { text-align:left; padding:var(--s3) var(--s4); border-bottom:1px solid var(--line); }
.td-table th { font-size:0.8rem; letter-spacing:0.02em; text-transform:uppercase; color:var(--ink-faint); background:var(--sand); }
.td-table td.num, .td-table th.num { text-align:right; font-variant-numeric:tabular-nums; }
.td-table tbody tr:last-child td { border-bottom:none; }
.td-row { cursor:pointer; }
.td-row:hover td { background:var(--primary-tint); }
.td-groups { display:grid; grid-template-columns:minmax(200px,260px) 1fr; gap:var(--s5); align-items:start; }
@media (max-width:768px) { .td-groups { grid-template-columns:1fr; } }
.td-grouplist { display:flex; flex-direction:column; gap:var(--s1); }
.td-glink { display:flex; justify-content:space-between; align-items:center; gap:var(--s3); text-align:left; appearance:none; background:none; border:1px solid transparent; border-radius:var(--r-pill); padding:var(--s3) var(--s4); font:inherit; color:var(--ink-soft); cursor:pointer; }
.td-glink:hover { background:var(--sand); }
.td-glink.on { background:var(--primary-tint); color:var(--primary-deep); font-weight:600; }
.td-count { font-variant-numeric:tabular-nums; font-weight:700; color:var(--primary-deep); background:var(--surface); border-radius:var(--r-pill); padding:1px 9px; font-size:0.8rem; }
.td-groupdetail h2, .td-report h2 { margin-bottom:var(--s3); color:var(--ink); }
.td-students-line, .td-found, .td-learn { margin-top:var(--s3); color:var(--ink-soft); line-height:1.55; }
.td-found strong, .td-learn strong, .td-students-line strong { color:var(--ink); }
.td-name { appearance:none; background:none; border:none; padding:0; font:inherit; color:var(--primary-deep); font-weight:600; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.td-name:hover { color:var(--primary); }
.td-need { border-top:1px solid var(--line); padding-top:var(--s4); margin-top:var(--s4); }
.td-need:first-of-type { border-top:none; }
.td-need h3 { color:var(--brand-navy); margin-bottom:var(--s2); }  /* Navy Dark is her dark-surface colour */
.td-mod { color:var(--ink-faint); font-style:italic; margin-top:var(--s2); }
.td-why { margin-top:var(--s3); }
.td-why summary { cursor:pointer; color:var(--primary-deep); font-size:0.9rem; font-weight:600; }
.td-why-body { margin-top:var(--s3); padding:var(--s3) var(--s4); background:var(--sand); border-radius:var(--r-card); display:grid; gap:var(--s2); }
.td-code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:0.78rem; }

/* FINAL player numeric entry */
.num-input { max-width:320px; font-size:1.1rem; padding:var(--s3) var(--s4); border:1.5px solid var(--line); border-radius:var(--r-card); }
.num-input:focus { outline:var(--focus-w) solid var(--focus); outline-offset:var(--focus-offset); border-color:var(--focus); }

/* Look Closer richer interaction controls */
/* her two-part probes: each part under its own question */
.probe-part { display:grid; gap:var(--s3); }
.probe-part + .probe-part { margin-top:var(--s5); padding-top:var(--s4); border-top:1px solid var(--border-soft); }
.part-stem { margin:0; font-weight:600; }
.two-num { display:flex; gap:var(--s3); flex-wrap:wrap; }
.two-num .num-input { flex:1; min-width:150px; }
.opt-multi .opt-letter { border-radius:6px; }
.opt-multi[aria-checked="true"] .opt-letter::after { content:" ✓"; }
.probe-visual { background:var(--sand); border-radius:var(--r-card); padding:var(--s3) var(--s4); font-style:italic; color:var(--ink-soft); }

/* Audio narration — child-triggered "Listen" control + global mute (NAPLAN Online convention). */
.audio-row { margin-top:var(--s3); }
.audio-btn {
  display:inline-flex; align-items:center; gap:var(--s2); min-height:44px; padding:8px var(--s4);
  background:var(--surface); border:1.5px solid var(--primary); border-radius:999px;
  color:var(--primary); font:inherit; font-weight:600; font-size:0.9375rem; cursor:pointer;
}
.audio-btn:hover { background:var(--primary); color:#fff; }
.audio-btn:focus-visible { outline:var(--focus-w) solid var(--focus); outline-offset:var(--focus-offset); }
.audio-btn .audio-ico { display:inline-flex; }
.audio-btn.is-playing { background:var(--primary); color:#fff; }
.audio-btn.is-playing .audio-ico { animation:audio-pulse 1s ease-in-out infinite; }
@keyframes audio-pulse { 0%,100% { opacity:1; } 50% { opacity:0.45; } }
@media (prefers-reduced-motion:reduce) { .audio-btn.is-playing .audio-ico { animation:none; } }
/* When narration is muted, the Listen control reads as inactive (it also no-ops in JS). */
.player.audio-muted .audio-btn { border-color:var(--border-soft); color:var(--ink-faint); cursor:default; }
.player.audio-muted .audio-btn:hover { background:var(--surface); color:var(--ink-faint); }

.audio-toggle {
  flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:999px; border:1px solid var(--border-soft);
  background:var(--surface); color:var(--primary); cursor:pointer;
}
.audio-toggle:hover { border-color:var(--primary); }
.audio-toggle:focus-visible { outline:var(--focus-w) solid var(--focus); outline-offset:var(--focus-offset); }
.audio-toggle.is-muted { color:var(--ink-faint); }

.pretest-text { max-width:34ch; }
.pretest .audio-row { margin-top:var(--s5); }

/* ============ Teacher Dashboard — v07 IMPLEMENTATION SPEC · §10 styling ============
   Plain white background, lighter colour treatment, strong readability, minimal dark blocks. */
.td-v07 { background:#fff; }
.td-v07 .td-h1 { font-size:1.6rem; font-weight:600; color:var(--ink); margin:0; }
.td-v07 .td-h2 { font-size:1.3rem; font-weight:600; color:var(--ink); margin-bottom:var(--s4); }
.td-v07 .td-q { font-size:1.05rem; color:var(--ink-soft); font-weight:500; margin:var(--s4) 0 var(--s3); }
.td-v07 .dash-head { display:flex; justify-content:space-between; align-items:flex-start; gap:var(--s4); flex-wrap:wrap; margin-bottom:var(--s4); }
/* Two views only — a light underline tab, no dark block */
.td-v07 .td-tabs { display:flex; gap:var(--s5); border-bottom:1px solid var(--line); margin-bottom:var(--s5); }
.td-v07 .td-tab { appearance:none; background:none; border:none; border-bottom:2px solid transparent; padding:var(--s3) 2px; margin-bottom:-1px; font:inherit; font-size:1rem; font-weight:600; color:var(--ink-faint); cursor:pointer; }
.td-v07 .td-tab:hover { color:var(--ink); }
.td-v07 .td-tab[aria-selected="true"] { color:var(--primary-deep); border-bottom-color:var(--primary); }
/* Light tables — white cells, hairline rules, soft header (no sand/dark fill) */
.td-v07 .td-table { width:100%; border-collapse:collapse; background:#fff; font-size:0.95rem; }
.td-v07 .td-table th { text-align:left; font-size:0.8rem; letter-spacing:0.03em; text-transform:uppercase; color:var(--ink-faint); font-weight:600; padding:var(--s3) var(--s4); border-bottom:2px solid var(--line); background:#fff; }
.td-v07 .td-table td { padding:var(--s3) var(--s4); border-bottom:1px solid var(--line); color:var(--ink); vertical-align:top; }
.td-v07 .td-table td.num, .td-v07 .td-table th.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.td-v07 .td-table tbody tr:hover td { background:var(--soft-blue); }
.td-v07 .td-members { color:var(--ink-soft); }
.td-v07 .td-results .td-scell { font-weight:600; min-width:120px; border-right:1px solid var(--line); }
.td-v07 .td-name { appearance:none; background:none; border:none; padding:0; font:inherit; font-weight:600; color:var(--primary); cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.td-v07 .td-name:hover { color:var(--primary-deep); }
.td-v07 .td-actions { display:flex; gap:var(--s4); align-items:center; margin-bottom:var(--s4); flex-wrap:wrap; }
.td-v07 .td-sort select { font:inherit; padding:4px 8px; border:1px solid var(--line); border-radius:var(--r-chip); background:#fff; color:var(--ink); }
/* Individual report — light cards, evidence collapsed */
.td-v07 .td-report { max-width:760px; }
.td-v07 .td-need { padding:var(--s4) 0; border-top:1px solid var(--line); }
.td-v07 .td-need:first-of-type { border-top:none; }
.td-v07 .td-need h3 { font-size:1.1rem; color:var(--brand-navy); margin-bottom:var(--s3); }
.td-v07 .td-need p { margin-bottom:var(--s2); color:var(--ink); }
.td-v07 .td-why { margin-top:var(--s3); border:1px solid var(--line); border-radius:var(--r-chip); background:#fff; }
.td-v07 .td-why > summary { cursor:pointer; padding:var(--s3) var(--s4); font-weight:600; color:var(--primary); font-size:0.95rem; }
.td-v07 .td-why-body { margin:0; padding:0 var(--s4) var(--s4); background:#fff; display:grid; gap:var(--s3); }
.td-v07 .td-why-body p strong { display:block; font-size:0.8rem; text-transform:uppercase; letter-spacing:0.02em; color:var(--ink-faint); margin-bottom:2px; }
/* Your Classes table */
.td-v07 .yc-table .yc-open { font-weight:600; }
.td-v07 .yc-manage > td { padding-top:0; border-bottom:1px solid var(--line); }
.td-v07 .yc-manage .ax-item { border:none; }
/* v07 print. `.site-header`/`.site-footer` were UNSCOPED here, so printing ANY page — home, families,
   schools, how, about — dropped the footer, and with it the ACARA non-affiliation disclaimer and the
   children's-data privacy line that must appear on every page. Scoped to the dashboard with :has() so
   the teacher's printed report stays clean without stripping the disclaimer off the public site.
   (Found by tools/verify-deep.mjs, 2026-09-03.) */
@media print { .td-v07 .td-tabs, .td-v07 .td-actions, .dash-head a { display:none !important; } body:has(.td-v07) .site-header, body:has(.td-v07) .site-footer { display:none !important; } .td-v07 .td-why[open] .td-why-body, .td-v07 .td-why-body { display:grid !important; } .td-v07 { background:#fff; } }

/* ════════════════════════════ YEAR 3 PLAYER (apps/web/y3-renderers.js) ════════════════════════════
   Additive only — every selector below is namespaced `.y3-*`, so no Year 5 rule changes and Year 5
   rendering stays byte-identical. Selection is never signalled by colour alone: every selected state
   changes the border weight AND reveals the tick glyph AND sets aria-checked/aria-pressed. Focus is a
   visible 3px ring on every interactive element, per SAD 08 A11Y-01. */
.y3-screen { display:grid; gap:var(--s4); }
.y3-stem { margin:0; }
.y3-instruction { color:var(--ink-soft); margin:0; }
.y3-hint { color:var(--ink-soft); font-size:0.9375rem; margin:0 0 var(--s2); }
.y3-response { display:grid; gap:var(--s5); }
.y3-component { display:grid; gap:var(--s3); }
.y3-component-prompt { font-weight:600; margin:0; }

/* Reading stimulus — stays visible while the child answers (R05 Player Rules r4, r6). */
.y3-stimulus { background:var(--surface); border:1px solid var(--border-soft); border-radius:12px; padding:var(--s4); max-height:42vh; overflow:auto; }
.y3-stimulus:focus-visible { outline:var(--focus-w) solid var(--focus); outline-offset:var(--focus-offset); }
.y3-stimulus-title { font-size:1rem; margin:0 0 var(--s2); }
.y3-stimulus-text { margin:0 0 var(--s3); color:var(--ink); line-height:1.65; }

/* Options */
.y3-opts { display:grid; gap:var(--s3); }
.y3-opts-pic { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }
.y3-opt { display:flex; align-items:center; gap:var(--s3); width:100%; text-align:left; padding:var(--s3) var(--s4);
  background:var(--surface); border:1.5px solid var(--border-soft); border-radius:12px; cursor:pointer;
  font:inherit; font-size:1.0625rem; color:var(--ink); }
.y3-opt:hover { border-color:var(--primary); }
.y3-opt:focus-visible, .y3-token:focus-visible, .y3-gap:focus-visible, .y3-slot:focus-visible,
.y3-chip:focus-visible, .y3-move:focus-visible, .y3-step:focus-visible, .y3-play:focus-visible,
.y3-bin-btn:focus-visible, .y3-target-live:focus-visible { outline:var(--focus-w) solid var(--focus); outline-offset:var(--focus-offset); }
.y3-opt[aria-checked="true"] { border-width:3px; border-color:var(--primary-deep); padding:calc(var(--s3) - 1.5px) calc(var(--s4) - 1.5px); font-weight:600; }
.y3-opt-letter { flex:0 0 auto; width:28px; height:28px; display:grid; place-items:center; border-radius:50%;
  background:var(--primary-tint); color:var(--primary-deep); font-weight:700; font-size:0.875rem; }
.y3-opt-value { flex:1 1 auto; }
.y3-opt-fig { display:block; }
.y3-opt-fig-missing { display:block; padding:var(--s4); border:1.5px dashed var(--border-soft); border-radius:10px; color:var(--ink-soft); text-align:center; }
.y3-tick { flex:0 0 auto; opacity:0; color:var(--primary-deep); }
[aria-checked="true"] > .y3-tick, [aria-pressed="true"] > .y3-tick { opacity:1; }

/* Fields */
.y3-field { display:grid; gap:var(--s2); max-width:26rem; }
.y3-field-label { font-weight:600; }
.y3-fields { display:grid; gap:var(--s4); grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.y3-input { font-size:1.125rem; }
.y3-input-num { max-width:9rem; }
.y3-field-error { margin:0; color:var(--system-error); font-size:0.875rem; }
.y3-select { font-size:1.0625rem; min-width:9rem; }
.y3-sentence { font-size:1.25rem; line-height:2.1; margin:0; }
.y3-sentence-part, .y3-token-inert { color:var(--ink); }

/* Tokens, gaps, boundaries */
.y3-tokens, .y3-positions { font-size:1.25rem; line-height:2.2; margin:0; }
.y3-token { font:inherit; background:transparent; border:1.5px solid transparent; border-bottom:1.5px dotted var(--ink-faint);
  border-radius:6px; padding:2px 6px; cursor:pointer; color:var(--ink); }
.y3-token:hover { border-color:var(--primary); }
.y3-token[aria-pressed="true"] { border:3px solid var(--primary-deep); font-weight:700; padding:0 4px; }
.y3-token[data-boundary="start"]::before { content:"\301A"; font-weight:700; }
.y3-token[data-boundary="end"]::after { content:"\301B"; font-weight:700; }
.y3-gap { font:inherit; background:transparent; border:1.5px dashed var(--ink-faint); border-radius:6px;
  width:22px; height:30px; margin:0 2px; cursor:pointer; vertical-align:middle; color:var(--ink-faint); }
.y3-gap[aria-checked="true"] { border:3px solid var(--primary-deep); background:var(--primary-tint); color:var(--primary-deep); }
.y3-gap[aria-checked="true"] .y3-gap-mark::after { content:"\25B2"; }
.y3-slot { font:inherit; min-width:30px; height:32px; border:1.5px dashed var(--ink-faint); border-radius:6px;
  background:transparent; cursor:pointer; vertical-align:middle; }
.y3-slot[aria-pressed="true"] { border:3px solid var(--primary-deep); }
.y3-target-word { text-decoration:underline; text-decoration-thickness:3px; text-underline-offset:4px; font-weight:600; }
.y3-tiles { display:flex; flex-wrap:wrap; gap:var(--s3); }
.y3-tiles .y3-opt { width:auto; min-width:64px; justify-content:center; font-size:1.375rem; }
.y3-punct, .y3-edit, .y3-locate, .y3-boundary, .y3-audio-select { display:grid; gap:var(--s4); }

/* Hotspot targets live inside the SVG viewBox, so hit areas stay aligned at any width. */
.y3-target-live { cursor:pointer; }
.y3-target-live .y3-hit { stroke:var(--ink-faint); stroke-dasharray:4 3; }
.y3-target-live[aria-checked="true"] .y3-hit { stroke:var(--primary-deep); stroke-width:4; stroke-dasharray:none; fill:rgba(44,110,138,.10); }
.y3-target-live:focus-visible .y3-hit { stroke:var(--primary); stroke-width:4; }
.y3-target-inert { pointer-events:none; }

/* Order / sort / match */
.y3-order { list-style:none; margin:0; padding:0; display:grid; gap:var(--s3); counter-reset:y3ord; }
.y3-card { display:flex; align-items:center; gap:var(--s3); background:var(--surface); border:1.5px solid var(--border-soft);
  border-radius:12px; padding:var(--s3) var(--s4); }
.y3-card::before { counter-increment:y3ord; content:counter(y3ord) "."; font-weight:700; color:var(--ink-faint); }
.y3-card-text { flex:1 1 auto; }
.y3-card-moves { display:flex; gap:var(--s2); }
.y3-move, .y3-step { font:inherit; font-size:1.125rem; width:38px; height:38px; border-radius:9px;
  border:1.5px solid var(--border-soft); background:var(--surface); cursor:pointer; color:var(--ink); }
.y3-move[disabled], .y3-step[disabled] { opacity:.4; cursor:default; }
.y3-sort, .y3-match { display:grid; gap:var(--s4); }
.y3-match { grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); }
.y3-sort-items, .y3-match-col { display:flex; flex-wrap:wrap; gap:var(--s3); align-content:start; }
.y3-match-col { flex-direction:column; flex-wrap:nowrap; }
.y3-chip { display:inline-flex; align-items:center; gap:var(--s2); font:inherit; padding:var(--s2) var(--s4);
  border:1.5px solid var(--border-soft); border-radius:999px; background:var(--surface); cursor:pointer; color:var(--ink); }
.y3-chip[aria-checked="true"] { border-width:3px; border-color:var(--primary-deep); font-weight:600; }
.y3-chip[data-placed="1"] { border-style:dashed; opacity:.65; }
.y3-chip-placed { cursor:default; border-style:solid; }
.y3-chip-pair { color:var(--primary-deep); font-weight:600; }
.y3-sort-groups { display:grid; gap:var(--s4); grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }
.y3-bin { border:1.5px dashed var(--ink-faint); border-radius:12px; padding:var(--s3); display:grid; gap:var(--s3); align-content:start; }
.y3-bin[data-count="0"] { border-style:dotted; }
.y3-bin-btn { font:inherit; font-weight:600; padding:var(--s2) var(--s3); border-radius:9px; border:1.5px solid var(--primary);
  background:var(--surface); color:var(--primary-deep); cursor:pointer; }
.y3-bin-body { display:flex; flex-wrap:wrap; gap:var(--s2); min-height:34px; }

/* Manipulative */
.y3-manip { display:grid; gap:var(--s3); }
.y3-manip-row { display:flex; align-items:center; gap:var(--s3); flex-wrap:wrap; }
.y3-manip-label { min-width:8rem; font-weight:600; }
.y3-manip-value { min-width:2.5rem; text-align:center; font-size:1.25rem; font-weight:700; }
.y3-manip-range { flex:1 1 140px; }

/* Audio */
.y3-audio-row { display:flex; align-items:center; gap:var(--s3); }
.y3-opts-audio { gap:var(--s3); }
.y3-play { display:inline-flex; align-items:center; gap:var(--s2); font:inherit; padding:var(--s2) var(--s4);
  border-radius:999px; border:1.5px solid var(--primary); background:var(--surface); color:var(--primary-deep); cursor:pointer; }
.y3-play.is-playing { border-width:3px; }
.y3-printed-target { font-size:1.5rem; font-weight:700; margin:0; }
.y3-badge { display:inline-block; padding:2px var(--s3); border-radius:999px; font-size:0.8125rem; font-weight:600; }
.y3-badge-pending { background:var(--sand); color:var(--ink-soft); border:1px solid var(--border-soft); }

/* Holds */
.y3-artwork-hold { padding:var(--s6) var(--s4); border:1.5px dashed var(--ink-faint); border-radius:12px; text-align:center; }
.y3-artwork-text { margin:0; color:var(--ink-soft); font-weight:600; }
.y3-hold { border:1.5px solid var(--border-soft); border-left:4px solid var(--ink-faint); border-radius:10px; padding:var(--s3) var(--s4); display:grid; gap:var(--s2); }
.y3-hold-title { margin:0; font-weight:700; }
.y3-hold-qid, .y3-hold-area, .y3-hold-pathway { margin:0; color:var(--ink-soft); font-size:0.9375rem; }
.y3-hold-source { margin:0; white-space:pre-wrap; font-size:0.875rem; background:var(--sand); padding:var(--s3); border-radius:8px; }

/* Figures */
.y3-fig { display:block; margin:0 auto; }
.y3-fig-table { width:100%; }
.y3-table { border-collapse:collapse; width:100%; }
.y3-table th, .y3-table td { border:1px solid var(--border-soft); padding:var(--s2) var(--s3); text-align:left; }
.y3-table thead th { background:var(--sand); }

@media (max-width:480px) {
  .y3-opts-pic { grid-template-columns:1fr; }
  .y3-match { grid-template-columns:1fr; }
  .y3-manip-label { min-width:0; }
}

/* ── D47 · YEAR 3 HOLD ROWS + TEAM QA PREVIEW ────────────────────────────────────────────────────
   `.td-soon-*` is the teacher-facing "Coming soon — awaiting final rule" block: her message, then HER
   words for the area, then the engine id + OPEN-QUESTION id as a marked REFERENCE (`.td-ref`), which is
   deliberately styled as code so it can never read as a sentence a teacher is meant to act on.
   `.qa-*` is the team-only preview at #/team/preview. Neither appears on any public page. */
.td-soon { margin-top: var(--s6); }
.td-soon-h { font-size: 1rem; margin: 0 0 var(--s2); }
.td-soon-list { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s2); }
.td-soon-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2);
  padding: var(--s3); border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.td-soon-msg { font-weight: 600; }
.td-soon-area { color: var(--ink-2); }
.td-ref, .qa-id, .qa-fam {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem;
  padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2);
}
.qa-preview .qa-counts { display: flex; flex-wrap: wrap; gap: var(--s4); margin: var(--s4) 0; color: var(--ink-2); font-size: 0.9rem; }
.qa-cards { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: var(--s6); }
.qa-card { border: 1px solid var(--line); border-radius: 12px; padding: var(--s4); background: var(--surface); }
.qa-card-h { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.qa-field { margin: 0 0 var(--s2); display: grid; gap: 2px; }
.qa-label { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.qa-value { white-space: pre-wrap; }
.qa-src { margin: var(--s3) 0 0; font-size: 0.75rem; color: var(--ink-3); }
.qa-field-src { font-size: 0.72rem; color: var(--ink-3); }
.qa-empty { color: var(--ink-3); }
.qa-soon, .qa-screens, .qa-held-points, .qa-open-questions { margin-top: var(--s6); }
/* The team QA hold surface: her held state, her exact non-executable words, her whole cell. */
.td-ref, .qa-id, .qa-fam, .qa-qid, .qa-cell { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.qa-qid { font-size: 0.78rem; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); }
.qa-held { border: 1px solid var(--line); border-left: 3px solid var(--ink-3); border-radius: 10px; padding: var(--s4); background: var(--surface); margin: 0 0 var(--s3); }
.qa-words { margin: 0; padding-left: var(--s4); display: grid; gap: 2px; }
.qa-words q { font-style: italic; }
.qa-cell { display: block; white-space: pre-wrap; font-size: 0.82rem; padding: var(--s2) var(--s3); border-radius: 8px; background: var(--surface-3); color: var(--ink-1); }
.qa-oq { border: 1px solid var(--line); border-radius: 10px; padding: var(--s3); margin: 0 0 var(--s2); background: var(--surface); }
.qa-oq > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.qa-oq[open] > summary { margin-bottom: var(--s3); }
@media (max-width: 560px) { .qa-cards { grid-template-columns: 1fr; } }

/* HER SPAN-SELECTION ITEM (Language Conventions Q40). The child taps the first and last word of a run
   inside her own sentence, so the words are buttons laid out as running text, not a list. */
.span-row { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-top: var(--s3); }
.span-word { font: inherit; font-size: var(--t-lg-size); line-height: 1.4; padding: var(--s2) var(--s3);
  border: 2px solid var(--line); border-radius: var(--r2); background: var(--surface); color: var(--ink);
  cursor: pointer; min-height: 44px; }
.span-word:hover { border-color: var(--accent); }
.span-word[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.span-word:focus-visible { outline:var(--focus-w) solid var(--focus); outline-offset:var(--focus-offset); }
/* Year 5 Language Conventions: her sentence as ordinary text, her underlined word, her gaps, her locate words */
.lc-sentence { font-size: var(--t-lg-size); line-height: 1.9; margin: var(--s3) 0; }
.lc-underlined { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lc-gap, .lc-pick { font: inherit; cursor: pointer; min-height: 44px; border: 2px solid var(--line); border-radius: var(--r2);
  background: var(--surface); color: var(--ink); }
.lc-gap { min-width: 36px; margin: 0 var(--s1); padding: 0 var(--s2); }
.lc-pick { padding: var(--s1) var(--s2); }
.lc-gap:hover, .lc-pick:hover { border-color: var(--accent); }
.lc-gap[aria-pressed="true"], .lc-pick[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; }
.lc-gap:focus-visible, .lc-pick:focus-visible { outline:var(--focus-w) solid var(--focus); outline-offset:var(--focus-offset); }
.lc-cards { margin-top: var(--s5); }
.lc-card { border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s4); margin: var(--s3) 0; background: var(--surface); }
.lc-card h4 { margin: 0 0 var(--s2); }
.lc-h { margin: var(--s3) 0 var(--s1); }
.lc-list { margin: 0 0 var(--s2); padding-left: var(--s5); }
.lc-check, .lc-notice { border-left: 3px solid var(--line); padding-left: var(--s3); margin-top: var(--s3); }
.word-input { text-align: center; }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════
   04 / 05 · THE AUTHENTICATED GPS FOR SCHOOLS SHELL
   Her reference geometry: a 256px Navy Dark sidebar, an 80px white top utility bar, and a white
   working canvas. "The application shell sits outside the maximum-width content grid."
   Selected row = Deep Navy surface + a 4px GPS Teal leading edge + a semibold white label.
   "Top white utility bar contains utilities, not duplicate sidebar links."
   On mobile her rule is a drawer, never a shrunken sidebar.
   ══════════════════════════════════════════════════════════════════════════════════════════════════ */
.app-shell { display:grid; grid-template-columns:var(--sidebar-w) 1fr; min-height:100vh; background:var(--page-bg); }
.app-sidebar {
  background:var(--navy-dark); color:#fff; display:flex; flex-direction:column; gap:var(--s3);
  padding:var(--s4) 0; position:sticky; top:0; height:100vh; overflow-y:auto;
}
.app-nav { display:flex; flex-direction:column; }
.app-nav a {
  display:flex; align-items:center; gap:var(--s3); min-height:var(--target-min);
  padding:12px var(--s3); color:#fff; text-decoration:none; font-weight:500; font-size:1rem;
  border-left:4px solid transparent;
}
.app-nav a:hover { background:var(--brand-navy); color:#fff; }
.app-nav a[aria-current="page"] {
  background:var(--brand-navy); border-left-color:var(--gps-teal); font-weight:600; color:#fff;
}
.app-main { display:flex; flex-direction:column; min-width:0; background:var(--page-bg); }
/* her 9.1: lockup on the LEFT of the white utility bar, utilities on the right */
.app-utility {
  height:var(--utility-h); flex:0 0 var(--utility-h); background:var(--page-bg);
  border-bottom:var(--border-w) solid var(--border-grey);
  display:flex; align-items:center; gap:var(--s3);
  padding:0 var(--gutter);
}
.app-utility .wordmark { color:var(--brand-navy); }
.app-utility-end { margin-left:auto; display:flex; align-items:center; gap:var(--s3); }
.app-canvas { background:var(--page-bg); padding:var(--s4) var(--gutter) var(--s8); min-width:0; }
.app-canvas > * { max-width:var(--w-container); }

@media (max-width: 1199px) {
  /* her safeguard: "Use a drawer/menu on mobile, not a tiny sidebar." */
  .app-shell { grid-template-columns:1fr; }
  .app-sidebar {
    position:fixed; inset:0 auto 0 0; width:min(84vw, var(--sidebar-w)); z-index:60;
    transform:translateX(-100%); transition:transform var(--t-move) var(--ease);
  }
  .app-shell[data-drawer="open"] .app-sidebar { transform:none; }
  .app-utility { justify-content:space-between; }
}

/* ── 06 · accessibility floor ──────────────────────────────────────────────────────────────────────
   Her rules: minimum 44x44px targets, meaning shown with words and/or icons as well as colour, and
   visible focus on every surface. */
.btn, .app-nav a, .input, button, [role="button"], .opt, .y3-opt { min-height:var(--target-min); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* ── 02 · semantic state text. Never colour alone — each carries its own word or icon in the markup. */
.state-error { color:var(--error); }
.state-warning { color:var(--warning); }
.state-success { color:var(--success); }
.state-disabled { color:var(--body-grey); }

/* ── 07 · teacher-facing data tables ───────────────────────────────────────────────────────────────
   "Do not hide important row actions behind hover." "Use status text and/or icons, not colour alone."
   "Keep explicit Print and Download PDF actions where relevant." */
.data-table { width:100%; border-collapse:collapse; background:var(--page-bg); }
.data-table th {
  text-align:left; font-size:0.875rem; font-weight:600; color:var(--body-grey);
  padding:12px var(--s3); border-bottom:var(--border-w) solid var(--border-grey);
}
.data-table td { padding:var(--s3); border-bottom:var(--border-w) solid var(--border-grey); color:var(--body-grey); }
.data-table tbody tr:hover { background:var(--soft-blue); }
.data-table .row-actions { display:flex; gap:var(--s2); }   /* always visible, never hover-only */

/* ── 01 · brand lockup ──────────────────────────────────────────────────────────────────────────────
   GPS wordmark + her approved "for Schools" descriptor. The mark itself is a placeholder until her
   canonical SVG masters are supplied (see BRAND_MARK_PLACEHOLDER in app.js). */
.wordmark { display:inline-flex; align-items:center; gap:var(--s2); text-decoration:none; color:var(--brand-navy); }
.wordmark .logo { color:inherit; flex:0 0 auto; }
.wordmark .wm-gps { font-weight:700; font-size:1.125rem; letter-spacing:-0.01em; color:inherit; }
.wordmark .wm-desc { font-weight:500; font-size:1rem; color:inherit; opacity:.85; }
.app-sidebar .wordmark, .site-footer .wordmark { color:#fff; }
.wordmark:hover { color:var(--navy-dark); }
.app-sidebar .wordmark:hover, .site-footer .wordmark:hover { color:var(--gps-teal); }

/* her single approved brand line — used sparingly, never as functional screen copy */
.brand-line { color:var(--link-teal); font-weight:600; line-height:1.3; }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════
   07 · HER DATA, FORMS AND REPORTING PATTERN, applied to the tables the product already renders.
   Her rules, verbatim: "Use status text and/or icons, not colour alone." "Keep explicit Print and
   Download PDF actions where relevant." "Error text belongs adjacent to the affected field." "Do not
   hide important row actions behind hover." "Use only the shared tokens and authorised patterns."
   The markup is not rewritten — her pattern is applied to the class names already in use, so no page
   behaviour changes and nothing can regress while the visual contract is met.
   ══════════════════════════════════════════════════════════════════════════════════════════════════ */
.data-table, .td-table, .yc-table, .y3-table, .pf-table {
  width:100%; border-collapse:collapse; background:var(--page-bg);
}
.data-table th, .td-table th, .yc-table th, .y3-table th, .pf-table th {
  text-align:left; font-size:0.875rem; font-weight:600; color:var(--body-grey);
  letter-spacing:0; text-transform:none;            /* her casing rule: no ALL CAPS for ordinary text */
  padding:12px var(--s3); border-bottom:var(--border-w) solid var(--border-grey); background:var(--page-bg);
}
.data-table td, .td-table td, .yc-table td, .y3-table td, .pf-table td {
  padding:var(--s3); border-bottom:var(--border-w) solid var(--border-grey); color:var(--body-grey);
}
.data-table tbody tr:hover td, .td-table tbody tr:hover td, .yc-table tbody tr:hover td {
  background:var(--soft-blue);
}
/* row actions are always visible — never revealed on hover */
.data-table .row-actions, .td-table .row-actions, .yc-table .row-actions { display:flex; gap:var(--s2); opacity:1; visibility:visible; }
.data-table a, .td-table a, .yc-table a, .y3-table a { color:var(--link-teal); }

/* her status chips: the WORD carries the meaning, the tint only groups it */
.status-chip {
  display:inline-flex; align-items:center; gap:var(--s1);
  padding:2px 10px; border-radius:var(--r-pill); font-size:0.875rem; font-weight:600;
  border:var(--border-w) solid var(--border-grey); color:var(--brand-navy); background:var(--page-bg);
}
.status-chip.is-secure { background:var(--soft-teal); }
.status-chip.is-attention { background:var(--soft-warm); }
.status-chip.is-pending { background:var(--soft-blue); }

/* 07 · the report/print actions her board asks to keep explicit */
.report-actions { display:flex; flex-wrap:wrap; gap:var(--s3); margin:var(--s3) 0 var(--s4); }

/* 05 · her responsive safeguard: reflow, never squeeze. A wide table scrolls on its own axis so the
   page itself never gains a horizontal scrollbar. */
@media (max-width: 767px) {
  .table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .data-table, .td-table, .yc-table { min-width:560px; }
}


/* ══ 08 · CONTROLS THAT WERE STILL THE BROWSER'S, NOT HERS ═══════════════════════════════════════════
   Two controls shipped with user-agent styling: the grid's purchase checkbox (a 20px native box with a
   black border — not a colour in her palette, and below her 44px minimum target) and the "Classes"
   number field. Her Board 08 gives fields a 1.5px Border Grey rule, her input radius and a Deep Navy
   value; a selection control is Deep Navy when chosen. Both are brought onto those tokens here.         */
.gc-select { position:relative; color:var(--brand-navy); }
/* The input IS the hit area: it covers the whole 44px cell, invisibly. A pseudo-element cannot do this
   job — pseudo-elements never render on a replaced element such as an <input>, so an ::before overlay
   left a 24px target. The visible box is a sibling span driven off :checked. */
.gc-select input[type="checkbox"] {
  appearance:none; -webkit-appearance:none; margin:0; padding:0; border:0; background:none;
  position:absolute; inset:0; width:100%; height:100%; min-height:var(--target-min);
  cursor:pointer; color:inherit;
}
.gc-box {
  flex:0 0 auto; width:24px; height:24px; border:2px solid var(--body-grey); border-radius:6px;
  background:var(--page-bg); position:relative; pointer-events:none;
}
.gc-label { pointer-events:none; }
.gc-select input[type="checkbox"]:hover + .gc-box { border-color:var(--brand-navy); }
.gc-select input[type="checkbox"]:checked + .gc-box { background:var(--brand-navy); border-color:var(--brand-navy); }
/* her tick, drawn in the only mark colour that reaches 10.4:1 on Deep Navy */
.gc-select input[type="checkbox"]:checked + .gc-box::after {
  content:''; position:absolute; left:6px; top:2px; width:6px; height:12px;
  border:solid var(--page-bg); border-width:0 2.5px 2.5px 0; transform:rotate(45deg);
}
.gc-select input[type="checkbox"]:focus-visible + .gc-box {
  outline:var(--focus-w) solid var(--focus-light); outline-offset:var(--focus-offset);
}
.classes-input input { width:96px; }

/* ══ 04 · ONE FOCUS RING EVERYWHERE ═════════════════════════════════════════════════════════════════
   Her ring is 3px with a 2px offset, blue on a light surface and GPS Teal on her dark shell. A dozen
   component rules predated the token block and still painted a 2px ring, or painted it in Deep Navy or
   the accent instead of her focus colour. They are normalised here so every tab stop on every surface
   shows the same ring, which is what her board specifies and what a keyboard user needs.               */
.num-input:focus,
.y3-stimulus:focus-visible, .y3-bin-btn:focus-visible, .y3-target-live:focus-visible,
.audio-btn:focus-visible, .audio-toggle:focus-visible,
.span-word:focus-visible, .skip-link:focus,
.btn-flag:focus-visible, .btn-review:focus-visible, .y3-review:focus-visible, .y3-review-row:focus-visible,
.input:focus, .gc-select input[type="checkbox"]:focus-visible {
  outline:var(--focus-w) solid var(--focus-light); outline-offset:var(--focus-offset);
}
.app-sidebar .skip-link:focus, .on-dark .skip-link:focus { outline-color:var(--gps-teal); }

/* ══ 07 · HER TABLE PATTERN ON A PHONE ══════════════════════════════════════════════════════════════
   A wide table scrolls inside its own container; it never pushes the page sideways. The container also
   needs the card's radius and shadow, because `overflow-x:auto` on the parent clips the table's own.    */
.table-scroll {
  overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%;
  border-radius:var(--r-card);
}
.table-scroll > .td-table { box-shadow:none; border-radius:0; }
@media (max-width: 599px) {
  /* her 24px cell padding is a desktop rhythm; a phone needs the row to breathe vertically instead */
  .td-table th, .td-table td { padding:var(--s3) var(--s3); }
}

/* ══ 02 · HER ERROR MESSAGE ═════════════════════════════════════════════════════════════════════════
   Her rule is "never colour alone" — these elements always carry the sentence and role="alert" too —
   but the colour is hers: #B42318. It was previously set inline through `var(--system-error)`, a
   property no stylesheet defined, so every error message in the product rendered in body grey.        */
.form-error[hidden] { display:none; }

/* ══ 11.3 · PRINTED AND EXPORTED REPORTS ════════════════════════════════════════════════════════════
   Her rule: "Remove authenticated app navigation from printed reports." The existing print rules hid
   .site-header and .site-footer — her PUBLIC chrome — which was correct until the authenticated shell
   landed. A signed-in report printed from the new shell carried the Navy Dark sidebar and the utility
   bar onto the page. Her other print rules follow here too: white background with navy text, a heading
   never separated from its first lines, and table headers repeated across pages.                      */
@media print {
  .app-sidebar, .app-utility, .app-drawer-btn, .skip-link { display:none !important; }
  .app-shell { display:block !important; }
  .app-main { display:block !important; }
  .app-canvas { padding:0 !important; background:#fff !important; }
  .app-canvas > * { max-width:none !important; }
  body, .app-shell, .app-main { background:#fff !important; }
  /* her hierarchy survives the page break */
  h1, h2, h3, h4 { break-after:avoid-page; page-break-after:avoid; color:var(--brand-navy) !important; }
  table { break-inside:auto; }
  thead { display:table-header-group; }   /* repeat the header on every page */
  tr, .card, .td-need { break-inside:avoid; page-break-inside:avoid; }
  /* a scroll container cannot scroll on paper — let the table lay out in full */
  .table-scroll, .grid-scroll { overflow:visible !important; }
}

/* ══ 03 / 12 · HER APPROVED GPS BRAND LINE ══════════════════════════════════════════════════════════
   v04 §3.3 names one core brand line and §13.2 forbids inventing another. It leads the hero (§12) and
   sits quiet and secondary in the footer (§12.2). It is set in her Teal Dark on white — the accessible
   link/accent value at 4.72:1 — and in GPS Teal on her dark footer, never as a decorative overlay.     */
.brand-line {
  font-size:1.0625rem; font-weight:600; line-height:1.4; letter-spacing:0.01em;
  color:var(--link-teal); margin:0 0 var(--s3);
}
/* Her v04 §12.2: "Keep the GPS tagline quiet and secondary in the footer." This selector is the more
   specific of the two that targeted the tagline, so it is the one that decides — a second, looser
   `.foot-line` rule added later lost silently and the tagline never became quieter. One rule now owns
   it. Quiet is not invisible: contrast on her navy footer is measured for real by
   tools/verify-accessibility-baseline.mjs, which fails below WCAG AA. */
.brand-line.foot-line { color:var(--gps-teal); font-size:.8125rem; margin:var(--s2) 0 0; font-weight:400; opacity:.85; }


/* ══ HER FIVE-PAGE TEACHER JOURNEY (apps/web/teacher-journey.js) ═════════════════════════════════════
   Teacher Dashboard Content & IA Brief R6. Her §13 governs the shape of these pages: a page is allowed
   to be long, nothing is truncated to fit a viewport, context and navigation stay reachable while the
   teacher scrolls, and there is ONE page scroll rather than competing internal scroll boxes.           */
.tj { display:grid; gap:var(--s4); }

/* her persistent class / assessment context, sticky so it survives a long page [UXTEACH-154] */
.tj-context {
  position:sticky; top:0; z-index:5;
  display:flex; flex-wrap:wrap; align-items:center; gap:var(--s3);
  padding:var(--s3) 0; background:var(--page-bg);
  border-bottom:var(--border-w) solid var(--border-grey);
}
.tj-context-bits { display:flex; flex-wrap:wrap; align-items:center; gap:var(--s2); font-weight:600; color:var(--brand-navy); }
.tj-context-bits i { color:var(--border-grey); font-style:normal; }
.tj-context-actions { margin-left:auto; display:flex; gap:var(--s2); }

.tj-main { display:grid; grid-template-columns:260px 1fr; gap:var(--s6); align-items:start; }

/* her left navigation among the five destinations [UXTEACH-017]; selection is never colour alone */
.tj-nav { position:sticky; top:72px; }
.tj-nav ol { list-style:none; margin:0; padding:0; display:grid; gap:var(--s1); counter-reset:none; }
.tj-nav a {
  display:flex; align-items:center; gap:var(--s3); min-height:var(--target-min);
  padding:10px var(--s3); border-radius:var(--r-input); text-decoration:none;
  color:var(--brand-navy); border-left:4px solid transparent; font-weight:500;
}
.tj-nav a:hover { background:var(--soft-blue); }
.tj-nav a[aria-current="page"] {
  background:var(--soft-blue); border-left-color:var(--gps-teal); font-weight:600;
}
.tj-n {
  flex:0 0 auto; width:26px; height:26px; border-radius:var(--r-pill);
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--brand-navy); color:var(--page-bg); font-size:0.8125rem; font-weight:700;
}
.tj-nav a[aria-current="page"] .tj-n { background:var(--gps-teal); color:var(--brand-navy); }
.tj-l { line-height:1.3; }

.tj-page { min-width:0; display:grid; gap:var(--s5); }
.tj-head { display:grid; gap:var(--s2); }
/* one page = one teacher question: the question supports the heading, never competes with it */
.tj-question { color:var(--body-grey); font-size:1.0625rem; margin:0; }
.tj-block { display:grid; gap:var(--s4); }
.tj-orient { font-size:1.0625rem; margin:0; color:var(--brand-navy); }

.tj-group, .tj-cause { display:grid; gap:var(--s3); }
.tj-group > header, .tj-cause > header { display:flex; flex-wrap:wrap; align-items:center; gap:var(--s3); }
.tj-group > header h3, .tj-cause > header h3 { margin:0; }
.tj-teach { margin:0; }
/* Her What to teach next is a sentence of 135-377 characters, so it needs room to breathe above her
   optional Teaching focus; the two are adjacent and must not read as one run of text. */
.tj-focus { margin:8px 0 0; }
.tj-teach .t-label, .tj-focus .t-label, .tj-members .t-label { display:block; color:var(--body-grey); margin-bottom:2px; }
.tj-members { margin:0; color:var(--brand-navy); }

.tj-student-list { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:var(--s2); }
.tj-student { min-height:var(--target-min); }

.tj-stats { display:flex; flex-wrap:wrap; gap:var(--s5); margin:0; }
.tj-stats div { display:grid; gap:2px; }
.tj-stats dt { color:var(--body-grey); font-size:0.875rem; }
.tj-stats dd { margin:0; font-size:1.75rem; font-weight:700; color:var(--brand-navy); }

/* an awaiting-data page states what is missing; it never fills the space with a manufactured number */
.tj-awaiting { display:grid; gap:var(--s3); }
.tj-awaiting .status-chip { justify-self:start; }
.tj-awaiting code { font-family:var(--font-mono); font-size:0.875rem; }

.tj-why > summary { min-height:var(--target-min); display:flex; align-items:center; cursor:pointer; font-weight:600; color:var(--link-teal); }
.tj-why-body { display:grid; gap:var(--s2); padding-top:var(--s2); }

.tj-next { display:grid; gap:var(--s2); justify-items:start; padding-top:var(--s4); border-top:var(--border-w) solid var(--border-grey); }
.tj-groups-head { display:flex; flex-wrap:wrap; align-items:center; gap:var(--s3); }
.tj-groups-head .btn { margin-left:auto; }

/* her mobile rule: the desktop sidebar is replaced, never shrunk */
@media (max-width: 899px) {
  .tj-main { grid-template-columns:1fr; gap:var(--s4); }
  .tj-nav { position:static; }
  .tj-nav ol { grid-auto-flow:column; grid-auto-columns:max-content; overflow-x:auto; gap:var(--s2); padding-bottom:var(--s2); }
  .tj-nav a { border-left:0; border-bottom:4px solid transparent; white-space:nowrap; }
  .tj-nav a[aria-current="page"] { border-left:0; border-bottom-color:var(--gps-teal); }
  .tj-context { position:static; }
}
@media print {
  .tj-nav, .tj-next, .tj-context-actions { display:none !important; }
  .tj-main { display:block !important; }
}

/* A GRID ITEM DEFAULTS TO min-width:auto, SO IT CANNOT SHRINK BELOW ITS CONTENT. On a phone her
   destination list scrolls horizontally inside itself; without min-width:0 on the items between it and
   the page, that list's content width (997px) became the width of the whole dashboard and pushed 679px
   of the page off-screen. Her rule is that primary teacher content reflows and does not depend on
   horizontal page scrolling [UXTEACH-156]; the nav is the one component allowed its own axis. */
.tj, .tj-main { min-width:0; }
.tj > *, .tj-main > * { min-width:0; }
.tj-context, .tj-nav, .tj-page { min-width:0; max-width:100%; }
.tj-nav ol { min-width:0; max-width:100%; }
.tj-context-bits { min-width:0; }

/* ══ HER SCHOOL LEADER JOURNEY (apps/web/leader-journey.js) ══════════════════════════════════════════
   R7 §9: "Preserve hierarchy before density: page title/question -> filters -> status -> evidence ->
   matrix", and "Tables and class comparison matrices must remain legible without relying on colour
   alone; percentage/text carries the meaning." Nothing here encodes state in colour: every cell is a
   number, and every column carries its own explicit denominator.                                       */
.tj-filters { display:flex; flex-wrap:wrap; gap:var(--s4); align-items:end; }
.tj-filter { min-width:200px; }
.tj-notes { display:grid; gap:var(--s2); padding-top:var(--s4); border-top:var(--border-w) solid var(--border-grey); }

/* her denominator sublabel, e.g. "of 17 completed" (UXLEAD-025) */
.tj-denom { display:block; font-weight:400; font-size:0.75rem; color:var(--body-grey); text-transform:none; letter-spacing:0; }
.tj-matrix th[scope="row"] { text-align:left; }
.tj-matrix th[scope="row"] .tj-theme { display:block; font-weight:600; color:var(--brand-navy); }
/* her rule: do not truncate a theme label to the point that distinct constructs become ambiguous */
.tj-matrix th[scope="row"] { white-space:normal; min-width:260px; }
.tj-matrix td.num { font-variant-numeric:tabular-nums; }

/* ══ HER SHELL LANDING PAGE (apps/web/school-home.js) ════════════════════════════════════════════════
   School Setup §4: Home routes and orients. Every card is a destination; none reports evidence, so
   none carries a state colour, a band or a percentage.                                                 */
.home-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:var(--s4); margin-top:var(--s5); }
.home-card {
  display:grid; gap:var(--s2); align-content:start;
  background:var(--page-bg); border:var(--border-w) solid var(--border-grey); border-radius:var(--r-card);
  padding:var(--s5); min-height:var(--target-min); text-decoration:none; color:var(--body-grey);
}
a.home-card:hover { border-color:var(--brand-navy); }
a.home-card:focus-visible { outline:var(--focus-w) solid var(--focus-light); outline-offset:var(--focus-offset); }
.home-card h3 { margin:0; color:var(--brand-navy); }
.home-card p { margin:0; }
.home-card .eyebrow { color:var(--body-grey); }
.home-status .tj-stats { margin-top:var(--s2); }

/* ══ HER REPORT FOOTER (The Route / GPS Snapshot) ════════════════════════════════════════════════════
   "Generation date, product/school identity and NAPLAN disclaimer." It prints with the report, because
   an exported report has to be understandable on its own.                                              */
.report-footer { margin-top:var(--s6); padding-top:var(--s4); border-top:var(--border-w) solid var(--border-grey); display:grid; gap:var(--s1); }
.report-footer .disclaimer { color:var(--body-grey); }
/* the same compliance line, quiet, at the foot of every authenticated surface */
.app-trust { margin-top:var(--s7); padding-top:var(--s4); border-top:var(--border-w) solid var(--border-grey); }
.app-trust p { color:var(--body-grey); margin:0; max-width:80ch; }
@media print { .app-trust { border-top:none; } }

/* her broad learning area, leading each teaching group and each active need */
.tj-area { color:var(--body-grey); margin:0; letter-spacing:0.04em; }

/* ══ HER 44 x 44 MINIMUM TOUCH TARGET ════════════════════════════════════════════════════════════════
   Board 06, Accessibility baseline: "Touch target — 44 × 44px minimum."

   Measured by tools/verify-accessibility-baseline.mjs in a real browser, her baseline held on contrast,
   alt text, visible focus, 200% text zoom, mobile and tablet reflow and reduced motion — and failed on
   this one rule, on all ten public pages. Three controls were under her minimum:

       .wordmark      163x27 and 177x27   (height)
       footer "About"  42x44              (width)
       footer "Log in" 43x44              (width)

   Each is widened through its HIT AREA rather than by growing the type, so nothing about her visual
   design changes — the target grows, the letterform does not. Inline links inside running prose are
   deliberately not covered: a link in the middle of a sentence cannot be 44px tall without breaking the
   sentence, and WCAG 2.5.8 carves out the same exception. */
.wordmark { min-height:44px; }
.site-footer a, .app-sidebar a { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; }
/* The footer's inline legal sentences keep prose behaviour — they are text, not controls. */
.site-footer p a, .site-footer .disclaimer a, .site-footer small a { display:inline; min-width:0; min-height:0; }

/* ══ HER BOARD 07 — SEARCH, FILTERS AND SORTING ══════════════════════════════════════════════════════
   "Keep persistent labels and accessible error text. Show active filters and allow reset. Logical
   keyboard order and large targets." Targets meet her 44px minimum from Board 06. */
.lf { display:grid; gap:var(--s2); margin-bottom:var(--s3); }
.lf-field { max-width:320px; }
.lf-active { display:flex; align-items:center; gap:var(--s2); flex-wrap:wrap; }
.lf-chip { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 var(--s3);
  border:1px solid var(--gps-teal); border-radius:999px; background:var(--soft-teal); color:var(--ink);
  font:inherit; cursor:pointer; }
.lf-chip:hover { background:#fff; }
.lf-x { font-size:1.1em; line-height:1; }
.lf-count { margin:0; }
.th-sort { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0; border:0;
  background:none; font:inherit; color:inherit; font-weight:inherit; cursor:pointer; text-align:inherit; }
.th-arrow::after { content:"↕"; opacity:.45; }
[aria-sort="ascending"] .th-arrow::after { content:"↑"; opacity:1; }
[aria-sort="descending"] .th-arrow::after { content:"↓"; opacity:1; }
th.num .th-sort { justify-content:flex-end; width:100%; }

/* ══ HER FOOTER — GROUPED COLUMNS ════════════════════════════════════════════════════════════════════
   v04 §12: "Dark trust/reference footer with grouped columns; do not duplicate header navigation."
   §12.2: "Keep the GPS tagline quiet and secondary in the footer." Quiet means smaller and lower in the
   hierarchy — never below her contrast floor, which tools/verify-accessibility-baseline.mjs enforces. */
.foot-cols { display:grid; grid-template-columns:minmax(220px,1.2fr) 2fr; gap:var(--s6); align-items:start; }
.foot-groups { display:grid; grid-template-columns:repeat(3,minmax(120px,1fr)); gap:var(--s5); }
.foot-col ul { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.foot-col-title { display:block; margin:0 0 var(--s2); color:var(--paper); opacity:.72;
  font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; font-weight:600; }
.foot-trust { margin-top:var(--s5); padding-top:var(--s4); border-top:1px solid rgba(255,255,255,.14);
  display:grid; gap:var(--s2); }
@media (max-width:760px) {
  .foot-cols { grid-template-columns:1fr; gap:var(--s5); }
  .foot-groups { grid-template-columns:repeat(2,minmax(120px,1fr)); }
}

/* Her Board 07: "Keep persistent labels and accessible error text." An error must read as an error
   without depending on colour, so it carries a border and a symbol as well as her error ink. */
/* ONE rule styles a form error. There were three, and the last one in the file won silently — the
   same specificity trap that stopped her footer tagline ever becoming quieter. Her Board 06 baseline:
   "No status or instruction conveyed by colour alone", so an error carries a rule and a symbol as well
   as her error ink, and remains legible to someone who cannot see the red. */
.form-error { margin:var(--s3) 0 0; padding:var(--s3); border-left:3px solid var(--error);
  color:var(--error); font-weight:500; font-size:.9375rem; border-radius:var(--r2); }
.form-error::before { content:"! "; font-weight:700; }

/* ══ THE ROUTE + GPS SNAPSHOT — her two student reports ═══════════════════════════════════════════
   Rendered by apps/web/report-route-snapshot.js. Authority: her Student Reporting workbook
   (04_STUDENT_REPORT, 05_GPS_SNAPSHOT, 10_EXPORT_PDF_RULES) plus her concept-example pages.

   Every value below resolves to a token already in her palette block at the top of this file. No new
   colour, type size or spacing step is introduced. Her concept-example pages use a deep navy header
   band, a dark body ink and a muted label grey; those are --navy-dark, --brand-navy and --body-grey
   to within her own rounding, so her TOKENS are used here rather than a second set of literal values.
   (Her concept hexes are recorded in docs/audit/intake/student-reporting-route-snapshot.md, not here:
   tests/design-authority.test.mjs reads every literal colour in this file, comments included, and is
   right to refuse one that is not in her Board 02 palette.)

   Her 10_EXPORT_PDF_RULES r10: "Do not encode meaning only in colour." Every state here is a WORD
   inside the chip; the tint is decoration. r11: "A4 portrait default ... add pages when needed ...
   Do not scale text below legibility to force one page" — so print sets @page and page-break rules,
   and never shrinks type.
   ────────────────────────────────────────────────────────────────────────────────────────────────── */

.rrs { max-width:var(--w-report); margin:0 auto; color:var(--body-grey);
  display:grid; gap:var(--s5); }

/* a section with no authorised evidence is hidden — her 00_READ_ME r8: "blank diagnostic/progress
   sections are not shown". [hidden] is forced because .rrs's grid display would otherwise win. */
.rrs .rrs-section[hidden] { display:none !important; }
.rrs-section { display:grid; gap:var(--s3); }
.rrs-h2 { margin:0; color:var(--ink); font-size:1.125rem; font-weight:600; letter-spacing:-0.01em; }

/* her section labels for the header and footer blocks are structural: kept for assistive technology,
   not printed as chrome on a report a parent reads. */
.rrs-vh { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }

/* ── her header band (concept examples pages 1-6: a full-width navy band carrying brand, report
      name, tagline and stage) ── */
.rrs-head { gap:var(--s2); }
.rrs-band { background:var(--navy-dark); color:var(--paper); border-radius:var(--r-card);
  padding:var(--s4); display:grid; gap:var(--s1); }
.rrs-brand { margin:0; font-size:0.8125rem; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; color:var(--paper); opacity:.86; }
.rrs-sep { opacity:.6; padding:0 2px; }
.rrs-title, .rrs-band-title { margin:0; font-size:1.375rem; font-weight:700; color:var(--paper);
  letter-spacing:-0.01em; }
/* Her concept page 4 puts the product line ABOVE the report title in the band. The <h2> stays first in
   the DOM so aria-labelledby names the section before its contents; `order` moves the eyebrow up
   visually without changing the reading order assistive technology is given. */
.rrs-band .rrs-brand { order:-1; }
.rrs-tagline { margin:0; font-size:0.9375rem; color:var(--paper); opacity:.9; }
.rrs-stage { margin:var(--s1) 0 0; justify-self:start; padding:4px var(--s3);
  border-radius:var(--r-pill); background:rgba(255,255,255,.14); color:var(--paper);
  font-size:0.8125rem; font-weight:600; }
.rrs-learner { margin:var(--s3) 0 0; color:var(--ink); font-size:1.125rem; font-weight:600; }
.rrs-context, .rrs-school, .rrs-generated { margin:0; font-size:0.875rem; color:var(--body-grey); }

/* ── her two-cell status strip (concept examples pages 1-3) ── */
.rrs-strip { margin:0; display:flex; flex-wrap:wrap; gap:var(--s4);
  border:var(--border-w) solid var(--border-grey); border-radius:var(--r-card); padding:var(--s3); }
.rrs-strip-cell { display:grid; gap:var(--s1); }
.rrs-strip dt { font-size:0.75rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:var(--body-grey); }
.rrs-strip dd { margin:0; }

/* her badge carries ONE state word. The word is the meaning; the tint is not. */
.rrs-chip { display:inline-block; padding:3px var(--s3); border-radius:var(--r-pill);
  border:var(--border-w) solid var(--border-grey); background:var(--soft-blue);
  color:var(--ink); font-size:0.875rem; font-weight:600; }
.rrs-chip[data-state="Secure"], .rrs-chip[data-state="Improved"],
.rrs-chip[data-state="RESOLVED"] { background:var(--soft-teal); border-color:var(--gps-teal); }

/* ── her need blocks ── */
.rrs-need { display:grid; gap:var(--s2); padding:var(--s4);
  border:var(--border-w) solid var(--border-grey); border-radius:var(--r-card);
  background:var(--page-bg); break-inside:avoid; page-break-inside:avoid; }
.rrs-section > .rrs-need + .rrs-need { margin-top:var(--s3); }
.rrs-eyebrow { margin:0; font-size:0.75rem; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; color:var(--body-grey); }
.rrs-finding, .rrs-teach, .rrs-next { margin:0; color:var(--ink); font-size:1rem; }
.rrs-teach, .rrs-next { font-weight:500; }
.rrs-focus, .rrs-why, .rrs-status, .rrs-note, .rrs-cue { margin:0; font-size:0.9375rem;
  color:var(--body-grey); }
.rrs-bounded { margin:0; color:var(--ink); font-size:1rem; font-weight:500; }

.rrs-areas, .rrs-indicated { margin:0; padding:0; list-style:none; display:grid; gap:var(--s2); }
.rrs-areas li, .rrs-indicated li { display:flex; flex-wrap:wrap; align-items:center; gap:var(--s2);
  padding-bottom:var(--s2); border-bottom:var(--border-w) solid var(--border-grey); }
.rrs-area-label { color:var(--ink); font-weight:500; }

/* her chronological stage summary — numbered because the ORDER is the meaning (04 r12). */
.rrs-history { margin:0; padding-left:var(--s4); display:grid; gap:var(--s2); }
.rrs-history-text { margin:0; }

/* ── her footer ── */
.rrs-foot { gap:var(--s1); border-top:var(--border-w) solid var(--border-grey); padding-top:var(--s3); }
.rrs-foot-line { margin:0; font-size:0.8125rem; color:var(--body-grey); }
.rrs-foot-quiet { opacity:.9; }

/* the awaiting-content marker is never shown to a reader; it exists for the audit only. */
.rrs-awaiting { display:none !important; }

@media (max-width:600px) {
  .rrs-band { padding:var(--s3); }
  .rrs-strip { gap:var(--s3); }
}

/* ── her print / PDF contract (10_EXPORT_PDF_RULES r10, r11) ── */
@page { size:A4 portrait; margin:14mm; }
@media print {
  /* the band must survive a greyscale print, so it keeps its fill rather than relying on colour */
  .rrs-band { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  /* r11: add pages when needed. Nothing here reduces type size or clips a need. */
  .rrs { max-width:none; gap:var(--s4); }
  .rrs-section { break-inside:auto; }
  .rrs-h2 { break-after:avoid; page-break-after:avoid; }
  .rrs-need, .rrs-strip, .rrs-history li { break-inside:avoid; page-break-inside:avoid; }
  .rrs-foot { break-before:avoid; page-break-before:avoid; }
}

/* ── HER R6-L-001 — the School Snapshot export control ────────────────────────────────────────────
   The button sits right in `.tj-groups-head` (which already pushes a lone `.btn` to the end of the
   row), but this control is a button PLUS a status line, so it needs its own box or the note would
   become a second flex item and land beside the button instead of under it. Her r22 forbids handing
   over a partial workbook, so that note is the only place a failed download is reported — it must be
   readable, not squeezed into a row. */
.ov-export { margin-left:auto; display:flex; flex-direction:column; align-items:flex-end; gap:var(--s2); }
.ov-export .btn { margin-left:0; }
.ov-export-note { margin:0; max-width:34ch; text-align:right; }
/* Her own error token, the one `.form-error` already uses. The first version of this line invented a
   different custom property and gave it a raw Material-red fallback, which broke three design-authority
   assertions at once: an off-palette colour, hidden inside a var() fallback, behind a property nothing
   defines. All three were right, and the hex is deliberately not repeated here — that gate reads every
   literal colour in this file INCLUDING the comments, so quoting the mistake re-commits it. */
.ov-export-note[data-xlsx-state="error"] { color:var(--error); }
@media (max-width:640px) {
  /* At phone width the control owns the full row: a right-aligned note next to a full-width button
     reads as a caption for the wrong thing. */
  .ov-export { margin-left:0; width:100%; align-items:stretch; }
  .ov-export-note { max-width:none; text-align:left; }
}

/* ── HER SCHOOL SNAPSHOT GRID (UXLEAD-d68f66a059) ─────────────────────────────────────────────────
   "Neutral white cells, small semantic indicator, and a large explicit value such as 82% Secure."
   NO COLOUR CARRIES MEANING. Her UXLEAD-cff521255f: "developer logic should not hard-code educational
   meaning as colours", so a cell at 12% and a cell at 98% look identical and the number is the whole
   message. Her "small semantic indicator" is deliberately absent until her semantic state tokens
   exist — inventing one as a colour is the single thing that rule forbids. */
.ov-grid td.ov-grid-cell { background:var(--surface); vertical-align:top; }
.ov-grid-value { display:block; font-size:1.5rem; font-weight:600; line-height:1.2; }
.ov-grid-denom, .ov-grid-held { display:block; }
.ov-grid td.is-empty { background:var(--surface); }
@media (max-width:640px) {
  .ov-grid-value { font-size:1.25rem; }
}

/* ══ HER TEACHING INSIGHTS MODULE — her VISUAL_RESPONSIVE V-01…V-09 ════════════════════════════════
   Source: TI_Teacher_Dashboard_A1.xlsx / VISUAL_RESPONSIVE, nine rules, each cited below.

   V-01 "Use GPS for Schools v04: Navy Dark sidebar + white top utility bar + white working canvas",
        boundary "Do not create a Teaching Insights-specific shell." So there is NO shell here: her
        three pages render inside the product's existing .app-shell, and everything below styles only
        what is inside her working canvas.
   V-04 names her four stage tints and they are ALREADY her tokens, under her own names —
        --soft-blue, --soft-lavender, --soft-teal, --soft-warm. Nothing is picked here.
   V-09 "Colour alone never conveys stage/meaning", so every tint below sits behind text that says the
        same thing, and the status chips are ONE neutral style for all eleven of her tokens.
   ════════════════════════════════════════════════════════════════════════════════════════════════ */

/* V-02 · her module nav: three items only in V1, shared selected state, no pastel. */
.ti-nav { border-bottom:var(--border-w) solid var(--border-grey); margin-bottom:var(--s5); }
.ti-nav ul { display:flex; flex-wrap:wrap; gap:var(--s1); list-style:none; margin:0; padding:0; }
.ti-nav a, .ti-nav span {
  display:flex; align-items:center; min-height:var(--target-min);
  padding:0 var(--s3); color:var(--body-grey); text-decoration:none;
  border-bottom:3px solid transparent;
}
.ti-nav a:hover { color:var(--brand-navy); }
.ti-nav a[aria-current="page"] { color:var(--brand-navy); font-weight:600; border-bottom-color:var(--brand-navy); }

.ti-head { margin-bottom:var(--s4); }
.ti-head h1 { margin:var(--s1) 0; }
.ti-cta { margin:0 0 var(--s5); }

/* V-03 · cards white + subtle border by default. The tint is a SUPPORT tint on one edge, never a fill
   that could read as a performance colour — her boundary is "No rainbow performance cards". */
.ti-cycles { list-style:none; margin:0; padding:0; display:grid; gap:var(--s4); }
.ti-cycle { border-left:4px solid var(--border-grey); }
.ti-area { color:var(--body-grey); text-transform:uppercase; letter-spacing:.04em; }
.ti-planned { font-size:var(--t-lg-size); line-height:1.4; margin:var(--s1) 0 var(--s2); color:var(--brand-navy); }
.ti-node-status { margin:0 0 var(--s3); }

/* V-04 · her four stage tints, by her own names, keyed on the stage the card is IN. Her rule:
   "Tints support stage recognition; text carries meaning" — so the tint is the left edge and a very
   light wash, and the stage is also written in the Current activity row. */
.ti-cycle[data-cycle-state] { background:var(--page-bg); }
.ti-stage[data-stage="LEARNING_CHECK"], .ti-cycle.is-lc { border-left-color:#9FCDE6; background:var(--soft-blue); }
.ti-stage[data-stage="CLOSER_LOOK"], .ti-cycle.is-cl { border-left-color:#B3A9E6; background:var(--soft-lavender); }
.ti-stage[data-stage="TEACHING"], .ti-cycle.is-teaching { border-left-color:#7FD0C4; background:var(--soft-teal); }
.ti-stage[data-stage="QUICK_CHECK"], .ti-cycle.is-qc { border-left-color:#E0C08A; background:var(--soft-warm); }

.ti-fields { display:grid; grid-template-columns:auto 1fr; gap:var(--s2) var(--s4); margin:var(--s3) 0; }
.ti-fields dt { color:var(--body-grey); font-size:var(--t-caption-size,0.875rem); }
.ti-fields dd { margin:0; color:var(--brand-navy); }
.ti-actions { margin:var(--s3) 0 0; }
.ti-rule { margin:var(--s2) 0 0; }
.ti-msg { margin:0; color:var(--brand-navy); }
.ti-msg-inline { margin:var(--s2) 0 0; }

/* V-09 · ONE chip style for all eleven of her learner tokens. Her LEARNER_STATUS_LABELS carry her
   prohibitions ("Operational; never 'failed'"), and a chip that changed colour per token would make
   colour carry the state her text is there to carry. */
.ti-chip {
  display:inline-block; padding:2px var(--s2); border-radius:var(--r-pill);
  background:var(--soft-blue); color:var(--brand-navy); font-size:0.875rem; white-space:nowrap;
}

/* V-05 · her learner table: operational comparison, explicit status text, 44px targets, and
   deliberately NO colour grid. */
.ti-learners { margin-top:var(--s3); }
.ti-learners summary { min-height:var(--target-min); display:flex; align-items:center; cursor:pointer; color:var(--link-teal); }
.ti-learners td, .ti-learners th { padding:var(--s2) var(--s3); }
.ti-learners td a, .ti-students td a { display:inline-flex; align-items:center; min-height:var(--target-min); }

/* her r10 Attention: separate region, and her "no red performance coding" means her warning tint and
   no red anywhere. */
.ti-attention { margin:var(--s5) 0; }
.ti-attention-row { background:var(--soft-warm); border-left:4px solid #E0C08A; margin-bottom:var(--s3); }

.ti-empty, .ti-gap, .ti-refusal, .ti-confirm { margin:var(--s4) 0; }
.ti-state { border:0; padding:0; background:none; }
.ti-stage-state { border:0; padding:0; background:none; }
.ti-history { margin-top:var(--s5); display:flex; flex-wrap:wrap; gap:var(--s2); align-items:baseline; }

/* her Plan next fields */
.ti-field { display:grid; gap:var(--s1); max-width:var(--w-report); margin:0 0 var(--s4); }
.ti-field select { min-height:var(--target-min); border-radius:var(--r-input); border:var(--border-w) solid var(--border-grey); padding:0 var(--s2); }
.ti-node { background:var(--soft-blue); margin:0 0 var(--s4); max-width:var(--w-report); }
.ti-learners-pick { border:var(--border-w) solid var(--border-grey); border-radius:var(--r-card); padding:var(--s4); margin:0 0 var(--s4); }
.ti-learners-pick legend { padding:0 var(--s2); color:var(--brand-navy); font-weight:600; }
.ti-learner { display:flex; align-items:center; gap:var(--s2); min-height:var(--target-min); }
.ti-summary { max-width:var(--w-report); margin:0 0 var(--s4); }
.ti-summary dl { display:grid; grid-template-columns:auto 1fr; gap:var(--s2) var(--s4); margin:var(--s3) 0 0; }
.ti-summary dt { color:var(--body-grey); }
.ti-summary dd { margin:0; color:var(--brand-navy); }
.ti-error { color:var(--error); margin-left:var(--s3); }

/* her Reports page */
.ti-scope { display:flex; gap:var(--s2); margin:0 0 var(--s4); }
.ti-stages { list-style:none; margin:0 0 var(--s5); padding:0; display:grid; gap:var(--s4); grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.ti-stage h2 { font-size:var(--t-lg-size); margin:0 0 var(--s2); }

/* V-08 · "Reflow intentionally; preserve class/context/latest report/primary action", boundary
   "Do not scale desktop layout down." So at phone width her field rows become stacked blocks rather
   than a squeezed two-column grid, her stage cards become one column, and nothing is hidden — her
   four preserved things are all in the single column. */
@media (max-width:640px) {
  .ti-fields, .ti-summary dl { grid-template-columns:1fr; gap:0; }
  .ti-fields dt, .ti-summary dt { margin-top:var(--s3); }
  .ti-stages { grid-template-columns:1fr; }
  .ti-nav ul { gap:0; }
  .ti-nav a, .ti-nav span { padding:0 var(--s2); }
  .ti-scope { flex-wrap:wrap; }
}

/* V-07 · "printed report has no app nav". Her module chrome is removed from print; the report surface
   itself is her Reporting & Exports authority's and is not styled here. */
@media print {
  .ti-nav, .ti-scope, .ti-history, .ti-cta { display:none; }
}
