/*
 * Stroom Kennisbank – bouwstenen voor handleidingen.
 * Wordt geladen op de site én in de editor, zodat auteurs zien wat lezers zien.
 */

:root {
	--skb-magenta: #e71d73;
	--skb-magenta-dark: #c4135e;
	--skb-magenta-soft: #fde9f2;
	--skb-navy: #213349;
	--skb-sky: #edf4f9;
	--skb-sky-2: #dfeaf3;
	--skb-line: #e1e9f1;
	--skb-muted: #5a6b80;
	--skb-shadow: 0 1px 2px rgba(33, 51, 73, .05), 0 10px 30px -14px rgba(33, 51, 73, .22);
	--skb-head: 'Josefin Sans', system-ui, sans-serif;
	--skb-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Automatische nummering van stappen. */
.betterdocs-content,
.entry-content,
.is-root-container {
	counter-reset: skb-stap;
}

/* ---------- Wanneer gebruik je dit? ---------- */
.skb-probleem {
	background: #fff;
	border: 1px solid var(--skb-line);
	border-left: 5px solid var(--skb-magenta);
	border-radius: 14px;
	padding: 20px 24px;
	margin: 0 0 22px;
	box-shadow: var(--skb-shadow);
}
.skb-probleem > * { margin-top: 0; }
.skb-probleem > :last-child { margin-bottom: 0; }
.skb-probleem p {
	font-size: 18px;
	font-weight: 700;
	color: var(--skb-navy);
	line-height: 1.5;
}
.skb-probleem p.skb-label,
p.skb-label {
	font-family: var(--skb-body);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--skb-magenta);
	margin: 0 0 6px;
}
.skb-probleem figure,
.skb-probleem .wp-block-gallery { margin-top: 14px; }

/* ---------- Wat heb je nodig? ---------- */
.skb-nodig {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 36px;
	background: var(--skb-sky);
	border-radius: 14px;
	padding: 16px 24px;
	margin: 0 0 34px;
	font-size: 15.5px;
	line-height: 1.55;
}
.skb-nodig > * { margin: 0 !important; }
.skb-nodig strong {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--skb-navy);
	margin-bottom: 2px;
}

/* ---------- Stap ---------- */
.skb-stap {
	position: relative;
	counter-increment: skb-stap;
	padding-left: 66px;
	margin: 0 0 34px;
	min-height: 48px;
}
.skb-stap::before {
	content: counter(skb-stap);
	position: absolute;
	left: 0;
	top: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--skb-magenta);
	color: #fff;
	font: 700 22px/48px var(--skb-head);
	text-align: center;
	padding-top: 3px;
	box-sizing: border-box;
	box-shadow: 0 8px 18px -8px rgba(231, 29, 115, .8);
}
.skb-stap::after {
	content: "";
	position: absolute;
	left: 23px;
	top: 58px;
	bottom: -26px;
	width: 2px;
	background: repeating-linear-gradient(var(--skb-sky-2) 0 6px, transparent 6px 12px);
}
.skb-stap:has(+ :not(.skb-stap))::after,
.skb-stap:last-child::after { display: none; }
.skb-stap > :first-child { margin-top: 0; }
.skb-stap > :last-child { margin-bottom: 0; }
.skb-stap h2,
.skb-stap h3,
.skb-stap h4 {
	font-family: var(--skb-head);
	font-weight: 700;
	font-size: 21px;
	line-height: 1.25;
	color: var(--skb-navy);
	margin: 12px 0 8px;
	padding-top: 2px;
}
.skb-stap p { margin: 0 0 14px; }
.skb-stap figure,
.skb-stap .wp-block-image { margin: 4px 0 0; }

/* ---------- Tip en Let op ---------- */
.skb-tip,
.skb-letop {
	position: relative;
	border-radius: 14px;
	padding: 16px 20px 16px 56px;
	margin: 0 0 30px 66px;
	font-size: 15.5px;
	line-height: 1.6;
}
.skb-tip > *,
.skb-letop > * { margin: 0; }
.skb-tip > * + *,
.skb-letop > * + * { margin-top: 8px; }
.skb-tip::before,
.skb-letop::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 17px;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: var(--skb-callout-icon) center / contain no-repeat;
	mask: var(--skb-callout-icon) center / contain no-repeat;
}
.skb-tip strong:first-child,
.skb-letop strong:first-child {
	font-family: var(--skb-head);
	font-size: 16.5px;
}
.skb-tip {
	background: #e8f6ef;
	color: #1d5a3f;
	--skb-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7V16h8v-1.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
}
.skb-letop {
	background: #fff4e2;
	color: #7a4b06;
	--skb-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}
.skb-tip a,
.skb-letop a { color: inherit; }

/* Losse tip/let op die niet tussen stappen staat: niet inspringen. */
.skb-probleem + .skb-tip,
.skb-probleem + .skb-letop,
.skb-nodig + .skb-tip,
.skb-nodig + .skb-letop,
.skb-tip:first-child,
.skb-letop:first-child { margin-left: 0; }

/* ---------- Veelgestelde vraag (blok Details) ---------- */
.wp-block-details {
	background: #fff;
	border: 1px solid var(--skb-line);
	border-radius: 14px;
	box-shadow: var(--skb-shadow);
	margin: 0 0 10px;
	padding: 0;
}
.wp-block-details summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	list-style: none;
	cursor: pointer;
	font-weight: 700;
	color: var(--skb-navy);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	margin-left: auto;
	font: 700 22px/1 var(--skb-head);
	color: var(--skb-magenta);
}
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 20px 18px;
	font-size: 16px;
}

@media (max-width: 640px) {
	.skb-stap { padding-left: 50px; }
	.skb-stap::before { width: 38px; height: 38px; font-size: 18px; line-height: 38px; }
	.skb-stap::after { left: 18px; top: 46px; }
	.skb-tip,
	.skb-letop { margin-left: 0; }
}
