/* Theme: erkendeopleidingen.nl ("de keurmerkcontroleur"). Taken from the register extract: cool grey-white
 * register paper, blue-black stamp-pad ink, a stamped imprint per course (recogniser, code, valid until, source DUO).
 * Hepta Slab (typewriter/form feel for names and codes, tabular figures) + Source Sans 3 for reading.
 * Rule 12: no cream/terracotta/espresso, no purple. Deliberately NOT the Rijkshuisstijl lintblauw: we check the
 * register, we are not the government and must not look like DUO. */
@font-face { font-family: "Hepta Slab"; src: url("../fonts/hepta-slab-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --zs-bg: #f1f4f3;            /* register paper: cool grey-white, a hint of green */
  --zs-surface: #ffffff;
  --zs-surface-alt: #e3e9e7;
  --zs-ink: #16202b;           /* blue-black */
  --zs-muted: #4d5b66;
  --zs-line: #c9d3d1;
  --zs-brand: #213f8f;         /* stamp-pad blue (white text 9.4:1) */
  --zs-brand-deep: #162c66;
  --zs-on-brand: #ffffff;
  --zs-brand-text: #213f8f;
  --zs-accent: #213f8f;
  --zs-accent-hover: #162c66;
  --zs-accent-ink: #ffffff;
  --zs-highlight: #fff0a8;     /* marker pen over a code */
  --zs-highlight-ink: #16202b;
  --zs-font-display: "Hepta Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --zs-font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zs-display-weight: 700;
  --zs-display-tracking: -.005em;
  --zs-radius: 10px;
  --zs-radius-sm: 5px;
  --zs-radius-btn: 8px;
  --zs-picto: #213f8f;
  /* Stamp ink: the imprint itself. --eo-stamp-paper = the white extract it is stamped on (stays white in dark). */
  --eo-stamp: #213f8f;
  --eo-stamp-paper: #ffffff;
  --eo-stamp-paper-ink: #16202b;
  /* Recognition status. *-ink = text on white/bg (AA), *-bg = pill background, *-dot = signal. */
  --eo-ok-dot: #1f8a52;      --eo-ok-ink: #11603a;      --eo-ok-bg: #e0f2e8;       /* erkend, geldig */
  --eo-soon-dot: #d98a12;    --eo-soon-ink: #7f4a00;    --eo-soon-bg: #fcefd8;     /* loopt binnen 6 maanden af */
  --eo-gone-dot: #c8382c;    --eo-gone-ink: #9b261c;    --eo-gone-bg: #fbe4e1;     /* verlopen of ingetrokken */
  --eo-none-dot: #8a97a0;    --eo-none-ink: #4d5b66;    --eo-none-bg: #e7ecec;     /* geen erkenning gevonden */
}

/* Dark mode (rule 8): the archive at night, a coloured blue-black, not grey. Extracts stay white paper with ink. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zs-bg: #0f1726; --zs-surface: #172235; --zs-surface-alt: #1d2b42; --zs-ink: #e7ecf3; --zs-muted: #a9b5c4; --zs-line: #2b3b55;
    --zs-brand: #213f8f; --zs-brand-deep: #14275a; --zs-on-brand: #ffffff; --zs-brand-text: #a9bdf5;
    --zs-accent: #93abf2; --zs-accent-hover: #b6c7f7; --zs-accent-ink: #0f1726;
    --zs-highlight: #e8d46a; --zs-highlight-ink: #0f1726; --zs-picto: #93abf2; --eo-stamp: #a9bdf5;
    --eo-ok-dot: #44c47f;   --eo-ok-ink: #8fe0b5;   --eo-ok-bg: #143826;
    --eo-soon-dot: #f0a83a; --eo-soon-ink: #ffcf85; --eo-soon-bg: #3a2b12;
    --eo-gone-dot: #f0675a; --eo-gone-ink: #ffa49a; --eo-gone-bg: #3e1d1a;
    --eo-none-dot: #9aa7b2; --eo-none-ink: #c3ccd5; --eo-none-bg: #243248;
  }
}
:root[data-theme="dark"] {
  --zs-bg: #0f1726; --zs-surface: #172235; --zs-surface-alt: #1d2b42; --zs-ink: #e7ecf3; --zs-muted: #a9b5c4; --zs-line: #2b3b55;
  --zs-brand: #213f8f; --zs-brand-deep: #14275a; --zs-on-brand: #ffffff; --zs-brand-text: #a9bdf5;
  --zs-accent: #93abf2; --zs-accent-hover: #b6c7f7; --zs-accent-ink: #0f1726;
  --zs-highlight: #e8d46a; --zs-highlight-ink: #0f1726; --zs-picto: #93abf2; --eo-stamp: #a9bdf5;
  --eo-ok-dot: #44c47f;   --eo-ok-ink: #8fe0b5;   --eo-ok-bg: #143826;
  --eo-soon-dot: #f0a83a; --eo-soon-ink: #ffcf85; --eo-soon-bg: #3a2b12;
  --eo-gone-dot: #f0675a; --eo-gone-ink: #ffa49a; --eo-gone-bg: #3e1d1a;
  --eo-none-dot: #9aa7b2; --eo-none-ink: #c3ccd5; --eo-none-bg: #243248;
}
