/* ==========================================================================
   Nieuws-homepage.

   Alles loopt via de merk-tokens uit theme.css (--paper, --ink, --accent,
   --surface, --line, --muted, --radius). Er staat hier geen enkele merkkleur
   hard, zodat LOLA koraal en ZOË teal krijgt zonder een tweede stylesheet.

   De pagina laadt alleen op de nieuwsvlakken; theme.css blijft leidend voor de
   rest van de site.
   ========================================================================== */

.nh {
  --nh-gap: clamp(1.25rem, 2.5vw, 2.25rem);
  --nh-radius: clamp(.5rem, .8vw, 1rem);
  padding-block: clamp(1rem, 2vw, 1.75rem) clamp(3rem, 6vw, 5rem);
}

/* --- rubrieksbalk --------------------------------------------------------- */

.nh-pills {
  position: relative;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.nh-pills__list {
  display: flex;
  gap: .45rem;
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
  padding: 0 0 .7rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
}
.nh-pills__list::-webkit-scrollbar { display: none; }
.nh-pills__item { flex: 0 0 auto; scroll-snap-align: start; }

.nh-pill {
  display: inline-block;
  padding: .38rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.nh-pill:hover { border-color: var(--ink); }
.nh-pill--active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.nh-pills__more {
  position: absolute;
  right: max(1rem, calc(50% - var(--shell) / 2));
  bottom: .7rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

/* --- bovenblok: hoofdkolom + tijdlijn ------------------------------------- */

.nh__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: var(--nh-gap);
  align-items: start;
}

.nh__main { display: grid; gap: var(--nh-gap); }

/* --- kop-over-beeld kaart -------------------------------------------------- */

.nh-feature { position: relative; }

.nh-feature__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--nh-radius);
  color: #fff;
  text-decoration: none;
  background: var(--ink);
}

.nh-feature__media { position: relative; }
.nh-feature__media img { width: 100%; height: 100%; object-fit: cover; }

.nh-feature--hero .nh-feature__media { aspect-ratio: 16 / 9; }
.nh-feature--wide .nh-feature__media,
.nh-feature--grid .nh-feature__media,
.nh-feature--live .nh-feature__media { aspect-ratio: 3 / 2; }

/* Zonder deze gradient is witte tekst op een willekeurige foto niet
   betrouwbaar leesbaar. */
.nh-feature__link::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0%), rgb(0 0 0 / 78%));
  pointer-events: none;
}

.nh-feature--noimage .nh-feature__link { min-height: 14rem; background: var(--deep); }
.nh-feature--noimage .nh-feature__link::after { inset: 0; }

.nh-feature__overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(.9rem, 2vw, 1.6rem);
}

.nh-feature__topic {
  margin: 0 0 .35rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  opacity: .85;
}

.nh-feature__title {
  margin: 0;
  font-weight: var(--weight-display, 800);
  letter-spacing: -.02em;
  line-height: 1.12;
  text-wrap: balance;
  color: #fff;
}

.nh-feature--hero .nh-feature__title { font-size: clamp(1.6rem, 3.6vw, 2.9rem); }
.nh-feature--wide .nh-feature__title,
.nh-feature--live .nh-feature__title { font-size: clamp(1.15rem, 2vw, 1.6rem); }
.nh-feature--grid .nh-feature__title { font-size: clamp(1.05rem, 1.7vw, 1.35rem); }

.nh-feature__excerpt {
  margin: .55rem 0 0;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 88%);
}

.nh-feature__link:hover .nh-feature__title { text-decoration: underline; text-underline-offset: .16em; }

/* --- badges ---------------------------------------------------------------- */

.nh-badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .22rem .55rem;
  border-radius: .3rem;
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nh-badge--video { background: rgb(0 0 0 / 72%); color: #fff; }
.nh-badge--live { background: var(--accent); color: var(--paper); }

.nh-badge__play {
  width: 0;
  height: 0;
  border-top: .32rem solid transparent;
  border-bottom: .32rem solid transparent;
  border-left: .52rem solid currentColor;
}

.nh-badge__dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: currentColor;
  animation: nh-pulse 1.6s ease-in-out infinite;
}

@keyframes nh-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* --- brede kaarten --------------------------------------------------------- */

.nh-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--nh-gap);
}

/* --- tijdlijn -------------------------------------------------------------- */

.nh-rail {
  position: sticky;
  top: 5.5rem;
  padding: 1.1rem 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--nh-radius);
  background: var(--surface);
}

