/* Blok / Vergelijkingstabel (Figma 20:1410). Kernblok Tabel met kopregel.
   Elke cel heeft een eigen rand van 1 px (dus 2 px tussen twee cellen), 16 x 18 px binnenruimte.
   De eerste kolom is de rijkop: 198 px bij vier kolommen, 248 px bij drie. is-scans: kleinere celtekst (14/24). */
.inc-tabel > * { margin-block: 0; }
.inc-tabel > .inc-sectiekop { margin-bottom: 32px; }
.inc-tabel > .inc-tabel__intro { margin: 0 0 32px; font-size: 15px; line-height: 28px; }
.inc-tabel .wp-block-table { margin: 0; overflow-x: auto; }
.inc-tabel .wp-block-table table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.inc-tabel .wp-block-table :is(th, td) {
	padding: 16px 18px; border: 1px solid var(--inc-rand); background: var(--inc-wit);
	font: 400 15px/28px var(--inc-sans); color: var(--inc-tekst); text-align: left; vertical-align: top; word-break: normal; overflow-wrap: break-word;
}
.inc-tabel .wp-block-table thead { border: 0; }
.inc-tabel .wp-block-table thead th { background: var(--inc-donker); color: var(--inc-wit); font: 400 21px/29px var(--inc-serif); height: 63px; }
.inc-tabel .wp-block-table tbody td:first-child { background: var(--inc-zacht); color: var(--inc-donker); font: 600 14px/26px var(--inc-sans); }
.inc-tabel .wp-block-table tr > :first-child { width: 17.935%; }
.inc-tabel .wp-block-table tr > :first-child:nth-last-child(3) { width: 22.464%; }
.inc-tabel .wp-block-table td a { color: var(--inc-donker); font-size: 14px; line-height: 24px; text-transform: uppercase; text-decoration: none; }
.inc-tabel .wp-block-table td a:hover { text-decoration: underline; }
.inc-tabel .wp-block-table figcaption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--inc-tekst-zacht); }

.inc-tabel.is-scans .wp-block-table thead th { line-height: 30px; height: 64px; }
.inc-tabel.is-scans .wp-block-table tbody td { font-size: 14px; line-height: 24px; }
.inc-tabel.is-scans .wp-block-table tbody td:first-child { color: var(--inc-tekst); }

/* Mobiel (Figma 43:5334): elke rij wordt een kaart, met de kolomnaam boven elke waarde.
   De kolomnaam staat in data-kolom op de cel (gezet bij het tonen van het blok). Zonder data-kolom blijft het een tabel die je opzij schuift. */
@media (max-width: 959px) {
	.inc-tabel > .inc-sectiekop, .inc-tabel > .inc-tabel__intro { margin-bottom: 24px; }
	.inc-tabel > .inc-tabel__intro { line-height: 26px; }
	.inc-tabel .wp-block-table :is(th, td) { padding: 16px; line-height: 26px; }
	.inc-tabel .wp-block-table thead th { line-height: 28px; }
}
@media (max-width: 767px) {
	.inc-tabel .wp-block-table:not(:has([data-kolom])) table { min-width: 640px; }
	.inc-tabel .wp-block-table:has([data-kolom]) :is(table, thead, tbody) { display: block; border: 0; }
	.inc-tabel .wp-block-table:has([data-kolom]) tr > :first-child:nth-last-child(n) { width: auto; }
	.inc-tabel .wp-block-table:has([data-kolom]) tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.inc-tabel .wp-block-table:has([data-kolom]) tbody tr { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 4px; background: var(--inc-zacht); }
	.inc-tabel .wp-block-table:has([data-kolom]) tbody tr td { display: block; width: auto; padding: 0; border: 0; background: none; }
	.inc-tabel .wp-block-table:has([data-kolom]) tbody tr td:first-child { line-height: 24px; }
	.inc-tabel .wp-block-table:has([data-kolom]) tbody tr td:first-child:empty { display: none; }
	.inc-tabel .wp-block-table:has([data-kolom]) td[data-kolom]::before { content: attr(data-kolom); display: block; margin-bottom: 4px; font: 600 14px/24px var(--inc-sans); color: var(--inc-kop); }

	/* Kopregel: alleen de naam van de eerste kolom blijft staan, als balk. */
	.inc-tabel .wp-block-table:has([data-kolom]) thead tr { display: block; }
	.inc-tabel .wp-block-table:has([data-kolom]) thead tr th { display: none; }
	.inc-tabel .wp-block-table:has([data-kolom]) thead tr th:first-child:not(:empty) { display: block; width: auto; height: auto; margin-bottom: 16px; padding: 12px; border: 0; border-radius: 4px; }
}
@media (min-width: 600px) and (max-width: 767px) {
	.inc-tabel .wp-block-table:has([data-kolom]) tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
