/* ---------- Fonts (lokaal gehost, geen externe verzoeken) ---------- */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/archivo-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/archivo-800-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/archivo-500-italic.woff2") format("woff2");
}

:root {
  --green: #9acc52;
  --ink: #111111;
  --paper: #ffffff;
  --muted: #a8a8a8;
  --line: 3px solid var(--ink);
  --line-thin: 2px solid var(--ink);
  --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:hover {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.hidden,
[hidden] {
  display: none !important;
}

/* ---------- Typografie & knoppen ---------- */

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 12px 6px;
  background: var(--paper);
  border: var(--line);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.btn-ink,
.btn-green,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 20px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--green);
}

.btn-ink:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-green {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.btn-green:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}

.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-ink:disabled,
.btn-green:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--green);
  border-bottom: var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px var(--pad);
}

.site-logo {
  flex: none;
  display: block;
  padding: 3px;
  background: var(--paper);
  border: var(--line-thin);
}

.site-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.site-header .btn-stem-nu {
  margin-left: auto;
  padding: 15px 18px;
}

.menu-toggle {
  display: inline-flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  border: var(--line);
  border-radius: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
}

.site-nav {
  order: 4;
  flex-basis: 100%;
}

.site-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: var(--line-thin);
}

.site-nav__list li + li {
  border-top: var(--line-thin);
}

.site-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.site-nav__list a:hover,
.site-nav a.is-active {
  background: var(--ink);
  color: var(--green);
}

.site-nav__account {
  display: flex;
  margin-top: 10px;
}

.site-nav__account a {
  flex: 1;
  border: var(--line-thin);
  text-align: center;
}

.site-nav__account a:hover {
  background: var(--ink);
  color: var(--green);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .site-header__inner {
    flex-wrap: nowrap;
    gap: 24px;
    padding: 18px var(--pad);
  }

  .site-logo img {
    width: 54px;
    height: 54px;
  }

  .site-nav.collapse,
  .site-nav.collapsing {
    order: 0;
    display: flex !important;
    flex: 1;
    align-items: center;
    gap: 18px;
    height: auto !important;
    transition: none;
  }

  .site-nav__list {
    display: flex;
  }

  .site-nav__list li + li {
    border-top: 0;
    border-left: var(--line-thin);
  }

  .site-nav__list a {
    padding: 10px 18px;
    font-size: 11px;
  }

  .site-nav__account {
    margin: 0 0 0 auto;
  }

  .site-nav__account a {
    padding: 8px 2px;
    border: 0;
    font-size: 11px;
    text-decoration: underline 2px;
    text-underline-offset: 5px;
  }

  .site-nav__account a:hover,
  .site-nav__account a.is-active {
    background: transparent;
    color: var(--ink);
    text-decoration-thickness: 3px;
  }

  .site-header .btn-stem-nu {
    margin-left: 0;
    padding: 12px 18px;
    font-size: 11px;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero__intro {
  padding: 28px var(--pad) 40px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin: 0 0 26px;
  font-size: 26vw;
  line-height: 0.84;
}

.hero__title .is-outline {
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
}

.hero__lead {
  max-width: 34em;
  margin: 0 0 26px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: var(--line);
}

.stats__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 12px 10px 10px;
}

.stats__item + .stats__item {
  border-left: var(--line);
}

.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.stats dt {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Spotlight ---------- */

.spotlight {
  padding: 24px var(--pad) 22px;
  background: var(--ink);
  color: var(--paper);
}

.spotlight__progress {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.spotlight__segment {
  flex: 1;
  height: 5px;
  overflow: hidden;
  background: #3a3a3a;
}

.spotlight__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
}

.spotlight__segment.is-done .spotlight__fill {
  transform: scaleX(1);
}

.spotlight__segment.is-current .spotlight__fill {
  animation: spotlight-fill 6s linear forwards;
}

.spotlight.is-paused .spotlight__fill {
  animation-play-state: paused;
}

@keyframes spotlight-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.spotlight__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.spotlight__head > div:first-child {
  min-width: 0;
}

.spotlight__label {
  margin: 0 0 6px;
  color: #bdbdbd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.spotlight__name {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.spotlight__controls {
  display: flex;
  flex: none;
  gap: 8px;
}

.spotlight__ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--paper);
  border-radius: 0;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.spotlight__ctrl:hover {
  background: var(--paper);
  color: var(--ink);
}

.spotlight__ctrl:focus-visible,
.spotlight :focus-visible {
  outline-color: var(--green);
}

.icon-pause {
  display: block;
  width: 13px;
  height: 15px;
  border-right: 4px solid currentColor;
  border-left: 4px solid currentColor;
}

.is-paused .icon-pause {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-right: 0;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.spotlight__stage {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #1b1b1b;
  border: 3px solid var(--green);
}

/* Hele poster tonen (contain): niets van de poster valt weg. */
.spotlight__poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.06;
  object-fit: contain;
  object-position: center;
  background: #1b1b1b;
}

/* Slogan en knoppen onder de poster i.p.v. eroverheen. */
.spotlight__overlay {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--ink);
  border-top: 3px solid var(--green);
}

