/* MU Equity Research Dashboard, per-dashboard theme (color/font tokens).
   Loaded AFTER /assets/css/01..07. Edit MU's palette and typeface here only.
   Three brand-color tokens drive every hero/header/hover/highlight in the shared engine:
     --accent          primary brand color (used everywhere)
     --accent-deep     darker shade, hero gradient end stop, hover states
     --accent-bright   editorial highlight, ticker callouts, byline strong, eyebrows */
:root{
  color-scheme:light;
  /* Neutral canvas, Investment Intelligence Lab */
  --bg:#F6F3E9;
  --panel:#FFFFFF;
  --ink:#2E3018;
  --muted:#5A5A50;
  --line:#E4DFCF;
  --chip:#EFEBDC;

  /* Brand accents, MU burgundy preserved */
  --accent:#7a1a2f;
  --accent-soft:#E8D6D9;
  --accent-deep:#5c1424;
  --accent-bright:#f0c969;

  /* Status colors */
  --green:#1f6e3a;  --green-soft:#DCE8D9;
  --red:#a82323;    --red-soft:#F0D8CE;
  --amber:#a86b00;  --amber-soft:#F0DEB8;
  --blue:#1f4e79;   --teal:#2c7873;

  --font-serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;

  /* Chart palette, read by assets/js/charts-core.js#getChartPalette() and
     spread into MU dashboard.js's `colors` map. Namespacing under --chart-*
     keeps chart roles (primary/secondary/warm/cool/positive/negative/neutral)
     decoupled from semantic body tokens (--accent, --green, --red), so
     editorial color drift (e.g. a Q3-FY26 brand refresh) doesn't silently
     re-color the line/bar series. Light values picked to be visually
     IDENTICAL to MU's previous hardcoded chart literals, the only intended
     shift is amber #8a5500 → #a86b00 (within the ~2% chroma "identical"
     threshold; bu_mix doughnut already used #a86b00 via palette[2]). */
  --chart-primary:#7a1a2f;
  --chart-secondary:#1f4e79;
  --chart-warm:#a86b00;
  --chart-cool:#2c7873;
  --chart-positive:#1f6e3a;
  --chart-negative:#a82323;
  --chart-neutral:#5b6470;
  --chart-fill-alpha:0.12;
}
/* MU dark-mode tokens, override shared 05-dark-mode-and-modes.css to keep
   the Investment Intelligence Lab palette internally consistent. */
body.dark{
  --bg:#16130E;
  --panel:#211C15;
  --ink:#F2EFE3;
  --muted:#A8A192;
  --line:#322B20;
  --chip:#2A241B;

  --accent:#E07A8C;
  --accent-soft:#33262B;
  --accent-deep:#3d0d1c;
  --accent-bright:#f0c969;

  --green:#5BBF7C;   --green-soft:#1F3525;
  --red:#E06464;     --red-soft:#3A1F1F;
  --amber:#E0A040;   --amber-soft:#3A2C12;
  --blue:#5A8DC4;    --teal:#5BA39E;

  /* Chart palette, dark-mode shifts. Mostly tracks the role tokens already
     redefined above (--chart-primary = dark --accent etc.), but --chart-fill-alpha
     bumps to 0.18 because the 12% under-area fill washes out against the
     dark canvas when composed against the lighter dark-mode primary (#E07A8C). */
  --chart-primary:#E07A8C;
  --chart-secondary:#5A8DC4;
  --chart-warm:#E0A040;
  --chart-cool:#5BA39E;
  --chart-positive:#5BBF7C;
  --chart-negative:#E06464;
  --chart-neutral:#A8A89C;
  --chart-fill-alpha:0.18;
}
/* Pin sticky header and footer flush with the page --bg so MU's dark mode reads
   seamless with the warm-charcoal chrome (06 defaults header.top to #16130E and
   footer.site-footer to #100D08; this keeps both flush with MU's --bg). */
body.dark header.top { background: #16130E !important; }
body.dark footer.site-footer { background: #16130E; }
