:root {
  color-scheme: light;
  --canvas: #f4f6f4;
  --surface: #ffffff;
  --surface-muted: #f8faf8;
  --ink: #202824;
  --ink-soft: #55615b;
  --ink-faint: #78827d;
  --line: #dce2de;
  --line-strong: #c8d0cb;
  --forest: #236245;
  --forest-dark: #184b34;
  --forest-soft: #e5f0e9;
  --brick: #a64c3d;
  --brick-soft: #f8e9e6;
  --gold: #a77d2b;
  --gold-soft: #f8f0dc;
  --focus: #257b58;
  --shadow: 0 12px 28px rgba(31, 50, 40, 0.07);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 4px;
  color: white;
  background: var(--forest-dark);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner,
.page-shell,
.app-footer p {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* About page */
.about-page {
  background: white;
}

.about-page .app-header {
  position: relative;
  z-index: 10;
}

.about-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.about-hero {
  position: relative;
  min-height: 520px;
  height: calc(100svh - 182px);
  max-height: 620px;
  display: flex;
  align-items: center;
  color: var(--ink);
  background-color: #dfe8e4;
  background-image: url("/static/assets/regional-neighborhood-hero.webp");
  background-position: center;
  background-size: cover;
}

.about-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(249, 251, 250, 0.62);
  content: "";
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero-eyebrow,
.about-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: var(--forest);
}

.about-hero h1 {
  max-width: 680px;
  margin-top: 11px;
  font-size: 56px;
  line-height: 1.05;
}

.hero-lede {
  margin: 15px 0 0;
  font-size: 24px;
  font-weight: 720;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  margin: 14px 0 0;
  color: #3e4d45;
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.hero-primary {
  min-width: 168px;
  color: white;
  background: var(--forest);
  text-decoration: none;
}

.hero-primary:hover {
  color: white;
  background: var(--forest-dark);
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--forest-dark);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.hero-text-link svg {
  width: 15px;
  height: 15px;
}

.hero-note {
  margin: 21px 0 0;
  color: #5f6d65;
  font-size: 11px;
}

.about-stats {
  border-bottom: 1px solid var(--line);
  background: white;
}

.stats-grid {
  min-height: 116px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.stats-grid div {
  min-width: 0;
  padding: 3px 25px;
  border-left: 1px solid var(--line);
}

.stats-grid div:first-child {
  padding-left: 0;
  border-left: 0;
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid strong {
  color: var(--forest-dark);
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stats-grid span {
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.35;
}

.about-section {
  padding-block: 84px;
}

.about-kicker {
  color: var(--forest);
}

.about-section h2,
.about-cta h2 {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.18;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 80px;
}

.intro-copy {
  max-width: 690px;
}

.intro-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.intro-copy p + p {
  margin-top: 16px;
}

.method-band {
  border-block: 1px solid #d7e3db;
  background: #edf4ef;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 72px;
}

.method-image,
.evaluation-image {
  min-width: 0;
  margin: 0;
}

.method-image img,
.evaluation-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.method-image img {
  aspect-ratio: 3 / 2;
  border-radius: 6px;
}

.method-image figcaption,
.evaluation-image figcaption {
  margin-top: 9px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.4;
}

.method-steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 15px;
  padding: 18px 0;
  border-top: 1px solid #cedcd3;
}

.method-steps li:first-child {
  padding-top: 0;
  border-top: 0;
}

.method-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #bfd2c5;
  border-radius: 6px;
  color: var(--forest);
  background: white;
}

.method-icon svg {
  width: 18px;
  height: 18px;
}

.method-steps h3,
.coverage-grid h3,
.limits-grid h3 {
  font-size: 14px;
  line-height: 1.3;
}

.method-steps p,
.coverage-grid article > p,
.limits-grid p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.section-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  align-items: end;
  gap: 70px;
}

.section-title-row > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px;
  margin-top: 42px;
}

.coverage-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.coverage-grid article {
  padding-top: 24px;
  border-top: 3px solid var(--forest);
}

.coverage-grid article:first-child {
  border-top-color: var(--gold);
}

.coverage-count {
  margin: 0 0 9px !important;
  color: var(--forest) !important;
  font-size: 10px !important;
  font-weight: 800;
  text-transform: uppercase;
}

.coverage-grid article:first-child .coverage-count {
  color: #806018 !important;
}

.county-list {
  margin-top: 15px !important;
  color: var(--ink) !important;
  font-weight: 700;
}

.evaluation-band {
  color: white;
  background: #24352d;
}

.evaluation-band .about-kicker {
  color: #b7d3c1;
}

.evaluation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 72px;
}

