/* Weer Live — zelfde look & feel als de andere weer-plugins (Weer Vorst, Weer
   Geschiedenis, Weer Klimaat Trend). Standaard de klassieke stijl: witte kaart
   op lichtgrijze achtergrond, donkere tekst, effen blauwe kopbalken.
   Zelfstandig: eigen "wlv-" klassen zodat er niets botst met andere plugins. */

.wlv-widget {
	--wlv-bg: #f3f4f6;
	--wlv-panel: #ffffff;
	--wlv-panel-alt: #eef1f5;
	--wlv-row-a: #e3e7ed;
	--wlv-row-b: #ffffff;
	--wlv-border: #c9ced6;
	--wlv-text: #1c2430;
	--wlv-text-dim: #5b6472;
	--wlv-header-bar: #1a5fa0;
	--wlv-accent: #1a5fa0;
	--wlv-accent-text: #ffffff;
	--wlv-icon: #1a5fa0;
	--wlv-flash: rgba(34, 164, 93, 0.30);

	background: var(--wlv-bg);
	color: var(--wlv-text);
	border: 1px solid var(--wlv-border);
	border-radius: 12px;
	padding: 0 0 16px;
	max-width: 1200px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
	overflow: hidden;
	line-height: 1.35;
}

.wlv-widget * {
	box-sizing: border-box;
}

/* Donkerblauwe stijl — zoals de standaardstijl van Weer Vorst / Weer Top 10. */
.wlv-widget.wlv-theme-blauw {
	--wlv-bg: #1b2230;
	--wlv-panel: #232b3d;
	--wlv-panel-alt: #2a3346;
	--wlv-row-a: #2b3550;
	--wlv-row-b: #1f2738;
	--wlv-border: #333d54;
	--wlv-text: #e9ecf2;
	--wlv-text-dim: #8b93a7;
	--wlv-header-bar: #5f8b97;
	--wlv-accent: #3fcda0;
	--wlv-accent-text: #0d2420;
	--wlv-icon: #3fcda0;
	--wlv-flash: rgba(63, 205, 160, 0.22);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* Grijze/tealkleurige stijl. */
.wlv-widget.wlv-theme-grijs {
	--wlv-bg: #3a3a3a;
	--wlv-panel: #4a4a4a;
	--wlv-panel-alt: #555555;
	--wlv-row-a: #7f7f7f;
	--wlv-row-b: #6c6c6c;
	--wlv-border: #2a2a2a;
	--wlv-text: #f2f2f2;
	--wlv-text-dim: #d0d0d0;
	--wlv-header-bar: #5f8b97;
	--wlv-accent: #c3d426;
	--wlv-accent-text: #1c2400;
	--wlv-icon: #e8e8e8;
	--wlv-flash: rgba(195, 212, 38, 0.25);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* ------------------------------ titelbalk ------------------------------ */

.wlv-title {
	text-align: center;
	background: var(--wlv-panel-alt);
	color: var(--wlv-text);
	border-bottom: 1px solid var(--wlv-border);
	padding: 12px 16px 10px;
	margin-bottom: 18px;
}

.wlv-theme-blauw .wlv-title,
.wlv-theme-grijs .wlv-title {
	background: var(--wlv-header-bar);
	color: #fff;
	border-bottom: none;
}

.wlv-title-main {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.wlv-clock {
	font-size: 30px;
	font-weight: 600;
	letter-spacing: 1px;
	font-variant-numeric: tabular-nums;
	margin: 2px 0 2px;
}

.wlv-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--wlv-text-dim);
}

.wlv-theme-blauw .wlv-status,
.wlv-theme-grijs .wlv-status {
	color: rgba(255, 255, 255, 0.8);
}

.wlv-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #9aa3b1;
	flex: none;
}

.wlv-widget[data-state="live"] .wlv-dot {
	background: #22a45d;
	animation: wlv-pulse 2s ease-out infinite;
}

.wlv-widget[data-state="stale"] .wlv-dot {
	background: #e08a00;
}

.wlv-widget[data-state="stale"] .wlv-status-text {
	color: #c47800;
	font-weight: 600;
}

.wlv-widget[data-state="error"] .wlv-dot {
	background: #d63638;
}

@keyframes wlv-pulse {
	0% { box-shadow: 0 0 0 0 rgba(34, 164, 93, 0.55); }
	70% { box-shadow: 0 0 0 7px rgba(34, 164, 93, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 164, 93, 0); }
}

/* ------------------------------- tegels ------------------------------- */

.wlv-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
	gap: 6px;
	padding: 0 16px;
}

.wlv-tile[hidden] {
	display: none;
}

.wlv-tile {
	text-align: center;
	padding: 6px 2px 4px;
	min-width: 0;
}

.wlv-tile-icon {
	color: var(--wlv-icon);
	height: 36px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 4px;
}

.wlv-icon {
	width: 34px;
	height: 34px;
	display: block;
}

