* { box-sizing: border-box; }
body { font-family: system-ui, 'Segoe UI', sans-serif; max-width: 1200px; margin: 0 auto; padding: 2rem; background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%); min-height: 100vh; color: #334155; }

/* Top-bar – bovenliggende navigatie, consequent links uitgelijnd */
.top-bar { display: flex; align-items: center; gap: 1rem; margin: -2rem -2rem 1rem -2rem; padding: 0.85rem 2rem; border-bottom: 1px solid #e2e8f0; background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.98) 100%); }
.top-bar-badge { font-size: 0.8rem; font-weight: 600; color: #64748b; letter-spacing: 0.03em; }
.top-bar-link { color: #2c5282; text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.top-bar-link:hover { text-decoration: underline; }
h1 { color: #0f172a; font-size: 1.75rem; margin-bottom: 0.25rem; letter-spacing: -0.02em; }
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-nav-3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.bento-nav-4 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 900px) { .bento-nav-4 { grid-template-columns: repeat(4, 1fr); } }
.bento-tile { display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem; background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04); text-decoration: none; color: inherit; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s; min-height: 180px; border: 1px solid #e2e8f0; animation: bento-appear 0.5s ease-out both; }
.bento-tile:nth-child(1) { animation-delay: 0.05s; border-left: 4px solid #0ea5e9; }
.bento-tile:nth-child(2) { animation-delay: 0.1s; border-left: 4px solid #0d9488; }
.bento-tile:nth-child(3) { animation-delay: 0.15s; border-left: 4px solid #6366f1; }
@keyframes bento-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.bento-tile:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.06); }
.bento-tile-programmas:hover { border-left-color: #0284c7; }
.bento-tile-ambtelijk:hover { border-left-color: #0f766e; }
.bento-tile-raakvlakken:hover { border-left-color: #4f46e5; }
.bento-tile-collegas { border-left-color: #0d9488; }
.bento-tile-collegas:hover { border-left-color: #0f766e; }
.bento-tile-collegas:hover .bento-tile-icon { background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%); }
.bento-tile-collegas:hover .bento-tile-icon svg { stroke: #0d9488; }
.bento-tile-icon { width: 44px; height: 44px; margin-bottom: 0.85rem; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-radius: 10px; padding: 10px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.bento-tile-icon svg { width: 100%; height: 100%; stroke: #475569; transition: stroke 0.2s; }
.bento-tile-programmas:hover .bento-tile-icon { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }
.bento-tile-programmas:hover .bento-tile-icon svg { stroke: #0284c7; }
.bento-tile-ambtelijk:hover .bento-tile-icon { background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%); }
.bento-tile-ambtelijk:hover .bento-tile-icon svg { stroke: #0d9488; }
.bento-tile-raakvlakken:hover .bento-tile-icon { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }
.bento-tile-raakvlakken:hover .bento-tile-icon svg { stroke: #4f46e5; }
.bento-tile-titel { font-weight: 600; font-size: 1rem; color: #1e293b; margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.bento-tile-toelichting { font-size: 0.88rem; color: #64748b; line-height: 1.5; }
.bento-tile-sub { font-size: 0.82rem; color: #64748b; line-height: 1.4; }

/* Bento-shortcuts – directe links op tegels, vrolijk en mobiel-proof */
.bento-tile-main { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: inherit; flex: 1; cursor: pointer; }
.bento-tile-shortcuts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed #e2e8f0; }
.bento-shortcut { display: inline-flex; align-items: center; padding: 0.4rem 0.85rem; font-size: 0.85rem; font-weight: 600; text-decoration: none; border-radius: 999px; transition: transform 0.2s, box-shadow 0.2s; min-height: 44px; }
.bento-shortcut-programmas { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); color: white; box-shadow: 0 2px 8px rgba(14,165,233,0.35); }
.bento-shortcut-programmas:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(14,165,233,0.45); color: white; }
.bento-shortcut-chord { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; box-shadow: 0 2px 8px rgba(139,92,246,0.35); }
.bento-shortcut-chord:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(139,92,246,0.45); color: white; }
.bento-shortcut-netwerk { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); color: white; box-shadow: 0 2px 8px rgba(13,148,136,0.35); }
.bento-shortcut-netwerk:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(13,148,136,0.45); color: white; }
.bento-shortcut-ambtelijk { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); color: white; box-shadow: 0 2px 8px rgba(99,102,241,0.4); }
.bento-shortcut-ambtelijk:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(99,102,241,0.5); color: white; }

/* 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; }
.volledige-tekst-sectie { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; }
.volledige-tekst-sectie:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.volledige-tekst-sectie h2 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.volledige-tekst-sectie .volledige-tekst { max-height: none; overflow-y: visible; }

/* 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-visualisaties { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.5rem; }
.raakvlak-vis-link { display: inline-block; padding: 0.75rem 1.25rem; background: #2c5282; color: white; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 6px rgba(44,82,130,0.25); }
.raakvlak-vis-link:hover { background: #1e3a5f; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(44,82,130,0.35); }

/* Raakvlakken-menu – 2 rijen × 3 kolommen, grotere afbeeldingen */
.raakvlakken-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.raakvlak-tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; background: #fff; border-radius: 14px; 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: 200px; border: 1px solid #e2e8f0; border-left: 4px solid #6366f1; }
.raakvlak-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.raakvlak-tile-icon { width: 90px; height: 90px; margin-bottom: 1rem; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-radius: 12px; padding: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.raakvlak-tile-icon svg { width: 100%; height: 100%; stroke: #4f46e5; }
.raakvlak-tile:hover .raakvlak-tile-icon { background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%); }
.raakvlak-tile-titel { font-weight: 600; font-size: 1.05rem; color: #1e293b; margin-bottom: 0.3rem; }
.raakvlak-tile-sub { font-size: 0.85rem; color: #64748b; line-height: 1.35; }
.raakvlak-tile-themas { border-left-color: #0ea5e9; }
.raakvlak-tile-themas .raakvlak-tile-icon { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }
.raakvlak-tile-themas .raakvlak-tile-icon svg { stroke: #0284c7; }
.raakvlak-tile-chord { border-left-color: #0d9488; }
.raakvlak-tile-chord .raakvlak-tile-icon { background: #f0fdfa; }
.raakvlak-tile-chord .raakvlak-tile-icon svg { stroke: #0d9488; }
.raakvlak-tile-scatter { border-left-color: #6366f1; }
.raakvlak-tile-scatter .raakvlak-tile-icon { color: #6366f1; }
.raakvlak-tile-beleid { border-left-color: #ea580c; }
.raakvlak-tile-beleid .raakvlak-tile-icon { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); }
.raakvlak-tile-beleid .raakvlak-tile-icon svg { stroke: #ea580c; }
.raakvlak-tile-netwerk { border-left-color: #7c3aed; }
.raakvlak-tile-netwerk .raakvlak-tile-icon { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.raakvlak-tile-netwerk .raakvlak-tile-icon { color: #7c3aed; }
.raakvlak-tile-netwerk .raakvlak-tile-icon svg { stroke: #7c3aed; }
.raakvlak-tile-spectrum { border-left-color: #dc2626; }
.raakvlak-tile-spectrum .raakvlak-tile-icon { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); }
.raakvlak-tile-spectrum .raakvlak-tile-icon { color: #dc2626; }
.raakvlak-tile-spectrum .raakvlak-tile-icon svg { stroke: #dc2626; }
.raakvlak-tile-ambtelijk { border-left-color: #0d9488; }
.raakvlak-tile-ambtelijk .raakvlak-tile-icon { background: #f0fdfa; }
.raakvlak-tile-ambtelijk .raakvlak-tile-icon svg { stroke: #0d9488; }
.raakvlak-tile-taakveld { border-left-color: #ea580c; }
.raakvlak-tile-taakveld .raakvlak-tile-icon { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); }
.raakvlak-tile-taakveld .raakvlak-tile-icon svg { stroke: #ea580c; }
.raakvlak-tile-issues { border-left-color: #0284c7; }
.raakvlak-tile-issues .raakvlak-tile-icon { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }
.raakvlak-tile-issues .raakvlak-tile-icon svg { stroke: #0284c7; }
.raakvlak-tile-chat { border-left-color: #7c3aed; }
.raakvlak-tile-chat .raakvlak-tile-icon { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.raakvlak-tile-chat .raakvlak-tile-icon svg { stroke: #7c3aed; }
.raakvlak-tile-collega { border-left-color: #0d9488; }
.raakvlak-tile-collega .raakvlak-tile-icon { background: #f0fdfa; }
.raakvlak-tile-collega .raakvlak-tile-icon svg { stroke: #0d9488; }
.raakvlak-tile-methodiek { border-left-color: #64748b; }
.raakvlak-tile-methodiek .raakvlak-tile-icon { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); }
.raakvlak-tile-methodiek .raakvlak-tile-icon svg { stroke: #64748b; }
.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; flex-wrap: wrap; }
.bbv-emoji { font-size: 1.75rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); flex-shrink: 0; }
.bbv-kaart-titel { margin: 0; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.35; min-width: 0; }
.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; }

/* Ambtelijk – view toggle en eenheden-view */
.ambtelijk-view-toggle { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.view-toggle-btn { padding: 0.6rem 1.2rem; border: 1px solid #cbd5e1; background: #fff; color: #475569; font-size: 0.9rem; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.view-toggle-btn:hover { background: #f1f5f9; border-color: #94a3b8; }
.view-toggle-btn.active { background: #0d9488; color: #fff; border-color: #0d9488; }
.eenheid-blok { margin-bottom: 2.5rem; padding: 1.5rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 4px solid #0d9488; }
.eenheid-header { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #e2e8f0; }
.eenheid-titel { margin: 0 0 0.35rem; font-size: 1.1rem; color: #0f766e; font-weight: 600; }
.eenheid-omschrijving { margin: 0; font-size: 0.88rem; color: #64748b; line-height: 1.4; }
.eenheid-meta { margin: 0.5rem 0 0; font-size: 0.82rem; color: #94a3b8; }
.eenheid-meer { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #e2e8f0; }
.eenheid-meer summary { cursor: pointer; font-weight: 500; color: #0d9488; font-size: 0.9rem; padding: 0.5rem 0; }
.eenheid-meer summary:hover { text-decoration: underline; }
.eenheid-meer[open] summary { margin-bottom: 0.75rem; }
.ambtelijk-eenheden-intro { margin-bottom: 1rem; font-size: 0.95rem; color: #475569; line-height: 1.5; }
.eenheid-spronglinks { margin-bottom: 2rem; padding: 1rem 1.25rem; background: #f8fafc; border-radius: 10px; border-left: 4px solid #0d9488; }
.eenheid-spronglinks ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.eenheid-spronglinks a { color: #0f766e; text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.eenheid-spronglinks a:hover { text-decoration: underline; }

/* 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; }
  .top-bar { margin: -1rem -1rem 1rem -1rem; padding: 0.85rem 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-nav-3, .bento-nav-4 { grid-template-columns: 1fr; }
  .bento-tile { min-height: 120px; padding: 1rem; }
  .bento-tile-icon { width: 36px; height: 36px; }
  .bento-tile-shortcuts { margin-top: 0.6rem; padding-top: 0.6rem; gap: 0.4rem; }
  .bento-shortcut { padding: 0.5rem 0.9rem; font-size: 0.82rem; min-height: 44px; }
  .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; }
  .raakvlakken-menu { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .raakvlak-tile { min-height: 160px; padding: 1rem; }
  .raakvlak-tile-icon { width: 64px; height: 64px; }
  .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; }
  .top-bar { margin: -0.75rem -0.75rem 1rem -0.75rem; padding: 0.85rem 0.75rem; }
  .bento-nav { grid-template-columns: 1fr; }
  .bento-nav-3, .bento-nav-4 { grid-template-columns: 1fr; }
  .raakvlakken-menu { grid-template-columns: 1fr; }
  .raakvlak-tile-icon { width: 72px; height: 72px; }
  .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.85rem 1.15rem; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-radius: 10px; border: 1px solid #e2e8f0; font-size: 0.9rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.subpage-nav .subnav-link { color: #2c5282; text-decoration: none; transition: color 0.2s; }
.subpage-nav .subnav-link:hover { color: #1e40af; text-decoration: underline; }
.subpage-nav .subnav-overzicht { font-weight: 600; }
.subpage-nav .subnav-current { color: #64748b; font-weight: 500; }
