:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #eef3f7;
  --text: #13202c;
  --muted: #5d6b78;
  --border: #d8e0e7;
  --primary: #0d5a49;
  --primary-soft: #e4f4ee;
  --accent: #c47417;
  --warning: #8c2c13;
  --warning-soft: #fff1eb;
  --shadow: 0 10px 30px rgba(17, 28, 45, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--primary); }
a:hover { opacity: 0.85; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.hero .eyebrow,
.hero .section-label,
.hero__summary,
.hero__meta {
  color: rgba(255, 255, 255, 0.86);
}

h1, h2 {
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.hero__summary {
  max-width: 65ch;
  margin-bottom: 1rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.95rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hero__stat {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.hero__more-link {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.hero__more-link:hover {
  text-decoration: underline;
  opacity: 1;
}

.page-grid {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0 3rem;
}

.card,
.cta-box,
.ad-slot,
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.cta-box,
.disclaimer {
  padding: 1.4rem;
}

.hero__card {
  color: var(--text);
}

.verdict {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.verdict--yes,
.verdict--no {
  background: var(--primary-soft);
  color: var(--primary);
}

.verdict--conditional {
  background: #fff4d7;
  color: #8b5a00;
}

.compact-list,
ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

.compact-list li,
ul li,
ol li {
  margin-bottom: 0.55rem;
}

.section-heading {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1rem;
}

.section-note,
.muted,
.source-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.widget-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.widget-grid input,
.widget-grid select {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  background: var(--surface-alt);
  font: inherit;
}

.widget-result {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.widget-result.is-hidden {
  display: none;
}

.widget-fee {
  font-weight: 700;
  margin: 0.4rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  background: var(--surface-alt);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.two-column-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.metric-list {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0;
}
.metric-list div {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--surface-alt);
}
.metric-list dt {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.metric-list dd {
  margin: 0;
  font-weight: 700;
}

.step-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin: 0;
}
.step-list li::before {
  content: counter(step-counter);
}
.step-list {
  counter-reset: step-counter;
}
.step-list li {
  counter-increment: step-counter;
}
.step-list li::before {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-top: 0.15rem;
}
.step-list__content {
  min-width: 0;
}
.step-list li strong,
.step-list li span {
  display: block;
}
.step-list li strong { margin-bottom: 0.3rem; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--secondary {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--text);
}
.btn--accent {
  background: var(--accent);
  color: #fff;
}

.cta-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #fff7eb, #fff1d8);
}

.cta-box--secondary {
  background: linear-gradient(135deg, #edf7ff, #e3f2ff);
}

.warning-list {
  margin: 0;
  padding-left: 1.2rem;
}
.warning-list li::marker {
  color: var(--warning);
}

.faq-list details {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}
.faq-list p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.ad-slot {
  text-align: center;
  padding: 1rem;
  border-style: dashed;
  color: var(--muted);
  background: rgba(255,255,255,0.4);
}

.disclaimer {
  background: #fffdf6;
}

.site-footer {
  padding: 1.5rem 0 3rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--primary);
  opacity: 1;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.site-header__nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header__nav a:hover {
  color: var(--primary);
  opacity: 1;
}

.static-main {
  padding: 2rem 0 3rem;
}

.static-content {
  max-width: 780px;
}

.static-content h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.static-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.static-content h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.static-content p,
.static-content li {
  line-height: 1.75;
}

.static-content code {
  background: var(--surface-alt);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.hero--landing {
  padding: 4rem 0 3rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero__meta--landing span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.landing-hero__card {
  align-self: start;
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, #ffffff, #f5faf7);
}

.landing-main {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0 3rem;
}

.section-heading--stacked,
.section-heading--stacked-mobile {
  align-items: start;
}

.project-picker,
.card-grid {
  display: grid;
  gap: 0.9rem;
}

.project-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 360px;
  overflow: auto;
  padding-right: 0.25rem;
}

.project-chip,
.mini-card,
.guide-link {
  color: inherit;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 44, 0.12);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.project-chip--link {
  text-decoration: none;
}

.project-chip span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.project-chip:hover,
.project-chip:focus-visible,
.mini-card:hover,
.guide-link:hover,
.guide-link:focus-visible {
  border-color: rgba(13, 90, 73, 0.28);
  box-shadow: 0 10px 24px rgba(17, 28, 45, 0.08);
  opacity: 1;
}

.project-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.project-chip.is-active span {
  color: rgba(255, 255, 255, 0.82);
}

.search-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font: inherit;
}

.search-field input:focus {
  outline: 2px solid rgba(13, 90, 73, 0.18);
  outline-offset: 2px;
  border-color: var(--primary);
}

.landing-search__status {
  margin: -0.25rem 0 0;
}

.card-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mini-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #f7fafc);
  text-decoration: none;
  transition: box-shadow 140ms ease, border-color 140ms ease;
}

.mini-card strong {
  display: block;
}

.mini-card span {
  color: var(--muted);
}

.landing-guide-groups {
  display: grid;
  gap: 1rem;
}

.city-guide-card {
  scroll-margin-top: 1.5rem;
}

.city-guide-card__header {
  margin-bottom: 1rem;
}

.city-guide-card__links {
  grid-template-columns: repeat(auto-fit, minmax(120px, 160px));
}

.guide-group.is-empty {
  display: none;
}

.guide-group h2 {
  margin-bottom: 1rem;
}

.link-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.guide-link-item {
  margin: 0;
}

.guide-link {
  display: block;
  height: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: box-shadow 140ms ease, border-color 140ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero__grid,
  .two-column-card,
  .widget-grid,
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .section-heading--stacked-mobile {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .project-picker {
    grid-template-columns: 1fr;
  }

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

/* ─── Monetization scaffolding — ad slots + CTA zones ─────────────────── */

/* Reset inherited .ad-slot card styling on sub-classes */
.ad-slot-top,
.ad-slot-mid {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* Hide all slots when empty (monetization.enabled = false) */
.ad-slot-top:empty,
.ad-slot-mid:empty,
.cta-zone:empty {
  display: none;
}

/* Dimensions when populated (monetization.enabled = true) */
.ad-slot-top:not(:empty),
.ad-slot-mid:not(:empty) {
  display: block;
  min-height: 250px;
  max-width: 728px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 900px) {
  .ad-slot-top:not(:empty),
  .ad-slot-mid:not(:empty) {
    max-width: 100%;
    min-height: 50px;
  }
}

/* Sticky bottom banner — fixed overlay, hidden until populated */
.ad-slot-sticky-bottom {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.ad-slot-sticky-bottom:not(:empty) {
  display: flex;
}

/* CTA zones — invisible until populated */
.cta-zone {
  width: 100%;
}

.cta-zone:not(:empty) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ─── Coverage matrix ───────────────────────────────────────────────────── */

.coverage-matrix-section {
  padding: 0;
  overflow: hidden;
}

.coverage-matrix-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.coverage-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.coverage-matrix thead tr {
  background: var(--surface-alt);
  border-bottom: 2px solid var(--border);
}

.coverage-matrix th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.col-city {
  min-width: 180px;
}

.col-type {
  width: 72px;
  text-align: center;
}

.coverage-row {
  border-bottom: 1px solid var(--border);
  transition: background 80ms ease;
}

.coverage-row:last-child {
  border-bottom: none;
}

.coverage-row:hover {
  background: var(--surface-alt);
}

.coverage-city {
  padding: 0.55rem 1rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

.coverage-cell {
  padding: 0.55rem 1rem;
  text-align: center;
}

.coverage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 100ms ease, color 100ms ease;
}

.coverage-link:hover {
  background: var(--primary);
  color: #fff;
  opacity: 1;
}

.coverage-gap {
  color: var(--border);
  font-size: 0.9rem;
  user-select: none;
}

.coverage-matrix-note {
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.92rem;
}

/* ─── End coverage matrix ───────────────────────────────────────────────── */

/* =========================================================================
   ATLAS LANDING PAGE — municipal-records aesthetic, scoped to .atlas-body.
   Keeps per-city / compare-hub templates untouched.
   ========================================================================= */

.atlas-body {
  --paper: #f1ebdd;
  --paper-deep: #e7dfcb;
  --paper-edge: #d9cfb5;
  --ink: #1a1410;
  --ink-soft: #5b4e3a;
  --ink-faint: #8a7e6a;
  --rule: #c7b98f;
  --rule-soft: #d9cfb3;
  --stamp: #a8321b;
  --stamp-ink: #7b2210;
  --blueprint: #1e4899;
  --blueprint-soft: #dde5f5;
  --display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02", "cv11";
}

.atlas-body a { color: var(--blueprint); }
.atlas-body a:hover { opacity: 1; color: var(--stamp-ink); }

.atlas-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(30, 72, 153, 0.06), transparent 70%),
    radial-gradient(900px 500px at -10% 110%, rgba(168, 50, 27, 0.05), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(30, 72, 153, 0.045) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(30, 72, 153, 0.045) 31px 32px);
  mix-blend-mode: multiply;
  opacity: 0.75;
}

.atlas-body > * { position: relative; z-index: 1; }

.atlas-container {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.atlas-num { font-family: var(--mono); font-weight: 500; font-feature-settings: "tnum"; font-style: normal; }
.atlas-dot { color: var(--ink-faint); margin: 0 0.15em; }

/* ---------- Masthead ---------- */

.atlas-masthead {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--ink);
  position: relative;
}

.atlas-masthead::before,
.atlas-masthead::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--ink);
}
.atlas-masthead::before { bottom: 5px; }
.atlas-masthead::after { display: none; }

.atlas-masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 3.5rem;
  align-items: end;
}

.atlas-brand__eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25em;
}

.atlas-brand__live {
  color: var(--stamp-ink);
  position: relative;
  padding-left: 0.7em;
}
.atlas-brand__live::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--stamp);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(168, 50, 27, 0.18);
}

.atlas-brand__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  max-width: 16ch;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  color: var(--ink);
}

.atlas-brand__title em {
  font-style: italic;
  color: var(--stamp);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  position: relative;
  padding: 0 0.05em;
}
.atlas-brand__title em::after {
  content: ""; position: absolute; left: -0.05em; right: -0.05em; top: 0.08em; bottom: 0.12em;
  border: 2px solid var(--stamp);
  border-radius: 4px;
  transform: rotate(-1.8deg);
  opacity: 0.45;
  pointer-events: none;
}

.atlas-brand__tagline {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0;
  font-variation-settings: "opsz" 20;
}
.atlas-brand__tagline b { color: var(--ink); font-weight: 500; }

/* Search + seal block (right side of masthead) */

.atlas-search {
  position: relative;
  padding: 1.1rem 1.2rem 1rem;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  min-height: 180px;
}

.atlas-search::before {
  content: ""; position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border: 1px solid var(--rule);
  pointer-events: none;
  z-index: -1;
}

.atlas-seal {
  position: absolute;
  top: -34px; right: -30px;
  width: 110px; height: 110px;
  color: var(--stamp);
  opacity: 0.85;
  transform: rotate(8deg);
  pointer-events: none;
  filter: drop-shadow(0 1px 0 rgba(168, 50, 27, 0.2));
}
.atlas-seal__ring {
  font-family: var(--mono);
  fill: currentColor;
}
.atlas-ready .atlas-seal {
  animation: atlas-seal-spin 80s linear infinite;
  transform-origin: 60px 60px;
}
@keyframes atlas-seal-spin { to { transform: rotate(368deg); } }

.atlas-search__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.55rem;
}