.spotlight__quote {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  line-height: 1.3;
}

.spotlight__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spotlight__actions > * {
  min-height: 46px;
}

.spotlight__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spotlight.is-empty .spotlight__stage,
.spotlight.is-empty .spotlight__controls,
.spotlight.is-empty .spotlight__progress {
  display: none;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 21vw;
  }

  .spotlight__poster {
    aspect-ratio: 1.06 / 1;
  }

  .spotlight__overlay {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px 18px;
  }

  .spotlight__quote {
    max-width: 55%;
  }

  .spotlight__actions {
    display: flex;
    gap: 8px;
  }

  .spotlight__actions > * {
    min-height: 38px;
    padding: 10px 16px;
    font-size: 11px;
  }
}

@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .hero__intro {
    padding: 40px var(--pad) 40px;
  }

  .hero__title {
    font-size: min(13.5vw, 230px);
  }

  .spotlight {
    padding: 24px 24px 22px;
  }

  .spotlight__name {
    font-size: 24px;
  }

  .spotlight__ctrl {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .spotlight__poster {
    aspect-ratio: 0.88;
  }

  .spotlight__overlay {
    padding: 12px 14px;
  }

  .spotlight__quote {
    font-size: 13px;
  }

  .spotlight__actions > * {
    padding: 9px 14px;
    font-size: 10px;
  }
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  padding: 16px 0;
  background: var(--ink);
  border-top: 1px solid #2c2c2c;
  color: var(--green);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker__group {
  display: flex;
  flex: none;
  align-items: center;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__item::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Partijen ---------- */

.parties {
  padding: 56px var(--pad) 48px;
}

.parties__head {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.parties__title {
  font-size: clamp(56px, 15.5vw, 132px);
}

.parties__intro p {
  max-width: 30em;
  margin: 0 0 22px;
  font-weight: 500;
  line-height: 1.55;
}

.party-tools {
  display: flex;
  background: var(--paper);
  border: var(--line);
}

.party-tools input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font: 600 14px/1.2 var(--font-body);
}

.party-tools input::placeholder {
  color: #555;
  font-weight: 700;
}

.party-tools input:focus-visible {
  outline: none;
}

.party-tools:focus-within {
  box-shadow: 0 0 0 3px var(--paper);
}

.party-tools button {
  flex: none;
  padding: 0 16px;
  background: var(--ink);
  border: 0;
  border-radius: 0;
  color: var(--green);
  font: 800 12px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.party-tools button:hover {
  color: var(--paper);
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.party-grid__message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  background: var(--paper);
  border: var(--line);
  font-weight: 700;
}

.party-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--green);
  border: var(--line);
}

.party-card[hidden] {
  display: none;
}

.party-card__media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #222;
  border-bottom: var(--line);
}

.party-card__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.party-card:hover .party-card__poster {
  transform: scale(1.03);
}

