/* =====================================================================
   onderzoek.css — de onderzoekspagina /onderzoek/websites-twente.
   Leest als een rapport: grote cijfers met hun noemer, één balkenlijst,
   tabellen die in hun eigen kader scrollen. Lime alleen bij het
   hoofdcijfer (DESIGN.md: lime is signaal, geen behang).
   ===================================================================== */

.o-pagina { padding-bottom: clamp(48px, 8vw, 96px); }
/* De template-stijl van .container komt na dit bestand en wint dus van
   .o-smal op hetzelfde element; daarom de kinderen begrenzen. Leesbare
   regels, links uitgelijnd met de kop. */
.o-smal, .o-pagina .container.o-smal > * { max-width: 760px; }

.o-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg-dim); margin-bottom: 14px;
}

.o-pagina .o-kop { padding-top: clamp(24px, 4vw, 40px); }
.o-kop h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.025em;
  max-width: 15em; margin-bottom: 24px;
}
.o-lede { font-size: 19px; line-height: 1.6; color: var(--fg-dim); max-width: 640px; }

/* Kerncijfers: het getal is het beeld. */
.o-pagina .o-kerncijfers {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(32px, 5vw, 56px);
}
.o-kern {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.o-kern-getal {
  font-family: var(--serif); font-size: clamp(44px, 5vw, 60px); line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.o-kern-signaal .o-kern-getal { align-self: flex-start; background: var(--lime); border-radius: 10px; padding: 2px 10px; margin-left: -10px; }
.o-kern-tekst { font-size: 15px; line-height: 1.45; color: var(--fg); }
.o-kern-noemer { font-size: 13px; color: var(--fg-dim); margin-top: auto; }

/* .o-pagina ervoor: anders wint de padding van .container uit het sjabloon. */
.o-pagina .o-sectie { padding-top: clamp(40px, 6vw, 72px); }
.o-sectie h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 16px;
}
.o-sectie p { font-size: 17px; line-height: 1.65; color: var(--fg-2); margin-bottom: 14px; }
.o-sectie a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
@media (hover: hover) { .o-sectie a:hover { text-decoration-color: var(--fg); } }

.o-kort { background: var(--bg-2); border-radius: 20px; padding: clamp(20px, 3vw, 28px); }
.o-kort p:last-child { margin-bottom: 0; }

/* De tien checks: één balk per check, van vaak naar zelden. */
.o-balken { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.o-balk {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 220px) 7.5em;
  align-items: center; gap: 16px; font-size: 15px;
}
.o-balk-naam { line-height: 1.4; }
.o-balk-spoor { height: 10px; border-radius: 100px; background: var(--line); overflow: hidden; }
.o-balk-spoor span { display: block; height: 100%; border-radius: 100px; background: var(--fg); }
.o-balk-getal { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.o-balk-getal small { display: block; font-weight: 400; font-size: 12px; color: var(--fg-dim); }

.o-lijst { padding-left: 20px; margin: 8px 0 16px; }
.o-lijst li { font-size: 17px; line-height: 1.6; margin-bottom: 10px; color: var(--fg-2); }

/* Tabellen scrollen binnen hun eigen kader, nooit de pagina. */
.o-tabel-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); margin: 20px 0 12px;
}
.o-tabel-wrap:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.o-tabel { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 620px; }
.o-tabel th, .o-tabel td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--line); }
.o-tabel th:first-child { text-align: left; }
.o-tabel thead th {
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-dim); vertical-align: bottom;
}
.o-tabel tbody th { font-weight: 500; }
.o-tabel tbody tr:last-child th, .o-tabel tbody tr:last-child td { border-bottom: 0; }

.o-noot { font-size: 14px !important; color: var(--fg-dim) !important; }
.o-leeg { color: var(--fg-dim); font-style: italic; }
.o-pagina .o-slot { margin-top: clamp(40px, 6vw, 72px); }
.o-slot p { border-top: 1px solid var(--line); padding-top: 24px; }

@media (max-width: 980px) {
  .o-pagina .o-kerncijfers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .o-pagina .o-kerncijfers { grid-template-columns: minmax(0, 1fr); }
  .o-balk { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .o-balk-naam { grid-column: 1 / -1; }
  .o-lede { font-size: 17px; }
  /* Tabel op een telefoon: één blok per rij, kolomnaam bij elk getal. */
  .o-tabel-wrap { overflow: visible; }
  .o-tabel { min-width: 0; }
  .o-tabel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .o-tabel, .o-tabel tbody, .o-tabel tr, .o-tabel th, .o-tabel td { display: block; }
  .o-tabel tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .o-tabel tbody tr:last-child { border-bottom: 0; }
  .o-tabel tbody th { padding: 0 0 8px; border: 0; font-size: 16px; }
  .o-tabel tbody td { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border: 0; }
  .o-tabel tbody td::before { content: attr(data-kop); color: var(--fg-dim); text-align: left; }
}
