/*
 * Boise Civic Trust — semantic tokens.
 *
 * Meaningful roles mapped onto foundation values. Components consume
 * these. The default scheme is the archival light surface (Warm Ivory
 * field, Deep Green ink). The dark scheme is Deep Green surface with
 * Warm Ivory ink — institutional, not cyberpunk.
 */

:root {
  --color-bg: var(--bct-warm-ivory);
  --color-surface: var(--bct-ivory-raised);
  --color-surface-strong: var(--bct-ivory-sunken);
  --color-text: var(--bct-deep-green);
  --color-text-secondary: var(--bct-graphite);
  --color-text-faint: rgba(28, 43, 36, 0.55);
  --color-accent: var(--bct-civic-gold);
  --color-accent-strong: var(--bct-gold-deep);
  --color-focus: var(--bct-gold-deep);
  --color-danger: var(--bct-danger);
  --color-success: var(--bct-success);
  --color-info: var(--bct-info);

  --color-border: rgba(28, 43, 36, 0.22);
  --color-border-strong: rgba(28, 43, 36, 0.42);
  --rule: 1px solid var(--color-border);
  --rule-strong: 1px solid var(--color-border-strong);

  /* Ink-on-dark roles for Deep Green framed surfaces. */
  --color-dark-bg: var(--bct-deep-green);
  --color-dark-surface: var(--bct-green-raised);
  --color-dark-text: var(--bct-warm-ivory);
  --color-dark-text-secondary: rgba(230, 224, 213, 0.66);
  --color-dark-border: rgba(230, 224, 213, 0.24);

  /* ---- The civic map ----
     Atlas plate tonality. The valley outside the limits recedes as a
     deeper, grayer-warm ground; the city reads as the lit surface.
     Roads are drawn in Deep Green ink at descending strengths; water
     carries the one believable deep tone. Every hue is a desaturated
     derivation of the four brand colors — no new families. */
  --map-land: #ebe5d8;
  --map-land-outside: #c9c2b1;
  --map-water: #7e9285;
  --map-water-line: #6d8577;
  --map-park: #c7cbaa;
  --map-reserve: #cdccae;
  --map-road: rgba(28, 43, 36, 0.3);
  --map-road-major: rgba(28, 43, 36, 0.58);
  --map-road-motorway: #26362c;
  --map-road-minor: rgba(28, 43, 36, 0.22);
  --map-road-local: rgba(28, 43, 36, 0.16);
  --map-road-context: rgba(74, 76, 71, 0.14);
  --map-plaza: rgba(184, 154, 90, 0.18);
  --map-plaza-line: rgba(140, 112, 60, 0.5);
  --map-rail: rgba(74, 76, 71, 0.45);
  --map-pathway: rgba(53, 95, 73, 0.4);
  --map-greenbelt: rgba(53, 95, 73, 0.68);
  --map-boundary: rgba(28, 43, 36, 0.6);
  --map-boundary-tick: rgba(28, 43, 36, 0.26);
  --map-neighborhood-line: rgba(28, 43, 36, 0.08);
  --map-label: var(--bct-graphite);
  --map-label-strong: var(--bct-deep-green);
  --map-landmark: var(--bct-gold-deep);
  --map-halo: rgba(235, 229, 216, 0.9);

  /* Atlas chrome: plate furniture drawn over the map surface. */
  --atlas-ink: rgba(28, 43, 36, 0.78);
  --atlas-ink-faint: rgba(28, 43, 36, 0.45);
  --atlas-plate: rgba(235, 229, 216, 0.88);

  /* Civic object states on the map. Color supports the distinction;
     form and label carry it (BRAND_GUIDELINES §16). */
  --object-condition: var(--bct-graphite);
  --object-idea: var(--bct-deep-green);
  --object-project: var(--bct-deep-green);
  --object-completed: var(--bct-graphite);
  --object-stewardship: var(--bct-success);
  --object-selected: var(--bct-gold-deep);

  /* Data / status communication (never color-only). */
  --status-neutral-bg: rgba(74, 76, 71, 0.12);
  --status-active-bg: rgba(53, 95, 73, 0.14);
  --status-attention-bg: rgba(184, 154, 90, 0.2);
  --status-danger-bg: rgba(122, 56, 47, 0.14);
}
