/* tokens.css - CCI V4 "Tooling Parchment" skin (product / internal long-dwell surface).
   Source of truth: CCI_Charter.md, Skin A. A study lab is an internal operational
   surface, so ADR-006 selects V4, never the public V4_live skin and never black.
   Token format follows the charter's variable-name mapping (W3C DTCG-aligned). */

:root {
  /* Canvas and surfaces */
  --bg: #F4F1E8;          /* warm parchment page canvas */
  --surface: #FFFFFF;     /* cards, panels */
  --surface-sunk: #EFEBDD;/* recessed wells (slider tracks, code) */

  /* Text */
  --text: #1A1F2A;        /* primary body */
  --text-muted: #5A6170;  /* secondary */

  /* Accents (V4 product) */
  --amber: #9C5B0B;       /* primary accent */
  --amber-bright: #DAA155;/* decorative fills only */
  --steel: #1F5F75;       /* tech secondary, links */
  --cta: #9C5B0B;
  --cta-deep: #7B470A;

  /* Semantics */
  --ok: #1A6B3D;          /* healthy / converged */
  --danger: #9A2E18;      /* alerts / diverged */
  --divider: #D7D2C2;

  /* Series palette for eCharts (orthogonal, parchment-safe, no neon) */
  --series-1: #1F5F75;    /* steel */
  --series-2: #9C5B0B;    /* amber */
  --series-3: #1A6B3D;    /* green */
  --series-4: #7A4E86;    /* muted violet for a 4th line */
  --series-5: #2A4D69;    /* navy, for multi-echelon plots */
  --series-6: #A33B20;    /* burnt red */
  --series-7: #4A6B22;    /* olive */
  --series-8: #71587A;    /* plum */
  --series-rate: #9A2E18; /* net-flow / rate overlay */

  /* Radii - charter: pill (999px) is forbidden */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* 8 px base grid */
  --u: 8px;
  --u2: 16px;
  --u3: 24px;
  --u4: 32px;

  /* Type */
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;

  --maxw: 1280px;         /* charter max content width */
}
