/* ============================================================
   ProSmallingerland — stylesheet
   Palet:
     veenwater   #0F2830  (donkere header)
     veendiep    #0A1C22
     papier      #EEF2F1  (achtergrond journaal)
     wit         #FFFFFF
     inkt        #16252B
     pompeblêd   #C8102E  (accent, spaarzaam)
   Typografie:
     Bricolage Grotesque — koppen
     Public Sans          — lopende tekst (civic typeface)
     Spline Sans Mono     — cijfers en data
   ============================================================ */

:root {
  --veenwater: #0F2830;
  --veendiep: #0A1C22;
  --papier: #EEF2F1;
  --wit: #FFFFFF;
  --inkt: #16252B;
  --inkt-zacht: #4E6068;
  --lijn: #D8E0DE;
  --lijn-donker: rgba(255, 255, 255, 0.12);
  --pompebled: #C8102E;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif;
  line-height: 1.15;
  margin: 0;
}

a { color: var(--pompebled); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--pompebled);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono { font-family: "Spline Sans Mono", ui-monospace, monospace; }

/* ============ HEADER / PRESENTIEWIJZER ============ */

.board {
  background: linear-gradient(170deg, var(--veenwater) 0%, var(--veendiep) 100%);
  color: var(--wit);
  padding: 40px 24px 48px;
}

.board-inner { max-width: 1080px; margin: 0 auto; }

.board-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.eyebrow {
  font-family: "Spline Sans Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8FB3AE;
  margin: 0 0 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--pompebled);
  border-radius: 2px;
  margin-right: 9px;
  transform: rotate(45deg) translateY(-1px);
}

.site-title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.site-title .pro { color: #8FB3AE; font-weight: 500; }

.board-stats {
  display: flex;
  gap: 32px;
  text-align: right;
}
.stat-num {
  font-family: "Spline Sans Mono", monospace;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600;
  display: block;
}
.stat-label {
  font-size: 12.5px;
  color: #8FB3AE;
  letter-spacing: 0.04em;
}

/* Partijgrid */
.partij-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px 18px;
}

.partij {
  padding: 12px 4px 10px;
  border-top: 1px solid var(--lijn-donker);
}

.partij-kop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.partij-naam {
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partij-pct {
  font-family: "Spline Sans Mono", monospace;
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.zetel-dots { display: flex; gap: 4px; margin: 7px 0 9px; }
.zetel-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.95;
}

.balk {
  height: 8px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 99px;
  overflow: hidden;
}
.balk-vul {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.board-voetnoot {
  margin-top: 26px;
  font-size: 13px;
  color: #7FA09B;
}

/* ============ JOURNAAL ============ */

main { max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }

.journaal-kop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.journaal-kop h2 { font-size: 27px; font-weight: 700; }
.journaal-intro { color: var(--inkt-zacht); margin: 0 0 36px; font-size: 15.5px; }

article.verslag {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  padding: 26px 28px 20px;
  margin-bottom: 26px;
}

.verslag-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.verslag-datum {
  font-family: "Spline Sans Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--pompebled);
  text-transform: uppercase;
}
.verslag-opkomst {
  font-family: "Spline Sans Mono", monospace;
  font-size: 12.5px;
  color: var(--inkt-zacht);
  border: 1px solid var(--lijn);
  border-radius: 99px;
  padding: 2px 10px;
}

article.verslag h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
article.verslag p { margin: 0 0 12px; }

.verslag-punten { margin: 0 0 14px; padding-left: 20px; }
.verslag-punten li { margin-bottom: 5px; }

details.presentie { border-top: 1px solid var(--lijn); margin-top: 6px; }
details.presentie summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--inkt-zacht);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
details.presentie summary::before {
  content: "▸";
  font-size: 12px;
  transition: transform 0.15s;
}
details.presentie[open] summary::before { transform: rotate(90deg); }
details.presentie summary::-webkit-details-marker { display: none; }

table.presentie-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 14px;
}
table.presentie-tabel td { padding: 5px 0; border-top: 1px dashed var(--lijn); }
table.presentie-tabel td:last-child {
  text-align: right;
  font-family: "Spline Sans Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.kleur-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: baseline;
}
td.afwezig-deels { color: var(--pompebled); font-weight: 600; }

.leeg-melding {
  background: var(--wit);
  border: 1px dashed var(--lijn);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--inkt-zacht);
}

/* ============ FOOTER ============ */

footer {
  border-top: 1px solid var(--lijn);
  padding: 28px 24px 40px;
  max-width: 760px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--inkt-zacht);
}

/* ============ INVOERPAGINA ============ */

.invoer-wrap { max-width: 680px; margin: 0 auto; padding: 40px 24px 80px; }
.invoer-wrap h1 { font-size: 30px; margin-bottom: 6px; }
.invoer-uitleg { color: var(--inkt-zacht); margin: 0 0 30px; }

.veld { margin-bottom: 18px; }
.veld label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.veld input[type="date"],
.veld input[type="text"],
.veld textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--lijn);
  border-radius: 8px;
  background: var(--wit);
}
.veld textarea { min-height: 110px; resize: vertical; }
.veld .hint { font-size: 13px; color: var(--inkt-zacht); margin-top: 4px; }

.aanwezig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  padding: 16px;
}
.aanwezig-item label { font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 4px; }
.aanwezig-item input {
  width: 100%;
  font: inherit;
  font-family: "Spline Sans Mono", monospace;
  padding: 7px 10px;
  border: 1px solid var(--lijn);
  border-radius: 7px;
}

.knop {
  font: inherit;
  font-weight: 700;
  background: var(--veenwater);
  color: var(--wit);
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
}
.knop:hover { background: var(--veendiep); }
.knop.secundair { background: var(--wit); color: var(--inkt); border: 1px solid var(--lijn); }

pre.uitvoer {
  background: var(--veendiep);
  color: #CFE6E1;
  border-radius: var(--radius);
  padding: 18px;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.kopieer-ok { color: #2F7D5B; font-weight: 600; font-size: 14px; margin-left: 12px; }

@media (max-width: 560px) {
  .board { padding: 30px 18px 36px; }
  .board-stats { width: 100%; justify-content: flex-start; text-align: left; }
  article.verslag { padding: 20px 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .balk-vul { transition: none; }
  html { scroll-behavior: auto; }
}
