/* Datic in cijfers — publieke data-pagina */

.ds {
	--ds-ink: #1e1a17;
	--ds-muted: #6a635c;
	--ds-foam: #f3f1ed;
	--ds-line: #e6e2dc;
	--ds-panel: #ffffff;
	--ds-accent: #2f6f4e;
	--ds-accent-soft: rgba(47, 111, 78, 0.12);
	--ds-accent-mid: rgba(47, 111, 78, 0.35);
}

.ds-wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 1.5rem 1.25rem 4rem;
}

.ds-hero .ds-updated {
	margin: 0.85rem 0 0;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.88);
	font-weight: 600;
}

.ds-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Tabs */
.ds-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.35rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding: 0.15rem 0 1.1rem;
	margin: 0 0 0.5rem;
	border-bottom: 1px solid var(--ds-line);
	position: sticky;
	top: 0;
	z-index: 5;
	background: #f7f5f1;
	padding-top: 0.35rem;
}

.ds-tabs__btn {
	flex: 0 0 auto;
	appearance: none;
	border: 1px solid transparent;
	background: transparent;
	color: var(--ds-muted);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ds-tabs__btn:hover {
	color: var(--ds-ink);
	background: rgba(30, 26, 23, 0.04);
}

.ds-tabs__btn.is-active {
	color: var(--ds-accent);
	background: var(--ds-accent-soft);
	border-color: rgba(47, 111, 78, 0.22);
}

.ds-tabs__btn:focus-visible {
	outline: 2px solid var(--ds-accent);
	outline-offset: 2px;
}

.ds-panel {
	display: none;
	animation: dsPanelIn 0.28s ease;
}

.ds-panel.is-active {
	display: block;
}

@keyframes dsPanelIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.ds-panel__title {
	font-family: var(--wg-display, Georgia, serif);
	font-size: clamp(1.55rem, 3vw, 2rem);
	color: var(--ds-ink);
	margin: 0.25rem 0 0.65rem;
}

.ds-h3 {
	font-family: var(--wg-display, Georgia, serif);
	font-size: 1.25rem;
	margin: 1.75rem 0 0.5rem;
	color: var(--ds-ink);
}

.ds-lead {
	margin: 0 0 1.15rem;
	font-size: 1.05rem;
	max-width: 40rem;
	line-height: 1.55;
	color: var(--ds-ink);
}

.ds-sublead {
	margin: 1.35rem 0 0.65rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ds-muted);
}

.ds-panel > p {
	margin: 0 0 0.75rem;
	line-height: 1.55;
}

.ds-muted {
	color: var(--ds-muted);
	font-size: 0.92rem;
}

.ds-kpis {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
	margin: 0.5rem 0 1.25rem;
}

@media (min-width: 720px) {
	.ds-kpis {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ds-kpi {
	background: var(--ds-panel);
	border: 1px solid var(--ds-line);
	border-radius: 14px;
	padding: 1rem 1.05rem 1.1rem;
}

.ds-kpi__label {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--ds-muted);
}

.ds-kpi__value {
	margin: 0.35rem 0 0;
	font-family: var(--wg-display, Georgia, serif);
	font-size: clamp(1.45rem, 3.2vw, 1.9rem);
	font-weight: 700;
	color: var(--ds-ink);
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.ds-kpi__unit {
	font-size: 0.55em;
	font-weight: 600;
	color: var(--ds-muted);
	margin-left: 0.15em;
}

/* Fact cards */
.ds-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
}

@media (min-width: 640px) {
	.ds-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ds-fact {
	background: var(--ds-foam);
	border-radius: 14px;
	padding: 1rem 1.1rem;
	border: 1px solid transparent;
}

.ds-fact--accent {
	background: var(--ds-accent-soft);
	border-color: rgba(47, 111, 78, 0.18);
}

.ds-fact__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ds-accent);
}

.ds-fact__text {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.45;
	color: var(--ds-ink);
}

