/*
 * Sectie 08: Frequently asked questions (anker #faq). Licht (Egg).
 * Maten uit Figma (tree.txt 463-518): kop 53 hoog met rechts onderaan "All questions", 24 lager de tabs
 * (12 binnenmarge boven, pillen van 43 hoog, gap 8), 24 lager twee kolommen van 516px met gap 72.
 * Vragen als <details>/<summary>: 22 boven en onder, onderrand Chocolate 14%, chevron rechts in het midden.
 * Tabs: js/08-faq.js wisselt aria-selected en hidden; zonder JS blijft het eerste paneel zichtbaar.
 */

.fm-s08 { color: var(--fm-chocolate); }

/* ---------- kop met link ---------- */

/* Salient zet de inhoud van een tekstblok direct in .wpb_text_column (geen .wpb_wrapper) */
.fm-s08 .fm-s08-kop {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	column-gap: 24px;
	row-gap: 8px;
}
.fm-s08 .fm-s08-kop h2.fm-h2 { font-weight: 300; }
.fm-s08 p.fm-s08-alle {
	font-weight: 400;
	font-size: 15px;
	line-height: 24.75px;
}
.fm-s08 p.fm-s08-alle a {
	color: var(--fm-burnt);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color .2s ease;
}
.fm-s08 p.fm-s08-alle a:hover { color: #c2571b; text-decoration-thickness: 2px; }
.fm-s08 p.fm-s08-alle a:focus-visible { outline: 2px solid var(--fm-burnt); outline-offset: 3px; border-radius: 2px; }

/* ---------- tabs ---------- */

.fm-s08 .fm-s08-tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
	padding-top: 12px;
}
body .fm-s08 button.fm-s08-tab {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	margin: 0;
	padding: 10.5px 22px;
	border: 0;
	border-radius: 999px !important; /* Salient zet 4px op knoppen */
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--fm-choc-25);
	color: var(--fm-chocolate);
	font-family: var(--fm-font);
	font-weight: 500;
	font-size: 15px;
	line-height: 22px;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
body .fm-s08 button.fm-s08-tab:hover { background: rgba(43, 26, 18, .05); box-shadow: inset 0 0 0 1px var(--fm-choc-55); }
body .fm-s08 button.fm-s08-tab[aria-selected="true"] {
	background: var(--fm-chocolate);
	box-shadow: none;
	color: var(--fm-egg);
	cursor: default;
}
body .fm-s08 button.fm-s08-tab:focus { outline: none; }
body .fm-s08 button.fm-s08-tab:focus-visible { outline: 2px solid var(--fm-burnt); outline-offset: 3px; }

/* ---------- panelen: twee kolommen met vragen ---------- */

.fm-s08 .fm-s08-paneel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 72px;
	align-items: start;
	margin-top: 24px;
}
.fm-s08 .fm-s08-paneel[hidden] { display: none; }

.fm-s08 .fm-s08-item { border-bottom: 1px solid var(--fm-choc-14); }
.fm-s08 .fm-s08-item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	box-sizing: border-box;
	min-height: 74px; /* Figma rondt 22 + 29.7 + 22 af op 74, met de rand 75 per vraag */
	padding: 22px 0;
	list-style: none;
	cursor: pointer;
}
.fm-s08 .fm-s08-item > summary::-webkit-details-marker { display: none; }
.fm-s08 .fm-s08-item > summary::marker { content: ""; }
.fm-s08 .fm-s08-item > summary::after {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: url('../../svg/chevron.svg') center / 20px 20px no-repeat;
	transition: transform .2s ease;
}
.fm-s08 .fm-s08-item[open] > summary::after { transform: rotate(180deg); }
.fm-s08 .fm-s08-item > summary:focus { outline: none; }
.fm-s08 .fm-s08-item > summary:focus-visible { outline: none; }
/* de ring om de vraag zelf, zodat hij niet door de eerste regel van een open antwoord loopt */
.fm-s08 .fm-s08-item > summary:focus-visible h3.fm-s08-vraag { outline: 2px solid var(--fm-burnt); outline-offset: 4px; border-radius: 4px; }

.fm-s08 .fm-s08-item h3.fm-s08-vraag {
	margin: 0;
	font-weight: 400;
	font-size: 18px;
	line-height: 29.7px;
	letter-spacing: 0;
	color: var(--fm-chocolate);
	transition: color .2s ease;
}
/* alleen met een muis: op touch blijft :hover na een tik hangen en lijkt een dichte vraag nog actief (zoals in 06) */
@media (hover: hover) {
	.fm-s08 .fm-s08-item > summary:hover h3.fm-s08-vraag { color: var(--fm-burnt); }
}
.fm-s08 .fm-s08-item p.fm-s08-antwoord {
	margin-top: -6px;
	padding: 0 44px 24px 0;
	font-size: 16px;
	line-height: 26.4px;
	color: var(--fm-choc-74);
}
.fm-s08 .fm-s08-antwoord a {
	color: var(--fm-burnt);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.fm-s08 .fm-s08-antwoord a:hover { color: #c2571b; }

/* ---------- tablet en gsm: één kolom ---------- */

@media (max-width: 999px) {
	.fm-s08 .fm-s08-paneel { grid-template-columns: minmax(0, 1fr); }
	/* antwoord niet breder dan ongeveer 70 tekens per regel; vraag, chevron en lijn blijven over de volle breedte */
	.fm-s08 .fm-s08-item p.fm-s08-antwoord { max-width: 600px; box-sizing: border-box; }
}
@media (max-width: 690px) {
	.fm-s08 .fm-s08-tablist { margin-top: 20px; padding-top: 8px; }
	body .fm-s08 button.fm-s08-tab { padding: 10.5px 18px; }
	.fm-s08 .fm-s08-paneel { margin-top: 20px; }
	.fm-s08 .fm-s08-item > summary { min-height: 0; padding: 18px 0; gap: 16px; }
	.fm-s08 .fm-s08-item h3.fm-s08-vraag { font-size: 17px; line-height: 27px; }
	.fm-s08 .fm-s08-item p.fm-s08-antwoord { margin-top: -4px; padding: 0 0 20px; font-size: 15px; line-height: 24.75px; }
}