.atlas-search__field {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-bottom: 1.5px solid var(--ink);
  background: transparent;
}

.atlas-search__prefix {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--stamp);
  line-height: 1;
}

.atlas-search__field input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  font: inherit;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  padding: 0.1rem 0;
}
.atlas-search__field input::placeholder {
  color: var(--ink-faint);
  font-style: italic;
}
.atlas-search__field:focus-within {
  border-bottom-color: var(--stamp);
}

.atlas-search__kbd {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.6);
}

.atlas-search__status {
  margin: 0.5rem 0 0;
  min-height: 1em;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.atlas-search__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--rule);
}
.atlas-search__stats div { margin: 0; }
.atlas-search__stats dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.atlas-search__stats dd {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  margin: 0.2rem 0 0;
  font-variation-settings: "opsz" 144;
}

/* ---------- Main ---------- */

.atlas-main {
  padding: 1.75rem 0 3rem;
  display: grid;
  gap: 1.75rem;
}

.atlas-ad {
  min-height: 0;
}
.atlas-ad:empty { display: none; }
.atlas-ad:not(:empty) {
  padding: 0.5rem 0;
  border: 1px dashed var(--rule);
  text-align: center;
}

.atlas-section {
  display: grid;
  gap: 1rem;
}

.atlas-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.5rem;
}

