:root {
  --ink: #182e27;
  --muted: #505e54;
  --line: #d5d8c9;
  --paper: #f8f7ef;
  --card: #fffef8;
  --green: #223d31;
  --green-light: #e8ece0;
  --orange: #f8a16d;
  --accent: #813e22;
  --accent-soft: #f9ebd9;
  --teal: #2e5c47;
  --level1: #52635b;
  --level2: #a45322;
  --level3: #85383d;
  --radius: 6px;
  --max: 1344px;
  --gutter: clamp(18px, 4vw, 52px);
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #a45322; outline-offset: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  width: auto; height: auto; clip-path: none; left: 12px; top: 12px;
  background: var(--card); padding: 8px 12px; z-index: 50;
}

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 20px; min-height: 74px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 790; letter-spacing: -.045em; font-size: 1.32rem; text-decoration: none;
}
.brand-mark {
  display: grid; place-items: center; width: 31px; height: 31px;
  background: var(--green); border-radius: 4px;
}
.brand-mark i {
  width: 14px; height: 12px; border: 1px solid var(--orange);
  border-top: 0; position: relative; margin-top: 5px;
}
.brand-mark i::before {
  content: ""; position: absolute; top: -6px; left: 1px; width: 9px; height: 9px;
  border: solid var(--orange); border-width: 1px 0 0 1px; transform: rotate(45deg);
}
nav.site { display: flex; gap: clamp(13px, 2.4vw, 32px); margin-left: auto; flex-wrap: wrap; }
nav.site a {
  color: var(--muted); font-weight: 650; text-decoration: none; font-size: .9rem;
  padding-block: 8px; border-bottom: 2px solid transparent;
}
nav.site a:hover, nav.site a[aria-current="page"] { border-color: var(--accent); color: var(--ink); }

