/* Colorado Property Search — Professional Property Research Platform
   Curated design tokens & typography inspired by leading property research standards.
   All contrast pairs checked against WCAG AA standards. */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&display=swap');

[hidden] { display: none !important; }

:root {
  /* Warm editorial off-white / stone background */
  --bg:          #F7F6F3;
  --paper:       #F7F6F3;
  --surface:     #FFFFFF;
  --band:        #EFECE6;
  --border:      #E4E0D8;
  --border-subtle: #EDEAE3;
  --rule:        #E4E0D8;
  --rule-strong: #CDC8BD;

  /* Typography inks */
  --ink:         #181816;   /* Rich obsidian */
  --ink2:        #2E2E2A;   /* Primary body */
  --ink-soft:    #2E2E2A;
  --ink3:        #6A6A62;   /* Secondary / muted */
  --muted:       #6A6A62;
  --ink-light:   #9B988E;

  /* Color system - Emerald & Forest accents */
  --nav:         #0D1A0F;   /* Deep obsidian slate */
  --nav-border:  #1B2E1E;
  --brand:       #2D6A4F;   /* Emerald forest */
  --brand-deep:  #1B4332;
  --brand-deeper:#0D1A0F;
  --brand-tint:  #E8F4EC;   /* Mint tint */
  --green:       #2D6A4F;
  --green-dark:  #1B4332;
  --green-l:     #E8F4EC;
  --green-b:     #B8D9C2;

  --accent:      #B3541E;   /* Warm terracotta/rust */
  --accent-tint: #FDF3EC;
  --accent-soft: #F9DEC9;
  --gold:        #C28E58;

  --ok:          #2D6A4F;
  --warn:        #945800;

  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   14px;
  --wrap:        1200px;
  --wrap-narrow: 780px;

  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg:   0 12px 32px rgba(13, 26, 15, 0.12);

  --step--1: clamp(0.80rem, 0.78rem + 0.10vw, 0.86rem);
  --step-0:  clamp(0.92rem, 0.90rem + 0.12vw, 0.98rem);
  --step-1:  clamp(1.08rem, 1.04rem + 0.22vw, 1.22rem);
  --step-2:  clamp(1.26rem, 1.18rem + 0.45vw, 1.52rem);
  --step-3:  clamp(1.50rem, 1.32rem + 0.90vw, 1.95rem);
  --step-4:  clamp(1.85rem, 1.50rem + 1.80vw, 2.50rem);

  --sans:  'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: 'Merriweather', Georgia, serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink2);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--brand-deep); color: #fff; padding: .65rem 1.1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── layout ────────────────────────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: 1.25rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.band { background: var(--band); border-block: 1px solid var(--rule); }
.band-dark { background: var(--ink); color: #E8EDE9; }
.band-dark a { color: #BFE3D3; }

/* Controlled, compact section rhythm - eliminate excessive whitespace */
section { padding-block: clamp(1.4rem, 1.1rem + 1.2vw, 2.3rem); }
section.tight { padding-block: clamp(0.9rem, 0.7rem + 0.8vw, 1.5rem); }

/* ── page header (for inner pages - replaces disconnected dark hero) ───── */

.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding-block: 1.2rem 1.4rem;
}
.page-head .eyebrow { margin-bottom: 0.35rem; }
.page-head h1 {
  color: var(--ink);
  font-family: var(--serif);
  margin: 0 0 0.45rem;
  font-size: var(--step-3);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.page-head .direct-ans {
  background: var(--brand-tint);
  border-left: 3.5px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1.15rem;
  margin-top: 0.85rem;
  max-width: 58rem;
}
.page-head .direct-ans p {
  margin: 0;
  font-size: var(--step-0);
  color: var(--ink2);
  line-height: 1.6;
}
.page-head .direct-ans strong { color: var(--ink); }

/* ── type ──────────────────────────────────────────────────────────────── */

h1, h2 {
  font-family: var(--serif);
  line-height: 1.25;
  margin: 0 0 .4em;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h3, h4 {
  font-family: var(--sans);
  line-height: 1.3;
  margin: 0 0 .38em;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: var(--step-3); letter-spacing: -0.025em; }
h2 { font-size: var(--step-2); margin-top: 0.25em; }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p { margin: 0 0 0.95em; max-width: 68ch; color: var(--ink2); }
.lede { font-size: var(--step-0); color: var(--ink2); max-width: 62ch; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.tnum { font-variant-numeric: tabular-nums; }

a { color: var(--green); text-underline-offset: .18em; text-decoration-color: rgba(45, 106, 79, 0.4); }
a:hover { color: var(--green-dark); text-decoration-color: var(--green-dark); }

.eyebrow {
  display: inline-block; font-size: var(--step--1); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .4rem;
}

/* ── header ────────────────────────────────────────────────────────────── */

.masthead {
  background: var(--nav);
  color: #fff;
  padding-block: .8rem;
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.masthead .masthead-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.brandmark {
  display: flex; align-items: center; gap: .7rem;
  color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -.02em;
  font-size: 1.05rem; margin-right: auto;
}
.brandmark .mark {
  width: 32px; height: 32px; flex: none; border-radius: 8px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  display: grid; place-items: center; font-size: .82rem; font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.masthead .primary { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.masthead .primary a {
  color: #D6E4DB; text-decoration: none; font-size: var(--step--1); font-weight: 600;
  padding-block: .3rem; padding-inline: .2rem;
  transition: color .15s ease;
}
.masthead .primary a:hover, .masthead .primary a[aria-current] { color: #fff; text-decoration: underline; text-decoration-color: var(--green-b); }
.masthead .primary a[data-mm-trigger] {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: 0; cursor: pointer; font: inherit;
}
.masthead .primary a[data-mm-trigger]::after {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; opacity: .7;
  margin-left: .15rem;
}
.masthead .primary a[data-mm-trigger][aria-expanded="true"] { color: #fff; }

/* mega-menu — appears below the masthead bar, anchored to the bar's full
   width. Built as a single list of every county, filterable client-side. */
.mm-tray {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--ink);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 18px 36px rgba(0,0,0,.18);
  z-index: 30;
}
.megamenu-inner { max-width: var(--wrap); margin-inline: auto; padding: 1.1rem 1.25rem 1.25rem; }
.megamenu-search {
  position: relative; max-width: 32rem; margin-bottom: .9rem;
}
.mm-search-ico {
  position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.megamenu-search input {
  width: 100%; font: inherit; font-size: var(--step--0);
  padding: .55rem .8rem .55rem 2.1rem;
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}
.megamenu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .25rem 1.2rem; max-height: 28rem; overflow: auto;
}
.mm-item {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: .45rem .2rem; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.mm-item:hover { background: var(--paper); color: var(--brand-deep); }
.mm-item[hidden] { display: none; }
.mm-name { font-weight: 600; }
.mm-meta { color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.mm-meta-l { font-size: .75rem; opacity: 0; }
.mm-item .mm-meta::after { content: " p."; font-size: .7rem; opacity: 0; }
.megamenu-foot {
  display: inline-block; margin-top: .9rem; color: var(--brand);
  font-weight: 700; text-decoration: none;
}
.megamenu-foot:hover { color: var(--brand-deep); text-decoration: underline; }

/* ── hero ──────────────────────────────────────────────────────────────── */

/* Subtle, static vertical gradient on the hero panel — interest without
   motion, animated gradients, or any "glass prism" effect. Respects
   prefers-reduced-motion by default (no animation to suppress). */
.hero {
  background: linear-gradient(180deg,
    var(--brand-deep) 0%,
    var(--brand-deeper) 100%);
  color: #fff;
  padding-block: clamp(1.8rem, 1.2rem + 2.5vw, 3rem) clamp(1.8rem, 1.2rem + 2.8vw, 3.2rem);
  position: relative;
  overflow: hidden;
}
/* a single very subtle radial accent — static, no animation, no JS.
   Sits behind the panel/copy at <5% opacity, adds depth without competing
   with the search affordance. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 0%,
    rgba(255, 255, 255, 0.045) 0%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { max-width: 1280px; position: relative; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.hero-single,
.hero-inner:has(> :only-child) {
  grid-template-columns: 1fr;
}

.hero-copy { max-width: 44rem; }
.hero-single .hero-copy,
.hero-inner:has(> :only-child) .hero-copy {
  max-width: 54rem;
}
.hero h1 {
  color: #fff; margin: 0 0 .5em; max-width: 22ch;
  text-wrap: pretty; line-height: 1.1; letter-spacing: -0.03em;
  /* The headline is now the load-bearing element. A slightly heavier weight
     than the previous design helps it anchor the panel beside it. */
  font-weight: 720;
}
.hero .lede {
  color: #C9E0D7; margin: 0; max-width: 50ch;
  text-wrap: pretty; font-size: var(--step-1);
  line-height: 1.55;
}
.hero .lede strong { color: #fff; font-weight: 680; }

/* the search panel — the one elevated object on the page. Renamed
   from .searchcard to .hero-panel to make the relationship clear, and
   stacked: search form → sample result → popular counties. */
.hero-panel { display: flex; flex-direction: column; gap: 0.85rem; }

.searchcard {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, .28),
    0 2px 0 rgba(255, 255, 255, .04) inset;
  border: 1px solid rgba(0, 0, 0, .04);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.searchcard form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.searchcard label {
  display: block; font-size: var(--step--1); font-weight: 700;
  color: var(--ink-soft); margin-bottom: .45rem;
}

.findrow {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}
.findrow .btn {
  width: 100%;
  padding-block: .8rem;
  font-size: var(--step-0);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(158, 74, 26, 0.25);
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.findrow .btn:hover {
  background: #8E4413;
  box-shadow: 0 4px 14px rgba(158, 74, 26, 0.35);
  transform: translateY(-1px);
}
.findrow.findrow-split,
.findrow:has(.field-county) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}
.findrow.findrow-split .btn,
.findrow:has(.field-county) .btn {
  width: auto;
  padding-inline: 1.4rem;
}
@media (max-width: 640px) {
  .findrow.findrow-split,
  .findrow:has(.field-county) {
    grid-template-columns: 1fr;
  }
  .findrow.findrow-split .btn,
  .findrow:has(.field-county) .btn {
    width: 100%;
  }
}
.searchcard .field { flex: none; width: 100%; }

.field { flex: 1 1 260px; min-width: 0; }

/* the icon anchors to the input, not the label above it */
.control { position: relative; display: block; }
.control .ico {
  position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}

input[type="search"], input[type="text"], select {
  width: 100%; font: inherit; font-size: var(--step-0);
  padding: .72rem .8rem .72rem 2.1rem;
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
select { padding-left: .8rem; }
input::placeholder { color: #6E7D77; }

/* Focus visibility for inputs — the only "animation" we ship, and it's a
   150ms transition that respects prefers-reduced-motion. */
input:focus, select:focus, .btn:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 90, 67, .18);
}
input:focus { box-shadow: 0 0 0 3px rgba(11, 90, 67, .18); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-weight: 700; font-size: var(--step-0);
  padding: .74rem 1.3rem; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; border: 1.5px solid var(--accent);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #8E4413; border-color: #8E4413; color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-deep); }
.btn-sm { padding: .45rem .8rem; font-size: var(--step--1); }

.chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  padding-top: .5rem;
}
.chips-label { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); margin-right: .15rem; }
.chips a {
  font-size: var(--step--1); font-weight: 600; text-decoration: none;
  color: var(--ink-soft); background: var(--band);
  border: 1px solid var(--rule); border-radius: 99px; padding: .3rem .7rem;
  transition: background .15s, border-color .15s, color .15s;
}
.chips a:hover { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-deep); }

/* The single-line trust signal that lives below the search panel. */
.trust {
  font-size: var(--step--1); color: var(--muted);
  text-align: center;
  font-weight: 600; letter-spacing: .01em;
}
/* …but a trust line placed directly on the dark hero gradient needs the
   light variant; the same line inside a light card keeps the muted grey. */
.hero-panel > .trust {
  color: #C9E0D7;
  font-size: 0.82rem;
  margin-top: 0.25rem;
  opacity: 0.95;
}

/* The county hero's jump-list card — same elevated surface as the search
   card, holding on-page anchors instead of a form. */
.hero-jump {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1rem, .8rem + .7vw, 1.4rem);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, .28),
    0 2px 0 rgba(255, 255, 255, .04) inset;
  border: 1px solid rgba(0, 0, 0, .04);
}
.hero-jump .jump-kicker {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .55rem;
}
.hero-jump ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.hero-jump a {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .45rem .55rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink); font-weight: 650; font-size: var(--step--1);
  transition: background .15s, color .15s;
}
.hero-jump a::after { content: "→"; color: var(--muted); font-weight: 400; }
.hero-jump a:hover { background: var(--brand-tint); color: var(--brand-deep); }
.hero-jump a:hover::after { color: var(--brand-deep); }
.hero-jump .trust {
  border-top: 1px solid var(--rule); margin-top: .7rem;
  padding-top: .65rem; text-align: left;
}

/* The sample-result card — shown in the hero so a new user pattern-matches
   "that's what I'll get back." Plain styling, no animation. */
.sample {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  transition: border-color .15s, background .15s, transform .15s;
}
.sample:hover {
  border-color: var(--brand);
  background: #fff;
  transform: translateY(-1px);
}
.sample-head {
  display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap;
  margin-bottom: .35rem;
}
.sample-pin {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: .1rem .42rem; border-radius: 3px; flex: none;
}
.sample-addr {
  font-weight: 700; font-size: var(--step-0); color: var(--ink);
  flex: 1 1 auto; min-width: 0;
}
.sample-meta {
  display: flex; flex-wrap: wrap; gap: .15rem 1rem;
  font-size: var(--step--1); color: var(--muted);
  margin-bottom: .5rem;
}
.sample-meta strong {
  color: var(--ink); font-weight: 700; margin-right: .25rem;
}
.sample-cta {
  font-size: var(--step--1); font-weight: 700; color: var(--brand);
  display: inline-flex; align-items: center; gap: .25rem;
}
.sample:hover .sample-cta { color: var(--brand-deep); }

/* ── cards & grids ─────────────────────────────────────────────────────── */

.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.15rem;
}
.card h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(11,90,67,.10); }
.card-link:hover h3 { color: var(--brand); }

/* ── Modern responsive editorial cards ───────────────────────────────────── */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: stretch;
}
.editorial-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.editorial-card:hover {
  border-color: rgba(45, 106, 79, 0.35);
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.07);
}
.editorial-card .card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
}
.editorial-card .card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.editorial-card h3 {
  font-size: 1.1rem;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.editorial-card p {
  color: var(--ink2);
  line-height: 1.62;
  font-size: 0.94rem;
  margin-bottom: 0.85rem;
}
.editorial-card p:last-child {
  margin-bottom: 0;
}
.editorial-card .rec-list {
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 1rem 1.1rem; }
.stat .k { font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: var(--step-2); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: .15rem; }
.band-dark .stat { background: var(--ink); }
.band-dark .stat .k { color: #9FB8AE; }
.band-dark .stat .v { color: #fff; }

/* ── tables ────────────────────────────────────────────────────────────── */

.tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #8FA89D transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tablewrap::before {
  content: "← Scroll table horizontally to view all columns →";
  display: none;
  font-size: 0.74rem;
  font-weight: 650;
  color: #0B5A43;
  background: #EAF5F0;
  border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0.85rem;
  text-align: center;
  letter-spacing: 0.02em;
}
.tablewrap::-webkit-scrollbar { height: 8px; }
.tablewrap::-webkit-scrollbar-track { background: #EEF2F0; border-radius: 4px; }
.tablewrap::-webkit-scrollbar-thumb { background: #8FA89D; border-radius: 4px; }
.tablewrap::-webkit-scrollbar-thumb:hover { background: #5E7A6E; }

table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
caption { text-align: left; padding: .8rem 1rem; font-weight: 700; color: var(--ink-soft); border-bottom: 1px solid var(--rule); position: sticky; left: 0; }
th, td { padding: .55rem .85rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--band); font-weight: 700; color: var(--ink-soft); white-space: nowrap; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FAFCFB; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.mono { font-family: var(--mono); font-size: .95em; white-space: nowrap; }

/* ── definition rows ───────────────────────────────────────────────────── */

.deflist { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.deflist .r { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 1rem; padding: .6rem 1rem; border-bottom: 1px solid var(--rule); }
.deflist .r:last-child { border-bottom: 0; }
.deflist dt { font-weight: 650; color: var(--muted); font-size: var(--step--1); }
.deflist dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ── callouts ──────────────────────────────────────────────────────────── */

.callout { border-left: 4px solid var(--brand); background: var(--brand-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .85rem 1.1rem; }
.callout.warn { border-left-color: var(--warn); background: var(--accent-tint); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--brand-deep); }
.callout.warn strong { color: #6B3F00; }

.badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .16rem .45rem; border-radius: 4px; }
.badge-yes { background: #DCEFE3; color: #0B5A43; }
.badge-no  { background: #F0EEE7; color: #6B6152; }

/* ── search page ───────────────────────────────────────────────────────── */

.results { margin-top: 1.25rem; }
.result {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem;
  padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface); margin-bottom: .6rem;
}
.result .addr { font-weight: 700; font-size: var(--step-0); }
.result .meta { grid-column: 1; font-size: var(--step--1); color: var(--muted); }
.result .val { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-variant-numeric: tabular-nums; align-self: center; }
.result .val .n { font-weight: 700; font-size: var(--step-1); display: block; }
.result .val .l { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.searchbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; }
.searchbar .field { flex: 1 1 300px; }
.status { font-size: var(--step--1); color: var(--muted); padding: .6rem 0; }
.pager { display: flex; gap: .5rem; align-items: center; justify-content: center; padding: 1rem 0; }
.pager button { font: inherit; font-size: var(--step--1); font-weight: 600; padding: .45rem .9rem; border: 1px solid var(--rule-strong); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; }
.pager button:disabled { opacity: .45; cursor: default; }

/* ── footer ────────────────────────────────────────────────────────────── */

footer.site { background: #0D1A0F; color: #C8D2CD; padding-block: 3.2rem 2.2rem; font-size: var(--step--1); border-top: 1px solid #1E2D27; }
footer.site .foot-title { color: #fff; font-size: 0.78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .85rem; }
footer.site a { color: #A9B6B1; text-decoration: none; transition: color 0.15s ease; }
footer.site a:hover { color: #52B788; text-decoration: none; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footgrid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem 2.2rem;
  align-items: start;
}
.foot-about { max-width: 28rem; }
.foot-blurb { color: #A9B6B1; margin-bottom: .8em; line-height: 1.55; }
.foot-blurb-tight { margin-top: .9em; margin-bottom: 0; }
.foot-blurb strong { color: #fff; }
.footnote { border-top: 1px solid #1E2D27; margin-top: 2.2rem; padding-top: 1.4rem; }
.foot-disclaimer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #2B4237;
  border-left: 4px solid #52B788;
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  color: #D6E2DD;
}
.foot-disclaimer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #52B788;
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}
.foot-shield-icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.foot-disclaimer-body {
  color: #D6E2DD;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  max-width: none;
}
.foot-disclaimer-body strong {
  color: #FFFFFF;
  font-weight: 700;
}
.foot-disclaimer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  color: #A9BDB4;
  font-size: 0.82rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-disclaimer-meta strong {
  color: #FFFFFF;
}
.foot-disclaimer-meta a {
  color: #6CD2A4;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.foot-disclaimer-meta a:hover {
  color: #A5F0CD;
}
.meta-sep {
  color: #4C6558;
}

.foot-credit-bar {
  border-top: 1px solid #1E2D27;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  text-align: center;
}
.foot-credit-line {
  color: #8E9F97;
  font-size: 0.84rem;
  margin: 0;
}
.foot-credit-line a {
  color: #C8D6D0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.foot-credit-line a:hover {
  color: #52B788;
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .footgrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
  .foot-about {
    grid-column: 1 / -1;
    max-width: none;
  }
}
@media (max-width: 680px) {
  .footgrid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

/* ── doc/policy pages (About, Contact, Terms, Privacy, Disclaimer) ──────── */
.doc-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2.2rem;
  align-items: start;
  margin-top: 1.2rem;
}
.doc-sidebar {
  position: sticky;
  top: 4.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.doc-nav-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.doc-nav-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.doc-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.doc-nav-list a {
  color: var(--ink2);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 550;
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.doc-nav-list a:hover {
  background: var(--brand-tint);
  color: var(--brand);
}
.doc-nav-list a.active {
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-weight: 750;
}
.doc-body {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2.4rem clamp(1.2rem, 1rem + 2vw, 3rem);
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}
.doc-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
  color: var(--ink);
  margin-top: 2.4rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
}
.doc-body h2:first-of-type {
  margin-top: 0;
}
.doc-body h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 1.6rem;
  margin-bottom: 0.55rem;
  font-weight: 750;
}
.doc-body p {
  color: var(--ink2);
  margin-bottom: 1.15rem;
  font-size: 0.96rem;
}
.doc-body ul, .doc-body ol {
  color: var(--ink2);
  margin-bottom: 1.3rem;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}
.doc-body li {
  margin-bottom: 0.5rem;
}
.doc-highlight-card {
  background: #F8FAF9;
  border: 1px solid #D1E5DA;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin-block: 1.5rem;
}
.doc-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}
.doc-stat-card {
  background: var(--band);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}
.doc-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  display: block;
}
.doc-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-top: 0.2rem;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.contact-form-full {
  grid-column: 1 / -1;
}
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
@media (max-width: 960px) {
  .doc-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .doc-sidebar {
    position: static;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ── misc ──────────────────────────────────────────────────────────────── */

.crumbs { font-size: var(--step--1); color: var(--muted); padding-block: .8rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { padding-inline: .35rem; color: var(--rule-strong); }

.flow > * + * { margin-top: 1rem; }
.stack > * + * { margin-top: .5rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin-block: 2rem; }

/* ── responsive ────────────────────────────────────────────────────────── */

/* Two columns only while the headline still sets on two lines; below this the
   copy would be squeezed to three ragged lines, so the panel drops beneath it. */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-copy { max-width: none; }
  .hero h1 { max-width: 22ch; }
  .hero .lede { max-width: 62ch; }
}

/* In the stacked hero the panel is full width, so the three controls sit on one
   line instead of stretching: a wide text field, a fixed county, the button. */
@media (min-width: 700px) and (max-width: 980px) {
  form.searchcard:has(.field-county),
  .searchcard.has-filter { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
  form.searchcard:has(.field-county) .findrow,
  .searchcard.has-filter .findrow { display: contents; }
  form.searchcard:has(.field-county) .field,
  .searchcard.has-filter .field { flex: 1 1 240px; }
  form.searchcard:has(.field-county) .field-county,
  .searchcard.has-filter .field-county { flex: 0 0 200px; }
}

@media (max-width: 760px) {
  .masthead .row { gap: .5rem 1rem; }
  .masthead nav {
    order: 2; width: 100%;
    gap: .25rem 1.1rem;
    overflow-x: auto; scrollbar-width: none;
  }
  .masthead nav::-webkit-scrollbar { display: none; }
  .masthead nav a { white-space: nowrap; }
}

/* Tablet & Desktop: standard table view with clean borders and horizontal scroll if needed */
@media (min-width: 768px) {
  .tablewrap table {
    min-width: 600px;
  }
  .tablewrap table[data-county-table],
  .tablewrap table[data-city-table] {
    min-width: 780px;
  }
}

/* Mobile Box / Card View: transforms table rows into clean individual cards.
   Eliminates clumsy horizontal scrollbars so users can comfortably scan
   every record with clear labels on the left and values on the right. */
@media (max-width: 767px) {
  .tablewrap {
    overflow-x: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0.85rem 0;
  }
  .tablewrap::before {
    display: none !important;
  }
  .tablewrap table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    border: none;
  }
  .tablewrap caption {
    display: block;
    position: static;
    padding: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--ink-soft);
    border-bottom: none;
  }
  .tablewrap thead {
    display: none;
  }
  .tablewrap tbody {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }
  .tablewrap tbody tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .tablewrap tbody tr[hidden] {
    display: none !important;
  }
  .tablewrap tbody tr:hover {
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 4px 12px rgba(11, 90, 67, 0.08);
  }
  .tablewrap tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #EEF3F0;
    font-size: 0.86rem;
    text-align: right;
    min-width: 0;
  }
  .tablewrap tbody td:last-child {
    border-bottom: none;
    padding-bottom: 0.1rem;
  }
  .tablewrap tbody td::before {
    content: attr(data-label);
    font-weight: 650;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    flex: 1 1 auto;
    margin-right: 0.5rem;
  }
  .tablewrap tbody td:not([data-label])::before,
  .tablewrap tbody td[data-label=""]::before {
    display: none;
  }
  .tablewrap tbody td:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0.65rem 0;
    margin-bottom: 0.35rem;
    border-bottom: 1.5px solid var(--rule);
    font-size: 1.02rem;
    font-weight: 750;
    color: var(--brand-deep);
  }
  .tablewrap tbody td:first-child a {
    color: var(--brand-deep);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .tablewrap tbody td:first-child::before {
    font-size: 0.72rem;
    font-weight: 750;
    color: var(--brand);
    background: var(--brand-tint);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    flex: none;
    letter-spacing: 0.05em;
  }
  .tablewrap tbody td > * {
    max-width: 65%;
    word-break: break-word;
    text-align: right;
  }
  .tablewrap tbody td a {
    word-break: break-all;
  }
  .tablewrap tbody td .badge {
    white-space: nowrap;
  }
  .tablewrap tbody td.num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
  }
}

@media (max-width: 640px) {
  .result { grid-template-columns: 1fr; }
  .result .val { grid-row: auto; text-align: left; }
  .deflist .r { grid-template-columns: 1fr; gap: .15rem; }
  .hero h1 { max-width: none; }
  .searchcard { max-width: none; }
  .findrow { grid-template-columns: 1fr; }
  .findrow .btn { width: 100%; }
  .chips a { padding: .5rem .85rem; }
  .sample-meta { flex-direction: column; gap: .1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* The page ships no keyframe or scripted motion, but the focus and hover
     transitions we add are still optional transitions. Kill them. */
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .masthead, .searchcard, footer.site { display: none; }
  body { background: #fff; }
}

/* -- homepage additions (hero eyebrow, steps, FAQ, directory, sort) -------- */

.hero .eyebrow { color: #9FE3C6; letter-spacing: .12em; }
.hero .lede { max-width: 46rem; }

.step-num {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-deep);
  font-weight: 800; font-size: var(--step--1); margin-bottom: .6rem;
}

.searchcard-wide { max-width: 46rem; }
.searchcard-inline { flex-direction: row; align-items: end; gap: .75rem; flex-wrap: wrap; }
.searchcard-inline .field { flex: 1 1 16rem; }
.searchcard-inline .btn { flex: none; }

.badge-part { background: #FDF0D5; color: #7A5200; }

/* FAQ � visible disclosure widget; schema is generated from the same list */
.faq { display: grid; gap: .6rem; margin-top: 1.2rem; max-width: 52rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-sm, 8px); padding: .2rem 1rem;
}
.faq-item summary {
  cursor: pointer; font-weight: 650; padding: .8rem 0;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-weight: 700; flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { color: var(--brand-deep); }
.faq-a { padding-bottom: .9rem; color: var(--ink-soft, #33403A); }
.faq-a p { margin: 0; }

/* county directory toolbar + filterable table */
.dir-toolbar {
  display: flex; align-items: end; gap: 1.25rem; flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.dir-toolbar .field { max-width: 24rem; flex: 1 1 18rem; }
.dir-toolbar p { margin-bottom: .7rem; }

/* search controls */
.sortrow {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.sortrow .status { padding: .6rem 0; margin: 0; }
.sortctl { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sortctl label { font-size: var(--step--1); font-weight: 650; color: var(--ink-soft, #33403A); }
.sortctl select {
  font: inherit; font-size: var(--step--1); padding: .4rem .6rem;
  border: 1.5px solid var(--rule-strong); border-radius: 6px;
  background: var(--surface); color: var(--ink);
}

/* results are links now */
a.result { text-decoration: none; color: inherit; display: block; }
a.result:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(11,90,67,.10); }
a.result:hover .addr { color: var(--brand-deep); }

/* record detail */
.mono { font-family: var(--mono); font-size: .95em; }
.record-table th[scope="row"] { width: 40%; font-weight: 650; color: var(--ink-soft, #33403A); }

/* accessibility: visible focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent, #C98A00); outline-offset: 2px;
}

/* ── property detail & structured data presentation ───────────────────── */

.record-header-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.record-header-title h2 { margin: 0 0 .2rem; font-size: var(--step-2); color: var(--ink); }
.record-header-meta { font-size: var(--step--1); color: var(--muted); }

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.3rem;
}

.record-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.record-panel-head {
  background: var(--band);
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.record-panel-head h3 {
  margin: 0;
  font-size: var(--step--0);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.record-panel-badge {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .15rem .45rem;
  border-radius: 4px;
  background: var(--brand-tint);
  color: var(--brand-deep);
}
.record-panel-body { padding: .2rem 0; }
.record-row {
  display: grid;
  grid-template-columns: minmax(130px, 40%) 1fr;
  gap: .75rem;
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--step--1);
  align-items: baseline;
}
.record-row:last-child { border-bottom: 0; }
.record-row .rk { font-weight: 650; color: var(--muted); }
.record-row .rv { color: var(--ink); font-variant-numeric: tabular-nums; }
.record-row .rv-strong { font-weight: 700; color: var(--brand-deep); }
.record-row .rv-mono { font-family: var(--mono); }

.record-official-box {
  background: var(--brand-tint);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.record-official-info { max-width: 42rem; }
.record-official-info h4 { margin: 0 0 .3rem; font-size: var(--step-0); color: var(--brand-deeper); }
.record-official-info p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }

/* Quick access buttons */
.quick-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .65rem;
  margin-top: .8rem;
}
.quick-search-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .9rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: var(--step--1);
  transition: border-color .15s, background .15s, color .15s;
}
.quick-search-btn:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand-deep);
}
.quick-search-btn .q-ico {
  color: var(--brand);
  display: flex;
  align-items: center;
}

@media (max-width: 640px) {
  .dir-toolbar { flex-direction: column; align-items: stretch; }
  .sortrow { flex-direction: column; align-items: flex-start; }
  .searchcard-inline { flex-direction: column; align-items: stretch; }
  .record-row { grid-template-columns: 1fr; gap: .1rem; }
  .record-grid { grid-template-columns: 1fr; }
  .record-header-card { flex-direction: column; align-items: flex-start; }
  .record-official-box { flex-direction: column; align-items: stretch; }
}

/* ── Competitor-Grade Modern County Page Architecture ────────────────── */

.hero-county {
  padding-top: 1.2rem;
  padding-bottom: 0.5rem;
}

.reviewed {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  background: var(--green-l);
  border: 1px solid var(--green-b);
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.reviewed .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0.4rem 0 0.85rem;
}

.lead-box {
  background: var(--green-l);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.4rem;
  color: var(--ink2);
  font-size: 0.98rem;
  line-height: 1.62;
  box-shadow: 0 1px 3px rgba(45, 106, 79, 0.05);
}

.lead-box p { margin: 0; max-width: none; color: #1B3828; }
.lead-box strong { color: #0C2116; font-weight: 750; }

/* ── 5/6-column stats row bar ────────────────────────────────────────── */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.stats-bar .s-item {
  padding: 1rem 1.15rem;
  border-right: 1px solid var(--border-subtle);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-bar .s-item:last-child { border-right: none; }

.stats-bar .sn {
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stats-bar .sl {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink3);
  margin-top: 0.35rem;
}

/* ── Interactive County Search Tool (.cps-wrap) ──────────────────────── */

.cps-wrap {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.cps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.cps-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ink);
}

.cps-title svg {
  width: 19px;
  height: 19px;
  color: var(--green);
  flex: none;
}

.cps-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: var(--band);
  color: var(--ink3);
}

.cps-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}

.cps-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 650;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink3);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.cps-pill:hover {
  background: var(--green-l);
  color: var(--green-dark);
  border-color: var(--green-b);
}

.cps-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 1px 3px rgba(45, 106, 79, 0.25);
}

.cps-input-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.cps-input-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.cps-input-box svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink3);
  pointer-events: none;
}

.cps-input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.8rem 1rem 0.8rem 2.7rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cps-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3.5px rgba(45, 106, 79, 0.15);
}

.cps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.45rem;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #fff;
  border: 1.5px solid var(--green);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.cps-btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.cps-btn:active {
  transform: scale(0.99);
}

.cps-chips {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--ink3);
}

.cps-chips-label {
  font-weight: 700;
  color: var(--ink3);
  margin-right: 0.2rem;
}

.cps-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.22rem 0.7rem;
  color: var(--ink2);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  font-size: 0.78rem;
}

.cps-chip:hover {
  background: var(--green-l);
  border-color: var(--green);
  color: var(--green-dark);
}

.cps-trust {
  font-size: 0.78rem;
  color: var(--ink3);
  margin-top: 0.8rem;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Hero County Header (UI/UX Pro Max) ──────────────────────────────── */
.hero-county {
  padding-block: 2.2rem 1.25rem;
}

.hero-county-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-tint);
  color: var(--green-dark);
  border: 1px solid var(--green-b);
  padding: 0.26rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.25);
}

.hero-h1 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 0.85rem;
  max-width: 32ch;
}

.lead-box {
  max-width: 60rem;
}

.lead-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink2);
}

.lead-box strong {
  color: var(--ink);
  font-weight: 750;
}

/* ── County KPI Stats Bar (Directly after Search Tool) ───────────────── */
.kpi-bar {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}

.kpi-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1rem 0.95rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 26, 15, 0.08);
  border-color: var(--green-b);
}

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.kpi-ico {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex: none;
}

.kpi-tag {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink3);
  background: var(--band);
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
}

.kpi-val {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 1.05rem + 0.4vw, 1.55rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.kpi-lbl {
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink3);
  margin-top: 0.35rem;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--ink-light);
  margin-top: 0.15rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .kpi-card {
    padding: 0.85rem 0.8rem;
  }
  .kpi-val {
    font-size: 1.25rem;
  }
}

