/*
 * Europolis design tokens: fonts and colours shared by every page.
 * Palette 14 "Mediterraneo". Content colours follow one rule everywhere:
 * pro = teal blue, contro = rust (never red), absence of sources = grey.
 * Red is reserved for interface errors.
 */

/* Fonts are self-hosted (SIL OFL, see assets/fonts/OFL-*.txt): no request leaves europolis.ch. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader-latin-opsz-normal.woff2?v=6e4f2958c3) 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: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader-latin-ext-opsz-normal.woff2?v=45683de03d) 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: "Newsreader";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader-latin-opsz-italic.woff2?v=5dfcd10d24) 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: "Newsreader";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader-latin-ext-opsz-italic.woff2?v=bb24f6648f) 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: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/public-sans-latin-wght-normal.woff2?v=5ed4d31c98) 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: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/public-sans-latin-ext-wght-normal.woff2?v=3a00a32f02) 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: "Public Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/public-sans-latin-wght-italic.woff2?v=16dc93252a) 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: "Public Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/public-sans-latin-ext-wght-italic.woff2?v=a071e35bbf) 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;
}
/* Only for the decorative headline collage on the presentation page. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/anton-latin-400-normal.woff2?v=d0fa07ff63) format("woff2");
}

:root {
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;

  /* Fixed brand colours, identical in both themes. */
  --brand-sea: #1F5F7A;
  --brand-olive: #5E6B2E;
  --brand-olive-light: #6B7F3A;
  --brand-sand: #E9C46A;
  --brand-deep: #173F52;
  --on-sand: #1F2A30;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
}

/* Light theme (default). */
:root {
  --c-bg: #F5F3EF;
  --c-surface: #FFFFFF;
  --c-ink: #1F2A30;
  --c-text-2: #36424A;
  --c-muted: #5E676C;
  --c-line: #DEDAD3;
  --c-rule: #CFC9BF;
  --c-rule-soft: #E6E1D9;
  --c-strong: #1F2A30;
  --c-track: #E2DFDA;
  --c-numeral: #D6D1C8;
  --c-accent: #1F5F7A;
  --c-olive: #5E6B2E;
  --c-kicker-why: #8A6A12;
  --c-pos: #23758F;
  --c-neg: #A8521A;
  --c-cause: #36424A;
  --c-effect: #5E6B2E;
  --c-error: #B3261E;
  --c-hero: #173F52;
  --c-footer: #12303F;
  --c-chip-bg: #E3EEF2;
  --c-chip-ink: #1F5F7A;
  --c-wm-euro: #1F5F7A;
  --c-wm-polis: #5E6B2E;
  --c-status-new-bg: #1F2A30;
  --c-status-new-fg: #FFFFFF;
  --c-status-dev-bg: #E3ECEF;
  --c-status-dev-fg: #1B5A73;
  --c-status-due-bg: #F1EBDD;
  --c-status-due-fg: #6B5210;
  --c-seg-bg: #ECE9E3;
  --c-seg-on: #FFFFFF;
  --seg-shadow: 0 1px 3px rgba(31, 42, 48, 0.18);
  --menu-shadow: 0 12px 32px rgba(31, 42, 48, 0.16);
  color-scheme: light;
}

/*
 * Dark theme. The same block appears twice on purpose: once for "auto"
 * (no data-theme attribute, the system asks for dark) and once for an
 * explicit choice. Keep the two copies identical.
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #0F1A1F;
    --c-surface: #17262D;
    --c-ink: #ECEFEA;
    --c-text-2: #C5CDC9;
    --c-muted: #9AA6A4;
    --c-line: #283840;
    --c-rule: #33454D;
    --c-rule-soft: #283840;
    --c-strong: #C5CDC9;
    --c-track: #283840;
    --c-numeral: #33454D;
    --c-accent: #7FB8D1;
    --c-olive: #C9D88A;
    --c-kicker-why: #E9C46A;
    --c-pos: #4FA3BF;
    --c-neg: #D9824A;
    --c-cause: #C5CDC9;
    --c-effect: #C9D88A;
    --c-error: #F2B8B5;
    --c-hero: #0A141A;
    --c-footer: #0A141A;
    --c-chip-bg: #173A48;
    --c-chip-ink: #9CCBDD;
    --c-wm-euro: #FFFFFF;
    --c-wm-polis: #C9D88A;
    --c-status-new-bg: #ECEFEA;
    --c-status-new-fg: #0F1A1F;
    --c-status-dev-bg: #173A48;
    --c-status-dev-fg: #9CCBDD;
    --c-status-due-bg: #3A3220;
    --c-status-due-fg: #E9C46A;
    --c-seg-bg: #0F1A1F;
    --c-seg-on: #283840;
    --seg-shadow: none;
    --menu-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-bg: #0F1A1F;
  --c-surface: #17262D;
  --c-ink: #ECEFEA;
  --c-text-2: #C5CDC9;
  --c-muted: #9AA6A4;
  --c-line: #283840;
  --c-rule: #33454D;
  --c-rule-soft: #283840;
  --c-strong: #C5CDC9;
  --c-track: #283840;
  --c-numeral: #33454D;
  --c-accent: #7FB8D1;
  --c-olive: #C9D88A;
  --c-kicker-why: #E9C46A;
  --c-pos: #4FA3BF;
  --c-neg: #D9824A;
  --c-cause: #C5CDC9;
  --c-effect: #C9D88A;
  --c-error: #F2B8B5;
  --c-hero: #0A141A;
  --c-footer: #0A141A;
  --c-chip-bg: #173A48;
  --c-chip-ink: #9CCBDD;
  --c-wm-euro: #FFFFFF;
  --c-wm-polis: #C9D88A;
  --c-status-new-bg: #ECEFEA;
  --c-status-new-fg: #0F1A1F;
  --c-status-dev-bg: #173A48;
  --c-status-dev-fg: #9CCBDD;
  --c-status-due-bg: #3A3220;
  --c-status-due-fg: #E9C46A;
  --c-seg-bg: #0F1A1F;
  --c-seg-on: #283840;
  --seg-shadow: none;
  --menu-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
