/* Start: landingspagina (stoplichten, weetjes, heatmap). Alleen bestaande tokens
   uit style.css. Kleur draagt hier alleen de norm (stoplicht); de heatmap is
   neutrale inkt in vijf stappen. Bij "minder beweging" staan telling en
   heatmap direct in de eindstand (geen animatie in dit bestand). */

.start-hero {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
}

.start-hero-tekst {
  margin: 0;
  color: var(--text);
}

.start-periode {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  padding: 0.3125rem 0.75rem;
  border-radius: 62.4375rem;
  background: var(--surface-alt);
  color: var(--text-strong);
  font-size: 0.875rem;
}

.start-ico {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.start-kop {
  margin: 2rem 0 0.25rem;
  font-size: 1.25rem;
}

.start-sub {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* stoplicht: symbool + woord + kleur, kleur is nooit de enige drager */
.start-licht {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.start-licht .start-ico {
  width: 2rem;
  height: 2rem;
}

.start-licht.start-groen {
  background: var(--norm-binnen);
  color: var(--on-norm-binnen);
}

.start-licht.start-oranje {
  background: var(--norm-boven);
  color: var(--on-norm-boven);
}

.start-licht.start-rood {
  background: var(--norm-ver);
  color: var(--on-norm-ver);
}

.start-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-strong);
}

.start-locaties {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
}

.start-loc {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-tegel);
  cursor: pointer;
}

.start-loc-tekst {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.start-loc-regel {
  font-size: 0.875rem;
}

.start-loc:hover {
  background: var(--kaart-hover);
}

.start-loc[aria-expanded="true"] {
  background: var(--keuze-bg);
  border-color: var(--keuze-rand);
  color: var(--keuze-tekst);
}

.start-loc:focus-visible,
.start-afd:focus-visible,
.start-alle a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.start-loc-kop {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.start-loc-naam {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-koppen);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-strong);
}

.start-reden {
  font-size: 0.875rem;
}

.start-loc[aria-expanded="true"] .start-loc-naam,
.start-loc[aria-expanded="true"] .start-loc-regel,
.start-loc[aria-expanded="true"] .start-open {
  color: var(--keuze-tekst);
}

.start-loc-voet {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.start-loc[aria-expanded="true"] .start-loc-voet {
  color: var(--keuze-tekst);
}

.start-open {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--text-strong);
}

.start-open .start-ico,
.start-afd-ga .start-ico,
.start-alle .start-ico {
  width: 1rem;
  height: 1rem;
}

.start-afdpaneel {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.start-afdpaneel[hidden] {
  display: none;
}

.start-pad {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.start-pad strong {
  padding: 0.125rem 0.625rem;
  border-radius: 62.4375rem;
  background: var(--keuze-bg);
  color: var(--keuze-tekst);
  box-shadow: inset 0 0 0 1px var(--keuze-rand);
}

.start-afdlijst {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.start-afd {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.875rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface-alt);
  border-radius: var(--radius-tegel);
}

.start-afd:hover {
  background: var(--kaart-hover);
}

.start-afd .start-licht {
  width: 2.25rem;
  height: 2.25rem;
}

.start-afd .start-licht .start-ico {
  width: 1.5rem;
  height: 1.5rem;
}

.start-afd-naam {
  display: block;
  font-family: var(--font-koppen);
  font-weight: 700;
  color: var(--text-strong);
}

.start-afd-reden,
.start-afd-ga {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
}

.start-afd-ga {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--text-strong);
}

.start-alle {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

.start-alle a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-strong);
  font-weight: 600;
}

/* weetjes */
.start-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.start-weetje {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.start-weetje-kop {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-strong);
}

.start-weetje-ico {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text-strong);
}

.start-weetje-ico .start-ico {
  width: 1.125rem;
  height: 1.125rem;
}

