/* Light theme colour tokens -- docs/DESIGN_SYSTEM.md Section 4.2. */

:root[data-theme="light"] {
  --color-bg: #faf8f3;
  --color-surface: #ffffff;
  --color-surface-raised: #f0ece1;
  --color-border: #ddd6c7;
  --color-text-primary: #1e1a15;
  --color-text-secondary: #6b6152;
  --color-accent: #ffd700;
  --color-accent-text: #8a6d00;
  --color-success: #2e7d32;
  --color-success-text: #2e7d32;
  --color-danger: #e05252;
  --color-danger-text: #c62828;

  /* Phase G.3, docs/DESIGN_SYSTEM_V2.md Section 7. Same structural
     problem Section 13 already found and fixed for --color-accent on
     light theme: a single shared value fails AA for text use here.
     --color-live-accent (non-text fill: pulse dot, chip border -- 3:1
     threshold) clears comfortably (4.26:1 vs bg, 4.52:1 vs surface).
     --color-live-accent-text needs a separately darkened value for the
     stricter 4.5:1 text threshold -- #00838f itself only reaches
     4.26:1 against --color-bg (FAIL). #007680 (computed, not assumed)
     clears with real margin: 5.07:1 vs bg, 5.38:1 vs surface -- a
     larger margin than --color-accent-text's own near-zero 4.64/4.92:1,
     matching --color-danger-text/--color-success-text's margin instead.
     Dichromacy simulation (Machado/Oliveira/Fernandes 2009) run at
     Stage 8 against these exact values, compared pairwise to every
     other semantic colour in both themes: worst case 42.3% retained
     distinguishability (still far above the 9.6% collapse already
     found and mitigated for success/danger) -- see
     docs/DESIGN_SYSTEM.md Section 13 for the full table. No fix
     needed; colour is still never the sole "live" signal regardless
     (always paired with a text label). */
  --color-live-accent: #00838f;
  --color-live-accent-text: #007680;

  --color-border-subtle: #eeebe3;

  /* Lower opacity than dark theme -- the same inset value on a white
     surface reads as dirt/grime rather than a recess at dark theme's
     opacity. */
  --shadow-chart-recessed: inset 0 1px 4px rgba(0, 0, 0, 0.12);
}