.atlas-section__num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 0.6rem;
}

.atlas-section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.015em;
  margin: 0;
  display: inline;
  color: var(--ink);
}

/* ---------- Tile grid (coverage by city) ---------- */

.atlas-section__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.atlas-dot-legend {
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.atlas-dot-swatch {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--stamp);
  border: 1px solid rgba(0,0,0,0.15);
}
.atlas-dot-swatch--adu { background: var(--blueprint); }
.atlas-dot-swatch--fence { background: #c2811a; }
.atlas-dot-swatch--shed { background: #3b6b3f; }

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.7rem;
}

.atlas-tile {
  position: relative;
  display: contents;
}
.atlas-ready .atlas-tile {
  display: block;
  opacity: 0;
  animation: atlas-tile-in 380ms ease-out forwards;
  animation-delay: var(--atlas-row-delay, 0ms);
}
@keyframes atlas-tile-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.atlas-tile__face {
  --tile-bg: #fdfaf2;
  display: grid;
  grid-template-areas:
    "state name"
    "dots  dots"
    "count count";
  grid-template-columns: auto 1fr;
  row-gap: 0.55rem;
  column-gap: 0.55rem;
  align-items: center;
  width: 100%;
  min-height: 118px;
  padding: 0.75rem 0.85rem 0.7rem;
  background: var(--tile-bg);
  border: 1px solid var(--ink);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 2px 2px 0 rgba(26, 20, 16, 0.08);
  position: relative;
}
.atlas-tile__face::after {
  content: "";
  position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border: 1px dashed var(--rule-soft);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}
.atlas-tile__face:hover,
.atlas-tile__face:focus-visible {
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0 rgba(168, 50, 27, 0.18);
  outline: none;
}
.atlas-tile__face:hover::after,
.atlas-tile__face:focus-visible::after { opacity: 1; }

.atlas-tile:nth-child(3n) .atlas-tile__face { --tile-bg: #fbf6ea; }
.atlas-tile:nth-child(5n) .atlas-tile__face { --tile-bg: #f9f3e2; }

.atlas-tile__state {
  grid-area: state;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.08rem 0.36rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  justify-self: start;
  align-self: start;
}

.atlas-tile__name {
  grid-area: name;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24;
  color: var(--ink);
  align-self: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atlas-tile__dots {
  grid-area: dots;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-self: start;
}
.atlas-tile__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(26, 20, 16, 0.15);
}
.atlas-tile__dot.is-off {
  background: transparent;
  border-color: var(--rule);
}
.atlas-tile__dot.is-on.atlas-tile__dot--deck { background: var(--stamp); }
.atlas-tile__dot.is-on.atlas-tile__dot--fence { background: #c2811a; }
.atlas-tile__dot.is-on.atlas-tile__dot--shed { background: #3b6b3f; }
.atlas-tile__dot.is-on.atlas-tile__dot--adu { background: var(--blueprint); }

.atlas-tile__count {
  grid-area: count;
  justify-self: end;
  align-self: end;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}
.atlas-tile__count .atlas-num {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Modal dialog ---------- */

.atlas-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  max-width: min(640px, calc(100vw - 2rem));
  width: min(640px, calc(100vw - 2rem));
  margin: auto;
}
.atlas-dialog::backdrop {
  background:
    radial-gradient(800px 400px at 30% 20%, rgba(168, 50, 27, 0.08), transparent 60%),
    rgba(26, 20, 16, 0.42);
  backdrop-filter: blur(2px);
}
.atlas-body.atlas-dialog-open { overflow: hidden; }

@keyframes atlas-dialog-in {
  from { opacity: 0; transform: translateY(10px) rotate(-0.4deg); }
  to   { opacity: 1; transform: none; }
}

.atlas-dialog[open] .atlas-dialog__surface {
  animation: atlas-dialog-in 220ms ease-out;
}

.atlas-dialog__surface {
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow:
    0 0 0 6px var(--paper),
    0 0 0 7px var(--rule),
    0 26px 60px -12px rgba(26, 20, 16, 0.4);
  padding: 1.35rem 1.45rem 1.25rem;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.atlas-dialog__surface::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px dashed var(--rule);
  pointer-events: none;
  z-index: 0;
}
.atlas-dialog__surface > * { position: relative; z-index: 1; }

.atlas-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ink);
}

.atlas-dialog__eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.25rem;
}

.atlas-dialog__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 80;
  color: var(--ink);
  margin: 0;
}

.atlas-dialog__close {
  appearance: none;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  width: 32px; height: 32px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
  flex-shrink: 0;
}
.atlas-dialog__close:hover,
.atlas-dialog__close:focus-visible {
  background: var(--stamp);
  color: var(--paper);
  border-color: var(--stamp);
  transform: rotate(90deg);
  outline: none;
}

.atlas-dialog__body {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 0 0.5rem;
}

.atlas-panel__link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 16px;
  column-gap: 0.9rem;
  align-items: center;
  padding: 0.75rem 0.4rem;
  border-bottom: 1px dashed var(--rule-soft);
  text-decoration: none;
  color: var(--ink);
  transition: background 140ms ease, padding-left 140ms ease;
}
.atlas-panel__link:last-child { border-bottom: none; }
.atlas-panel__link:hover {
  background: rgba(168, 50, 27, 0.06);
  padding-left: 0.7rem;
  opacity: 1;
}

