/* Structural rules only; widget controls and native containers own colours and dimensions. */
.bbk-widget { min-width:0; overflow-wrap:anywhere; }
.bbk-widget *, .bbk-widget *::before, .bbk-widget *::after { box-sizing:border-box; }
.bbk-widget a { text-decoration:none; }
.bbk-widget p:last-child { margin-bottom:0; }
.bbk-items { display:flex; }
.bbk-tree, .bbk-tree-children { flex-direction:column; }
.bbk-tree-row { display:flex; align-items:center; gap:.65em; min-height:44px; width:100%; cursor:pointer; transition:background-color .2s,color .2s,border-color .2s; }
.bbk-tree-row > span:last-child { min-width:0; }
summary.bbk-tree-row { list-style:none; }
summary.bbk-tree-row::-webkit-details-marker { display:none; }
.bbk-explorer-toggle { justify-content:space-between; }
.bbk-explorer.bbk-desktop > .bbk-explorer-toggle { display:none; }
.bbk-tree-icon { flex-shrink:0; display:inline-flex; width:1em; transition:transform .2s; }
.bbk-tree-icon svg { width:1em; height:1em; fill:currentColor; }
.bbk-tree-branch[open] > summary .bbk-tree-icon { transform:rotate(90deg); }
.bbk-years, .bbk-entry-actions { align-items:center; flex-wrap:wrap; }
.bbk-year, .bbk-entry-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; }
.bbk-year-label { margin-right:.5em; }
.bbk-breadcrumbs ol { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:0; margin:0; list-style:none; }
.bbk-form label { display:block; }
.bbk-form :is(input:not([type=hidden]),textarea,select) { display:block; width:100%; max-width:100%; margin-top:8px; font:inherit; }
.bbk-form input[type=file] { white-space:normal; }
.bbk-form textarea { resize:vertical; }
.bbk-form fieldset { min-width:0; margin:0; padding:0; border:0; }
.bbk-form :is(button,.bbk-button) { cursor:pointer; font:inherit; min-height:44px; }
.bbk-form .bbk-editor-actions, .bbk-trash-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.bbk-current-image { display:block; font-size:.9em; opacity:.8; }
.bbk-widget .bbk-content-shell { width:100%; max-width:none; margin:0; padding:0; }
.bbk-widget .bbk-editor { max-width:none; }
.bbk-widget .bbk-editor-row { margin:0; }
.bbk-widget :is(.bbk-user-form-panel,.bbk-user-list-panel) { border:0; padding:0; min-width:0; }
.bbk-widget .bbk-trash-actions { white-space:normal; }
.bbk-widget .bbk-user-card :is(small,span) { color:inherit; }
.bbk-hide-core-header :is(.bbk-section-head,.bbk-breadcrumbs) { display:none; }
.bbk-widget .bbk-trash-entry { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; margin-bottom:12px; }
.bbk-widget .bbk-user-layout { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:24px; }
.bbk-widget .bbk-user-card { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-bottom:12px; }
.bbk-widget :is(.bbk-section-head h1,.bbk-user-layout h2,.bbk-user-layout h3) { font-size:1.25em; }
.bbk-widget .bbk-notice { border-left:3px solid currentColor; padding:.75em 1em; }
.bbk-widget :is(.bbk-full-access-note,.bbk-hint) { margin-bottom:16px; }
/* Long imported content and charts must fit their Elementor column. */
.bbk-layout, .bbk-layout .e-con, .bbk-layout .elementor-widget { min-width:0; }
.bbk-layout .elementor-widget-theme-post-content { overflow-wrap:anywhere; }
.bbk-layout .elementor-widget-theme-post-content :is(img,video,iframe) { max-width:100%; }
.bbk-layout .elementor-widget-theme-post-content img { height:auto; }
.bbk-layout .elementor-widget-theme-post-content table { display:block; max-width:100%; overflow-x:auto; }
/* Progressive enhancements inherit colours and typography from Elementor. */
.bbk-widget [hidden] { display:none !important; }
.bbk-search { display:flex; align-items:center; gap:8px; margin-block:12px; }
.bbk-search input { min-width:0; width:100%; min-height:44px; font:inherit; }
.bbk-search button { flex-shrink:0; min-height:44px; padding:.5em; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.bbk-search button:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.bbk-search-empty, .bbk-save-status { font:inherit; }
.bbk-upload-preview { display:block; max-width:100%; max-height:320px; width:auto; height:auto; object-fit:contain; margin-top:12px; border-radius:inherit; }
.bbk-form [aria-disabled=true] { cursor:progress; opacity:.7; }
@media (prefers-reduced-motion:reduce) {
  .bbk-widget *, .bbk-widget *::before, .bbk-widget *::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}
/* Native dialog is in the browser top layer; ancestor transforms cannot clip it. */
.bbk-explorer.bbk-desktop > .bbk-inline-explorer > .bbk-explorer-toggle { display:none; }
.bbk-inline-explorer { min-width:0; }
.bbk-explorer-toggle { list-style:none; }
.bbk-explorer-toggle::-webkit-details-marker { display:none; }
.bbk-drawer {
  position:fixed; inset:0 auto 0 0; margin:0; box-sizing:border-box;
  width:min(340px,calc(100vw - 24px)); max-width:none;
  height:100vh; height:100dvh; max-height:none;
  border:0; padding:24px 20px; background:#10131c; color:#ced3e2;
  overflow-y:auto; overscroll-behavior:contain; font:inherit;
  border-radius:0 20px 20px 0; box-shadow:16px 0 60px #00000040;
  padding-bottom:max(24px,env(safe-area-inset-bottom));
}
.bbk-drawer:not([open]) { display:none; }
.bbk-drawer[open]:not(.bbk-drawer-preview) { animation:bbk-drawer-enter var(--bbk-drawer-duration,220ms) cubic-bezier(.2,.8,.2,1); }
.bbk-drawer::backdrop { background:#050710b8; }
.bbk-drawer-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:24px; }
.bbk-drawer-title { font-size:1.2em; }
.bbk-drawer-close { border:0; background:transparent; color:inherit; font:inherit; min-height:44px; cursor:pointer; }
.bbk-drawer-preview { position:relative; inset:auto; height:auto; max-height:none; max-width:100%; margin:0; }
html.bbk-drawer-is-open, html.bbk-drawer-is-open body { overflow:hidden; }
@keyframes bbk-drawer-enter { from { transform:translateX(-100%); opacity:.7; } to { transform:translateX(0); opacity:1; } }
@media (prefers-reduced-motion:reduce) { .bbk-drawer[open] { animation:none !important; } }
/* Scoped polish; template controls continue to own colours and geometry. */
.bbk-design-120 .elementor-button { transition:background-color .18s,color .18s,border-color .18s,box-shadow .18s; }
.bbk-design-120 a:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
@media (prefers-reduced-motion:reduce) { .bbk-design-120 .elementor-button { transition:none; } }
/* Whole native Elementor sidebar, matching the original Premium UI behaviour. */
.bbk-sidebar-modal { position:fixed; inset:0 auto 0 0; margin:0; padding:0; border:0;
  width:min(var(--bbk-sidebar-width,280px),calc(100vw - 24px)); max-width:none;
  height:100vh; height:100dvh; max-height:none; background:var(--bbk-sidebar-bg,#10131c); color:#FFFFFF;
  overflow-y:auto; overscroll-behavior:contain; box-shadow:16px 0 60px #0006; }
.bbk-sidebar-modal:not([open]), .bbk-sidebar-trigger[hidden] { display:none !important; }
.bbk-sidebar-modal[open] { animation:bbk-drawer-enter var(--bbk-drawer-duration,280ms) ease; }
.bbk-sidebar-modal::backdrop { background:var(--bbk-sidebar-overlay,#050609ae); }
.bbk-sidebar-modal > .bbk-sidebar-in-modal { display:flex !important; width:100% !important;
  min-height:100%; margin:0; box-sizing:border-box; }
.bbk-sidebar-in-modal > .elementor-hidden-tablet,
.bbk-sidebar-in-modal > .elementor-hidden-mobile,
.bbk-sidebar-in-modal .elementor-widget.elementor-hidden-tablet,
.bbk-sidebar-in-modal .elementor-widget.elementor-hidden-mobile { display:flex !important; }
.bbk-sidebar-trigger, .bbk-sidebar-close { min-height:44px; padding:10px 14px;
  border:var(--bbk-menu-border-width,1px) solid #34374a; border-radius:9px; background:var(--bbk-menu-bg,#171922);
  color:var(--bbk-menu-color,#FFFFFF); font:inherit; cursor:pointer; }
.bbk-sidebar-trigger { flex-shrink:0; margin-right:auto; }
.bbk-sidebar-close { position:sticky; top:12px; float:right; z-index:3; margin:12px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  min-height:var(--bbk-close-height,44px); border:0; border-radius:var(--bbk-close-radius,8px);
  background:var(--bbk-close-bg,#FFFFFF); color:var(--bbk-close-color,#000000); font-weight:500; }
.bbk-sidebar-close:hover { background:var(--bbk-close-hover-bg,#D7D7D7); }
.bbk-sidebar-close > span { font-size:22px; line-height:1; }
.bbk-sidebar-mobile-bar { flex-wrap:nowrap !important; gap:12px; }
.bbk-sidebar-mobile-bar > .elementor-widget { min-width:0; }
.bbk-sidebar-trigger:focus-visible, .bbk-sidebar-close:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { .bbk-sidebar-modal[open] { animation:none !important; } }
/* Original Premium UI linework; colour, size and row styling remain widget controls. */
.bbk-premium-leading { display:inline-flex; flex:none; }
.bbk-premium-leading :is(svg,i) { width:1em; height:1em; font-size:inherit; }
.bbk-premium-trailing { margin-left:auto; display:inline-flex; opacity:.55; }
.bbk-premium-trailing svg { width:12px; height:12px; }
.bbk-premium-index .bbk-tree-row { gap:12px; }
.bbk-premium-intro { margin:0 0 16px; }
.bbk-premium-path { display:flex; flex-wrap:wrap; gap:5px; align-items:center; padding:0 11px 17px; margin-bottom:20px; }
.bbk-premium-path svg { width:10px; height:10px; }
.bbk-premium-list-title { display:flex; justify-content:space-between; gap:12px; padding:0 11px 12px; }
.bbk-reference-sidebar a { text-decoration:none; }
.bbk-reference-sidebar .e-con { min-width:0; }
.bbk-reference-topbar .elementor-nav-menu--main > .elementor-nav-menu { flex-wrap:wrap; }
.bbk-reference-topbar .elementor-widget-nav-menu { overflow:visible; }
.bbk-sidebar-modal.bbk-reference-modal .bbk-sidebar-close { right:12px; }
.bbk-sidebar-trigger.bbk-icon-only { width:44px; padding:8px; font-size:20px; }
.bbk-reference-logo, .bbk-reference-grid, .bbk-reference-status-dot { flex-shrink:0; }
/* Native WordPress Menu keeps control of hover/touch/keyboard dropdowns.
   Wrapping preserves every root link without clipping the new submenus. */
.bbk-elementor-topbar, .bbk-reference-topbar { position:relative; z-index:20; overflow:visible; }
.bbk-dynamic-main-menu, .bbk-dynamic-main-menu > .elementor-widget-container { overflow:visible; }
.bbk-dynamic-main-menu .elementor-nav-menu--main > .elementor-nav-menu { flex-wrap:wrap; }
.bbk-dynamic-main-menu .elementor-nav-menu--main .sub-menu { max-height:70vh; overflow-y:auto; overscroll-behavior:contain; }
.bbk-dynamic-main-menu .elementor-sub-item { white-space:normal; overflow-wrap:anywhere; }
/* Layout only: Elementor's widget controls own all card paint and geometry.
   No fallback gradient/shadow: selecting None in the editor must remove it. */
:where(.bbk-context-message .bbk-category-grid) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
:where(.bbk-context-message .bbk-category-card) {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  min-width:0; min-height:44px;
  transition:transform .18s,background-color .18s,color .18s,border-color .18s,box-shadow .18s;
}
:where(.bbk-context-back:focus-visible) { outline:2px solid currentColor; outline-offset:3px; }
:where(.bbk-card-arrow) { display:inline-flex; flex:none; }
.bbk-card-arrow :is(svg,i) { height:1em; width:1em; fill:currentColor; }
.bbk-dashboard-tiles .bbk-category-card { flex-direction:column; justify-content:center; text-align:center; gap:0; height:100%; }
.bbk-card-leading { display:inline-flex; align-items:center; justify-content:center; flex:none; }
.bbk-card-leading:empty { display:none; }
.bbk-card-leading :is(svg,i) { width:1em; height:1em; fill:currentColor; }
.bbk-card-description { display:block; font-weight:400; }
:where(.bbk-context-back) { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
.bbk-premium-year { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 11px 0; }
@media(max-width:1024px) { :where(.bbk-context-message .bbk-category-grid) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) { :where(.bbk-context-message .bbk-category-grid) { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { .bbk-widget .bbk-category-card:is(:hover,:focus-visible) { transform:none; } }
/* Clean website layout. Native containers and widget controls own visual styles. */
.bbk-clean-main { min-width:0; }
.bbk-clean-sidebar { position:sticky; top:0; height:100vh; height:100dvh; overflow-y:auto; overscroll-behavior:contain; flex-shrink:0; }
.bbk-clean-body { margin-inline:auto; }
.bbk-clean-topbar { position:relative; z-index:20; overflow:visible; }
.bbk-clean-topbar > .elementor-widget-nav-menu { flex:1 1 auto; min-width:0; }
.bbk-clean-topbar > .elementor-widget-button { flex-shrink:0; }
.bbk-clean-topbar.bbk-sidebar-mobile-bar { justify-content:flex-start; }
.bbk-clean-topbar .bbk-sidebar-trigger { margin:0 0 0 auto; border-radius:8px; }
.bbk-clean-topbar.bbk-sidebar-mobile-bar > .elementor-widget-bbk-account { margin-left:auto; }
.bbk-clean-topbar.bbk-sidebar-mobile-bar > .elementor-widget-bbk-account ~ .bbk-sidebar-trigger { margin-left:0; }
.bbk-clean-topbar.bbk-sidebar-mobile-bar > .elementor-widget-button { margin-left:auto; }
.bbk-clean-topbar.bbk-sidebar-mobile-bar > .elementor-widget-button ~ .bbk-sidebar-trigger { margin-left:0; }
.bbk-clean-sidebar .bbk-branch-overview { font-size:.9em; opacity:.8; }
.bbk-clean-sidebar .bbk-tree-icon { font-size:10px; }
.bbk-clean-tiles .bbk-category-card { gap:14px; height:100%; }
.bbk-clean-tiles .bbk-card-copy { flex:1; min-width:0; }
.bbk-clean-tiles .bbk-card-title { display:block; }
.bbk-clean-tiles .bbk-card-leading { flex:none; }
.bbk-clean-tiles .bbk-card-arrow { margin-left:auto; }
.bbk-clean-root .elementor-widget-heading { min-width:0; }
.bbk-minimal-home .bbk-minimal-columns > .bbk-clean-sidebar { display:none; }
.bbk-minimal-no-tree .bbk-minimal-columns > .bbk-clean-sidebar { display:none; }
.bbk-explorer.bbk-desktop[data-desktop-context="yes"] .bbk-tree > :not(.bbk-context-root) { display:none; }
.bbk-minimal-yes .bbk-clean-topbar.bbk-sidebar-mobile-bar { gap:var(--gap,8px); }
.bbk-minimal-yes .bbk-nav-label,.bbk-minimal-yes .bbk-nav-parent-link { white-space:normal; overflow-wrap:anywhere; text-overflow:clip; }
.bbk-minimal-yes .bbk-clean-topbar > .elementor-widget-bbk-account { flex:none; }
.bbk-minimal-yes .bbk-account-menu { bottom:auto; top:calc(100% + 8px); }
.bbk-clean-root .elementor-widget-theme-post-content :is(pre,table) { max-width:100%; overflow-x:auto; }
.bbk-clean-root .bbk-widget a:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.bbk-sidebar-modal > .bbk-clean-sidebar { position:static; height:auto; min-height:100%; }

/* Font fallback only; Elementor typography controls remain authoritative. */
.bbk-layout, .bbk-elementor-root, .bbk-widget { font-family:"Lucida Grande","Lucida Sans Unicode",sans-serif; }
.bbk-sidebar-modal { font-family:"Lucida Grande","Lucida Sans Unicode",sans-serif; }
/* Compact navigation: paint and dimensions come from Elementor controls. */
.bbk-explorer-cards .bbk-tree { gap:6px; }
.bbk-explorer-cards .bbk-nav-card-row { min-height:44px; border:1px solid; gap:10px; }
.bbk-explorer-cards .bbk-nav-leading { display:inline-flex; flex:none; font-size:15px; }
.bbk-explorer-cards .bbk-nav-leading :is(i,svg) { width:1em; height:1em; fill:currentColor; }
.bbk-explorer-cards .bbk-nav-parent-link { display:flex; align-items:center; flex:1; align-self:stretch; min-width:0; color:inherit; font:inherit; }
.bbk-explorer-cards .bbk-nav-label { flex:1; min-width:0; }
.bbk-explorer-cards .bbk-nav-chevron { margin-left:auto; flex:none; }
.bbk-explorer-cards .bbk-tree-children { margin:6px 0 6px 12px; gap:4px; }
.bbk-explorer-cards .bbk-tree-row { transition:background-color var(--bbk-nav-duration,170ms) ease,color var(--bbk-nav-duration,170ms) ease,border-color var(--bbk-nav-duration,170ms) ease; }
.bbk-explorer-cards .bbk-tree-icon { transition:transform var(--bbk-nav-duration,170ms) ease; }
.bbk-explorer-cards .bbk-nav-parent-link:focus-visible { outline:2px solid currentColor; outline-offset:3px; border-radius:2px; }
.bbk-nav-home .elementor-button { display:flex; width:100%; justify-content:flex-start; align-items:center; min-height:44px; }
.bbk-nav-cards-yes .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-item { min-height:44px; white-space:nowrap; transition:background-color var(--bbk-nav-duration,170ms) ease,color var(--bbk-nav-duration,170ms) ease,border-color var(--bbk-nav-duration,170ms) ease; }
.bbk-nav-cards-yes .elementor-nav-menu--main .sub-menu { animation:bbk-nav-fade var(--bbk-nav-duration,170ms) ease-out; }
.bbk-clean-root .elementor-button { transition:background-color .17s ease,color .17s ease,border-color .17s ease; }
.bbk-clean-root .bbk-account-details[open] .bbk-account-menu { animation:bbk-nav-fade .14s ease-out; }
@keyframes bbk-nav-fade { from { opacity:0; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) {
  :is(.bbk-explorer-cards,.bbk-nav-cards-yes,.bbk-clean-root) *,
  :is(.bbk-explorer-cards,.bbk-nav-cards-yes,.bbk-clean-root) *::before,
  :is(.bbk-explorer-cards,.bbk-nav-cards-yes,.bbk-clean-root) *::after { transition:none !important; animation:none !important; }
}
/* A brief entrance, not a delay or a permanently transformed container. */
.bbk-page-motion-yes { animation:bbk-page-enter var(--bbk-page-duration,360ms) cubic-bezier(.2,.7,.2,1); }
@keyframes bbk-page-enter {
  from { opacity:0; transform:translateY(var(--bbk-page-offset,10px)); }
  to { opacity:1; transform:none; }
}
.bbk-page-motion-yes .elementor-button { transition:transform .24s ease,background-color .24s ease,color .24s ease,border-color .24s ease; }
.bbk-nav-cards-yes .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-item { transition-property:transform,background-color,color,border-color; }
.bbk-card-arrow { transition:transform .26s ease; }
.elementor-editor-active .bbk-page-motion-yes { animation:none; }
@media(prefers-reduced-motion:reduce) {
  .bbk-page-motion-yes { animation:none !important; }
  :is(.bbk-page-motion-yes,.bbk-nav-cards-yes) :is(.elementor-button,.elementor-item,.bbk-category-card,.bbk-card-arrow):is(:hover,:focus-visible) { transform:none !important; }
}
/* Same-page links such as Verken de onderwerpen scroll instead of jumping. */
html:has(.bbk-page-motion-yes) { scroll-behavior:smooth; }
@media(prefers-reduced-motion:reduce) { html:has(.bbk-page-motion-yes) { scroll-behavior:auto !important; } }
