/* Landosaur — Flagship Zillow-for-Land Editorial Cartography Design System.
   Crisp typography, calm forest/alabaster surfaces, glassmorphic controls, Live X-Ray cards,
   dark mode support, print-ready Field Visit PDF stylesheet, and zero horizontal overflow on 375px mobile. */
:root {
  color-scheme: light dark;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --paper: #f6f8f4;
  --surface: #ffffff;
  --surface-2: #f9fbf7;
  --glass: rgba(255, 255, 255, 0.86);
  --ink: #0f261b;
  --ink2: #344e3f;
  --muted: #5a6d61;
  --line: #dce5d8;
  --line-strong: #c4d4be;

  --forest: #166534;
  --forest-dark: #114e28;
  --forest-soft: #e9f6ec;
  --lime: #c8f189;
  --lime-soft: #eef8de;
  --sand: #eceae0;
  --orange: #b8531b;
  --orange-soft: #fff1e6;
  --amber: #a16207;
  --amber-soft: #fef6d8;
  --risk: #b42318;
  --risk-soft: #feeceb;
  --link: #156235;
  --off: #66756b;

  --shadow-xs: 0 1px 2px rgba(15, 38, 27, 0.05);
  --shadow-sm: 0 4px 14px -2px rgba(15, 38, 27, 0.07), 0 1px 3px rgba(15, 38, 27, 0.04);
  --shadow: 0 14px 36px -8px rgba(15, 38, 27, 0.12), 0 4px 12px -4px rgba(15, 38, 27, 0.06);
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1410;
    --surface: #122019;
    --surface-2: #16271f;
    --glass: rgba(18, 32, 25, 0.84);
    --ink: #edf6ee;
    --ink2: #c2d6c7;
    --muted: #93aa9b;
    --line: #23382c;
    --line-strong: #314d3d;

    --forest: #5fe08f;
    --forest-dark: #43c874;
    --forest-soft: #153122;
    --lime: #376827;
    --lime-soft: #182e1f;
    --sand: #242d24;
    --orange: #f5a16e;
    --orange-soft: #3a2012;
    --amber: #f6c453;
    --amber-soft: #36290d;
    --risk: #f98077;
    --risk-soft: #3b1716;
    --link: #7ce6a3;
    --off: #8ea095;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.32);
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b1410;
  --surface: #122019;
  --surface-2: #16271f;
  --glass: rgba(18, 32, 25, 0.84);
  --ink: #edf6ee;
  --ink2: #c2d6c7;
  --muted: #93aa9b;
  --line: #23382c;
  --line-strong: #314d3d;

  --forest: #5fe08f;
  --forest-dark: #43c874;
  --forest-soft: #153122;
  --lime: #376827;
  --lime-soft: #182e1f;
  --sand: #242d24;
  --orange: #f5a16e;
  --orange-soft: #3a2012;
  --amber: #f6c453;
  --amber-soft: #36290d;
  --risk: #f98077;
  --risk-soft: #3b1716;
  --link: #7ce6a3;
  --off: #8ea095;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.32);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="light"] .button:not(.ghost),
:root[data-theme="light"] .button:not(.ghost):hover,
:root[data-theme="light"] .pill-btn.active,
:root[data-theme="light"] .tab-bar button[aria-selected="true"],
:root[data-theme="light"] .faq-item[open] summary::after {
  color: #ffffff;
}
:root[data-theme="light"] .hero-shell {
  background:
    radial-gradient(800px 300px at 92% -10%, rgba(200, 241, 137, 0.34), transparent 65%),
    radial-gradient(600px 260px at 10% 110%, rgba(22, 101, 52, 0.08), transparent 60%),
    var(--surface);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15.5px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s ease; }
a:hover { color: var(--forest-dark); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-radius: 5px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1340px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 1000; }
.skip:focus { left: 8px; top: 8px; }

/* Glassmorphic Sticky Top Bar */
header {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}
header .wrap {
  max-width: 1340px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.brand:hover { color: var(--forest); }
.dino { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 4px rgba(15, 38, 27, 0.1)); }
header nav { display: flex; flex-wrap: wrap; gap: 3px 6px; margin-left: auto; align-items: center; }
header nav a {
  color: var(--ink2);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, color .15s;
}
header nav a:hover { background: var(--forest-soft); color: var(--forest); }
header nav a[aria-current="page"] { background: var(--forest-soft); color: var(--forest); font-weight: 700; }
header nav a.nav-cta {
  background: var(--lime-soft);
  color: var(--forest);
  border: 1px solid var(--line-strong);
}
header nav a.nav-cta:hover, header nav a.nav-cta[aria-current="page"] {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) header nav a.nav-cta:hover,
  :root:not([data-theme="light"]) header nav a.nav-cta[aria-current="page"],
  :root:not([data-theme="light"]) .pill-btn.active,
  :root:not([data-theme="light"]) .button:not(.ghost),
  :root:not([data-theme="light"]) .button:not(.ghost):hover,
  :root:not([data-theme="light"]) .tab-bar button[aria-selected="true"],
  :root:not([data-theme="light"]) .faq-item[open] summary::after { color: #0b1410; }
}
:root[data-theme="dark"] header nav a.nav-cta:hover,
:root[data-theme="dark"] header nav a.nav-cta[aria-current="page"],
:root[data-theme="dark"] .pill-btn.active,
:root[data-theme="dark"] .button:not(.ghost),
:root[data-theme="dark"] .button:not(.ghost):hover,
:root[data-theme="dark"] .tab-bar button[aria-selected="true"],
:root[data-theme="dark"] .faq-item[open] summary::after { color: #0b1410; }

.theme-toggle {
  font: 600 12.5px var(--font-sans);
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink2);
  cursor: pointer;
  margin-left: 4px;
  transition: all .15s;
}
.theme-toggle:hover { border-color: var(--forest); color: var(--forest); background: var(--lime-soft); }

.filter-toggles {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-left: auto;
  align-items: center;
}
.filters .filter-toggles label,
.filter-toggles label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink2);
  cursor: pointer;
}

