/* Weer Aardbevingen — compact blok voor de startpagina (zelfde kaartstijl als
   het luchtkwaliteitsblok: witte kaart, grijze kop, groot gekleurd label). */
.wwac {
	--wwac-text: #2b2f36;
	--wwac-dim: #6b7280;
	--wwac-line: #e3e6eb;
	--wwac-accent: #1a5fa0;
	--wwa-m1: #f2c230;
	--wwa-m2: #f08a24;
	--wwa-m3: #d93a2b;
	--wwa-m4: #8e1b3e;

	background: #fff;
	border: 1px solid var(--wwac-line);
	border-radius: 12px;
	padding: 16px 18px 12px;
	color: var(--wwac-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.45;
	box-sizing: border-box;
	width: 100%;
}

.wwac * {
	box-sizing: border-box;
}

/* Kop: "Aardbevingen (M2,0+, 2.000 km) – Beerse" + vraagteken. */
.wwac-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
	position: relative;
}

.wwac-head-title {
	color: var(--wwac-dim);
	font-size: 13px;
}

.wwac-head-title strong {
	color: var(--wwac-text);
}

.wwac-help {
	position: static;
	flex: 0 0 auto;
}

.wwac-help summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1.5px solid #9aa1ab;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	color: #4b5563;
	cursor: pointer;
	user-select: none;
}

.wwac-help summary::-webkit-details-marker {
	display: none;
}

.wwac-help[open] summary {
	background: var(--wwac-accent);
	border-color: var(--wwac-accent);
	color: #fff;
}

.wwac-help-pop {
	position: absolute;
	right: 0;
	top: 30px;
	z-index: 20;
	width: min(280px, 100%);
	background: #fff;
	border: 1px solid var(--wwac-line);
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
	padding: 10px 12px;
	font-size: 12px;
	color: var(--wwac-dim);
}

.wwac-help-pop strong {
	color: var(--wwac-text);
}

.wwac-help-pop ul {
	list-style: none;
	margin: 6px 0;
	padding: 0;
}

.wwac-help-pop li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0;
	color: var(--wwac-text);
}

.wwac-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.wwac-dot.wwa-m1 { background: var(--wwa-m1); }
.wwac-dot.wwa-m2 { background: var(--wwa-m2); }
.wwac-dot.wwa-m3 { background: var(--wwa-m3); }
.wwac-dot.wwa-m4 { background: var(--wwa-m4); }

/* Uitgelichte beving. */
.wwac-top {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wwac-line);
}

.wwac-badge {
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	margin-top: 6px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 21px;
	font-weight: 700;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.wwac-badge.wwa-m1 { background: var(--wwa-m1); color: #3a2c00; }
.wwac-badge.wwa-m2 { background: var(--wwa-m2); }
.wwac-badge.wwa-m3 { background: var(--wwa-m3); }
.wwac-badge.wwa-m4 { background: var(--wwa-m4); }

.wwac-top-text {
	min-width: 0;
}

.wwac-level {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

/* Tekstkleur iets donkerder dan het label, voor leesbaarheid op wit. */
.wwac-level.wwa-m1 { color: #b8860b; }
.wwac-level.wwa-m2 { color: #e06a0c; }
.wwac-level.wwa-m3 { color: #c62e21; }
.wwac-level.wwa-m4 { color: #8e1b3e; }

.wwac-place {
	font-weight: 600;
	color: var(--wwac-text);
}

.wwac-desc {
	color: #4b5563;
}

.wwac-meta {
	margin-top: 4px;
	font-size: 12px;
	color: var(--wwac-dim);
}

/* Kerncijfers. */
.wwac-stats {
	display: flex;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid var(--wwac-line);
}

.wwac-stat {
	flex: 1 1 0;
	min-width: 0;
}

.wwac-stat:last-child:not(:first-child) {
	flex: 1.6 1 0;
}

.wwac-stat-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--wwac-text);
}

.wwac-stat-value {
	font-size: 17px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.wwac-stat-sub {
	font-size: 11px;
	color: var(--wwac-dim);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Laatste bevingen. */
.wwac-list-title {
	font-size: 11px;
	font-weight: 700;
	margin: 10px 0 4px;
}

.wwac-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wwac-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	margin: 0;
	border-top: 1px solid #f0f2f5;
}

.wwac-list li:first-child {
	border-top: none;
}

.wwac-mini {
	flex: 0 0 auto;
	min-width: 34px;
	padding: 2px 0;
	border-radius: 4px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.wwac-mini.wwa-m1 { background: var(--wwa-m1); color: #3a2c00; }
.wwac-mini.wwa-m2 { background: var(--wwa-m2); color: #2e1600; }
.wwac-mini.wwa-m3 { background: var(--wwa-m3); }
.wwac-mini.wwa-m4 { background: var(--wwa-m4); }

.wwac-li-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.wwac-li-place {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wwac-li-meta {
	font-size: 11px;
	color: var(--wwac-dim);
}

.wwac-li-dist {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.wwac-empty {
	margin: 4px 0 10px;
	color: var(--wwac-dim);
}

/* Knop naar de volledige pagina. */
.wwac a.wwac-button {
	display: block;
	margin: 12px 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--wwac-accent);
	color: #fff !important;
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none !important;
	transition: filter 0.15s ease;
}

.wwac a.wwac-button:hover,
.wwac a.wwac-button:focus-visible {
	filter: brightness(1.12);
}

.wwac-foot {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid var(--wwac-line);
	text-align: center;
	font-size: 11px;
	color: #9aa1ab;
}