.nh-rail__title {
  margin: 0 0 1rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.nh-rail__list { list-style: none; margin: 0; padding: 0; }

/* De stippellijn met bolletjes is decoratie en staat daarom hier, niet in de
   opmaak: een schermlezer hoort een lijst, geen tijdlijn-illustratie. */
.nh-rail__item {
  position: relative;
  padding: 0 0 1.05rem 1.15rem;
  border-left: 1px dashed color-mix(in srgb, var(--ink) 28%, transparent);
}
.nh-rail__item:last-child { border-left-color: transparent; padding-bottom: 0; }

.nh-rail__item::before {
  content: "";
  position: absolute;
  left: -.28rem;
  top: .3rem;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
}

.nh-rail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 .18rem;
  font-size: .76rem;
  color: var(--muted);
}
.nh-rail__topic { color: var(--accent); font-weight: 600; }

.nh-rail__link {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
  text-decoration: none;
}
.nh-rail__link:hover { text-decoration: underline; text-underline-offset: .15em; }

/* --- secties --------------------------------------------------------------- */

.nh__sections { display: grid; gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3.5rem); }

.nh-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.nh-section__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: var(--weight-display, 800);
  letter-spacing: -.02em;
  color: var(--ink);
}

.nh-section__more {
  flex: 0 0 auto;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.nh-section__more:hover { text-decoration: underline; }

.nh-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--nh-gap);
}

.nh-section--tinted {
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border-radius: var(--nh-radius);
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
}

/* --- lijstkaart ------------------------------------------------------------ */

.nh-list__link { display: block; color: inherit; text-decoration: none; }

.nh-list__media {
  overflow: hidden;
  border-radius: var(--nh-radius);
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--ink) 12%, var(--surface));
}
.nh-list__media img { width: 100%; height: 100%; object-fit: cover; }

.nh-list__place {
  margin: .6rem 0 .1rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

.nh-list__title {
  margin: .45rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.nh-list__link:hover .nh-list__title { text-decoration: underline; text-underline-offset: .15em; }

.nh-list__excerpt {
  margin: .4rem 0 0;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --- carrousel ------------------------------------------------------------- */

.nh-carousel { position: relative; }

.nh-carousel__track {
  display: flex;
  gap: var(--nh-gap);
  margin: 0;
  padding: 0 0 .5rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.nh-carousel__track::-webkit-scrollbar { display: none; }

.nh-carousel__item { flex: 0 0 min(17rem, 72vw); scroll-snap-align: start; }

.nh-video { display: block; color: inherit; text-decoration: none; }

.nh-video__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--nh-radius);
  aspect-ratio: 16 / 9;
  background: var(--deep);
}
.nh-video__media img { width: 100%; height: 100%; object-fit: cover; }

.nh-video__title {
  margin: .55rem 0 0;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.nh-video:hover .nh-video__title { text-decoration: underline; text-underline-offset: .15em; }

.nh-carousel__nav {
  position: absolute;
  top: calc(50% - 2.2rem);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 0 0 / 12%);
}
.nh-carousel__nav--prev { left: -.6rem; }
.nh-carousel__nav--next { right: -.6rem; }
.nh-carousel__nav:hover { border-color: var(--ink); }

/* --- 2×2-raster ------------------------------------------------------------ */

.nh-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--nh-gap);
}

/* --- interactie ------------------------------------------------------------ */

.nh-feature__link,
.nh-list__link,
.nh-video {
  transition: transform .18s var(--ease-editorial, ease), box-shadow .18s ease;
}
.nh-feature__link:hover,
.nh-list__link:hover,
.nh-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgb(0 0 0 / 12%);
}

.nh a:focus-visible,
.nh button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .nh-feature__link,
  .nh-list__link,
  .nh-video { transition: none; }
  .nh-feature__link:hover,
  .nh-list__link:hover,
  .nh-video:hover { transform: none; }
  .nh-badge__dot { animation: none; }
  .nh-pills__list,
  .nh-carousel__track { scroll-behavior: auto; }
}

/* --- responsive ------------------------------------------------------------ */

@media (max-width: 980px) {
  .nh__top { grid-template-columns: minmax(0, 1fr); }
  .nh-rail { position: static; }
}

@media (max-width: 620px) {
  .nh-features,
  .nh-section__grid,
  .nh-grid2 { grid-template-columns: minmax(0, 1fr); }
  .nh-carousel__nav { display: none; }
}
