/* ── NL Demographics Map — Koningsdag Theme ──────────────────── */

:root {
    /* Base palette — neutral dark (lets orange accents breathe) */
    --bg-primary: #0E0E0E;
    --bg-secondary: #151515;
    --bg-card: #1C1C1C;
    --bg-card-hover: #252525;
    --border: #2E2E2E;
    --border-focus: #454545;

    /* Text — slightly warm for thematic connection */
    --text-primary: #E8E2DA;
    --text-secondary: #9A9088;
    --text-muted: #6A6058;

    /* Accent — Koningsdag oranje */
    --accent: #FF6B00;
    --accent-hover: #FF8C3A;
    --accent-muted: rgba(255, 107, 0, 0.15);
    --accent-text: #FFB366;

    /* Status */
    --positive: #5AC878;
    --negative: #F87171;
    --color-give: #5AC878;
    --color-take: #F87171;

    /* Fonts */
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* ── Reset ─────────────────────────────────────────────────────── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ────────────────────────────────────────────────────── */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: #FF6B00;
    border-bottom: none;
    height: 64px;
    z-index: 1000;
    position: relative;
}

/* Dutch flag stripe at the very top */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #AE1C28 33.33%, #FFFFFF 33.33% 66.66%, #21468B 66.66%);
    z-index: 10;
}

.header__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #FFFFFF;
}

.header__accent {
    color: #FFFFFF;
    font-weight: 300;
}

.header__subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1px;
}

.header__controls {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

/* Controls in the orange header — solid dark selects for crisp contrast */
.header .control-label {
    color: rgba(255, 255, 255, 0.85);
}

.header .select {
    background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23B09070' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center;
    border-color: var(--border);
    color: var(--text-primary);
}

.header .select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-muted);
}

.header .label-hint {
    color: rgba(255, 255, 255, 0.5);
}

/* ── Tab Bar ──────────────────────────────────────────────────── */

