/* SYS-739: the shared AIA tokens for the workspace, teacher, student and phone practice
   pages. One file, so the restyles cannot drift. Custom properties only, no other rules.
   tests/test_aia_tokens.py checks every name, value and contrast pair, light and dark.

   Restrained look (Marcus, Nov 19: restrained look): neutral greys, one blue accent, and
   selected nav in grey, not blue. Status shows as a small dot (--aia-*-dot); the -bg and
   -ink warn, bad and ok pairs are for alert banners only. The grant, studio and sort
   tints are the same quiet grey. */
:root {
  --aia-ground: #F3F4F6;
  --aia-card: #FFFFFF;
  --aia-panel: #F4F5F7;
  --aia-line: #E6E7EA;
  --aia-line-soft: #EEEFF1;
  --aia-ink: #16181D;
  --aia-ink-2: #3A3D45;
  --aia-muted: #5E626B;
  --aia-accent: #0066E3;
  --aia-accent-ink: #0058C4;
  --aia-accent-tint: #ECEDEF;
  --aia-selected: #ECEDEF;
  --aia-warn-bg: #FFF4E5;
  --aia-warn-ink: #8A4B00;
  --aia-bad-bg: #FDECEC;
  --aia-bad-ink: #A3261F;
  --aia-ok-bg: #DDF3E5;
  --aia-ok-ink: #1D6B3E;
  --aia-ok-dot: #2E8B57;
  --aia-warn-dot: #C77A00;
  --aia-bad-dot: #C0362C;
  --aia-info-dot: #8E9099;
  --aia-on-accent: #FFFFFF;
  --aia-grant: #F1F2F4;
  --aia-studio: #F1F2F4;
  --aia-sort: #F1F2F4;
  --aia-r-card: 28px;
  --aia-r-bar: 22px;
  --aia-r-panel: 18px;
  --aia-r-ctl: 14px;
  --aia-r-pill: 999px;
  --aia-shadow: 0 1px 2px rgba(20,26,46,.04), 0 12px 32px rgba(20,26,46,.06);
  --aia-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --aia-target: 44px;
}

/* Dark: charcoal, not navy. Same names, so a page switches by theme with no new class
   names. "all pages should start light" (Marcus, Nov 19): light is the default, and dark
   applies only when a page sets data-theme="dark", or data-theme="auto" (the "Match my
   device" choice) on a device set to dark. A page with no data-theme stays light whatever
   the device says. The two dark blocks hold the same values (the test checks both).
   data-theme="deep" is the org portal's and apply flow's dark choice (the sun and moon
   switch, sc_theme cookie): an alias for "dark" (SYS-746, orchestrator decision Nov 19).
   --aia-on-accent is text on --aia-accent: white in both sets (5.24:1 light, 5.81:1 dark). */
:root[data-theme="deep"],
:root[data-theme="dark"] {
  --aia-ground: #0F1012;
  --aia-card: #17181B;
  --aia-panel: #1D1F23;
  --aia-line: #2A2C31;
  --aia-line-soft: #222429;
  --aia-ink: #EDEDEF;
  --aia-ink-2: #C9CBD1;
  --aia-muted: #9C9EA6;
  --aia-accent: #2458E6;
  --aia-accent-ink: #8FB0FF;
  --aia-accent-tint: #24262B;
  --aia-selected: #24262B;
  --aia-warn-bg: #2A2614;
  --aia-warn-ink: #F2C14E;
  --aia-bad-bg: #3A1E22;
  --aia-bad-ink: #FF8A80;
  --aia-ok-bg: #12302A;
  --aia-ok-ink: #4FD1A1;
  --aia-ok-dot: #4FBF86;
  --aia-warn-dot: #E0A93A;
  --aia-bad-dot: #E5675C;
  --aia-info-dot: #8E9099;
  --aia-on-accent: #FFFFFF;
  --aia-grant: #1D1F23;
  --aia-studio: #1D1F23;
  --aia-sort: #1D1F23;
  --aia-shadow: 0 1px 0 rgba(255,255,255,.04), 0 12px 32px rgba(0,0,0,.35);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --aia-ground: #0F1012;
    --aia-card: #17181B;
    --aia-panel: #1D1F23;
    --aia-line: #2A2C31;
    --aia-line-soft: #222429;
    --aia-ink: #EDEDEF;
    --aia-ink-2: #C9CBD1;
    --aia-muted: #9C9EA6;
    --aia-accent: #2458E6;
    --aia-accent-ink: #8FB0FF;
    --aia-accent-tint: #24262B;
    --aia-selected: #24262B;
    --aia-warn-bg: #2A2614;
    --aia-warn-ink: #F2C14E;
    --aia-bad-bg: #3A1E22;
    --aia-bad-ink: #FF8A80;
    --aia-ok-bg: #12302A;
    --aia-ok-ink: #4FD1A1;
    --aia-ok-dot: #4FBF86;
    --aia-warn-dot: #E0A93A;
    --aia-bad-dot: #E5675C;
    --aia-info-dot: #8E9099;
  --aia-on-accent: #FFFFFF;
    --aia-grant: #1D1F23;
    --aia-studio: #1D1F23;
    --aia-sort: #1D1F23;
    --aia-shadow: 0 1px 0 rgba(255,255,255,.04), 0 12px 32px rgba(0,0,0,.35);
  }
}
