/* Brede Welkaart: shared typography, logo palette and folded-paper panels. */
.bwk-site { --ink: #252b38; --page-color: #695ca5; --page-dark: #514580; color: var(--ink); }
.bwk-site[data-page="kaart"] { --page-color: #e9b30b; --page-dark: #806100; }
.bwk-site[data-page="onderwerpen"], .bwk-site[data-page="gemeente"] { --page-color: #29a4de; --page-dark: #17658a; }
.bwk-site[data-page="partijen"] { --page-color: #e64b94; --page-dark: #a32460; }
.bwk-site[data-page="data"] { --page-color: #49b05e; --page-dark: #267137; }
.bwk-site[data-page="stemlokaal"] { --page-color: #ee7121; --page-dark: #a4480e; }
.bwk-site[data-page="archief"], .bwk-site[data-page="privacy"] { --page-color: #6b7381; --page-dark: #465061; }
.bwk-site .main-content { animation: none; }
.bwk-site .fade-in { opacity: 1; animation: none; }
.bwk-site:not([data-page="home"]) .main-content h1 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: clamp(2.6rem,4.5vw,4.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -.015em; color: var(--ink); }
.bwk-site .main-content h2 { letter-spacing: -.025em; }
.bwk-site a:focus-visible, .bwk-site button:focus-visible, .bwk-site input:focus-visible, .bwk-site select:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
/* Navigation uses the same folded panels and section colours as the homepage. */
.bwk-site .site-header { background: #fff; backdrop-filter: none; box-shadow: none; border-bottom: 1px solid #d6d9df; }
.bwk-site .site-header::after { display: none; }
.bwk-site .header-inner { grid-template-columns: auto 1fr auto; gap: 1.25rem; }
.bwk-site .header-logo img { max-width: 210px; object-fit: contain; }
.bwk-site .header-center { gap: 5px; }
.bwk-site .nav-link { color: #596171; background: transparent; border-radius: 0; padding: .75rem .65rem; font-weight: 500; }
.bwk-site .nav-link:hover { color: var(--ink); background: transparent; }
.bwk-site .nav-link.active { color: var(--ink); background: transparent; font-weight: 600; text-decoration: underline; text-decoration-color: var(--page-color); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.bwk-site .nav-link.active::after { display: none; }
.bwk-site .header-lang, .bwk-site .lang-btn, .bwk-site .header-search .search-input { border-radius: 3px; box-shadow: none; }
.bwk-site .lang-btn.active { background: var(--ink); color: #fff; box-shadow: none; }
.bwk-site .header-search .search-input { background: #fff; border: 1px solid #aab0bb; }
.bwk-site .header-search .search-input:focus { border-color: var(--ink); box-shadow: none; }
/* Quiet navigation and credits keep the colour in the content. */
.bwk-site .site-footer { padding: 1.75rem 0; background: #fff; border-top: 1px solid #d6d9df; }
.bwk-site .footer-main-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; max-width: 1280px; margin: 0 auto 1.25rem; }
.bwk-site .footer-section-link { color: #596171; font-size: .875rem; font-weight: 500; }
.bwk-site .footer-section-link:hover, .bwk-site .footer-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.bwk-site .footer-inner { max-width: 1280px; margin: auto; align-items: start; gap: 1.25rem 2rem; }
.bwk-site .footer-copyright { color: #596171; font-weight: 500; }
.bwk-site .footer-tagline, .bwk-site .footer-link { color: #687182; }
.bwk-site .footer-partners { flex-wrap: wrap; }
.bwk-site .footer-partner-logo { opacity: .8; filter: grayscale(100%); }
/* Data surfaces remain rectangular so tables, plots and menus stay usable. */
.bwk-site .glass-card, .bwk-site .content-card, .bwk-site .privacy-card { background: #fff; backdrop-filter: none; border: 1px solid #d6d9df; border-top: 4px solid var(--page-color); border-radius: 3px; box-shadow: none; }
.bwk-site .glass-card:hover, .bwk-site .content-card:hover { transform: none; box-shadow: none; }
.bwk-site .stat-card { position: relative; isolation: isolate; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: #fff; padding-top: 1.65rem; padding-bottom: 1.65rem; }
.bwk-site .stat-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--page-color); clip-path: polygon(0 9px,100% 0,100% calc(100% - 9px),0 100%); }
.bwk-site .stat-card:nth-child(even)::before { clip-path: polygon(0 0,100% 9px,100% 100%,0 calc(100% - 9px)); }
.bwk-site .stat-card > div { color: inherit; }
.bwk-site .stat-card .font-mono { font-family: 'Barlow Condensed',sans-serif; font-size: 2rem; }
.bwk-site .tab-active { background: var(--page-dark); border-radius: 3px; }
.bwk-site .tab-inactive { background: #fff; border-radius: 3px; }
.bwk-site .bg-primary-600 { background-color: var(--page-dark); }
.bwk-site .text-primary-600, .bwk-site .text-primary-700 { color: var(--page-dark); }
.bwk-site .glass-card button, .bwk-site .glass-card select, .bwk-site .glass-card input, .bwk-site select { border-radius: 3px; }
/* Map selector gets a compact fold without reducing the map canvas. */
.bwk-site .topic-sidebar { background: #fff; border-right: 1px solid #d6d9df; }
.bwk-site .sidebar-title { font-family: 'Barlow Condensed',sans-serif; font-size: 1.55rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.bwk-site #topic-cards-grid .bwk-topic-card { position: relative; isolation: isolate; background: transparent; border: 0; border-radius: 0; padding: 1.1rem .6rem; box-shadow: none; transform: none; }
.bwk-site #topic-cards-grid .bwk-topic-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--topic-color); clip-path: polygon(0 8px,100% 0,100% calc(100% - 8px),0 100%); }
.bwk-site #topic-cards-grid .bwk-topic-card:nth-child(even)::before { clip-path: polygon(0 0,100% 8px,100% 100%,0 calc(100% - 8px)); }
.bwk-site #topic-cards-grid .bwk-topic-card.selected { outline: 2px solid var(--ink); outline-offset: 1px; }
.bwk-site #topic-cards-grid .card-icon { display: none; }
.bwk-site #topic-cards-grid .card-title { text-transform: none; padding-right: 1.2rem; line-height: 1.3; }
.bwk-site #topic-cards-grid .card-header { position: absolute; top: 1rem; right: .5rem; }
.bwk-site #topic-cards-grid .card-number { font-size: .85rem; opacity: 1; }
.bwk-site .map-legend { border-radius: 3px; background: #fff; backdrop-filter: none; box-shadow: none; border: 1px solid #d6d9df; border-top: 4px solid var(--page-color); }
.bwk-site .legend-icon { display: none; }
/* Database and archived experimental tool. */
.bwk-site .panel-filters { border-top: 5px solid var(--page-color); }
.bwk-site .search-header h2 { font-family: 'Barlow Condensed',sans-serif; font-size: 2rem; }
.bwk-site .search-bar button { background: var(--page-dark); border-radius: 3px; }
.bwk-site .results-toggle, .bwk-site .detail-panel-header, .bwk-site .multi-select-dropdown { border-radius: 3px; box-shadow: none; }
.bwk-site[data-page="stemlokaal"] #step-1 h1 svg, .bwk-site[data-page="stemlokaal"] .main-content > .container-fluid > .text-center h1 svg { display: none; }
.bwk-site[data-page="stemlokaal"] #archive-notice-title { font-family: 'DM Sans',sans-serif; }
.bwk-site[data-page="stemlokaal"] #step-1 .glass-card { border-top-color: var(--page-color); }
/* About, publication and legal/archive pages use the same heading and paper surfaces. */
.bwk-site .over-hero, .bwk-site .privacy-hero { text-align: left; }
.bwk-site .over-hero h1, .bwk-site .privacy-hero h1 { background: none; -webkit-text-fill-color: var(--ink); }
.bwk-site .over-page .stat-item { background: transparent; border: 0; border-top: 5px solid var(--page-color); border-radius: 0; box-shadow: none; transform: none; text-align: left; }
.bwk-site .over-page .stat-value { font-family: 'Barlow Condensed',sans-serif; color: var(--ink); font-size: 2.8rem; }
.bwk-site .content-card h2 .icon { display: none; }
.bwk-site .content-card h2, .bwk-site .privacy-card h2 { color: var(--ink); font-size: 1.6rem; }
.bwk-site .team-card, .bwk-site .partner-item { background: #f8fafc; border: 1px solid #d6d9df; border-radius: 3px; box-shadow: none; transform: none; }
.bwk-site .team-avatar { background: var(--page-color); border-radius: 0; color: #fff; font-family: 'Barlow Condensed',sans-serif; }
.bwk-site .partner-item i, .bwk-site .partner-item svg { display: none; }
.bwk-site .blog-header { text-align: left; border-bottom: 5px solid var(--page-color); padding-bottom: 2rem; }
.bwk-site .blog-header h1 { max-width: 28ch; }
.bwk-site[data-page="archief"] article { border-top: 4px solid var(--page-color); }
@media (min-width: 1025px) and (max-width: 1350px) { .bwk-site .header-right .header-search { display: none; } .bwk-site .header-inner { gap: .75rem; } .bwk-site .fold-link { padding-left: .65rem; padding-right: .65rem; } }
@media (max-width: 1100px) { .bwk-site #bwk-topics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 1024px) { .bwk-site .header-inner { display: flex; justify-content: space-between; } .bwk-site .header-center, .bwk-site .header-right { display: none; } .bwk-site .header-nav-mobile > .fold-link { display: inline-block; width: calc(50% - 5px); margin: 3px 0; padding: 1.2rem; text-align: left; } }
@media (max-width: 640px) { .bwk-site { --header-height: 60px; } .bwk-site .footer-main-nav { grid-template-columns: repeat(2,minmax(0,1fr)); } .bwk-site .footer-main-nav .fold-link { font-size: 1.15rem; } .bwk-site .footer-inner, .bwk-site .footer-brand { align-items: flex-start; text-align: left; } .bwk-site .footer-nav { justify-content: flex-start; } .bwk-site .footer-partners { gap: 1rem; justify-content: flex-start; } .bwk-site .footer-partner-logo { max-width: 110px; height: auto; max-height: 34px; } .bwk-site #bwk-topics-grid { grid-template-columns: 1fr; } .bwk-site #bwk-topics-grid .bwk-topic-card { min-height: 185px; } .bwk-site .main-content > .container-fluid > .mb-8 .flex.items-center { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .bwk-site { scroll-behavior: auto; } .bwk-site .fade-in, .bwk-site .main-content { animation: none; } }
/* Keep the expanded mobile menu compact and give utility rows their full width. */
@media (max-width: 1024px) {
  .bwk-site .header-nav-mobile.open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .bwk-site .header-nav-mobile > .fold-link { width: auto; margin: 0; }
  .bwk-site .header-nav-mobile > .header-search, .bwk-site .header-nav-mobile > .mobile-bottom { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bwk-site .privacy-card h2 { overflow-wrap: anywhere; }
  .bwk-site .glass-card > .flex.justify-between, .bwk-site .glass-card > .flex.items-center.justify-between { flex-wrap: wrap; gap: .75rem; }
  .bwk-site[data-page="stemlokaal"] #step-1 .flex.justify-center { flex-wrap: wrap; gap: .75rem; }
  .bwk-site .glass-card { min-width: 0; }
}
@media (max-width: 640px) {
  .bwk-site .glass-card .flex.items-center.justify-between { flex-wrap: wrap; gap: .75rem; }
  .bwk-site .glass-card .flex.items-center.gap-3 { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  .bwk-site .glass-card select { min-width: 0; max-width: 100%; }
}

@media (max-width: 1024px) {
 .bwk-site .header-nav-mobile > .nav-link { width: auto; padding: .65rem .5rem; margin: 0; }
}
/* Refinement: colour belongs to the subject; folds remain a quiet signature. */
.bwk-site .nav-link { --nav-color: #695ca5; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 8px; transition: text-decoration-color .18s ease, color .18s ease; }
.bwk-site .nav-link[href^="/kaart"] { --nav-color: #e9b30b; }
.bwk-site .nav-link[href^="/onderwerpen"] { --nav-color: #29a4de; }
.bwk-site .nav-link[href^="/partijen"] { --nav-color: #e64b94; }
.bwk-site .nav-link[href^="/data"] { --nav-color: #49b05e; }
.bwk-site .nav-link[href^="/stemlokaal"] { --nav-color: #ee7121; }
.bwk-site .nav-link:hover, .bwk-site .nav-link.active, .bwk-site .nav-link:focus-visible { text-decoration-color: var(--nav-color); }
.bwk-site .topic-sidebar { width: 360px; min-width: 320px; max-width: 400px; padding: 1.25rem; }
.bwk-site .sidebar-explanation { font-size: .85rem; line-height: 1.55; }
.bwk-site #topic-cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.bwk-site #topic-cards-grid .bwk-topic-card { min-height: 92px; padding: 1rem .8rem; transition: opacity .15s; }
.bwk-site #topic-cards-grid .bwk-topic-card::before { clip-path: polygon(0 3px,100% 0,100% calc(100% - 3px),0 100%); }
.bwk-site #topic-cards-grid .bwk-topic-card:nth-child(even)::before { clip-path: polygon(0 0,100% 3px,100% 100%,0 calc(100% - 3px)); }
.bwk-site #topic-cards-grid .card-title { font-size: .85rem; line-height: 1.35; font-weight: 600; }
.bwk-site #topic-cards-grid .card-description { display: none; }
.bwk-site #topic-cards-grid .card-number { font-size: .72rem; }
.bwk-site #topic-cards-grid .bwk-topic-card.selected { outline: none; }
.bwk-site #topic-cards-grid .bwk-topic-card.selected::after { content: ''; position: absolute; left: .8rem; bottom: .65rem; width: 24px; height: 3px; background: white; }
.bwk-site #topic-cards-grid .bwk-topic-card:hover::before { filter: brightness(.95); }
.bwk-site .map-legend { --legend-color: #29a4de; width: 245px; max-width: 245px; min-width: 0; padding: 1.1rem; border: 1px solid #dce1e6; border-top: 3px solid var(--legend-color); border-radius: 5px; text-align: left; }
.bwk-site .legend-title { font-size: 1rem; line-height: 1.3; }
.bwk-site .legend-subtitle, .bwk-site .legend-footer { text-align: left; font-size: .75rem; font-style: normal; }
.bwk-site .legend-gradient, .bwk-site .legend-gradient-bar { height: 8px; border-radius: 2px; }
.bwk-site .legend-labels { font-size: .72rem; }
.bwk-site .legend-footer { padding-top: .7rem; margin-top: .7rem; border-top: 1px solid #edf0f3; }
.bwk-site .glass-card h3 { font-family: 'Barlow Condensed',sans-serif; font-size: 1.6rem; font-weight: 600; }
.bwk-site .glass-card table { font-variant-numeric: tabular-nums; }
.bwk-site .glass-card th { font-size: .75rem; font-weight: 500; color: #687182; }
.bwk-site .glass-card td { padding-top: .9rem; padding-bottom: .9rem; }
.bwk-site .glass-card td.font-mono, .bwk-site .glass-card .font-mono { font-family: 'DM Sans',sans-serif; font-variant-numeric: tabular-nums; }
.bwk-site .theme-swatch { width: 5px; height: 26px; border-radius: 1px; flex-shrink: 0; }
.bwk-site .theme-meter { height: 10px; background: #f1f3f5; }
.bwk-site .theme-meter-fill { clip-path: polygon(0 2px,100% 0,100% calc(100% - 2px),0 100%); }
.bwk-site .trend-layout { display: grid; grid-template-columns: minmax(190px,250px) minmax(0,1fr); gap: 1.5rem; }
.bwk-site #trend-topic-toggles button { border: 0 !important; border-radius: 3px !important; padding: .55rem .6rem !important; white-space: normal !important; font-size: .8rem !important; }
.bwk-site .topic-key { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bwk-site #trend-topic-toggles button[aria-pressed="true"] { box-shadow: inset 3px 0 var(--topic-color); }
.bwk-site #municipality-list { grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 10px; padding: 4px; }
.bwk-site .municipality-item { --mun-color: #29a4de; position: relative; isolation: isolate; background: transparent; border: 0; border-radius: 0; padding: 1rem; }
.bwk-site .municipality-item:nth-child(4n+2) { --mun-color: #49b05e; }
.bwk-site .municipality-item:nth-child(4n+3) { --mun-color: #e64b94; }
.bwk-site .municipality-item:nth-child(4n+4) { --mun-color: #e9b30b; }
.bwk-site .municipality-item::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb,var(--mun-color) 12%,white); border-left: 3px solid var(--mun-color); clip-path: polygon(0 3px,100% 0,100% calc(100% - 3px),0 100%); }
.bwk-site .municipality-item:hover::before { background: color-mix(in srgb,var(--mun-color) 22%,white); }
.bwk-site .municipality-item .truncate { white-space: normal; }
.bwk-site .municipality-item .font-mono { font-size: .75rem; margin-top: .3rem; }
.bwk-site .party-row .rounded { border-radius: 1px; }
.bwk-site #theme-party-content .h-6, .bwk-site #party-theme-content .h-6 { height: 1rem; border-radius: 1px; }
.bwk-site .over-page .stat-item.stat-card { padding: 1.6rem; border: 0; }
.bwk-site .over-page .stat-item.stat-card:nth-child(1) { --page-color: #695ca5; }
.bwk-site .over-page .stat-item.stat-card:nth-child(2) { --page-color: #695ca5; }
.bwk-site .over-page .stat-item.stat-card:nth-child(3) { --page-color: #695ca5; }
.bwk-site .over-page .stat-item.stat-card .stat-value, .bwk-site .over-page .stat-item.stat-card .stat-label { color: white; }
.bwk-site .context-tiles { filter: grayscale(1); }
.bwk-site #data-map { background: #edf0f2; }
@media (max-width: 768px) {
 .bwk-site .topic-sidebar { width: 100%; min-width: 0; max-width: none; max-height: 35vh; padding: .8rem; }
 .bwk-site .trend-layout { grid-template-columns: 1fr; }
 .bwk-site #trend-topic-toggles { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); min-width: 0 !important; }
 .bwk-site .map-legend { width: 200px; right: 12px; bottom: 20px; padding: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .bwk-site .nav-link { transition: none; } }
.bwk-site button.bg-primary-500 { background: var(--page-dark); color: white; }
.bwk-site #theme-party-content .w-5.h-5 svg, .bwk-site #party-theme-content .w-5.h-5 svg { display: none; }
.bwk-site #theme-party-content .w-5.h-5, .bwk-site #party-theme-content .w-5.h-5 { width: 5px; height: 24px; border-radius: 1px; }
.bwk-site .party-row .stacked-bar { border-radius: 1px; }

@media (max-width: 768px) {
 .bwk-site .kaart-wrapper { height: auto; }
 .bwk-site .topic-sidebar { flex: none; }
 .bwk-site .kaart-map { flex: none; height: 60vh; min-height: 380px; }
}
@media (max-width: 768px) {
 .bwk-site .kaart-map { height: auto; }
 .bwk-site #map { height: 60vh; min-height: 380px; }
 .bwk-site .map-legend { position: relative; right: auto; bottom: auto; width: auto; max-width: none; margin: 0; border-radius: 0; }
}

.bwk-site[data-page="kaart"] #map { background: #fff; }
/* Databank: generous controls and a geography-only canvas. */
.bwk-site[data-page="data"] .data-wrapper { height: calc(100dvh - 73px); min-height: 650px; }
.bwk-site[data-page="data"] #data-map { background: #fff; }
.bwk-site[data-page="data"] .panel-filters { width: 340px; flex-shrink: 0; border-top: 4px solid #49b05e; }
.bwk-site[data-page="data"] .search-header { padding: 1.5rem 1.25rem 1.25rem; }
.bwk-site[data-page="data"] .search-header .databank-title { margin: 0 0 .5rem; font-size: 2.5rem; font-weight: 600; color: var(--ink); }
.bwk-site[data-page="data"] .databank-intro { font-size: .85rem; line-height: 1.6; color: #596171; margin: 0 0 1.25rem; }
.bwk-site[data-page="data"] .filters-section { padding: 1.25rem; }
.bwk-site[data-page="data"] .filter-group { margin-bottom: 1rem; }
.bwk-site[data-page="data"] .filter-label { font-size: .85rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); margin-bottom: .4rem; }
.bwk-site[data-page="data"] .multi-select-toggle,
.bwk-site[data-page="data"] .filter-select,
.bwk-site[data-page="data"] .filter-input,
.bwk-site[data-page="data"] .year-range-row select,
.bwk-site[data-page="data"] .search-bar input { min-width: 0; min-height: 44px; border: 1px solid #252b38; border-radius: 2px; background: #fff; padding: .65rem .75rem; font-size: .875rem; color: var(--ink); box-shadow: none; }
.bwk-site[data-page="data"] .search-bar { gap: .5rem; }
.bwk-site[data-page="data"] .search-bar button { padding: .65rem 1rem; font-size: .875rem; border-radius: 2px; }
.bwk-site[data-page="data"] .multi-select-dropdown { border: 1px solid #252b38; border-radius: 2px; max-height: 280px; margin-top: 4px; box-shadow: 0 5px 15px #252b3810; }
.bwk-site[data-page="data"] .ms-search { padding: .75rem; font-size: .85rem; }
.bwk-site[data-page="data"] .multi-select-dropdown label { padding: .6rem .75rem; font-size: .85rem; white-space: normal; }
.bwk-site[data-page="data"] .multi-select-dropdown input[type="checkbox"],
.bwk-site[data-page="data"] .main-only-check input { width: 16px; height: 16px; accent-color: #267137; }
.bwk-site[data-page="data"] .main-only-check { font-size: .8rem; gap: .5rem; margin-top: .6rem; }
.bwk-site[data-page="data"] .year-range-row { gap: .65rem; }
.bwk-site[data-page="data"] .year-range-row span { font-size: .8rem; }
.bwk-site[data-page="data"] .clear-filters-btn { font-size: .8rem; padding: .5rem 0; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.bwk-site[data-page="data"] .results-toggle { font-size: .85rem; padding: .65rem .9rem; border-radius: 2px; border-color: #252b38; box-shadow: none; }
.bwk-site[data-page="data"] .motion-card { padding: 1rem; }
.bwk-site[data-page="data"] .motion-title { font-size: .95rem; line-height: 1.45; }
.bwk-site[data-page="data"] .motion-meta { font-size: .8rem; }
@media (max-width: 900px) {
 .bwk-site[data-page="data"] .data-wrapper { height: auto; min-height: 0; }
 .bwk-site[data-page="data"] .panel-filters { width: 100%; max-height: 48vh; }
 .bwk-site[data-page="data"] .search-header { padding: 1rem; }
 .bwk-site[data-page="data"] .filters-section { padding: 1rem; flex: none; overflow: visible; }
 .bwk-site[data-page="data"] .panel-map { min-height: 420px; }
}

.bwk-site[data-page="data"] .motion-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
/* Compact filters, with the same readable controls. */
.bwk-site[data-page="data"] .panel-filters { width: 310px; }
.bwk-site[data-page="data"] .search-header { padding: 1rem; }
.bwk-site[data-page="data"] .search-header .databank-title { font-size: 2.1rem; margin-bottom: .3rem; }
.bwk-site[data-page="data"] .databank-intro { font-size: .8rem; line-height: 1.45; margin-bottom: .75rem; }
.bwk-site[data-page="data"] .filters-section { padding: .8rem 1rem; }
.bwk-site[data-page="data"] .filter-group { margin-bottom: .65rem; }
.bwk-site[data-page="data"] .filter-label { font-size: .8rem; margin-bottom: .25rem; }
.bwk-site[data-page="data"] .multi-select-toggle, .bwk-site[data-page="data"] .filter-select, .bwk-site[data-page="data"] .filter-input, .bwk-site[data-page="data"] .year-range-row select, .bwk-site[data-page="data"] .search-bar input { min-height: 36px; padding: .4rem .6rem; font-size: .82rem; }
.bwk-site[data-page="data"] .search-bar button { padding: .4rem .75rem; font-size: .82rem; }
.bwk-site[data-page="data"] .main-only-check { margin-top: .35rem; }
/* Purple partner folds echo the three figures above. */
.bwk-site .partner-item { position: relative; isolation: isolate; min-height: 110px; padding: 1.5rem 1rem; background: transparent; border: 0; border-radius: 0; }
.bwk-site .partner-item::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #695ca5; clip-path: polygon(0 7px,100% 0,100% calc(100% - 7px),0 100%); }
.bwk-site .partner-item:nth-child(even)::before { clip-path: polygon(0 0,100% 7px,100% 100%,0 calc(100% - 7px)); }
.bwk-site .partner-item span { color: white; font-size: .95rem; }
/* One section colour for municipality navigation. */
.bwk-site .municipality-item:nth-child(n) { --mun-color: var(--page-color); }
.bwk-site .municipality-item::before { background: #f8fafc; border-left: 2px solid var(--page-color); clip-path: none; }
.bwk-site .municipality-item:hover::before { background: color-mix(in srgb,var(--page-color) 9%,white); }
/* Rectangular party switches with a reliable active state in every mode. */
.bwk-site[data-page="partijen"] .glass-card .flex.overflow-hidden.border { border: 1px solid #252b38; border-radius: 2px; background: white; }
.bwk-site[data-page="partijen"] .glass-card .flex.overflow-hidden.border > button { border-radius: 0; background: white; color: #334155; }
.bwk-site[data-page="partijen"] .glass-card .flex.overflow-hidden.border > button.bg-primary-600 { background: #e64b94; color: white; }
.bwk-site[data-page="partijen"] #party-theme-content .w-5.h-5 { display: none; }
.bwk-site[data-page="partijen"] #party-municipalities a { border-radius: 2px; background: #f8fafc; border: 1px solid #e2e5e9; }
.bwk-site[data-page="partijen"] #party-municipalities a:hover { border-color: #e64b94; }
@media (max-width: 900px) { .bwk-site[data-page="data"] .panel-filters { width: 100%; } }
@media (min-width: 901px) {
 .bwk-site[data-page="data"] .search-header { padding: .8rem 1rem; }
 .bwk-site[data-page="data"] .databank-intro { margin-bottom: .5rem; font-size: .75rem; }
 .bwk-site[data-page="data"] .filters-section { padding: .65rem 1rem; }
 .bwk-site[data-page="data"] .filter-group { margin-bottom: .4rem; }
 .bwk-site[data-page="data"] .filter-label { margin-bottom: .2rem; font-size: .78rem; }
 .bwk-site[data-page="data"] .multi-select-toggle, .bwk-site[data-page="data"] .filter-select, .bwk-site[data-page="data"] .year-range-row select { min-height: 32px; padding: .3rem .6rem; }
}
/* Three theme columns alongside the portrait-shaped Netherlands map. */
@media (min-width: 769px) {
 .bwk-site .topic-sidebar { width: 44%; min-width: 420px; max-width: 560px; flex-shrink: 0; }
 .bwk-site #topic-cards-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
/* Final shared finish: white canvas, aligned controls and condensed navigation. */
body.bwk-site { background: #fff; }
.bwk-site .main-content { background: #fff; }
.bwk-site .nav-link { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 1.25rem; font-weight: 600; }
.bwk-site .header-search .search-input { height: 40px; border: 1px solid #252b38; border-radius: 2px; }
.bwk-site .header-lang { height: 40px; padding: 2px; border: 1px solid #252b38; border-radius: 2px; background: white; box-sizing: border-box; }
.bwk-site .header-lang .lang-btn { height: 34px; border-radius: 0; padding: 0 .65rem; }
.bwk-site .search-dropdown { border-radius: 2px; border: 1px solid #252b38; box-shadow: 0 4px 12px #252b3810; top: calc(100% + 4px); animation: none; }
.bwk-site .municipality-option:first-child, .bwk-site .municipality-option:last-child { border-radius: 0; }
.bwk-site .municipality-option:hover, .bwk-site .municipality-option.highlighted { background: #f1f3f5; color: #252b38; }
.bwk-site .theme-overview-table { table-layout: fixed; min-width: 660px; }
.bwk-site .theme-overview-table td:nth-child(4), .bwk-site .theme-overview-table th:nth-child(4) { padding-left: 1rem; padding-right: 1.5rem; }
.bwk-site .theme-overview-table td:nth-child(5) svg { width: 100%; max-width: 190px; }
.bwk-site .theme-meter { height: 12px; background: #f3f4f5; }
.bwk-site #trend-topic-toggles button { min-height: 38px; border: 1px solid #e0e4e8 !important; box-shadow: none; }
.bwk-site #trend-topic-toggles button[aria-pressed="true"] { border-color: transparent !important; box-shadow: none; }
.bwk-site .municipality-item:nth-child(n) { --mun-color: var(--page-color); }
.bwk-site .municipality-item::before { background: var(--mun-color); border: 0; }
.bwk-site .municipality-item:hover::before { background: var(--mun-color); filter: brightness(1.1); }
.bwk-site .municipality-item > div { color: #fff; }
.bwk-site .footer-inner { align-items: center; }
.bwk-site .footer-nav { gap: .65rem 1.15rem; }
.bwk-site .footer-nav .footer-link { font-size: .85rem; }
@media (max-width: 640px) { .bwk-site .footer-inner { align-items: flex-start; } }

.bwk-site[data-page="onderwerpen"] .glass-card > .flex > h3 { flex-shrink: 0; }
.bwk-site .theme-overview-table td:nth-child(5) svg { flex: 1; min-width: 0; }

/* Compact right-aligned sparklines and two seven-item selector columns. */
.bwk-site .theme-overview-table td:nth-child(5), .bwk-site .theme-overview-table th:nth-child(5) { text-align: right; padding-right: 0; }
.bwk-site .theme-overview-table td:nth-child(5) > div { justify-content: flex-end; }
.bwk-site .theme-overview-table td:nth-child(5) svg { flex: 0 0 80px; width: 80px; max-width: 80px; }
.bwk-site .trend-layout { grid-template-columns: minmax(320px, 38%) minmax(0,1fr); align-items: start; }
.bwk-site #trend-topic-toggles { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(7,minmax(44px,auto)); grid-auto-flow: column; gap: 6px !important; min-width: 0 !important; }
.bwk-site .trend-chart-panel { height: 350px; }
@media (max-width: 900px) {
 .bwk-site .trend-layout { grid-template-columns: 1fr; }
 .bwk-site .trend-chart-panel { height: 320px; }
}

/* Chart labels and small numerical series share the display typography. */
.bwk-site .theme-overview-table td:nth-child(3),
.bwk-site .theme-overview-table td:nth-child(5) span,
.bwk-site .theme-overview-table th { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-weight: 600; }
.bwk-site .theme-overview-table td:nth-child(3) { font-size: 1.05rem; }
.bwk-site .theme-overview-table td:nth-child(5) span { font-size: .8rem; }

/* Carry the chart type system into HTML/SVG charts and numeric readouts. */
.bwk-site .trend-labels, .bwk-site .trend-section .trend-title,
.bwk-site .legend-labels, .bwk-site .legend-footer,
.bwk-site .glass-card .font-mono,
.bwk-site #theme-party-content .text-sm,
.bwk-site #party-theme-content .text-sm {
 font-family: 'Barlow Condensed','Arial Narrow',sans-serif;
 font-weight: 600;
 font-variant-numeric: tabular-nums;
}
.bwk-site .trend-labels { font-size: .85rem; color: #596171; }
.bwk-site .trend-section .trend-title { font-size: 1rem; letter-spacing: 0; text-transform: none; }
.bwk-site .legend-labels, .bwk-site .legend-footer { font-size: .9rem; }
.bwk-site #theme-party-content .text-sm, .bwk-site #party-theme-content .text-sm { font-size: 1rem; }
.bwk-site[data-page="gemeente"] .glass-card .font-mono { font-size: 1rem; }

/* Municipality detail beside the map, in the selected theme colour. */
.bwk-site .municipality-panel[hidden] { display: none; }
.bwk-site .municipality-panel { position: relative; width: 310px; flex: 0 0 310px; padding: 1.5rem; overflow-y: auto; background: #fff; border-left: 1px solid #dce1e6; border-top: 4px solid var(--municipality-color); }
.bwk-site .municipality-panel h2 { font: 600 2rem/1.1 'Barlow Condensed',sans-serif; margin: 0 1rem .5rem 0; }
.bwk-site #close-municipality-panel { position: absolute; right: .75rem; top: .65rem; font-size: 1.5rem; padding: .2rem .5rem; line-height: 1; }
.bwk-site .municipality-total { color: #687182; font-size: .85rem; margin-bottom: 1.5rem; }
.bwk-site .municipality-current h3, .bwk-site .municipality-topics h3 { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.bwk-site .municipality-percentage { font: 600 3.5rem/1.1 'Barlow Condensed',sans-serif; color: var(--ink); }
.bwk-site .municipality-percentage span { font-size: 1.8rem; }
.bwk-site .municipality-current p { font-size: .85rem; }
.bwk-site .municipality-current dl { margin: 1rem 0 1.5rem; padding-top: .8rem; border-top: 1px solid #e5e7eb; font-size: .8rem; }
.bwk-site .municipality-current dl > div { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.bwk-site .municipality-current dd { font-weight: 600; text-align: right; }
.bwk-site .municipality-topic { display: flex; justify-content: space-between; gap: .75rem; font-size: .8rem; padding: .65rem 0; border-bottom: 1px solid #edf0f3; }
.bwk-site .municipality-topic strong { white-space: nowrap; }
.bwk-site .municipality-detail-link { display: block; border: 1px solid #252b38; padding: .75rem; margin-top: 1.5rem; font-size: .85rem; text-align: center; }
.bwk-site .municipality-detail-link:hover { background: #f3f4f5; }
@media (min-width: 1101px) { .bwk-site .has-municipality .topic-sidebar { width: 32%; min-width: 360px; } }
@media (min-width: 769px) and (max-width: 1100px) {
 .bwk-site .has-municipality { position: relative; }
 .bwk-site .municipality-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 1100; box-shadow: -5px 0 18px #252b3810; }
}
@media (max-width: 768px) {
 .bwk-site .municipality-panel { position: fixed; top: var(--header-height,60px); right: 0; bottom: 0; width: min(350px,92vw); z-index: 1100; box-shadow: -5px 0 18px #252b3818; }
}

/* Side-by-side comparisons, with consistently sized controls. */
.bwk-site .party-comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.bwk-site .party-comparison-grid > .glass-card { margin-bottom: 0; }
.bwk-site .party-comparison-grid > .glass-card > .flex:first-child { flex-direction: column; align-items: stretch; gap: .8rem; }
.bwk-site .party-comparison-grid > .glass-card > .flex:first-child > .flex { display: flex; flex-wrap: wrap; }
.bwk-site .party-comparison-grid select { flex: 1; min-width: 0; width: 100%; }
.bwk-site[data-page="partijen"] .main-content select { height: 40px; border: 1px solid #252b38; border-radius: 2px; background-color: white; font: 400 .875rem 'DM Sans',sans-serif; padding: .5rem .7rem; box-shadow: none; }
.bwk-site[data-page="partijen"] .glass-card th { font-family: 'Barlow Condensed',sans-serif; font-size: 1.1rem; font-weight: 600; color: #465061; }
.bwk-site .party-comparison-grid #party-theme-content .w-56 { width: 145px; flex-shrink: 0; white-space: normal; }
.bwk-site .party-comparison-grid #party-theme-content .w-56 .truncate { white-space: normal; }
.bwk-site .party-comparison-grid #theme-party-content .w-40 { width: 120px; flex-shrink: 0; }
.bwk-site .party-comparison-grid #party-theme-content .w-24 { width: 70px; }
.bwk-site .party-comparison-grid #party-theme-content .flex-1,
.bwk-site .party-comparison-grid #theme-party-content .flex-1 { min-width: 60px; }
@media (max-width: 1100px) { .bwk-site .party-comparison-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
 .bwk-site .party-comparison-grid #party-theme-content .w-56 { width: 100px; }
 .bwk-site .party-comparison-grid #party-theme-content .w-24 { display: none; }
 .bwk-site .party-comparison-grid #theme-party-content .w-40 { width: 85px; }
 .bwk-site .party-comparison-grid #party-theme-content > .flex { gap: .4rem; }
}
.bwk-site[data-page="partijen"] .main-content select { appearance: auto; background-image: none; }

/* Stable detail area and matching outlined map controls. */
.bwk-site .municipality-panel { --municipality-color: #e9b30b; }
.bwk-site .municipality-empty { font-size: .9rem; line-height: 1.65; color: #687182; margin-top: 1rem; }
.bwk-site .map-legend { border: 1px solid #252b38; border-radius: 2px; box-shadow: none; }
.bwk-site .leaflet-control-zoom { border: 1px solid #252b38 !important; border-radius: 2px !important; box-shadow: none; overflow: hidden; }
.bwk-site .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; border-radius: 0 !important; color: #252b38; background: white; font-weight: 500; }
.bwk-site .leaflet-control-zoom a:first-child { border-bottom: 1px solid #252b38; }
.bwk-site .leaflet-control-zoom a:hover { background: #f1f3f5; }
@media (max-width: 1100px) {
 .bwk-site .has-municipality .municipality-panel { position: relative; top: auto; right: auto; bottom: auto; width: 100%; flex: 0 0 auto; min-height: 180px; box-shadow: none; border-left: 0; }
 .bwk-site .has-municipality { height: auto; flex-wrap: wrap; }
}
@media (min-width: 769px) and (max-width: 1100px) {
 .bwk-site .has-municipality .topic-sidebar { width: 44%; min-width: 320px; max-height: 600px; }
 .bwk-site .has-municipality .kaart-map { min-height: 600px; }
 .bwk-site .has-municipality #map { height: 600px; }
}

/* Matching outlined period filters and equal-height comparison controls. */
.bwk-site[data-page="onderwerpen"] .cycle-filter { min-height: 36px; border: 1px solid #252b38; border-radius: 2px; background: white; color: #334155; }
.bwk-site[data-page="onderwerpen"] .cycle-filter:hover { background: #f3f4f5; }
.bwk-site[data-page="onderwerpen"] .cycle-filter.bg-primary-600 { background: #29a4de; color: white; }
.bwk-site[data-page="onderwerpen"] .theme-overview-table th { font-family: 'Barlow Condensed',sans-serif; font-size: 1.1rem; font-weight: 600; color: #465061; }
.bwk-site .party-comparison-grid > .glass-card > .flex:first-child > .flex > .flex.overflow-hidden.border { height: 40px; box-sizing: border-box; align-items: stretch; }
.bwk-site .party-comparison-grid > .glass-card > .flex:first-child > .flex > .flex.overflow-hidden.border > button { height: 38px; padding-top: 0; padding-bottom: 0; }

/* Final audit: consistent comparison rhythm and regional detail pages. */
.bwk-site[data-page="provincie"] { --page-color: #29a4de; --page-dark: #17658a; }
.bwk-site .party-comparison-grid #theme-party-content .comparison-rows > div,
.bwk-site .party-comparison-grid #party-theme-content > div { min-height: 45px; padding: .25rem 0; border-bottom: 1px solid #edf0f3; }
.bwk-site .party-comparison-grid #theme-party-content .h-6,
.bwk-site .party-comparison-grid #party-theme-content .h-5 { height: 18px; border-radius: 2px; }
.bwk-site .cycle-tab { border: 1px solid #252b38; border-radius: 2px; }
.bwk-site .cycle-tab.tab-active { background: var(--page-color); color: #fff; }
.bwk-site .cycle-tab.tab-inactive { background: white; color: #252b38; }
.bwk-site .province-context { max-width: none; margin-top: 1rem; font-size: 1rem; line-height: 1.65; color: #596171; }
.bwk-site .province-context p + p { margin-top: .5rem; }
.bwk-site .province-context summary { cursor: pointer; color: #252b38; padding: .75rem 0; font-weight: 600; }
.bwk-site .province-municipalities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem 1rem; padding-bottom: 1rem; }
.bwk-site .province-municipalities a { border-bottom: 1px solid #d6d9df; padding: .5rem 0; }
.bwk-site .province-municipalities span { display: block; font-size: .75rem; color: #596171; }
.bwk-site .province-option .count { font-size: .75rem; font-weight: 600; }
.bwk-site .header-search .search-input { text-overflow: ellipsis; }
@media(max-width: 640px) { .bwk-site .province-municipalities { grid-template-columns: 1fr; } }

.bwk-site [id^="theme-party-content"] .text-sm,
.bwk-site [id^="party-theme-content"] .text-sm { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-size: 1rem; font-weight: 600; }
.bwk-site:is([data-page="gemeente"],[data-page="provincie"]) .glass-card th { font: 600 1.1rem 'Barlow Condensed',sans-serif; color: #465061; }
.bwk-site:is([data-page="gemeente"],[data-page="provincie"]) .glass-card select { height: 40px; border: 1px solid #252b38; border-radius: 2px; background: white; }
.bwk-site:is([data-page="gemeente"],[data-page="provincie"]) .glass-card .flex.overflow-hidden.border { height: 40px; border: 1px solid #252b38; border-radius: 2px; }
.bwk-site:is([data-page="gemeente"],[data-page="provincie"]) .glass-card button.bg-primary-600 { background: var(--page-color); }
.bwk-site [id^="party-theme-content"] .w-5.h-5 { display: none; }
@media(min-width: 1351px) { .bwk-site .header-right .header-search { width: 245px; } }
@media(min-width: 1025px) and (max-width: 1350px) {
 .bwk-site .header-right .header-search { display: block; width: 245px; }
 .bwk-site .header-logo img { max-width: 150px; }
 .bwk-site .header-center { gap: 0; }
 .bwk-site .nav-link { padding-left: .4rem; padding-right: .4rem; font-size: 1.05rem; }
}

.bwk-site .header-right .header-search .search-input { width: 100%; }
.bwk-site .main-content select { border: 1px solid #252b38; border-radius: 2px; background-color: #fff; background-image: none; appearance: auto; }

.bwk-site .main-content h2, .bwk-site .main-content h3 { font-family: 'Barlow Condensed','Arial Narrow',sans-serif; font-weight: 600; }

.bwk-site .main-content input[type="text"], .bwk-site .main-content input[type="search"] { border: 1px solid #252b38; border-radius: 2px; }

/* Compact, matching rows in the two party comparisons. */
.bwk-site .party-comparison-grid .comparison-rows > div + div,
.bwk-site .party-comparison-grid #party-theme-content > div + div { margin-top: 4px; }

/* Dismissible archive warning, using the site's outlined controls. */
.bwk-site .archive-warning { position: relative; background: #fff8df; border: 1px solid #252b38; border-radius: 2px; padding: 20px 56px 20px 20px; }
.bwk-site .archive-warning[hidden] { display: none; }
.bwk-site .archive-warning-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; background: white; border: 1px solid #252b38; border-radius: 2px; color: #252b38; font-size: 24px; line-height: 1; }
.bwk-site .archive-warning-close:hover { background: #f4df9c; }
.bwk-site .archive-warning-close:focus-visible { outline: 2px solid #252b38; outline-offset: 3px; }

.bwk-site .regional-parties-collapsed tbody > tr:nth-child(n+21),
.bwk-site .regional-parties-collapsed .regional-party-rows > div:nth-child(n+21) { display: none; }
.bwk-site .regional-parties-toggle { margin-top: 1rem; background: white; border: 1px solid #252b38; border-radius: 2px; padding: .5rem 1rem; font-weight: 600; }
.bwk-site .regional-parties-toggle:hover { background: #eaf6fc; }

.bwk-site .nav-link[href^="/kapitaal"] { --nav-color: #008c87; }