.wlv-tile-label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	color: var(--wlv-text-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wlv-tile-value {
	font-size: 19px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	margin-top: 2px;
	white-space: nowrap;
}

.wlv-tile-unit {
	font-size: 12px;
	color: var(--wlv-text-dim);
}

.wlv-tile-extra {
	font-size: 12px;
	margin-top: 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.wlv-dim {
	color: var(--wlv-text-dim);
}

.wlv-tile-extra.wlv-dim {
	display: block;
	white-space: nowrap;
	margin-top: 2px;
}

.wlv-trend {
	font-size: 10px;
	margin-left: 3px;
	vertical-align: 3px;
	color: var(--wlv-text-dim);
}

.wlv-bft {
	display: inline-block;
	min-width: 22px;
	padding: 0 6px;
	border-radius: 4px;
	background: var(--wlv-accent);
	color: var(--wlv-accent-text);
	font-size: 11px;
	font-weight: 700;
	line-height: 17px;
}

.wlv-dir {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
}

.wlv-arrow {
	display: inline-block;
	font-size: 11px;
	line-height: 1;
	color: var(--wlv-accent);
	transition: transform 0.6s ease;
}

.wlv-uv-badge {
	display: inline-block;
	padding: 0 7px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	line-height: 17px;
	background: var(--wlv-row-a);
	color: var(--wlv-text);
}

.wlv-uv-badge[data-uvlevel="laag"] { background: #3ea72d; color: #fff; }
.wlv-uv-badge[data-uvlevel="matig"] { background: #fff300; color: #222; }
.wlv-uv-badge[data-uvlevel="hoog"] { background: #f18b00; color: #fff; }
.wlv-uv-badge[data-uvlevel="zeerhoog"] { background: #e53210; color: #fff; }
.wlv-uv-badge[data-uvlevel="extreem"] { background: #b567a4; color: #fff; }

/* Korte markering als een waarde verandert. */
.wlv-v.wlv-changed {
	animation: wlv-flash 1.8s ease-out;
	border-radius: 3px;
}

@keyframes wlv-flash {
	0% { background: var(--wlv-flash); box-shadow: 0 0 0 3px var(--wlv-flash); }
	100% { background: transparent; box-shadow: 0 0 0 3px transparent; }
}

/* --------------------------- knop "Meer" --------------------------- */

.wlv-more-wrap {
	text-align: center;
	margin: 14px 0 0;
}

.wlv-widget button.wlv-more {
	background: var(--wlv-accent) !important;
	color: var(--wlv-accent-text) !important;
	border: none;
	border-radius: 999px;
	padding: 7px 26px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.3;
	transition: filter 0.15s ease;
}

.wlv-widget button.wlv-more:hover,
.wlv-widget button.wlv-more:focus-visible {
	filter: brightness(1.12);
	outline: 2px solid var(--wlv-accent);
	outline-offset: 2px;
}

.wlv-more-close,
.wlv-open .wlv-more-open {
	display: none;
}

.wlv-open .wlv-more-close {
	display: inline;
}

/* ------------------------------ kaarten ------------------------------ */

.wlv-details {
	display: none;
	padding: 18px 16px 0;
}

.wlv-open .wlv-details {
	display: block;
}

.wlv-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 14px;
	align-items: start;
}

.wlv-card {
	background: var(--wlv-panel);
	border: 1px solid var(--wlv-border);
	border-radius: 8px;
	overflow: hidden;
}

.wlv-widget h3.wlv-card-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 7px 12px;
	background: var(--wlv-header-bar);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1.3;
	border: none;
}

.wlv-card-title .wlv-icon {
	width: 20px;
	height: 20px;
}

.wlv-widget table.wlv-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	border: none;
	font-size: 13px;
	background: var(--wlv-panel);
}

.wlv-table th,
.wlv-table td {
	padding: 4px 12px;
	border: none;
	border-top: 1px solid var(--wlv-border);
	color: var(--wlv-text);
	background: transparent;
	vertical-align: middle;
}

.wlv-table tr:first-child th,
.wlv-table tr:first-child td {
	border-top: none;
}

.wlv-table th {
	text-align: left;
	white-space: nowrap;
	font-weight: 400;
	color: var(--wlv-text-dim);
}

.wlv-table td {
	text-align: right;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wlv-table tbody tr:nth-child(odd) {
	background: var(--wlv-row-a);
}

.wlv-table tbody tr:nth-child(even) {
	background: var(--wlv-row-b);
}

.wlv-table tbody tr:hover {
	background: var(--wlv-panel-alt);
}

.wlv-card[hidden] {
	display: none;
}

.wlv-table tr[hidden] {
	display: none;
}

/* ------------------------------- voettekst ------------------------------- */

.wlv-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	margin-top: 16px;
	padding: 12px 16px 0;
	border-top: 1px solid var(--wlv-border);
	font-size: 11px;
	color: var(--wlv-text-dim);
}

.wlv-warning {
	flex-basis: 100%;
	color: #d63638;
	font-weight: 700;
	font-size: 12px;
}

.wlv-warning[hidden] {
	display: none;
}

.wlv-error {
	text-align: center;
	color: #d63638;
	font-size: 13px;
	padding: 12px 0 0;
	margin: 0;
}

/* ------------------------------ responsief ------------------------------ */

@media (max-width: 900px) {
	.wlv-tiles {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		row-gap: 14px;
	}
}

@media (max-width: 480px) {
	.wlv-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding: 0 10px;
	}
	.wlv-details {
		padding: 16px 10px 0;
	}
	.wlv-cards {
		grid-template-columns: 1fr;
	}
	.wlv-clock {
		font-size: 26px;
	}
	.wlv-table {
		font-size: 12px;
	}
	.wlv-table th,
	.wlv-table td {
		padding: 4px 8px;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wlv-widget[data-state="live"] .wlv-dot,
	.wlv-v.wlv-changed {
		animation: none;
	}
	.wlv-arrow {
		transition: none;
	}
}

/* ======================================================================
   [weer_stationgegevens] — gemiddelde / max / min per dag
   ====================================================================== */

.wlv-stats {
	max-width: 440px;
	overflow: visible; /* tooltips mogen buiten de kaart vallen */
}

.wlv-stats .wlv-st-card {
	overflow: visible;
}

.wlv-st-sub {
	font-size: 13px;
	color: var(--wlv-text-dim);
	margin-top: 4px;
}

.wlv-theme-blauw .wlv-st-sub,
.wlv-theme-grijs .wlv-st-sub {
	color: rgba(255, 255, 255, 0.8);
}

.wlv-st-sub[hidden],
.wlv-st-table tbody[hidden] {
	display: none;
}

.wlv-st-body {
	padding: 0 16px;
}

.wlv-st-controls {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}

.wlv-widget select.wlv-st-select {
	appearance: none;
	-webkit-appearance: none;
	background-color: var(--wlv-panel);
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	color: var(--wlv-text);
	border: 1px solid var(--wlv-border);
	border-radius: 999px;
	padding: 7px 36px 7px 18px;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	line-height: 1.3;
	cursor: pointer;
	min-width: 160px;
}

.wlv-widget select.wlv-st-select:focus-visible {
	outline: 2px solid var(--wlv-accent);
	outline-offset: 2px;
}

.wlv-st-card {
	overflow-x: auto;
}

.wlv-widget table.wlv-st-table thead th {
	background: var(--wlv-header-bar);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-align: center;
	padding: 7px 10px;
	border: none;
}

.wlv-widget .wlv-st-table tbody th {
	color: var(--wlv-text);
	font-weight: 600;
	padding: 6px 2px;
	text-align: center;
}

.wlv-st-table tbody th > span {
	vertical-align: middle;
}

.wlv-st-icon {
	position: relative;
	display: inline-flex;
	color: var(--wlv-icon);
	cursor: help;
	border-radius: 4px;
	outline: none;
}

/* Naam van de grootheid als tooltip rechts naast het icoon (muis, toetsenbord
   of tikken). Rechts i.p.v. erboven, zodat hij in de smalle eerste kolom niet
   links buiten de kaart valt. */
.wlv-st-icon::after,
.wlv-st-icon::before {
	position: absolute;
	top: 50%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	z-index: 20;
}

.wlv-st-icon::after {
	content: attr(data-tip);
	left: calc(100% + 9px);
	transform: translateY(-50%);
	background: #3a3a3a;
	color: #fff;
	border: 1px solid #1f1f1f;
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	text-transform: none;
	letter-spacing: 0;
}

.wlv-st-icon::before {
	content: "";
	left: calc(100% + 3px);
	transform: translateY(-50%);
	border: 6px solid transparent;
	border-left: 0;
	border-right-color: #3a3a3a;
}

.wlv-st-icon:hover::after,
.wlv-st-icon:hover::before,
.wlv-st-icon:focus::after,
.wlv-st-icon:focus::before {
	opacity: 1;
	visibility: visible;
}

.wlv-st-icon:focus-visible {
	box-shadow: 0 0 0 2px var(--wlv-accent);
}

.wlv-st-icon .wlv-icon {
	width: 22px;
	height: 22px;
}

.wlv-widget table.wlv-st-table {
	table-layout: fixed;
}

/* Smalle icoonkolom; de drie waardekolommen delen de rest gelijk. */
.wlv-st-table col.wlv-st-col-icon {
	width: 40px;
}

.wlv-st-table td {
	text-align: center;
	padding: 6px 4px;
}

.wlv-st-val {
	display: block;
	white-space: nowrap;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.wlv-st-val small {
	font-size: 11px;
	font-weight: 400;
	color: var(--wlv-text-dim);
}

.wlv-st-time {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: var(--wlv-text-dim);
	font-variant-numeric: tabular-nums;
}

.wlv-st-empty {
	color: var(--wlv-text-dim);
	font-weight: 400;
}

.wlv-st-table td.wlv-st-msg {
	text-align: center;
	color: var(--wlv-text-dim);
	font-weight: 400;
	padding: 18px 10px;
	width: auto;
}

.wlv-st-unit {
	display: none;
}

/* Diepte bij de grondtemperatuur (+10 / -10 cm) onder het icoon. */
.wlv-st-tag {
	display: block;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--wlv-icon);
}

.wlv-stats .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Telefoon: enkel het icoon met de eenheid eronder; eenheden niet herhalen in de cellen. */
@media (max-width: 480px) {
	.wlv-st-body {
		padding: 0 8px;
	}
	.wlv-st-label,
	.wlv-st-val small {
		display: none;
	}
	.wlv-st-icon {
		margin-right: 0;
	}
	.wlv-st-unit {
		display: block;
		font-size: 10px;
		font-weight: 400;
		color: var(--wlv-text-dim);
		line-height: 1.2;
	}
	.wlv-widget .wlv-st-table th,
	.wlv-widget .wlv-st-table td {
		padding: 5px 4px;
		font-size: 13px;
	}
	.wlv-st-table col.wlv-st-col-icon {
		width: 38px;
	}
}

/* Zelfde compacte weergave als de kaart smal is (bv. in een zijbalk of smalle kolom),
   ook op een breed scherm. */
.wlv-stats .wlv-st-body {
	container-type: inline-size;
}

@container (max-width: 400px) {
	.wlv-st-label,
	.wlv-st-val small {
		display: none;
	}
	.wlv-st-icon {
		margin-right: 0;
	}
	.wlv-st-unit {
		display: block;
		font-size: 10px;
		font-weight: 400;
		color: var(--wlv-text-dim);
		line-height: 1.2;
	}
	.wlv-widget .wlv-st-table th,
	.wlv-widget .wlv-st-table td {
		padding: 5px 4px;
		font-size: 13px;
	}
	.wlv-st-table col.wlv-st-col-icon {
		width: 38px;
	}
}

/* Afgeronde hoeken behouden nu de kaart "overflow: visible" heeft (voor de tooltips). */
.wlv-stats .wlv-title {
	border-radius: 11px 11px 0 0;
}

.wlv-widget .wlv-st-table thead th:first-child {
	border-top-left-radius: 7px;
}

.wlv-widget .wlv-st-table thead th:last-child {
	border-top-right-radius: 7px;
}

.wlv-st-table tbody:last-child tr:last-child th {
	border-bottom-left-radius: 7px;
}

.wlv-st-table tbody:last-child tr:last-child td:last-child {
	border-bottom-right-radius: 7px;
}

/* Max = rood, Min = blauw — zelfde kleurconcept als Weer Top 10. */
.wlv-stats {
	--wlv-max-color: #b93a2e;
	--wlv-min-color: #1a5fa0;
	--wlv-max-text: #b93a2e;
	--wlv-min-text: #1a5fa0;
}

.wlv-stats.wlv-theme-blauw {
	--wlv-max-color: #e2574c;
	--wlv-min-color: #4a90d9;
	--wlv-max-text: #ff8a7e;
	--wlv-min-text: #7db8f0;
}

.wlv-stats.wlv-theme-grijs {
	--wlv-max-color: #ff6b5e;
	--wlv-min-color: #6fc3ff;
	--wlv-max-text: #ffab9e;
	--wlv-min-text: #a8dcff;
}

.wlv-widget .wlv-st-table thead th.wlv-st-max {
	background: var(--wlv-max-color);
}

.wlv-widget .wlv-st-table thead th.wlv-st-min {
	background: var(--wlv-min-color);
}

.wlv-stats.wlv-theme-grijs .wlv-st-table thead th.wlv-st-min,
.wlv-stats.wlv-theme-grijs .wlv-st-table thead th.wlv-st-max {
	color: #1c1c1c;
}

.wlv-st-max .wlv-st-val {
	color: var(--wlv-max-text);
}

.wlv-st-min .wlv-st-val {
	color: var(--wlv-min-text);
}

/* Tijd van de meting op dezelfde regel en even groot als "Live · x s geleden". */
.wlv-widget .wlv-status {
	font-size: 13px;
	gap: 7px;
	margin-top: 4px;
}

.wlv-widget .wlv-status .wlv-clock {
	font-size: inherit;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0;
	color: var(--wlv-text);
}

.wlv-theme-blauw .wlv-status .wlv-clock,
.wlv-theme-grijs .wlv-status .wlv-clock {
	color: #fff;
}

.wlv-title .wlv-warning {
	margin-top: 6px;
	font-size: 12px;
}

@media (max-width: 480px) {
	.wlv-widget .wlv-status .wlv-clock {
		font-size: inherit;
	}
}

/* ======================================================================
   Detailkaarten onder "Meer": lijst met icoon · label · waarde
   (kopbalk van de kaart blijft zoals hij was)
   ====================================================================== */

.wlv-widget .wlv-cards {
	display: block;
	columns: 4 250px;
	column-gap: 16px;
}

.wlv-widget .wlv-cards .wlv-card {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	margin: 0 0 16px;
	display: inline-block; /* voorkomt splitsen over kolommen in oudere browsers */
	width: 100%;
}

.wlv-widget .wlv-cards .wlv-card[hidden] {
	display: none;
}

.wlv-widget ul.wlv-list {
	list-style: none;
	margin: 0;
	padding: 2px 12px;
	background: var(--wlv-panel);
}

.wlv-widget .wlv-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 6px 0;
	margin: 0;
	border-bottom: 1px dashed var(--wlv-border);
}

.wlv-widget .wlv-row:last-child {
	border-bottom: none;
}

.wlv-widget .wlv-row[hidden] {
	display: none;
}

.wlv-row-icon {
	flex: none;
	width: 28px;
	display: flex;
	justify-content: center;
}

.wlv-row-icon .wlv-icon {
	width: 24px;
	height: 24px;
}

.wlv-row-label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	color: var(--wlv-text-dim);
	line-height: 1.25;
}

.wlv-row-val {
	flex: none;
	text-align: right;
	max-width: 60%;
}

.wlv-row-val .wlv-v {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--wlv-text);
	font-variant-numeric: tabular-nums;
	line-height: 1.25;
}

.wlv-row-sub {
	display: block;
	font-size: 10.5px;
	color: var(--wlv-text-dim);
	line-height: 1.2;
}

.wlv-row-sub:empty {
	display: none;
}

/* Trend: groen pijltje omhoog / rood omlaag, zoals in het voorbeeld. */
.wlv-row-val .wlv-v[data-sign="up"] {
	color: #1f9a52;
}

.wlv-row-val .wlv-v[data-sign="down"] {
	color: #d63638;
}

.wlv-row-val .wlv-v[data-sign="up"]::before {
	content: "▲ ";
	font-size: 11px;
}

.wlv-row-val .wlv-v[data-sign="down"]::before {
	content: "▼ ";
	font-size: 11px;
}

/* Kleurtonen van de iconen. */
.wlv-tone-red { color: #e2574c; }
.wlv-tone-orange { color: #f08c2a; }
.wlv-tone-blue { color: #2f8fd8; }
.wlv-tone-teal { color: #2a9fbc; }
.wlv-tone-grey { color: #6b7380; }
.wlv-tone-slate { color: #5f7186; }
.wlv-tone-sun { color: #f2a51a; }
.wlv-tone-green { color: #2e9e55; }
.wlv-tone-brown { color: #9a6b3c; }
.wlv-tone-purple { color: #8b5cf6; }

.wlv-theme-blauw .wlv-tone-grey,
.wlv-theme-grijs .wlv-tone-grey,
.wlv-theme-blauw .wlv-tone-slate,
.wlv-theme-grijs .wlv-tone-slate {
	color: #c3cad6;
}

.wlv-theme-blauw .wlv-row-val .wlv-v[data-sign="up"],
.wlv-theme-grijs .wlv-row-val .wlv-v[data-sign="up"] {
	color: #5fd38d;
}

.wlv-theme-blauw .wlv-row-val .wlv-v[data-sign="down"],
.wlv-theme-grijs .wlv-row-val .wlv-v[data-sign="down"] {
	color: #ff7b72;
}

/* ======================================================================
   [weer_live] titelbalk in dezelfde blauwe stijl als de kaarten van de
   startpagina (Weer Hub / webcam): titel links, tijd + Live rechts.
   ====================================================================== */

.wlv-widget.wlv-theme-klassiek:not(.wlv-stats) {
	border-radius: 14px;
	border: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.wlv-theme-klassiek:not(.wlv-stats) .wlv-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 14px;
	text-align: left;
	background: linear-gradient(90deg, #1f5fae, #4a8ad6);
	color: #fff;
	border-bottom: none;
	padding: 10px 14px;
	margin-bottom: 18px;
}

.wlv-theme-klassiek:not(.wlv-stats) .wlv-title-main {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.2px;
	text-transform: none;
	color: #fff;
}

.wlv-theme-klassiek:not(.wlv-stats) .wlv-status {
	margin-top: 0;
	color: rgba(255, 255, 255, 0.92);
}

.wlv-theme-klassiek:not(.wlv-stats) .wlv-status .wlv-clock {
	color: #fff;
}

.wlv-theme-klassiek:not(.wlv-stats)[data-state="live"] .wlv-dot {
	background: #4ade80;
}

.wlv-theme-klassiek:not(.wlv-stats)[data-state="stale"] .wlv-status-text {
	color: #ffd27a;
}

.wlv-theme-klassiek:not(.wlv-stats) .wlv-title .wlv-warning {
	flex-basis: 100%;
	margin-top: 2px;
	color: #ffe0de;
}

/* Ruimte onder de balk Huidige condities, even groot als tussen de kolommen. */
.wlv-widget:not(.wlv-stats) {
	margin-bottom: 20px;
}

/* Huidige condities even breed als de kolommen eronder (volle breedte van de plek). */
.wlv-widget.wlv-theme-klassiek:not(.wlv-stats),
.wlv-widget.wlv-theme-blauw:not(.wlv-stats),
.wlv-widget.wlv-theme-grijs:not(.wlv-stats) {
	max-width: none;
}

/* Gekleurde iconen: blauw kwik bij minima / koude rijen. */
.wlv-tone-blue,
.wlv-st-min { --wlv-merc: #1e88e5; }
.wlv-icon-kleur { overflow: visible; }

/* ------------------------------ [weer_grafiek] ------------------------------ */
.wlv-graph .wlv-gr-kop {
	text-align: center;
	margin: 0 0 6px;
}

.wlv-graph .wlv-gr-naam {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: var(--wk-kop-basis-1, #1a5fa0);
}

.wlv-graph .wlv-gr-canvas {
	position: relative;
	width: 100%;
	background: var(--wlv-panel, #fff);
	border: 1px solid var(--wlv-border, #e3e6ea);
	border-radius: 10px;
	padding: 8px 8px 4px;
	box-sizing: border-box;
	transition: opacity 0.2s;
}

.wlv-graph.wlv-gr-laden .wlv-gr-canvas {
	opacity: 0.55;
}

.wlv-graph .wlv-gr-msg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	font-size: 13px;
	color: var(--wlv-text-dim, #5b6573);
	background: var(--wlv-panel, #fff);
	border-radius: 10px;
}

.wlv-graph .wlv-gr-msg[hidden] {
	display: none;
}

.wlv-graph .wlv-gr-controls {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
}

.wlv-graph .wlv-gr-controls select.wlv-st-select {
	min-width: 140px;
}

.wlv-graph .wlv-gr-controls select[hidden] {
	display: none;
}

/* De grafiek vult altijd de volle breedte van de kolom (ook zonder [weer_kaart]). */
.wlv-widget.wlv-graph {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}
.wlv-graph .wlv-gr-canvas canvas {
	width: 100% !important;
}

/* ------------------- Hittekracht / zwarte bol (WBGT) ------------------- */

/* Kleur per risiconiveau (badge in de tegel, het blok en de schaal). */
.wlv-widget [data-level="geen"], .wlv-globe[data-wbgt="geen"] { --wlv-gb-k: #3aa655; --wlv-gb-kt: #fff; }
.wlv-widget [data-level="laag"], .wlv-globe[data-wbgt="laag"] { --wlv-gb-k: #9bc53d; --wlv-gb-kt: #1c2400; }
.wlv-widget [data-level="matig"], .wlv-globe[data-wbgt="matig"] { --wlv-gb-k: #f2c12e; --wlv-gb-kt: #2a2000; }
.wlv-widget [data-level="hoog"], .wlv-globe[data-wbgt="hoog"] { --wlv-gb-k: #f28c28; --wlv-gb-kt: #fff; }
.wlv-widget [data-level="zeerhoog"], .wlv-globe[data-wbgt="zeerhoog"] { --wlv-gb-k: #e03b2f; --wlv-gb-kt: #fff; }
.wlv-widget [data-level="extreem"], .wlv-globe[data-wbgt="extreem"] { --wlv-gb-k: #8e3bbf; --wlv-gb-kt: #fff; }

.wlv-wbgt-badge {
	display: inline-block;
	padding: 0 7px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	line-height: 17px;
	background: var(--wlv-gb-k, var(--wlv-row-a));
	color: var(--wlv-gb-kt, var(--wlv-text));
	white-space: nowrap;
}

.wlv-globe {
	padding-bottom: 14px;
}

.wlv-gb-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 14px 14px 0;
}

.wlv-gb-paneel {
	background: var(--wlv-panel);
	border: 1px solid var(--wlv-row-a);
	border-radius: 10px;
	padding: 10px 12px 9px;
	text-align: center;
	min-width: 0;
}

.wlv-gb-wbgt {
	border-top: 4px solid var(--wlv-gb-k, var(--wlv-row-a));
}

.wlv-gb-bgt {
	border-top: 4px solid #1f242b;
}

.wlv-theme-blauw .wlv-gb-bgt,
.wlv-theme-grijs .wlv-gb-bgt {
	border-top-color: #0d0f12;
}

.wlv-gb-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wlv-text-dim);
}

.wlv-gb-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 700;
	font-style: italic;
	text-transform: none;
	line-height: 1;
	cursor: help;
	opacity: 0.75;
}

.wlv-gb-niveau {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 6px;
	min-height: 30px;
}

.wlv-gb-gezicht {
	flex: none;
	display: block;
}

.wlv-gb-gezicht-bol {
	fill: var(--wlv-gb-k, #c9ced6);
	stroke: rgba(0, 0, 0, 0.15);
	stroke-width: 0.8;
}

.wlv-gb-mond-recht,
.wlv-gb-mond-boos {
	display: none;
}

.wlv-globe[data-wbgt="matig"] .wlv-gb-mond-blij,
.wlv-globe[data-wbgt="hoog"] .wlv-gb-mond-blij,
.wlv-globe[data-wbgt="zeerhoog"] .wlv-gb-mond-blij,
.wlv-globe[data-wbgt="extreem"] .wlv-gb-mond-blij {
	display: none;
}

.wlv-globe[data-wbgt="matig"] .wlv-gb-mond-recht {
	display: inline;
}

.wlv-globe[data-wbgt="hoog"] .wlv-gb-mond-boos,
.wlv-globe[data-wbgt="zeerhoog"] .wlv-gb-mond-boos,
.wlv-globe[data-wbgt="extreem"] .wlv-gb-mond-boos {
	display: inline;
}

.wlv-gb-wbgt .wlv-wbgt-badge {
	font-size: 12px;
	line-height: 20px;
	padding: 0 9px;
	border-radius: 999px;
}

.wlv-gb-waarde {
	margin-top: 4px;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wlv-gb-eenheid {
	margin-left: 3px;
	font-size: 15px;
	font-weight: 600;
	color: var(--wlv-text-dim);
	vertical-align: 14px;
}

.wlv-gb-bgt .wlv-gb-waarde {
	margin-top: 40px;
}

.wlv-gb-trend {
	margin-top: 2px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wlv-text-dim);
	font-variant-numeric: tabular-nums;
}

.wlv-gb-trend[hidden] {
	display: block !important;
	visibility: hidden;
}

.wlv-gb-pijl {
	margin-right: 4px;
	font-size: 10px;
}

.wlv-gb-mm {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px 12px;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.wlv-gb-max { color: #e2574c; }
.wlv-gb-min { color: #2f8fd8; }

.wlv-gb-mm [hidden] {
	display: none;
}

/* Schaal met bolletje op de huidige WBGT. */
.wlv-gb-schaal {
	padding: 14px 18px 0;
}

.wlv-gb-balk {
	position: relative;
	height: 10px;
	border-radius: 5px;
	background: linear-gradient(90deg, #3aa655 0%, #3aa655 22%, #9bc53d 38%, #f2c12e 58%, #f28c28 73%, #e03b2f 81%, #8e3bbf 92%, #8e3bbf 100%);
}

.wlv-gb-punt {
	position: absolute;
	top: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border-radius: 50%;
	background: #fff;
	border: 4px solid var(--wlv-gb-k, #5b6472);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	transition: left 0.6s ease;
}

.wlv-gb-punt[hidden] {
	display: none;
}

.wlv-gb-ticks {
	position: relative;
	height: 15px;
	margin-top: 4px;
	font-size: 10px;
	color: var(--wlv-text-dim);
	font-variant-numeric: tabular-nums;
}

.wlv-gb-ticks span {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
}

.wlv-gb-advies {
	margin: 8px 14px 0;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--wlv-panel);
	border-left: 4px solid var(--wlv-gb-k, var(--wlv-row-a));
	font-size: 13px;
	color: var(--wlv-text);
}

/* Binnen [weer_kaart] heeft de kaart al een titel en eigen marges. */
.weer-kaart .weer-kaart-inhoud .wlv-globe .wlv-gb-body,
.weer-kaart .weer-kaart-inhoud .wlv-globe .wlv-gb-schaal {
	padding-left: 0;
	padding-right: 0;
	padding-top: 0;
}

.weer-kaart .weer-kaart-inhoud .wlv-globe .wlv-gb-schaal {
	padding: 14px 4px 0;
}

.weer-kaart .weer-kaart-inhoud .wlv-globe .wlv-gb-advies {
	margin-left: 0;
	margin-right: 0;
}

.weer-kaart .weer-kaart-inhoud .wlv-globe {
	padding-bottom: 0;
}

@media (max-width: 340px) {
	.wlv-gb-body {
		grid-template-columns: 1fr;
	}
	.wlv-gb-bgt .wlv-gb-waarde {
		margin-top: 4px;
	}
}

/* "?" met uitleg (de ballon zelf hangt aan <body>, zie wlv-script.js). */
.wlv-tip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-left: 4px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	font-size: 10px;
	font-weight: 800;
	font-style: normal;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	vertical-align: 1px;
	cursor: help;
	opacity: 0.8;
	user-select: none;
}

.wlv-tip:hover,
.wlv-tip:focus-visible {
	opacity: 1;
	outline: none;
	background: rgba(127, 127, 127, 0.18);
}

.wlv-title-main .wlv-tip {
	width: 17px;
	height: 17px;
	font-size: 11px;
}

.wlv-card-title .wlv-tip {
	margin-left: 6px;
}

.wlv-tip-pop {
	display: none;
	position: absolute;
	z-index: 100000;
	max-width: 300px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #1c2430;
	color: #fff;
	font: 400 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	text-align: left;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

/* "?" rechts naast het icoon van een tegel (bv. Hittekracht). */
.wlv-tile-icon {
	position: relative;
}

.wlv-tile-tip {
	position: absolute;
	top: 50%;
	left: calc(50% + 21px);
	transform: translateY(-50%);
	line-height: 1;
	color: var(--wlv-text-dim);
}

.wlv-tile-tip .wlv-tip {
	margin-left: 0;
}

/* ---------------- [weer_grafiek]: tabs Recent / Historisch ---------------- */
.wlv-gr-modi {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 0 0 10px;
}

.wlv-widget button.wlv-gr-modus,
.wlv-widget button.wlv-hs-knop {
	margin: 0;
	padding: 6px 16px;
	border: 1px solid var(--wlv-border);
	border-radius: 999px;
	background: var(--wlv-panel);
	color: var(--wlv-text);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}

.wlv-widget button.wlv-hs-knop {
	padding: 4px 11px;
	font-size: 12px;
}

.wlv-widget button.wlv-gr-modus:hover,
.wlv-widget button.wlv-hs-knop:hover {
	border-color: var(--wk-knop, var(--wlv-accent));
}

.wlv-widget button.wlv-gr-modus.is-actief,
.wlv-widget button.wlv-hs-knop.is-actief {
	background: var(--wk-knop, var(--wlv-accent));
	border-color: var(--wk-knop, var(--wlv-accent));
	color: var(--wk-knop-tekst, var(--wlv-accent-text));
}

.wlv-gr-paneel[hidden] {
	display: none;
}

/* Historische grafiek. */
.wlv-hist .wlv-gr-kop {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 2px 10px;
}

.wlv-hs-bereik {
	font-size: 12px;
	color: var(--wlv-text-dim);
	font-variant-numeric: tabular-nums;
}

.wlv-hs-zoom {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px;
	margin: 0 0 8px;
}

.wlv-hs-nav {
	position: relative;
	height: 54px;
	margin-top: 8px;
	padding: 2px 8px;
	background: var(--wlv-panel, #fff);
	border: 1px solid var(--wlv-border, #e3e6ea);
	border-radius: 10px;
	cursor: pointer;
	touch-action: none;
	user-select: none;
}

.wlv-hs-nav canvas {
	width: 100% !important;
	height: 100% !important;
}

.wlv-hs-venster {
	position: absolute;
	background: rgba(26, 95, 160, 0.14);
	border: 1px solid rgba(26, 95, 160, 0.6);
	border-radius: 4px;
	cursor: grab;
	box-sizing: border-box;
}

.wlv-hs-venster:active {
	cursor: grabbing;
}

.wlv-hs-venster[hidden] {
	display: none;
}

.wlv-hs-greep {
	position: absolute;
	top: 50%;
	width: 10px;
	height: 24px;
	margin-top: -12px;
	border: 1px solid #5b6472;
	border-radius: 3px;
	background: #fff;
	cursor: ew-resize;
}

.wlv-hs-greep[data-rand="links"] { left: -6px; }
.wlv-hs-greep[data-rand="rechts"] { right: -6px; }

.wlv-hs-greep::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 6px;
	width: 2px;
	height: 10px;
	border-left: 1px solid #8a93a0;
	border-right: 1px solid #8a93a0;
	box-sizing: border-box;
}

/* Tabs Recent / Historisch als "mappen" bovenaan (zoals Klimaat Trend en de bliksempagina). */
.wlv-gr-mappen {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 3px;
	padding: 10px 12px 0;
}

.wlv-widget .wlv-gr-mappen button.wlv-gr-modus {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 4px 0 0;
	padding: 8px 18px 9px;
	background: #e6ebf1;
	background-image: none;
	border: 1px solid #c9ced6;
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	box-shadow: none;
	text-shadow: none;
	color: #3a475a;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: background-color 0.12s ease;
}

.wlv-widget .wlv-gr-mappen button.wlv-gr-modus svg {
	flex: none;
	display: block;
}

.wlv-widget .wlv-gr-mappen button.wlv-gr-modus:hover {
	background: #d3dce8;
	border-color: #c9ced6;
	color: #1c2430;
}

.wlv-widget .wlv-gr-mappen button.wlv-gr-modus.is-actief,
.wlv-widget .wlv-gr-mappen button.wlv-gr-modus.is-actief:hover {
	background: var(--wk-kop-basis-1, #1a5fa0);
	border-color: var(--wk-kop-basis-1, #1a5fa0);
	color: #fff;
	font-weight: 700;
	margin-top: 0;
	padding-top: 11px;
	cursor: default;
}

.wlv-gr-balk {
	background: var(--wk-kop-basis-1, #1a5fa0);
	color: var(--wk-kop-basis-tekst, #fff);
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	padding: 9px 16px;
	margin-bottom: 14px;
}

/* Binnen [weer_kaart]: tabs tegen de rand van de kaart. */
.weer-kaart .weer-kaart-inhoud .wlv-gr-mappen {
	padding-top: 0;
}

@media (max-width: 600px) {
	.wlv-widget .wlv-gr-mappen button.wlv-gr-modus {
		padding: 7px 12px 8px;
		font-size: 12px;
	}
	.wlv-widget .wlv-gr-mappen button.wlv-gr-modus.is-actief {
		padding-top: 10px;
	}
	.wlv-gr-balk {
		font-size: 14px;
	}
}

/* Mouseover in de stijl van Weer Meters: donker venster, grijze labels, vette waarden. */
.wlv-tip-pop {
	max-width: 320px;
	padding: 9px 12px;
	font-size: 12.5px;
	line-height: 1.55;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}
.wlv-st-icon::after {
	background: #1c2430;
	border: 0;
	border-radius: 10px;
	padding: 6px 11px;
	font-size: 12.5px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}
.wlv-st-icon::before {
	border-right-color: #1c2430;
}

/* Trendpijlen: stijgend groen, dalend rood. */
.wlv-trend.is-stijgt,
.wlv-gb-pijl.is-stijgt {
	color: #2e9e55;
}
.wlv-trend.is-daalt,
.wlv-gb-pijl.is-daalt {
	color: #d64541;
}
