/* Herbruikbare componenten (CONTEXT.md 8.3a en 8.7). */

.wke-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wke-icon--coral { color: var(--wke-coral); }

/* ---------- Knoppen ---------- */
.wke-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 11px 16px; border: 0; border-radius: var(--wke-r-10);
	font: 600 15px/1.2 var(--wke-font-body); text-decoration: none; cursor: pointer;
	transition: background-color var(--wke-ease), box-shadow var(--wke-ease), color var(--wke-ease);
	-webkit-tap-highlight-color: transparent;
}
.wke-btn--primary { background: var(--wke-petrol); color: #FFFFFF; }
.wke-btn--primary:hover { background: var(--wke-petrol-hover); }
.wke-btn--primary:active { background: var(--wke-petrol-dark); }
.wke-btn--ghost { background: transparent; color: var(--wke-petrol); box-shadow: inset 0 0 0 1.5px var(--wke-line); }
.wke-btn--ghost:hover { background: var(--wke-tint); }
.wke-btn--ghost:active { background: var(--wke-line); }
.wke-btn--block { width: 100%; padding-block: 15px; }
.wke-btn--icon { width: 44px; padding: 0; }
.wke-btn[disabled], .wke-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.wke-btn--text { background: none; color: var(--wke-petrol); padding-inline: 4px; }
.wke-btn--text:hover { text-decoration: underline; text-underline-offset: 4px; }

.wke-link { color: var(--wke-petrol); font-weight: 600; text-decoration: none; }
.wke-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.wke-actions { display: flex; flex-wrap: wrap; gap: var(--wke-space-3); }

/* ---------- Pill, tag, chips ---------- */
.wke-pill {
	display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
	padding: 6px 12px 6px 6px; border: 1px solid var(--wke-line); border-radius: var(--wke-r-pill);
	background: var(--wke-surface); color: var(--wke-petrol); font: 600 13px/1.3 var(--wke-font-body);
}
.wke-pill__q {
	display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
	background: var(--wke-petrol); color: var(--wke-mint); font: 800 13px/1 var(--wke-font-display);
}
.wke-tag {
	display: inline-flex; align-items: center; padding: 5px 9px; border-radius: var(--wke-r-pill);
	background: var(--wke-text); color: #FFFFFF; font: 500 10.5px/1 var(--wke-font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.wke-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--wke-r-pill);
	background: var(--wke-bg); color: var(--wke-muted); font: 600 12px/1.4 var(--wke-font-body); white-space: nowrap;
}
.wke-chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wke-coral); }
.wke-chip--cat { gap: 8px; padding: 4px 10px 4px 4px; color: var(--wke-text); background: var(--wke-surface); box-shadow: inset 0 0 0 1px var(--wke-line); }
.wke-distance {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--wke-r-8);
	background: var(--wke-bg); color: var(--wke-petrol); font: 500 12px/1.3 var(--wke-font-mono); white-space: nowrap;
}

/* Categorie-icoonvlak */
.wke-cat-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--wke-r-10); }
.wke-cat-icon--sm { width: 24px; height: 24px; border-radius: 7px; }
.wke-cat-icon--sm .wke-icon { width: 15px; height: 15px; }
.wke-cat--build { --c: var(--wke-cat-build); --c-tint: var(--wke-cat-build-tint); --c-icon: var(--wke-cat-build-icon); }
.wke-cat--traffic { --c: var(--wke-cat-traffic); --c-tint: var(--wke-cat-traffic-tint); --c-icon: var(--wke-cat-traffic-icon); }
.wke-cat--nature { --c: var(--wke-cat-nature); --c-tint: var(--wke-cat-nature-tint); --c-icon: var(--wke-cat-nature-icon); }
.wke-cat--water { --c: var(--wke-cat-water); --c-tint: var(--wke-cat-water-tint); --c-icon: var(--wke-cat-water-icon); }
.wke-cat-icon { background: var(--c-tint, var(--wke-tint)); color: var(--c-icon, var(--wke-petrol)); }

/* ---------- Meldingen (8.3) ---------- */
.wke-msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--wke-r-14); font-size: 14px; line-height: 1.45; }
.wke-msg .wke-icon { margin-top: 1px; }
.wke-msg--info { background: var(--wke-info-bg); color: var(--wke-info-fg); }
.wke-msg--success { background: var(--wke-success-bg); color: var(--wke-success-fg); }
.wke-msg--warning { background: var(--wke-warning-bg); color: var(--wke-warning-fg); }
.wke-msg--error { background: var(--wke-error-bg); color: var(--wke-error-fg); }
.wke-msg__body { display: grid; gap: 8px; }
.wke-msg__body .wke-btn { justify-self: start; }

.wke-demo-banner {
	padding: 8px var(--wke-gutter); background: var(--wke-info-bg); color: var(--wke-info-fg);
	font: 500 11px/1.4 var(--wke-font-mono); letter-spacing: .06em; text-transform: uppercase; text-align: center;
	margin: 0 0 var(--wke-space-6);
}
.wke-view > .wke-demo-banner { margin-top: calc(-1 * var(--wke-space-6)); }
@media (min-width: 1024px) { .wke-view > .wke-demo-banner { margin-top: calc(-1 * var(--wke-space-8)); } }