@media (max-width: 380px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Page Grid & Section Cards ───────────────────────────────────────── */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

.main-col {
  min-width: 0;
}

.sec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.2vw, 2rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sec-head-line {
  width: 4px;
  height: 24px;
  background: var(--green);
  border-radius: 2px;
  flex: none;
}

.sec-head h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}

.sec-body {
  color: var(--ink2);
  line-height: 1.65;
}

.sec-body p {
  margin-bottom: 1rem;
}

.sec-body p:last-child {
  margin-bottom: 0;
}

/* ── 2x2 Contact Grid & Dates Alert ──────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-top: 1.15rem;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
}

.contact-card .ck {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink3);
  margin-bottom: 0.25rem;
}

.contact-card .cv {
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--ink);
  word-break: break-word;
}

.contact-card a {
  color: var(--green);
  font-weight: 650;
}

.dates-box {
  background: var(--green-l);
  border: 1px solid var(--green-b);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-top: 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.dates-box-icon {
  color: var(--green);
  flex: none;
  margin-top: 2px;
}

.dates-box-icon svg {
  width: 20px;
  height: 20px;
}

.dates-box-content {
  font-size: 0.88rem;
  color: #163825;
  line-height: 1.55;
}

.dates-box-content strong {
  color: #0B2417;
  font-weight: 750;
}

/* ── 2x2 Methods Grid ────────────────────────────────────────────────── */

.methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.method {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
}

.method-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.method h3 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 750;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.method p {
  font-size: 0.85rem;
  color: var(--ink3);
  line-height: 1.55;
  margin: 0;
}

/* ── Sticky Sidebar ──────────────────────────────────────────────────── */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  position: sticky;
  top: 85px;
}

.side-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.side-title {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1.5px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.side-title svg {
  color: var(--green);
  width: 17px;
  height: 17px;
}

.hs-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  margin-bottom: 0.8rem;
}

.hs-box:last-child {
  margin-bottom: 0;
}

.hs-num {
  font-size: 2rem;
  font-weight: 850;
  color: var(--green);
  font-family: var(--sans);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hs-label {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink3);
  margin-top: 0.35rem;
}

.side-metrics {
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.sm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.sm-row:last-child {
  border-bottom: none;
}

.sm-row span {
  color: var(--ink2);
  font-weight: 500;
}

.sm-row strong {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.86rem;
}

.rec-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink2);
}

.rec-list svg {
  color: var(--green);
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-portal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--green);
  color: #fff;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.90rem;
  transition: background 0.15s;
  margin-top: 0.9rem;
  box-shadow: 0 1px 3px rgba(45, 106, 79, 0.2);
}

.btn-portal:hover {
  background: var(--green-dark);
  color: #fff;
}

