/* ============ NieuwsIndex design system ============
   Classy newspaper skin for the shared frontend. It keeps the same class
   structure as the other brands while giving NieuwsIndex a restrained masthead,
   navy heraldic accents, ivory paper, and clear index-style hierarchy. */
:root {
  --paper: #fbf8f1;
  --paper-2: #f2ecdf;
  --card: #fffdf8;
  --ink: #12161c;
  --ink-soft: #46403a;
  --ink-faint: #81776a;
  --accent: #012057;
  --accent-dark: #001640;
  --accent-ink: #ffffff;
  --navy: #012057;
  --chip: #e8dfcf;
  --line: #ded2bf;
  --line-strong: #c8b79f;
  --head: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
}
html.dark {
  --paper: #111419;
  --paper-2: #181d24;
  --card: #171b22;
  --ink: #f5efe4;
  --ink-soft: #c9bdad;
  --ink-faint: #8f8374;
  --accent: #f0d8ac;
  --accent-dark: #d5b378;
  --navy: #071a37;
  --chip: #24283a;
  --line: #2b303a;
  --line-strong: #45402f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

.topbar {
  background: var(--accent);
  color: rgba(255, 255, 255, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
}
html.dark .topbar { background: #080b10; }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 34px; }
.topbar-date { white-space: nowrap; font-weight: 600; letter-spacing: .02em; }
.topbar-tagline { font-family: var(--head); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.topbar-spacer { flex: 1; }
.weather { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: rgba(255, 255, 255, .82); }
.theme-toggle {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .26);
  color: #fff;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .16); }

.siteheader {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 3px double var(--line-strong);
  backdrop-filter: blur(12px);
}
.siteheader-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  min-height: 82px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--accent);
  flex-shrink: 0;
}
.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
.logo-word {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(25px, 3.2vw, 38px);
  letter-spacing: -.045em;
  line-height: 1;
}
.lw-nieuws { color: var(--ink); }
.lw-index { color: var(--accent); }

.mainnav { min-width: 0; }
.nav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  padding: 8px 10px;
  color: var(--ink-soft);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); border-bottom-color: var(--line-strong); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-links a[data-nav="net-binnen"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
  vertical-align: 2px;
  animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.search-form {
  display: flex;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(8, 40, 90, .04);
}
.search-form:focus-within { border-color: var(--accent); background: var(--paper); }
.search-form input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 4px 9px 16px;
  width: 160px;
  font: inherit;
  font-size: 14px;
}
.search-form button { border: 0; background: transparent; color: var(--accent); font-size: 17px; padding: 0 13px; cursor: pointer; }
.search-form button:hover { color: var(--accent-dark); }

.ticker { background: var(--card); border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; gap: 14px; height: 40px; }
.ticker-label {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-move { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 60s linear infinite; padding-left: 100%; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { color: var(--ink-soft); font-size: 13.5px; font-weight: 500; }
.ticker-move a:hover { color: var(--accent); }
.ticker-move .tick-src { color: var(--accent); font-weight: 800; margin-right: 6px; font-size: 12px; }
@keyframes ticker { to { transform: translateX(-100%); } }

.breaking { background: var(--navy); color: #fff; }
.breaking a {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 11px 24px;
  font-weight: 700;
  font-size: 15px;
}
.breaking .brk-badge {
  background: #fff;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

#app { padding: 34px 24px 72px; min-height: 60vh; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 42px; }
.layout > div { grid-column: 1; grid-row: 1; }
.layout > .sidebar { grid-column: 2; grid-row: 1; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 42px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.section-head:first-child { margin-top: 0; }
.section-head h2 {
  font-family: var(--head);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
  margin: 0;
}
.section-head h2 a:hover { color: var(--accent); }
.section-head .more { color: var(--accent); font-size: 13px; font-weight: 800; margin-left: auto; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; text-underline-offset: 3px; }

.kicker {
  display: inline-block;
  width: fit-content;
  background: var(--chip);
  color: var(--accent);
  border: 1px solid var(--line);
  font-family: var(--head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.meta { color: var(--ink-faint); font-size: 12.5px; font-weight: 500; }
.meta b { color: var(--ink-soft); font-weight: 800; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(8, 40, 90, .08);
}
.hero-img { display: block; aspect-ratio: 21 / 10; min-height: 300px; background: var(--paper-2); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 96px 30px 28px;
  background: linear-gradient(180deg, rgba(4, 18, 39, 0) 0%, rgba(4, 18, 39, .58) 34%, rgba(4, 18, 39, .94) 100%);
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: #fff;
}
.hero-body .kicker { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(4px); }
.hero-body h1 { font-family: var(--head); font-size: clamp(25px, 3.5vw, 42px); line-height: 1.18; letter-spacing: -.04em; margin: 0; font-weight: 700; max-width: 22ch; }
.hero-body h1 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-body p { margin: 0; color: rgba(255, 255, 255, .84); font-size: 15px; max-width: 64ch; }
.hero-body .meta { color: rgba(255, 255, 255, .68); }
.hero-body .meta b { color: rgba(255, 255, 255, .92); }
.hero .noimg { color: rgba(255, 255, 255, .5); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; }
.card-img {
  aspect-ratio: 16/9;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.025); }
.card-body { padding: 12px 1px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-family: var(--head); font-size: 17px; line-height: 1.42; letter-spacing: -.025em; margin: 0; font-weight: 700; flex: 1; }
.card-body h3 a:hover { color: var(--accent); }

.row-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row-item { display: grid; grid-template-columns: 118px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.row-thumb { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-item h3 { font-family: var(--head); font-size: 16px; margin: 6px 0 4px; line-height: 1.4; letter-spacing: -.02em; font-weight: 700; }
.row-item h3 a:hover { color: var(--accent); }

.noimg { display: grid; place-items: center; color: var(--accent); opacity: .55; height: 100%; min-height: 80px; }
.noimg svg { width: 38%; max-width: 90px; }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 14px 30px rgba(8, 40, 90, .045);
}
.widget > h3 {
  margin: 0 0 6px;
  font-family: var(--head);
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget > h3 .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }
.newest-list { list-style: none; margin: 0; padding: 0; }
.newest-list li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.newest-list li:last-child { border-bottom: 0; }
.newest-time { color: var(--accent); font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.newest-list a { font-size: 13.5px; font-weight: 650; line-height: 1.42; }
.newest-list a:hover { color: var(--accent); }
.newest-list .meta { display: block; margin-top: 2px; }

.popular-list { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.popular-list li { counter-increment: pop; display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.popular-list li:last-child { border-bottom: 0; }
.popular-list li::before {
  content: counter(pop);
  font-family: var(--head);
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
  min-width: 22px;
  line-height: 1;
}
.popular-list a { font-size: 13.5px; font-weight: 650; line-height: 1.42; }
.popular-list a:hover { color: var(--accent); }

.article-page { max-width: 760px; margin: 0 auto; }
.article-page .kicker { font-size: 11.5px; }
.article-page h1 { font-family: var(--head); font-size: clamp(30px, 4.8vw, 46px); line-height: 1.16; letter-spacing: -.04em; margin: 12px 0 14px; font-weight: 700; }
.article-standfirst { font-size: 19px; line-height: 1.58; color: var(--ink-soft); margin: 0 0 18px; font-weight: 500; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.article-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; aspect-ratio: 16/9; max-height: 480px; background: var(--paper-2); border: 1px solid var(--line); }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body p { font-family: var(--head); font-size: 17px; line-height: 1.82; margin: 0 0 19px; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--head); line-height: 1.25; letter-spacing: -.02em; margin: 30px 0 10px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--accent-dark); }
.article-body img { border-radius: 10px; margin: 6px 0; }
.article-body figure { margin: 22px 0; }
.article-body figcaption { font-family: var(--sans); font-size: 13px; color: var(--ink-faint); margin-top: 8px; line-height: 1.45; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 6px 0 6px 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-soft);
}
.article-body ul, .article-body ol { font-size: 17px; line-height: 1.75; margin: 0 0 18px; padding-left: 26px; }
.article-body table { border-collapse: collapse; font-size: 14.5px; margin: 18px 0; width: 100%; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.article-body pre { background: var(--paper-2); border-radius: 10px; padding: 14px; overflow-x: auto; font-size: 13.5px; }
.full-status { color: var(--ink-faint); font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; margin: 6px 0 18px; }
.full-status b { color: var(--ink-soft); }
.mini-loader {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: -1px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.source-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 999px;
  margin: 10px 0 8px;
  font-size: 15px;
  transition: background .15s;
}
.source-cta:hover { background: var(--accent-dark); }
.source-note { color: var(--ink-faint); font-size: 13px; margin-top: 10px; }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 800; font-size: 14px; color: var(--accent); }
.related { margin-top: 44px; }

.page-title { font-family: var(--head); font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.04em; margin: 0 0 6px; }
.page-sub { color: var(--ink-faint); margin: 0 0 26px; font-size: 14.5px; }
.load-more {
  display: block;
  width: fit-content;
  margin: 36px auto 0;
  background: var(--accent);
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 12px 36px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .15s;
}
.load-more:hover { background: var(--accent-dark); }
.load-more[hidden] { display: none; }

.empty { text-align: center; padding: 70px 20px; color: var(--ink-faint); }
.empty .big { font-size: 44px; margin-bottom: 8px; }

.loading { display: grid; place-items: center; padding: 90px 0; color: var(--ink-faint); }
.pulse-loader { width: 52px; height: 52px; position: relative; }
.pulse-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: no-repeat center/contain url("/nieuwsindex/favicon-32.png");
  filter: drop-shadow(0 4px 12px rgba(8, 40, 90, .16));
  animation: pulse-mark 1.4s ease-in-out infinite;
}
@keyframes pulse-mark { 0%, 100% { transform: scale(.94); opacity: .55; } 50% { transform: scale(1.06); opacity: 1; } }

.footer { background: var(--accent); color: rgba(255, 255, 255, .76); margin-top: 30px; border-top: 1px solid var(--line); }
html.dark .footer { background: #080b10; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding: 44px 24px 30px; }
.footer .logo { color: #fff; }
.footer-logo .logo-mark { width: 34px; height: 34px; border-radius: 8px; }
.footer-logo .logo-word { font-size: 24px; }
.footer-logo .lw-nieuws, .footer-logo .lw-index { color: #fff; }
.footer .lw-nieuws, .footer .lw-index { color: #fff; }
.footer-brand p { font-size: 13.5px; line-height: 1.65; margin: 12px 0 0; max-width: 54ch; }
.footer-col { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.footer-col h4 { color: #fff; margin: 0 0 6px; font-family: var(--head); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-updated { font-size: 12px; color: rgba(255, 255, 255, .58); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .16); padding: 16px 24px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }

@media (max-width: 1080px) {
  .siteheader-inner { grid-template-columns: auto auto; }
  .mainnav { order: 3; grid-column: 1 / -1; }
  .nav-links { justify-content: flex-start; }
  .search-form { margin-left: auto; }
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .layout > div { grid-column: 1; grid-row: 1; }
  .layout > .sidebar { grid-column: 1; grid-row: 2; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .topbar-tagline { display: none; }
}
@media (max-width: 680px) {
  .container { padding: 0 18px; }
  .topbar-inner { font-size: 11.5px; gap: 10px; }
  .siteheader-inner { display: flex; flex-wrap: wrap; gap: 8px 14px; min-height: 0; padding-top: 10px; padding-bottom: 7px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-word { font-size: 24px; }
  .search-form { flex: 1; min-width: 0; margin-left: 0; }
  .search-form input { width: 100%; flex: 1; padding: 7px 4px 7px 14px; }
  .mainnav { flex-basis: 100%; order: 3; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
  #app { padding-left: 18px; padding-right: 18px; }
  .hero-img { aspect-ratio: 16/10; min-height: 0; }
  .hero-body { padding: 70px 18px 18px; }
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 96px 1fr; }
  .ticker-move { animation-duration: 40s; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .ticker-track { overflow-x: auto; }
  .ticker-move {
    animation: none !important;
    padding-left: 0;
    white-space: nowrap;
  }
  .card:hover .card-img img { transform: none; }
}
