/* ═══════════════════════════════════════════════════════════════════════
   Public Good Tracker — design tokens.  Lifted verbatim from DESIGN.html.
   This is the ONLY place a colour may be written as a hex value.
   Loaded by the React app (index.css) and by the server-rendered /admin.
   ═══════════════════════════════════════════════════════════════════════ */

:root{
  /* ground — warm neutral, biased a half-step toward the ochre in the role
     set so it reads as chosen rather than inherited #FFF */
  --ground:#F7F6F2; --surface:#FFFFFF; --sunken:#EFEDE7;
  --ink:#15181B; --ink-2:#5B6166; --ink-3:#8A9095;
  --rule:#E3E0D8; --rule-2:#CFCBC1;

  /* the five roles — categorical, never a ramp. Always paired with a letter,
     so hue is redundant encoding and colour-blind readers lose nothing. */
  --r-convener:#0E7490; --r-bridge:#6D28D9; --r-maker:#92400E;
  --r-signal:#1D4ED8;   --r-local:#BE185D;

  /* state — a different job from the roles, so a different treatment:
     roles are tinted chips, state is solid. */
  --go:#15803D; --go-soft:#DCFCE7;
  --warn:#D97706; --warn-soft:#FEF3C7;
  --stop:#B91C1C; --stop-soft:#FEE2E2;
  --info:#1D4ED8; --info-soft:#DBEAFE;

  --shadow:0 1px 2px rgba(20,24,28,.06), 0 1px 1px rgba(20,24,28,.04);
  --disp:"Archivo",system-ui,sans-serif;
  --body:"IBM Plex Sans",system-ui,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,monospace;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --ground:#141618; --surface:#1C1F22; --sunken:#0F1113;
    --ink:#E8E6E1; --ink-2:#A0A6AB; --ink-3:#6E767C;
    --rule:#2A2E32; --rule-2:#3A4046;
    --r-convener:#22D3EE; --r-bridge:#A78BFA; --r-maker:#FBBF24;
    --r-signal:#60A5FA;   --r-local:#F472B6;
    --go:#4ADE80; --go-soft:#14331F;
    --warn:#FBBF24; --warn-soft:#3A2A08;
    --stop:#F87171; --stop-soft:#3A1416;
    --info:#60A5FA; --info-soft:#122542;
    --shadow:0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"]{
  --ground:#141618; --surface:#1C1F22; --sunken:#0F1113;
  --ink:#E8E6E1; --ink-2:#A0A6AB; --ink-3:#6E767C;
  --rule:#2A2E32; --rule-2:#3A4046;
  --r-convener:#22D3EE; --r-bridge:#A78BFA; --r-maker:#FBBF24;
  --r-signal:#60A5FA;   --r-local:#F472B6;
  --go:#4ADE80; --go-soft:#14331F;
  --warn:#FBBF24; --warn-soft:#3A2A08;
  --stop:#F87171; --stop-soft:#3A1416;
  --info:#60A5FA; --info-soft:#122542;
  --shadow:0 1px 2px rgba(0,0,0,.4);
}

/* ── Stage ramp for the board's column headers (from DESIGN.html .col.s1–s5).
   Darkens left to right on light ground; on dark ground the same five values
   run the other way so the right-hand columns still read as further along. ── */
:root{ --s1:#A8AEB4; --s2:#8A9298; --s3:#6C767E; --s4:#4E5A63; --s5:#334049; }
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){ --s1:#4E5A63; --s2:#6C767E; --s3:#8A9298; --s4:#A8AEB4; --s5:#CFD3D7; }
}
:root[data-theme="dark"]{ --s1:#4E5A63; --s2:#6C767E; --s3:#8A9298; --s4:#A8AEB4; --s5:#CFD3D7; }

/* ── Ink: the donor-facing grayscale (gate form, deck). Same variable
   names, scoped, so anything a donor or creator sees stays brand-neutral
   until Public Good has an identity. Overrides the system above. ───── */
.ink{
  --ground:#191919; --surface:#0F0F0F; --sunken:#0F0F0F;
  --ink:#D8D8D8; --ink-2:#8C8C8C; --ink-3:#5A5A5A;
  --rule:#333333; --rule-2:#333333;
  --go:#FFFFFF; --warn:#F2F2F2; --stop:#F2F2F2; --info:#FFFFFF;
  --go-soft:#141414; --warn-soft:#141414; --stop-soft:#141414; --info-soft:#141414;
  --shadow:none;
  /* gate-only roles for the accent bar and button */
  --accent:#FFFFFF; --on-accent:#0C0C0C; --raised:#141414;

  /* The five chapters, one hue each — the same key the decks use, so the
     front door and the deck a visitor is later sent agree about which city
     is which. Five equal hues is a key, not an identity: each sits on the
     city's own name, so nothing is lost without it. These are the dark-ground
     steps, because everything Ink is dark. */
  --c-sf:#22D3EE; --c-venice:#A78BFA; --c-brooklyn:#FBBF24;
  --c-austin:#60A5FA;   --c-hershey:#F472B6;
}
