@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/inter-normal-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; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/inter-normal-latin-ext.woff2) format("woff2");
  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-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #061e40; --navy-2: #0c2f5f; --goud: #d6a11a; --goud-tekst: #8a6510;
  --tekst: #1c1f26; --zacht: #5b6470; --lijn: #e3e6eb; --vlak: #f6f7f9; --wit: #fff;
  --breed: 1100px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--tekst); background: var(--wit); }
a { color: var(--navy-2); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--goud); color: var(--navy); padding: .5em 1em; font-weight: 700; z-index: 2000; }
.skip:focus { left: 8px; top: 8px; }

/* Kop */
.kop { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 1000; padding-top: env(safe-area-inset-top); }
.kop__binnen { max-width: var(--breed); margin: 0 auto; padding: 12px 20px 8px; display: flex; align-items: center; gap: 18px; }
.kop__logo img { display: block; height: 46px; width: auto; }
.kop__titel { display: flex; flex-direction: column; line-height: 1.2; border-left: 2px solid var(--goud); padding-left: 16px; }
.kop__label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--goud); }
.kop__naam { font-size: 17px; font-weight: 700; }
.tabs { max-width: var(--breed); margin: 0 auto; padding: 0 12px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; padding: 12px 12px 10px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { border-bottom-color: var(--goud); color: var(--goud); }
.tabs a:focus-visible { outline: 2px solid var(--goud); outline-offset: -2px; }

/* Inhoud */
main { max-width: var(--breed); margin: 0 auto; padding: 28px 20px 40px; }
h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; color: var(--navy); margin: 0 0 10px; }
h2 { font-size: 21px; color: var(--navy); margin: 36px 0 8px; }
.lede { font-size: 19px; color: var(--zacht); margin: 0 0 20px; max-width: 720px; }
.klein { font-size: 15px; color: var(--zacht); max-width: 720px; }
.r { text-align: right; font-variant-numeric: tabular-nums; }

.cijfers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 8px; }
.cijfer { background: var(--vlak); border-radius: 10px; padding: 14px 16px; }
.cijfer b { display: block; font-size: 28px; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cijfer span { font-size: 14px; color: var(--zacht); }

/* Balken */
.balken { list-style: none; margin: 12px 0 0; padding: 0; }
.balk { display: grid; grid-template-columns: minmax(110px, 190px) 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--lijn); }
.balk__naam { font-weight: 700; font-size: 16px; }
.balk__naam small { display: block; font-weight: 400; font-size: 13px; color: var(--zacht); }
.balk__spoor { position: relative; height: 22px; background: var(--vlak); border-radius: 4px; }
.balk__vul { position: absolute; inset: 0 auto 0 0; border-radius: 4px; }
.balk__toen { position: absolute; top: -3px; bottom: -3px; width: 3px; background: #6b7280; border-radius: 2px; }
.balk__getal { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 92px; text-align: right; }
.balk__getal small { display: block; font-weight: 600; font-size: 13px; }
.plus { color: #127a3a; } .min { color: #b3261e; }

/* Halfrond */
.halfrond { margin: 8px 0 0; }
.halfrond svg { width: 100%; max-width: 560px; display: block; margin: 0 auto; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 14px; margin-top: 8px; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Tabellen */
.tabelrol { overflow-x: auto; margin-top: 12px; -webkit-overflow-scrolling: touch; }
.tabel { width: 100%; border-collapse: collapse; font-size: 16px; }
.tabel caption { text-align: left; font-size: 14px; color: var(--zacht); padding-bottom: 6px; }
.tabel th, .tabel td { padding: 9px 10px; border-bottom: 1px solid var(--lijn); vertical-align: top; }
.tabel thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--zacht); border-bottom: 2px solid var(--navy); text-align: left; }
.tabel thead th.r { text-align: right; }
.stip { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: baseline; }

/* Kaart */
.kaartkeuze { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.kaartkeuze label { font-weight: 600; }
select { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid #9aa3ae; border-radius: 8px; background: #fff; min-height: 44px; }
.kaartvlak { height: 520px; border-radius: 10px; overflow: hidden; border: 1px solid var(--lijn); }
.leaflet-container { font: 15px/1.45 Inter, Arial, sans-serif; }
.leaflet-popup-content { margin: 12px 14px; min-width: 210px; }
.pop h3 { margin: 0 0 2px; font-size: 16px; color: var(--navy); }
.pop p { margin: 0 0 8px; color: var(--zacht); font-size: 13px; }
.pop ol { margin: 0; padding: 0; list-style: none; }
.pop li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }

/* Kandidaten */
.kandidaten { list-style: none; padding: 0; margin: 8px 0 0; }
.kand { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--lijn); }
.kand__nr { color: var(--zacht); font-variant-numeric: tabular-nums; text-align: right; }
.kand__naam { font-weight: 600; }
.kand__stemmen { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.kand__spoor { grid-column: 2 / 4; position: relative; height: 8px; background: var(--vlak); border-radius: 4px; }
.kand__vul { position: absolute; inset: 0 auto 0 0; border-radius: 4px; }
.kand__drempel { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--navy); }
.etiket { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.etiket--gekozen { background: #e7f4ec; color: #0e5c2c; }
.etiket--voorkeur { background: #fdf3dd; color: #6b4e08; }
.restzetels { padding-left: 20px; }
.restzetels li { margin: 4px 0; }

.voet { background: var(--navy); color: #cfd6e0; text-align: center; font-size: 14px; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.voet a { color: #fff; }

@media (max-width: 639px) {
  body { font-size: 16px; }
  .kop__binnen { padding: 10px 16px 6px; gap: 12px; }
  .kop__logo img { height: 36px; }
  .kop__titel { padding-left: 12px; }
  .kop__naam { font-size: 15px; }
  main { padding: 20px 16px 32px; }
  .lede { font-size: 17px; }
  .balk { grid-template-columns: 1fr auto; }
  .balk__spoor { grid-column: 1 / 3; order: 3; }
  .kaartvlak { height: 420px; }
}
.tabel tbody th { text-align: left; font-weight: 600; }
select { max-width: 100%; }
.tabel tbody th { white-space: nowrap; }