.atlas-panel__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  background: rgba(168, 50, 27, 0.04);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.9rem;
  transform: rotate(-4deg);
  transition: transform 140ms ease;
}
.atlas-panel__link:hover .atlas-panel__mark { transform: rotate(-4deg) scale(1.08); }

.atlas-panel__link[data-pt="adu"] .atlas-panel__mark {
  border-color: var(--blueprint);
  color: var(--blueprint);
  background: rgba(30, 72, 153, 0.05);
}

.atlas-panel__link.is-empty {
  color: var(--ink-faint);
  pointer-events: none;
}
.atlas-panel__link.is-empty .atlas-panel__mark {
  border-color: var(--rule);
  color: var(--rule);
  background: transparent;
  transform: none;
}

.atlas-panel__main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.atlas-panel__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
  font-variation-settings: "opsz" 24;
  letter-spacing: -0.005em;
}

.atlas-panel__soon {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-style: normal;
}

.atlas-panel__facts {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  align-items: center;
  justify-items: end;
}
.atlas-panel__facts > div {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.5rem;
  align-items: baseline;
}
.atlas-panel__facts dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
  font-weight: 500;
  text-align: right;
  min-width: 3.2rem;
}
.atlas-panel__facts dd {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
  font-feature-settings: "tnum";
}

.atlas-panel__req--yes { color: var(--stamp-ink); }
.atlas-panel__req--conditional { color: #8b5a00; }
.atlas-panel__req--no { color: #2c5a3b; }

.atlas-panel__arrow {
  font-family: var(--mono);
  color: var(--ink-soft);
  transition: transform 140ms ease;
  justify-self: end;
}
.atlas-panel__link:hover .atlas-panel__arrow {
  transform: translateX(3px);
  color: var(--stamp);
}

.atlas-dialog__foot {
  border-top: 1px dashed var(--rule);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  display: grid;
  gap: 0.3rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.atlas-dialog__verified {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
}
.atlas-dialog__verified:empty { display: none; }

.atlas-dialog__compare {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  align-items: baseline;
}
.atlas-dialog__compare a {
  color: var(--blueprint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.atlas-dialog__compare a:hover {
  border-bottom-color: currentColor;
  opacity: 1;
}

.atlas-ledger__note {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Strip (compare / tools / about) ---------- */

.atlas-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 1.5rem 0;
}

.atlas-strip__col + .atlas-strip__col {
  border-left: 1px dashed var(--rule);
  padding-left: 2rem;
}

.atlas-strip__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}
.atlas-strip__label .atlas-section__num { margin-right: 0.45rem; }

.atlas-strip__list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 0.1rem;
}
.atlas-strip__list li { margin: 0; }
.atlas-strip__list a {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--rule-soft);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 500;
  font-variation-settings: "opsz" 18;
  color: var(--ink);
  transition: color 120ms ease;
}
.atlas-strip__list a:hover {
  color: var(--stamp);
  opacity: 1;
}
.atlas-strip__list em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.atlas-strip__note {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  font-variation-settings: "opsz" 18;
}

/* ---------- Footer ---------- */

.atlas-foot {
  padding: 1.5rem 0 2.25rem;
  border-top: 3px double var(--ink);
  margin-top: 0.5rem;
}

.atlas-foot__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.atlas-foot__seal {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--ink-soft);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.atlas-foot__nav {
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem;
}
.atlas-foot__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}
.atlas-foot__nav a:hover { color: var(--stamp); opacity: 1; }

.atlas-foot__issue {
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- CTA zone (monetization) ---------- */

.atlas-cta:not(:empty) {
  margin: 0 auto 1rem;
  width: min(1180px, calc(100% - 2.5rem));
  padding: 1rem;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .atlas-masthead__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .atlas-search { min-height: 0; }
  .atlas-seal { width: 88px; height: 88px; top: -24px; right: -14px; }
  .atlas-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .atlas-strip__col + .atlas-strip__col {
    border-left: 0;
    border-top: 1px dashed var(--rule);
    padding-left: 0;
    padding-top: 1.25rem;
  }
  .atlas-section__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .atlas-body { --rule-soft: #d9cfb3; }
  .atlas-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.55rem;
  }
  .atlas-tile__face { min-height: 102px; padding: 0.6rem 0.7rem 0.55rem; }
  .atlas-tile__name { font-size: 1rem; }
  .atlas-brand__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .atlas-search__stats dd { font-size: 1.35rem; }
  .atlas-search__stats { gap: 0.25rem; }
  .atlas-foot__inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .atlas-dialog__surface { padding: 1.1rem 1rem 0.9rem; }
  .atlas-panel__link {
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    column-gap: 0.65rem;
    row-gap: 0.35rem;
  }
  .atlas-panel__facts {
    grid-column: 2 / 4;
    justify-items: start;
    gap: 0.15rem;
    padding-top: 0.15rem;
  }
  .atlas-panel__facts > div { grid-template-columns: 3.2rem auto; }
  .atlas-panel__facts dt,
  .atlas-panel__facts dd { text-align: left; }
  .atlas-panel__arrow { grid-row: 1; grid-column: 3; align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-ready .atlas-tile,
  .atlas-dialog[open] .atlas-dialog__surface { animation: none; opacity: 1; }
  .atlas-ready .atlas-seal { animation: none; transform: rotate(8deg); }
}

/* =========================================================================
   ATLAS PAGE STYLES — per-city (permit-page), compare-page, and static-page.
   Overrides legacy .hero, .card, .btn, .data-table, etc. when .atlas-body is
   present. The root landing page defines its own masthead/grid/dialog rules
   above; these rules target the *other* templates that keep legacy markup.
   ========================================================================= */

.atlas-body .container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---------- Site header (static pages) ---------- */

.atlas-body .site-header {
  background: transparent;
  border-bottom: 1px solid var(--ink);
  padding: 0.9rem 0;
}
.atlas-body .site-header__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.atlas-body .site-header__logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  font-variation-settings: "opsz" 60;
}
.atlas-body .site-header__logo::before {
  content: "§ ";
  color: var(--stamp);
  font-style: italic;
}
.atlas-body .site-header__nav {
  display: flex; gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.atlas-body .site-header__nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.atlas-body .site-header__nav a:hover { color: var(--stamp); opacity: 1; }

/* ---------- Hero (permit + compare) ---------- */

.atlas-body .hero {
  background: transparent;
  color: var(--ink);
  padding: 2.4rem 0 1.5rem;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.atlas-body .hero::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 5px; height: 1px;
  background: var(--ink);
}

.atlas-body .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 2.5rem;
  align-items: end;
}

.atlas-body .eyebrow,
.atlas-body .section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 0.7rem;
}
.atlas-body .hero .eyebrow,
.atlas-body .hero .section-label {
  color: var(--ink-soft);
}

.atlas-body .hero h1,
.atlas-body .hero h2,
.atlas-body h1,
.atlas-body h2 {
  font-family: var(--display);
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}

.atlas-body .hero h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 0.9rem;
}

