/* TSM (Taiwan Semiconductor / TSMC) Equity Research Dashboard, per-dashboard theme (color/font tokens).
   Loaded AFTER /assets/css/01..07. Edit TSM's palette and typeface here only.
   Brand accent: "TSMC red", the red of the wordmark. It is a true, deep red, so it takes
   WHITE button/pill text (not the light-accent near-black pattern): --on-accent is pinned to #fff
   in both modes, and --accent stays dark enough to clear 4.5:1 white-on-red. --accent-bright is a
   brighter red used only as TEXT on the dark hero/header. --blue (#2C7BB6) is the chart secondary so
   the platform / node series read distinctly against the red primary. */
:root{
  color-scheme:light;
  --bg:#F6F3E9; --panel:#FFFFFF; --ink:#2E3018; --muted:#5A5A50; --line:#E4DFCF; --chip:#EFEBDC;
  --accent:#C8102E; --on-accent:#ffffff; --accent-soft:#F9DEE3; --accent-deep:#9C0C22; --accent-bright:#E63950;
  --green:#1f6e3a;  --green-soft:#e3f1e8;
  --red:#a82323;    --red-soft:#fae3e3;
  --amber:#a86b00;  --amber-soft:#fbeed3;
  --blue:#2C7BB6;   --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 = TSMC red; secondary = a blue (#2C7BB6) so the platform / node
     mixes read distinctly. Single source of colour truth: editing a token re-colours the series. */
  --chart-primary:#C8102E;
  --chart-secondary:#2C7BB6;
  --chart-warm:#a86b00;
  --chart-cool:#2c7873;
  --chart-positive:#1f6e3a;
  --chart-negative:#a82323;
  --chart-neutral:#5b6470;
  --chart-fill-alpha:0.12;
}
/* Dark-mode accents: a marginally brighter red to pop on warm-charcoal panels, kept dark enough
   that the pinned white --on-accent still clears 4.5:1 on buttons/pills. */
body.dark{
  --bg:#16130E; --panel:#211C15; --ink:#F2EFE3; --muted:#A8A192; --line:#322B20; --chip:#2A241B;
  --accent:#D11F3D;
  --on-accent:#ffffff;
  --accent-soft:#2a1014;
  --accent-deep:#C8102E;
  --accent-bright:#F2667C;
}
