/* Expert Group brand theme for MkDocs Material — per brand book ©2025
   Colors: Fiord #283747, Mirage #18222C, Blue Bayoux #3E546B, Waikawa #597695,
   Amaranth #E63946 (accent). Typography: Hanken Grotesk (self-hosted, OFL), Arial fallback. */

/* Hanken Grotesk (OFL, free) — ratified 2026-06-06 for the guidance site, matching the
   new Webflow site typography. Self-hosted woff2 (via @fontsource) — no Google CDN/tracking.
   latin-ext subset included for Serbian Latin diacritics (š ć č ž đ).
   CLEANUP (Nikola, at the PC): delete docs-site/fonts/TTFirsNeue-*.woff2 — trial-licensed,
   no longer referenced anywhere, and already excluded from the built site and git. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --eg-fiord: #283747;
  --eg-mirage: #18222C;
  --eg-bayoux: #3E546B;
  --eg-waikawa: #597695;
  --eg-amaranth: #E63946;
  --eg-light-gray: #DCE5F4;
}

/* Light scheme */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: var(--eg-fiord);
  --md-primary-fg-color--dark: var(--eg-mirage);
  --md-accent-fg-color: var(--eg-amaranth);
  --md-typeset-a-color: var(--eg-bayoux);
}

/* Dark scheme — Mirage background per brand dark surfaces */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: var(--eg-fiord);
  --md-accent-fg-color: var(--eg-amaranth);
  --md-default-bg-color: var(--eg-mirage);
  --md-typeset-a-color: var(--eg-waikawa);
}

/* Typography: brand stack, hierarchy per brand book (H1 48, H2 32, H3 24; body >=12pt; leading 120%) */
body,
.md-typeset {
  font-family: "Hanken Grotesk", Arial, "Helvetica Neue", sans-serif;
}

.md-typeset h1 {
  color: var(--eg-fiord);
  font-weight: 700;
}

[data-md-color-scheme="slate"] .md-typeset h1 {
  color: #FFFFFF;
}

.md-typeset h2 {
  font-weight: 700;
}

/* Tables: Fiord header band, brand-light row striping */
.md-typeset table:not([class]) th {
  background-color: var(--eg-fiord);
  color: #FFFFFF;
}

.md-typeset table:not([class]) tr:nth-child(even) {
  background-color: color-mix(in srgb, var(--eg-light-gray) 35%, transparent);
}

/* Code blocks lean on Mirage in dark mode */
[data-md-color-scheme="slate"] .md-typeset pre > code {
  background-color: #131B23;
}
