/* Light theme — overrides proposalone.css design tokens when
   data-theme="light" is set on <html>. Default (no attribute or
   data-theme="dark") keeps the dark-mode tokens from proposalone.css.

   Cool palette (redesign, 2026-10-13). Every text token here clears
   WCAG AA 4.5:1 on BOTH --bg and --sur, and white text clears 4.5:1 on
   --std; test/lib/theme-contrast.test.js parses this file and pins it.
   Keep values as 6-digit hex (the test reads them literally). */

:root[data-theme="light"] {
  /* Surfaces — cool grey-blue ground, white cards */
  --bg:    #F3F5F8;
  --bgw:   #EEF1F5;
  --navbg: #FFFFFF;
  --sur:   #FFFFFF;
  --sur2:  #F6F8FA;
  --sur3:  #EAEEF3;

  /* Borders */
  --bdr:   #E1E6EC;
  --bdr2:  #CDD5DE;

  /* Text — ink, dark slate, medium slate */
  --tx:    #0E1014;
  --txd:   #3D4654;
  --txm:   #5B6573;

  /* Steel blue — in light mode the link/accent colour IS the primary
     button colour (the dark theme's lighter --st is a text colour only
     on dark surfaces; it fails on white). */
  --st:    #2D6A9F;
  --std:   #2D6A9F;
  --stdh:  #24557F;
  --stb:   #2D5F8B;
  --stg:   rgba(45, 106, 159, 0.10);

  /* Status colours — strong fg over a tinted bg (chips use the pair) */
  --amb:   #80530E;
  --ambd:  rgba(128, 83, 14, 0.12);
  --grn:   #2A6A4A;
  --grnd:  rgba(42, 106, 74, 0.12);
  --red:   #A63C3C;
  --redd:  rgba(166, 60, 60, 0.12);
}

/* Dark mode: brand.css already lifts --txd / --txm for AA contrast on
   the dark surfaces. Reaffirm the lifted values here so the explicit
   data-theme="dark" attribute (set by the theme switcher) lands
   identically to the implicit default. */
:root[data-theme="dark"] {
  --txd: #C3CAD3;
  --txm: #9AA3AE;
}