.tab-bar {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.tab-bar__tab {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.tab-bar__tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-bar__tab--active {
    background: var(--accent);
    color: #000;
    font-weight: 600;
}

/* ── Main layout ───────────────────────────────────────────────── */

.main {
    display: flex;
    flex: 1;
    min-height: 0;
    transition: opacity 300ms ease;
}

.panel--map {
    flex: 1;
    position: relative;
    min-width: 0;
}

.panel--side {
    width: 480px;
    min-width: 480px;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    border-left: 1px solid var(--border);
    background: var(--bg-secondary);

    /* Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.panel--side::-webkit-scrollbar {
    width: 6px;
}

.panel--side::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ── Analysis panel (replaces sidebar on analysis tabs) ───────── */

.panel--analysis {
    flex: 0 0 65%;
    min-width: 0;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    border-left: 1px solid var(--border);
    background: var(--bg-secondary);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.panel--analysis::-webkit-scrollbar { width: 6px; }
.panel--analysis::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Layout mode: analysis tabs shrink map to 35% */
.main--analysis-mode .panel--map {
    flex: 0 0 35%;
    max-width: 35%;
    transition: flex 0.3s ease, max-width 0.3s ease;
}

/* ── Map ───────────────────────────────────────────────────────── */

.map {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

/* Override Leaflet tiles for dark theme */
.leaflet-container {
    background: var(--bg-primary) !important;
    font-family: var(--font-body) !important;
}

.leaflet-control-zoom a {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--bg-card-hover) !important;
}

.leaflet-control-attribution {
    background: rgba(14, 14, 14, 0.85) !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: var(--text-secondary) !important;
}

/* ── Legend ─────────────────────────────────────────────────────── */

.legend {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    z-index: 800;
    min-width: 180px;
    max-height: calc(100% - 2 * var(--space-lg));
    overflow-y: auto;
    display: none;
}

.legend.active {
    display: block;
}

.legend__title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.legend__items {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.legend__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-primary);
}

.legend__swatch {
    width: 20px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Bivariate legend (3×3 grid) ──────────────────────────────── */

.legend--bivariate {
    min-width: auto;
    padding: var(--space-md);
}

.legend__bivariate-grid {
    display: grid;
    grid-template-columns: auto repeat(3, 28px);
    grid-template-rows: repeat(3, 28px) auto;
    gap: 2px;
    align-items: center;
    justify-items: center;
}

.legend__bivariate-cell {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    border: 1px solid rgba(46, 46, 46, 0.5);
}

.legend__bivariate-axis-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    white-space: nowrap;
}

.legend__bivariate-axis-label--y {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    grid-row: 1 / 4;
    grid-column: 1;
    padding-right: 4px;
}

.legend__bivariate-axis-label--x {
    grid-column: 2 / 5;
    padding-top: 4px;
    text-align: center;
}

.legend__bivariate-arrow {
    font-size: 0.55rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ── Bivariate explainer ─────────────────────────────────────── */

.bivariate-explainer {
    position: absolute;
    bottom: var(--space-lg);
    left: 180px;
    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    z-index: 800;
    max-width: 320px;
    display: none;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.bivariate-explainer.active {
    display: block;
}

.bivariate-explainer__title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.bivariate-explainer p {
    margin-bottom: var(--space-sm);
}

.bivariate-explainer strong {
    color: var(--text-primary);
    font-weight: 600;
}

.bivariate-explainer__guide {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: var(--space-sm) 0;
}

.bivariate-explainer__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.bivariate-explainer__swatch {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(46, 46, 46, 0.5);
}

.bivariate-explainer__note {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--space-sm);
    margin-bottom: 0 !important;
}

.label-hint {
    font-weight: 400;
    opacity: 0.6;
}

/* ── Tooltip ───────────────────────────────────────────────────── */

.map-tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 900;
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.15s ease;
    max-width: 280px;
    white-space: nowrap;
}

.map-tooltip.visible {
    opacity: 1;
}

.map-tooltip__name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.map-tooltip__gemeente {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.map-tooltip__value {
    color: var(--accent-text);
    font-weight: 500;
}

.map-tooltip__value--b {
    color: #8bb8d0;
}

/* ── Cards ─────────────────────────────────────────────────────── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

/* Dutch tricolor accent at top of each sidebar card */
.panel--side .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #AE1C28 33.33%, #FFFFFF 33.33% 66.66%, #21468B 66.66%);
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.card__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card__controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

/* ── Form controls ─────────────────────────────────────────────── */

.control-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.control-group--inline {
    flex: 1;
    min-width: 120px;
}

.control-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.select {
    appearance: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 28px 6px 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s;

    /* Custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23B09070' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-muted);
}

.select--sm {
    padding: 5px 24px 5px 8px;
    font-size: 0.75rem;
}

.select optgroup {
    font-weight: 600;
    color: var(--text-secondary);
}

.select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    padding-top: 14px;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
}

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s;
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn--ghost:hover {
    background: var(--accent-muted);
    color: var(--accent);
}

/* ── Badge ─────────────────────────────────────────────────────── */

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    background: var(--accent-muted);
    color: var(--accent-text);
    display: none;
}

.badge.active {
    display: inline-block;
}

/* ── Chart containers ──────────────────────────────────────────── */

.chart {
    width: 100%;
    height: 360px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.chart--analysis {
    height: 180px;
}

.chart--comparison {
    height: 320px;
    display: none;
}

.chart--comparison.active {
    display: block;
}

/* ── Analysis card ────────────────────────────────────────────── */

.analysis-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.analysis-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    background: rgba(28, 28, 28, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.analysis-stat__value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.analysis-stat__value--crime { color: #D42A36; }
.analysis-stat__value--benefit { color: #2D5FA0; }
.analysis-stat__value--r { color: var(--accent); font-size: 1rem; }

.analysis-stat__label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.analysis-note {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-xs);
}

/* ── Filter status ─────────────────────────────────────────────── */

.filter-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    padding-top: var(--space-xs);
}

.comparison-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: var(--space-md) 0;
}

/* ── Loading ───────────────────────────────────────────────────── */

.loading {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Highlighted wijk on map ───────────────────────────────────── */

.wijk-highlight {
    stroke: var(--accent) !important;
    stroke-width: 3 !important;
    stroke-opacity: 1 !important;
}

/* ── Plotly dark overrides ─────────────────────────────────────── */

.js-plotly-plot .plotly .modebar {
    top: 4px !important;
    right: 4px !important;
}

.js-plotly-plot .plotly .modebar-btn {
    font-size: 14px !important;
}

/* ── De Rekening ──────────────────────────────────────────────── */

.rekening__header { text-align: center; margin-bottom: var(--space-lg); }
.rekening__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.rekening__subtitle { color: var(--text-muted); font-size: 0.85rem; margin-top: var(--space-xs); }

.rekening__section { margin-bottom: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--border); }
.rekening__section:last-of-type { border-bottom: none; }

.rekening__section-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-md); }
.rekening__section-title--crime { color: #D42A36; }
.rekening__section-title--benefit { color: #2D5FA0; }
.rekening__section-title--healthcare { color: #3A8F6E; }
.rekening__section-title--bijstand { color: var(--accent); }
.rekening__section-title--asiel { color: #B8860B; }

.rekening__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }

.rekening__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.rekening__big-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.rekening__big-number--crime { color: #D42A36; }
.rekening__big-number--benefit { color: #2D5FA0; }
.rekening__big-number--healthcare { color: #3A8F6E; }
.rekening__big-number--bijstand { color: var(--accent); }
.rekening__big-number--asiel { color: #B8860B; }

.rekening__pct {
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 2px;
}
.rekening__pct--crime { color: #D42A36; }
.rekening__pct--benefit { color: #2D5FA0; }
.rekening__pct--bijstand { color: var(--accent); }
.rekening__pct--healthcare { color: #3A8F6E; }

.rekening__label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rekening__context {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: var(--space-sm) var(--space-md);
    background: rgba(212, 42, 54, 0.06);
    border-left: 3px solid #D42A36;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.rekening__context strong { color: #D42A36; }

.rekening__breakdown {
    display: flex;
    gap: var(--space-sm);
}

.rekening__breakdown-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.rekening__breakdown-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }
.rekening__breakdown-value { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #2D5FA0; margin-top: 2px; }

/* ── Rekening: totale rekening ──────────────────────────────────── */

.rekening__total {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(212, 42, 54, 0.08), rgba(255, 107, 0, 0.10));
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    text-align: center;
}

.rekening__total-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-text);
    margin-bottom: var(--space-sm);
}

.rekening__total-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.rekening__total-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.rekening__total-caveat {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ── Rekening: relatable section ────────────────────────────────── */

.rekening__relatable {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.rekening__relatable-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rekening__relatable-hero {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: rgba(255, 107, 0, 0.06);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.rekening__relatable-hero-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.rekening__relatable-hero-label {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-top: var(--space-xs);
    font-weight: 500;
}

.rekening__relatable-hero-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.rekening__relatable-clock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.rekening__relatable-clock-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.rekening__relatable-clock-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rekening__relatable-clock-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.rekening__relatable-subtitle {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.rekening__relatable-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.rekening__relatable-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-md) var(--space-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.rekening__relatable-icon { font-size: 1.5rem; }

.rekening__relatable-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rekening__relatable-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.rekening__relatable-budgets {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.rekening__relatable-budget {
    position: relative;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.rekening__relatable-budget-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(212, 42, 54, 0.12);
    border-radius: var(--radius-sm);
    transition: width 0.8s ease;
}

.rekening__relatable-budget-bar--alt {
    background: rgba(45, 95, 160, 0.12);
}

.rekening__relatable-budget-label {
    position: relative;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Budget comparison rows ──────────────────────────────────── */

.rekening__budget-compare {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.rekening__budget-compare-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.rekening__budget-compare-ref {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.rekening__budget-compare-ref-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.rekening__budget-compare-ref-amount {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.rekening__budget-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-sm);
}

.rekening__budget-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rekening__budget-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
}

.rekening__budget-amount {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.rekening__budget-track {
    height: 22px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.rekening__budget-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 42, 54, 0.25), rgba(212, 42, 54, 0.15));
    border-radius: var(--radius-sm);
    transition: width 0.8s ease;
}

.rekening__budget-mult {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: #D42A36;
    white-space: nowrap;
    min-width: 55px;
    text-align: right;
}

.rekening__budget-compare-note {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-top: var(--space-lg);
    line-height: 1.5;
    padding: var(--space-md);
    background: rgba(255, 107, 0, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
}

.rekening__budget-compare-note strong {
    color: var(--accent-text);
}

.rekening__budget-compare-source {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* ── Methodology (shared) ─────────────────────────────────────── */

.methodology { margin-top: var(--space-lg); }

.methodology__toggle {
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-sm) 0;
}

.methodology__toggle:hover { color: var(--text-secondary); }

.methodology__content {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.methodology__content h4 { color: var(--text-primary); font-size: 0.85rem; margin: var(--space-md) 0 var(--space-xs); }
.methodology__content h4:first-child { margin-top: 0; }
.methodology__content ul { margin-left: 16px; margin-bottom: var(--space-sm); }
.methodology__content li { margin-bottom: 4px; }
.methodology__content a { color: var(--accent-text); text-decoration: underline; }
.methodology__content a:hover { color: var(--accent); }

/* ── Impact Teller ────────────────────────────────────────────── */

.teller__header { text-align: center; margin-bottom: var(--space-lg); }
.teller__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.teller__subtitle { color: var(--text-muted); font-size: 0.85rem; margin-top: var(--space-xs); }

.teller__filter { margin-bottom: var(--space-lg); }

.teller__section { margin-bottom: var(--space-lg); }
.teller__section-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-md); }

.teller__bar-group { margin-bottom: var(--space-sm); }
.teller__bar-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }

.teller__bar {
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 var(--space-sm);
    margin-bottom: var(--space-sm);
    transition: width 0.6s ease;
    min-width: 60px;
}

.teller__bar--crime { background: rgba(212, 42, 54, 0.2); }
.teller__bar--benefit { background: rgba(45, 95, 160, 0.2); }
.teller__bar--expected { background: rgba(90, 200, 120, 0.15); }

.teller__bar-value { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.teller__bar--crime .teller__bar-value { color: #D42A36; }
.teller__bar--benefit .teller__bar-value { color: #2D5FA0; }
.teller__bar--expected .teller__bar-value { color: #5AC878; }

.teller__difference {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
}

.teller__difference--crime { color: #D42A36; background: rgba(212, 42, 54, 0.08); }
.teller__difference--benefit { color: #2D5FA0; background: rgba(45, 95, 160, 0.08); }

.teller__breakdown { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.teller__breakdown-item { flex: 1; display: flex; flex-direction: column; align-items: center; padding: var(--space-sm); background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.teller__breakdown-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }
.teller__breakdown-value { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #2D5FA0; margin-top: 2px; }

.teller__summary { font-size: 0.82rem; color: var(--text-muted); text-align: center; }

/* ── Woningtekort housing section ─────────────────────────────── */

.teller__housing { padding: 1rem 0; }
.teller__housing-comparison { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.teller__housing-side { flex: 1; text-align: center; background: var(--bg-secondary); border-radius: var(--radius-md); padding: 1rem 0.75rem; }
.teller__housing-side--immigrant { border: 2px solid #E8A735; }
.teller__housing-side-label { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.teller__housing-side-number { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.teller__housing-side--immigrant .teller__housing-side-number { color: #E8A735; }
.teller__housing-side-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }
.teller__housing-vs { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.teller__housing-punchline { font-size: 0.9rem; color: var(--text-primary); line-height: 1.5; margin-bottom: 0.75rem; }
.teller__housing-punchline strong { color: #E8A735; }
.teller__housing-explanation { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

.teller__poverty { text-align: center; padding: 1rem 0; }
.teller__poverty-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: #E87D3E; line-height: 1.1; }
.teller__poverty-subtitle { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--text-secondary); margin-top: 0.25rem; }
.teller__poverty-cost { font-size: 0.95rem; color: var(--text-primary); margin-top: 0.75rem; line-height: 1.5; }
.teller__poverty-cost strong { color: #E87D3E; font-size: 1.1rem; }
.teller__poverty-closer { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--accent); margin-top: 0.75rem; font-style: italic; }

/* World-scale comparison */
.teller__section--hero { border-top: 2px solid var(--accent); padding-top: 1.5rem; }
.teller__worldscale { text-align: center; padding: 1rem 0; }
.teller__worldscale-beat { margin-bottom: 1.5rem; }
.teller__worldscale-number { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: #E87D3E; line-height: 1.1; }
.teller__worldscale-label { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--text-secondary); margin-top: 0.25rem; }
.teller__worldscale-global { font-size: 1rem; color: var(--text-secondary); margin-top: 0.25rem; }
.teller__worldscale-opportunity { margin: 1.5rem 0; padding: 1.25rem; background: var(--bg-secondary); border-radius: var(--radius-md); border-left: 3px solid #5AC878; }
.teller__worldscale-opportunity-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.75rem; }
.teller__worldscale-opportunity-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.5rem; }
.teller__worldscale-opportunity-text:last-child { margin-bottom: 0; }
.teller__worldscale-opportunity-text strong { color: #E87D3E; }
.teller__worldscale-closer { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--accent); margin-top: 1.25rem; font-style: italic; }
.teller__worldscale-kicker { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; }

/* Futility section */
.teller__futility { margin-bottom: 2rem; }
.teller__futility-headline { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); text-align: center; margin-bottom: 1.25rem; }
.teller__futility-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.teller__futility-card { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 1.25rem 1rem; text-align: center; border-top: 3px solid var(--accent); }
.teller__futility-pct { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: #E87D3E; line-height: 1.1; }
.teller__futility-desc { font-size: 0.85rem; color: var(--text-primary); margin-top: 0.5rem; line-height: 1.4; }
.teller__futility-detail { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.3; }
.teller__futility-closer { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text-primary); text-align: center; margin-top: 1.25rem; line-height: 1.4; }
@media (max-width: 900px) { .teller__futility-cards { grid-template-columns: 1fr; } }

/* ── De Toekomst ─────────────────────────────────────────────── */

.toekomst { max-width: 800px; margin: 0 auto; padding: var(--space-lg); }
.toekomst__header { text-align: center; margin-bottom: var(--space-lg); }
.toekomst__title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.toekomst__subtitle { color: var(--text-secondary); margin-top: 0.25rem; }

.toekomst__section { margin-bottom: 2.5rem; }
.toekomst__section-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #E87D3E; margin-bottom: 1rem; }
.toekomst__intro { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.5; }
.toekomst__chart { width: 100%; min-height: 300px; margin-bottom: 1.5rem; }

/* Milestone cards */
.toekomst__milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 1rem; }
.toekomst__milestone { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 1rem; text-align: center; border-top: 3px solid var(--border); transition: border-color 0.2s; }
.toekomst__milestone:last-child { border-color: var(--accent); }
.toekomst__milestone-year { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.toekomst__milestone-pct { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #E87D3E; line-height: 1.1; }
.toekomst__milestone-label { font-size: 0.75rem; color: var(--text-secondary); }
.toekomst__milestone-detail { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }
@media (max-width: 700px) { .toekomst__milestones { grid-template-columns: repeat(2, 1fr); } }

/* Extrapolation section */
.toekomst__section--extrapolation { border-top: 2px solid var(--accent); padding-top: 1.5rem; }
.toekomst__disclaimer { font-size: 0.8rem; color: var(--text-muted); background: var(--bg-secondary); border-radius: var(--radius-md); padding: 0.75rem 1rem; margin-bottom: 1.5rem; border-left: 3px solid var(--accent); font-style: italic; }

/* Cost projection table */
.toekomst__cost { margin-bottom: 2rem; }
.toekomst__cost-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }
.toekomst__cost-intro { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.toekomst__inflation-note { color: #E87D3E; }
.toekomst__cost-table { background: var(--bg-secondary); border-radius: var(--radius-md); overflow: hidden; }
.toekomst__row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 0.6rem 1rem; font-size: 0.85rem; }
.toekomst__row + .toekomst__row { border-top: 1px solid var(--border); }
.toekomst__row--header { font-weight: 600; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(0,0,0,0.2); }
.toekomst__row--current { background: rgba(232, 125, 62, 0.1); }
.toekomst__row-year { color: var(--text-secondary); }
.toekomst__row-cost { color: var(--text-primary); font-weight: 600; text-align: right; }
.toekomst__row-month { color: #E87D3E; font-weight: 700; text-align: right; }
.toekomst__cost-highlight { font-size: 0.9rem; color: var(--text-primary); margin-top: 1rem; padding: 1rem; background: var(--bg-secondary); border-radius: var(--radius-md); line-height: 1.5; }
.toekomst__cost-highlight strong { color: #E87D3E; }
.toekomst__cost-consequence { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.75rem; padding: 0.75rem 1rem; border-left: 3px solid #E87D3E; line-height: 1.5; }

/* Crime projection */
/* Approach explanation */
.toekomst__approach { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1.5rem; border-left: 3px solid #5AC878; }
.toekomst__approach-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.toekomst__approach-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.5rem; }
.toekomst__approach-text:last-child { margin-bottom: 0; }
.toekomst__approach-text strong { color: var(--text-primary); }

/* Crime section + dose-response bars */
.toekomst__crime { margin-bottom: 2rem; }
.toekomst__crime-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.75rem; }
.toekomst__crime-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; margin-top: 1rem; }
.toekomst__crime-text strong { color: #E87D3E; }

.toekomst__dose-response { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.toekomst__dose-item { margin-bottom: 0.75rem; }
.toekomst__dose-item:last-of-type { margin-bottom: 0; }
.toekomst__dose-label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.toekomst__dose-tag { display: inline-block; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.1rem 0.4rem; border-radius: 3px; margin-left: 0.3rem; vertical-align: middle; }
.toekomst__dose-item--current .toekomst__dose-tag { background: rgba(232, 125, 62, 0.2); color: #E87D3E; }
.toekomst__dose-item--future .toekomst__dose-tag { background: rgba(239, 68, 68, 0.2); color: #EF4444; }
.toekomst__dose-bar-wrap { display: flex; align-items: center; gap: 0.5rem; }
.toekomst__dose-bar { height: 22px; border-radius: 3px; background: #6A6058; transition: width 0.6s ease; min-width: 4px; }
.toekomst__dose-bar--current { background: #E87D3E; }
.toekomst__dose-bar--future { background: #EF4444; }
.toekomst__dose-value { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.toekomst__dose-unit { font-size: 0.7rem; color: var(--text-muted); text-align: right; margin-top: 0.5rem; }

/* Conclusion / spiral */
.toekomst__conclusion { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 1.5rem; border-top: 3px solid var(--accent); }
.toekomst__conclusion-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--accent); text-align: center; margin-bottom: 1rem; }
.toekomst__conclusion-steps { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.toekomst__step { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-primary); background: var(--bg-card); padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); }
.toekomst__step-icon { font-size: 1.1rem; }
.toekomst__step-arrow { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.toekomst__conclusion-closer { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--text-primary); text-align: center; line-height: 1.5; }
.toekomst__conclusion-moral { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--accent); text-align: center; margin-top: 1rem; font-style: italic; line-height: 1.4; }

/* ── Vergelijker ──────────────────────────────────────────────── */

.vergelijker__header { text-align: center; margin-bottom: var(--space-lg); }
.vergelijker__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

.vergelijker__archetypes { display: flex; gap: var(--space-md); margin-bottom: var(--space-lg); }

.vergelijker__archetype {
    flex: 1;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
}
.vergelijker__archetype--low { background: rgba(90, 200, 120, 0.08); border: 1px solid rgba(90, 200, 120, 0.2); }
.vergelijker__archetype--high { background: rgba(212, 42, 54, 0.08); border: 1px solid rgba(212, 42, 54, 0.2); }

.vergelijker__archetype-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin-bottom: var(--space-sm); }
.vergelijker__archetype--low .vergelijker__archetype-title { color: #5AC878; }
.vergelijker__archetype--high .vergelijker__archetype-title { color: #D42A36; }

.vergelijker__archetype-stat { font-size: 0.82rem; color: var(--text-secondary); margin: 2px 0; }

.vergelijker__chart-section { margin-bottom: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--border); }
.vergelijker__chart-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-bottom: var(--space-sm); color: var(--text-primary); }
.vergelijker__chart-legend { display: flex; gap: var(--space-md); justify-content: center; margin-bottom: var(--space-sm); }
.vergelijker__chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-primary); }
.vergelijker__chart-legend-color { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.vergelijker__chart { width: 100%; height: 300px; }

.vergelijker__slider-section { margin-bottom: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--border); }
.vergelijker__slider-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: var(--space-sm); }

.vergelijker__slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}
.vergelijker__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

.vergelijker__slider-value {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin: var(--space-sm) 0 var(--space-md);
}

.vergelijker__slider-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-sm); }

.vergelijker__slider-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.vergelijker__slider-stat-value { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.vergelijker__slider-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }

.vergelijker__picker { margin-top: var(--space-md); }
.vergelijker__picker-toggle { background: none; border: 1px solid var(--border); color: var(--text-secondary); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; width: 100%; font-family: var(--font-body); }
.vergelijker__picker-toggle:hover { border-color: var(--accent); color: var(--accent); }

.vergelijker__picker-content { margin-top: var(--space-md); }

.vergelijker__search {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
}
.vergelijker__search:focus { border-color: var(--accent); }
.vergelijker__search::placeholder { color: var(--text-muted); }

.vergelijker__suggestions {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 2px;
    max-height: 200px;
    overflow-y: auto;
}
.vergelijker__suggestion {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--text-secondary);
}
.vergelijker__suggestion:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.vergelijker__wijk-comparison { display: flex; gap: var(--space-md); margin-top: var(--space-md); }
.vergelijker__wijk-card {
    flex: 1;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.vergelijker__wijk-card-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin-bottom: var(--space-sm); }
.vergelijker__wijk-card-stat { font-size: 0.82rem; color: var(--text-secondary); margin: 2px 0; display: flex; justify-content: space-between; }
.vergelijker__wijk-card-stat-value { font-weight: 600; color: var(--text-primary); }

/* ── AZC markers ─────────────────────────────────────────────────── */
.azc-tooltip {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--accent) !important;
    font-family: var(--font-body);
    font-size: 0.78rem;
    padding: 4px 8px !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.azc-tooltip::before { border-top-color: var(--accent) !important; }

/* ── AZC section in De Rekening ──────────────────────────────── */

.rekening__section-title--azc { color: #E04530; }


.azc-section__intro {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.azc-section__highlight {
    background: rgba(224, 69, 48, 0.1);
    border-left: 3px solid #E04530;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.88rem;
    color: var(--text-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.azc-table__wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-md);
}

.azc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-family: var(--font-body);
}

.azc-table__th {
    text-align: right;
    padding: var(--space-xs) var(--space-sm);
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.azc-table__th:first-child { text-align: left; }

.azc-table__tr:not(:last-child) .azc-table__td {
    border-bottom: 1px solid var(--border);
}

.azc-table__td {
    padding: var(--space-sm);
    text-align: right;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}
.azc-table__td--label {
    text-align: left;
    font-weight: 600;
    color: var(--accent-text);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.azc-table__count {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Highlight first row (nearest) */
.azc-table__tr:first-child .azc-table__td {
    color: #E04530;
    font-weight: 600;
}

/* ── Feedback ─────────────────────────────────────────────────── */
.feedback__title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.feedback__form {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-end;
}

.feedback__input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: var(--space-sm) var(--space-md);
    resize: vertical;
    min-height: 40px;
    transition: border-color 0.2s;
}
.feedback__input:focus {
    outline: none;
    border-color: var(--accent);
}
.feedback__input::placeholder { color: var(--text-muted); }

.feedback__submit {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: var(--space-sm) var(--space-lg);
    cursor: pointer;
    white-space: nowrap;
    height: 40px;
    transition: background 0.2s;
}
.feedback__submit:hover { background: var(--accent-hover); }

.feedback__status {
    font-size: 0.78rem;
    margin-top: var(--space-sm);
    min-height: 1.2em;
}
.feedback__status--ok { color: var(--positive); }
.feedback__status--err { color: var(--negative); }

/* ── Hero impact statement ───────────────────────────────────── */

.hero {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.hero--hidden {
    display: none;
}

.hero__full {
    padding: var(--space-xl) var(--space-lg) var(--space-md);
    text-align: center;
    transition: max-height 300ms ease, opacity 300ms ease;
    overflow: hidden;
}

.hero--collapsed .hero__full {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.hero__label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.hero__number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero__subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-lg);
}

.hero__stat {
    padding: 0 var(--space-lg);
}

.hero__stat--bordered {
    border-left: 1px solid var(--border);
}

.hero__stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-take);
}

.hero__stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero__contrast {
    display: flex;
    gap: 2px;
    max-width: 520px;
    margin: 0 auto var(--space-sm);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.hero__contrast-half {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    text-align: center;
}

.hero__contrast-half--give {
    background: rgba(90, 200, 120, 0.08);
    border: 1px solid rgba(90, 200, 120, 0.2);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.hero__contrast-half--take {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hero__contrast-title {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.hero__contrast-half--give .hero__contrast-title {
    color: var(--color-give);
}

.hero__contrast-half--take .hero__contrast-title {
    color: var(--color-take);
}

.hero__contrast-items {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.hero__footer {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* Collapsed bar */
.hero__bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.hero--collapsed .hero__bar {
    display: flex;
}

.hero__bar-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero__bar-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.hero__bar-number {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.hero__bar-stat {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-take);
}

.hero__bar-toggle {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 300ms ease;
}

.hero__bar-toggle:hover {
    color: var(--text-primary);
}

/* CTA */
.hero__cta {
    border-top: 1px solid var(--border);
    padding: var(--space-sm) var(--space-lg);
    text-align: center;
    background: var(--bg-secondary);
    cursor: pointer;
}

.hero--collapsed .hero__cta {
    display: none;
}

.hero__cta-text {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.hero__cta:hover .hero__cta-text {
    text-decoration: underline;
}

/* Variable selector visibility */
.header__controls--hidden {
    display: none;
}

/* Map/sidebar dimmed in hero state (teaser behind hero content) */
.main--hero-active {
    opacity: 0.12;
    pointer-events: none;
    transition: opacity 300ms ease;
}

@media (max-width: 700px) {
    .hero__stats {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    .hero__stat--bordered {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: var(--space-sm);
    }
    .hero__contrast {
        flex-direction: column;
    }
    .hero__contrast-half--give {
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }
    .hero__contrast-half--take {
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }
    .hero__bar-stat {
        display: none;
    }
    .hero__number {
        font-size: 2.2rem;
    }
}

@media (max-width: 500px) {
    .feedback__form { flex-direction: column; }
    .feedback__submit { width: 100%; }
}