/* ── FAQ styling enhancements ────────────────────────────────────────── */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 1.1rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.15s;
}

.faq-item[open] {
  border-color: var(--green-b);
  box-shadow: 0 1px 4px rgba(45, 106, 79, 0.08);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-l);
  color: var(--green);
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  flex: none;
  transition: all 0.15s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
  background: var(--green);
  color: #fff;
}

.faq-item[open] summary {
  color: var(--green-dark);
}

.faq-a {
  padding-bottom: 1rem;
  color: var(--ink2);
  line-height: 1.6;
}

/* h3 inside FAQ summary — resets heading defaults so layout
   is driven by the summary styles, not browser h3 defaults. */
.faq-q {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  color: inherit;
}

/* ── Section Overview & Integrity Audit Bar ──────────────────────────── */

.audit-meta-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.3rem;
}

.amb-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.amb-label {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 750;
  color: var(--muted);
}

.amb-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.editorial-narrative {
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--ink2);
}

.editorial-narrative p {
  margin-bottom: 1.1rem;
}

.editorial-narrative strong {
  color: var(--ink);
  font-weight: 700;
}

.editorial-narrative code {
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.integrity-box {
  background: #F4F8F5;
  border: 1px solid var(--green-b);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-top: 1.3rem;
}

.ib-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 750;
  color: var(--green-dark);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.ib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 680px) {
  .ib-grid { grid-template-columns: 1fr; }
}

