/* Inter is self-hosted (OFL 1.1, see fonts/inter/LICENSE.txt): no third-party requests, no IP leak to Google Fonts. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter/inter-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter/inter-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter/inter-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter/inter-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/*
 * Design tokens, Light sidebar set (UI refactor, #133 handoff). Single source of truth.
 * Everything else (modern-zindora.css, app.css, *.razor.css) references these custom
 * properties, never a literal hex. All values live in this one :root scope so a dark,
 * high-contrast or per-agency set can later override them (for example
 * :root[data-theme="dark"] { ... }) without touching any component. None of those sets is built yet.
 *
 * WCAG 2.2 AA: every text/background pair below is >= 4.5:1, every icon, marker, control border
 * and focus ring >= 3:1 (contrast table on the #133 Tokens board). Gold fails 3:1 on white, so it
 * is only the highlight button, the count pill and the logo mark; purple is AI output only.
 */
:root {
    /* ---- Palette ---- */
    --brand-navy: #1B2B4D;          /* buttons, logo, active marker, meter fill */
    --brand-navy-light: #2C4270;    /* hover, avatars */
    --brand-navy-dark: #10192F;     /* pressed */
    --brand-gold: #F8DEA5;          /* highlight button, count pill, logo mark ONLY */
    --brand-gold-dark: #E8C378;     /* highlight border ONLY */

    --color-primary: var(--brand-navy);
    --color-primary-hover: var(--brand-navy-light);
    --color-primary-active: var(--brand-navy-dark);
    --color-accent: var(--brand-gold);
    --color-accent-hover: var(--brand-gold-dark);
    --color-on-accent: var(--brand-navy);   /* text on gold */
    --color-on-primary: #FFFFFF;            /* text on navy */

    --color-ai-accent: #5B3AA6;             /* AI output ONLY */
    --color-ai-accent-hover: #4A2F89;
    --color-ai-bg: #EFE9FA;

    /* ---- Navy sidebar (handoff v4): text pairs are >= 4.5:1, marker and focus ring >= 3:1 on navy ---- */
    --sidebar-bg: var(--brand-navy);
    --sidebar-text: #E8ECF5;
    --sidebar-text-strong: #FFFFFF;
    --sidebar-label: #B4BFD6;
    --sidebar-hover: #26396A;
    --sidebar-active: #2F4478;
    --sidebar-slot-bg: #26396A;
    --sidebar-marker: var(--brand-gold);
    --sidebar-focus-ring: var(--focus-ring-width) solid var(--brand-gold);
    --meter-track-on-navy: #3A4E7F;
    --meter-outline-on-navy: #B4BFD6;

    /* ---- Colour accents: icon discs (white icon), hero, tinted card headers, row actions ---- */
    --disc-navy: var(--brand-navy);
    --disc-success: var(--color-success);
    --disc-warning: var(--color-warning);
    --disc-info: var(--color-info);
    --disc-ai: var(--color-ai-accent);
    --disc-size: 44px;
    --hero-bg: var(--brand-navy);
    --hero-text: #FFFFFF;
    --hero-text-muted: #D6DDEC;
    --card-head-bg: var(--color-surface-active);
    --row-action-size: 34px;

    /* ---- Status (text colour + tinted background; always paired with a text label) ---- */
    --color-success: #16794C;
    --color-success-hover: #11613D;
    --color-success-bg: #E6F4EC;
    --color-warning: #8A5A00;
    --color-warning-hover: #6F4800;
    --color-warning-bg: #FDF1D6;
    --color-danger: #B42318;
    --color-danger-hover: #8F1C13;
    --color-danger-bg: #FDE8E6;
    --color-info: #1D4ED8;
    --color-info-hover: #1740B0;
    --color-info-bg: #E8EEFC;
    --color-neutral-bg: #EEF0F4;

    /* ---- Surfaces, text, borders ---- */
    --color-canvas: #EEF1F6;                /* page background; cards stay white so they separate */
    --color-surface: #FFFFFF;               /* cards, sidebar, top bar */
    --color-surface-muted: #F6F7F9;
    --color-surface-hover: #F1F3F7;
    --color-surface-active: #EEF1F7;        /* active nav item */
    --color-row-divider: #EEF0F4;
    --color-border: #E6E8EC;                /* decorative dividers */
    --color-control-border: #6B7280;        /* inputs, selects, search (>= 3:1) */
    --color-text: #111827;
    --color-text-muted: #4B5563;
    --color-skeleton: #E5E7EB;
    --color-scrim: rgba(27, 43, 77, 0.55);

    /* ---- Focus ---- */
    --color-focus: #2563EB;
    --focus-ring-width: 2px;
    --focus-ring-offset: 2px;
    --focus-ring: var(--focus-ring-width) solid var(--color-focus);

    /* ---- Type (Inter) ---- */
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, Menlo, Consolas, monospace;
    --text-title-size: 24px;   --text-title-line: 32px;   /* page title, 700 */
    --text-section-size: 17px; --text-section-line: 24px; /* section title, 600 */
    --text-body-size: 14px;    --text-body-line: 22px;    /* body, 400 */
    --text-button-size: 13.5px;                          /* buttons */
    --text-table-size: 13.5px; --text-table-line: 20px;   /* table, tags, 500 */
    --text-label-size: 12px;   --text-label-line: 16px;   /* labels, hints, 600, never smaller */
    --text-kpi-size: 28px;     --text-kpi-line: 32px;     /* KPI number, 700 */

    /* ---- Spacing, radius, shadow, motion ---- */
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
    --space-5: 20px; --space-6: 24px; --space-8: 32px;
    --content-gutter: var(--space-8);
    --content-max: 1600px;
    --radius-control: 8px;
    --radius-card: 12px;
    --radius-pill: 999px;
    --shadow-overlay: 0 10px 30px rgba(16, 25, 47, 0.16);   /* menus and modals only; cards have none */
    --motion-fast: 150ms;
    --target-min: 32px;
    --control-height: 40px;                 /* top-bar controls: switcher, search, menu button, bell */
    --sidebar-width: 248px;

    /* ---- Bootstrap 5.3 mapping, so stock components pick the tokens up ---- */
    --bs-font-sans-serif: var(--font-sans);
    --bs-body-font-family: var(--font-sans);
    --bs-body-font-size: var(--text-body-size);
    --bs-body-line-height: 1.571;
    --bs-body-color: var(--color-text);
    /* RGB triplets below must stay in sync with the hex tokens above. */
    --bs-body-color-rgb: 17, 24, 39;
    --bs-body-bg: var(--color-canvas);
    --bs-body-bg-rgb: 238, 241, 246;
    --bs-secondary-color: var(--color-text-muted);
    --bs-secondary-bg: var(--color-surface-hover);
    --bs-emphasis-color: var(--color-text);
    --bs-border-color: var(--color-border);
    --bs-border-radius: var(--radius-control);
    --bs-border-radius-lg: var(--radius-card);
    --bs-link-color: var(--color-info);
    --bs-link-color-rgb: 29, 78, 216;
    --bs-link-hover-color: var(--color-info-hover);
    --bs-primary: var(--brand-navy);
    --bs-primary-rgb: 27, 43, 77;
    --bs-success: var(--color-success);
    --bs-success-rgb: 22, 121, 76;
    --bs-info: var(--color-info);
    --bs-info-rgb: 29, 78, 216;
    --bs-warning: var(--color-warning);
    --bs-warning-rgb: 138, 90, 0;
    --bs-danger: var(--color-danger);
    --bs-danger-rgb: 180, 35, 24;
    --bs-focus-ring-color: rgba(37, 99, 235, 0.35);
}
