:root {
  color-scheme: light;
  --ink: #10233f;
  --muted: #66788d;
  --line: #d8e7f3;
  --panel: #ffffff;
  --wash: #f3f8fd;
  --wash-strong: #e6f1fa;
  --pine: #123a63;
  --pine-2: #092542;
  --blue: #2f6fa7;
  --blue-soft: #eaf4fc;
  --sky: #d7ebfa;
  --aqua: #55a8ca;
  --amber: #bf7a32;
  --rose: #9d3e61;
  --gold: #e8b45d;
  --shadow: 0 18px 45px rgba(22, 57, 92, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f8fbff 0%, var(--wash) 42%, #eef6fb 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(31, 76, 118, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 18px;
  color: var(--pine-2);
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pine-2), var(--blue));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(18, 58, 99, 0.22);
}

.disclaimer {
  justify-self: center;
  max-width: 560px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(234, 244, 252, 0.76);
  color: #526c87;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.top-actions,
.map-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.icon-button,
.square-button,
.wide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(30, 70, 107, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.icon-button {
  padding: 0 14px;
}

.square-button {
  width: 40px;
  padding: 0;
}

.icon-button:hover,
.square-button:hover,
.wide-button:hover {
  transform: translateY(-1px);
  border-color: #adcce5;
  box-shadow: 0 8px 22px rgba(30, 70, 107, 0.11);
}

.icon-button.solid,
.wide-button {
  background: linear-gradient(135deg, var(--pine), var(--blue));
  border-color: #1f5f91;
  color: #ffffff;
}

.wide-button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  line-height: 1.2;
  text-align: center;
  font-weight: 750;
  white-space: normal;
}

.wide-button.subtle {
  background: #f7fbff;
  border-color: var(--line);
  color: var(--pine);
}

.wide-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.icon-button svg,
.square-button svg,
.wide-button svg,
.eligibility-strip svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.app-shell {
  display: grid;
  grid-template-columns: 310px minmax(520px, 1.28fr) 410px;
  gap: 16px;
  min-height: calc(100vh - 68px);
  padding: 16px;
}

.filter-panel,
.results-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.panel-section,
.map-stage,
.results-panel > .results-header,
.detail-panel,
.listing-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(35, 82, 123, 0.06);
}

.panel-section {
  padding: 17px;
}

.route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.route-pills a,
.listing-link,
.detail-actions a,
.link-list a,
.source-links a,
.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}

.route-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.route-pills a.active {
  border-color: rgba(47, 111, 167, 0.38);
  background: var(--blue-soft);
  color: var(--pine);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--pine-2);
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.coverage-summary {
  display: grid;
  gap: 8px;
  margin: -5px 0 16px;
}

.coverage-summary div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fbfdff 0%, #edf6fd 100%);
}

.coverage-summary svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.coverage-summary strong,
.coverage-summary span {
  display: block;
}

.coverage-summary strong {
  color: var(--pine-2);
  font-size: 12px;
  line-height: 1.2;
}

.coverage-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

h2 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.search-form {
  display: grid;
  gap: 14px;
}

.search-form label,
.grid-fields label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.input-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.input-row svg {
  width: 18px;
  color: var(--blue);
}

.input-row input,
.grid-fields input,
.grid-fields select,
.results-header select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.input-row input {
  height: 44px;
}

.search-suggestions {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid #c7deef;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9fe 100%);
  box-shadow: 0 12px 28px rgba(27, 72, 112, 0.1);
}

.suggestion-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.suggestion-button:hover,
.suggestion-button:focus-visible {
  border-color: #b8d7ed;
  background: #ffffff;
  outline: 0;
}

.suggestion-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
}

.suggestion-icon svg {
  width: 16px;
  height: 16px;
}

.suggestion-copy strong,
.suggestion-copy span {
  display: block;
}

.suggestion-copy strong {
  color: var(--pine-2);
  font-size: 13px;
}

.suggestion-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.suggestion-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbff;
  color: var(--pine);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.suggestion-empty {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}

.suggestion-empty strong {
  color: var(--pine-2);
  font-size: 13px;
}

.suggestion-empty span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf6fd;
}

.segmented button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented button.active {
  background: #ffffff;
  color: var(--pine);
  box-shadow: 0 4px 14px rgba(30, 70, 107, 0.1);
}

