/* ============================================================================
   PROMISE THEME — DS-BRIDGED (autonomous night, 2026-07-23).
   The --p-* tokens now CONSUME the Design System (promise_ds_v1) values, so the
   ~80 pages still on this file adopt the DS palette + typography with ZERO logic
   change (nothing removed; fully reversible). The DS is the single source of
   visual truth; this file is a temporary compatibility bridge until each page is
   rebuilt on ds_v1 directly. IT IS FORBIDDEN TO CREATE NEW COLORS.
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');
:root{
  /* ---- Backgrounds → DS navies ---- */
  --p-bg:#071320;            /* --ds-bg */
  --p-bg-2:#0A1B2C;          /* --ds-bg-2 */
  --p-surface:#0E1F33;       /* --ds-surface */
  --p-surface-2:#14263C;     /* --ds-surface-2 */
  /* ---- Promise Gold (unchanged — already the DS gold) ---- */
  --p-gold:#D6AF4B;
  --p-gold-hover:#E7CB7A;
  --p-gold-border:#B8963A;
  /* ---- Text → DS ink scale ---- */
  --p-text:#EEF3F9;          /* --ds-ink */
  --p-text-2:#BDC9D8;        /* --ds-ink-2 */
  --p-muted:#8494A6;         /* --ds-ink-3 */
  /* ---- Status → DS semantic (readable inks on dark) ---- */
  --p-buy:#6FD3A0;           /* --ds-buy-ink */
  --p-watch:#E7CB7A;         /* --ds-gold-soft */
  --p-blocked:#E08069;       /* --ds-reject ink */
  --p-info:#7FC0E0;          /* --ds-verified ink */
  --p-unknown:#8494A6;       /* --ds-ink-3 */
  /* ---- Borders → DS graphite hairlines (visible but discreet) ---- */
  --p-border:rgba(228,236,247,.10);
  --p-border-hover:rgba(228,236,247,.18);
  --p-border-active:#D6AF4B;
  /* ---- Charts → DS chart theming ---- */
  --chart-primary:#D6AF4B; --chart-blue:#4FA3C7; --chart-green:#3E9A6B;
  --chart-red:#C1553F; --chart-gray:#8494A6;
  --chart-grid:rgba(228,236,247,.075); --chart-axis:#8494A6;
  --chart-tooltip-bg:#14263C; --chart-tooltip-border:rgba(228,236,247,.16);
  /* ---- Type / metrics / spacing → DS ---- */
  --p-font:"Space Grotesk",ui-sans-serif,-apple-system,"Segoe UI","Inter",Roboto,sans-serif;
  --p-mono:"Space Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --p-radius:12px; --p-pad:24px; --p-gap:8px; --p-section:32px; --p-block:48px;
  --p-shadow:0 1px 1px rgba(0,0,0,.30), 0 12px 30px -18px rgba(0,0,0,.65);

  /* ---- Back-compat aliases (existing pages inherit the DS without a rewrite) ---- */
  --bg:#071320; --pds-bg:#071320; --pl:#0E1F33; --surface:#0E1F33; --pds-surface:#0E1F33;
  --pl2:#14263C; --pds-surface-2:#14263C; --panel:#0E1F33;
  --gold:#D6AF4B; --pds-gold:#D6AF4B; --gold2:#E7CB7A; --pds-gold-dim:rgba(214,175,75,.30);
  --tx:#EEF3F9; --pds-text:#EEF3F9; --soft:#BDC9D8; --pds-text-2:#BDC9D8; --text-2:#BDC9D8;
  --mu:#8494A6; --muted:#8494A6; --pds-muted:#8494A6; --faint:#6C7D91; --pds-faint:#6C7D91;
  --grn:#6FD3A0; --green:#6FD3A0; --pds-green:#6FD3A0;
  --amb:#E7CB7A; --amber:#E7CB7A; --pds-amber:#E7CB7A;
  --red:#E08069; --pds-red:#E08069;
  --line:rgba(228,236,247,.10); --pds-line:rgba(228,236,247,.10); --bd:rgba(228,236,247,.10);
  --line-2:rgba(228,236,247,.18); --pds-line-2:rgba(228,236,247,.18); --bd2:rgba(228,236,247,.18);
}
/* app body owns the dark page background */
.p-body{background:var(--p-bg,#071320);font-family:var(--p-font)}
