/* Knight Design System — tokens.
   Load this first, then components.css, then the app's own CSS.
   Themes: Argent (light) on :root; Sable (dark) only when chosen in the theme switch
   (data-theme="dark" on <html>). The system setting is not followed (like AH Dashboard).
   Fonts are self-hosted: serve fonts/ next to this file and allow font-src 'self'. */

@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/RedHatDisplay-latin.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: "Red Hat Display"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/RedHatDisplay-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/RedHatText-latin.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: "Red Hat Text"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/RedHatText-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #edf0f4;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --chip: #e7ebf1;
  --line: #d3d9e2;
  --ink: #0e1422;
  --muted: #566072;
  --accent: #1e3fae;
  --accent-ink: #1e3fae;
  --on-accent: #ffffff;
  --gules: #b0222b;
  --hot: #b0222b;
  --or: #b58a1e;
  --on-or: #0e1422;
  --success: #1f7a4d;
  --today-bg: #f6edd3;
  --today-ink: #6f5209;
  --media-well: #ffffff;
  --edge: rgba(255, 255, 255, .95);
  --focus-ring: rgba(181, 138, 30, .45);
  --sheen-top: #ffffff;
  --sheen-bottom: #f0f3f7;
  --entity-1: #2f6fb5;
  --entity-2: #d27a1f;
  --entity-3: #7a4bb0;
  --entity-4: #2f8a5a;
  --entity-5: #b5179e;
  --entity-6: #00838f;
  --entity-7: #8d6e2f;
  --entity-8: #3f51b5;
  --entity-9: #e0567a;
  --entity-10: #546e7a;
  --shadow-hairline: 0 1px 2px rgba(14, 20, 34, .06);
  --shadow-plate: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(14, 20, 34, .08);
  --shadow-header: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 18px -10px rgba(14, 20, 34, .35);
  --font-display: "Red Hat Display", "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --font-text: "Red Hat Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 18px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 34px;
  --radius-tag: 2px;
  --radius-chip: 4px;
  --radius-control: 5px;
  --radius-panel: 6px;
  --radius-plate: 8px;
  color-scheme: light;
}

/* Sable (dark), chosen explicitly */
:root[data-theme="dark"] {
  --bg: #090c13;
  --surface: #111622;
  --surface-2: #171e2c;
  --chip: #1c2434;
  --line: #252f42;
  --ink: #e6eaf2;
  --muted: #98a3b6;
  --accent: #6f93ff;
  --accent-ink: #9db4ff;
  --on-accent: #07102a;
  --gules: #d63a42;
  --hot: #ff8086;
  --or: #e0b84c;
  --success: #4cc38a;
  --today-bg: rgba(224, 184, 76, .15);
  --today-ink: #e8c76a;
  --edge: rgba(255, 255, 255, .07);
  --focus-ring: rgba(224, 184, 76, .5);
  --sheen-top: #182030;
  --sheen-bottom: #111622;
  --shadow-hairline: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-plate: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-header: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 22px -10px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* Base */
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.45 var(--font-text); -webkit-font-smoothing: antialiased; }