/* Real Data Beta: rustige indicatie, geen waarschuwing */
.wke-beta-banner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
	padding: 8px var(--wke-gutter); background: var(--wke-petrol); color: #FFFFFF; font-size: 13px; line-height: 1.4; text-align: center;
}
.wke-beta-banner__label { font: 500 11px/1.4 var(--wke-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--wke-mint); }
.wke-beta-banner__logout { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.wke-beta-banner :focus-visible { outline-color: var(--wke-mint); }
.wke-official { font-family: var(--wke-font-mono); font-size: 14px !important; line-height: 1.6; background: var(--wke-surface); border: 1px solid var(--wke-line); border-left: 3px solid var(--wke-petrol); border-radius: var(--wke-r-10); padding: 12px 14px; overflow-wrap: anywhere; }

/* ---------- Adreslabel ---------- */
.wke-address {
	display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
	padding: 9px 12px; border-radius: var(--wke-r-10); background: var(--wke-surface);
	color: var(--wke-petrol); font: 500 13px/1.35 var(--wke-font-mono);
	box-shadow: inset 0 0 0 1px var(--wke-line);
}
.wke-address span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Cards ---------- */
.wke-card {
	background: var(--wke-surface); border: 1px solid var(--wke-line); border-radius: var(--wke-r-20);
	padding: var(--wke-space-5); box-shadow: var(--wke-shadow-card); display: grid; gap: var(--wke-space-5);
}
@media (min-width: 768px) { .wke-card { padding: var(--wke-space-6); } }
.wke-card__title { font-size: 22px; line-height: 1.1; letter-spacing: -.035em; }
.wke-label { font: 600 13px/1.3 var(--wke-font-body); color: var(--wke-text); }
.wke-eyebrow { font: 500 11px/1.3 var(--wke-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--wke-muted); }

/* Telling-tegels */
.wke-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wke-space-2); }
.wke-count { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 14px; border: 1px solid var(--wke-line); border-radius: var(--wke-r-14); }
.wke-count .wke-cat-icon { grid-row: span 2; }
.wke-count__num { font: 800 26px/1 var(--wke-font-display); font-variant-numeric: tabular-nums; }
.wke-count__label { font-size: 12.5px; color: var(--wke-muted); line-height: 1.3; min-width: 0; hyphens: auto; }
@media (max-width: 420px) {
	.wke-count { padding: 12px; gap: 8px 10px; }
	.wke-count .wke-cat-icon { grid-row: auto; width: 32px; height: 32px; }
	.wke-count__label { grid-column: 1 / -1; }
}
.wke-counts > .wke-count:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Impactmeter */
.wke-impact { display: grid; gap: 8px; }
.wke-impact__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wke-impact__value { font: 500 12.5px/1.3 var(--wke-font-mono); color: var(--wke-muted); }
.wke-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.wke-meter i { height: 8px; border-radius: var(--wke-r-4); background: var(--wke-line); }
.wke-meter i.is-on { background: var(--wke-petrol); }
.wke-meter--sm { width: 80px; gap: 3px; }
.wke-meter--sm i { height: 6px; border-radius: 3px; }
.wke-impact__note { font-size: 12.5px; color: var(--wke-muted); }
.wke-impact__why { justify-self: start; border: 0; background: none; padding: 4px 0; color: var(--wke-petrol); font: 600 13px/1.3 var(--wke-font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.wke-impact__reason { font-size: 14px; line-height: 1.5; color: var(--wke-text); background: var(--wke-bg); padding: 12px 14px; border-radius: var(--wke-r-14); }

/* "In gewone taal"-blok */
.wke-plain { display: grid; gap: 10px; }
.wke-plain__row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.5; }
.wke-plain__row code { font: 500 12px/1.4 var(--wke-font-mono); color: var(--wke-petrol); }
.wke-plain__row a { color: var(--wke-text); text-decoration: none; }
.wke-plain__row a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Ontwikkelingskaart (lijstitem) */
.wke-devcard {
	position: relative; display: grid; gap: 10px; padding: var(--wke-space-4);
	background: var(--wke-surface); border: 1px solid var(--wke-line); border-radius: var(--wke-r-14);
	color: var(--wke-text); text-decoration: none; transition: border-color var(--wke-ease), background-color var(--wke-ease);
}
.wke-devcard:hover, .wke-devcard.is-highlight { border-color: var(--wke-petrol); }
.wke-devcard:active { background: var(--wke-bg); }
.wke-devcard:focus-visible { outline: 2px solid var(--wke-petrol); outline-offset: 2px; }
.wke-devcard__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.wke-devcard__title { font: 700 17px/1.2 var(--wke-font-display); letter-spacing: -.02em; }
.wke-devcard__sub { font-size: 13px; color: var(--wke-muted); margin-top: 2px; }
.wke-devcard__chev { color: var(--wke-muted); }
.wke-devcard__meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; color: var(--wke-muted); }
.wke-devcard__meaning { font-size: 14px; line-height: 1.5; }
.wke-devcard__meaning strong { font-weight: 600; }
.wke-devcard__impact { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--wke-font-mono); color: var(--wke-muted); }

/* ---------- Skeleton ---------- */
.wke-skel { display: block; background: linear-gradient(90deg, var(--wke-tint) 0%, #EEF3F1 50%, var(--wke-tint) 100%); background-size: 200% 100%; border-radius: var(--wke-r-10); animation: wke-shimmer 1.4s linear infinite; }
.wke-skel--chip { width: 140px; height: 26px; border-radius: var(--wke-r-pill); }
.wke-skel--title { width: min(520px, 90%); height: 40px; }
.wke-skel--line { width: min(360px, 70%); height: 18px; }
.wke-skel--block { width: 100%; height: 220px; border-radius: var(--wke-r-20); }
.wke-skel--tile { height: 68px; border-radius: var(--wke-r-14); }
.wke-skeleton-page { display: grid; gap: var(--wke-space-4); padding-block: var(--wke-space-8); }
@keyframes wke-shimmer { to { background-position: -200% 0; } }