.terrain-profile-card {
  margin-top: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
}
.terrain-profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.bench-gauge {
  margin: 12px 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
}
.bench-gauge-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 115px;
  align-items: center;
  gap: 10px;
  margin: 7px 0;
  font-size: 13.5px;
}
.bench-track {
  height: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.bench-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--forest);
}
.bench-fill.county { background: var(--muted); opacity: 0.65; }
.bench-fill.high { background: var(--orange); }
@media (max-width: 560px) {
  .bench-gauge-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Land Agent Conversion Card & Fee Ledger ($20 Initiation + 10% Transfer Fee) */
.agent-checkout-card {
  background: linear-gradient(160deg, var(--lime-soft), var(--surface-2) 62%);
  border: 1.5px solid var(--forest);
  border-radius: 14px;
  padding: 15px 17px;
  box-shadow: var(--shadow-xs);
}
#parcel-acquisition-terms, #parcel-facts, #county-land-values { scroll-margin-top: 4.25rem; }
#parcel-map { scroll-margin-top: 5rem; }
.agent-checkout-card h3 { margin: 4px 0 10px; font-size: 18px; }
.fee-ledger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fee-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink2);
}
.fee-line strong { font-family: var(--font-mono); color: var(--ink); font-size: 13.5px; }
.fee-line.total { padding-top: 6px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.fee-line.due {
  margin-top: 2px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--forest-soft);
  color: var(--forest);
  font-weight: 700;
}
.fee-line.due strong { color: var(--forest); font-size: 15px; }
.service-card.active-service {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.25);
  background: var(--lime-soft);
}

/* Interactive 50-State U.S. Cartogram & Land Atlas Controls */
.atlas-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
  margin: 10px 0 12px;
}
.atlas-controls label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.atlas-controls select, .atlas-controls input {
  font: 500 13.5px var(--font-sans);
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink);
}
.us-cartogram {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
  max-width: 820px;
}
.us-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.15 / 1;
  border-radius: 9px;
  border: 1px solid rgba(15, 38, 27, 0.14);
  text-decoration: none;
  padding: 4px 2px;
  transition: transform .14s ease, box-shadow .14s ease;
  text-align: center;
}
.us-tile:hover { transform: translateY(-2px) scale(1.04); box-shadow: var(--shadow-sm); z-index: 2; }
.us-tile strong { font-family: var(--font-display); font-size: 13px; line-height: 1.1; }
.us-tile span { font-family: var(--font-mono); font-size: 10px; opacity: 0.9; margin-top: 2px; }
@media (max-width: 680px) {
  .us-cartogram { gap: 3px; }
  .us-tile strong { font-size: 10px; }
  .us-tile span { display: none; }
}

/* Typography & Layout Rhythm */
main { padding-top: 22px; padding-bottom: 64px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; font-weight: 800; margin: 6px 0 12px; }
h2 { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.22; font-weight: 750; margin: 0 0 12px; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
section { margin-top: 40px; }
p { margin: 0 0 12px; }
.lede { font-size: 16.5px; line-height: 1.55; color: var(--ink2); max-width: 78ch; }
.lede strong { color: var(--ink); font-weight: 650; }
.small { font-size: 13.5px; color: var(--muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
  margin-bottom: 6px;
}
.crumbs { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--forest); text-decoration: underline; }
code {
  font: 500 13px var(--font-mono);
  background: var(--lime-soft);
  padding: 2px 6px;
  border-radius: 5px;
}

/* Flagship Compact Editorial Hero Banner */
.hero-shell {
  margin-top: 0;
  background:
    radial-gradient(800px 300px at 92% -10%, rgba(200, 241, 137, 0.34), transparent 65%),
    radial-gradient(600px 260px at 10% 110%, rgba(22, 101, 52, 0.08), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-shell {
    background:
      radial-gradient(800px 300px at 92% -10%, rgba(95, 224, 143, 0.14), transparent 65%),
      radial-gradient(600px 260px at 10% 110%, rgba(200, 241, 137, 0.07), transparent 60%),
      var(--surface);
  }
}
:root[data-theme="dark"] .hero-shell {
  background:
    radial-gradient(800px 300px at 92% -10%, rgba(95, 224, 143, 0.14), transparent 65%),
    radial-gradient(600px 260px at 10% 110%, rgba(200, 241, 137, 0.07), transparent 60%),
    var(--surface);
}
.hero { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hero-left { display: flex; gap: 18px; align-items: center; flex: 1 1 560px; min-width: 0; }
.hero h1 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); }
.hero .lede { margin: 0; font-size: 15.5px; }
.mascot { flex: none; width: 76px; height: 76px; border-radius: 18px; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink2);
}
.stat-pill strong { color: var(--ink); font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; }

