/* DODO Accessibility Toolbar - frontend styles
   BEM-naming met dodo-at- prefix. Floating trigger blijft, panel verandert
   naar centered modal met tabs (1.3.0). Content toolbar is een nieuwe inline
   bar boven content op geconfigureerde post types. */

/* === OpenDyslexic font bundling ===
   Gehost lokaal in assets/build/fonts/. font-display: swap voorkomt FOIT
   (flash of invisible text); browser pakt eerst de fallback en wisselt zodra
   OpenDyslexic geladen is. Fonts worden alleen daadwerkelijk gedownload
   wanneer een element met dyslexie-class de font aanroept. */
@font-face {
	font-family: 'OpenDyslexic';
	src: url('fonts/opendyslexic-0.92/OpenDyslexic-Regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'OpenDyslexic';
	src: url('fonts/opendyslexic-0.92/OpenDyslexic-Italic.otf') format('opentype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'OpenDyslexic';
	src: url('fonts/opendyslexic-0.92/OpenDyslexic-Bold.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'OpenDyslexic';
	src: url('fonts/opendyslexic-0.92/OpenDyslexic-BoldItalic.otf') format('opentype');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

/* === Font size scaling === */
html.dodo-at-font--smaller body { zoom: 0.875 !important; }
html.dodo-at-font--small   body { zoom: 0.9375 !important; }
html.dodo-at-font--large   body { zoom: 1.125 !important; }
html.dodo-at-font--xlarge  body { zoom: 1.25 !important; }

html.dodo-at-font--smaller .dodo-at-toolbar,
html.dodo-at-font--smaller .dodo-at-modal-backdrop,
html.dodo-at-font--smaller .dodo-at-modal { zoom: 1.1429 !important; }
html.dodo-at-font--small   .dodo-at-toolbar,
html.dodo-at-font--small   .dodo-at-modal-backdrop,
html.dodo-at-font--small   .dodo-at-modal { zoom: 1.0667 !important; }
html.dodo-at-font--large   .dodo-at-toolbar,
html.dodo-at-font--large   .dodo-at-modal-backdrop,
html.dodo-at-font--large   .dodo-at-modal { zoom: 0.8889 !important; }
html.dodo-at-font--xlarge  .dodo-at-toolbar,
html.dodo-at-font--xlarge  .dodo-at-modal-backdrop,
html.dodo-at-font--xlarge  .dodo-at-modal { zoom: 0.8 !important; }

/* === Dyslexie-vriendelijk lettertype === */
html.dodo-at-dyslexia body,
html.dodo-at-dyslexia body * {
	font-family: 'OpenDyslexic', 'Atkinson Hyperlegible', 'Comic Sans MS', sans-serif !important;
	letter-spacing: 0.05em !important;
	word-spacing: 0.1em !important;
	line-height: 1.7 !important;
}

html.dodo-at-dyslexia .dodo-at-toolbar,
html.dodo-at-dyslexia .dodo-at-toolbar *,
html.dodo-at-dyslexia .dodo-at-modal,
html.dodo-at-dyslexia .dodo-at-modal *,
html.dodo-at-dyslexia .dodo-at-content-toolbar,
html.dodo-at-dyslexia .dodo-at-content-toolbar * {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
	line-height: 1.5 !important;
}

/* === Animaties pauzeren === */
html.dodo-at-no-motion *,
html.dodo-at-no-motion *::before,
html.dodo-at-no-motion *::after {
	animation-duration: 0.001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.001ms !important;
	scroll-behavior: auto !important;
}

/* === Links accentueren === */
html.dodo-at-link-highlight body a {
	background-color: #fef08a !important;
	color: #1f2937 !important;
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 2px !important;
}

html.dodo-at-link-highlight .dodo-at-toolbar a,
html.dodo-at-link-highlight .dodo-at-modal a,
html.dodo-at-link-highlight .dodo-at-content-toolbar a {
	background-color: transparent !important;
	color: inherit !important;
}

/* === Contrast: hoog === */
html.dodo-at-contrast--high {
	background-color: #ffffff !important;
	color: #000000 !important;
}
html.dodo-at-contrast--high body,
html.dodo-at-contrast--high body * {
	background-color: #ffffff !important;
	background-image: none !important;
	color: #000000 !important;
	border-color: #000000 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}
html.dodo-at-contrast--high a,
html.dodo-at-contrast--high a * {
	color: #0000ee !important;
	text-decoration: underline !important;
}
html.dodo-at-contrast--high a:visited,
html.dodo-at-contrast--high a:visited * {
	color: #551a8b !important;
}

/* === Contrast: donker === */
html.dodo-at-contrast--dark {
	background-color: #0f0f0f !important;
	color: #f3f4f6 !important;
}
html.dodo-at-contrast--dark body,
html.dodo-at-contrast--dark body * {
	background-color: #0f0f0f !important;
	background-image: none !important;
	color: #f3f4f6 !important;
	border-color: #4b5563 !important;
	text-shadow: none !important;
}
html.dodo-at-contrast--dark a,
html.dodo-at-contrast--dark a * {
	color: #93c5fd !important;
}
html.dodo-at-contrast--dark a:visited,
html.dodo-at-contrast--dark a:visited * {
	color: #c4b5fd !important;
}

/* === Toolbar container (floating trigger) === */
.dodo-at-toolbar {
	position: fixed;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.dodo-at-toolbar[data-position="bottom-right"] { right: 20px; bottom: 20px; }
.dodo-at-toolbar[data-position="bottom-left"]  { left: 20px;  bottom: 20px; }
.dodo-at-toolbar[data-position="top-right"]    { right: 20px; top: 20px; }
.dodo-at-toolbar[data-position="top-left"]     { left: 20px;  top: 20px; }

.dodo-at-toolbar *,
.dodo-at-toolbar *::before,
.dodo-at-toolbar *::after {
	box-sizing: border-box;
}

/* Trigger button */
.dodo-at-toolbar__trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	background: var(--dodo-at-trigger-bg, #1d4ed8);
	color: var(--dodo-at-trigger-fg, #ffffff);
	border: 2px solid transparent;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dodo-at-toolbar__trigger:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
}

.dodo-at-toolbar__trigger:focus-visible {
	outline: 3px solid #fbbf24;
	outline-offset: 2px;
}

/* === Modal backdrop + modal === */
.dodo-at-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.dodo-at-modal-backdrop[hidden] {
	display: none;
}

.dodo-at-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 99999;
	width: 1024px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	/* Sinds 1.14.2: dvh (dynamic viewport) houdt rekening met de mobiele URL-bar
	   die in en uit scrollt. 100vh op iOS Safari = de viewport ZONDER URL-bar,
	   waardoor de modal in practijk te hoog kon worden. Browsers zonder dvh-support
	   vallen terug op de 100vh-regel hierboven. */
	max-height: calc(100dvh - 32px);
	display: flex;
	flex-direction: column;
	background: #ffffff;
	color: #1f2937;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

/* Sinds 1.14.2: op smal scherm de modal full-screen renderen met 8px marge
   rondom. De translate-centering uit en de inset gebruiken voor positionering.
   Voorkomt dat de modal door 100vh-issues alsnog onder de viewport-rand valt;
   geeft tegelijk meer ruimte voor lange tab-content (zoals Vertalen of FAQ).
   __body scrollt intern dankzij overflow-y: auto. Close-knop wordt 44x44 voor
   een betere touch-target. */
@media (max-width: 600px) {
	.dodo-at-modal {
		top: 8px;
		left: 8px;
		right: 8px;
		bottom: 8px;
		transform: none;
		width: auto;
		max-width: none;
		max-height: none;
		border-radius: 8px;
	}
	.dodo-at-modal__close {
		width: 44px;
		height: 44px;
	}
}
.dodo-at-modal[hidden] {
	display: none;
}
.dodo-at-modal *,
.dodo-at-modal *::before,
.dodo-at-modal *::after {
	box-sizing: border-box;
}

/* Sinds 1.14.3: grid-layout zodat de title en sluit-knop op rij 1 staan en de
   header-extras (zoals Pro's taal-dropdown) op rij 2 ERONDER. Voorheen zaten ze
   in een flex-rij en kwamen ze pal voor de sluit-knop te staan, wat op mobiel
   afsluiten lastig maakte. Lege extras row collapsed via :empty {display:none}. */
.dodo-at-modal__header {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"title close"
		"extras extras";
	column-gap: 16px;
	row-gap: 10px;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
}
.dodo-at-modal__title {
	grid-area: title;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
}
.dodo-at-modal__header-extras {
	grid-area: extras;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.dodo-at-modal__header-extras:empty {
	display: none;
}
.dodo-at-modal__close {
	grid-area: close;
}

.dodo-at-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	color: #6b7280;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.dodo-at-modal__close:hover {
	background: #f3f4f6;
	color: #1f2937;
}
.dodo-at-modal__close:focus-visible {
	outline: 3px solid #fbbf24;
	outline-offset: 2px;
}

/* Tab nav. Sinds 1.9.0: tabs wrappen ipv horizontal scrollen, 12px padding rondom.
   Eerder verscheen er een dunne scrollbar zelfs als alle tabs pasten, door sub-pixel
   rendering. Wrap is accessibilty-vriendelijker (geen verborgen tabs achter scroll). */
.dodo-at-modal__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 12px;
	border-bottom: 1px solid #e5e7eb;
}
.dodo-at-modal__tab {
	flex: 0 0 auto;
	padding: 10px 14px;
	background: transparent;
	color: #4b5563;
	border: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.dodo-at-modal__tab:hover {
	color: #1f2937;
}
.dodo-at-modal__tab.is-active {
	color: #1d4ed8;
	border-bottom-color: #1d4ed8;
}
.dodo-at-modal__tab:focus-visible {
	outline: 3px solid #fbbf24;
	outline-offset: -2px;
	border-radius: 4px;
}

/* Tab panels */
.dodo-at-modal__body {
	flex: 1;
	overflow-y: auto;
	padding: 24px;
}
.dodo-at-modal__panel[hidden] {
	display: none;
}
.dodo-at-modal__panel:focus {
	outline: none;
}

.dodo-at-modal__controls {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Tab-uitleg blok (verschijnt onder de controls in elke tab) */
.dodo-at-modal__tab-hint {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #d1d5db;
	font-size: 13px;
	color: #4b5563;
	line-height: 1.55;
}
.dodo-at-modal__tab-hint p {
	margin: 0 0 8px;
}
.dodo-at-modal__tab-hint p:last-child {
	margin-bottom: 0;
}
html.dodo-at-contrast--dark .dodo-at-modal__tab-hint {
	color: #d1d5db !important;
	border-top-color: #4b5563 !important;
}

/* Generic toolbar btn (used in modal panels + content toolbar) */
.dodo-at-toolbar__btn {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 8px 14px;
	background: #f3f4f6;
	color: #1f2937;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dodo-at-toolbar__btn--icon {
	font-size: 16px;
	flex: 0 1 auto;
	min-width: 56px;
}
.dodo-at-toolbar__btn:hover {
	background: #e5e7eb;
	border-color: #9ca3af;
}
.dodo-at-toolbar__btn:focus-visible {
	outline: 3px solid #fbbf24;
	outline-offset: 2px;
}
.dodo-at-toolbar__btn:active {
	background: #d1d5db;
}
.dodo-at-toolbar__btn[aria-pressed="true"] {
	background: #1d4ed8;
	color: #ffffff;
	border-color: #1d4ed8;
}
.dodo-at-toolbar__btn[aria-pressed="true"]:hover {
	background: #1e40af;
	border-color: #1e40af;
}

/* === FAQ accordion (in Hulp tab) === */
.dodo-at-toolbar__faq {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.dodo-at-toolbar__faq-item {
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 4px;
}
.dodo-at-toolbar__faq-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.dodo-at-toolbar__faq-question {
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	padding: 8px 0 8px 18px;
	color: #1f2937;
	list-style: none;
	position: relative;
}
.dodo-at-toolbar__faq-question::-webkit-details-marker {
	display: none;
}
.dodo-at-toolbar__faq-question::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 50%;
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 6px solid currentColor;
	transform: translateY(-50%);
	transition: transform 0.15s ease;
}
.dodo-at-toolbar__faq-item[open] > .dodo-at-toolbar__faq-question::before {
	transform: translateY(-50%) rotate(90deg);
}
.dodo-at-toolbar__faq-question:focus-visible {
	outline: 3px solid #fbbf24;
	outline-offset: 2px;
	border-radius: 4px;
}
.dodo-at-toolbar__faq-answer {
	padding: 4px 0 8px 18px;
	font-size: 14px;
	line-height: 1.6;
	color: #4b5563;
}

/* === Content toolbar (inline boven content) === */
/* Sinds 1.5.0 in twee rijen: primary (altijd zichtbaar) en collapsed (achter
   "Meer opties" toggle). Knoppen compacter dan v1.4, op mobile horizontal scrollen
   ipv labels verbergen.
   Sinds 1.7.1: rondom-padding gelijk gemaakt; column-gap weggehaald, collapsed
   row gebruikt margin-top alleen als die zichtbaar is. Voorkomt dat verborgen
   collapsed-row visueel ruimte aan de onderkant lijkt te pakken. */
.dodo-at-content-toolbar {
	/* Sinds 1.10.0: kleuren via CSS custom properties. Admin kan ze overschrijven
	   via Instellingen → Algemeen → Kleuren content toolbar. Defaults blijven hier
	   als fallback voor het geval de inline-vars block niet (meer) renderdt.
	   Sinds 1.11.0: hover en actief gesplitst (hover = subtiel, actief = bold). */
	--dodo-at-ct-bg: #f9fafb;
	--dodo-at-ct-btn-bg: #ffffff;
	--dodo-at-ct-btn-text: #1f2937;
	--dodo-at-ct-btn-hover-bg: #f3f4f6;
	--dodo-at-ct-btn-hover-text: #1f2937;
	--dodo-at-ct-btn-active-bg: #1d4ed8;
	--dodo-at-ct-btn-active-text: #ffffff;
	display: flex;
	flex-direction: column;
	margin: 0 0 20px;
	padding: 6px 8px;
	background: var(--dodo-at-ct-bg);
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.dodo-at-content-toolbar *,
.dodo-at-content-toolbar *::before,
.dodo-at-content-toolbar *::after {
	box-sizing: border-box;
}
.dodo-at-content-toolbar__row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	/* align-content default is 'stretch' bij flex-wrap, wat de gewrapte regels uitrekt
	   tot de container-hoogte. Bij 2 regels in een 3-regels-hoge container krijg je
	   dan ongewenste lege ruimte onderin. flex-start houdt de regels strak bovenaan. */
	align-content: flex-start;
}
.dodo-at-content-toolbar__row[hidden] {
	display: none !important;
}
/* Defensief: wpautop of theme/builder kan een lege <p> in de toolbar injecteren
   die anders een margin van ~29px onderaan opvult. Hier elke direct-child <p>
   die leeg is verbergen. */
.dodo-at-content-toolbar > p:empty {
	display: none !important;
	margin: 0 !important;
}
/* Spacing tussen primary en collapsed alleen wanneer collapsed open is. */
.dodo-at-content-toolbar__row--collapsed:not([hidden]) {
	margin-top: 6px;
}
.dodo-at-content-toolbar__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 4px 10px;
	background: var(--dodo-at-ct-btn-bg);
	color: var(--dodo-at-ct-btn-text);
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dodo-at-content-toolbar__btn:hover {
	background: var(--dodo-at-ct-btn-hover-bg);
	color: var(--dodo-at-ct-btn-hover-text);
	border-color: var(--dodo-at-ct-btn-hover-bg);
}
.dodo-at-content-toolbar__btn:hover .dodo-at-content-toolbar__icon,
.dodo-at-content-toolbar__btn:hover .dodo-at-content-toolbar__size-glyph {
	color: var(--dodo-at-ct-btn-hover-text);
}
.dodo-at-content-toolbar__btn:focus-visible {
	outline: 3px solid #fbbf24;
	outline-offset: 2px;
}
/* Icon-only knoppen (Hulp ?, Meer ⚙): visueel label verbergen, aria-label blijft. */
.dodo-at-content-toolbar__btn--icon-only {
	padding: 4px 8px;
}
.dodo-at-content-toolbar__btn--icon-only .dodo-at-content-toolbar__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.dodo-at-content-toolbar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* Icoon erft de button-tekstkleur zodat ze meekleuren met de admin kleurinstellingen.
	   Voor een afwijkende accent-kleur op het icoon: gebruik de eigen CSS tab. */
	color: inherit;
}
.dodo-at-content-toolbar__icon svg {
	display: block;
}
.dodo-at-content-toolbar__label {
	white-space: nowrap;
}
.dodo-at-content-toolbar__btn[aria-pressed="true"] {
	background: var(--dodo-at-ct-btn-active-bg);
	color: var(--dodo-at-ct-btn-active-text);
	border-color: var(--dodo-at-ct-btn-active-bg);
}
.dodo-at-content-toolbar__btn[aria-pressed="true"] .dodo-at-content-toolbar__icon {
	color: var(--dodo-at-ct-btn-active-text);
}

/* A- en A+ tekst-glyphs: kleine A met -, grotere A met +. */
.dodo-at-content-toolbar__size-glyph {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	font-weight: 700;
	line-height: 1;
	color: inherit;
}
.dodo-at-content-toolbar__size-glyph--minus .dodo-at-content-toolbar__size-letter {
	font-size: 13px;
}
.dodo-at-content-toolbar__size-glyph--plus .dodo-at-content-toolbar__size-letter {
	font-size: 17px;
}
.dodo-at-content-toolbar__size-mod {
	font-size: 12px;
	font-weight: 700;
}
.dodo-at-content-toolbar__btn[aria-pressed="true"] .dodo-at-content-toolbar__size-glyph {
	color: var(--dodo-at-ct-btn-active-text);
}

/* Vlag-emoji bij Vertalen-knop. */
.dodo-at-content-toolbar__lang-flag {
	display: inline-flex;
	align-items: center;
	font-size: 16px;
	line-height: 1;
}

/* "Meer opties" toggle: pijl-icoon draait bij open state. */
.dodo-at-content-toolbar__more .dodo-at-content-toolbar__more-icon {
	transition: transform 0.2s ease;
}
.dodo-at-content-toolbar__more.is-expanded .dodo-at-content-toolbar__more-icon {
	transform: rotate(180deg);
}
@media ( prefers-reduced-motion: reduce ) {
	.dodo-at-content-toolbar__more .dodo-at-content-toolbar__more-icon {
		transition: none;
	}
}

/* Sinds 1.13.0: optioneel sticky-at-top voor de content toolbar (admin keuze).
   Met admin-bar offset voor ingelogde users: 32px boven 783px viewport, 46px
   eronder. z-index 100 zodat normale content onderdoor scrollt; modal en FAB
   liggen erboven (die hebben hogere z-index).
   Sinds 1.13.1: extra theme-offset via --dodo-at-ct-sticky-offset (default 0px,
   admin instelbaar via "Extra top-offset"). Bedoeld voor themes met een eigen
   vaste header die anders bovenop de toolbar zou komen.
   Sinds 1.14.9: sticky-on-use modifier. Wanneer admin "Sticky alleen tijdens
   gebruik" aanzet, krijgt de toolbar de extra class --sticky-on-use. Sticky
   activeert dan pas als JS de --in-use class toevoegt (Pro feature actief).
   z-index zetten we altijd zodat de toolbar in sticky-state correct stacked. */
.dodo-at-content-toolbar--sticky {
	z-index: 100;
}
.dodo-at-content-toolbar--sticky:not(.dodo-at-content-toolbar--sticky-on-use),
.dodo-at-content-toolbar--sticky.dodo-at-content-toolbar--sticky-on-use.dodo-at-content-toolbar--in-use {
	position: sticky;
	top: var(--dodo-at-ct-sticky-offset, 0px);
}
body.admin-bar .dodo-at-content-toolbar--sticky:not(.dodo-at-content-toolbar--sticky-on-use),
body.admin-bar .dodo-at-content-toolbar--sticky.dodo-at-content-toolbar--sticky-on-use.dodo-at-content-toolbar--in-use {
	top: calc( 32px + var(--dodo-at-ct-sticky-offset, 0px) );
}
@media screen and (max-width: 782px) {
	body.admin-bar .dodo-at-content-toolbar--sticky:not(.dodo-at-content-toolbar--sticky-on-use),
	body.admin-bar .dodo-at-content-toolbar--sticky.dodo-at-content-toolbar--sticky-on-use.dodo-at-content-toolbar--in-use {
		top: calc( 46px + var(--dodo-at-ct-sticky-offset, 0px) );
	}
}

/* Sinds 1.14.0: herbruikbare notice-bar component. Container zit direct onder
   de content toolbar; bars worden via JS API dodoAtShowNotice/dodoAtHideNotice
   in en uit gerenderd. Kleuren komen uit admin instellingen via custom
   properties --dodo-at-notice-bg en --dodo-at-notice-text. */
.dodo-at-notice-bar-container {
	display: none;
	margin: 6px 0 12px;
}
.dodo-at-notice-bar-container .dodo-at-notice-bar:not(:last-child) {
	margin-bottom: 6px;
}
.dodo-at-notice-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--dodo-at-notice-bg, #fef3c7);
	color: var(--dodo-at-notice-text, #78350f);
	border-left: 3px solid currentColor;
	border-radius: 0 4px 4px 0;
	font-size: 14px;
	line-height: 1.4;
}
.dodo-at-notice-bar__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
}
.dodo-at-notice-bar__icon svg {
	display: block;
}
.dodo-at-notice-bar__text {
	flex: 1 1 auto;
}
.dodo-at-notice-bar__close {
	flex: 0 0 auto;
	background: none;
	border: none;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	opacity: 0.7;
}
.dodo-at-notice-bar__close:hover {
	opacity: 1;
}
.dodo-at-notice-bar__close:focus-visible {
	outline: 3px solid #fbbf24;
	outline-offset: 2px;
	border-radius: 4px;
}
@media (hover: none) {
	.dodo-at-notice-bar__close:hover {
		opacity: 0.7;
	}
}

/* Mobile: horizontaal scrollen ipv labels verbergen. User behoudt
   leesbaarheid van knoppen, scrollen kost minimale effort.
   Sinds 1.12.0: admin kan via Instellingen > Algemeen > Mobiele weergave kiezen
   voor stapelen (wrap naar nieuwe rijen) ipv scrollen. Dan zet ContentToolbar
   render() de modifier class `dodo-at-content-toolbar--stack-mobile` op de wrapper,
   en overrulen we de nowrap/overflow regels hieronder. */
@media (max-width: 600px) {
	.dodo-at-content-toolbar__row {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}
	.dodo-at-content-toolbar__btn {
		flex: 0 0 auto;
	}
	.dodo-at-content-toolbar--stack-mobile .dodo-at-content-toolbar__row {
		flex-wrap: wrap;
		overflow-x: visible;
	}
	.dodo-at-content-toolbar--stack-mobile .dodo-at-content-toolbar__btn {
		flex: 0 1 auto;
	}
}

/* Sinds 1.12.1: voorkom plakkende :hover state op touch-devices. Na een tap
   firet de browser `mouseenter` maar nooit `mouseleave`, waardoor :hover styles
   actief blijven tot de gebruiker elders tikt. Symptoom: na het uittoggelen
   van een knop bleef de hover-kleur zichtbaar (aria-pressed=true verbergt de
   hover-state in actieve mode wel, maar na toggle-uit komt 'ie weer bovendrijven).
   Op echte hover-devices (muis, trackpad, iPad met muis) verandert er niets,
   omdat de hover-rules dan gewoon doorgaan zoals voorheen. */
@media (hover: none) {
	/* Content toolbar: gebruikt CSS custom properties; we zetten ze terug naar
	   de base-vars zodat de admin-keuze voor knop kleuren correct doorwerkt. */
	.dodo-at-content-toolbar__btn:hover {
		background: var(--dodo-at-ct-btn-bg);
		color: var(--dodo-at-ct-btn-text);
		border-color: var(--dodo-at-ct-btn-bg);
	}
	.dodo-at-content-toolbar__btn:hover .dodo-at-content-toolbar__icon,
	.dodo-at-content-toolbar__btn:hover .dodo-at-content-toolbar__size-glyph {
		color: var(--dodo-at-ct-btn-text);
	}
	/* aria-pressed=true wint sowieso via volgorde in de cascade, hier expliciet
	   zodat de actief-kleur ook bij hover-none gegarandeerd zichtbaar blijft. */
	.dodo-at-content-toolbar__btn[aria-pressed="true"]:hover {
		background: var(--dodo-at-ct-btn-active-bg);
		color: var(--dodo-at-ct-btn-active-text);
		border-color: var(--dodo-at-ct-btn-active-bg);
	}
	.dodo-at-content-toolbar__btn[aria-pressed="true"]:hover .dodo-at-content-toolbar__icon,
	.dodo-at-content-toolbar__btn[aria-pressed="true"]:hover .dodo-at-content-toolbar__size-glyph {
		color: var(--dodo-at-ct-btn-active-text);
	}
	/* Modal-paneel knoppen: vaste base-kleuren, terug naar default. */
	.dodo-at-toolbar__btn:hover {
		background: #f3f4f6;
		border-color: #d1d5db;
	}
	.dodo-at-toolbar__btn[aria-pressed="true"]:hover {
		background: #1d4ed8;
		border-color: #1d4ed8;
	}
	/* Floating button (FAB): zet hover-transform/shadow terug. */
	.dodo-at-toolbar__trigger:hover {
		transform: none;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	}
	/* Modal close en tab-nav: terug naar base. */
	.dodo-at-modal__close:hover {
		background: transparent;
		color: inherit;
	}
	.dodo-at-modal__tab:hover {
		color: #4b5563;
	}
}

/* === Toolbar/modal/content toolbar herstel binnen contrast modes === */
html.dodo-at-contrast--high .dodo-at-toolbar__trigger,
html.dodo-at-contrast--dark .dodo-at-toolbar__trigger {
	background-color: #1d4ed8 !important;
	color: #ffffff !important;
	border-color: transparent !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

html.dodo-at-contrast--high .dodo-at-modal,
html.dodo-at-contrast--high .dodo-at-content-toolbar {
	background-color: #ffffff !important;
	color: #1f2937 !important;
	border-color: #e5e7eb !important;
}
html.dodo-at-contrast--high .dodo-at-modal__title,
html.dodo-at-contrast--high .dodo-at-modal__tab {
	color: #1f2937 !important;
}
html.dodo-at-contrast--high .dodo-at-modal__tab.is-active {
	color: #1d4ed8 !important;
	border-bottom-color: #1d4ed8 !important;
}
html.dodo-at-contrast--high .dodo-at-toolbar__btn,
html.dodo-at-contrast--high .dodo-at-content-toolbar__btn {
	background-color: #f3f4f6 !important;
	color: #1f2937 !important;
	border-color: #d1d5db !important;
}
html.dodo-at-contrast--high .dodo-at-toolbar__btn[aria-pressed="true"],
html.dodo-at-contrast--high .dodo-at-content-toolbar__btn[aria-pressed="true"] {
	background-color: #1d4ed8 !important;
	color: #ffffff !important;
	border-color: #1d4ed8 !important;
}

html.dodo-at-contrast--dark .dodo-at-modal,
html.dodo-at-contrast--dark .dodo-at-content-toolbar {
	background-color: #1f2937 !important;
	color: #f3f4f6 !important;
	border-color: #374151 !important;
}
html.dodo-at-contrast--dark .dodo-at-modal__title {
	color: #f3f4f6 !important;
}
html.dodo-at-contrast--dark .dodo-at-modal__tab {
	color: #d1d5db !important;
}
html.dodo-at-contrast--dark .dodo-at-modal__tab.is-active {
	color: #93c5fd !important;
	border-bottom-color: #93c5fd !important;
}
html.dodo-at-contrast--dark .dodo-at-modal__close {
	color: #d1d5db !important;
}
html.dodo-at-contrast--dark .dodo-at-toolbar__btn,
html.dodo-at-contrast--dark .dodo-at-content-toolbar__btn {
	background-color: #374151 !important;
	color: #f3f4f6 !important;
	border-color: #4b5563 !important;
}
html.dodo-at-contrast--dark .dodo-at-toolbar__btn[aria-pressed="true"],
html.dodo-at-contrast--dark .dodo-at-content-toolbar__btn[aria-pressed="true"] {
	background-color: #1d4ed8 !important;
	color: #ffffff !important;
	border-color: #1d4ed8 !important;
}
html.dodo-at-contrast--dark .dodo-at-content-toolbar__icon {
	color: #93c5fd !important;
}

html.dodo-at-contrast--dark .dodo-at-toolbar__faq-question {
	color: #f3f4f6 !important;
}
html.dodo-at-contrast--dark .dodo-at-toolbar__faq-answer {
	color: #d1d5db !important;
}
html.dodo-at-contrast--dark .dodo-at-toolbar__faq-item {
	border-bottom-color: #4b5563 !important;
}

/* Body-scroll lock terwijl modal open is */
html.dodo-at-modal-open,
html.dodo-at-modal-open body {
	overflow: hidden !important;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
	.dodo-at-toolbar__trigger,
	.dodo-at-toolbar__btn,
	.dodo-at-content-toolbar__btn,
	.dodo-at-modal__tab,
	.dodo-at-modal__close {
		transition: none;
	}
	.dodo-at-toolbar__trigger:hover {
		transform: none;
	}
}
