/* Statvon chart tokens (stage 1 of collab/ONE_CHART_SYSTEM_PLAN_20261118.md, 18 Nov 2026).
   ONE place for the values every chart page shares: font, text and muted text, grid, positive / negative colour, tooltip box, bar and line sizes, the five family
   colours (--pal-*), an 8-colour colour-blind-safe set for multi-series charts (--qc-cat-1..8) and the View 7/8 layout tokens.
   Light is :root, dark is :root[data-theme="dark"] (the attribute every page sets before first paint). Read by statvon_chart/tokens.js (Chart.defaults) and by CSS.
   Values were taken from what the pages used on 18 Nov 2026 (entity.css, entity_composite.js, statvon_palette.js); the only intended visible changes are listed in
   collab/chart_tweaks_20261118.md (muted text = the entity page's, one negative colour, one tooltip box, Inter on chart.html and the section page).
   Chart colours are independent of brand/statvon/brand-tokens.css on purpose (owner decision, 18 Nov 2026).
   Roll back: remove the <link> to this file and the <script> tag of tokens.js (every reader has a built-in fallback with the same values). */
:root {
  /* text and structure */
  --qc-font: Inter, -apple-system, "Segoe UI", sans-serif;      /* what Chart.defaults.font.family was on the main and entity pages */
  --qc-chart-text: #475569;                                      /* strong chart text (titles, legend, value labels): the pages' --ink-2 */
  --qc-chart-muted: #5b6b82;                                     /* axis tick text: the ENTITY page's --muted (better contrast than the main page's #94a3b8 / #64748b) */
  --qc-chart-grid: rgba(15, 23, 42, .07);
  --qc-chart-surface: #ffffff;                                   /* fill under markers and tooltips */
  /* positive / negative: ONE negative colour for every chart (the entity page's) */
  --qc-chart-pos: #15803d;
  --qc-chart-neg: #dc2626;
  /* tooltip box (one themed look: surface, ink, line) */
  --qc-tip-bg: #ffffff;
  --qc-tip-ink: #0f172a;
  --qc-tip-body: #475569;
  --qc-tip-line: #e8ebf0;
  --qc-radius-tip: 8px;
  /* marks */
  --qc-radius-bar: 2px;
  --qc-line-w: 2.25px;
  --qc-bar-max: 36px;
  /* family colours (names kept: --pal-* is used by 12 files): blue = scale, teal = profit and cash, indigo = people, amber = rates and prices, slate = government and environment */
  --pal-blue: #2563eb; --pal-teal: #0d9488; --pal-indigo: #4f46e5; --pal-amber: #b45309; --pal-slate: #64748b;
  /* categorical set for multi-series charts: colour-blind-safe (Okabe-Ito derived), the same list as entity_composite.js */
  --qc-cat-1: #0072B2; --qc-cat-2: #C25400; --qc-cat-3: #00846B; --qc-cat-4: #B5508A; --qc-cat-5: #8F6A00; --qc-cat-6: #2B83BE; --qc-cat-7: #6A5ACD; --qc-cat-8: #8A5A44;
  --qc-cat-other: #6B7686;
  /* View 7 / 8 layout tokens (values unchanged from entity.css and research-view.css) and the page background of the entity pages */
  --qc-col-max: 1240px; --qc-col-pad: 24px; --qc-nav-h: 52px; --qc-top: 10px;
  --qc-bg: #edf3fa;
}
@media (max-width: 860px) { :root { --qc-top: 20px; } }
@media (max-width: 700px) { :root { --qc-top: 12px; } }
@media (max-width: 560px) { :root { --qc-col-pad: 16px; } }
:root[data-theme="dark"] {
  --qc-chart-text: #a3aebd;
  --qc-chart-muted: #8190a5;
  --qc-chart-grid: rgba(255, 255, 255, .07);
  --qc-chart-surface: #11141a;
  --qc-chart-pos: #4ade80;
  --qc-chart-neg: #f87171;
  --qc-tip-bg: #11141a;
  --qc-tip-ink: #f1f5f9;
  --qc-tip-body: #a3aebd;
  --qc-tip-line: #1f242d;
  --pal-blue: #5b8def; --pal-teal: #2dd4bf; --pal-indigo: #818cf8; --pal-amber: #fbbf24; --pal-slate: #94a3b8;
  --qc-cat-1: #56B4E9; --qc-cat-2: #E69F00; --qc-cat-3: #2FC9A0; --qc-cat-4: #E39BC4; --qc-cat-5: #F0E442; --qc-cat-6: #F2733B; --qc-cat-7: #9C8CFF; --qc-cat-8: #D2A38C;
  --qc-cat-other: #9AA6B8;
  --qc-bg: #0a0c10;
}
