/*
 * faq.css — veelgestelde vragen met native <details>. Geen JavaScript.
 * Eén smalle kolom, haarlijnen, en een + dat een − wordt.
 * Laadt alleen op pagina's met de faq-pattern.
 */

.devakmaat-faq__kop {
	max-width: 12ch;
}

.devakmaat-faq__raster .devakmaat-zacht {
	max-width: 30ch;
}

.devakmaat-faq__lijst {
	border-block-start: 1px solid var(--wp--custom--kleur--rand);
}

@media (max-width: 63.999em) {
	/* !important is nodig: wp-block-library zet flex-wrap: nowrap !important
	   vanaf 782px. */
	.devakmaat-faq__raster {
		flex-wrap: wrap !important;
	}

	.devakmaat-faq__raster > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.devakmaat-faq .wp-block-details {
	border-block-end: 1px solid var(--wp--custom--kleur--rand);
}

.devakmaat-faq .wp-block-details summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: var(--wp--preset--spacing--30) 0;
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--middel);
	line-height: 1.35;
	color: var(--wp--preset--color--staalblauw);
}

.devakmaat-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

/* Hover markeert het plusje, niet de tekst: Werforanje op een lichte grond is
   geen tekstkleur (zie de contrast-regels in CLAUDE.md). */
.devakmaat-faq .wp-block-details summary:hover::after {
	background-color: var(--wp--preset--color--staalblauw);
	border-color: var(--wp--preset--color--staalblauw);
	color: var(--wp--preset--color--wit);
}

/* Het teken zit in een eigen vierkantje, zodat het een echt doel is. */
.devakmaat-faq .wp-block-details summary::after {
	content: "+";
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: var(--wp--custom--radius--m);
	/* Wit op de zandband: in dezelfde zandkleur zou het vierkantje wegvallen. */
	background-color: var(--wp--custom--kleur--oppervlak);
	border: 1px solid var(--wp--custom--kleur--rand);
	font-family: var(--wp--preset--font-family--inter);
	font-weight: 400;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--wp--preset--color--staalblauw);
	transition: background-color var(--wp--custom--overgang), color var(--wp--custom--overgang);
}

.devakmaat-faq .wp-block-details[open] summary::after {
	content: "\2013"; /* en-dash: zit wél in het fontsubset, een echte minus niet */
}

.devakmaat-faq .wp-block-details > :not(summary) {
	margin-block: 0 var(--wp--preset--spacing--30);
}

.devakmaat-faq .wp-block-details p {
	max-width: 62ch;
	color: var(--wp--custom--kleur--tekst-zacht);
}
