/* ==========================================================================
   Opmaak van berichten/pagina-inhoud (blokeditor), op Metronic-variabelen.
   Metronic (Tailwind) zet standaard alle marges/koppen terug; hier krijgt
   tekst uit de editor weer een nette typografie.
   Selector werkt op de website (.whb-prose) én in de blokeditor (.is-root-container).
   ========================================================================== */

:is(.whb-prose, .is-root-container) {
	font-size: 0.9375rem;
	line-height: 1.75;
	color: var(--foreground, #18181b);
}
:is(.whb-prose, .is-root-container) > * + * { margin-top: 1.1em; }
:is(.whb-prose, .is-root-container) :where(h1, h2, h3, h4, h5, h6):not([class*="kt-"], [class*="whb-"], [class^="text-"], [class*=" text-"]) {
	color: var(--mono, #09090b);
	font-weight: 600;
	line-height: 1.3;
	margin-top: 1.8em;
	margin-bottom: .5em;
}
:is(.whb-prose, .is-root-container) > :where(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0; }
:is(.whb-prose, .is-root-container) h1:not([class*="kt-"], [class*="whb-"], [class^="text-"], [class*=" text-"]) { font-size: 1.875rem; }
:is(.whb-prose, .is-root-container) h2:not([class*="kt-"], [class*="whb-"], [class^="text-"], [class*=" text-"]) { font-size: 1.5rem; }
:is(.whb-prose, .is-root-container) h3:not([class*="kt-"], [class*="whb-"], [class^="text-"], [class*=" text-"]) { font-size: 1.25rem; }
:is(.whb-prose, .is-root-container) h4:not([class*="kt-"], [class*="whb-"], [class^="text-"], [class*=" text-"]) { font-size: 1.0625rem; }
:is(.whb-prose, .is-root-container) :where(h5, h6):not([class*="kt-"], [class^="text-"], [class*=" text-"]) { font-size: 1rem; }
:is(.whb-prose, .is-root-container) :where(h1, h2, h3, h4, h5, h6) + * { margin-top: 0; }

:is(.whb-prose, .is-root-container) a:not([class*="kt-"]):not(.wp-block-button__link) {
	color: var(--primary, #3b82f6);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
:is(.whb-prose, .is-root-container) a:not([class*="kt-"]):not(.wp-block-button__link):hover { text-decoration-thickness: 2px; }

:is(.whb-prose, .is-root-container) :is(ul, ol):where(:not([class]), .wp-block-list) { padding-inline-start: 1.5em; }
:is(.whb-prose, .is-root-container) ul:where(:not([class]), .wp-block-list) { list-style: disc; }
:is(.whb-prose, .is-root-container) ol:where(:not([class]), .wp-block-list) { list-style: decimal; }
:is(.whb-prose, .is-root-container) li + li { margin-top: .35em; }
:is(.whb-prose, .is-root-container) li::marker { color: var(--muted-foreground, #71717a); }

:is(.whb-prose, .is-root-container) blockquote:not([class*="whb-"]) {
	border-inline-start: 3px solid var(--primary, #3b82f6);
	padding: .25em 0 .25em 1.25em;
	color: var(--secondary-foreground, #27272a);
	font-style: italic;
}
:is(.whb-prose, .is-root-container) hr { border: 0; border-top: 1px solid var(--border, #e4e4e7); margin: 2em 0; }
:is(.whb-prose, .is-root-container) :where(img, video, iframe) { max-width: 100%; height: auto; border-radius: var(--radius, 4px); }
:is(.whb-prose, .is-root-container) figcaption:not([class*="flex"]) { margin-top: .5em; font-size: .8125rem; color: var(--muted-foreground, #71717a); text-align: center; }
:is(.whb-prose, .is-root-container) :not(pre) > code {
	font-size: .85em; padding: .15em .4em; border-radius: 4px;
	background: var(--muted, #f4f4f5); color: var(--mono, #09090b);
}
:is(.whb-prose, .is-root-container) pre {
	overflow-x: auto; padding: 1em 1.25em; border-radius: var(--radius, 4px);
	background: var(--muted, #f4f4f5); font-size: .85em; line-height: 1.6;
}
:is(.whb-prose, .is-root-container) table:not([class*="kt-"]) { width: 100%; border-collapse: collapse; font-size: .875rem; }
:is(.whb-prose, .is-root-container) table:not([class*="kt-"]) :where(th, td) { border: 1px solid var(--border, #e4e4e7); padding: .6em .8em; text-align: start; }
:is(.whb-prose, .is-root-container) table:not([class*="kt-"]) th { background: var(--muted, #f4f4f5); font-weight: 600; }

/* Gutenberg-knoppen in Metronic-stijl */
:is(.whb-prose, .is-root-container) .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .625rem; }
:is(.whb-prose, .is-root-container) .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .375rem;
	height: 2.5rem; padding: 0 1rem;
	border-radius: var(--radius-md, 4px);
	background: var(--primary, #3b82f6); color: var(--primary-foreground, #fff);
	font-size: .875rem; font-weight: 500; text-decoration: none;
}
:is(.whb-prose, .is-root-container) .wp-block-button__link:hover { filter: brightness(1.08); }
:is(.whb-prose, .is-root-container) .is-style-outline .wp-block-button__link {
	background: transparent; color: var(--mono, #09090b); border: 1px solid var(--input, #e4e4e7);
}

/* Uitlijning */
:is(.whb-prose, .is-root-container) .alignleft { float: left; margin: .3em 1.5em 1em 0; }
:is(.whb-prose, .is-root-container) .alignright { float: right; margin: .3em 0 1em 1.5em; }
:is(.whb-prose, .is-root-container) .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
:is(.whb-prose, .is-root-container) .wp-block-image.aligncenter img { margin-inline: auto; }
.whb-prose::after { content: ""; display: table; clear: both; }

/* Volledige breedte-template: blokken mogen breder/volledig */
.whb-prose--wide > .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
