/* hub.css — Basis opmaak voor resteert-data programmatische hub-pagina's.
   Intentioneel licht: leesbare typografie, geen externe fonts, CLS-veilig.
   Doelstelling: informatie helder overbrengen, geen design-showcase. */

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

html { font-size: 16px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}

a { color: #1a56db; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
header {
  background: #1a56db;
  padding: .75rem 1.25rem;
}
header a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; color: #555; }

p { margin: .5rem 0; }

/* ---- Lead / stat section ---- */
.lead {
  background: #f3f7ff;
  border-left: 4px solid #1a56db;
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
}
.lead strong { font-size: 1.4rem; }
.context { color: #555; font-size: .9rem; }

/* ---- CTA ---- */
.cta, .rst-cta {
  background: #fff8e1;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: center;
}
.cta .btn, .rst-cta__btn {
  display: inline-block;
  background: #1a56db;
  color: #fff;
  text-decoration: none;
  padding: .65rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
}
.cta .btn:hover, .rst-cta__btn:hover { background: #1648c0; text-decoration: none; }
.cta small, .rst-cta__sub { display: block; color: #555; font-size: .85rem; margin-top: .5rem; }

/* ---- Sticky footer CTA ---- */
.rst-cta--sticky {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid #1a56db;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,.1);
}
.rst-cta--sticky .rst-cta__btn { white-space: nowrap; }
.rst-cta--sticky .rst-cta__sub { margin: 0; font-size: .8rem; }

/* ---- Breakdown table ---- */
.breakdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.breakdown th, .breakdown td {
  padding: .45rem .75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.breakdown th { background: #f3f4f6; font-weight: 600; }
.breakdown tr:hover td { background: #f9fafb; }

/* ---- Share row ---- */
.share {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0;
  font-size: .9rem;
}
.share span { color: #555; }
.share a {
  background: #f3f4f6;
  padding: .3rem .75rem;
  border-radius: 4px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: .85rem;
}
.share a:hover { background: #e5e7eb; }

/* ---- Related links nav ---- */
.related {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
  font-size: .9rem;
}
.related ul { margin: .25rem 0; padding-left: 1.1rem; }
.related li { margin: .2rem 0; }

/* ---- Buzz section ---- */
.buzz {
  background: #f9fafb;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.buzz-split { color: #555; font-size: .9rem; }

/* ---- Provenance footer ---- */
footer.provenance {
  margin-top: 3rem;
  font-size: .8rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}
.legal a { color: #6b7280; }

/* ---- Analyse (editorial) ---- */
.analyse {
  background: #f9fafb;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

@media (max-width: 600px) {
  h1 { font-size: 1.4rem; }
  .related { flex-direction: column; gap: 1rem; }
}
