/* the typeface is served with the app (fonts/, SIL Open Font License), so it works offline and asks nobody else */
@font-face{font-family:"Archivo";font-style:normal;font-weight:300 900;font-display:swap;src:url(../fonts/archivo-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:"Archivo";font-style:normal;font-weight:300 900;font-display:swap;src:url(../fonts/archivo-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}
/* FEKT 1.0 (Mahen), the colour code: FEKT blue #004E9B (the faculty logo's) owns the header band and the primary
   controls on a cool blue-grey ground; white cards in 1px hairlines, flat fills only. Every course wears its credits
   as a resistor's colour bands (IEC 60062, --b0 … --b9) whose last band turns gold once passed. Signal orange (--sig)
   belongs to the next deadline alone; amber says due soon or at risk, green only passed, red only failed.
   Archivo, one grotesque, for everything */
:root{
  --paper:#edf1f6; --card:#ffffff; --ink:#0b1a2e; --muted:#4a5c72; --line:#cdd6e2; --accent:#004e9b;
  --accent-soft:#e0eaf6; --blue:#17406e; --blue-soft:#e7edf5; --hot:#004e9b; --inv-hot:#004e9b; --ok:#13703a;
  --ok-soft:#dcf2e3; --warn:#8a6400; --warn-soft:#fbf0cc; --bad:#c3132f; --bad-soft:#fbe2e6; --save:#004e9b;
  --pri:#004e9b; --on-pri:#ffffff; --band:#004e9b; --on-band:#ffffff; --sig:#e2700b; --sig-ink:#b45309;
  --rbody:#a7c6e6; --lead:#8d97a3;
  --shadow:none;
  --f-display:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-body:var(--f-display);
  --f-mono:var(--f-display); /* numbers sit in the text face, lined up with tabular figures (.mono) */
  /* the colour code, the same in light and dark (a resistor doesn't change colour at night) */
  --b0:#1d1d1f; --b1:#7b4a1e; --b2:#d42a2a; --b3:#ef7d16; --b4:#f2c40c; --b5:#2c9a45; --b6:#2563c9; --b7:#7c3fa3; --b8:#8b9097; --b9:#f4f4f2;
  --gold:#c9a033; --silver:#b8bcc2;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#07101b; --card:#0d1826; --ink:#e2eaf3; --muted:#92a4b9; --line:#22344a; --accent:#7fb3ea;
  --accent-soft:#0f2945; --blue:#a9c3df; --blue-soft:#132235; --hot:#4f9be3; --inv-hot:#7fb3ea; --ok:#4cc585;
  --ok-soft:#10281b; --warn:#f2c94c; --warn-soft:#342a07; --bad:#ff6b81; --bad-soft:#3a1420; --save:#7fb3ea;
  --pri:#3f8ee0; --on-pri:#03101e; --band:#004e9b; --on-band:#ffffff; --sig:#ff9a3c; --sig-ink:#ffab5c;
  --rbody:#6f93b8; --lead:#5d6b7c; color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#07101b; --card:#0d1826; --ink:#e2eaf3; --muted:#92a4b9; --line:#22344a; --accent:#7fb3ea;
  --accent-soft:#0f2945; --blue:#a9c3df; --blue-soft:#132235; --hot:#4f9be3; --inv-hot:#7fb3ea; --ok:#4cc585;
  --ok-soft:#10281b; --warn:#f2c94c; --warn-soft:#342a07; --bad:#ff6b81; --bad-soft:#3a1420; --save:#7fb3ea;
  --pri:#3f8ee0; --on-pri:#03101e; --band:#004e9b; --on-band:#ffffff; --sig:#ff9a3c; --sig-ink:#ffab5c;
  --rbody:#6f93b8; --lead:#5d6b7c; color-scheme:dark}
/* the page's own Light / Dark switch wins over the system and viewer theme */
:root[data-mode="light"]{
  --paper:#edf1f6; --card:#ffffff; --ink:#0b1a2e; --muted:#4a5c72; --line:#cdd6e2; --accent:#004e9b;
  --accent-soft:#e0eaf6; --blue:#17406e; --blue-soft:#e7edf5; --hot:#004e9b; --inv-hot:#004e9b; --ok:#13703a;
  --ok-soft:#dcf2e3; --warn:#8a6400; --warn-soft:#fbf0cc; --bad:#c3132f; --bad-soft:#fbe2e6; --save:#004e9b;
  --pri:#004e9b; --on-pri:#ffffff; --band:#004e9b; --on-band:#ffffff; --sig:#e2700b; --sig-ink:#b45309;
  --rbody:#a7c6e6; --lead:#8d97a3; color-scheme:light}
:root[data-mode="dark"]{
  --paper:#07101b; --card:#0d1826; --ink:#e2eaf3; --muted:#92a4b9; --line:#22344a; --accent:#7fb3ea;
  --accent-soft:#0f2945; --blue:#a9c3df; --blue-soft:#132235; --hot:#4f9be3; --inv-hot:#7fb3ea; --ok:#4cc585;
  --ok-soft:#10281b; --warn:#f2c94c; --warn-soft:#342a07; --bad:#ff6b81; --bad-soft:#3a1420; --save:#7fb3ea;
  --pri:#3f8ee0; --on-pri:#03101e; --band:#004e9b; --on-band:#ffffff; --sig:#ff9a3c; --sig-ink:#ffab5c;
  --rbody:#6f93b8; --lead:#5d6b7c; color-scheme:dark}
/* credits chart colours: passed green, in progress slate, the race (fun mode) in orange and yellow */
:root{--c-pass:#13703a;--c-prog:#7f8fa2;--c-org:#e2650f;--c-yel:#f2a900}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--c-pass:#3aa870;--c-prog:#6c8197;--c-org:#ff8a45;--c-yel:#ffc940}}
:root[data-theme="dark"]{--c-pass:#3aa870;--c-prog:#6c8197;--c-org:#ff8a45;--c-yel:#ffc940}
:root[data-mode="light"]{--c-pass:#13703a;--c-prog:#7f8fa2;--c-org:#e2650f;--c-yel:#f2a900}
:root[data-mode="dark"]{--c-pass:#3aa870;--c-prog:#6c8197;--c-org:#ff8a45;--c-yel:#ffc940}
/* a major version in the version history (1 Mahen): FEKT blue with white text in light, pale blue with dark text in dark */
:root{--v4a:#e0eaf6;--v4b:#004e9b;--v4ink:#ffffff;--v4glow:#3f8ee0}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--v4a:#0f2945;--v4b:#3f8ee0;--v4ink:#03101e;--v4glow:#7fb3ea}}
:root[data-theme="dark"],:root[data-mode="dark"]{--v4a:#0f2945;--v4b:#3f8ee0;--v4ink:#03101e;--v4glow:#7fb3ea}
:root[data-mode="light"]{--v4a:#e0eaf6;--v4b:#004e9b;--v4ink:#ffffff;--v4glow:#3f8ee0}
/* the mark: a FEKT-blue tile with a white resistor on it, a shade deeper on the header band so its edge still shows;
   a colour theme sets --wmark and --on-wmark itself */
:root{--wmark:#004e9b;--on-wmark:#ffffff}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--wmark:#1a5fa8}}
:root[data-theme="dark"],:root[data-mode="dark"]{--wmark:#1a5fa8}
:root[data-mode="light"]{--wmark:#004e9b}