.party-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 12px;
  color: #bdbdbd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.party-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 10px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.party-card__name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.party-card__name a {
  text-decoration: none;
}

.party-card__slogan {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.party-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: auto;
}

.party-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px;
  border: var(--line-thin);
  border-radius: 0;
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.party-card__btn--info {
  background: var(--paper);
  color: var(--ink);
}

.party-card__btn--info:hover {
  background: var(--ink);
  color: var(--paper);
}

.party-card__btn--vote {
  background: var(--ink);
  color: var(--green);
}

.party-card__btn--vote:hover:not(:disabled) {
  background: var(--paper);
  color: var(--ink);
}

.party-card__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.party-card:hover .party-card__body,
.party-card:focus-within .party-card__body {
  background: var(--ink);
  color: var(--paper);
}

.party-card:hover .party-card__btn--info,
.party-card:focus-within .party-card__btn--info {
  background: var(--ink);
  border-color: var(--paper);
  color: var(--paper);
}

.party-card:hover .party-card__btn--info:hover,
.party-card:focus-within .party-card__btn--info:hover {
  background: var(--paper);
  color: var(--ink);
}

.party-card:hover .party-card__btn--vote,
.party-card:focus-within .party-card__btn--vote {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.party-card:hover .party-card__btn--vote:hover:not(:disabled),
.party-card:focus-within .party-card__btn--vote:hover:not(:disabled) {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.parties__note,
.parties__empty {
  margin: 22px 0 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .party-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .party-card__body {
    padding: 14px 14px 16px;
  }

  .party-card__actions {
    grid-template-columns: 1fr 1fr;
  }

  .party-card__btn--vote {
    border-color: var(--ink);
  }
}

@media (min-width: 1100px) {
  .parties__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    align-items: end;
  }

  .parties__title {
    font-size: min(7.8vw, 132px);
  }

  .party-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-top: var(--line);
    border-left: var(--line);
  }

  .party-card {
    border: 0;
    border-right: var(--line);
    border-bottom: var(--line);
  }

  .party-card__body {
    padding: 12px 12px 14px;
  }

  .party-card__name {
    font-size: 20px;
  }

  .party-card__slogan {
    font-size: 12px;
  }

  .party-card__btn {
    min-height: 34px;
    font-size: 10px;
  }
}

/* ---------- Footer & stembalk ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 44px var(--pad);
  background: var(--ink);
  color: var(--paper);
}

.site-footer__brand {
  margin: 0;
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 60px);
  line-height: 1;
  text-transform: uppercase;
}

.site-footer__meta {
  margin: 0;
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 1100px) {
  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer__brand {
    font-size: 40px;
  }
}

.vote-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--pad) 16px;
  background: var(--ink);
  border-top: 1px solid #2c2c2c;
  color: var(--paper);
}

.vote-bar__label {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vote-bar__title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.vote-bar .btn-green {
  padding: 14px 18px;
}

@media (min-width: 768px) {
  .vote-bar {
    display: none;
  }
}

/* ---------- Overige pagina's ---------- */

.page {
  padding: 40px var(--pad) 64px;
}

.page__title {
  margin-bottom: 18px;
  font-size: clamp(56px, 13vw, 132px);
}

.page__lead {
  max-width: 36em;
  margin: 0 0 30px;
  font-size: 1.05rem;
  font-weight: 500;
}

.panel {
  padding: 24px;
  background: var(--paper);
  border: var(--line);
}

.form-panel {
  max-width: 520px;
}

.form-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.form-panel label {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-panel input {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0 0 18px;
  padding: 0 14px;
  background: var(--paper);
  border: var(--line);
  border-radius: 0;
  color: var(--ink);
  font: 600 16px/1 var(--font-body);
}

.form-panel input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--green);
}

.form-panel button[type="submit"] {
  width: 100%;
  margin-top: 4px;
}

.form-panel .btn-ink + .btn-ink {
  margin-top: 10px;
}

.page-links {
  margin: 18px 0 0;
  font-weight: 600;
}

.page-links a,
.form-panel a {
  font-weight: 800;
  text-decoration: underline 2px;
  text-underline-offset: 3px;
}

