:root {
  color-scheme: light;
  --paper: #f7f7f1;
  --white: #fffffb;
  --ink: #183431;
  --muted: #4b645f;
  --line: #ccd6ca;
  --forest: #184e46;
  --mint: #dcebd7;
  --lime: #dbefa2;
  --match: #c7df72;
  --fail: #7b9296;
  --unknown: #c4946e;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 1rem/1.55 var(--body); color: var(--ink); background: var(--paper); }
a { color: inherit; text-underline-offset: .2em; }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 3px solid #c07721; outline-offset: 3px; }
button, select, input { accent-color: var(--forest); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, .cell-ident h3, .filter-card h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; line-height: 1.02; }
h1 { font-size: clamp(3.3rem, 5.25vw, 5.25rem); }
h2 { font-size: clamp(2.35rem, 3.75vw, 3.6rem); }
h3 { font-size: 1.14rem; line-height: 1.25; }
.shell { width: min(100% - 4rem, 78rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-180%); z-index: 5; padding: .65rem; background: var(--white); }
.skip:focus { transform: none; }
.masthead, .footer, .brand, nav, .actions { display: flex; align-items: center; }
.masthead, .footer { justify-content: space-between; gap: 1rem; }
.masthead { min-height: 4.45rem; border-bottom: 1px solid var(--line); }
.brand { gap: .65rem; text-decoration: none; font-size: 1.11rem; letter-spacing: -.035em; font-weight: 740; }
nav { gap: clamp(1rem, 3vw, 2rem); font-size: .92rem; font-weight: 620; }
nav a, .footer a { text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }
.eyebrow { color: #356c5b; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 760; margin-bottom: .8rem; }
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 1.65rem; height: 1px; margin-right: .6rem; background: currentColor; }
.hero { display: grid; grid-template-columns: .98fr 1.05fr; align-items: center; gap: clamp(1.5rem, 4.4vw, 5rem); padding-block: clamp(2rem, 4vw, 3.8rem); }
.hero h1 { font-size: clamp(3.3rem, 4.6vw, 4.65rem); text-wrap: balance; }
.hero h1 em { color: #34755e; font-weight: normal; }
.lede { max-width: 34rem; margin-block: 1.15rem 1.65rem; color: var(--muted); font-size: clamp(1.05rem, 1.25vw, 1.18rem); line-height: 1.62; }
.actions { flex-wrap: wrap; gap: .8rem 1.35rem; }
.button, .quiet, .text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; font-size: .94rem; font-weight: 670; }
.button { border-radius: .35rem; border: 1px solid var(--line); text-decoration: none; padding: .55rem 1.12rem; }
.primary { color: white; background: var(--forest); border-color: var(--forest); }
.primary:hover { background: #246755; }
.outline { background: var(--white); border-color: #8ba69a; }
.quiet { background: var(--white); border: 1px solid var(--line); border-radius: .32rem; padding: .2rem .68rem; }
.quiet:hover, .outline:hover { background: #e8f0e4; }
.hero-art { position: relative; overflow: hidden; border-radius: .55rem; box-shadow: 0 10px 34px #16383019; background: #173b3a; }
.hero-art img { display: block; width: 100%; height: clamp(20rem, 30vw, 27rem); object-fit: cover; }
.hero-art figcaption { display: flex; justify-content: space-between; gap: .6rem; padding: .56rem 1rem; background: #193e3d; color: #e8f1da; font-size: .79rem; letter-spacing: .035em; }
.explorer { border-top: 1px solid var(--line); padding-block: clamp(2.1rem, 4.2vw, 4rem); scroll-margin-top: 1rem; }
.section-head, .findings-head { display: flex; justify-content: space-between; align-items: end; gap: .6rem 2rem; }
.section-head { margin-bottom: 1.35rem; }
.section-head > p { max-width: 29rem; color: var(--muted); }
.region-buttons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; margin-bottom: .85rem; }
.region-buttons button { background: transparent; color: var(--ink); text-align: left; border: 1px solid var(--line); border-radius: .4rem; padding: .65rem .95rem; font-weight: 700; font-size: .98rem; }
.region-buttons button span { display: block; margin-top: .12rem; color: var(--muted); font-size: .85rem; font-weight: 480; }
.region-buttons button[aria-pressed="true"] { background: #e0ebda; border-color: #608570; box-shadow: inset 3px 0 #3f765d; }
.region-buttons button:hover { border-color: #608570; }
.period-bar { display: flex; align-items: center; gap: .8rem 1.1rem; padding: .82rem 1rem; border: 1px solid var(--line); border-radius: .44rem; background: #edf1e8; }
label, .mini-label { font-size: .87rem; font-weight: 630; color: #3f5e53; }
.period-bar label { display: flex; align-items: center; gap: .55rem; }
.period-bar p { color: var(--muted); margin-left: auto; max-width: 25rem; font-size: .88rem; line-height: 1.4; }
select, input[type="number"] { min-width: 0; border: 1px solid #bdcbbf; border-radius: .3rem; background-color: var(--white); }
select { max-width: 100%; padding: .46rem .45rem; font-size: .92rem; min-height: 2.52rem; }
.desk { display: grid; grid-template-columns: minmax(15.5rem, .88fr) minmax(0, 2.65fr); grid-template-areas: "filters map"; align-items: start; gap: .75rem; margin-top: .75rem; }
.filter-card, .map-card, .cell-panel, .comparison { border: 1px solid var(--line); background: var(--white); border-radius: .5rem; }
.filter-card { grid-area: filters; padding: 1.05rem 1.15rem; }
.filter-card h3, .cell-ident h3 { font-size: 1.75rem; margin: .2rem 0 .8rem; }
.filter-card .eyebrow { margin-bottom: .35rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset label { display: block; margin-bottom: .23rem; }
.field { display: flex; align-items: center; border: 1px solid #bdcbbf; border-radius: .3rem; margin-bottom: .68rem; background: var(--white); }
.field input[type="number"] { width: 100%; padding: .45rem .56rem; border: 0; background: transparent; font-variant-numeric: tabular-nums; }
.field span { padding-right: .62rem; color: var(--muted); white-space: nowrap; font-size: .85rem; }
.advanced { border-block: 1px solid var(--line); padding-block: .55rem; }
summary { font-size: .9rem; font-weight: 650; }
.hint { margin: .5rem 0; font-size: .87rem; color: var(--muted); }
.advanced select { width: 100%; }
.apply { width: 100%; margin-top: .8rem; }
.summary { margin-top: .7rem; font-size: .9rem; color: var(--muted); }
.summary strong { display: block; color: var(--ink); font-size: 1.06rem; }
.map-card { grid-area: map; overflow: hidden; }
.map-toolbar, .layer-tools, .map-credit { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; padding: .52rem .78rem; }
.map-toolbar { min-height: 3.3rem; }
.map-toolbar .quiet { margin-left: auto; min-height: 2.4rem; font-size: .88rem; }
.map-frame { position: relative; height: clamp(20rem, 31vw, 28rem); isolation: isolate; background: #214642; }
#map { position: absolute; inset: 0; }
.map-message { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #193b35ed; color: var(--white); width: max-content; max-width: calc(100% - 2rem); padding: .8rem 1.1rem; text-align: center; border-radius: .4rem; }
.map-message button { margin-top: .5rem; }
.place-label { pointer-events: none; display: flex; gap: .28rem; align-items: center; color: #fffef1; font: 620 .82rem/1.05 var(--body); text-shadow: 0 1px 2px #092d2c, 1px 0 2px #092d2c, -1px -1px 2px #092d2c; }
.place-label::before { content: ""; width: .34rem; height: .34rem; border-radius: 50%; background: #fffee8; box-shadow: 0 0 0 1.3px #153a33; }
.maplibregl-ctrl-scale { background: #fffdeaeb; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; padding: .46rem .76rem; min-height: 2.1rem; background: #eaf0e6; color: #1f4138; font-size: .84rem; }
.legend strong { font-size: .83rem; }
.key { display: inline-block; width: .86em; height: .86em; margin-right: .28rem; border-radius: .15rem; box-shadow: 0 0 0 1px #213c392c; }
.layer-tools { align-items: center; padding-block: .35rem; }
.opacity, #elevation-range, #elevation-range label { display: inline-flex; align-items: center; gap: .45rem; }
.opacity { font-size: .84rem; }
.opacity input { width: 5.5rem; }
.opacity output { width: 2.4rem; font-variant-numeric: tabular-nums; }
#elevation-range input { width: 4.35rem; padding: .23rem; font-size: .88rem; }
#elevation-range .quiet { min-height: 2.1rem; font-size: .85rem; }
.map-readout { padding: .15rem .78rem .38rem; color: #3f594d; font-size: .87rem; min-height: 1.75rem; }
.map-credit { border-top: 1px solid #dce3d8; background: #f5f6ef; font-size: .76rem; line-height: 1.4; padding-block: .35rem; justify-content: space-between; }
#findings { margin-top: 1.35rem; }
.findings-head { align-items: center; }
.findings-head p { font-size: .86rem; color: var(--muted); }
.shortlist { display: flex; flex-wrap: wrap; gap: .42rem; margin-block: .65rem 1rem; }
.shortlist button { text-align: left; border-radius: .36rem; border: 1px solid var(--line); background: var(--white); font-size: .88rem; padding: .45rem .65rem; }
.shortlist button[aria-pressed="true"] { border-color: var(--forest); background: #e4eddd; }
.shortlist small { display: block; color: var(--muted); }
.cell-panel { display: grid; grid-template-columns: minmax(14rem,.85fr) minmax(0,2.5fr); gap: 1rem 1.5rem; margin-top: .8rem; padding: 1.15rem; }
.cell-ident label { display: block; margin-bottom: .2rem; }
.cell-ident select { width: 100%; }
.cell-result { margin-block: .48rem; color: var(--forest); }
.cell-ident .button { font-size: .87rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .42rem; margin: 0; }
.metrics > div { background: #eff3e9; border-radius: .35rem; padding: .5rem .63rem; }
.metrics dt { font-size: .82rem; color: var(--muted); }
.metrics dd { margin: .12rem 0 0; font-size: 1.05rem; font-weight: 680; }
.delta-note, .period-caption { margin-bottom: .45rem; font-size: .9rem; color: var(--muted); }
.delta-note { margin-block: .45rem .15rem; }
.data-detail { border-top: 1px solid var(--line); padding-top: .52rem; margin-top: .65rem; }
table { border-collapse: collapse; width: 100%; margin-top: .55rem; font-size: .86rem; text-align: left; }
th, td { padding: .35rem .42rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; }
thead th { color: #3d594b; }
.check-state { white-space: nowrap; font-weight: 650; color: #2c664c; }
.check-state[data-state="fail"] { color: #854229; }
.check-state[data-state="unknown"] { color: #765a20; }
.rain-bars { display: flex; gap: .28rem; align-items: flex-end; height: 6.4rem; margin-block: .7rem .3rem; }
.rain-bars div { flex: 1; min-width: 0; text-align: center; font-size: .75rem; color: var(--muted); }
.rain-bars i { display: block; margin-inline: auto; width: 72%; background: #488375; border-radius: 2px 2px 0 0; }
.rain-bars i.missing { height: .15rem; background: var(--unknown); }
.comparison { margin-top: .8rem; padding: 1.1rem; }
.comparison > p { color: var(--muted); font-size: .9rem; margin-block: .3rem; }
.comparison th, .comparison td { width: 33%; }
.comparison button { display: block; margin-top: .22rem; min-height: 2rem; padding: .15rem .45rem; font-size: .82rem; }
.case-strip { padding-block: clamp(2rem, 4.7vw, 4.2rem); background: #183e3c; color: #f5f6e7; }
.case-inner { display: grid; grid-template-columns: 1fr 1.28fr; gap: 1.3rem 3rem; align-items: center; }
.case-strip p:not(.eyebrow) { margin-bottom: 1.1rem; color: #dee9db; max-width: 42rem; }
.case-strip .eyebrow { color: var(--lime); }
.pale { background: var(--lime); border-color: var(--lime); color: #173b32; }
.footer { padding-block: 1.2rem; font-size: .87rem; color: var(--muted); }
@media (max-width: 64rem) {
  .period-bar label { flex-direction: column; align-items: start; gap: .16rem; }
  .period-bar p { max-width: 19rem; }
  .desk { grid-template-columns: minmax(14rem,.85fr) minmax(0,2fr); }
}
@media (max-width: 47rem) {
  .shell { width: calc(100% - 1.5rem); }
  .masthead { min-height: 3.8rem; gap: .45rem; }
  .brand { font-size: .95rem; gap: .4rem; }
  .brand img { width: 29px; height: 29px; }
  nav { font-size: .82rem; gap: .7rem; }
  nav a { padding-block: .7rem; }
  .hero { grid-template-columns: 1fr; gap: 1.25rem; padding-block: 2rem 1.5rem; }
  .hero h1 { font-size: clamp(3.3rem, 9.5vw, 4.3rem); }
  .hero-art img { height: clamp(16.5rem, 62vw, 22rem); }
  .hero .lede { margin-block: .85rem 1rem; }
  .section-head, .findings-head { flex-direction: column; align-items: start; }
  .region-buttons { gap: .32rem; }
  .region-buttons button { padding: .5rem .43rem; font-size: .83rem; line-height: 1.32; }
  .region-buttons button span { display: none; }
  .period-bar { display: grid; grid-template-columns: minmax(0,1.24fr) minmax(0,1fr); gap: .44rem; padding: .55rem; }
  .period-bar label, .period-bar select { width: 100%; }
  .period-bar p { grid-column: 1/-1; margin: 0; max-width: none; }
  .period-bar select { font-size: .84rem; padding-inline: .2rem; }
  .desk { grid-template-columns: minmax(0,1fr); grid-template-areas: "map" "filters"; }
  .map-frame { height: clamp(20rem, 50svh, 27rem); }
  .map-toolbar { gap: .35rem; }
  .map-toolbar select { font-size: .85rem; }
  .map-toolbar .quiet { font-size: .84rem; }
  .cell-panel, .case-inner { grid-template-columns: 1fr; }
  .cell-panel, .filter-card, .comparison { padding: .85rem; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  th, td { padding: .3rem .18rem; }
  .shortlist button { flex: 1 1 7.8rem; }
}
@media (max-width: 30rem) {
  .period-bar { grid-template-columns: minmax(0, 1fr); }
  .period-bar label { display: grid; grid-template-columns: minmax(5.5rem, .68fr) minmax(0, 1.55fr); align-items: center; gap: .4rem; }
  .map-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .map-toolbar label { grid-column: 1/-1; }
}
@media (max-width: 23rem) {
  nav a:last-child { display: none; }
  .period-bar label { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
