* { box-sizing: border-box; }
body { font-family: system-ui, 'Segoe UI', sans-serif; max-width: 1200px; margin: 0 auto; padding: 2rem; background: #f1f5f9; color: #334155; }
h1 { color: #0f172a; font-size: 1.75rem; margin-bottom: 0.25rem; }
h2 { color: #1e293b; font-size: 1.25rem; margin-top: 0; }

/* Bento-navigatie – grote tegels */
.bento-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0 3rem; }
.bento-tile { display: flex; flex-direction: column; align-items: flex-start; padding: 1.25rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; min-height: 140px; border: 1px solid #e2e8f0; }
.bento-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.bento-tile-icon { width: 40px; height: 40px; margin-bottom: 0.75rem; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); border-radius: 8px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.bento-tile-icon svg { width: 100%; height: 100%; stroke: #475569; }
.bento-tile:hover .bento-tile-icon svg { stroke: #1e40af; }
.bento-tile-titel { font-weight: 600; font-size: 1rem; color: #1e293b; margin-bottom: 0.25rem; }
.bento-tile-sub { font-size: 0.8rem; color: #64748b; line-height: 1.3; }

/* Sectie-headers – tile-achtig */
.sectie-tile { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; scroll-margin-top: 1rem; }
.sectie-tile:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.sectie-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 2px solid #e2e8f0; }
.sectie-header-icon { width: 48px; height: 48px; flex-shrink: 0; background: #f1f5f9; border-radius: 10px; padding: 10px; }
.sectie-header-icon svg { width: 100%; height: 100%; stroke: #475569; }

/* Tab Programma's */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.stat-card { background: white; padding: 1rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stat-card h3 { margin: 0 0 0.5rem; font-size: 0.9rem; color: #666; }
.stat-card .waarde { font-size: 1.5rem; font-weight: bold; color: #2c5282; }
.toc-intro { margin: 1rem 0 0.5rem; font-size: 0.95rem; color: #4a5568; }
.partijen-toc { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.5rem 0; }
.toc-item { display: inline; }
.toc-link { color: #2c5282; text-decoration: none; font-weight: 500; }
.toc-link:hover { text-decoration: underline; }
.partijen-sectie { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid #e2e8f0; }
.partijen-sectie h2 { margin-top: 0; }
.sectie-intro { color: #718096; font-size: 0.9rem; margin: 0.5rem 0 1rem; }
.partij-details { background: white; margin-bottom: 0.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow: hidden; }
.partij-details summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 500; font-size: 1rem; }
.partij-details summary:hover { background: #f8f9fa; }
.partij-bron { font-weight: 400; font-size: 0.9rem; }
.partij-bron-link { color: #2c5282; }
.partij-bron-link:hover { text-decoration: underline; }
.partij-inhoud { padding: 0 1.25rem 1.25rem; border-top: 1px solid #eee; }
.thema-kop { font-size: 0.85rem; color: #718096; margin: 1rem 0 0.5rem; font-weight: 600; }
.partij-inhoud ul { margin: 0.25rem 0; padding-left: 1.25rem; }
.partij-inhoud li { margin: 0.35rem 0; font-size: 0.95rem; }
.geen-standpunten { color: #718096; font-size: 0.9rem; font-style: italic; }
.bron-verificatie { margin-top: 0.5rem; font-size: 0.9rem; }
.bron-verificatie a { color: #2c5282; text-decoration: none; }
.bron-verificatie a:hover { text-decoration: underline; }
.volledige-tekst-details { margin-top: 1.5rem; border-top: 1px solid #e2e8f0; padding-top: 1rem; }
.volledige-tekst-details summary { cursor: pointer; font-weight: 500; color: #2c5282; font-size: 0.9rem; }
.volledige-tekst { background: #f7fafc; padding: 1rem; border-radius: 6px; font-size: 0.8rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; max-height: 50vh; overflow-y: auto; margin: 0.5rem 0 0; border: 1px solid #e2e8f0; }

/* Tab Analyses */
.intro { background: #ebf8ff; padding: 1rem 1.5rem; border-radius: 8px; margin: 1rem 0; font-size: 0.95rem; }
.intro strong { color: #2b6cb0; }
.heatmap-uitleg { background: #f7fafc; padding: 1rem 1.25rem; border-radius: 8px; margin: 1rem 0; font-size: 0.9rem; border-left: 4px solid #2c5282; }
.heatmap-uitleg h3 { margin: 0 0 0.5rem; font-size: 1rem; color: #2c5282; }
.heatmap-uitleg p { margin: 0.35rem 0; }
.heatmap-partij-link { color: #2c5282; text-decoration: none; font-weight: 500; }
.heatmap-partij-link:hover { text-decoration: underline; }
.heatmap { overflow-x: auto; margin: 1.5rem 0; }
.heatmap table { border-collapse: collapse; width: 100%; min-width: 700px; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-radius: 8px; overflow: hidden; }
.heatmap th, .heatmap td { padding: 0.5rem 0.75rem; text-align: center; border: 1px solid #e2e8f0; }
.heatmap th { background: #edf2f7; font-weight: 600; font-size: 0.85rem; }
.heatmap td:first-child { text-align: left; font-weight: 500; }
.heatmap .cell { min-width: 2.5rem; }
.heatmap .cell-0 { background: #f7fafc; color: #a0aec0; }
.heatmap .cell-1 { background: #ebf8ff; color: #2b6cb0; }
.heatmap .cell-2 { background: #bee3f8; color: #2c5282; }
.heatmap .cell-3 { background: #90cdf4; color: #2a4365; }
.heatmap .cell-4 { background: #63b3ed; color: white; }
.heatmap .cell-5 { background: #3182ce; color: white; }
.legenda { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; font-size: 0.8rem; }
.legenda-item { display: flex; align-items: center; gap: 0.25rem; }
.legenda-kleur { width: 1rem; height: 1rem; border-radius: 3px; }
.issues-uitleg { margin-bottom: 1rem; font-size: 0.95rem; color: #4a5568; }
.issues-disclaimer { background: #f8fafc; padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.9rem; color: #64748b; border-left: 4px solid #94a3b8; }
.issues-disclaimer strong { color: #475569; font-weight: 600; }
.issues-grafisch { display: flex; flex-direction: column; gap: 1.25rem; }
.issue-kaart { background: white; border-radius: 8px; padding: 1rem 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-left: 4px solid #2c5282; }
.issue-titel { font-size: 1.05rem; color: #1a365d; margin-bottom: 0.25rem; }
.issue-context { font-size: 0.85rem; color: #718096; margin-bottom: 0.75rem; }
.issue-partijen { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.issue-links { display: flex; flex-wrap: wrap; gap: 0.35rem; flex: 1; justify-content: flex-end; }
.issue-midden { flex: 0 0 8px; height: 1px; background: #cbd5e0; min-width: 8px; }
.issue-rechts { display: flex; flex-wrap: wrap; gap: 0.35rem; flex: 1; justify-content: flex-start; }
.issue-partij-pil { display: inline-block; padding: 0.25rem 0.5rem; font-size: 0.8rem; background: #e2e8f0; color: #2c5282; border-radius: 999px; text-decoration: none; font-weight: 500; }
.issue-partij-pil:hover { background: #cbd5e0; }
.issue-groep { display: inline-flex; gap: 0.35rem; padding: 0.15rem 0.4rem; background: #ebf8ff; border-radius: 999px; margin-right: 0.25rem; }
.raakvlakken { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.raakvlak-card { background: white; padding: 1rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-left: 4px solid #2c5282; }
.raakvlak-card h3 { margin: 0 0 0.5rem; font-size: 1rem; color: #2c5282; }
.raakvlak-card .partijen { font-size: 0.85rem; color: #4a5568; }
.raakvlakken-inhoudelijk { display: flex; flex-direction: column; gap: 2rem; }

/* Samenvatting per taakveld – bento-grid met kleur per taakveld */
.bbv-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.bbv-kaart { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.bbv-kaart:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.bbv-kaart.bbv-span-2 { grid-column: span 2; }
.bbv-kaart-header { padding: 1rem 1.25rem; background: linear-gradient(135deg, var(--bbv-color, #64748b) 0%, var(--bbv-color-end, #94a3b8) 100%); color: white; display: flex; align-items: center; gap: 0.75rem; }
.bbv-emoji { font-size: 1.75rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
.bbv-kaart-titel { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; }
.bbv-kaart-inhoud { padding: 1rem 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; max-height: 320px; overflow-y: auto; }
.bbv-partij-kaart { background: linear-gradient(to bottom, rgba(0,0,0,0.02), transparent); border-radius: 8px; padding: 0.75rem; border-left: 3px solid var(--bbv-color, #94a3b8); transition: background 0.2s; }
.bbv-partij-kaart:hover { background: rgba(0,0,0,0.04); }
.bbv-partij-naam { margin: 0 0 0.4rem; font-size: 0.9rem; font-weight: 600; }
.bbv-partij-link { color: var(--bbv-color, #2c5282); text-decoration: none; }
.bbv-partij-link:hover { text-decoration: underline; }
.bbv-zetels { font-weight: 400; color: #94a3b8; font-size: 0.8rem; }
.bbv-standpunten { margin: 0; padding-left: 1rem; font-size: 0.82rem; line-height: 1.4; color: #475569; }
.bbv-standpunten li { margin: 0.25rem 0; }
.raakvlak-article { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); overflow: hidden; border-left: 4px solid #2c5282; }
.raakvlak-header { padding: 1rem 1.25rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.raakvlak-header h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: #2c5282; }
.raakvlak-meta { font-size: 0.8rem; color: #718096; margin: 0.25rem 0; }
.raakvlak-partijen { font-size: 0.85rem; color: #4a5568; margin: 0.25rem 0 0; }
.raakvlak-inhoud { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; padding: 1rem 1.25rem; }
.raakvlak-partij-blok { background: #f7fafc; padding: 0.9rem; border-radius: 6px; border-left: 3px solid #90cdf4; }
.raakvlak-partij-naam { margin: 0 0 0.5rem; font-size: 0.95rem; font-weight: 600; }
.raakvlak-partij-naam a { color: #2c5282; text-decoration: none; }
.raakvlak-partij-naam a:hover { text-decoration: underline; }
.raakvlak-partij-naam .zetels { font-weight: 400; color: #718096; font-size: 0.85rem; }
.raakvlak-standpunten { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; line-height: 1.45; color: #4a5568; }
.raakvlak-standpunten li { margin: 0.35rem 0; }
.ambtelijk-lijst { background: white; padding: 1rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); max-height: 70vh; overflow-y: auto; }
.ambtelijk-item { padding: 0.75rem 0; border-bottom: 1px solid #e2e8f0; font-size: 0.9rem; }
.ambtelijk-item:last-child { border-bottom: none; }
.ambtelijk-item .partij { font-weight: 600; font-size: 0.8rem; }
.ambtelijk-item .partij-link { color: #2c5282; text-decoration: none; }
.ambtelijk-item .partij-link:hover { text-decoration: underline; }
.ambtelijk-item .tekst { color: #4a5568; margin-top: 0.25rem; }

/* Ambtelijk – opleuken: intro, stats, thema-groepen, kaarten */
.ambtelijk-intro { margin-bottom: 1.5rem; }
.ambtelijk-stats { margin-bottom: 2rem; }
.ambtelijk-thema-groep { margin-bottom: 2.5rem; }
.ambtelijk-thema-kop { margin: 0 0 1rem; font-size: 1.05rem; color: #1e40af; font-weight: 600; border-bottom: 2px solid #e0e7ff; padding-bottom: 0.5rem; }
.ambtelijk-thema-count { font-weight: 400; color: #64748b; font-size: 0.9rem; }
.ambtelijk-kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.ambtelijk-kaart { background: white; border-radius: 10px; padding: 1rem 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 4px solid #3b82f6; transition: box-shadow 0.2s, transform 0.2s; }
.ambtelijk-kaart:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-1px); }
.ambtelijk-kaart-partij { font-weight: 600; font-size: 0.85rem; }
.ambtelijk-kaart-partij .partij-link { color: #2c5282; text-decoration: none; }
.ambtelijk-kaart-partij .partij-link:hover { text-decoration: underline; }
.ambtelijk-kaart-tekst { margin: 0.5rem 0 0; font-size: 0.9rem; line-height: 1.5; color: #4a5568; }

/* Zoekveld – compact in nav, groot op zoekpagina */
.zoek-form { display: flex; gap: 0.5rem; margin-bottom: 1rem; max-width: 400px; }
.zoek-form-groot { max-width: 500px; margin: 1.5rem 0 1rem; }
.zoek-input { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.95rem; }
.zoek-input:focus { outline: none; border-color: #2c5282; box-shadow: 0 0 0 2px rgba(44,82,130,0.2); }
.zoek-knop { padding: 0.5rem 1rem; background: #2c5282; color: white; border: none; border-radius: 8px; font-weight: 500; cursor: pointer; }
.zoek-knop:hover { background: #2a4365; }
.zoek-aantal { font-size: 0.9rem; color: #64748b; margin: 0 0 1rem; }
.zoek-resultaten { display: flex; flex-direction: column; gap: 0.75rem; max-height: 65vh; overflow-y: auto; }
.zoek-item { background: white; padding: 1rem 1.25rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-left: 4px solid #2c5282; }
.zoek-item-partij { font-weight: 600; font-size: 0.9rem; }
.zoek-item-partij .partij-link { color: #2c5282; text-decoration: none; }
.zoek-item-partij .partij-link:hover { text-decoration: underline; }
.zoek-item-thema { font-size: 0.8rem; color: #64748b; margin-left: 0.5rem; }
.zoek-item-tekst { margin: 0.5rem 0 0; font-size: 0.9rem; line-height: 1.5; color: #4a5568; }

/* Programma's – kaarten per partij + bronnen */
.programmas-intro { margin-bottom: 1.5rem; }
.programmas-stats { margin-bottom: 2rem; }
.programmas-kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.programma-kaart { display: flex; gap: 1rem; padding: 1rem 1.25rem; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none; color: inherit; border-left: 4px solid #2c5282; transition: transform 0.2s, box-shadow 0.2s; align-items: flex-start; }
.programma-kaart:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.programma-kaart-logo-wrap { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.programma-kaart-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; }
.programma-kaart-fallback { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%); border-radius: 8px; font-size: 1rem; font-weight: 700; color: #475569; }
.programma-kaart-body { flex: 1; min-width: 0; }
.programma-kaart-titel { margin: 0 0 0.25rem; font-size: 1rem; color: #1e293b; }
.programma-kaart-meta { margin: 0; font-size: 0.85rem; color: #64748b; }
.programma-kaart-bronnen { margin-top: 0.5rem; font-size: 0.8rem; }
.programma-kaart-bronnen a { color: #2c5282; text-decoration: none; }
.programma-kaart-bronnen a:hover { text-decoration: underline; }
.programmas-bronnen-kop { margin: 0 0 1rem; font-size: 1.05rem; color: #1e40af; }
.programmas-bronnen-lijst { background: #f8fafc; padding: 1rem 1.25rem; border-radius: 8px; border: 1px solid #e2e8f0; }
.programma-bron-item { padding: 0.4rem 0; font-size: 0.9rem; }
.programma-bron-item a { color: #2c5282; text-decoration: none; }
.programma-bron-item a:hover { text-decoration: underline; }

.bron { font-size: 0.8rem; color: #718096; margin-top: 2rem; }

/* Disclaimer – footer, subtiel */
.disclaimer { margin-top: 3rem; padding: 1rem 1.25rem; font-size: 0.85rem; color: #64748b; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.disclaimer strong { color: #475569; font-weight: 600; }
.carousel-wrapper { overflow-x: auto; margin: 1.5rem 0; }
.carousel { display: flex; gap: 1rem; padding: 0.5rem 0; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.carousel-card { flex: 0 0 min(340px, 85%); scroll-snap-align: start; background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 1.25rem; min-height: 300px; transition: transform 0.25s, box-shadow 0.25s; animation: carousel-fade-in 0.5s ease-out both; }
.carousel-card:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
@keyframes carousel-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.carousel-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #e2e8f0; }
.carousel-card-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.carousel-card-logo-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%); font-size: 1.1rem; font-weight: 700; color: #475569; }
.carousel-card-titel-wrap { flex: 1; min-width: 0; }
.carousel-card-titel { margin: 0 0 0.2rem; font-size: 1rem; color: #1e293b; }
.carousel-card-titel a { color: inherit; text-decoration: none; }
.carousel-card-titel a:hover { text-decoration: underline; color: #2c5282; }
.carousel-card-zetels { font-size: 0.8rem; color: #64748b; }
.carousel-card-lijst { margin: 0; padding-left: 1.25rem; font-size: 0.9rem; line-height: 1.5; color: #4a5568; }
.carousel-card-lijst li { margin: 0.4rem 0; }
.samenvatting-link { color: #2c5282; }
.carousel-hint { font-size: 0.85rem; color: #718096; margin-top: 0.5rem; }

/* Spectrum */
.spectrum-uitleg { background: #f7fafc; padding: 1rem 1.25rem; border-radius: 8px; margin: 1rem 0; font-size: 0.9rem; border-left: 4px solid #2c5282; }
.spectrum-uitleg p { margin: 0.35rem 0; }
.spectrum-layout { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.5rem 0; align-items: flex-start; }
.spectrum-svg-wrap { flex: 1 1 400px; overflow-x: auto; overflow-y: visible; background: white; border-radius: 8px; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.spectrum-svg { max-width: 100%; height: auto; overflow: visible; }
.spectrum-svg a { cursor: pointer; }
.spectrum-svg a:hover rect { filter: brightness(1.15); }
.spectrum-overzicht { flex: 1 1 280px; min-width: 260px; background: white; border-radius: 8px; padding: 1rem 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.spectrum-overzicht h3 { margin: 0 0 0.5rem; font-size: 1rem; color: #2c5282; }
.spectrum-overzicht-intro { font-size: 0.85rem; color: #4a5568; margin: 0 0 0.75rem; }
.spectrum-bron { font-size: 0.8rem; color: #718096; margin: 0.5rem 0 0; }
.spectrum-tabel { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.spectrum-tabel th, .spectrum-tabel td { padding: 0.4rem 0.5rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.spectrum-tabel th { font-weight: 600; color: #4a5568; }
.spectrum-tabel .raakvlak-kleur { width: 12px; min-width: 12px; border-radius: 3px; padding: 2px; }

/* Mobiel vriendelijk */
@media (max-width: 768px) {
  body { padding: 1rem; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; margin-top: 1.5rem; }
  .bento-nav { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1.5rem 0 2rem; }
  .bento-tile { min-height: 120px; padding: 1rem; }
  .bento-tile-icon { width: 32px; height: 32px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-card { padding: 0.75rem; }
  .stat-card .waarde { font-size: 1.25rem; }
  .issue-kaart { padding: 0.9rem 1rem; }
  .issue-partijen { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .issue-links { justify-content: center; order: 1; }
  .issue-midden { flex: none; width: 100%; height: 1px; min-width: 0; order: 2; }
  .issue-rechts { justify-content: center; order: 3; }
  .issue-partij-pil { padding: 0.4rem 0.65rem; min-height: 44px; display: inline-flex; align-items: center; font-size: 0.85rem; }
  .raakvlak-inhoud { grid-template-columns: 1fr; padding: 0.9rem 1rem; }
  .spectrum-layout { flex-direction: column; gap: 1rem; margin: 1rem 0; }
  .spectrum-svg-wrap { flex: 1 1 auto; min-width: 0; padding: 0.75rem; }
  .spectrum-overzicht { min-width: 0; flex: 1 1 auto; }
  .spectrum-tabel { font-size: 0.8rem; }
  .spectrum-tabel th, .spectrum-tabel td { padding: 0.35rem 0.4rem; }
  .carousel-card { flex: 0 0 min(280px, 92%); min-height: 260px; padding: 1rem; }
  .carousel-wrapper { -webkit-overflow-scrolling: touch; }
  .bbv-bento { grid-template-columns: 1fr; gap: 1rem; }
  .bbv-kaart.bbv-span-2 { grid-column: span 1; }
  .ambtelijk-kaarten { grid-template-columns: 1fr; }
  .programmas-kaarten { grid-template-columns: 1fr; }
  .bbv-kaart-inhoud { grid-template-columns: 1fr; max-height: 280px; }
  .partij-details summary { padding: 0.9rem 1rem; min-height: 44px; }
  .heatmap th, .heatmap td { padding: 0.4rem 0.5rem; font-size: 0.8rem; }
  .heatmap table { min-width: 600px; }
  .naar-boven { bottom: 1rem; right: 1rem; padding: 0.5rem 0.8rem; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  body { padding: 0.75rem; }
  .bento-nav { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* Naar boven – vast in beeld */
.naar-boven { position: fixed; bottom: 1.5rem; right: 1.5rem; padding: 0.6rem 1rem; background: #1e293b; color: white; text-decoration: none; font-size: 0.9rem; font-weight: 500; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 100; transition: background 0.2s, transform 0.2s; }
.naar-boven:hover { background: #334155; color: white; transform: translateY(-2px); }

/* Subpage-navigatie */
.subpage-nav { margin-bottom: 1.5rem; padding: 0.75rem 1rem; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 0.9rem; }
.subpage-nav .subnav-link { color: #2c5282; text-decoration: none; }
.subpage-nav .subnav-link:hover { text-decoration: underline; }
.subpage-nav .subnav-overzicht { font-weight: 600; }
.subpage-nav .subnav-current { color: #64748b; font-weight: 500; }
