/* ============================================
   MJI — Data-Visualisation Tokens (--dv- layer)
   A distinct, namespaced layer for charts & figures. SEPARATE from the UI
   tokens: it never overwrites UI neutrals or UI semantics. (The UI "danger"
   colour --mji-danger #c0492f is a different role from --dv-alert below.)

   Default behaviour — lead TEAL-DOMINANT. Build categorical charts from the
   cool set first; use yellow only as a single highlight; use alert only for
   negative/critical data. See readme.md "Chart usage rule".
   ============================================ */

:root {
  /* ---- Text & background ---- */
  --dv-text:        #1e1e1b;  /* chart/figure labels — matches UI body text */
  --dv-text-muted:  #85847e;
  --dv-line:        #d4d2cc;  /* gridlines / hairlines */
  --dv-bg-soft:     #e1ecef;  /* soft panel wash behind a plot */
  --dv-bg:          #ffffff;

  /* ---- Categorical — use STRICTLY in this order (cool, teal-dominant) ---- */
  --dv-cat-1: #3cc0c0;
  --dv-cat-2: #0a7791;
  --dv-cat-3: #002130;
  --dv-cat-4: #85847e;

  /* ---- Extended categorical — ONLY when categories exceed the cool set ---- */
  --dv-cat-5: #ff8848;
  --dv-cat-6: #fdd34f;
  --dv-cat-7: #b2e3f6;

  /* ---- Roles ---- */
  --dv-alert:     #e5683f;  /* negative / critical data ONLY */
  --dv-highlight: #fdd34f;  /* single emphasis ONLY (one series/point) */

  /* ---- Data greys (baselines / reference series) ---- */
  --dv-baseline:       #85847e;
  --dv-baseline-light: #E9E9E5;

  /* ---- Divergent — teal <-> orange (comparison around a midpoint) ---- */
  --dv-div-to-1: #085466;
  --dv-div-to-2: #316f81;
  --dv-div-to-3: #8dc7d7;
  --dv-div-to-4: #d4d2cc;  /* neutral midpoint */
  --dv-div-to-5: #ffa14d;
  --dv-div-to-6: #e5683f;
  --dv-div-to-7: #7a2410;

  /* ---- Divergent — teal <-> neutral ---- */
  --dv-div-tn-1: #085466;
  --dv-div-tn-2: #316f81;
  --dv-div-tn-3: #8dc7d7;
  --dv-div-tn-4: #d4d2cc;  /* neutral midpoint */
  --dv-div-tn-5: #acaaa4;
  --dv-div-tn-6: #605f5a;
  --dv-div-tn-7: #3e3d38;

  /* ---- Divergent — orange <-> teal (reverse of teal<->orange) ---- */
  --dv-div-ot-1: #7a2410;
  --dv-div-ot-2: #e5683f;
  --dv-div-ot-3: #ffa14d;
  --dv-div-ot-4: #d4d2cc;  /* neutral midpoint */
  --dv-div-ot-5: #8dc7d7;
  --dv-div-ot-6: #316f81;
  --dv-div-ot-7: #085466;

  /* ---- Sequential — cool (low -> high) ---- */
  --dv-seq-cool-1: #8dc7d7;
  --dv-seq-cool-2: #6ea9b9;
  --dv-seq-cool-3: #508b9d;
  --dv-seq-cool-4: #316f81;
  --dv-seq-cool-5: #085466;

  /* ---- Sequential — warm / severity (low -> high) ---- */
  --dv-seq-warm-1: #ffdea6;
  --dv-seq-warm-2: #ffa14d;
  --dv-seq-warm-3: #e5683f;
  --dv-seq-warm-4: #b3402a;
  --dv-seq-warm-5: #7a2410;

  /* ---- Sequential — neutral (low -> high) ---- */
  --dv-seq-neutral-1: #d4d2cc;
  --dv-seq-neutral-2: #acaaa4;
  --dv-seq-neutral-3: #85847e;
  --dv-seq-neutral-4: #605f5a;
  --dv-seq-neutral-5: #3e3d38;
}
