/* EduInfó design tokens — single source of truth (facelift phase 1, 2026-11-21).
   Load order: after k-info.css (raw palette), before kinfo-refresh.css and component CSS.
   Plan and decisions: docs/changes/2026-11-21-ui-facelift-audit/README.md
   Sections: 1. Self-hosted fonts  2. Semantic tokens (moved verbatim from kinfo-refresh.css)
             3. New tokens + Bootstrap 5.3 mapping  4. Bootstrap utility fixes (AA contrast) */

/* 1. Fonts: Fira Sans / Mono / Code, SIL OFL 1.1 (public/fonts/fira/OFL.txt), @fontsource 5.3.0 */
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/fira/fira-sans-latin-ext-300-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/fira/fira-sans-latin-300-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:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/fira/fira-sans-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/fira/fira-sans-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:'Fira Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/fira/fira-sans-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/fira/fira-sans-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:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/fira/fira-sans-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/fira/fira-sans-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:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/fira/fira-sans-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/fira/fira-sans-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:'Fira Sans';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/fira/fira-sans-latin-ext-400-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Sans';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/fira/fira-sans-latin-400-italic.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:'Fira Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/fira/fira-mono-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/fira/fira-mono-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:'Fira Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/fira/fira-mono-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/fira/fira-mono-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:'Fira Mono';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/fira/fira-mono-latin-ext-700-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Mono';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/fira/fira-mono-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:'Fira Code';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/fira/fira-code-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Code';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/fira/fira-code-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:'Fira Code';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/fira/fira-code-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Code';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/fira/fira-code-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:'Fira Code';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/fira/fira-code-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fira Code';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/fira/fira-code-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}