.evaluation-content > p:not(.about-kicker):not(.evaluation-note) {
  margin: 20px 0 0;
  color: #dce7e0;
  font-size: 14px;
  line-height: 1.7;
}

.evaluation-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.evaluation-metrics div {
  padding-top: 18px;
  border-top: 1px solid #53665c;
}

.evaluation-metrics strong,
.evaluation-metrics span {
  display: block;
}

.evaluation-metrics strong {
  color: #f1ce79;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}

.evaluation-metrics span {
  margin-top: 6px;
  color: #bccbc2;
  font-size: 10px;
  line-height: 1.35;
}

.evaluation-note {
  margin: 24px 0 0;
  color: #aabbb1;
  font-size: 10px;
  line-height: 1.55;
}

.evaluation-image img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}

.evaluation-image figcaption {
  color: #aebeb5;
}

.limits-section {
  background: #fafbfa;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 42px;
}

.limits-grid > div {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.limits-grid svg {
  width: 20px;
  height: 20px;
  margin-bottom: 16px;
  color: var(--brick);
}

.sources-band {
  border-top: 1px solid var(--line);
}

.sources-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 80px;
}

.sources-layout > div > p:last-child {
  margin: 14px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
}

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

.source-links li {
  border-top: 1px solid var(--line);
}

.source-links a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.source-links a:hover {
  color: var(--forest);
}

.source-links svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.about-cta {
  padding-block: 50px;
  border-block: 1px solid #d6e2da;
  background: var(--forest-soft);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-inner .primary-button {
  color: white;
  text-decoration: none;
}

.about-footer .footer-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-inline: auto;
}

.about-footer .footer-inner p {
  width: auto;
  max-width: 760px;
  margin: 0;
  padding: 0;
}

.about-footer .footer-inner > div {
  display: flex;
  gap: 18px;
  flex: 0 0 auto;
}

.about-footer a {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.primary-nav {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav a {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--forest);
}

.primary-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--forest);
  content: "";
}

.region-image {
  --region-image: url("/static/assets/youngstown-warren-aerial.jpg");
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #c8d5cd;
  border-radius: 6px;
  color: var(--forest-dark);
  background-color: #e6ede8;
  background-image: var(--region-image);
  background-position: center;
  background-size: cover;
  font-size: 12px;
  font-weight: 800;
}

.region-image span {
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.78);
}

.brand-name,
.brand-subtitle,
.eyebrow,
.section-heading p,
.form-message,
.estimate-value,
.estimate-range,
.coverage-label,
.model-note,
.app-footer p,
.result-error p {
  margin: 0;
}

.brand-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 12px;
}

.model-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.model-status.is-ready .status-dot {
  background: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-soft);
}

.model-status.is-offline .status-dot {
  background: var(--brick);
  box-shadow: 0 0 0 3px var(--brick-soft);
}

.page-shell {
  padding-block: 42px 34px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.page-heading-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.eyebrow {
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  margin-top: 5px;
  font-size: 34px;
  line-height: 1.15;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.9fr);
  align-items: start;
  gap: 20px;
}

.form-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-panel {
  overflow: hidden;
}

.form-section {
  padding: 26px 28px 28px;
  border-top: 1px solid var(--line);
}

.form-section-first {
  border-top: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}

.section-number {
  width: 29px;
  height: 29px;
  display: grid;
  flex: 0 0 29px;
  place-items: center;
  border: 1px solid #bed0c5;
  border-radius: 6px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 10px;
  font-weight: 800;
}

.section-heading h2 {
  font-size: 16px;
  line-height: 1.2;
}