.atlas-body .hero__summary {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.5;
  max-width: 58ch;
  margin: 0 0 1rem;
  font-variation-settings: "opsz" 20;
}

.atlas-body .hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.atlas-body .hero__meta span { position: relative; }
.atlas-body .hero__meta span + span::before {
  content: "·";
  color: var(--ink-faint);
  margin-right: 1rem;
  margin-left: -1rem;
  position: relative;
  left: -0.625rem;
}

.atlas-body .hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.atlas-body .hero__stat {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.5);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 500;
}

.atlas-body .hero__more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blueprint);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  width: fit-content;
}
.atlas-body .hero__more-link:hover { color: var(--stamp); }

/* ---------- Hero quick-answer card (permit-page) ---------- */

.atlas-body .hero__card {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(26, 20, 16, 0.08);
  padding: 1.2rem 1.25rem 1.15rem;
  color: var(--ink);
  position: relative;
}
.atlas-body .hero__card::before {
  content: "";
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 1px dashed var(--rule);
  pointer-events: none;
}
.atlas-body .hero__card > * { position: relative; z-index: 1; }
.atlas-body .hero__card h2 {
  font-size: 0.68rem;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 0.6rem;
  font-variation-settings: normal;
}

.atlas-body .verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  margin: 0 0 1rem;
  transform: rotate(-1.5deg);
  box-shadow: 2px 2px 0 rgba(26, 20, 16, 0.08);
  background: var(--paper);
}
.atlas-body .verdict::before {
  content: "✓";
  font-size: 0.9em;
  line-height: 1;
}
.atlas-body .verdict--yes {
  color: var(--stamp);
  background: rgba(168, 50, 27, 0.06);
}
.atlas-body .verdict--no {
  color: #2c5a3b;
  background: rgba(44, 90, 59, 0.06);
}
.atlas-body .verdict--no::before { content: "○"; }
.atlas-body .verdict--conditional {
  color: #8b5a00;
  background: rgba(139, 90, 0, 0.06);
}
.atlas-body .verdict--conditional::before { content: "~"; font-weight: 700; }

.atlas-body .hero__card-gist {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0.25rem 0 1rem;
  font-variation-settings: "opsz" 20;
}
.atlas-body .hero__card-gist a {
  color: var(--blueprint);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 72, 153, 0.35);
  font-style: normal;
  white-space: nowrap;
}
.atlas-body .hero__card-gist a:hover {
  color: var(--stamp);
  border-bottom-color: currentColor;
  opacity: 1;
}

/* ---------- Main grid + ad slot ---------- */

.atlas-body .page-grid {
  display: grid;
  gap: 1.6rem;
  padding: 1.75rem 0 2.5rem;
}
.atlas-body .ad-slot {
  text-align: center;
  padding: 0.75rem;
  border: 1px dashed var(--rule);
  background: transparent;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  box-shadow: none;
  border-radius: 0;
}
.atlas-body .ad-slot:empty { display: none; }

