/* Inter (variable, Latin subset), self-hosted. SIL Open Font License 1.1. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

/* Shared design tokens for all three redesign directions.
   Brand values come from Mobius_Portal/wwwroot/css/Site.css. */
:root {
    --branding-dark-blue: #22234A;
    --branding-blue: #086788;
    --branding-light-blue: #07A0C3;
    --branding-yellow: #FCDD00;
    --branding-red: #DD1C1A;
    --risk-critical: #ff3838;
    --risk-high: #ee9226;
    --risk-medium: #ffcf54;
    --risk-low: #59ABEF;
    --ha-primary: #3475e9;
    --ha-secondary: #5D3FD3;
    --bg: #f4f5f9;
    --surface: #ffffff;
    --surface-2: #f8f9fc;
    --border: #e3e5ee;
    --text: #1b1d36;
    --text-muted: #5f6480;
    --primary: #086788;
    --primary-contrast: #ffffff;
    --accent: #07A0C3;
    --success: #1f8a4c;
    --danger: #c4262e;
    --warning: #b7791f;
    --focus-ring: 0 0 0 3px rgba(7, 160, 195, .35);
    --sidebar-bg: #22234A;
    --sidebar-text: #c9cbe6;
    --sidebar-text-active: #ffffff;
    --sidebar-active-bg: rgba(255, 255, 255, .12);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(27, 29, 54, .06);
    --shadow: 0 4px 16px rgba(27, 29, 54, .08);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    --fs-xs: .75rem;
    --fs-sm: .875rem;
    --fs-base: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.625rem;
    --space: 1rem;
}

[data-theme="dark"] {
    --bg: #0e0f22;
    --surface: #171832;
    --surface-2: #1d1e3c;
    --border: #2b2d52;
    --text: #e8e9f6;
    --text-muted: #9a9dc2;
    --primary: #3fb6d6;
    --primary-contrast: #0e0f22;
    --accent: #3fb6d6;
    --success: #4cc489;
    --danger: #ff6b72;
    --warning: #e6b450;
    --sidebar-bg: #22234A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 4px 16px rgba(0, 0, 0, .45);
    --ha-primary: #80a5e7;
    --ha-secondary: #b77efc;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0e0f22;
        --surface: #171832;
        --surface-2: #1d1e3c;
        --border: #2b2d52;
        --text: #e8e9f6;
        --text-muted: #9a9dc2;
        --primary: #3fb6d6;
        --primary-contrast: #0e0f22;
        --accent: #3fb6d6;
        --success: #4cc489;
        --danger: #ff6b72;
        --warning: #e6b450;
        --ha-primary: #80a5e7;
        --ha-secondary: #b77efc;
    }
}
