/* Uitleg per pagina: ?-knop, paneel en ballonnen (assets/js/kp-uitleg.js). Werkt in alle layouts: eigen klassen,
   kleur = de merkkleur (--avh-orange uit layout_branding_css_vars). */
.kp-uitleg-knop {
  position: fixed; right: 18px; bottom: 18px; z-index: 1060;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--avh-orange, #1f5fbf); color: #fff;
  font: 600 20px/44px Inter, system-ui, sans-serif; box-shadow: 0 4px 14px rgba(16, 24, 40, .25);
}
.kp-uitleg-knop:hover { filter: brightness(1.08); }
.kp-uitleg-knop:focus-visible, .kp-uitleg-sluit:focus-visible, .kp-uitleg-paneel a:focus-visible { outline: 3px solid #1a59b3; outline-offset: 2px; }
@media (max-width: 760px) { .kp-app:not(.kp-backoffice) .kp-uitleg-knop { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); } }

.kp-uitleg-paneel {
  position: fixed; right: 18px; bottom: 74px; z-index: 1061;
  width: min(420px, calc(100vw - 36px)); max-height: min(75vh, 680px); display: flex; flex-direction: column;
  background: #fff; color: #1d2733; border-radius: 12px; box-shadow: 0 12px 40px rgba(15, 23, 42, .22);
  font: 400 14px/1.55 Inter, system-ui, sans-serif; outline: none;
}
.kp-uitleg-paneel[hidden] { display: none; }
@media (max-width: 760px) { .kp-app:not(.kp-backoffice) .kp-uitleg-paneel { bottom: calc(134px + env(safe-area-inset-bottom, 0px)); } }
.kp-uitleg-kop { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 8px;
  border-top: 4px solid var(--avh-orange, #1f5fbf); border-radius: 12px 12px 0 0; }
.kp-uitleg-kop h2 { font-size: 17px; font-weight: 600; margin: 0; }
.kp-uitleg-sluit { border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: #5b6776; padding: 2px 6px; }
.kp-uitleg-inhoud { overflow-y: auto; padding: 0 16px 8px; }
.kp-uitleg-inhoud h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #5b6776; margin: 14px 0 6px; }
.kp-uitleg-inhoud p { margin: 0 0 8px; }
.kp-uitleg-inhoud .kp-uitleg-lead { font-size: 15px; }
.kp-uitleg-inhoud ol, .kp-uitleg-inhoud ul { margin: 0 0 6px; padding-left: 20px; }
.kp-uitleg-inhoud li { margin-bottom: 4px; }
.kp-uitleg-vraag { border-top: 1px solid #e4e8ee; padding: 6px 0; }
.kp-uitleg-vraag summary { cursor: pointer; font-weight: 500; }
.kp-uitleg-vraag p { margin: 6px 0 0; color: #34404e; }
.kp-uitleg-voet { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid #e4e8ee; font-size: 13px; }
.kp-uitleg-schakel { display: flex; align-items: center; gap: 6px; margin: 0; }
.kp-uitleg-help { color: var(--avh-orange, #1f5fbf); font-weight: 500; }

.kp-ballon-doel { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: rgba(31, 95, 191, .55); text-underline-offset: 3px; }
button.kp-ballon-doel, .btn.kp-ballon-doel, select.kp-ballon-doel, input.kp-ballon-doel { text-decoration: none; }
.kp-ballonnen-uit .kp-ballon-doel { text-decoration: none; }
.kp-ballon {
  position: absolute; z-index: 1070; max-width: 280px; padding: 7px 10px; border-radius: 8px;
  background: #1d2733; color: #fff; font: 400 13px/1.45 Inter, system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .25);
}
.kp-ballon[hidden] { display: none; }
.kp-uitleg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Donkere modus (klasse dark-mode op <html>, includes/dark-mode.php) */
.dark-mode .kp-uitleg-paneel { background: #1b2430; color: #e6ebf1; }
.dark-mode .kp-uitleg-vraag, .dark-mode .kp-uitleg-voet { border-color: #2e3a49; }
.dark-mode .kp-uitleg-vraag p { color: #c3ccd6; }
.dark-mode .kp-uitleg-sluit { color: #c3ccd6; }
@media print { .kp-uitleg-knop, .kp-uitleg-paneel, .kp-ballon { display: none !important; } }
