/* Homepage-blokken (weerbericht, nieuwe weerstations, actueel-weer-tabellen,
   extremen-tabellen, NL/BE kaartje) -- elk blok is een los shortcode-resultaat
   in zijn eigen Divi-module (zie hwahomepage.class.php), er is geen gedeelde
   wrapper. hwahomepage.class.php geeft elk blok nu een eigen class om op te
   stylen; verder is er niets aan de Divi-pagina-opbouw zelf aangepast.
   Kleur-tokens: hergebruikt via de --chrome-* custom properties die
   hwa-chrome.css al op :root zet (site-breed geladen), zodat dit niet los
   van de header/footer-restyle kan gaan lopen. */

.hwa-weerbericht,
.hwa-latest-stations,
.hwa-hilo-block,
.hwa-extremen-block,
.hwa-location-map {
	background: #ffffff;
	border: 1px solid #e1e8f0;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(20,40,60,.06), 0 6px 16px -10px rgba(20,40,60,.18);
	padding: 18px 20px;
	margin-bottom: 4px;
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--chrome-ink, #182430);
	box-sizing: border-box;
}

/* ---------- Weerbericht ---------- */
.hwa-weerbericht h3 {
	margin: 0 0 8px;
	color: var(--chrome-accent, #2569c9);
	font-size: 1.15rem;
}
.hwa-weerbericht p { line-height: 1.6; margin: 0 0 8px; }
.hwa-weerbericht p:last-child { margin-bottom: 0; }

/* ---------- Nieuwe weerstations ---------- */
/* De kop "Nieuwe weerstations" zelf is GEEN shortcode-output -- gewone Divi-
   paginatekst vóór [sln_latest_stations], zit dus buiten .hwa-latest-stations
   en kreeg daardoor de kale thema-h2-stijl (te groot/te zwaar t.o.v. de
   andere kaartkoppen). Opgelost zonder Divi aan te raken: dezelfde kopstijl
   als .hwa-hilo-block/.hwa-extremen-block, via :has() op de eropvolgende
   card -- geen handmatige stap nodig zoals bij de SEO-tekst/tempmap.
   !important op font-size: deze specifieke Divi-tekstmodule bleek een eigen
   kop-groottewaarde in te stellen (23px i.p.v. de 19.2px die deze regel
   zet) die anders won van een gewone tag-selector -- gevonden op de live
   site na deploy, niet zichtbaar geweest in de lokale preview omdat die
   geen Divi-modulespecifieke CSS meenam. */
h2:has(+ .hwa-latest-stations) {
	margin: 0 0 10px;
	font-size: 1.2rem !important;
	color: var(--chrome-ink, #182430);
	padding-bottom: 8px;
	border-bottom: 2px solid var(--chrome-accent-soft, #e5edf9);
}

.hwa-latest-stations__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hwa-latest-stations__list li {
	padding: 6px 0;
	border-bottom: 1px solid #eef1f4;
}
.hwa-latest-stations__list li:last-child { border-bottom: none; }
.hwa-latest-stations__list a {
	color: var(--chrome-accent, #2569c9);
	text-decoration: none;
	font-weight: 600;
}
.hwa-latest-stations__list a:hover { text-decoration: underline; }
.hwa-latest-stations__cta a { color: var(--chrome-warm, #d9820f); }
.hwa-latest-stations__count {
	margin: 10px 0 0;
	font-size: .85rem;
	color: #5b6b7c;
}

/* ---------- Actueel weer / Extremen tabellen ---------- */
.hwa-hilo-block h2,
.hwa-extremen-block h2 {
	margin: 0 0 12px;
	font-size: 1.2rem;
	color: var(--chrome-ink, #182430);
	padding-bottom: 8px;
	border-bottom: 2px solid var(--chrome-accent-soft, #e5edf9);
}

table.hwa-hilo,
table.hwa-extremen {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
}
table.hwa-hilo tr,
table.hwa-extremen tr { border-bottom: 1px solid #eef1f4; }
table.hwa-hilo tr:last-child,
table.hwa-extremen tr:last-child { border-bottom: none; }

table.hwa-hilo td,
table.hwa-extremen td {
	padding: 9px 6px;
	vertical-align: top;
}
/* 1e kolom: label */
table.hwa-hilo td:nth-child(1),
table.hwa-extremen td:nth-child(1) {
	color: #5b6b7c;
	white-space: nowrap;
}
/* 2e kolom: waarde */
table.hwa-hilo td:nth-child(2),
table.hwa-extremen td:nth-child(2) {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
/* 3e kolom: lege spacer-cel in de bestaande markup, geen inhoud */
table.hwa-hilo td:nth-child(3),
table.hwa-extremen td:nth-child(3) { display: none; }
/* 4e kolom: station + tijd */
table.hwa-hilo td:nth-child(4),
table.hwa-extremen td:nth-child(4) { text-align: right; }
table.hwa-hilo td:nth-child(4) a,
table.hwa-extremen td:nth-child(4) a {
	color: var(--chrome-accent, #2569c9);
	text-decoration: none;
	font-weight: 600;
}
table.hwa-hilo td:nth-child(4) a:hover,
table.hwa-extremen td:nth-child(4) a:hover { text-decoration: underline; }

/* ---------- SEO-introtekst boven het NL/BE-kaartje ---------- */
/* Dit is GEEN shortcode-output -- gewone Divi-paginatekst (belangrijk voor
   vindbaarheid, zie CLAUDE.md "SEO / vindbaarheid"). Deze class bestaat hier
   klaar voor gebruik, maar moet nog handmatig om die tekst heen gezet worden
   in de Divi-teksteditor van dat blok (zelfde soort kleine, handmatige stap
   als de "actueeltabel"-class die al op andere modules staat) -- er is
   vanuit de plugin geen bestand dat deze tekst rendert. */
.hwa-intro-text p,
/* Zelfde reden als de "Nieuwe weerstations"-kop hierboven: dit is Divi-tekst
   die niet in een class te wrappen is zonder handmatige stap. :has() pakt 'm
   automatisch, want deze specifieke .et_pb_text_inner is de enige op de site
   die ook .hwa-location-map bevat -- geen risico op elders per ongeluk
   meestylen. De handmatige "hwa-intro-text"-stap hierboven is dus niet meer
   nodig; de class blijft staan als expliciete hook mocht dat ooit wenselijk zijn. */
.et_pb_text_inner:has(> .hwa-location-map) > p {
	line-height: 1.6;
	margin: 0 0 10px;
	color: var(--chrome-ink, #182430);
}
.hwa-intro-text p:last-of-type,
.et_pb_text_inner:has(> .hwa-location-map) > p:last-of-type { margin-bottom: 0; }
.hwa-intro-text strong,
.et_pb_text_inner:has(> .hwa-location-map) > p > strong { color: var(--chrome-accent, #2569c9); }

/* ---------- NL/BE kaartje ---------- */
.hwa-location-map {
	padding: 12px;
	text-align: center;
}
.hwa-location-map img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	display: inline-block;
}
