/* ══════════════════════════════════════════════════════════════════════════
 * POWERGRID ECOSYSTEM · shared design tokens
 *
 * One source of truth for the dark-Palantir aesthetic shared by:
 *   ─ Powergrid Map        (/)
 *   ─ Powergrid Constellation  (/#/constellation)
 *
 * Deal Atlas (floridahousingai.com) is intentionally NOT here — it has its
 * own cream-editorial aesthetic. Only shared components (intel packet,
 * civic callout) will resolve tokens against both palettes.
 *
 * Both raw brand names and semantic aliases are exposed so surfaces can
 * evolve without breaking each other.
 * ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ── BRAND COLORS (from Constellation, the aesthetic anchor) ── */
  --bg:            #05080a;
  --bg-2:          #070b14;
  --bg-3:          #0a1424;
  --panel:         #0a0f12;
  --panel-2:       #0d1418;

  --line:          rgba(120,160,180,0.14);
  --line-2:        rgba(120,160,180,0.24);
  --border:        rgba(120,160,180,0.14);
  --border-strong: rgba(120,220,200,0.35);

  --ink:           #d9e5df;
  --ink-2:         #8fa3a0;
  --ink-3:         #5b6b6b;
  --ink-dim:       #8fa3a0;
  --ink-mute:      #5b6b6b;

  /* ── ACCENT COLORS ── */
  --mint:          #7bffd0;
  --mint-dim:      rgba(123,255,208,0.5);
  --accent:        #7bffd0;               /* semantic alias for mint */
  --accent-dim:    rgba(123,255,208,0.5);

  --mag:           #ff6ac1;
  --accent-2:      #ff6ac1;               /* semantic alias for mag */

  --cyan:          #6affe7;
  --violet:        #b48cff;
  --orange:        #ff9a4a;
  --accent-3:      #ff9a4a;               /* semantic alias for orange */
  --gold:          #ffd166;

  --accent-4:      #6ea8ff;               /* blue accent (legacy) */
  --red:           #ff4e4e;

  /* ── PARTY BADGES ── */
  --party-d:       #6ab7ff;
  --party-r:       #ff7676;
  --party-n:       #a08fff;

  /* ── TYPE ── */
  --sans:          'Inter', 'SF Pro Text', system-ui, sans-serif;
  --mono:          'JetBrains Mono', 'SF Mono', 'Consolas', ui-monospace, monospace;
  --font-sans:     var(--sans);
  --font-mono:     var(--mono);

  /* ── SHADOWS / EFFECTS ── */
  --sh-panel:      0 6px 20px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.02) inset;
  --sh-hover:      0 8px 28px rgba(0,0,0,.6), 0 0 0 1px var(--border-strong) inset;
  --glow-mint:     0 0 24px rgba(123,255,208,0.35);
  --glow-mag:      0 0 24px rgba(255,106,193,0.35);

  /* ── MOTION ── */
  --ease:          cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast:      0.16s;
  --dur-med:       0.28s;
  --dur-slow:      0.5s;

  /* ── COMPATIBILITY ALIASES ── (so legacy vars keep resolving) */
  --muted:         var(--ink-2);      /* Map view legacy */
  --fg:            var(--ink);        /* Constellation legacy */
  --mute:          var(--ink-mute);   /* Constellation legacy */
  --accent-fg:     #041210;           /* dark text on mint pill */
  --accent-glow:   var(--glow-mint);
}
