:root { color: #203a2e; background: #f4f3ec; font: 15px/1.55 system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
header, main { max-width: 1400px; margin: auto; padding: 22px 28px; }
header { padding-bottom: 6px; }
a { color: #286344; text-underline-offset: 3px; }
header > a { font-size: 13px; }
.eyebrow { margin: 25px 0 7px; font-size: 10px; letter-spacing: 1.7px; }
h1 { font: 38px/1.15 Georgia, serif; margin: 0 0 10px; }
header > p:last-child { color: #657166; margin: 0; }
.purpose { max-width: 680px; margin: 0 0 10px; padding: 10px 12px; border-left: 3px solid #b98a2c; border-radius: 6px; background: #f6efdc; color: #4d3d14; font-size: 14px; line-height: 1.5; }
.controls { display: flex; flex-wrap: wrap; gap: 14px; }
label { display: grid; gap: 5px; font-size: 12px; color: #56695b; }
select, input, button { font: inherit; color: #203a2e; background: #fffefa; border: 1px solid #cbd3c7; border-radius: 5px; padding: 10px; }
select { max-width: 100%; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid #598769; outline-offset: 3px; }
#status { min-height: 24px; font-size: 12px; color: #647264; }
#status.error { color: #9a3c24; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 330px; border: 1px solid #ccd5c7; border-radius: 8px; overflow: hidden; background: #fffefa; }
.map-section { min-width: 0; position: relative; }
#map { height: 580px; }
.legend { position: absolute; bottom: 38px; left: 12px; width: 240px; padding: 12px; background: #fffefaf5; border: 1px solid #d9dfd4; border-radius: 6px; font-size: 11px; pointer-events: none; }
.ramp { height: 8px; background: linear-gradient(to right, #edf0dc, #a9c47d, #225d3d); margin-top: 8px; border-radius: 4px; }
.ends { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.legend p { color: #63705e; font-size: 10px; margin: 7px 0 0; }
aside { padding: 20px; overflow-wrap: anywhere; border-left: 1px solid #dde2d7; }
.cell-navigation { display: flex; align-items: end; gap: 9px; }
.cell-navigation input { width: 100px; }
.cell-navigation button { font-size: 12px; }
h2 { font: 22px Georgia, serif; margin: 23px 0 12px; }
h3 { font-size: 13px; margin: 22px 0 7px; }
.cell-meta { color: #74806d; font-size: 10px; }
.cell-stat { font-size: 28px; margin: 7px 0; font-variant-numeric: tabular-nums; }
.cell-stat span { font-size: 11px; color: #69755f; }
.coverage { font-size: 12px; background: #edf1e6; border-radius: 5px; padding: 9px; }
table { border-collapse: collapse; font-size: 11px; width: 100%; }
th, td { padding: 6px 3px; border-bottom: 1px solid #e5e8df; text-align: right; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
caption { text-align: left; font-size: 10px; color: #69755f; margin-bottom: 7px; }
.sources { font-size: 12px; margin: 23px 0; max-width: 920px; }
.sources summary { cursor: pointer; font-weight: 600; }
.sources li { margin: 8px 0; overflow-wrap: anywhere; }
@media (max-width: 800px) {
	header, main { padding: 18px 14px; }
	h1 { font-size: 32px; }
	.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.controls label:last-child { grid-column: 1 / -1; }
	.workspace { grid-template-columns: 1fr; }
	#map { height: 440px; max-height: 60vh; min-height: 320px; }
	aside { border-left: 0; border-top: 1px solid #dde2d7; }
	.legend { width: 205px; }
}