.section-heading p {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.form-grid + .form-grid,
.field-group + .form-grid,
.form-grid + .toggle-grid,
.conditional-feature-grid + .toggle-grid {
  margin-top: 18px;
}

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

.field-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-span-2 {
  width: 100%;
  max-width: none;
}

.field-span-2 + .field-span-2 {
  margin-top: 18px;
}

.field-group label,
.field-group legend {
  display: block;
  margin-bottom: 7px;
  color: #35413b;
  font-size: 12px;
  font-weight: 750;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2355615b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

input::placeholder {
  color: #a1aaa5;
}

input:hover,
select:hover {
  border-color: #aeb9b2;
}

input:focus,
select:focus,
button:focus-visible,
.toggle-control:has(input:focus-visible) {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(37, 123, 88, 0.15);
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--brick);
  background: #fffafa;
}

.county-field select {
  max-width: 390px;
}

#zipcode {
  max-width: 390px;
}

.county-field select:disabled {
  color: var(--ink-faint);
  cursor: wait;
  background-color: var(--surface-muted);
}

input:disabled,
select:disabled {
  color: var(--ink-faint);
  cursor: not-allowed;
  background-color: #edf1ee;
}

.input-with-unit {
  position: relative;
}

.input-with-unit input {
  padding-right: 61px;
}

.input-with-unit span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  transform: translateY(-50%);
}

.field-support {
  min-height: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 11px;
}

.field-error {
  min-height: 16px;
  margin: 4px 0 0;
  color: var(--brick);
  font-size: 11px;
  line-height: 1.35;
}

.field-support .field-error {
  min-height: 0;
  margin: 0;
  text-align: right;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.conditional-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.conditional-feature {
  min-width: 0;
}

.conditional-feature .toggle-control {
  width: 100%;
}

.conditional-field {
  margin-top: 12px;
}

.conditional-feature.is-off .conditional-field label,
.conditional-feature.is-off .input-with-unit span {
  color: #929b96;
}

.toggle-control {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  background: var(--surface-muted);
}

.toggle-control strong,
.toggle-control small {
  display: block;
  letter-spacing: 0;
}

.toggle-control strong {
  font-size: 12px;
}

.toggle-control small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 10px;
}

.toggle-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-switch {
  position: relative;
  width: 39px;
  height: 22px;
  flex: 0 0 39px;
  border: 1px solid #b8c1bc;
  border-radius: 12px;
  background: #d9dfdb;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.toggle-switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(23, 35, 29, 0.22);
  content: "";
  transition: transform 150ms ease;
}

.toggle-control input:checked + .toggle-switch {
  border-color: var(--forest);
  background: var(--forest);
}

.toggle-control input:checked + .toggle-switch::after {
  transform: translateX(17px);
}

.form-actions {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 15px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
}