.ds-chart {
	margin: 0.5rem 0 1.25rem;
	padding: 1rem;
	background: var(--ds-panel);
	border: 1px solid var(--ds-line);
	border-radius: 14px;
	position: relative;
	min-height: 220px;
}

.ds-chart canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-height: 180px;
}

.ds-chart--tall {
	min-height: 300px;
}

.ds-css-chart {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.25rem 0;
}

.ds-css-chart__row {
	display: grid;
	grid-template-columns: minmax(3.5rem, 5rem) 1fr auto;
	gap: 0.5rem;
	align-items: center;
}

.ds-css-chart__label {
	font-size: 0.78rem;
	color: var(--ds-muted);
}

.ds-css-chart__track {
	display: block;
	height: 10px;
	background: rgba(30, 26, 23, 0.06);
	border-radius: 999px;
	overflow: hidden;
}

.ds-css-chart__bar {
	display: block;
	height: 100%;
	background: #2f6f4e;
	border-radius: 999px;
	min-width: 3px;
}

.ds-css-chart__val {
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
	color: var(--ds-ink);
	font-weight: 600;
	min-width: 2.2rem;
	text-align: right;
}

/* Heatmap */
.ds-heat-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 1.5rem;
	padding: 0.85rem;
	background: var(--ds-panel);
	border: 1px solid var(--ds-line);
	border-radius: 14px;
}

.ds-heat {
	border-collapse: separate;
	border-spacing: 2px;
	width: 100%;
	min-width: 520px;
	font-size: 0.72rem;
}

.ds-heat th {
	color: var(--ds-muted);
	font-weight: 600;
	padding: 0.15rem;
	text-align: center;
}

.ds-heat th[scope="row"] {
	text-align: left;
	padding-right: 0.45rem;
	white-space: nowrap;
}

.ds-heat__cell {
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 3px;
	background: rgba(30, 26, 23, 0.05);
}

.ds-heat__cell--1 { background: rgba(47, 111, 78, 0.18); }
.ds-heat__cell--2 { background: rgba(47, 111, 78, 0.32); }
.ds-heat__cell--3 { background: rgba(47, 111, 78, 0.48); }
.ds-heat__cell--4 { background: rgba(47, 111, 78, 0.68); }
.ds-heat__cell--5 { background: #2f6f4e; }

.ds-heat__legend {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0.75rem 0 0;
	font-size: 0.78rem;
	color: var(--ds-muted);
}

.ds-heat__swatch {
	display: inline-block;
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 3px;
	vertical-align: middle;
}

.ds-details {
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
	background: var(--ds-panel);
	border: 1px solid var(--ds-line);
	border-radius: 12px;
}

.ds-details--soft {
	background: var(--ds-foam);
	border-color: transparent;
}

.ds-details--nested {
	margin-top: 0.85rem;
	background: var(--ds-foam);
	border-color: transparent;
}

.ds-details summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--ds-ink);
}

.ds-details[open] > summary {
	margin-bottom: 0.65rem;
}

.ds-method {
	margin: 0;
	padding-left: 1.15rem;
	line-height: 1.55;
}

.ds-method li {
	margin-bottom: 0.45rem;
}

.ds-faq .ds-details {
	margin-top: 0.55rem;
}

.ds-chip-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ds-chip {
	display: inline-flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.55rem 0.75rem;
	background: var(--ds-panel);
	border: 1px solid var(--ds-line);
	border-radius: 10px;
	font-size: 0.88rem;
}

.ds-chip__main {
	font-weight: 600;
	color: var(--ds-ink);
}

.ds-chip__meta {
	font-size: 0.75rem;
	color: var(--ds-muted);
}

.ds-empty {
	padding: 1.5rem 1rem;
	background: var(--ds-panel);
	border-radius: 12px;
	border: 1px dashed var(--ds-line);
	color: var(--ds-muted);
}

@media (prefers-reduced-motion: reduce) {
	.ds-panel { animation: none; }
	.ds-tabs__btn { transition: none; }
}
