/* TSLA Equity Research Dashboard, per-dashboard theme (color/font tokens).
   Loaded AFTER /assets/css/01..07. Edit TSLA's palette and typeface here only.
   Brand accent: dark graphite #2b2f33, Tesla's minimalist black identity.
   White button text on it clears 13.5:1, heading-on-cream 12.4:1, so --accent
   needs NO contrast nudge. --accent-bright keeps a lighter graphite for
   non-text bright highlights. */
:root{
  color-scheme:light;
  --bg:#F6F3E9; --panel:#FFFFFF; --ink:#2E3018; --muted:#5A5A50; --line:#E4DFCF;
  --accent:#2b2f33; --accent-soft:#E4E6E9; --accent-deep:#15171a; --accent-bright:#8b95a3;
  --green:#1f6e3a;  --green-soft:#e3f1e8;
  --red:#a82323;    --red-soft:#fae3e3;
  --amber:#a86b00;  --amber-soft:#fbeed3;
  --chip:#EFEBDC;   --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, primary set to Tesla graphite; secondary/warm/cool drawn from the
     existing token palette (--blue/--amber/--teal) so charts read graphite-primary.
     Single source of colour truth: editing a token re-colours the matching series. */
  --chart-primary:#2b2f33;
  --chart-secondary:#1f4e79;
  --chart-warm:#a86b00;
  --chart-cool:#2c7873;
  --chart-positive:#1f6e3a;
  --chart-negative:#a82323;
  --chart-neutral:#5b6470;
  --chart-fill-alpha:0.12;
}
/* Dark-mode accents: graphite is lifted to a light silver against dark panels.
   Near-black button text passes via the shared --on-accent (body.dark). */
body.dark{
  --bg:#16130E; --panel:#211C15; --ink:#F2EFE3; --muted:#A8A192; --line:#322B20; --chip:#2A241B;
  --accent:#aeb6c2;
  --accent-soft:#2a2e35;
  --accent-deep:#8b95a3;
  --accent-bright:#c4ccd6;
}