.grid-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grid-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.grid-fields input,
.grid-fields select {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.toggle-list {
  display: grid;
  gap: 10px;
}

.toggle-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.toggle-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.address-check-card {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #eef7fd 100%);
}

.address-check-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.address-check-heading h2 {
  margin-bottom: 0;
  color: var(--pine-2);
  font-size: 17px;
}

.address-check-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.address-input-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.address-input-row svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.address-input-row input {
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.address-result {
  display: grid;
  gap: 0;
  margin: 0;
}

.address-result div {
  display: grid;
  grid-template-columns: minmax(86px, 0.58fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.address-result dd {
  max-width: none;
  overflow-wrap: anywhere;
  text-align: left;
}

.check-history {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.check-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.check-history-heading strong {
  color: var(--pine-2);
  font-size: 13px;
}

.check-history-heading button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.check-history-empty {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px dashed #b9d4e8;
  border-radius: 8px;
  background: #fbfdff;
}

.check-history-empty strong,
.check-history-empty span {
  display: block;
}

.check-history-empty strong {
  color: var(--pine-2);
  font-size: 12px;
}

.check-history-empty span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.check-history-list {
  display: grid;
  gap: 7px;
}

.check-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 9px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  text-decoration: none;
}

.check-history-row.pass {
  border-left-color: var(--pine);
}

.check-history-row.fail {
  border-left-color: var(--rose);
}

.check-history-row strong,
.check-history-row small {
  display: block;
}

.check-history-row strong {
  color: var(--pine-2);
  font-size: 12px;
}

.check-history-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.check-history-row em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--pine);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.handoff-packet {
  display: grid;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #c7deef;
  border-radius: 8px;
  background: #fbfdff;
}

.handoff-packet.empty {
  border-style: dashed;
}

.handoff-packet p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.handoff-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.handoff-heading strong,
.handoff-heading span {
  display: block;
}

.handoff-heading strong {
  color: var(--pine-2);
  font-size: 13px;
}

.handoff-heading span {
  max-width: 150px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.handoff-summary {
  display: grid;
  gap: 0;
  margin: 0;
}

.handoff-summary div {
  display: grid;
  grid-template-columns: minmax(86px, 0.5fr) minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.handoff-summary div:first-child {
  border-top: 0;
}

.handoff-summary dd {
  max-width: none;
  overflow-wrap: anywhere;
  text-align: left;
}

.packet-details {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.packet-details summary {
  cursor: pointer;
  color: var(--pine);
  font-size: 12px;
  font-weight: 850;
}

.packet-details pre {
  max-width: 100%;
  min-width: 0;
  max-height: 240px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c2038;
  color: #eaf4fc;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

.readiness {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}

.readiness dl,
.fact-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 0;
}

.readiness dl div,
.fact-list div,
.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

dt,
dd {
  margin: 0;
}

dt,
.plan-row span {
  color: var(--muted);
  font-size: 12px;
}

dd,
.plan-row strong {
  font-size: 13px;
  font-weight: 780;
  text-align: right;
}

.score-ring {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 54%, transparent 55%),
    conic-gradient(var(--blue) 0 82%, #d8eaf7 82% 100%);
}

.score-ring span {
  color: var(--pine);
  font-size: 22px;
  font-weight: 850;
}

.subscribe-box {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #edf6fd 100%);
}

.subscribe-box p {
  margin-bottom: 0;
}

.map-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  min-height: 640px;
  border-color: #cfe1ee;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.breadcrumbs b {
  color: #9ba9a4;
  font-weight: 500;
}

.breadcrumbs span {
  display: inline;
  margin-top: 0;
  color: var(--pine);
  font-size: inherit;
}

.map-toolbar strong {
  color: var(--pine-2);
  font-size: 18px;
}

.map-toolbar span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.map-canvas {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #deeffb;
}

.map-scene,
.eligibility-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.eligibility-map-svg {
  display: block;
}

.parcel-shapes path {
  fill: rgba(255, 255, 255, 0.38);
  stroke: rgba(18, 58, 99, 0.18);
  stroke-width: 2;
}

.map-labels text {
  fill: rgba(16, 35, 63, 0.58);
  font-size: 22px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.74);
  stroke-width: 7px;
}

.layer-labels text {
  fill: rgba(18, 58, 99, 0.62);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-source-card {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 10px;
  max-width: min(390px, calc(100% - 32px));
  padding: 14px;
  border: 1px solid rgba(194, 218, 237, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(24, 61, 98, 0.16);
  backdrop-filter: blur(10px);
}

.map-source-card img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(17, 43, 73, 0.16);
}

.map-source-card div {
  display: grid;
  gap: 4px;
}

.map-source-card strong {
  color: var(--pine-2);
  font-size: 14px;
}

.map-source-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
}

.map-source-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.map-source-empty {
  grid-column: 1 / -1;
}

.map-quick-links {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(620px, calc(100% - 32px));
  pointer-events: none;
}

.map-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(194, 218, 237, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pine);
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(24, 61, 98, 0.12);
  pointer-events: auto;
}

.grid-map {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.44) 1px, transparent 1px);
  background-size: 62px 62px;
  transform: rotate(-9deg);
}

.zone {
  position: absolute;
  border: 2px solid rgba(207, 121, 46, 0.48);
  background: rgba(207, 121, 46, 0.18);
}

.zone-one {
  top: -12%;
  right: -8%;
  width: 34%;
  height: 60%;
  border-radius: 46% 0 0 54%;
}

.zone-two {
  bottom: -18%;
  left: -7%;
  width: 40%;
  height: 54%;
  border-radius: 0 55% 0 0;
}

.road {
  position: absolute;
  height: 18px;
  border-radius: 999px;
  background: rgba(36, 79, 116, 0.34);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.42);
  transform-origin: center;
}