main { padding: 28px 0 74px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.048em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.1rem); line-height: .99; margin: 0 0 18px; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); line-height: 1.09; margin: 38px 0 15px; }
h3 { font-size: 1.06rem; margin: 0 0 6px; line-height: 1.3; }
p { max-width: 68ch; }
.lede { font-size: clamp(1.02rem, 1.7vw, 1.21rem); color: var(--muted); max-width: 56ch; }
.small { font-size: .875rem; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.eyebrow, .release-status { font-size: .74rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { color: var(--accent); margin: 0 0 16px; }
.release-status {
  color: var(--muted); display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 4px 18px; border-bottom: 1px solid var(--line); padding: 0 0 12px; margin-bottom: 36px;
}
.release-status time { color: var(--ink); }
#freshness-warning { color: var(--accent); font-weight: 700; letter-spacing: normal; text-transform: none; }
.page-intro { margin-bottom: 28px; }
.page-intro .address-form { margin-top: 24px; }
.property-intro .badge { margin-right: 6px; }
.property-intro h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }

.lead-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(24px, 4vw, 58px); align-items: center; margin: 0 0 32px;
}
.lead-copy { padding: 14px 0; min-width: 0; }
.lead-copy h1 { font-size: clamp(3.1rem, 5.8vw, 5.8rem); text-wrap: balance; }
.lead-copy .lede { margin: 0; max-width: 35ch; }
.address-form {
  display: flex; gap: 6px; max-width: 640px; margin: 23px 0 10px; padding: 5px;
  border: 1px solid #aab4a6; background: var(--card); border-radius: var(--radius);
}
.address-form:focus-within { border-color: var(--teal); outline: 2px solid var(--teal); }
.address-form input {
  min-width: 0; width: 100%; flex: 1; border: 0; padding: 10px 12px;
  color: var(--ink); background: transparent; font: inherit;
}
.address-form input:focus { outline: 0; }
.address-form input::placeholder { color: var(--muted); }
.button {
  padding: 11px 18px; border: 0; border-radius: 4px; background: var(--green);
  color: #fff; font: 700 .95rem/1.4 system-ui, sans-serif; cursor: pointer; text-decoration: none;
  display: inline-block;
}
.button.secondary { background: var(--accent-soft); color: var(--accent); }
.button:hover { background: var(--accent); color: #fff; }
.examples { font-size: .86rem; color: var(--muted); }
.examples a, .text-link { font-weight: 700; }

.map-frame { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
#map { height: clamp(340px, 32vw, 450px); background: #e0e7dc; position: relative; }
.map-page #map { height: clamp(420px, 65vh, 760px); }
.map-frame #map { display: block; }
.home-page #map { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.map-message {
  position: absolute; z-index: 1; left: 16px; right: 16px; top: 16px; margin: 0;
  color: var(--ink); background: var(--card); padding: 8px 12px; font-size: .86rem;
}
.map-message:empty { display: none; }
.map-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 18px;
  flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .82rem;
}
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.key-dot { display: inline-block; height: .65em; width: .65em; border-radius: 50%; margin-right: .5em; background: var(--level1); vertical-align: .06em; }
.key-dot.l2 { background: var(--level2); }
.key-dot.l3 { background: var(--level3); }
.map-caption .text-link { white-space: nowrap; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; padding: 14px 16px; }
.filters label { display: grid; gap: 4px; font-size: .8rem; font-weight: 650; color: var(--muted); min-width: 0; }
.filters select { padding: 8px 10px; border: 1px solid #aab4a6; border-radius: 4px; background: var(--card); color: var(--ink); font: inherit; }

.home-stats, .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-stats { background: var(--green); color: var(--card); border-radius: var(--radius); margin-bottom: 58px; }
.stats { margin: 28px 0; border-block: 1px solid var(--line); }
.stat { padding: 18px clamp(12px, 2.3vw, 28px); }
.stat + .stat { border-left: 1px solid var(--line); }
.home-stats .stat + .stat { border-color: #536d5d; }
.stat strong { display: block; font: 400 clamp(2rem, 4vw, 3.65rem)/1.07 var(--serif); letter-spacing: -.045em; font-variant-numeric: lining-nums tabular-nums; }
.stat span { display: block; padding-top: 5px; color: var(--muted); font-size: .85rem; }
.home-stats span { color: #edf1e8; }
.stat small { display: block; color: #ffc297; font-size: .73rem; }

.home-content { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 78px); align-items: start; }
.section-head h2, .evidence-guide h2 { margin-top: 0; }
.section-head .eyebrow, .evidence-guide .eyebrow { margin-bottom: 8px; }
.record-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.record-list li {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px;
  border-top: 1px solid var(--line); padding: 15px 0;
}
.record-address { color: var(--ink); font-weight: 750; font-size: 1.03rem; overflow-wrap: anywhere; }
.record-meta, .record-reason { margin: 4px 0 0; font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.record-list .badge { flex: 0 0 auto; max-width: 48%; }
.search-results { max-width: 860px; }
.results-status { font-size: .9rem; color: var(--muted); }
.evidence-guide { padding: clamp(20px, 3vw, 32px); background: var(--green-light); border-top: 3px solid var(--green); border-radius: 0 0 var(--radius) var(--radius); }
.evidence-list { margin: 16px 0; }
.evidence-list div { padding-block: 12px; border-top: 1px solid #c9d1c1; }
.evidence-list dt { font-weight: 750; font-size: .92rem; }
.evidence-list dd { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.safety-note { font-size: .86rem; }
.evidence-guide .text-link { font-size: .87rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card + .card { margin-top: 12px; }
.evidence-panel { background: var(--green-light); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 14px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list a.address { font-weight: 700; color: var(--ink); }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: .74rem; font-weight: 700; line-height: 1.3; }
.badge.l1 { background: #e7ece7; color: #344b40; }
.badge.l2 { background: #f9e9d5; color: #743713; }
.badge.l3 { background: #f3e0e0; color: #782c35; }
.badge.neutral { background: var(--green-light); color: var(--teal); }
.notice { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 13px 18px; margin: 20px 0; }
.notice p { margin: 0; }
.notice strong { color: var(--accent); }

table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .77rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.annual-chart { padding: 18px clamp(12px, 3vw, 32px); border-top: 2px solid var(--green); background: var(--green-light); margin-bottom: 18px; }
.chart-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; font-size: .8rem; }
.chart-key i { display: inline-block; height: 9px; width: 14px; margin-right: 6px; background: var(--level2); }
.chart-key span + span i, .chart-bars div + div i { background: var(--teal); }
.chart-row { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr); align-items: center; gap: 10px; border-top: 1px solid #cad2c5; padding-block: 6px; }
.chart-row span, .chart-bars b { font-size: .8rem; font-variant-numeric: tabular-nums; }
.chart-bars { padding-right: 3rem; }
.chart-bars div { display: flex; align-items: center; gap: 5px; line-height: 1.4; }
.chart-bars i { height: 8px; flex: 0 0 auto; background: var(--level2); }
dl.meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
dl.meta dt { color: var(--muted); font-size: .88rem; }
dl.meta dd { margin: 0; overflow-wrap: anywhere; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 12px 0 12px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.form-row { display: grid; gap: 8px; max-width: 460px; }
.form-row label { font-size: .88rem; color: var(--muted); }
.form-row input[type="email"] { padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 1rem; background: var(--card); }
footer.site { border-top: 1px solid var(--line); background: var(--green-light); padding: 22px 0 32px; font-size: .87rem; color: var(--muted); }
footer.site p { max-width: 80ch; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.grid-2 > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
.pagination { display: flex; justify-content: space-between; margin-top: 20px; }

@media (max-width: 760px) {
  .lead-grid, .home-content, .grid-2 { grid-template-columns: 1fr; }
  .lead-copy h1 { font-size: clamp(3rem, 9vw, 4.8rem); max-width: 13ch; }
  .lead-copy { padding-top: 0; }
  .home-stats { margin-bottom: 38px; }
  .home-stats, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .home-stats .stat:nth-child(n + 3) { border-color: #536d5d; }
  .property-intro + .notice + .grid-2 h2:first-child { margin-top: 0; }
}

@media (max-width: 540px) {
  header.site .wrap { gap: 4px; padding-top: 11px; }
  nav.site { margin-left: 0; width: 100%; gap: 16px; }
  nav.site a { font-size: .82rem; }
  main { padding-top: 19px; }
  .release-status { margin-bottom: 25px; }
  #map { height: 300px; }
  .filters label { width: 100%; }
  .address-form input { padding-inline: 8px; }
  .address-form .button { padding-inline: 12px; }
  .record-list li { flex-wrap: wrap; }
  .record-list .badge { max-width: 100%; }
  .card { padding: 16px; }
}

@media print {
  header.site, nav.site, footer.site, .no-print { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .card { border: 1px solid #999; }
}

.map-popup-actions { display: flex; flex-wrap: wrap; gap: 5px 12px; }