/* ---------- Cards (paper panels) ---------- */

.atlas-body .card,
.atlas-body .cta-box,
.atlas-body .disclaimer {
  background: rgba(253, 250, 242, 0.92);
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 rgba(26, 20, 16, 0.06);
  padding: 1.5rem 1.6rem;
  position: relative;
}

.atlas-body .card {
  scroll-margin-top: 1.5rem;
}

.atlas-body .card > .section-heading,
.atlas-body .card > .section-label + h2,
.atlas-body .card > h2 {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}
.atlas-body .section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: baseline;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink);
}
.atlas-body .section-heading > div { min-width: 0; }
.atlas-body .section-heading h2 {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "opsz" 60;
}
.atlas-body .section-note {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 42ch;
  text-align: right;
  font-variation-settings: "opsz" 18;
}
.atlas-body h2 {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

/* Lists inside cards */
.atlas-body .card ul:not(.compact-list):not(.warning-list):not(.step-list):not(.link-grid),
.atlas-body .card ol:not(.step-list) {
  padding-left: 1.1rem;
  margin: 0;
}
.atlas-body .compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.atlas-body .compact-list li {
  padding: 0.6rem 0 0.6rem 1.4rem;
  border-bottom: 1px dashed var(--rule-soft);
  position: relative;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  font-variation-settings: "opsz" 20;
}
.atlas-body .compact-list li:last-child { border-bottom: none; }
.atlas-body .compact-list li::before {
  content: "·";
  position: absolute;
  left: 0.3rem;
  color: var(--stamp);
  font-weight: 700;
  font-size: 1.4em;
  top: 0.2rem;
  line-height: 1;
}
.atlas-body .compact-list a {
  color: var(--blueprint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.atlas-body .compact-list a:hover {
  border-bottom-color: currentColor;
  color: var(--stamp);
  opacity: 1;
}

.atlas-body .warning-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.atlas-body .warning-list li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  border-bottom: 1px dashed var(--rule-soft);
  font-family: var(--display);
  line-height: 1.5;
  font-variation-settings: "opsz" 20;
}
.atlas-body .warning-list li:last-child { border-bottom: none; }
.atlas-body .warning-list li::before {
  content: "!";
  position: absolute;
  left: 0; top: 0.65rem;
  width: 1.1rem; height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--stamp);
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: rotate(-4deg);
  line-height: 1;
}

/* ---------- Data tables ---------- */

.atlas-body .table-responsive {
  overflow-x: auto;
  border: 1px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(28, 74, 153, 0.035) 39px 40px),
    #fdfaf2;
}
.atlas-body .data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
}
.atlas-body .data-table th,
.atlas-body .data-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px dashed var(--rule-soft);
  vertical-align: top;
}
.atlas-body .data-table th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-bottom: 1.5px solid var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.atlas-body .data-table td {
  font-size: 0.95rem;
  line-height: 1.5;
}
.atlas-body .data-table tr:last-child td {
  border-bottom: none;
}
.atlas-body .data-table a {
  color: var(--blueprint);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 72, 153, 0.3);
}
.atlas-body .data-table a:hover {
  border-bottom-color: currentColor;
  color: var(--stamp);
  opacity: 1;
}

/* Card without a .data-table should still not double-wrap tables in responsive */
.atlas-body .card > .data-table {
  border: 1px solid var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(28, 74, 153, 0.035) 39px 40px),
    #fdfaf2;
}

/* ---------- Two-column card ---------- */

.atlas-body .two-column-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.atlas-body .two-column-card > div + div {
  border-left: 1px dashed var(--rule);
  padding-left: 2rem;
}
.atlas-body .two-column-card > div > .section-label {
  margin-top: 0;
}
.atlas-body .two-column-card > div > h2 {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.45rem;
  margin-bottom: 0.9rem;
}
@media (max-width: 860px) {
  .atlas-body .two-column-card,
  .atlas-body .widget-grid,
  .atlas-body .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .atlas-body .two-column-card > div + div {
    border-left: 0;
    border-top: 1px dashed var(--rule);
    padding-left: 0;
    padding-top: 1.5rem;
  }
  .atlas-body .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .atlas-body .section-note { text-align: left; }
}

/* ---------- Metric list ---------- */

.atlas-body .metric-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0.25rem;
}
.atlas-body .metric-list > div {
  display: grid;
  grid-template-columns: minmax(8rem, 10rem) 1fr;
  gap: 1.25rem;
  padding: 0.7rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed var(--rule-soft);
  border-radius: 0;
  align-items: baseline;
}
.atlas-body .metric-list > div:last-child { border-bottom: none; }
.atlas-body .metric-list dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 500;
}
.atlas-body .metric-list dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  font-variation-settings: "opsz" 20;
}

/* ---------- Step list (process) ---------- */

.atlas-body .step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: atlas-step;
  display: grid;
  gap: 0.85rem;
}
.atlas-body .step-list li {
  counter-increment: atlas-step;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.25rem;
  padding: 0.85rem 0 0.85rem 0;
  border-bottom: 1px dashed var(--rule-soft);
  align-items: start;
}
.atlas-body .step-list li:last-child { border-bottom: none; }
.atlas-body .step-list li::before {
  content: counter(atlas-step, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--stamp);
  background: transparent;
  border-radius: 0;
  width: auto;
  height: auto;
  display: block;
  place-items: initial;
  margin: 0;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.03em;
}
.atlas-body .step-list li strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
  font-variation-settings: "opsz" 24;
}
.atlas-body .step-list li span {
  display: block;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.96rem;
}