.road-one {
  top: 49%;
  left: 12%;
  width: 76%;
  transform: rotate(-12deg);
}

.road-two {
  top: 28%;
  left: 25%;
  width: 58%;
  transform: rotate(38deg);
}

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  min-width: 62px;
  min-height: 34px;
  padding: 0 10px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(17, 43, 73, 0.24);
  transform: translate(-50%, -50%);
}

.pin.active {
  outline: 5px solid rgba(47, 111, 167, 0.2);
  box-shadow: 0 16px 34px rgba(17, 43, 73, 0.28);
}

.pin-eligible {
  background: var(--pine);
}

.pin-review {
  background: var(--amber);
}

.pin-ineligible {
  background: var(--rose);
}

.map-legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 10px;
  border: 1px solid rgba(205, 225, 239, 0.98);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(24, 61, 98, 0.12);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 720;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.eligible {
  background: var(--pine);
}

.legend-dot.review {
  background: var(--amber);
}

.legend-block {
  width: 14px;
  height: 10px;
  border: 1px solid rgba(207, 121, 46, 0.68);
  background: rgba(207, 121, 46, 0.22);
}

.eligibility-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.eligibility-strip article {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.eligibility-strip svg {
  color: var(--blue);
}

.eligibility-strip article:last-child {
  border-right: 0;
}

.eligibility-strip strong,
.eligibility-strip span {
  display: block;
}

.eligibility-strip strong {
  font-size: 13px;
}

.eligibility-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.results-header h2 {
  margin-bottom: 0;
}

.results-header select {
  width: 128px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.listing-list {
  display: grid;
  gap: 12px;
}

.listing-card {
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.listing-card button {
  display: grid;
  grid-template-columns: 136px 1fr;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.listing-card.active {
  border-color: rgba(47, 111, 167, 0.58);
  box-shadow: 0 0 0 3px rgba(47, 111, 167, 0.12), 0 12px 34px rgba(24, 61, 98, 0.12);
  transform: translateY(-1px);
}

.listing-card.live-checked {
  border-color: rgba(18, 58, 99, 0.36);
}

.listing-card img {
  width: 136px;
  height: 144px;
  object-fit: cover;
}

.listing-link {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  background: #f7fbff;
  font-size: 12px;
  font-weight: 780;
}

.listing-content {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 13px;
}

.listing-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.listing-price {
  color: var(--pine-2);
  font-size: 22px;
  font-weight: 850;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.badge.eligible {
  background: linear-gradient(135deg, var(--pine), var(--blue));
}

.badge.review {
  background: var(--amber);
}

.badge.ineligible {
  background: var(--rose);
}

.listing-address {
  color: var(--ink);
  font-size: 15px;
  font-weight: 770;
}

.listing-meta,
.listing-source,
.listing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.listing-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--pine);
  font-size: 11px;
  font-weight: 780;
}

.detail-panel {
  padding: 16px;
  border-color: #cfe1ee;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-panel h2 {
  color: var(--pine-2);
  font-size: 21px;
}

.detail-signal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fbff 0%, #eaf4fc 100%);
}

.detail-signal p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.signal-score {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pine-2), var(--blue));
  color: #ffffff;
}

.signal-score.review {
  background: var(--amber);
}

.signal-score.ineligible {
  background: var(--rose);
}

.signal-score span {
  margin-bottom: -15px;
  font-size: 24px;
  font-weight: 900;
}