/* 2. Semantic tokens: light / dark */
:root,
:root[data-theme='light'] {
  color-scheme:light;
  --maroon-50:#f7ecee; --maroon-100:#ead5d9; --maroon-300:#c2798b;
  --maroon-500:#9b3952; --maroon-700:#862633; --maroon-800:#6c1d28;
  --color-bg:#f7f7f5; --color-surface:#fff; --color-surface-alt:#fafaf9;
  --color-border:#e5e6e3; --color-border-strong:#d4d7d3;
  --color-text:#24282b; --color-text-muted:#4b5458; --color-text-subtle:#687378;
  --color-brand:#862633; --color-brand-hover:#70202d;
  --color-brand-soft:#f7ecee; --color-brand-soft-text:#862633;
  --color-on-brand:#fff;
  --color-info:#294d78; --color-info-soft:#ecf3fa; --color-info-text:#25496c;
  --color-success:#176a55; --color-success-soft:#eaf5ef; --color-success-text:#176a55;
  --color-warning:#855c16; --color-warning-soft:#f8f1e4; --color-warning-text:#775015;
  --color-danger:#a63741; --color-danger-soft:#faecec; --color-danger-text:#9d343c;
  --color-focus-ring:rgba(134,38,51,.24);
  --radius-sm:4px; --radius-md:8px; --radius-lg:12px; --radius-xl:12px;
  --shadow-sm:none; --shadow-md:0 4px 16px rgba(24,28,30,.055);
  --bs-body-bg:#f7f7f5; --bs-body-color:#24282b;
  --bs-secondary-color:#4b5458; --bs-tertiary-bg:#fafaf9;
  --bs-border-color:#e5e6e3; --bs-emphasis-color:#24282b;
  --bs-link-color:#862633; --bs-link-hover-color:#70202d;
}
:root[data-theme='dark'] {
  color-scheme:dark;
  --maroon-50:#342329; --maroon-100:#5b3b45; --maroon-300:#edb0c0;
  --maroon-500:#ac4c65; --maroon-700:#9b3952; --maroon-800:#842d42;
  --color-bg:#151719; --color-surface:#202326; --color-surface-alt:#24282b;
  --color-border:#343a3e; --color-border-strong:#4b5257;
  --color-text:#f1f2f1; --color-text-muted:#d4d8d9; --color-text-subtle:#aab3b7;
  --color-brand:#edb0c0; --color-brand-hover:#f3c2ce;
  --color-brand-soft:#342329; --color-brand-soft-text:#edb0c0;
  --color-on-brand:#291419;
  --color-info:#a5c7ec; --color-info-soft:#223343; --color-info-text:#afcfe9;
  --color-success:#9cdbc0; --color-success-soft:#1e3b31; --color-success-text:#9cdbc0;
  --color-warning:#efca8f; --color-warning-soft:#3a3222; --color-warning-text:#efca8f;
  --color-danger:#f3a6a9; --color-danger-soft:#41292e; --color-danger-text:#f3a6a9;
  --color-focus-ring:rgba(237,176,192,.30);
  --shadow-sm:none; --shadow-md:0 4px 18px rgba(0,0,0,.14);
  --bs-body-bg:#151719; --bs-body-color:#f1f2f1;
  --bs-secondary-color:#d4d8d9; --bs-tertiary-bg:#24282b;
  --bs-border-color:#343a3e; --bs-emphasis-color:#f1f2f1;
  --bs-link-color:#edb0c0; --bs-link-hover-color:#f3c2ce;
  --bs-primary:#9b3952; --bs-primary-rgb:155,57,82;
}
:root[data-theme='dark'] { --nav-bg:var(--color-surface); --nav-border:var(--color-border);
  --nav-text:var(--color-text-muted); --nav-text-hover:var(--color-text);
  --nav-bg-hover:var(--color-surface-alt); --nav-text-active:var(--color-brand);
  --nav-bg-active:var(--color-brand-soft); --nav-dropdown-bg:var(--color-surface);
  --nav-dropdown-border:var(--color-border); --nav-search-bg:var(--color-surface-alt);
  --nav-search-border:var(--color-border); --nav-search-color:var(--color-text);
  --nav-search-btn-bg:#96334c; --nav-search-btn-bg-hover:#a5445e; --nav-search-btn-color:#fff; }
:root[data-theme='light'] { --nav-bg:var(--color-surface); --nav-border:var(--color-border);
  --nav-text:var(--color-text-muted); --nav-text-hover:var(--color-text);
  --nav-bg-hover:var(--color-surface-alt); --nav-text-active:var(--color-brand);
  --nav-bg-active:var(--color-brand-soft); --nav-dropdown-bg:var(--color-surface);
  --nav-dropdown-border:var(--color-border); --nav-search-bg:var(--color-surface-alt);
  --nav-search-border:var(--color-border); --nav-search-color:var(--color-text); }

/* 3. New tokens and Bootstrap variable mapping */
:root,
:root[data-theme='light'] {
  --font-sans:'Fira Sans',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --font-mono:'Fira Mono',ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;
  --font-code:'Fira Code','Fira Mono',ui-monospace,monospace;
  --color-accent:#1f6e63; --color-accent-soft:#e9f4f2;
  /* phase 2: button fills (white text >= 4.5:1) and outline lines (>= 3:1 on surface) */
  --color-brand-fill:#862633; --color-brand-fill-hover:#70202d;
  --color-danger-fill:#a63741; --color-danger-fill-hover:#8c2d36;
  --color-success-fill:#176a55; --color-success-fill-hover:#12594a;
  --color-brand-line:#c2798b; --color-danger-line:#c4646d; --color-success-line:#4e9a83;
  --color-warning-line:#b08840; --color-info-line:#6688b0;
  --bs-border-radius:8px; --bs-border-radius-sm:6px; --bs-border-radius-lg:12px;
  --bs-font-sans-serif:var(--font-sans); --bs-body-font-family:var(--font-sans);
  --bs-font-monospace:var(--font-mono);
  --bs-primary:#862633; --bs-primary-rgb:134,38,51;
  --bs-link-color-rgb:134,38,51; --bs-link-hover-color-rgb:112,32,45;
  --bs-focus-ring-color:var(--color-focus-ring);
  --bs-primary-text-emphasis:#6c1d28; --bs-primary-bg-subtle:#f7ecee; --bs-primary-border-subtle:#ead5d9;
  --bs-success-text-emphasis:#176a55; --bs-success-bg-subtle:#eaf5ef; --bs-success-border-subtle:#c3e4d5;
  --bs-warning-text-emphasis:#775015; --bs-warning-bg-subtle:#f8f1e4; --bs-warning-border-subtle:#ead6b0;
  --bs-danger-text-emphasis:#9d343c;  --bs-danger-bg-subtle:#faecec;  --bs-danger-border-subtle:#efc9cc;
  --bs-info-text-emphasis:#25496c;    --bs-info-bg-subtle:#ecf3fa;    --bs-info-border-subtle:#c6d9ee;
}
:root[data-theme='dark'] {
  --color-accent:#9cdbc0; --color-accent-soft:#1e3b31;
  --color-brand-fill:#96334c; --color-brand-fill-hover:#a5445e;
  --color-danger-fill:#b13f4a; --color-danger-fill-hover:#c04f5a;
  --color-success-fill:#1d7a61; --color-success-fill-hover:#1a6e57;
  --color-brand-line:#b4697d; --color-danger-line:#c56d74; --color-success-line:#4d9c81;
  --color-warning-line:#a98a4f; --color-info-line:#5d86ae;
  --bs-link-color-rgb:237,176,192; --bs-link-hover-color-rgb:243,194,206;
  --bs-primary-text-emphasis:#edb0c0; --bs-primary-bg-subtle:#342329; --bs-primary-border-subtle:#5b3b45;
  --bs-success-text-emphasis:#9cdbc0; --bs-success-bg-subtle:#1e3b31; --bs-success-border-subtle:#2d5a49;
  --bs-warning-text-emphasis:#efca8f; --bs-warning-bg-subtle:#3a3222; --bs-warning-border-subtle:#5a4b2e;
  --bs-danger-text-emphasis:#f3a6a9;  --bs-danger-bg-subtle:#41292e;  --bs-danger-border-subtle:#643a40;
  --bs-info-text-emphasis:#a5c7ec;    --bs-info-bg-subtle:#223343;    --bs-info-border-subtle:#33506a;
}

/* 4. Bootstrap text utilities follow the AA-checked token text colours
      (Bootstrap's #ffc107 warning text is ~1.6:1 on white). */
.text-primary {color:var(--color-brand)!important}
.text-success {color:var(--color-success-text)!important}
.text-warning {color:var(--color-warning-text)!important}
.text-danger  {color:var(--color-danger-text)!important}
.text-info    {color:var(--color-info-text)!important}
