:root {
  color-scheme: light;
  --paper: #f6f7f2;
  --white: #fff;
  --ink: #1c2928;
  --muted: #687672;
  --line: #dfe5de;
  --green: #1e6658;
  --green-deep: #174f45;
  --green-soft: #e9f2ed;
  --gold: #e5a74d;
  --shadow: 0 14px 38px rgb(34 54 49 / 7%);
  font-family: "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
button, input, select { font: inherit; }
.topbar { height: 76px; max-width: 1240px; margin: auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; color: white; background: var(--green); font: 800 13px "Segoe UI", sans-serif; letter-spacing: -.06em; }
.brand strong, .brand small { display: block; font-family: "Segoe UI", sans-serif; line-height: 1.08; }
.brand strong { font-size: 14px; font-weight: 800; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.source-link { color: var(--green-deep); font-size: 13px; font-weight: 600; text-decoration: none; }
.source-link span { padding-left: 3px; color: var(--muted); }
.page-shell { max-width: 1180px; padding: 0 28px 80px; margin: auto; }
.hero { min-height: 330px; padding: 62px 62px 48px; border-radius: 20px; color: white; background: radial-gradient(ellipse at 86% 18%, rgb(74 147 121 / 55%), transparent 30%), linear-gradient(112deg, #193c39 0%, #1e5d51 62%, #31735d 100%); display: flex; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; right: -88px; bottom: -220px; width: 390px; height: 390px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 50%; box-shadow: 0 0 0 42px rgb(255 255 255 / 3%), 0 0 0 88px rgb(255 255 255 / 3%); pointer-events: none; }
.hero-copy, .hero-stats { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 15px; color: #7cb6a0; font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--gold); box-shadow: 0 0 0 4px rgb(229 167 77 / 18%); }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Segoe UI", sans-serif; }
.hero h1 { margin: 0; font-size: clamp(37px, 5vw, 58px); letter-spacing: -.055em; line-height: 1.07; font-weight: 700; }
.hero h1 em { color: #b0dbc4; font-style: normal; }
.lede { max-width: 500px; margin: 18px 0 0; color: rgb(255 255 255 / 75%); font-size: 15px; line-height: 1.65; }
.hero-stats { align-self: end; display: flex; gap: 28px; padding-bottom: 7px; flex-shrink: 0; }
.stat { min-width: 76px; }
.stat strong, .stat span { display: block; }
.stat strong { font: 700 27px "Segoe UI", sans-serif; letter-spacing: -.04em; }
.stat span { margin-top: 3px; color: rgb(255 255 255 / 65%); font-size: 11px; white-space: nowrap; }
.search-panel { position: relative; z-index: 2; margin: -28px 24px 0; padding: 15px 18px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
#search-form { min-height: 60px; display: flex; align-items: center; gap: 13px; }
.search-icon { width: 23px; height: 23px; display: inline-flex; color: var(--green); }
.search-icon svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.8; }
#query { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 16px; background: transparent; }
#query::placeholder { color: #929d99; }
kbd { padding: 4px 7px; border: 1px solid #e5e9e4; border-radius: 5px; color: #8a9691; font-size: 10px; font-family: inherit; }
.clear-search { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #eff3ef; color: #65736e; font-size: 21px; line-height: 1; cursor: pointer; }
.filter-row { padding: 13px 0 14px; border-top: 1px solid #edf0ec; display: flex; align-items: end; gap: 12px; }
.filter-control { display: grid; gap: 6px; min-width: 160px; }
.filter-control span { color: #7b8983; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.filter-control select { height: 36px; padding: 0 26px 0 10px; border: 1px solid #e4e9e4; border-radius: 7px; outline-color: #7eb39a; background: #fff; color: #33413d; font-size: 12px; }
.reset-button { margin-left: auto; height: 36px; border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 700; cursor: pointer; }
.search-hint { min-height: 35px; margin: 0 -18px; padding: 9px 18px; border-top: 1px solid #edf0ec; color: #7c8985; font-size: 11px; display: flex; gap: 8px; align-items: center; }
.hint-icon { width: 14px; height: 14px; display: inline-grid; place-items: center; flex-shrink: 0; border: 1px solid #a3b5ab; border-radius: 50%; font: 700 9px Georgia, serif; color: var(--green); }
.results-section { padding: 55px 24px 0; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 19px; }
.results-eyebrow { margin-bottom: 6px; color: #7c8b85; font-size: 9px; }
.results-heading h2, .areas-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.result-count { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.results-list { display: grid; gap: 12px; }
.result-card { padding: 19px 21px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.result-card:hover { border-color: #bfd3c5; box-shadow: 0 8px 24px rgb(34 54 49 / 5%); }
.result-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.code-pill { padding: 4px 7px; border-radius: 5px; background: var(--green-soft); color: var(--green-deep); font: 700 10px "Segoe UI", sans-serif; }
.crumb { color: #87928d; font-size: 11px; }
.crumb-sep { color: #c1c9c4; font-size: 11px; }
.change-pill { padding: 4px 7px; border: 1px solid #f1e0c5; border-radius: 999px; background: #fff9ee; color: #8c6022; font-size: 10px; font-weight: 600; }
.change-pill.changed { border-color: #f3d8cf; background: #fff5f1; color: #a4492e; }
.change-pill.new { border-color: #d6e5fa; background: #f2f7ff; color: #41688e; }
.change-pill.unchanged { border-color: #e7ebe7; background: #f8faf7; color: #697771; }
.result-card h3 { margin: 0 0 7px; font: 700 15px/1.35 "Segoe UI", sans-serif; letter-spacing: -.02em; }
.result-card .goal-text { margin: 0; color: #53615c; font-size: 13px; line-height: 1.65; }
.result-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.meta-chip { padding: 5px 8px; border: 1px solid #edf0ec; border-radius: 5px; color: #65726d; background: #fafbf9; font-size: 10px; }
.result-bottom { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f2ef; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result-bottom a, .more-summary { color: var(--green); font-size: 11px; font-weight: 700; text-decoration: none; }
.result-bottom a:hover, .more-summary:hover { text-decoration: underline; }
.more-info { max-width: 640px; }
.more-info summary { list-style: none; cursor: pointer; }
.more-info summary::-webkit-details-marker { display: none; }
.more-info summary::before { content: "+"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border: 1px solid #cddbd2; border-radius: 50%; font-size: 13px; font-weight: 500; }
.more-info[open] summary::before { content: "−"; }
.zone-list { display: grid; gap: 10px; margin: 11px 0 2px; }
.zone { padding: 10px 12px; border-radius: 7px; background: #f7f9f6; }
.zone strong { display: block; margin-bottom: 4px; color: #52615a; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.zone p { margin: 0; color: #67736f; font-size: 11px; line-height: 1.55; white-space: pre-line; }
.zone a { display: inline-block; margin: 5px 8px 0 0; color: var(--green); font-size: 10px; text-decoration: none; }
.show-more { display: block; width: min(100%, 280px); height: 42px; margin: 18px auto 0; border: 1px solid #bfd3c5; border-radius: 8px; color: var(--green-deep); background: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.show-more[hidden] { display: none; }
.show-more:hover { background: var(--green-soft); }
.empty-state, .loading-state { padding: 38px 20px; border: 1px dashed #cfd9d0; border-radius: 12px; color: #788680; text-align: center; font-size: 13px; line-height: 1.6; background: rgb(255 255 255 / 55%); }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); font: 700 16px "Segoe UI", sans-serif; }
.suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.suggestions button { padding: 6px 10px; border: 1px solid #dce6dd; border-radius: 999px; color: var(--green); background: white; font-size: 11px; cursor: pointer; }
.areas-section { padding: 56px 24px 0; }
.areas-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.areas-heading .eyebrow { margin-bottom: 6px; color: #7c8b85; font-size: 9px; }
.areas-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.area-card { padding: 15px 16px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; text-align: left; transition: transform .15s, border .15s; }
.area-card:hover { transform: translateY(-2px); border-color: #a7c5b2; }
.area-card .area-code { color: #7e9188; font: 700 9px "Segoe UI", sans-serif; letter-spacing: .1em; }
.area-card strong { display: block; margin-top: 5px; font: 700 13px "Segoe UI", sans-serif; }
.area-card span:last-child { display: block; margin-top: 5px; color: #829089; font-size: 10px; }
.source-note { margin: 42px 24px 0; padding: 0 0 15px; border-bottom: 1px solid var(--line); color: var(--muted); }
.source-note summary { color: #4e625a; font-size: 12px; font-weight: 700; cursor: pointer; }
.source-note #source-copy { max-width: 760px; padding: 12px 0 0; font-size: 11px; line-height: 1.7; }
.source-note #source-copy p { margin-bottom: 8px; }
.source-note a { color: var(--green); }
.footer { max-width: 1180px; margin: auto; padding: 20px 52px 32px; color: #87928d; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; }
.footer a { color: var(--green); font-weight: 600; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 780px) {
  .topbar { height: 66px; padding: 0 19px; }
  .page-shell { padding: 0 15px 55px; }
  .hero { display: block; padding: 40px 27px 37px; min-height: 0; border-radius: 15px; }
  .hero h1 { font-size: 43px; }
  .lede { font-size: 13px; }
  .hero-stats { gap: 24px; margin-top: 30px; }
  .stat strong { font-size: 23px; }
  .search-panel { margin: -19px 8px 0; padding: 10px 12px 0; }
  #search-form { min-height: 54px; }
  #query { font-size: 14px; }
  kbd { display: none; }
  .filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .filter-control { min-width: 0; }
  .filter-control select { width: 100%; }
  .reset-button { margin-left: 0; justify-self: start; }
  .search-hint { margin: 0 -12px; padding-right: 12px; padding-left: 12px; font-size: 10px; }
  .results-section, .areas-section { padding-right: 7px; padding-left: 7px; }
  .result-card { padding: 16px; }
  .result-count { max-width: 150px; text-align: right; line-height: 1.4; }
  .areas-heading { align-items: start; display: block; }
  .areas-heading > p { margin-top: 8px; text-align: left; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .source-note { margin-right: 7px; margin-left: 7px; }
  .footer { padding: 15px 22px 26px; flex-direction: column; gap: 7px; }
}
@media (max-width: 420px) { .hero h1 { font-size: 37px; } .area-grid { grid-template-columns: 1fr; } .filter-row { grid-template-columns: 1fr; } }