/* Flagship Split-Screen Map Explorer */
.mapzone {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.filters label.grow { flex: 1 1 155px; }
.filters label.check {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink2);
  padding-bottom: 7px;
  cursor: pointer;
}
.filters select, .filters input[type=number], .filters input[type=search] {
  font: 500 14px var(--font-sans);
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.filters select:focus, .filters input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.14);
  outline: none;
}
.filters input[type=number] { width: 102px; font-family: var(--font-mono); font-size: 13.5px; }

.preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.mode-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.mode-btn {
  font: 700 13.5px var(--font-display);
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink2);
  cursor: pointer;
  transition: all .15s ease;
}
.mode-btn:hover { border-color: var(--forest); color: var(--forest); background: var(--lime-soft); }
.mode-btn.active { background: var(--forest); border-color: var(--forest); color: #fff; box-shadow: var(--shadow-xs); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mode-btn.active { color: #0b1410; }
}
:root[data-theme="dark"] .mode-btn.active { color: #0b1410; }
:root[data-theme="light"] .mode-btn.active { color: #ffffff; }
.code-box {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  font: 500 13px/1.55 var(--font-mono);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  margin: 10px 0;
}
.radio-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pills label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 650;
}
.pill-btn {
  font: 600 13px var(--font-sans);
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink2);
  cursor: pointer;
  transition: all .15s ease;
}
.pill-btn:hover { background: var(--lime-soft); border-color: var(--forest); color: var(--ink); }
.pill-btn.active { background: var(--forest); border-color: var(--forest); color: #fff; }
@media (prefers-color-scheme: dark) { .pill-btn.active { color: #0b1410; } }

.explorer-split {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(350px, 1fr);
  background: var(--surface);
}
.explorer-map-col { position: relative; min-width: 0; isolation: isolate; }
.explorer-map-col.map-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--paper);
}
.explorer-map-col.map-fullscreen .map { height: 100vh; height: 100dvh; }
body.map-fs-open { overflow: hidden; }
.lando-map-tools a.lando-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  font: 700 12px var(--font-sans);
  color: #0f261b;
  background: #ffffff;
  text-decoration: none;
}
.lando-map-tools a.lando-tool-btn:hover { background: #eef8de; color: #166534; }
.map { height: 630px; width: 100%; background: var(--lime-soft); z-index: 0; }
.map.small { height: 420px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.map.xray-tall { height: 480px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.map-overlay-status {
  max-width: min(260px, calc(100vw - 36px));
  padding: 6px 9px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  line-height: 1.35;
}

.map-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 400;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 7px 12px;
  border-radius: 99px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  pointer-events: none;
}
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

.explorer-list-col {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  height: 630px;
  min-width: 0;
  background: var(--surface-2);
}
.list-head { padding: 11px 15px; border-bottom: 1px solid var(--line); background: var(--surface); }
#map-direct-status { padding: 0 15px; }
#map-count { margin: 0; min-height: 20px; font-weight: 650; color: var(--ink2); font-size: 13.5px; }
#results { flex: 1; overflow-y: auto; padding: 12px 13px; min-height: 300px; contain: layout; }
.leaflet-container { font-family: var(--font-sans); }
.pop a { font-weight: 700; color: var(--forest); }
.pop p { margin: 4px 0 0; font-size: 13px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.parcel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
  box-shadow: var(--shadow-xs);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.parcel-card:hover {
  border-color: var(--forest);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.card-metric { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--ink2); font-variant-numeric: tabular-nums; }
.card-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); line-height: 1.32; }
.card-title:hover { color: var(--forest); text-decoration: underline; }
.card-acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  font: 600 12.5px var(--font-sans);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink2);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.chip-btn:hover { border-color: var(--forest); background: var(--lime-soft); color: var(--ink); }
.chip-btn.on { background: var(--lime-soft); border-color: var(--forest); color: var(--forest); }
.chip-btn.chip-link { color: var(--forest); }
.sub { display: block; font-size: 13px; color: var(--muted); font-weight: 450; margin-top: 3px; }

