/* BAAU Unified Design System — shared semantic tokens.
   One source for every module: read these names instead of raw values.
   Loaded in <head> by ui/head.php on every page that shows the sidebar.
   Module files that still declare their own --baau-* copies use the same values. */

:root {
    /* Colour: brand and accent */
    --baau-navy: #20245D;
    --baau-violet: #635ECE;
    --baau-violet-hover: #524CC0;
    --baau-violet-soft: #EFEEFC;
    --baau-violet-line: #E3E1FA;
    --baau-on-accent: #FFFFFF;

    /* Colour: surfaces */
    --baau-bg: #F6F7FB;
    --baau-surface: #FFFFFF;
    --baau-surface-subtle: #FAFAFE;

    /* Colour: text, icons, lines */
    --baau-ink: #151936;
    --baau-ink-2: #4B5072;
    --baau-muted: #6B7090;
    --baau-icon: #8389A8;
    --baau-line: #E6E8F2;
    --baau-line-strong: #D2D6DF;

    /* Colour: state (text / mark / soft background) */
    --baau-ok: #0B7A55;
    --baau-ok-mark: #16A571;
    --baau-ok-soft: #E7F6EF;
    --baau-warn: #946000;
    --baau-warn-mark: #B4690E;
    --baau-warn-soft: #FDF3E1;
    --baau-bad: #C2362F;
    --baau-bad-soft: #FCECEB;
    --baau-info: #1F6FB2;
    --baau-info-soft: #EAF3FC;

    /* Depth */
    --baau-scrim: rgba(21, 25, 54, 0.4);
    --baau-shadow-sm: 0 1px 2px rgba(21, 25, 54, 0.06);
    --baau-shadow-pop: 0 14px 36px rgba(21, 25, 54, 0.16);
    --baau-shadow-focus: 0 0 0 3px rgba(99, 94, 206, 0.18);

    /* Shape */
    --baau-radius-sm: 8px;
    --baau-radius-md: 12px;
    --baau-radius-lg: 16px;
    --baau-radius-pill: 999px;

    /* Type: Outfit for UI, JetBrains Mono for numbers and codes; weights 400–600 */
    --baau-font-ui: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --baau-font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    --baau-text-xs: 11.5px;
    --baau-text-sm: 13px;
    --baau-text-md: 14px;
    --baau-text-lg: 16px;
    --baau-text-xl: 20px;
    --baau-text-2xl: 24px;

    /* Space (4px scale) */
    --baau-space-1: 4px;
    --baau-space-2: 8px;
    --baau-space-3: 12px;
    --baau-space-4: 16px;
    --baau-space-5: 20px;
    --baau-space-6: 24px;
    --baau-space-8: 32px;
    --baau-space-10: 40px;

    /* Layout: sidebar and the one gutter every page uses */
    --baau-nav-width: 256px;
    --baau-nav-rail: 64px;
    --baau-shell-gap: var(--baau-space-6);
    --baau-shell-gap-top: var(--baau-space-6);
    --baau-shell-gap-mobile: var(--baau-space-4);
    --baau-shell-top-mobile: 4.25rem; /* clears the ☰ button on phones */

    /* Motion */
    --baau-motion-fast: 140ms;
    --baau-motion-base: 200ms;
    --baau-motion-slow: 360ms;
    --baau-motion-stagger: 45ms;
    --baau-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --baau-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --baau-motion-fast: 0ms;
        --baau-motion-base: 0ms;
        --baau-motion-slow: 0ms;
        --baau-motion-stagger: 0ms;
    }
}