.form-message {
  flex: 1;
  color: var(--brick);
  font-size: 12px;
  text-align: right;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: transform 120ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.primary-button {
  min-width: 160px;
  padding: 0 18px;
  color: white;
  background: var(--forest);
}

.primary-button:hover {
  background: var(--forest-dark);
}

.secondary-button {
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.secondary-button:hover {
  border-color: #a5b2aa;
  background: var(--surface-muted);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.button-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.result-panel {
  position: sticky;
  top: 20px;
  min-height: 510px;
  overflow: hidden;
  padding: 30px;
}

.result-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--forest);
}

.result-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.result-heading-row h2 {
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.25;
}

.confidence-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #d9c995;
  border-radius: 4px;
  color: #6f551c;
  background: var(--gold-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.confidence-high {
  border-color: #b9d5c5;
  color: var(--forest-dark);
  background: var(--forest-soft);
}

.confidence-low {
  border-color: #e3c3bd;
  color: #7d352a;
  background: var(--brick-soft);
}

.confidence-neutral {
  border-color: var(--line);
  color: var(--ink-faint);
  background: var(--surface-muted);
}

.estimate-value {
  margin-top: 32px;
  font-size: 50px;
  font-weight: 780;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.estimate-empty {
  color: #a3aba7;
}

.estimate-range {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 12px;
}

.estimate-range span {
  color: var(--ink-soft);
  font-weight: 700;
}

.coverage-label {
  min-height: 18px;
  margin-top: 13px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
}

.evidence-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-list div {
  min-width: 0;
  padding: 0 13px;
  border-left: 1px solid var(--line);
}

.evidence-list div:first-child {
  padding-left: 0;
  border-left: 0;
}

.evidence-list div:last-child {
  padding-right: 0;
}

.evidence-list dt {
  min-height: 28px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.3;
}

.evidence-list dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.empty-evidence {
  margin-top: 43px;
}

.subsection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.subsection-heading h3,
.warning-section h3 {
  font-size: 13px;
}

.subsection-heading span {
  color: var(--ink-faint);
  font-size: 9px;
  text-transform: uppercase;
}

.factor-section,
.warning-section {
  padding-top: 21px;
}

.factor-list,
.warning-section ul {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.factor-list li {
  min-height: 29px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #eef1ef;
  font-size: 11px;
}

.factor-list li:first-child {
  border-top: 0;
}

.factor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.factor-dot.positive {
  background: var(--forest);
}

.factor-dot.negative {
  background: var(--brick);
}

.factor-impact {
  color: var(--ink-soft);
  font-weight: 750;
  text-align: right;
}

.factor-impact.positive {
  color: var(--forest);
}

.factor-impact.negative {
  color: var(--brick);
}

.warning-section {
  color: #77372d;
}

.warning-section ul {
  padding: 12px 14px 12px 29px;
  border-left: 3px solid var(--brick);
  background: #fff8f6;
}

.warning-section li {
  position: relative;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.45;
}

.warning-section li:first-child {
  margin-top: 0;
}

.warning-section li::before {
  position: absolute;
  top: 0;
  left: -15px;
  content: "•";
}

.model-note {
  margin-top: 18px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.5;
}

.result-loading {
  padding-top: 2px;
}

.loading-heading,
.loading-line,
.loading-block,
.loading-value {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #e8ece9;
}

.loading-heading {
  display: flex;
  justify-content: space-between;
  background: transparent;
}

.loading-heading span:first-child {
  width: 145px;
  height: 40px;
  border-radius: 4px;
  background: #e8ece9;
}

.loading-heading span:last-child {
  width: 70px;
  height: 23px;
  border-radius: 4px;
  background: #e8ece9;
}

.loading-value {
  width: 60%;
  height: 48px;
  margin-top: 33px;
}

.loading-line {
  height: 12px;
  margin-top: 13px;
}

.loading-line-short {
  width: 45%;
}

.loading-block {
  height: 70px;
  margin-top: 28px;
}

.loading-heading span::after,
.loading-value::after,
.loading-line::after,
.loading-block::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: rgba(255, 255, 255, 0.6);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}

.result-error {
  min-height: 360px;
  align-items: flex-start;
  gap: 13px;
  padding-top: 8px;
  color: var(--brick);
}

.result-error:not([hidden]) {
  display: flex;
}

.result-error svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.result-error h2 {
  font-size: 16px;
}

.result-error p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.app-footer {
  border-top: 1px solid var(--line);
  background: #edf1ee;
}

.app-footer p {
  padding-block: 20px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.5;
}

.site-footer .footer-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-inline: auto;
}

.site-footer .footer-copy {
  min-width: 0;
  max-width: 660px;
}

.site-footer .footer-copy p {
  width: auto;
  margin: 0;
  padding: 0;
}

.footer-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--forest);
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .result-initial {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .page-shell,
  .app-footer p {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 62px;
  }

  .region-image {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-name {
    max-width: 205px;
    font-size: 13px;
  }

  .brand-subtitle,
  .model-status {
    font-size: 10px;
  }

  .model-status span:last-child {
    display: none;
  }

  .page-shell {
    padding-block: 26px 24px;
  }

  .page-heading {
    align-items: center;
    margin-bottom: 15px;
  }

  h1 {
    font-size: 25px;
  }

  .page-heading .eyebrow {
    max-width: 220px;
  }

  .secondary-button {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 0;
  }

  .secondary-button .button-icon {
    width: 17px;
    height: 17px;
  }

  .form-section,
  .result-panel {
    padding: 22px 18px;
  }

  .form-grid,
  .form-grid-3,
  .location-grid,
  .conditional-feature-grid,
  .toggle-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-grid + .form-grid,
  .field-group + .form-grid,
  .form-grid + .toggle-grid,
  .conditional-feature-grid + .toggle-grid {
    margin-top: 14px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px 18px;
  }

  .form-message {
    min-height: 0;
    text-align: left;
  }

  .primary-button {
    width: 100%;
  }

  .result-panel { min-height: 400px; }

  .result-heading-row {
    gap: 10px;
  }

  .confidence-badge {
    max-width: 100px;
    text-align: center;
  }

  .estimate-value {
    margin-top: 27px;
    font-size: 42px;
  }

  .evidence-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .evidence-list div,
  .evidence-list div:first-child,
  .evidence-list div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #eef1ef;
    border-left: 0;
  }

  .evidence-list div:first-child {
    border-top: 0;
  }

  .evidence-list dt {
    min-height: 0;
  }

  .evidence-list dd {
    margin: 0;
    text-align: right;
  }
}

@media (max-width: 900px) {
  .about-hero {
    background-position: 58% center;
  }

  .intro-grid,
  .method-layout,
  .evaluation-layout,
  .sources-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .intro-copy {
    max-width: none;
  }

  .method-image {
    width: 100%;
    max-width: 680px;
  }

  .section-title-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .evaluation-image {
    width: 100%;
    max-width: 680px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 104px;
    flex-wrap: wrap;
    align-content: center;
    gap: 0;
    padding-top: 8px;
  }

  .brand-lockup {
    width: 100%;
    min-height: 48px;
  }

  .primary-nav {
    width: 100%;
    height: 42px;
    align-self: auto;
    gap: 24px;
    border-top: 1px solid var(--line);
  }

  .primary-nav a {
    height: 42px;
    font-size: 11px;
  }

  .page-heading-actions {
    gap: 10px;
  }

  .page-heading-actions .model-status {
    min-width: 7px;
  }

  .about-container,
  .about-hero-inner,
  .about-footer .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .about-hero {
    min-height: 540px;
    height: calc(100svh - 184px);
    max-height: 600px;
    background-image: url("/static/assets/regional-neighborhood-hero.webp");
    background-position: 62% center;
  }

  .about-hero::before {
    background: rgba(249, 251, 250, 0.74);
  }

  .about-hero h1 {
    font-size: 38px;
  }

  .hero-lede {
    font-size: 20px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .hero-actions .primary-button {
    width: auto;
  }

  .stats-grid {
    min-height: 178px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 13px;
  }

  .stats-grid div,
  .stats-grid div:first-child {
    padding: 13px 14px;
    border-left: 1px solid var(--line);
  }

  .stats-grid div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .stats-grid strong {
    font-size: 22px;
  }

  .about-section {
    padding-block: 56px;
  }

  .about-section h2,
  .about-cta h2 {
    font-size: 27px;
  }

  .intro-grid,
  .method-layout,
  .evaluation-layout,
  .sources-layout {
    gap: 30px;
  }

  .intro-copy p {
    font-size: 14px;
  }

  .coverage-grid,
  .limits-grid,
  .source-links {
    grid-template-columns: 1fr;
  }

  .coverage-grid {
    gap: 30px;
    margin-top: 32px;
  }

  .method-steps li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .method-icon {
    width: 34px;
    height: 34px;
  }

  .evaluation-metrics {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .evaluation-image img {
    aspect-ratio: 3 / 2;
  }

  .limits-grid {
    gap: 28px;
    margin-top: 30px;
  }

  .source-links {
    gap: 0;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .cta-inner .primary-button {
    width: auto;
  }

  .about-footer .footer-inner {
    min-height: 116px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }

  .site-footer .footer-inner {
    width: min(100% - 28px, 1180px);
    min-height: 126px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
  }

  .site-footer .footer-copy {
    max-width: none;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 10px 16px;
  }
}

@media (max-width: 420px) {
  .primary-nav {
    gap: 16px;
  }

  .primary-nav a {
    font-size: 10px;
  }
}

/* Legal and market guide pages */
.content-page {
  background: white;
}

.content-page main {
  min-height: calc(100vh - 150px);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 84px;
}

.legal-header {
  min-width: 0;
}

.legal-header h1,
.contact-page h1,
.market-guides-hero h1,
.county-guide-header h1 {
  margin: 8px 0 0;
  font-size: 42px;
  line-height: 1.12;
}

.legal-effective {
  margin: 15px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
}

.legal-summary {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.legal-prose {
  min-width: 0;
  max-width: 760px;
}

.legal-prose section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-prose section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-prose h2,
.contact-primary h2,
.guide-copy h2,
.guide-scope h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.legal-prose p,
.contact-content p,
.guide-copy > p,
.guide-source-copy p,
.zip-coverage-section .section-title-row > div:last-child > p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.72;
}

.legal-prose h2 + p {
  margin-top: 11px;
}

.legal-prose a,
.contact-content a,
.guide-source-copy a {
  color: var(--forest-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.contact-content {
  max-width: none;
}

.contact-primary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.contact-primary .method-icon {
  width: 40px;
  height: 40px;
}

.contact-primary p:first-of-type {
  margin-top: 7px;
}

.contact-email {
  font-size: 17px;
}

.contact-topics {
  gap: 24px;
  margin-top: 34px;
}

.contact-topics > div {
  padding-top: 18px;
}

.contact-note {
  margin-top: 30px !important;
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--gold);
  color: #5e4b20 !important;
  background: #fdfaf1;
}

.market-guides-hero,
.county-guide-header {
  border-bottom: 1px solid #d7e3db;
  background: #edf4ef;
}

.market-guide-directory {
  padding-top: 70px;
}

.state-guide-section + .state-guide-section {
  margin-top: 78px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.market-guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.coverage-grid .market-guide-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest);
  border-radius: 6px;
  background: white;
  box-shadow: 0 8px 20px rgba(31, 50, 40, 0.045);
}

.coverage-grid .market-guide-card:nth-child(3n + 2) {
  border-top-color: var(--gold);
}

.coverage-grid .market-guide-card:nth-child(3n) {
  border-top-color: var(--brick);
}

.market-guide-card h3 {
  font-size: 17px;
}

.market-guide-card h3 a {
  text-decoration: none;
}

.market-guide-card h3 a:hover {
  color: var(--forest);
}

.market-guide-card > p:not(.coverage-count) {
  font-size: 12px;
}

.market-guide-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: var(--forest-dark);
}

.guide-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
}

.guide-breadcrumbs a {
  color: var(--forest-dark);
  text-decoration: none;
}

.guide-breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-breadcrumbs svg {
  width: 13px;
  height: 13px;
}

.county-guide-header .legal-summary {
  max-width: 760px;
}

.county-guide-body .method-layout {
  align-items: start;
}

.guide-copy,
.guide-scope {
  min-width: 0;
}

.guide-copy > p:first-of-type {
  margin-top: 17px;
}

.guide-copy .evaluation-note {
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.55;
}

.guide-scope {
  padding-left: 34px;
  border-left: 3px solid #bfd2c5;
}

.guide-scope .method-steps {
  margin-top: 24px;
}

.zip-coverage-section {
  border-block: 1px solid var(--line);
  background: var(--surface-muted);
}

.zip-coverage-section .section-title-row {
  align-items: start;
}

.zip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.zip-list li {
  min-width: 58px;
  padding: 7px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink-soft);
  background: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.guide-source-copy {
  min-width: 0;
}

.guide-source-copy p {
  margin-top: 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.guide-source-copy p:first-child {
  padding-top: 0;
  border-top: 0;
}

.guide-source-copy svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.related-markets {
  border-top: 1px solid var(--line);
  background: #fafbfa;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .legal-prose {
    max-width: none;
  }

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

  .guide-scope {
    padding: 30px 0 0;
    border-top: 3px solid #bfd2c5;
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .legal-page,
  .market-guides-hero,
  .county-guide-header {
    padding-block: 52px;
  }

  .legal-header h1,
  .contact-page h1,
  .market-guides-hero h1,
  .county-guide-header h1 {
    font-size: 32px;
  }

  .legal-layout {
    gap: 34px;
  }

  .legal-summary {
    font-size: 14px;
  }

  .legal-prose section {
    padding-block: 23px;
  }

  .legal-prose p,
  .contact-content p,
  .guide-copy > p,
  .guide-source-copy p,
  .zip-coverage-section .section-title-row > div:last-child > p {
    font-size: 13px;
  }

  .contact-primary {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 13px;
  }

  .contact-primary .method-icon {
    width: 34px;
    height: 34px;
  }

  .contact-email {
    font-size: 15px;
  }

  .state-guide-section + .state-guide-section {
    margin-top: 54px;
    padding-top: 50px;
  }

  .market-guide-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .coverage-grid .market-guide-card {
    min-height: 174px;
    padding: 19px;
  }

  .county-market-stats .stats-grid strong {
    font-size: 19px;
  }

  .guide-breadcrumbs {
    margin-bottom: 22px;
  }

  .guide-scope {
    padding-top: 26px;
  }

  .zip-list {
    margin-top: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