/* Compare Dock & Modal */
.compare-dock {
  position: fixed;
  bottom: 16px;
  right: 18px;
  z-index: 80;
  background: #0f261b;
  color: #fff;
  padding: 11px 16px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.compare-dock[hidden] { display: none; }
.compare-dock button {
  font: 700 13px var(--font-sans);
  padding: 7px 13px;
  border-radius: 9px;
  border: 0;
  cursor: pointer;
  background: #c8f189;
  color: #0f261b;
}
.compare-dock button.ghost-dk { background: transparent; color: #dbe9dc; border: 1px solid rgba(255, 255, 255, .28); }
.compare-modal { position: fixed; inset: 0; z-index: 120; background: rgba(9, 20, 14, .68); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.compare-modal[hidden] { display: none; }
.compare-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; max-width: 1080px; width: 100%; max-height: 86vh; overflow: auto; padding: 20px 24px; box-shadow: var(--shadow); }
.compare-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.badge.ok { background: var(--lime-soft); color: var(--forest); border: 1px solid rgba(22, 101, 52, 0.18); }
.badge.auction { background: var(--orange-soft); color: var(--orange); border: 1px solid rgba(184, 83, 27, 0.2); }
.badge.warn { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(161, 98, 7, 0.22); }
.badge.risk { background: var(--risk-soft); color: var(--risk); border: 1px solid rgba(180, 35, 24, 0.22); }
.badge.off { background: var(--sand); color: var(--ink2); }

/* Live Federal Parcel X-Ray & Potential Screening */
.xray-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.xray-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.xray-header h2 { margin: 0; }
.xray-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.xray-tile {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.xray-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.xray-kicker {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.xray-val {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.xray-sub { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.xray-src { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
a.xray-src:hover { color: var(--forest); text-decoration: underline; }

/* Animated Shimmer Loaders */
.xray-tile.skel { gap: 10px; }
.skel-bar {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--line) 25%, var(--surface) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: lando-shimmer 1.3s ease-in-out infinite;
}
.skel-bar.sm { width: 42%; height: 11px; }
.skel-bar.lg { width: 72%; height: 22px; }
.skel-bar.md { width: 90%; height: 12px; }
@keyframes lando-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.potential-wrap { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.potential-title { margin: 0 0 12px; font-size: 18px; }
.potential-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.potential-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 15px;
}
.potential-card.tier-favorable { border-left-color: var(--forest); }
.potential-card.tier-caution { border-left-color: var(--amber); }
.potential-card.tier-constraint { border-left-color: var(--risk); }
.potential-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.potential-card p { margin: 0; font-size: 13.5px; color: var(--ink2); line-height: 1.5; }
.xray-disc { margin: 14px 0 0; }

/* Standalone /xray/ Search Hero */
.xray-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  margin: 16px 0 12px;
}
.xray-search-bar input {
  flex: 1 1 280px;
  min-width: 0;
  font: 500 15.5px var(--font-sans);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
}
.xray-search-bar input:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.14); }

/* Dossier & Summary Strip */
.dossier-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 20px;
}
.dossier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.dossier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 0 0 16px; }
.kv dt { font-size: 12.5px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .03em; padding-top: 3px; }
.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }

.btn-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0 16px; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--forest);
  color: #fff;
  font: 700 14.5px var(--font-sans);
  padding: 10px 18px;
  border-radius: 11px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform .12s, background .15s, box-shadow .15s;
}
.button:hover { background: var(--forest-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.button.ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.button.ghost:hover { background: var(--lime-soft); border-color: var(--forest); color: var(--forest); }
.button.ghost.on { background: var(--lime-soft); border-color: var(--forest); color: var(--forest); }
.button.sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .button:not(.ghost) { color: #0b1410; }
  :root:not([data-theme="light"]) .button:not(.ghost):hover { color: #0b1410; }
}

.diligence-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.diligence-bar a {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink2);
  text-decoration: none;
  transition: all .15s;
}
.diligence-bar a:hover { background: var(--lime-soft); border-color: var(--forest); color: var(--forest); }

.callout {
  background: var(--lime-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.callout h2 { font-size: 18px; margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }

/* Tables */
.scroll { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
table.data { border-collapse: collapse; width: 100%; font-size: 14.5px; }
table.data th, table.data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
table.data tbody th { font-weight: 600; }
table.data .n { text-align: right; font-family: var(--font-mono); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 561px) {
  table.listings td[data-label="Schedule"] { min-width: 14ch; }
}
#atlas-county-explorer, #atlas-county-coverage, #state-county-benchmarks, #tab-power { scroll-margin-top: 76px; }
#tax-tbody tr { scroll-margin-top: 76px; }
.county-actions a { display: inline-block; margin-right: 12px; }
table.sortable thead th { cursor: pointer; user-select: none; }
table.sortable th[aria-sort="ascending"]::after { content: " \25B2"; font-size: 10px; color: var(--forest); }
table.sortable th[aria-sort="descending"]::after { content: " \25BC"; font-size: 10px; color: var(--forest); }
table.facts td:first-of-type { overflow-wrap: anywhere; }
table.compare-matrix th:first-child { min-width: 155px; }
table.compare-matrix td, table.compare-matrix thead th { min-width: 185px; }
table.compare-matrix .col-ours { background: var(--lime-soft); color: var(--ink); }
table.compare-matrix thead th.col-ours { color: var(--forest); }
.note { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* Worksheet & Analyzer Workbench */
.worksheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
}
.worksheet label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink2); font-weight: 600; }
#offer-amt-wrap[hidden] { display: none; }
#offer-submit:disabled { opacity: .55; cursor: not-allowed; }
.worksheet .in { display: flex; align-items: center; gap: 6px; }
.worksheet input, .worksheet select, #pwr-utility-source {
  font: 500 14.5px var(--font-sans);
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink);
}
#pwr-utility-source { width: auto; max-width: 100%; }
#pwr-utility-picker label { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.worksheet i { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--muted); min-width: 34px; }
.totals { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-xs); }
.totals dd { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }

.tab-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tab-bar button {
  font: 650 14px var(--font-sans);
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink2);
  cursor: pointer;
  transition: all .15s;
}
.tab-bar button:hover { border-color: var(--forest); color: var(--forest); }
.tab-bar button[aria-selected="true"] { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: var(--shadow-xs); }
@media (prefers-color-scheme: dark) { .tab-bar button[aria-selected="true"] { color: #0b1410; } }
.comp-table input { width: 100%; min-width: 80px; font: inherit; font-size: 13.5px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-2); color: var(--ink); }
.inline-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; flex-wrap: wrap; max-width: 100%; }

/* Observatory, Charts, State Grids & Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--forest);
  border-radius: var(--radius);
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-xs);
}
.kpi-card span { font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi-card strong { font-family: var(--font-display); font-size: 24px; line-height: 1.15; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-card small { font-size: 12.5px; color: var(--muted); }

.chart-card { margin: 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-xs); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-item i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; }
.trend-svg { width: 100%; height: auto; display: block; }

.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 11px; margin-top: 14px; }
.state-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
}
.state-tile:hover { border-color: var(--forest); background: var(--lime-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.state-tile-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.state-tile strong { font-family: var(--font-display); font-size: 15px; font-weight: 750; line-height: 1.2; }
.state-tile span { font-family: var(--font-mono); font-size: 13px; color: var(--forest); font-weight: 650; font-variant-numeric: tabular-nums; }
.state-tile small { font-size: 12px; color: var(--muted); }
.state-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  color: var(--forest);
  opacity: 0.78;
  transition: opacity .15s, transform .15s;
}
.state-icon path {
  fill: color-mix(in srgb, currentColor 22%, transparent);
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.state-tile:hover .state-icon { opacity: 1; transform: scale(1.06); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.seller-request-list { display: grid; gap: 10px; list-style: none; padding: 0; overflow-wrap: anywhere; }
.seller-request-list:empty { margin: 0; }
#seller-more-requests[hidden] { display: none; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: var(--shadow-xs);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.info-card:hover { border-color: var(--forest); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.info-card h3 { margin: 0; font-size: 17px; }
.info-card h3 a { text-decoration: none; color: var(--ink); }
.info-card h3 a:hover { color: var(--forest); }
.info-card p { margin: 0; font-size: 14.5px; color: var(--ink2); line-height: 1.5; }
.info-card a.card-link { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; text-decoration: none; }
.info-card a.card-link:hover { text-decoration: underline; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 28px; }
.prose h3 { margin-top: 20px; }
.notes { padding-left: 20px; }
.notes li { margin-bottom: 8px; }

/* Research & FAQ */
.research-callout { margin-top: 24px; }
.research-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.research-jumps a {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.research-jumps a:hover { background: var(--lime-soft); border-color: var(--forest); color: var(--forest); }
.finding-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.finding-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-xs); }
.finding-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 10px; padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.finding-head span { font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--forest); }
.finding-head strong { font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink); }
.finding-card p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.research-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.research-split > div { min-width: 0; }
.research-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-xs); }

