/* Wave 4 pages only. site.css stays untouched: its ?v= hash sits on every live page. */
/* six own links plus four group links: tighter than the longest live nav */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hdr__in { gap: 8px; }
  .hdr__nav a { padding: 0 4px; font-size: .8125rem; white-space: nowrap; }
}
/* ten links don't fit on one line here: same as under 900, the footer carries them */
@media (min-width: 900px) and (max-width: 1023px) {
  .hdr__nav { display: none; }
  .hdr__nav + .hdr__yr { margin-left: auto; }
}
/* long status words are wider than the shared 8.75rem legend column */
.legend li { grid-template-columns: auto minmax(0, 1fr); }
.rc select { text-overflow: ellipsis; }
/* 7 to 13 fields: three-up already at 1280, so the action stays nearer the fold */
@media (min-width: 1280px) {
  .rc:has(> .band ~ .band ~ .band ~ .band ~ .band ~ .band ~ .band) > .band { flex-basis: calc(33.33% - 3px); padding: 12px 14px; }
  .rc .seg label span { padding-inline: 6px; }
}
/* long forms stay fully visible, so the action rides the bottom of the screen until the form ends */
@media (min-width: 1100px) {
  .rc > .go { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -12px 0 var(--bg, #111); }
  html { scroll-padding-bottom: 88px; } /* a focused field or error never lands behind the action */
}
/* "€ 1.550" stays on one line; the note under an amount may wrap */
@media (min-width: 800px) and (max-width: 1099px), (min-width: 1280px) {
  .tbl--out:has(thead) tbody td:nth-child(-n+4) { white-space: nowrap; }
  .tbl--out:has(thead) .t-sub { white-space: normal; }
}
/* tables with column heads: each row becomes a block where seven columns don't fit (phone, narrow tool pane); the labels come from isolatie.js (data-l) */
@media (max-width: 799px), (min-width: 1100px) and (max-width: 1279px) {
  .tbl--out:has(thead), .tbl--out:has(thead) :is(caption, tbody, tr, th, td) { display: block; }
  .tbl--out:has(thead) thead { display: none; }
  .tbl--out:has(thead) tbody tr { padding: 10px 0; border-top: 1px solid var(--rule); }
  .tbl--out:has(thead) tbody :is(th, td) { padding: 2px 0; border: 0; }
  .tbl--out:has(thead) tbody td { display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .tbl--out:has(thead) tbody td::before { content: attr(data-l); color: var(--mute); text-align: left; }
  .tbl--out:has(thead) tbody tr:last-child > * { border: 0; }
  .tbl--out:has(thead) tbody td:empty { display: none; } /* parts without a sum have only an Oordeel */
  .tbl--out:has(thead) tbody td:has(.t-sub) { flex-wrap: wrap; }
  .tbl--out:has(thead) .t-sub { flex-basis: 100%; }
}