/* ---------- Buttons ---------- */

.atlas-body .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.atlas-body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 0;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1.5px solid var(--ink);
  transition: background 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.atlas-body .btn::after {
  content: "→";
  margin-left: 0.2rem;
  font-family: var(--mono);
}
.atlas-body .btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--stamp);
}
.atlas-body .btn--primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--stamp);
  opacity: 1;
}
.atlas-body .btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.atlas-body .btn--secondary:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}
.atlas-body .btn--accent {
  background: var(--stamp);
  color: var(--paper);
  border-color: var(--stamp);
  box-shadow: 3px 3px 0 rgba(26, 20, 16, 0.15);
}
.atlas-body .btn--accent:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(26, 20, 16, 0.2);
  opacity: 1;
}

/* ---------- CTA boxes (affiliate placeholders) ---------- */

.atlas-body .cta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-deep);
}
.atlas-body .cta-box--secondary {
  background: rgba(30, 72, 153, 0.06);
  border-color: var(--blueprint);
}
.atlas-body .cta-box > div { max-width: 52ch; }

/* ---------- FAQ accordion ---------- */

.atlas-body .faq-list details {
  border-top: 1px dashed var(--rule);
  padding: 1rem 0;
}
.atlas-body .faq-list details:last-child {
  border-bottom: 1px dashed var(--rule);
}
.atlas-body .faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24;
}
.atlas-body .faq-list summary::-webkit-details-marker { display: none; }
.atlas-body .faq-list summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 1.4rem; height: 1.4rem;
  display: inline-flex;
  align-items: center; justify-content: center;
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 3px;
  background: rgba(168, 50, 27, 0.04);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
  transform: rotate(-4deg);
}
.atlas-body .faq-list details[open] summary::before {
  content: "×";
  background: var(--stamp);
  color: var(--paper);
  transform: rotate(0deg);
}
.atlas-body .faq-list p {
  margin: 0.9rem 0 0;
  padding-left: 2.15rem;
  color: var(--ink-soft);
  font-family: var(--display);
  line-height: 1.6;
  font-variation-settings: "opsz" 20;
}

/* ---------- Widget (interactive check) ---------- */

.atlas-body .widget-card { }

.atlas-body .widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 0.5rem 0 0;
}
.atlas-body .widget-grid label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.atlas-body .widget-grid label > span { color: var(--ink-soft); }
.atlas-body .widget-grid input,
.atlas-body .widget-grid select {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.65rem 0.8rem;
  background: var(--paper);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  font-variation-settings: "opsz" 20;
  appearance: none;
  -webkit-appearance: none;
}
.atlas-body .widget-grid select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.atlas-body .widget-grid input:focus,
.atlas-body .widget-grid select:focus {
  outline: 2px solid var(--stamp);
  outline-offset: 1px;
  border-color: var(--stamp);
}
.atlas-body .widget-grid input[readonly] {
  background: var(--paper-deep);
  color: var(--ink-soft);
  cursor: default;
}

.atlas-body .widget-result {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(168, 50, 27, 0.12);
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
  font-variation-settings: "opsz" 24;
  line-height: 1.45;
}
.atlas-body .widget-result.is-hidden { display: none; }
.atlas-body .widget-fee {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--stamp);
  margin: 0.45rem 0 0;
}
.atlas-body .widget-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0.5rem 0 0;
}

/* ---------- Disclaimer ---------- */

.atlas-body .disclaimer {
  border: 1px dashed var(--stamp);
  background: rgba(168, 50, 27, 0.04);
  padding: 1.1rem 1.25rem;
  box-shadow: none;
}
.atlas-body .disclaimer p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-variation-settings: "opsz" 20;
}
.atlas-body .disclaimer strong {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp);
  font-weight: 500;
  margin-right: 0.4rem;
}

/* ---------- Footer ---------- */

.atlas-body .site-footer {
  padding: 1.5rem 0 2.25rem;
  margin-top: 1rem;
  border-top: 3px double var(--ink);
  color: var(--ink-soft);
}
.atlas-body .site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.atlas-body .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.atlas-body .footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.atlas-body .footer-nav a:hover { color: var(--stamp); opacity: 1; }
.atlas-body .site-footer p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Static content (privacy, about, terms, etc.) ---------- */

.atlas-body .static-main {
  padding: 2rem 0 3rem;
}
.atlas-body .static-content {
  max-width: 72ch;
  margin: 0 auto;
  padding: 2rem 2.2rem;
  font-family: var(--sans);
}
.atlas-body .static-content h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.8rem;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.atlas-body .static-content h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
}
.atlas-body .static-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
.atlas-body .static-content h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  margin: 1.5rem 0 0.4rem;
  font-variation-settings: "opsz" 24;
}
.atlas-body .static-content p,
.atlas-body .static-content li {
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink);
}
.atlas-body .static-content a {
  color: var(--blueprint);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 72, 153, 0.35);
}
.atlas-body .static-content a:hover {
  color: var(--stamp);
  border-bottom-color: currentColor;
  opacity: 1;
}
.atlas-body .static-content code {
  background: var(--paper-deep);
  border: 1px solid var(--rule-soft);
  padding: 0.08em 0.4em;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.88em;
}
.atlas-body .static-content strong { color: var(--ink); }

/* ---------- Main container (compare-page) ---------- */

.atlas-body .compare-main {
  padding: 1.75rem 0 2.5rem;
  display: grid;
  gap: 1.5rem;
}

/* ---------- Sticky/CTA zone overrides on legacy pages ---------- */