.form-panel .text-muted {
  margin: 12px 0 0;
  font-size: 13px;
}

.notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--paper);
  border: var(--line);
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 28px;
  padding: 12px 16px;
  background: var(--paper);
  border: var(--line-thin);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover {
  background: var(--ink);
  color: var(--green);
}

/* Partijdetail: de inhoud wordt door main.js opgebouwd. */
#partyDetails {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

#partyDetails h1 {
  margin: 0 0 14px !important;
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 128px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

#partyDetails h2 {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

#partyDetails p {
  max-width: 40em;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
}

#partyDetails > .mt-5 {
  margin-top: 32px !important;
}

#partyDetails .btn-primary {
  padding: 15px 34px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--green);
  font: 800 13px/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#partyDetails .btn-primary:hover,
#partyDetails .btn-primary:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

#partyDetails .btn-primary:disabled {
  opacity: 0.45;
}

#partyDetails .ratio {
  max-width: 960px;
  background: var(--ink);
  border: var(--line);
}

#partyDetails .text-center {
  text-align: left !important;
}

#partyDetails .party-detail-poster {
  width: 100%;
  max-width: 520px;
  height: auto;
  border: var(--line);
}

@media (min-width: 1100px) {
  #partyDetails {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-rows: repeat(5, auto) 1fr;
    column-gap: 48px;
  }

  #partyDetails > * {
    grid-column: 1;
  }

  #partyDetails > .text-center {
    grid-column: 2;
    grid-row: 1 / -1;
    margin-top: 0 !important;
  }
}

.chart-panel {
  padding: 16px;
  background: var(--paper);
  border: var(--line);
}

/* ---------- Beheer ---------- */

.btn-sm {
  padding: 10px 14px;
  font-size: 11px;
}

.btn-outline,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--green);
}

.btn-danger {
  border-color: #b3261e;
  color: #b3261e;
}

.btn-danger:hover {
  background: #b3261e;
  color: var(--paper);
}

.btn-outline.btn-sm,
.btn-danger.btn-sm {
  padding: 10px 14px;
  font-size: 11px;
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.admin-welcome {
  display: inline-block;
  margin: 0 0 30px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-welcome:empty {
  display: none;
}

.admin-tiles {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-tile a {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 220px;
  padding: 22px 20px;
  background: var(--paper);
  border: var(--line);
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.admin-tile a:hover {
  background: var(--ink);
  color: var(--green);
}

.admin-tile__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 0.9;
  text-transform: uppercase;
}

.admin-tile__text {
  font-size: 14px;
  font-weight: 500;
}

.admin-tile__cta {
  margin-top: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.admin-stack {
  display: grid;
  gap: 32px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list > p {
  margin: 0;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-list hr {
  display: none;
}

.admin-item,
.user-overview-item {
  padding: 16px 18px;
  background: var(--paper);
  border: var(--line);
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.admin-item__title,
.user-overview-item strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.admin-item__meta {
  margin-top: 4px;
  color: #555;
  font-size: 12px;
}

.admin-item__actions,
.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.form-panel input[type="hidden"] {
  display: none;
}

.form-panel input[type="file"] {
  height: auto;
  padding: 8px;
  font-size: 14px;
}

.form-panel input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  background: var(--ink);
  border: 0;
  color: var(--green);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.form-panel textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--paper);
  border: var(--line);
  border-radius: 0;
  color: var(--ink);
  font: 500 16px/1.5 var(--font-body);
  resize: vertical;
}

.form-panel textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--green);
}

.form-panel small {
  display: block;
  margin: -10px 0 18px;
  color: #444;
  font-size: 12px;
  line-height: 1.4;
}

.form-panel .user-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-panel .user-form-actions button {
  flex: 1;
  width: auto;
  margin: 0;
}

.form-status {
  margin: 14px 0 0;
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

@media (min-width: 768px) {
  .admin-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .admin-grid {
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker__track {
    animation: none;
  }

  .party-card__poster {
    transition: none;
  }
}
