/* MASTERed brand palette (Material 3 scaffold + MASTERed colors). Overrides only the BRAND +
   sidebar tokens; semantic tokens (success/warning/danger/info, base shades) stay shared across
   apps. Swap this file for edwise-default.css to converge MASTERed to the portal brand -- the
   reuse proof. Plain ASCII only (decorative unicode in comments can break the parse). */
:root {
    --rz-primary:         #2563eb;   /* MASTERed blue */
    --rz-primary-light:   #bcd4ff;
    --rz-primary-lighter: rgba(37, 99, 235, 0.12);
    --rz-primary-dark:    #1d4ed8;
    --rz-primary-darker:  #1e40af;

    /* MASTERed uses a LIGHT sidebar (the portal's is navy) -- a per-client palette choice on the
       same EwAppShell. The --ew-sidebar-* tokens carry in-component defaults, so this is purely
       additive: apps that don't set them keep the navy default. */
    --ew-sidebar-1:          #ffffff;
    --ew-sidebar-2:          #f8fafc;
    --ew-sidebar-text:       #334155;
    --ew-sidebar-text-muted: #64748b;
    --ew-sidebar-border:     #e2e8f0;
    /* Interactive nav states for the LIGHT sidebar (these reproduce MASTERed's original
       nav look exactly). The lab nav binds to these; navy palettes (edwise-default.css)
       leave them unset, so the in-CSS fallbacks (#fff / translucent white) read on dark. */
    --ew-sidebar-text-hover:  #1e293b;
    --ew-sidebar-hover-bg:    #e2e8f0;
    --ew-sidebar-active-bg:   #eff6ff;
    --ew-sidebar-active-text: var(--rz-primary);
    /* Light sidebar: submenu has no dark wash (the portal's rgba(0,0,0,.15) is for its navy sidebar). */
    --ew-sidebar-submenu-bg:  transparent;

    /* Text font: MASTERed's brand font is Roboto (self-hosted via the base @font-face -> RobotoFlex,
       rendered at its normal-width Regular default). Brand-faithful + offline. Segoe UI is the
       fallback if Roboto is unavailable. Portal keeps the M3 default -- this lives only in MASTERed's palette. */
    --rz-text-font-family: 'Roboto', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

    /* Heading font: MASTERed uses ONE voice -- Roboto for headings too, matching the brand
       wordmark. Overrides the SDK's EdWise heading token (Avenir Next); the EdWise palette
       keeps its own heading voice when the user swaps themes. */
    --ew-heading-font-family: 'Roboto', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

}

/* Dark-mode brand: lighter blue anchor on dark surfaces; the light sidebar inverts to slate.
   First-pass values -- validated/tuned in the dual-palette screenshot pass. Plain ASCII only. */
html[data-theme="dark"] {
    --rz-primary:         #93b4fd;
    --rz-primary-light:   #bcd4ff;
    --rz-primary-lighter: rgba(147, 180, 253, 0.16);
    --rz-primary-dark:    #6d9bfb;
    --rz-primary-darker:  #1e40af;
    --rz-on-primary:      #172554;

    --ew-sidebar-1: #0f172a;
    --ew-sidebar-2: #0b1222;
    --ew-sidebar-text: #b8c5dc;
    --ew-sidebar-text-muted: #7b8aa8;
    --ew-sidebar-border: rgba(255, 255, 255, 0.06);
    --ew-sidebar-text-hover: #ffffff;
    --ew-sidebar-hover-bg: rgba(255, 255, 255, 0.06);
    --ew-sidebar-active-bg: rgba(37, 99, 235, 0.25);
    --ew-sidebar-active-text: #bcd4ff;
    --ew-sidebar-submenu-bg: rgba(0, 0, 0, 0.15);
}