.ib-item strong {
  display: block;
  font-size: 0.86rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.ib-item p {
  font-size: 0.83rem;
  color: #3D4F46;
  line-height: 1.5;
  margin: 0;
}

/* ── Field Dictionary Cards Grid ──────────────────────────────────────── */

.field-dict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.field-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.field-card:hover {
  border-color: var(--green-b);
  box-shadow: 0 4px 12px rgba(13, 26, 15, 0.05);
  transform: translateY(-1px);
}

.field-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.field-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.field-card-title h3 {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--ink);
  margin: 0;
}

.field-card-pill {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.field-card-pill.pill-green {
  background: var(--green-l);
  color: var(--green-dark);
  border-color: var(--green-b);
}

.field-card-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #F0EEEA;
}

.fc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #A0A5A2;
}

.fc-dot.dot-yes { background: #2D6A4F; }
.fc-dot.dot-part { background: #C57B15; }
.fc-dot.dot-no { background: #888888; }

.fc-status-yes { color: #1E513A; }
.fc-status-part { color: #8A5200; }
.fc-status-no { color: #666; }

.field-card-desc {
  font-size: 0.85rem;
  color: var(--ink2);
  line-height: 1.55;
  flex: 1;
}

.field-card-desc p {
  margin: 0;
}

.field-card-desc code {
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px solid var(--border);
}

/* ── City & ZIP Page Header & Layout Elements ─────────────────────────── */

.hero-eyebrow-text {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.page-head {
  padding-top: 1.8rem;
  padding-bottom: 1.2rem;
}

.main-col {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* ── FAQ Lead & Homepage UI Components ───────────────────────────────── */

.faq-lead {
  font-size: 0.95rem;
  color: var(--ink2);
  line-height: 1.62;
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

/* ── Overview Hero Card (Matching Image 2 Optimized Premium UI) ──────── */

.overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.overview-banner {
  background: linear-gradient(135deg, #09171F 0%, #10242D 60%, #16323D 100%);
  padding: 1.8rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.overview-banner-copy {
  flex: 1 1 auto;
  max-width: 820px;
}

.overview-banner-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #52B788;
  margin-bottom: 0.4rem;
}

.overview-banner h2 {
  color: #ffffff;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .overview-banner {
    padding: 1.5rem;
  }
}

.overview-card-body {
  padding: 1.8rem 2.2rem;
}

@media (max-width: 768px) {
  .overview-card-body {
    padding: 1.25rem;
  }
}

/* Featured narrative callout */
.narrative-callout {
  background: #F4F8F6;
  border-left: 3.5px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.narrative-callout h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 0.45rem 0;
}

.narrative-callout p {
  margin: 0;
  color: var(--ink2);
  font-size: 0.92rem;
  line-height: 1.62;
}

.narrative-callout p:not(:last-child) {
  margin-bottom: 0.7rem;
}

/* Structured narrative sections */
.narrative-section {
  margin-top: 1.5rem;
}

.narrative-section h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4rem 0;
}

.narrative-section p {
  color: var(--ink2);
  line-height: 1.62;
  margin: 0;
}

/* Integrity box refinement matching Image 2 */
.integrity-box {
  background: #F4F8F6;
  border-left: 3.5px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 1.3rem 1.5rem;
  margin-top: 1.8rem;
}

.integrity-box .ib-title {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.integrity-box .ib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 680px) {
  .integrity-box .ib-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.integrity-box .ib-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.integrity-box .ib-item p {
  font-size: 0.83rem;
  color: var(--ink3);
  line-height: 1.55;
  margin: 0;
}

/* ── Browse Counties 3x3 Grid & Cards ────────────────────────────────── */

.county-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .county-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .county-grid {
    grid-template-columns: 1fr;
  }
}

.county-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.county-card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.12);
}

.c-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.c-card-name {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--ink);
  margin: 0;
}

.county-card:hover .c-card-name {
  color: var(--green);
}

.c-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-l);
  border: 1px solid var(--green-b);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.c-card-mid {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.c-card-bot {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.c-card-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-dark);
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
  line-height: 1;
}

.c-card-lbl {
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.c-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.c-card-btn-view {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease;
}

.c-card-btn-view:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.c-card-btn-portal {
  font-size: 0.78rem;
  font-weight: 650;
  color: #0B5A43;
  background: #EAF5F0;
  border: 1px solid #C1E1D2;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.c-card-btn-portal:hover {
  background: #D8ECE2;
  border-color: #0B5A43;
  text-decoration: none;
}

/* ── Info Cards ──────────────────────────────────────────────────────── */

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.info-card:hover {
  border-color: var(--green-b);
  transform: translateY(-1px);
}

.info-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.info-ico {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--green-l);
  color: var(--green);
  display: inline-grid;
  place-items: center;
}

.info-ico svg {
  width: 16px;
  height: 16px;
}

.info-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.info-card h3 {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--ink);
  margin: 0 0 0.4rem 0;
}

.info-card p {
  font-size: 0.84rem;
  color: var(--ink2);
  line-height: 1.55;
  margin: 0;
}

/* ── Responsive Grid Breakpoints ─────────────────────────────────────── */

@media (max-width: 980px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .sidebar {
    position: static;
  }
  .cps-input-row {
    flex-direction: column;
  }
  .cps-btn {
    width: 100%;
  }
}

/* ── How to Search Step Guide & Official Portal Component ────────────── */

.how-to-card {
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.how-to-header {
  margin-bottom: 1rem;
}

.how-to-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.how-to-title {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem 0;
  line-height: 1.25;
}

.how-to-lead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.how-to-portal-box {
  background: linear-gradient(135deg, #F4FAF7 0%, #E8F5EE 100%);
  border: 1.5px solid #C1E1D2;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.how-to-portal-meta {
  flex: 1 1 280px;
}

.how-to-portal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0B5A43;
  margin-bottom: 0.3rem;
}

.how-to-portal-name {
  font-size: 1.05rem;
  font-weight: 750;
  color: #073B2C;
  margin-bottom: 0.25rem;
}

.how-to-portal-desc {
  font-size: 0.84rem;
  color: #2D5244;
  line-height: 1.45;
  margin: 0;
}

.how-to-portal-desc a {
  color: #0B5A43;
  font-weight: 650;
  text-decoration: underline;
}

.how-to-portal-action {
  flex: 0 0 auto;
}

.btn-portal-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(11, 90, 67, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-portal-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.how-to-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.4rem;
}

@media (max-width: 640px) {
  .how-to-steps-grid {
    grid-template-columns: 1fr;
  }
}

.how-step-card {
  background: #FAFCFB;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease;
}

.how-step-card:hover {
  border-color: var(--brand);
}

.how-step-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.how-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 750;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.how-step-card h3 {
  font-size: 0.96rem;
  font-weight: 750;
  color: var(--ink);
  margin: 0;
}

.how-step-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.how-step-card p strong {
  color: var(--ink);
}

/* ── Outbound Link Confirmation Modal ────────────────────────────────── */
body.modal-open {
  overflow: hidden !important;
}

.outbound-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 26, 15, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  animation: outboundFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.outbound-backdrop[hidden] {
  display: none !important;
}

@keyframes outboundFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.outbound-dialog {
  position: relative;
  background: #FFFFFF;
  color: var(--ink);
  width: 100%;
  max-width: 500px;
  border-radius: 18px;
  padding: 2rem 2.25rem 1.85rem;
  box-shadow: 0 24px 56px rgba(13, 26, 15, 0.28), 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  box-sizing: border-box;
  animation: outboundPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-align: left;
}

@keyframes outboundPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.outbound-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.outbound-close:hover,
.outbound-close:focus-visible {
  background: #F4F1EA;
  color: var(--ink);
  outline: none;
}

.outbound-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 1.1rem;
  border: 1px solid var(--green-b);
}

.outbound-title {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: 'Manrope', -apple-system, sans-serif;
  color: var(--ink);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.outbound-text {
  font-size: 0.92rem;
  color: var(--ink2);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.outbound-dest {
  background: #F7F6F3;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.outbound-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.outbound-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--muted);
  word-break: break-all;
  max-height: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.outbound-note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 1.45rem 0;
}

.outbound-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

.outbound-btn-cancel {
  background: #EFECE6;
  color: var(--ink2);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Manrope', -apple-system, sans-serif;
}

.outbound-btn-cancel:hover,
.outbound-btn-cancel:focus-visible {
  background: #E2DDD3;
  color: var(--ink);
  outline: none;
}

.outbound-btn-proceed {
  background: var(--brand);
  color: #FFFFFF;
  border: 1px solid var(--brand-deep);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.35rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Manrope', -apple-system, sans-serif;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.outbound-btn-proceed:hover,
.outbound-btn-proceed:focus-visible {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35);
  outline: none;
}

@media (max-width: 480px) {
  .outbound-dialog {
    padding: 1.5rem 1.25rem 1.35rem;
    border-radius: 14px;
  }
  .outbound-actions {
    flex-direction: column-reverse;
    width: 100%;
    gap: 0.65rem;
  }
  .outbound-btn-cancel,
  .outbound-btn-proceed {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── Statewide Assessor Services & Tax Guide ─────────────────────────── */
.state-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.35rem;
}

.service-guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--rule-strong);
}

.sgc-head {
  margin-bottom: 0.9rem;
}

.sgc-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand-tint);
  color: var(--brand-deep);
  border: 1px solid var(--green-b);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.sgc-head h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
}

.sgc-body p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink2);
  margin: 0 0 0.85rem 0;
}