.atlas-body .cta-zone:not(:empty) {
  padding: 1rem;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 0;
  box-shadow: none;
}
.atlas-body .cta-zone__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--stamp);
  color: var(--paper);
  border: 1.5px solid var(--stamp);
  box-shadow: 3px 3px 0 rgba(26, 20, 16, 0.15);
  font-weight: 500;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.atlas-body .cta-zone__link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(26, 20, 16, 0.2);
  opacity: 1;
}

.atlas-body .ad-slot-sticky-bottom {
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

/* ---------- Facts strip (permit-page, under hero) ---------- */

.atlas-facts-strip {
  border-bottom: 1px solid var(--ink);
  background: var(--paper-deep);
  padding: 0.8rem 0;
}
.atlas-facts-strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 2rem;
  align-items: baseline;
}
.atlas-facts-strip__item {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
}
.atlas-facts-strip__item + .atlas-facts-strip__item {
  padding-left: 1.25rem;
  border-left: 1px dashed var(--rule);
}
.atlas-facts-strip__label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  white-space: nowrap;
  font-weight: 500;
}
.atlas-facts-strip__value {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 20;
  line-height: 1.35;
  min-width: 0;
}
.atlas-facts-strip__value--note {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
@media (max-width: 860px) {
  .atlas-facts-strip__item + .atlas-facts-strip__item {
    padding-left: 0;
    border-left: 0;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--rule);
  }
  .atlas-facts-strip__inner { grid-template-columns: 1fr; }
}

/* ---------- Atlas source list (official links with title + host) ---------- */

.atlas-body .atlas-source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.1rem;
}
.atlas-body .atlas-source-list li { margin: 0; }
.atlas-body .atlas-source-list a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--rule-soft);
  text-decoration: none;
  color: var(--blueprint);
  transition: color 120ms ease;
}
.atlas-body .atlas-source-list li:last-child a { border-bottom: none; }
.atlas-body .atlas-source-list a:hover .atlas-source-list__title,
.atlas-body .atlas-source-list a:focus-visible .atlas-source-list__title {
  color: var(--stamp);
  border-bottom-color: currentColor;
}
.atlas-body .atlas-source-list a:hover .atlas-source-list__host,
.atlas-body .atlas-source-list a:focus-visible .atlas-source-list__host {
  color: var(--stamp);
}
.atlas-body .atlas-source-list__title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  font-variation-settings: "opsz" 20;
  line-height: 1.3;
  color: var(--blueprint);
  border-bottom: 1px solid rgba(30, 72, 153, 0.35);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 120ms ease, border-bottom-color 120ms ease;
}
.atlas-body .atlas-source-list__title::after {
  content: " ↗";
  font-family: var(--mono);
  font-size: 0.75em;
  color: var(--ink-faint);
  letter-spacing: 0;
}
.atlas-body .atlas-source-list__host {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Atlas 2-col row (pairs two sections on one line) ---------- */

.atlas-body .atlas-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: start;
}
.atlas-body .atlas-row-2 > .card { margin: 0; }
@media (max-width: 960px) {
  .atlas-body .atlas-row-2 { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* Fees table adapts to narrow column: tighter padding, smaller notes */
.atlas-body .atlas-row-2 .data-table th,
.atlas-body .atlas-row-2 .data-table td {
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
}
.atlas-body .atlas-row-2 .data-table td:last-child {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Widget grid in half-width column: stack to 1 col for readability */
.atlas-body .atlas-row-2 .widget-grid {
  grid-template-columns: 1fr;
}

/* ---------- Atlas prose (in-card body paragraph) ---------- */

.atlas-body .atlas-prose {
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 0.9rem;
  font-variation-settings: "opsz" 20;
  max-width: 72ch;
}
.atlas-body .atlas-prose--muted {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}
.atlas-body .atlas-prose a {
  color: var(--blueprint);
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 72, 153, 0.3);
  word-break: break-all;
}
.atlas-body .atlas-prose a:hover {
  color: var(--stamp);
  border-bottom-color: currentColor;
  opacity: 1;
}

/* ---------- Tight two-column variant (inside provenance card) ---------- */

.atlas-body .two-column-card--tight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--rule);
}
.atlas-body .two-column-card--tight > div + div {
  border-left: 1px dashed var(--rule);
  padding-left: 1.75rem;
}
.atlas-body .two-column-card--tight h2 {
  display: none; /* labels carry the weight in tight variant */
}
@media (max-width: 860px) {
  .atlas-body .two-column-card--tight {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .atlas-body .two-column-card--tight > div + div {
    border-left: 0;
    border-top: 1px dashed var(--rule);
    padding-left: 0;
    padding-top: 1.25rem;
  }
}

/* ---------- Explore band (related permits + compare + tools) ---------- */

.atlas-explore {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 0.5rem 0;
}
.atlas-explore__col + .atlas-explore__col {
  border-left: 1px dashed var(--rule);
  padding-left: 2rem;
}
.atlas-explore__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}
.atlas-explore__label .atlas-section__num { margin-right: 0.45rem; }
.atlas-explore__list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 0.1rem;
}
.atlas-explore__list li { margin: 0; }
.atlas-explore__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--rule-soft);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  font-variation-settings: "opsz" 20;
  color: var(--ink);
  transition: color 120ms ease;
}
.atlas-explore__list a:hover { color: var(--stamp); opacity: 1; }
.atlas-explore__list em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.atlas-explore__list a:hover em { color: var(--stamp); }
@media (max-width: 860px) {
  .atlas-explore {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .atlas-explore__col + .atlas-explore__col {
    border-left: 0;
    border-top: 1px dashed var(--rule);
    padding-left: 0;
    padding-top: 1.25rem;
  }
}
