/* EdWise DEFAULT brand palette ("Royal Scholar") -- the shared default across all apps. It
   overrides only the BRAND tokens on top of the Material 3 token scaffold. Semantic tokens
   (success/warning/danger/info, base shades, chart series) are intentionally left alone so they
   stay consistent across every brand. A per-client palette is this file with different values.
   All values are MCU-generated from the brand royal #004EFF (H276 C80) -- provenance in
   .tooling/theme-gen + docs/superpowers/specs/2026-06-09-edwise-theme-design.md.
   NOTE: keep palette files plain ASCII -- decorative unicode in comments can break the parse. */
:root {
    --rz-primary:         #004af2;             /* Royal -- brand #004EFF calibrated to tone 40 */
    --rz-primary-light:   #dde1ff;             /* P-T90 container */
    --rz-primary-lighter: rgba(0, 74, 242, 0.12);
    --rz-primary-dark:    #0040d6;             /* P-T35 */
    --rz-primary-darker:  #001c6c;             /* P-T15 */
    --rz-on-primary:         #ffffff;
    --rz-on-primary-light:   #001454;          /* P-T10 */
    --rz-on-primary-lighter: #001454;
    --rz-on-primary-dark:    #ffffff;
    --rz-on-primary-darker:  #dde1ff;

    /* Chrome: royal-navy sidebar (H276 C32) with azure/sky actives -- the two raw brand vivids
       (#008CFF indicator at 4.95:1 non-text, #99D3FF text at 10.4:1) live on dark surfaces only. */
    --ew-sidebar-1: #0e1a46;
    --ew-sidebar-2: #05113e;
    --ew-sidebar-active-bg: rgba(0, 140, 255, 0.16);
    --ew-sidebar-active-text: #99d3ff;
    --ew-sidebar-active-indicator: #008cff;
}

/* Dark-mode brand: SAME tonal palette, dark tone assignments (anchor T80, container T30).
   The sidebar drops to quarter chroma at the same hue (C32 -> C12): in an all-dark composition
   the chrome must recede -- brand continuity is carried by hue + the azure active, not
   saturation (the "dark seam" rule, spec section 7). */
html[data-theme="dark"] {
  --rz-primary:         #b8c4ff;               /* P-T80 */
  --rz-primary-light:   #dde1ff;               /* P-T90 */
  --rz-primary-lighter: rgba(184, 196, 255, 0.16);
  --rz-primary-dark:    #92a6ff;               /* P-T70 */
  --rz-primary-darker:  #0037ba;               /* P-T30 -- the dark container */
  --rz-on-primary:      #002585;               /* P-T20 */

  --ew-sidebar-1: #161925;                     /* H276 C12 T9 */
  --ew-sidebar-2: #11131c;                     /* H276 C10 T6 */
  --ew-sidebar-border: #252529;
  --ew-sidebar-active-bg: rgba(0, 140, 255, 0.14);
}