.sgc-list {
  padding-left: 1.15rem;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink2);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sgc-list li strong {
  color: var(--ink);
}

@media (max-width: 640px) {
  .state-services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-guide-card {
    padding: 1.25rem;
  }
}

/* ── contact details & assessor office section ───────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.3rem;
  margin-top: 1.3rem;
  align-items: stretch;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-box-header {
  margin-bottom: 1.1rem;
}

.contact-box-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid rgba(11, 90, 67, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.45rem;
}

.contact-box-badge.contact-badge-alt {
  color: #7A3E1D;
  background: #FDF3EB;
  border-color: rgba(158, 74, 26, 0.15);
}

.contact-box h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: #FAFCFB;
  overflow: hidden;
}

.contact-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.72rem 0.95rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  font-size: 0.88rem;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row-label {
  font-weight: 650;
  font-size: 0.81rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.01em;
}

.contact-row-value {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-row-value strong {
  color: var(--ink);
  font-weight: 650;
}

.contact-link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 650;
  transition: color 0.15s;
}

.contact-link:hover {
  color: var(--brand-deep);
}

.contact-email {
  font-size: 0.85rem;
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
}

.contact-subtext {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 0.9rem 0;
}

.division-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.division-card {
  padding: 0.65rem 0.85rem;
  background: var(--band);
  border: 1px solid var(--rule);
  border-left: 3.5px solid var(--brand);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background-color 0.15s;
}

.division-card:hover {
  background: #F2F7F4;
  border-left-color: var(--brand-deep);
}

.division-card-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.division-card-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (max-width: 520px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.65rem 0.85rem;
  }
}

/* ── Quick Jump Bar (Google Sitelinks & Jump Snippets Trigger) ────────── */
.quick-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.75rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm, 6px);
  margin: 0 0 1.8rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.qj-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.quick-jump a {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--green);
  background: var(--brand-tint, #EEF6F2);
  border: 1px solid rgba(45, 106, 79, 0.15);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  text-decoration: none;
  transition: all 0.15s ease;
}
.quick-jump a:hover {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}

/* ── State Services Grid (Assessor Services, Exemptions & Abatements) ── */
.state-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}
.service-guide-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md, 8px);
  padding: 1.35rem 1.45rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.sgc-head {
  margin-bottom: 0.85rem;
}
.sgc-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-deep, #0F4C3A);
  background: var(--brand-tint, #EEF6F2);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.45rem;
}
.sgc-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.sgc-body p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink2);
  margin-bottom: 0.75rem;
}
.sgc-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink2);
}
.sgc-list li {
  margin-bottom: 0.55rem;
}



/* Refinements for focus and footer contrast */
input:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3.5px rgba(45, 106, 79, 0.15);
}

footer.site .muted,
footer.site span.muted,
footer.site a span.muted {
  color: #D6E4DB !important;
}
