/* ---------- Colour system: one family per case study ----------
   --cs-tint   hero band, homepage card, KPI tiles, highlight panels (large areas)
   --cs-accent numbers, step dots, rules, selected tabs, prototype markers (small marks only)
   Other tints appear only when a section compares two sides. Sticky notes stay sticky-note yellow. */
.cs-tandm     { --cs-tint: var(--card-yellow);   --cs-accent: #8a6d00; }
.cs-clearcalc { --cs-tint: var(--card-mint);     --cs-accent: #117594; }
.cs-praxis    { --cs-tint: var(--card-lavender); --cs-accent: #6a55c9; }
.cs-adas      { --cs-tint: var(--card-sky);      --cs-accent: #2f62c8; }
:root[data-theme="dark"] .cs-tandm { --cs-accent: #e6c25a; }
:root[data-theme="dark"] .cs-clearcalc { --cs-accent: #4fb3d4; }
:root[data-theme="dark"] .cs-praxis { --cs-accent: #a99bf0; }
:root[data-theme="dark"] .cs-adas { --cs-accent: #86a9f0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cs-tandm { --cs-accent: #e6c25a; }
  :root:not([data-theme="light"]) .cs-clearcalc { --cs-accent: #4fb3d4; }
  :root:not([data-theme="light"]) .cs-praxis { --cs-accent: #a99bf0; }
  :root:not([data-theme="light"]) .cs-adas { --cs-accent: #86a9f0; }
}

/* The hero band always takes the case study's tint */
.cs[class*="cs-"] .hero-band { --band: var(--cs-tint); }

/* Tandm outcome numbers: one tint, not a rainbow */
.cs-tandm #outcomes .oc-stats li { background: var(--cs-tint); }

/* The prototype sits on white product screens, so it keeps the light-mode accent in dark mode too */
.cs-clearcalc .proto { --cs-accent: #117594; }

/* Section numbers ("01 · The problem") take the case study's accent (Nov 1, 2026).
   Large text (24–28px), so every accent passes 4.5:1 in light and dark. */
.cs[class*="cs-"] .chapter .num { color: var(--cs-accent); }