.faq-list { display: grid; gap: 10px; margin-top: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.faq-item[open] { border-color: var(--forest); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; cursor: pointer; font-weight: 650; font-size: 15.5px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 99px; background: var(--lime-soft); color: var(--forest); font-weight: 700; font-size: 16px; }
.faq-item[open] summary::after { content: "\2212"; background: var(--forest); color: #fff; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--ink2); max-width: 82ch; }
@media (prefers-color-scheme: dark) { .faq-item[open] summary::after { color: #0b1410; } }

/* Print Field Visit Checklist (shown cleanly on print, subtle card on screen) */
.print-checklist {
  display: none;
}

footer { border-top: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--ink2); padding: 28px 0 40px; }
footer .wrap { max-width: 1340px; }
footer .notice { color: var(--ink); max-width: 98ch; font-weight: 500; }
footer p { margin: 0 0 9px; }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .explorer-split { grid-template-columns: 1fr; }
  .explorer-list-col { border-left: 0; border-top: 1px solid var(--line); height: auto; max-height: 520px; }
  .map { height: 430px; }
  .card-grid, .xray-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .kpi-grid, .dossier-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finding-grid, .research-split, .potential-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dossier { grid-template-columns: 1fr; }
  .card-grid, .xray-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .hero-shell { padding: 16px; border-radius: 16px; }
  .xray-section { padding: 16px; border-radius: 16px; }
  .kpi-grid, .dossier-metrics { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  table.listings thead { display: none; }
  table.listings tr:not([hidden]) { display: block; padding: 11px 12px; border-bottom: 1px solid var(--line); }
  table.listings tbody tr:last-child { border-bottom: 0; }
  table.listings th, table.listings td { display: block; border: 0 !important; padding: 0; text-align: left; white-space: normal; }
  table.listings th { margin-bottom: 4px; }
  table.listings td { display: inline-block; margin: 2px 12px 0 0; font-size: 14px; }
  table.listings td.n::before { content: attr(data-label) ": "; color: var(--muted); }
  table.deal-listings, table.deal-listings tbody { display: block; width: 100%; }
  table.deal-listings .n { white-space: normal; }
  body { font-size: 15px; }
  .hero-left { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mascot { width: 52px; height: 52px; }
  .filters input[type=number] { width: 92px; }
  .filters label.grow { flex-basis: 100%; }
  .map-legend { display: none; }
  table.data th, table.data td { padding: 8px 10px; }
  #state-county-benchmarks table { table-layout: fixed; }
  #state-county-benchmarks :is(th, td) { padding: 8px 6px; overflow-wrap: anywhere; }
  #state-county-benchmarks thead th:nth-child(1) { width: 28%; }
  #state-county-benchmarks thead th:nth-child(2),
  #state-county-benchmarks thead th:nth-child(3) { width: 26%; }
  #state-county-benchmarks .n { font-size: 12px; white-space: normal; }
  #atlas-county-explorer { scroll-margin-top: 126px; }
  #tax-tbody tr { scroll-margin-top: 172px; }
  :is(.county-explorer-table, .tax-rules, .source-table, .facts) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  :is(.tax-rules, .source-table, .facts), :is(.tax-rules, .source-table, .facts) tbody { display: block; }
  :is(.tax-rules, .source-table, .facts) tbody tr:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  :is(.tax-rules, .source-table, .facts) tbody tr:last-child { border-bottom: 0; }
  table:is(.tax-rules, .source-table, .facts) tbody :is(th, td) { padding: 0; border: 0; min-width: 0; }
  .facts tbody tr:not([hidden]) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4px 12px; }
  .facts tbody td:last-child { grid-column: 1 / -1; overflow-wrap: anywhere; }
  .tax-rules :is(th, td[data-label="Rules Summary"], td[data-label="Land Agent"]) { grid-column: 1 / -1; }
  .source-table tbody th { grid-column: 1 / -1; }
  .source-table td.n { text-align: left; }
  .tax-rules th .sub { display: inline; margin-left: 6px; }
  :is(.tax-rules, .source-table) td:not([data-label="Land Agent"])::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 2px;
  }
  .county-explorer-table, .county-explorer-table tbody { display: block; }
  .county-explorer-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .county-explorer-table tbody tr:last-child { border-bottom: 0; }
  table.county-explorer-table tbody :is(th, td) { padding: 0; border: 0; }
  table.county-explorer-table tbody th { grid-column: 1 / -1; grid-row: 1; padding-right: 42px; }
  .county-explorer-table .county-state { grid-column: 2; grid-row: 1; justify-self: end; color: var(--muted); }
  table.county-explorer-table td.n { text-align: left; white-space: normal; }
  .county-explorer-table td.n::before {
    display: block;
    content: attr(data-label);
    color: var(--muted);
    font: 12px var(--font-sans);
  }
  .county-explorer-table .county-actions { grid-column: 1 / -1; }
  .compare-dock { left: 12px; right: 12px; bottom: 10px; justify-content: space-between; }
  header nav { gap: 2px 4px; }
  header nav a { padding: 5px 8px; font-size: 13px; }
}

/* One-Click Offline Field Visit PDF Packet */
@media print {
  @page { margin: 0.55in; }
  body { background: #fff !important; color: #111 !important; font-size: 11pt; }
  header, footer, .btn-row, .diligence-bar, .compare-dock, .compare-modal, .leaflet-control-container, #copy-sheet, .no-print { display: none !important; }
  main { padding: 0 !important; }
  .wrap, .wrap.wide { max-width: 100% !important; padding: 0 !important; }
  .dossier, .xray-grid, .potential-grid { break-inside: avoid; }
  .xray-section, .dossier-card, .callout, .kpi-card, .xray-tile, .potential-card {
    box-shadow: none !important;
    background: #fff !important;
    border-color: #bbb !important;
    break-inside: avoid;
  }
  .xray-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .potential-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .print-checklist {
    display: block !important;
    margin-top: 18pt;
    padding: 12pt;
    border: 1.5pt solid #222;
    border-radius: 6pt;
    break-inside: avoid;
  }
  .print-checklist h2 { font-size: 13pt; margin: 0 0 8pt; }
  .print-checklist ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6pt 14pt; font-size: 10pt; }
}

.geo-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; align-items: center; }
.geo-toolbar [hidden] { display: none; }
.geo-toolbar p { flex-basis: 100%; margin: 0; }
.geo-toolbar p:empty { display: none; }
.map.drawing-parcel, .map.drawing-parcel .leaflet-interactive { cursor: crosshair; }
#xray-measurements { margin-top: 1rem; overflow-wrap: anywhere; }
#xray-measurements[hidden] { display: none; }
#xray-measurements h2 { margin: 0 0 .5rem; }
@media print {
  #xray-map { height: 325px; }
  #xray-measurements, .xray-tile, .terrain-profile-card { break-inside: avoid; }
  #xray-actions { display: none; }
}
.utility-list { margin: .5rem 0; padding-left: 1.1rem; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.atlas-scatter-svg { display: block; width: min(100%, 740px); height: auto; margin-inline: auto; overflow: visible; }
.atlas-scatter-svg text { fill: currentColor; font-size: 9px; }
.atlas-scatter-svg circle { fill: #2b9d66; fill-opacity: .77; stroke: var(--panel, white); stroke-width: 1; }
.atlas-scatter-svg a:is(:hover, :focus) circle { fill: #f59e0b; stroke: currentColor; stroke-width: 2; }
.atlas-region-row { display: grid; grid-template-columns: 6rem minmax(0,1fr) auto; align-items: center; column-gap: .65rem; margin: .6rem 0; }
.atlas-region-row small { grid-column: 1/-1; color: var(--muted); }
.county-benchmark-chart { list-style: none; padding: 0; }
.county-benchmark-chart li {
  display: grid; grid-template-columns: minmax(0, 12rem) minmax(1rem, 1fr) auto;
  align-items: center; gap: .15rem .65rem; margin: .65rem 0;
}
.county-benchmark-chart small { grid-column: 1/-1; color: var(--muted); }
.chart-share-dialog { width: min(34rem, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: .9rem; padding: 1rem; background: var(--paper, Canvas); color: var(--ink, CanvasText); }
.chart-share-dialog::backdrop { background: #10241cc0; }
.chart-share-dialog label, .chart-share-dialog textarea, .chart-share-dialog input { display: block; width: 100%; margin-bottom: .5rem; box-sizing: border-box; }
.chart-embed > header, .chart-embed > footer, .chart-embed > .skip { display: none; }
.chart-embed #main { width: 100%; }

/* Acquisition desk */
.acquisition-brief { grid-column: 1 / -1; margin-top: 0; }
.acquisition-brief h3 { margin-top: 0; }
.brief-target { font-weight: 650; overflow-wrap: anywhere; }
html:has(#start-land-agent:target, #track-order:target) { scroll-behavior: auto; }
#start-land-agent, #track-order { scroll-margin-top: 5.5rem; }
.order-progress {
  padding: 0;
  margin: 1rem 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
}
.order-progress li {
  display: grid;
  align-content: start;
  gap: .32rem;
  padding: .62rem;
  border: 1px solid var(--line-strong);
  border-radius: .65rem;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.order-progress .order-step-current { border-color: var(--forest); }
.order-progress small { color: var(--muted); }
.order-progress .order-step-complete small { font-weight: 700; }
.order-fees { margin-top: .75rem; }
.kpi-card .benchmark-pill { margin-top: .35rem; white-space: normal; }
.mobile-land-agent { display: none; }

@media (max-width: 680px) {
  #start-land-agent, #track-order { scroll-margin-top: 11rem; }
  .order-progress { grid-template-columns: 1fr; }
  .order-progress li { grid-template-columns: minmax(0, 1fr) auto; }
  .mobile-land-agent {
    position: fixed;
    z-index: 850;
    bottom: 0;
    inset-inline: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    background: var(--surface);
    border-top: 1px solid var(--line-strong);
    padding: .62rem max(1rem, env(safe-area-inset-right)) calc(.62rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    color: var(--ink);
    font-size: .83rem;
    font-weight: 650;
  }
  .mobile-land-agent time {
    display: block;
    margin-top: .15rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 550;
    line-height: 1.25;
  }
  .mobile-land-agent .button { flex-shrink: 0; }
  body:has(.mobile-land-agent) { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
}
@media print {
  .mobile-land-agent { display: none !important; }
  body.print-acquisition > :not(main),
  body.print-acquisition main > :not(#services-app),
  body.print-acquisition #services-app > :not(#acquisition-brief) { display: none !important; }
  body.print-acquisition #main,
  body.print-acquisition #start-land-agent,
  body.print-acquisition #concierge-form,
  body.print-acquisition #acquisition-brief { display: block; padding: 0; margin: 0; border: 0; box-shadow: none; }
}

.map-draw-tools { display: grid; padding: .2rem; gap: .2rem; max-width: min(9.5rem, 42vw); background: var(--surface); }
.map-draw-tools button, .map-draw-tools select { font: inherit; border: 1px solid var(--line); border-radius: .3rem; color: var(--ink); background: var(--surface-2); padding: .3rem .4rem; text-align: left; }
.map-draw-tools button:disabled { opacity: .55; }
.map-draw-tools [data-draw-status]:empty { display: none; }
.map-draw-tools [data-draw-status] { display: block; color: var(--ink); line-height: 1.25; }
.leaflet-container.drawing-parcel .leaflet-marker-icon,
.leaflet-container.drawing-parcel .leaflet-overlay-pane canvas { pointer-events: none !important; }
.watchlist-format { display: flex; gap: .35rem; align-items: center; }
.watchlist-format select, .compare-acquisition select { min-width: 0; max-width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: .4rem; padding: .24rem .35rem; }
.watchlist-status:empty { display: none; }
.compare-acquisition { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; align-items: center; }
.compare-acquisition select { flex: 1 1 13rem; max-width: min(100%, 30rem); }

.agent-prompt { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Minimal Single-Column Land Agent Checkout */
.checkout-shell {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.checkout-intro { padding: 4px 2px 0; }
.checkout-intro[hidden] { display: none; }
.checkout-intro h1 { margin: 0; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.02em; }
.checkout-sub { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }

.express-mode-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.express-mode-bar[hidden] { display: none; }
.link-btn {
  appearance: none; background: none; border: 0; padding: 0;
  color: var(--forest); font: 600 13.5px var(--font-sans); cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.checkout-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.checkout-map-header { border-bottom: 1px solid var(--line); }
.checkout-map-header[hidden] { display: none; }
.checkout-map { height: 155px; width: 100%; }
.checkout-map-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 18px;
  background: var(--surface-2);
}
.checkout-place {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  min-width: 0; font-size: 13.5px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 25%, transparent);
  flex-shrink: 0;
}
.checkout-xray-inline { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.checkout-xray-inline[hidden] { display: none; }
.checkout-search { display: flex; gap: 6px; flex: 0 1 260px; min-width: 0; }
.checkout-search input {
  flex: 1 1 auto; min-width: 0;
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  font: 500 13px var(--font-sans);
}

.checkout-body { padding: 22px 24px 24px; }
.checkout-form { display: flex; flex-direction: column; gap: 22px; }
.checkout-section { display: flex; flex-direction: column; gap: 10px; }
.checkout-label {
  font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted);
}
.opt-tag { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .75; }

.service-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--surface-2);
}
.service-row {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  transition: background .12s;
}
.service-row:last-child { border-bottom: 0; }
.service-row:hover { background: color-mix(in srgb, var(--forest) 6%, transparent); }
.service-row.active-service {
  background: color-mix(in srgb, var(--forest) 12%, var(--surface));
}
.service-radio {
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  flex-shrink: 0;
  position: relative;
  transition: border-color .12s;
}
.service-row.active-service .service-radio {
  border-color: var(--forest);
  background: var(--forest);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.service-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.service-info strong { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.service-info small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.service-price {
  font-family: var(--font-mono); font-size: 15.5px; font-weight: 800;
  color: var(--ink); font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.service-row.active-service .service-price { color: var(--forest); }

.addon-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.addon-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.addon-pill:hover { border-color: color-mix(in srgb, var(--forest) 55%, var(--line)); }
.addon-pill.active-addon {
  border-color: var(--forest);
  background: color-mix(in srgb, var(--forest) 12%, var(--surface));
}
.addon-pill input { width: 15px; height: 15px; accent-color: var(--forest); flex-shrink: 0; margin: 0; }
.addon-pill-name { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.addon-pill-price { font-family: var(--font-mono); font-size: 12.5px; font-weight: 750; color: var(--forest); flex-shrink: 0; }

.checkout-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.checkout-inputs label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink2); min-width: 0; }
.checkout-inputs input {
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink);
  font: 500 14.5px var(--font-sans);
  min-width: 0; max-width: 100%;
}
.checkout-inputs input:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 16%, transparent); }

.checkout-summary {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fee-divider { height: 1px; background: var(--line); margin: 4px 0; }
.fee-line.muted-line { opacity: .78; font-size: 12.5px; }
.fee-line.addon-line span { color: var(--forest); }

.checkout-pay-btn {
  width: 100%; justify-content: center;
  padding: 14px 20px; font-size: 16px; font-weight: 750;
  border-radius: 12px;
}
.checkout-foot-links {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px;
  font-size: 12px; color: var(--muted);
}
.checkout-foot-links a { color: var(--muted); text-decoration: underline; }
.checkout-foot-links a:hover { color: var(--forest); }

.checkout-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  min-width: 0;
}
.checkout-details > summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted);
  list-style: disclosure-closed;
}
.checkout-details[open] > summary { list-style: disclosure-open; margin-bottom: 12px; color: var(--ink); }
.worksheet-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; min-width: 0;
}
.worksheet-grid > * { min-width: 0; }
.worksheet-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.worksheet-grid input, .worksheet-grid select {
  padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  font: 500 13.5px var(--font-sans); min-width: 0; max-width: 100%;
}

.checkout-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}
.track-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.track-label { font-size: 13px; font-weight: 700; color: var(--ink2); }
.track-inline input {
  flex: 1 1 180px; min-width: 0;
  padding: 8px 11px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  font: 500 13.5px var(--font-mono);
}
.checkout-brief { margin-top: 4px; }
.checkout-legal { margin: 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; padding: 0 8px; }
.express-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }

@media (max-width: 640px) {
  .checkout-body { padding: 16px; }
  .addon-pills, .checkout-inputs { grid-template-columns: 1fr; }
  .checkout-search { flex: 1 1 100%; }
  .checkout-map { height: 135px; }
}

.market-coverage { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.market-coverage p { margin: 0 0 6px; }
.market-coverage label, .market-coverage a { display: inline-block; margin: 3px 8px 3px 0; }
.market-coverage select { max-width: 100%; font: inherit; color: var(--ink); background: var(--surface); }