.signal-score small {
  align-self: start;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.eligibility-stack {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.rest-check-panel {
  display: grid;
  gap: 11px;
  margin: 12px 0;
  padding: 13px;
  border: 1px solid #c7deef;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f8fe 100%);
}

.rest-check-panel p {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.35;
}

.rest-check-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.rest-check-heading h3 {
  margin: 0;
  color: var(--pine-2);
  font-size: 15px;
}

.rest-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 860;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.rest-status.pass {
  background: linear-gradient(135deg, var(--pine), var(--blue));
}

.rest-status.review,
.rest-status.info {
  background: var(--amber);
}

.rest-status.fail {
  background: var(--rose);
}

.rest-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rest-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.rest-fields input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
}

.rest-actions {
  display: grid;
  gap: 6px;
}

.rest-actions small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.rest-result {
  display: grid;
  gap: 0;
  margin: 0;
}

.rest-result div {
  display: grid;
  grid-template-columns: minmax(84px, 0.5fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.rest-result dt,
.rest-result dd {
  font-size: 11px;
}

.rest-result dd {
  max-width: none;
  overflow-wrap: anywhere;
  text-align: left;
}

.rest-source-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 820;
  text-decoration: none;
}

.source-transparency-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 13px;
  border: 1px solid #bcd8ec;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfdff 0%, #edf6fd 100%);
}

.source-transparency-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.source-transparency-heading h3 {
  margin: 0;
  color: var(--pine-2);
  font-size: 15px;
}

.source-transparency-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 860;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.source-ledger {
  display: grid;
  gap: 0;
  margin: 0;
}

.source-ledger div {
  display: grid;
  grid-template-columns: minmax(92px, 0.46fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.source-ledger dd {
  display: grid;
  gap: 3px;
  max-width: none;
  overflow-wrap: anywhere;
  text-align: left;
}

.source-ledger dd strong {
  color: var(--ink);
  font-size: 12px;
}

.source-ledger dd small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.source-transparency-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-transparency-links a,
.source-transparency-links span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 820;
  text-decoration: none;
}

.source-caveat {
  margin: 0;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.stack-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.stack-item svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.stack-item strong,
.stack-item span {
  display: block;
}

.stack-item strong {
  font-size: 13px;
}

.stack-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.stack-item.pass {
  border-left-color: var(--pine);
}

.stack-item.pass svg {
  color: var(--pine);
}

.stack-item.review {
  border-left-color: var(--amber);
}

.stack-item.review svg {
  color: var(--amber);
}

.stack-item.fail {
  border-left-color: var(--rose);
}

.stack-item.fail svg {
  color: var(--rose);
}

.stack-item.info {
  border-left-color: var(--blue);
}

.stack-item.info svg {
  color: var(--blue);
}

.detail-actions {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.detail-actions a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
  font-size: 12px;
  font-weight: 780;
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed #b7c8c1;
  border-radius: 8px;
  background: #fbfdfc;
}

.empty-state strong {
  font-size: 14px;
}

.empty-state span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.feed-empty-state {
  border-color: #bcd8ec;
  background: linear-gradient(180deg, #ffffff 0%, #edf6fd 100%);
}

.feed-empty-state span + span {
  padding-top: 2px;
}

.location-content {
  padding: 6px 16px 30px;
}

.content-heading {
  max-width: 1100px;
  margin: 0 auto 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #edf6fd 100%);
  box-shadow: 0 8px 28px rgba(35, 82, 123, 0.06);
}

.content-heading h2 {
  margin-bottom: 8px;
  color: var(--pine-2);
  font-size: 28px;
}

.content-heading p:last-child {
  margin-bottom: 0;
}

.content-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin: 0 0 12px;
  padding: 0 10px;
  border: 1px solid #bcd8ec;
  border-radius: 999px;
  background: #f7fbff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr) minmax(260px, 0.75fr);
  gap: 16px;
}

.location-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(35, 82, 123, 0.06);
}

.location-card.wide {
  grid-column: span 1;
  grid-row: span 2;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-heading svg {
  width: 21px;
  height: 21px;
  color: var(--blue);
}

.card-heading h3 {
  margin: 0;
  color: var(--pine-2);
  font-size: 17px;
  line-height: 1.2;
}

.location-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.local-insight-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.verification-card {
  background: linear-gradient(180deg, #ffffff 0%, #edf6fd 100%);
}

.verification-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.verification-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.verification-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  content: "";
  font-size: 11px;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  gap: 0;
  margin: 0;
}

.metric-grid div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.metric-grid div:first-child {
  border-top: 0;
}

.metric-grid dd {
  max-width: 52%;
}

.caps-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.caps-table th,
.caps-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.caps-table th:first-child,
.caps-table td:first-child {
  text-align: left;
}

.caps-table th {
  background: #edf6fd;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.caps-table tr:last-child td {
  border-bottom: 0;
}

.small-note {
  color: var(--muted);
  font-size: 12px !important;
}

.income-pending {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px dashed #a9c9df;
  border-radius: 8px;
  background: #f7fbff;
}

.income-pending strong,
.income-pending span {
  display: block;
}

.income-pending strong {
  color: var(--pine-2);
  font-size: 13px;
}

.income-pending span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.link-list,
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-list a,
.source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
  font-size: 12px;
  font-weight: 780;
}

.source-card {
  grid-column: span 2;
  background: linear-gradient(180deg, #ffffff 0%, #eef7fd 100%);
}

.directory-panel {
  grid-column: span 2;
}

.directory-groups {
  display: grid;
  gap: 14px;
}

.directory-group {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.directory-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.directory-group strong,
.directory-group span {
  display: block;
}

.directory-group strong {
  color: var(--pine-2);
  font-size: 14px;
}

.directory-group span,
.directory-empty {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbff;
  color: var(--pine);
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
}

.directory-chip:hover,
.map-quick-links a:hover {
  border-color: #9fc7e5;
  background: #eaf4fc;
}

.directory-chip.strong-chip {
  border-color: rgba(47, 111, 167, 0.38);
  background: var(--blue-soft);
}

.directory-chip.town-chip {
  background: #ffffff;
}

.feed-requirement-card {
  grid-column: span 2;
  border-color: #bcd8ec;
  background: linear-gradient(135deg, #ffffff 0%, #edf6fd 100%);
}

.feed-requirement-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.feed-requirement-meta div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.feed-requirement-meta dt,
.feed-requirement-meta dd {
  text-align: left;
}

.feed-requirement-meta dd {
  max-width: none;
  color: var(--pine-2);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.feed-field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed-field-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.feed-field-list svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--blue);
}

.publish-readiness {
  grid-column: span 2;
  border-color: #bcd8ec;
  background: linear-gradient(135deg, #ffffff 0%, #edf6fd 100%);
}

.publish-readiness.ready {
  border-color: rgba(47, 111, 167, 0.48);
}

.publish-readiness.blocked {
  border-color: #c7d4de;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9fc 100%);
}

.publish-readiness-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.publish-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.publish-status.ready {
  background: var(--blue);
  color: #ffffff;
}

.publish-status.blocked {
  border: 1px solid #c7d4de;
  background: #ffffff;
  color: var(--muted);
}

.publish-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: 10px;
  margin: 0;
}

.publish-meta div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.publish-meta dt,
.publish-meta dd {
  text-align: left;
}

.publish-meta dd {
  max-width: none;
  overflow-wrap: anywhere;
  color: var(--pine-2);
  font-size: 12px;
  font-weight: 760;
}

.publish-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publish-checklist li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.publish-checklist li svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.publish-checklist li.passed svg {
  color: var(--blue);
}

.publish-checklist li.blocked svg {
  color: var(--muted);
}

.publish-checklist strong,
.publish-checklist small {
  display: block;
}

.publish-checklist strong {
  color: var(--pine-2);
  font-size: 13px;
}

.publish-checklist small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.readiness-board {
  background: linear-gradient(180deg, #ffffff 0%, #f1f8fe 100%);
}

.readiness-grid {
  display: grid;
  gap: 0;
  margin: 0;
}

.readiness-grid div {
  display: grid;
  grid-template-columns: minmax(90px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.readiness-grid div:first-child {
  border-top: 0;
}

.readiness-grid dd {
  max-width: none;
  text-align: left;
}

.readiness-next {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #c7deef;
  border-radius: 8px;
  background: #fbfdff;
}

.readiness-next strong,
.readiness-next span {
  display: block;
}

.readiness-next strong {
  color: var(--pine-2);
  font-size: 13px;
}

.readiness-next span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.roadmap-panel {
  grid-column: span 2;
}

.roadmap-list {
  display: grid;
  gap: 9px;
}

.roadmap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.roadmap-row:hover {
  border-color: #9fc7e5;
  background: #f1f8fe;
  transform: translateY(-1px);
}

.roadmap-row.active {
  border-color: rgba(47, 111, 167, 0.5);
  background: var(--blue-soft);
}

.roadmap-row strong,
.roadmap-row small,
.roadmap-meta b,
.roadmap-meta em {
  display: block;
}

.roadmap-row strong {
  color: var(--pine-2);
  font-size: 14px;
}

.roadmap-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.roadmap-meta {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}

.roadmap-meta b,
.roadmap-meta em {
  width: fit-content;
  max-width: 180px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.roadmap-meta b {
  background: var(--pine);
  color: #ffffff;
}

.roadmap-meta em {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--blue);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 31, 27, 0.42);
}

.modal {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 50%;
  width: min(440px, calc(100vw - 28px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.modal small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 300px 1fr;
  }

  .results-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: start;
  }

  .results-header {
    grid-column: 1 / -1;
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 82px;
    padding: 8px 16px;
    gap: 6px 12px;
  }

  .disclaimer {
    grid-column: 1 / 2;
    justify-self: start;
    text-align: left;
    max-width: none;
    margin-left: 52px;
    margin-top: -10px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 11px;
  }

  .top-actions span {
    display: none;
  }

  .app-shell,
  .results-panel {
    grid-template-columns: 1fr;
  }

  .app-shell {
    align-items: stretch;
    padding: 12px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 26px;
  }

  .panel-section {
    padding: 16px;
  }

  .route-pills {
    gap: 6px;
    margin-bottom: 12px;
  }

  .search-form {
    gap: 12px;
  }

  .filter-panel {
    display: contents;
  }

  .filter-panel > .panel-section:first-child {
    order: 1;
  }

  .map-stage {
    order: 2;
    min-height: auto;
  }

  .results-panel {
    order: 3;
  }

  .readiness {
    order: 4;
  }

  .subscribe-box {
    order: 5;
  }

  .map-canvas {
    min-height: 420px;
  }

  .eligibility-strip {
    grid-template-columns: 1fr;
  }

  .eligibility-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .eligibility-strip article:last-child {
    border-bottom: 0;
  }

  .location-card.wide {
    grid-column: span 1;
  }

  .source-card {
    grid-column: span 1;
  }

  .directory-panel {
    grid-column: span 1;
  }

  .roadmap-panel {
    grid-column: span 1;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px 12px;
  }

  .brand small {
    display: none;
  }

  .app-shell {
    padding: 10px;
  }

  h1 {
    font-size: 25px;
  }

  .grid-fields {
    grid-template-columns: 1fr;
  }

  .address-check-heading,
  .address-result div,
  .handoff-summary div,
  .rest-fields,
  .rest-result div,
  .source-ledger div {
    grid-template-columns: 1fr;
  }

  .listing-card button {
    grid-template-columns: 104px 1fr;
  }

  .listing-card img {
    width: 104px;
    height: 132px;
  }

  .listing-top {
    display: grid;
  }

  .badge {
    width: fit-content;
  }

  .suggestion-button {
    grid-template-columns: auto 1fr;
  }

  .suggestion-type {
    grid-column: 2;
    width: fit-content;
  }

  .readiness-grid div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .publish-readiness {
    grid-column: span 1;
  }

  .feed-requirement-card {
    grid-column: span 1;
  }

  .feed-requirement-meta,
  .feed-field-list {
    grid-template-columns: 1fr;
  }

  .publish-readiness-top,
  .publish-meta,
  .publish-checklist {
    grid-template-columns: 1fr;
  }

  .publish-readiness-top {
    display: grid;
  }

  .roadmap-row {
    grid-template-columns: 1fr;
  }

  .roadmap-meta {
    justify-items: start;
    text-align: left;
  }

  .map-quick-links {
    top: auto;
    bottom: 72px;
  }
}

/* ============================================================== */
/* Modern dark-blue theme — global aesthetic refresh               */
/* Overrides the legacy light palette by redefining root tokens    */
/* and touching only the selectors that hardcode light colors.     */
/* ============================================================== */

:root {
  color-scheme: dark;

  /* Background layers */
  --bg-1: #050a16;
  --bg-2: #0a1426;
  --bg-3: #0f1f3a;

  /* Glass surfaces (used by panels and cards) */
  --panel: rgba(255, 255, 255, 0.045);
  --wash: rgba(255, 255, 255, 0.025);
  --wash-strong: rgba(91, 158, 255, 0.10);

  /* Text */
  --ink: #f3f7ff;
  --muted: rgba(255, 255, 255, 0.62);

  /* Borders */
  --line: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Brand blues */
  --pine: #1e4a8a;
  --pine-2: #0c2038;
  --blue: #5b9eff;
  --blue-2: #3678f0;
  --blue-soft: rgba(91, 158, 255, 0.14);
  --sky: rgba(91, 158, 255, 0.22);
  --aqua: #6dd0e8;

  /* Status accents calibrated for dark bg */
  --amber: #ffb56b;
  --rose: #ff8aa3;
  --gold: #f0c878;

  /* Effects */
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.30);
  --glow: 0 0 28px rgba(91, 158, 255, 0.35);
}

html,
body {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(91, 158, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(56, 116, 210, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 110%, rgba(56, 116, 210, 0.12), transparent 70%),
    linear-gradient(180deg, #050a16 0%, #0a1426 40%, #0f1f3a 100%) !important;
  background-attachment: fixed !important;
  color: #f3f7ff !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

/* Header — glass nav bar */
.site-header {
  background: rgba(8, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.brand,
.brand strong,
h1, h2, h3, h4 { color: #ffffff; letter-spacing: -0.015em; }
.brand small,
.disclaimer { color: rgba(255, 255, 255, 0.65); }
.disclaimer {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}
.brand-mark {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  box-shadow:
    0 10px 28px rgba(91, 158, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

/* Universal glass override — every light-hardcoded surface */
.panel-section,
.results-panel > .results-header,
.detail-panel,
.listing-card,
.location-card,
.subscribe-box,
.readiness,
.address-check-card,
.coverage-summary,
.feed-empty-state,
.empty-state,
.modal,
.eligibility-strip article,
.map-source-card,
.map-quick-links,
.map-legend,
.directory-group,
.metric-grid div,
.feed-requirement-card,
.feed-sample-card,
.capture-card,
.source-card,
.publish-readiness-card,
.page-readiness-card,
.launch-roadmap-card {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.filter-panel,
.results-panel,
.location-content {
  background: transparent;
}

/* Eyebrow tags */
.eyebrow,
p.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Body copy — softer white */
p, dd, span, li, label, dl, dt {
  color: rgba(255, 255, 255, 0.75);
}
dt { color: rgba(255, 255, 255, 0.50); }
strong { color: #ffffff; }
.small-note,
.capture-consent span,
.capture-status,
.metric-grid dt { color: rgba(255, 255, 255, 0.55); }

/* Buttons */
.icon-button,
.square-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #ffffff;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.icon-button:hover,
.square-button:hover,
.wide-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.icon-button.solid,
.wide-button {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  border: 1px solid rgba(91, 158, 255, 0.40);
  color: #ffffff;
  box-shadow:
    0 12px 30px rgba(91, 158, 255, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.icon-button.solid:hover,
.wide-button:hover {
  filter: brightness(1.10);
  box-shadow:
    0 16px 40px rgba(91, 158, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.wide-button.subtle {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: none;
  border: 1px solid var(--line);
}

/* Inputs */
input[type="email"],
input[type="search"],
input[type="text"],
input[type="number"],
select,
textarea {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  color: #ffffff;
  border-radius: 10px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
input::placeholder { color: rgba(255, 255, 255, 0.35); }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(91, 158, 255, 0.22);
}
select option { background: var(--bg-2); color: #ffffff; }

/* Form sub-bits */
.search-form .input-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}
.search-form .input-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(91, 158, 255, 0.22);
}
.segmented {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.segmented button { color: rgba(255, 255, 255, 0.72); background: transparent; }
.segmented button.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(91, 158, 255, 0.35);
}

/* Pills, chips, link lists */
.route-pills a,
.listing-link,
.detail-actions a,
.link-list a,
.source-links a,
.directory-links a,
.map-quick-links a,
.breadcrumbs a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #ffffff;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}
.route-pills a:hover,
.link-list a:hover,
.source-links a:hover,
.directory-links a:hover,
.map-quick-links a:hover,
.breadcrumbs a:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: #ffffff;
}
.route-pills a.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-color: transparent;
  color: #ffffff;
}

/* Listing card */
.listing-card {
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.listing-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 18px 50px rgba(91, 158, 255, 0.25);
}
.listing-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 18px 50px rgba(91, 158, 255, 0.30);
}

/* Feed sample card variants */
.feed-sample-card { border: 1px solid var(--line); }
.feed-sample-card.illustrative {
  background:
    linear-gradient(180deg, rgba(240, 200, 120, 0.08), rgba(240, 200, 120, 0.03)),
    var(--panel);
  border: 1px dashed rgba(240, 200, 120, 0.40);
}
.feed-sample-card .sample-banner {
  background: rgba(240, 200, 120, 0.12);
  border-left: 3px solid var(--gold);
  color: var(--gold);
}
.feed-sample-card.illustrative .card-heading i { color: var(--gold); }

/* Capture / waitlist card */
.capture-card {
  background:
    linear-gradient(180deg, rgba(91, 158, 255, 0.10), rgba(91, 158, 255, 0.04)),
    var(--panel);
  border: 1px solid rgba(91, 158, 255, 0.28);
}
.capture-card.waitlist-card {
  background:
    linear-gradient(180deg, rgba(160, 120, 240, 0.10), rgba(160, 120, 240, 0.04)),
    var(--panel);
  border: 1px solid rgba(160, 120, 240, 0.28);
}
.capture-card .card-heading i { color: var(--blue); }
.capture-card.waitlist-card .card-heading i { color: #c0a8ff; }

/* Detail signal pills */
.detail-signal,
.eligibility-stack,
.fact-list,
.rest-check-panel,
.source-transparency-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #ffffff;
}

/* Eligibility strip — bottom row articles */
.eligibility-strip article {
  background:
    linear-gradient(180deg, rgba(91, 158, 255, 0.05), rgba(91, 158, 255, 0.0)),
    var(--panel);
}
.eligibility-strip article i { color: var(--blue); }

/* Score ring (USDA fit score) */
.score-ring {
  background:
    radial-gradient(circle at center, var(--bg-2) 54%, transparent 55%),
    conic-gradient(var(--blue) 0 82%, rgba(255, 255, 255, 0.10) 82% 100%);
  color: #ffffff;
  box-shadow: 0 0 30px rgba(91, 158, 255, 0.35);
}

/* Map — keep darker for contrast */
.map-stage {
  background: #060d1a;
  border: 1px solid var(--line);
}
.map-canvas,
.map-scene { background: var(--bg-1); }
.map-toolbar { color: #ffffff; }
.map-source-card { background: rgba(8, 16, 32, 0.85); }
.legend-dot.eligible { background: #5cf0a6; }
.legend-dot.review { background: #ffd066; }
.legend-block {
  background: rgba(255, 123, 133, 0.20);
  border: 1px solid rgba(255, 123, 133, 0.50);
}

/* Modal */
.modal {
  background:
    linear-gradient(180deg, rgba(91, 158, 255, 0.06), transparent),
    rgba(8, 16, 32, 0.90);
  color: #ffffff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.70);
}
.modal-backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px); }
.plan-row { border-bottom: 1px solid var(--line); color: #ffffff; }

/* Status badges (eligible/review/ineligible) */
.status-badge.eligible,
.signal.eligible { background: rgba(92, 240, 166, 0.14); color: #5cf0a6; border-color: rgba(92, 240, 166, 0.35); }
.status-badge.review,
.signal.review { background: rgba(255, 208, 102, 0.14); color: #ffd066; border-color: rgba(255, 208, 102, 0.35); }
.status-badge.ineligible,
.signal.ineligible { background: rgba(255, 123, 133, 0.14); color: #ff7b85; border-color: rgba(255, 123, 133, 0.35); }

/* Card rounded corners + heading icon polish */
.location-card,
.panel-section,
.detail-panel,
.listing-card,
.subscribe-box,
.readiness,
.address-check-card,
.feed-sample-card,
.capture-card,
.modal {
  border-radius: 16px;
}
.card-heading i,
.eligibility-strip i { opacity: 0.95; }

/* Generic visual polish */
::selection { background: rgba(91, 158, 255, 0.40); color: #ffffff; }
* { scrollbar-color: rgba(91, 158, 255, 0.35) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(91, 158, 255, 0.35); border-radius: 10px; }
*::-webkit-scrollbar-track { background: transparent; }

/* Layout-only rules for feed sample + capture forms.
   Colors/backgrounds/borders are owned by the dark-blue theme block above. */
.feed-sample-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  margin: 0.75rem 0 0.5rem;
}
.feed-sample-facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}
.feed-sample-facts dd {
  margin: 0;
  font-weight: 600;
}
.feed-sample-card .small-note {
  font-size: 0.82rem;
  margin-top: 0.5rem;
}
.capture-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.capture-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
}
.capture-form label > span {
  font-weight: 600;
}
.capture-form input[type="email"] {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
}
.capture-cadence {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.capture-cadence label {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}
.capture-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: 0.78rem;
  line-height: 1.35;
}
.capture-consent input {
  margin-top: 0.2rem;
}
.capture-status {
  font-size: 0.85rem;
  min-height: 1.2em;
  margin: 0;
}