.start-groot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-cijfer);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-strong);
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.start-groot small {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.start-zin {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.start-klein {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.start-nachtregel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.start-nachtregel .start-ico {
  width: 1rem;
  height: 1rem;
}

.start-top3 {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.start-top3 li {
  display: grid;
  grid-template-columns: 1.75rem 1fr auto;
  gap: 0.125rem 0.5rem;
  align-items: center;
}

.start-nr {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--text-strong);
  color: var(--surface);
  font: 700 0.8125rem var(--font-cijfer);
}

.start-top-naam {
  font-weight: 600;
  color: var(--text-strong);
}

.start-top-aant {
  font-weight: 700;
  color: var(--text-strong);
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.start-balk {
  grid-column: 2 / -1;
  display: block;
  height: 0.375rem;
  border-radius: 0.1875rem;
  background: var(--surface-alt);
  overflow: hidden;
}

.start-balk i {
  display: block;
  height: 100%;
  background: var(--text-strong);
}

.start-top-tr {
  grid-column: 2 / -1;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* heatmap-uitklapblok */
.start-heat {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.start-heat > summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: var(--font-koppen);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-strong);
  list-style: none;
}

.start-heat > summary::-webkit-details-marker {
  display: none;
}

.start-heat > summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.start-heat[open] > summary::after {
  transform: rotate(-135deg);
}

.start-heat > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
  border-radius: var(--radius);
}

.start-heat-inhoud {
  position: relative;
  overflow: clip; /* de tabel voor schermlezers is breed en onzichtbaar: niet laten meescrollen */
  padding: 0 1rem 1rem;
}

.start-heat-tekst {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.start-heat-grid {
  display: grid;
  gap: 0.1875rem;
}

.start-heat-rij,
.start-heat-as {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  align-items: center;
  gap: 0.375rem;
}

.start-heat-dag {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.start-heat-cellen {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 0.125rem;
}

.start-heat-uren {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.start-cel {
  display: block;
  aspect-ratio: 1 / 1;
  min-width: 0;
  border-radius: 0.1875rem;
  background: var(--surface-alt);
}

.start-cel.nacht {
  border-bottom: 0.1875rem solid var(--border);
}

.start-cel.h0 {
  background: var(--surface-alt);
}

.start-cel.h1 {
  background: color-mix(in srgb, var(--text-strong) 18%, var(--surface));
}

.start-cel.h2 {
  background: color-mix(in srgb, var(--text-strong) 38%, var(--surface));
}

.start-cel.h3 {
  background: color-mix(in srgb, var(--text-strong) 62%, var(--surface));
}

.start-cel.h4 {
  background: var(--text-strong);
}

.start-cel.piek {
  outline: 2px solid var(--text-strong);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px var(--surface);
}

.start-heat-legenda {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.start-heat-legenda .start-cel {
  width: 1rem;
  height: 1rem;
  aspect-ratio: auto;
}

.start-cta {
  display: flex;
  justify-content: center;
  margin: 2rem 0 1rem;
}

.start-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.start-cta .start-ico {
  width: 1rem;
  height: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  /* de heatmap bouwt zich op: elk vakje in 0,25 s, 4 ms na het vorige */
  @keyframes start-cel-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .start-heat[open] .start-heat-cellen .start-cel {
    animation: start-cel-in 0.25s ease backwards;
    animation-delay: calc(var(--i, 0) * 4ms);
  }
}

@media (max-width: 30rem) {
  .start-groot {
    font-size: 2rem;
  }
}


/* ── Dagkrant (variant B): kop, weerbericht, hoofdweetje met zijkolom ─────── */
.start-kopband {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 0;
  border-top: 3px solid var(--text-strong);
  border-bottom: 1px solid var(--text-strong);
}

.start-krantkop {
  margin: 0;
  font-family: var(--font-branding);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-strong);
}

.start-periode-rechts {
  display: grid;
  margin: 0;
  text-align: right;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.start-periode-rechts strong {
  color: var(--text-strong);
}

.start-weer {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.start-weer-kop {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.start-regel {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.start-krant {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 3fr 2fr;
  margin-top: 1.5rem;
  align-items: start;
}

.start-krant-links,
.start-krant-rechts {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.start-hoofd {
  padding: 1.25rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.start-hoofd-kicker {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.start-hoofd-ico {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface);
}

.start-hoofd-ico .start-ico {
  width: 1.125rem;
  height: 1.125rem;
}

.start-hoofd-kop {
  margin: 0 0 0.75rem;
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--text-strong);
}

.start-hoofd-groot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-cijfer);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-strong);
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.start-hoofd-groot small {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
}

.start-hoofd-detail {
  margin: 0;
  font-size: 0.9375rem;
}

.start-goed {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.start-goed-rij {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  font-size: 0.9375rem;
}

.start-goed-getal {
  font-family: var(--font-cijfer);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-strong);
}

.start-lijst {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.start-lijst-rij {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
}

.start-lijst-rij + .start-lijst-rij {
  border-top: 1px solid var(--border);
}

.start-lijst-waarde {
  font-family: var(--font-cijfer);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-strong);
  font-feature-settings: "lnum" 1, "tnum" 1;
}

@media (max-width: 52rem) {
  .start-krant {
    grid-template-columns: 1fr;
  }

  .start-krantkop {
    font-size: 2.25rem;
  }

  .start-hoofd-kop {
    font-size: 1.375rem;
  }

  .start-hoofd-groot {
    font-size: 3rem;
  }

  .start-periode-rechts {
    text-align: left;
  }
}
