/* Top Agent America — navy and gold nameplate */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0b1f3a;
  --navy-deep: #071427;
  --bg: #ffffff;
  --ink: #10151d;
  --muted: #4b5563;
  --gold: #c9a45c;
  --gold-strong: #a97f2f;
  --gold-deep: #8a6620;
  --mist: #eef1f5;
  --on-navy: #f4f1ea;
  --on-navy-dim: #b7c3d6;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --z-nav: 10;
}

/* class-level display rules outrank the UA [hidden] rule; keep hidden meaning hidden */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
p { text-wrap: pretty; }
a { color: inherit; }

.measure { max-width: 68ch; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }
.measure-wide { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }

/* seal */
.seal {
  width: 38px; height: 38px; flex: none;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  display: inline-flex; align-items: center; justify-content: center;
}
.seal span {
  transform: rotate(-45deg);
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.85rem; font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* nav */
.nav {
  position: relative; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--navy);
}
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand-name {
  font-family: 'Spectral', Georgia, serif; font-weight: 600;
  color: var(--on-navy); font-size: 1.12rem; letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.8rem); }
.nav-links a {
  color: var(--on-navy-dim); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: color 150ms var(--ease);
}
.nav-links a:hover { color: var(--on-navy); }

/* buttons */
.btn {
  display: inline-block;
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  border: none; border-radius: 3px;
  padding: 0.85rem 1.7rem;
  transition: transform 150ms var(--ease), background 150ms var(--ease), color 150ms var(--ease);
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #d9b876; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-nav { background: var(--gold); color: var(--navy-deep) !important; padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.btn-nav:hover { background: #d9b876; }
.btn-gold-line {
  background: transparent; color: var(--on-navy);
  border: 2px solid var(--gold);
}
.btn-gold-line:hover { background: var(--gold); color: var(--navy-deep); }

/* hero */
.hero {
  background: radial-gradient(ellipse at 50% -30%, #16345e 0%, var(--navy) 48%, var(--navy-deep) 100%);
  border-bottom: 4px solid var(--gold);
}
.hero-inner {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2rem) clamp(3.5rem, 7vw, 6rem);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 {
  color: var(--on-navy);
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  max-width: 17ch;
  animation: rise 600ms var(--ease) both;
}
.hero-sub {
  color: var(--on-navy-dim);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 48ch; margin-top: 1.4rem;
  animation: rise 600ms var(--ease) 90ms both;
}
.hero-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.2rem; animation: rise 600ms var(--ease) 180ms both; }
.hero-alt { color: var(--gold); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; }
.hero-alt:hover { border-bottom-color: var(--gold); }
.hero-proof { color: var(--on-navy-dim); font-size: 0.9rem; margin-top: 2.4rem; animation: rise 600ms var(--ease) 260ms both; }
.hero-fig {
  margin: 0;
  animation: rise 600ms var(--ease) 200ms both;
}
.hero-fig img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 7 / 5; object-fit: cover;
  border: 1px solid rgba(201, 164, 92, 0.55);
  outline: 8px solid rgba(244, 241, 234, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* trust bar */
.trustbar { border-bottom: 1px solid var(--mist); }
.trustbar ul {
  list-style: none;
  max-width: 1120px; margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 2rem);
  display: flex; justify-content: center; align-items: baseline;
  gap: 0.9rem 2.8rem; flex-wrap: wrap;
}
.trustbar li {
  color: var(--muted); font-size: 0.93rem; font-weight: 500;
  position: relative;
}
.trustbar li + li::before {
  content: ''; position: absolute; left: -1.55rem; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold);
}

/* how */
.how { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.6rem 0 1.6rem 4.2rem;
  border-top: 1px solid var(--mist);
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1.45rem;
  width: 2.5rem; height: 2.5rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Spectral', Georgia, serif; font-weight: 600; font-size: 1.1rem;
  color: var(--gold-deep);
}
.steps p { color: var(--muted); }

/* promise */
.promise { background: var(--mist); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.promise p { color: var(--ink); font-size: 1.06rem; }

/* cities */
.cities { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.cities-lede { color: var(--muted); max-width: 60ch; margin-bottom: 2rem; }
.city-list { list-style: none; columns: 2; column-gap: 3rem; }
.city-list li { break-inside: avoid; }
.city-list a {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 0.95rem 0.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
  transition: background 150ms var(--ease);
}
.city-list a:hover { background: #f7f4ee; }
.city-name { font-family: 'Spectral', Georgia, serif; font-weight: 600; font-size: 1.15rem; }
.city-county { color: var(--muted); font-size: 0.88rem; flex: 1; }
.city-arrow { color: var(--gold-strong); }

/* agents band */
.agents-band { background: var(--navy); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.agents-band h2 { color: var(--on-navy); }
.agents-band p { color: var(--on-navy-dim); margin-bottom: 1.8rem; max-width: 58ch; }

/* faq */
.faq { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: 'Spectral', Georgia, serif; font-weight: 600; font-size: 1.12rem;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0.3rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-strong); font-size: 1.4rem; font-family: 'Archivo', sans-serif;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 1.3rem; max-width: 62ch; }

/* footer */
.footer { background: var(--navy-deep); color: var(--on-navy-dim); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap;
}
.footer-brand { max-width: 34ch; }
.footer-name { font-family: 'Spectral', Georgia, serif; font-weight: 600; color: var(--on-navy); margin: 1rem 0 0.5rem; font-size: 1.1rem; }
.footer-line { font-size: 0.9rem; }
.footer-cols { display: flex; gap: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }
.footer-cols a { display: block; color: var(--on-navy-dim); text-decoration: none; font-size: 0.92rem; padding: 0.22rem 0; }
.footer-cols a:hover { color: var(--on-navy); }
.footer-h { color: var(--on-navy); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer-legal {
  max-width: 1120px; margin: 2.5rem auto 0;
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 0;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  font-size: 0.85rem;
}

/* city pages */
.city-hero { background: radial-gradient(ellipse at 50% -30%, #16345e 0%, var(--navy) 48%, var(--navy-deep) 100%); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); border-bottom: 4px solid var(--gold); }
.city-hero h1 { color: var(--on-navy); font-size: clamp(1.9rem, 4.5vw, 3.2rem); max-width: 22ch; }
.city-hero .hero-sub { margin-top: 0.9rem; }
.city-hero .hero-cta { margin-top: 1.8rem; }
.crumb { color: var(--on-navy-dim); font-size: 0.85rem; margin-bottom: 1.6rem; }
.crumb a { color: var(--on-navy-dim); }
.city-body { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.city-body p { margin-bottom: 1.1rem; color: var(--ink); }
.city-nearby { padding-top: 0; }

/* quiz */
.quiz-shell {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -30%, #16345e 0%, var(--navy) 48%, var(--navy-deep) 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.quiz-brand { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.quiz-card {
  background: var(--bg); border-radius: 6px;
  width: min(560px, 100%);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
}
.quiz-progress { height: 4px; background: var(--mist); border-radius: 2px; margin-bottom: 2rem; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 20%; background: var(--gold); transition: width 300ms var(--ease); }
.qstep legend, .qdone h2 {
  font-family: 'Spectral', Georgia, serif; font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.2;
  margin-bottom: 1.4rem;
}
.qstep { border: none; animation: qin 220ms var(--ease) both; }
@keyframes qin { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.qhint { color: var(--muted); font-size: 0.95rem; margin: -0.9rem 0 1rem; }
.opts { display: flex; flex-direction: column; gap: 0.7rem; }
.opt {
  font-family: 'Archivo', sans-serif; font-size: 1.02rem; font-weight: 500;
  text-align: left; cursor: pointer;
  background: var(--bg); color: var(--ink);
  border: 1.5px solid #cfd6df; border-radius: 4px;
  padding: 0.95rem 1.15rem; min-height: 48px;
  transition: border-color 130ms var(--ease), background 130ms var(--ease);
}
.opt:hover, .opt:focus-visible { border-color: var(--gold-strong); background: #fdfaf4; }
.qlabel { display: block; font-weight: 600; font-size: 0.92rem; margin: 1rem 0 0.3rem; }
.qinput {
  width: 100%; font-family: 'Archivo', sans-serif; font-size: 1.05rem;
  padding: 0.8rem 1rem; min-height: 48px;
  border: 1.5px solid #cfd6df; border-radius: 4px;
  color: var(--ink);
}
.qinput:focus { outline: 2px solid var(--gold-strong); outline-offset: 1px; border-color: var(--gold-strong); }
.qinput::placeholder { color: #6b7280; }
.qstep .btn { margin-top: 1.4rem; width: 100%; }
.qconsent { color: var(--muted); font-size: 0.85rem; margin-top: 0.9rem; }
.qerror { color: #b3261e; font-size: 0.92rem; margin-top: 0.8rem; }
.qback {
  position: absolute; top: 100%; left: 0; margin-top: 1rem;
  background: none; border: none; cursor: pointer;
  color: var(--on-navy-dim); font-family: 'Archivo', sans-serif; font-size: 0.95rem;
}
.qback:hover { color: var(--on-navy); }
.qdone p { color: var(--muted); margin-bottom: 1.5rem; }
.qdone .hero-alt { color: var(--gold-deep); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-fig { max-width: 560px; }
  .hero-fig img { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .city-list { columns: 1; }
  .nav-links { gap: 0.9rem; font-size: 0.9rem; }
}

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

/* city inline lead form */
.citylead { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.citylead-card {
  background: var(--navy);
  padding: clamp(1.75rem, 4.5vw, 3rem);
  border-top: 4px solid var(--gold);
}
.citylead-card h2 { color: var(--on-navy); }
.citylead-sub { color: var(--on-navy-dim); margin-bottom: 1.6rem; max-width: 52ch; }
.citylead-form label { display: block; color: var(--on-navy); font-weight: 600; font-size: 0.92rem; margin: 1rem 0 0.3rem; }
.citylead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.citylead-form .qinput { border-color: transparent; }
.citylead-form .btn { margin-top: 1.4rem; width: 100%; }
.citylead-form .qconsent { color: var(--on-navy-dim); }
.citylead-form .qerror { color: #ffb4ab; }
.citylead-done { color: var(--on-navy); font-size: 1.1rem; }
@media (max-width: 560px) { .citylead-row { grid-template-columns: 1fr; } }

/* sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(7, 20, 39, 0.96);
  border-top: 1px solid rgba(201, 164, 92, 0.4);
  transform: translateY(110%);
  transition: transform 250ms var(--ease);
}
.sticky-cta.sticky-show { transform: translateY(0); }
.sticky-cta .btn { display: block; text-align: center; }
@media (min-width: 861px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* county grouped city directory */
.city-group + .city-group { margin-top: clamp(2rem, 4vw, 3rem); }
.city-group-h {
  font-family: 'Spectral', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--gold-deep);
  padding-bottom: 0.55rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--mist);
}
.cities-more { margin-top: 2rem; }
.cities-more a { color: var(--gold-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.cities-more a:hover { border-bottom-color: var(--gold-deep); }
.footer-more { color: var(--gold) !important; font-weight: 600; margin-top: 0.4rem; }
@media (min-width: 1000px) { .city-list { columns: 3; } }

/* ---------- calculator pages ---------- */
.tool-hero {
  background: radial-gradient(ellipse at 50% -30%, #16345e 0%, var(--navy) 48%, var(--navy-deep) 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
  border-bottom: 4px solid var(--gold);
}
.tool-hero h1 { color: var(--on-navy); font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 20ch; }
.tool-hero .hero-sub { margin-top: 0.9rem; max-width: 58ch; }
.tool-body { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.tool-inputs { max-width: 34rem; }
.tool-h {
  font-family: 'Spectral', Georgia, serif;
  font-size: 1.25rem; font-weight: 600;
  padding-bottom: 0.5rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--mist);
}
.tool-h + .field { margin-top: 0; }
.tool-inputs .tool-h:not(:first-child) { margin-top: 2.6rem; }
.tool-note {
  color: var(--muted); font-size: 0.9rem; line-height: 1.6;
  background: var(--mist); padding: 0.9rem 1.1rem; margin-bottom: 1.4rem;
  max-width: 62ch;
}

.field { margin-bottom: 1.4rem; }
.field > label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field-input { display: flex; align-items: stretch; border: 1px solid #c8ceda; background: #fff; transition: border-color 140ms var(--ease); }
.field-input:focus-within { border-color: var(--gold-strong); box-shadow: 0 0 0 2px rgba(169, 127, 47, 0.22); }
.field-affix {
  display: flex; align-items: center; padding: 0 0.5rem 0 0.85rem;
  color: var(--muted); font-variant-numeric: tabular-nums; font-size: 1.02rem;
}
.field-affix.affix-end { padding: 0 0.85rem 0 0.35rem; }
.field-input input, .tool-select {
  flex: 1; min-width: 0; width: 100%;
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: 1.02rem; color: var(--ink);
  font-variant-numeric: tabular-nums;
  padding: 0.7rem 0.85rem 0.7rem 0;
}
.field-input.field-suffix input { padding-left: 0.85rem; }
.tool-select { padding: 0.7rem 0.85rem; cursor: pointer; }
.field-hint { color: var(--muted); font-size: 0.85rem; line-height: 1.55; margin-top: 0.4rem; max-width: 56ch; }
.field-check { border-top: 1px solid var(--mist); padding-top: 1.1rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 500; font-size: 0.95rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--gold-deep); flex: none; }

/* the net sheet: a closing statement, not a dashboard card */
.netsheet { position: sticky; top: 1.5rem; }
.netsheet-inner {
  background: var(--navy);
  border-top: 4px solid var(--gold);
  padding: clamp(1.5rem, 3vw, 2rem);
  color: var(--on-navy-dim);
}
.netsheet-kicker {
  font-family: 'Spectral', Georgia, serif; font-size: 1.15rem; font-weight: 600;
  color: var(--on-navy); margin-bottom: 1.2rem;
  padding-bottom: 0.7rem; border-bottom: 1px solid rgba(201, 164, 92, 0.35);
}
.sheet { font-size: 0.94rem; }
.sheet-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.45rem 0; }
.sheet-row dd { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--on-navy); }
.sheet-lead { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 0.6rem; margin-bottom: 0.3rem; }
.sheet-lead dt, .sheet-lead dd { font-weight: 600; }
.sheet-sum {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 0.5rem; padding-top: 0.7rem;
}
.sheet-sum dt, .sheet-sum dd { font-weight: 600; color: var(--on-navy); }
.sheet-sub { display: block; font-size: 0.78rem; color: var(--gold); }

.netsheet-total { border-top: 2px solid var(--gold); margin-top: 1.3rem; padding-top: 1.2rem; }
.netsheet-total-top { border-top: 0; margin-top: 0; padding-top: 0; padding-bottom: 1.4rem; margin-bottom: 0.4rem; border-bottom: 2px solid var(--gold); }
.netsheet-total-label { font-size: 0.9rem; }
.netsheet-total-figure {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 2.9rem); font-weight: 600;
  color: var(--gold); line-height: 1.1; margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.netsheet-total-figure.is-negative { color: #ffb4ab; }
.netsheet-total-sub { font-size: 0.86rem; line-height: 1.5; margin-top: 0.5rem; }
.netsheet-note {
  font-size: 0.86rem; line-height: 1.55; margin-top: 1.1rem;
  padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.netsheet-disclaim { font-size: 0.8rem; line-height: 1.5; margin-top: 1.1rem; color: #93a3bb; }

/* calculator index */
.tool-index { padding: clamp(3rem, 7vw, 5rem) 0; }
.tool-card {
  display: block; text-decoration: none; color: inherit;
  padding: clamp(1.5rem, 3.5vw, 2.2rem) 0;
  border-top: 1px solid var(--mist);
  transition: background-color 160ms var(--ease);
}
.tool-card:last-of-type { border-bottom: 1px solid var(--mist); }
.tool-card h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 0.5rem; }
.tool-card p { color: var(--muted); max-width: 62ch; }
.tool-card-go { display: inline-block; margin-top: 0.9rem; color: var(--gold-deep); font-weight: 600; }
.tool-card:hover { background: #faf8f3; }
.tool-card:hover .tool-card-go { text-decoration: underline; }

.toollead-form .citylead-row + .citylead-row { margin-top: 0; }

@media (max-width: 980px) {
  .tool-grid { grid-template-columns: 1fr; }
  .netsheet { position: static; }
  .tool-inputs { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .field-input, .tool-card { transition: none; }
}

/* out of market branch in the quiz */
.qoom {
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--mist);
  animation: qin 220ms var(--ease) both;
}
.qoom-note { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.qoom-note strong { color: var(--ink); }
.qoom .qlabel { margin-top: 1.1rem; }
.qoom select.qinput { cursor: pointer; }
[aria-invalid="true"] { border-color: #b3261e !important; }
@media (prefers-reduced-motion: reduce) { .qoom { animation: none; } }

/* property tax by school district */
.millage { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.millage p { color: var(--ink); margin-bottom: 1.1rem; }
.mill-unit {
  font-family: 'Spectral', Georgia, serif; font-size: 1.15rem; font-weight: 600;
  margin: 2rem 0 0.7rem; color: var(--gold-deep);
}
.mill-wrap { overflow-x: auto; margin: 1.6rem 0; }
.mill-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.mill-table th {
  text-align: left; font-weight: 600; font-size: 0.82rem; color: var(--muted);
  padding: 0 0.9rem 0.6rem 0; border-bottom: 2px solid var(--navy); white-space: nowrap;
}
.mill-table th:not(:first-child), .mill-table .mill-n { text-align: right; }
.mill-table td { padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--mist); }
.mill-table tbody tr:last-child td { border-bottom: 0; }
.mill-table .mill-n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mill-table tbody tr:first-child td { background: #faf7f0; }
.mill-village { display: block; color: var(--muted); font-size: 0.82rem; }
.mill-note, .mill-src { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.mill-cta { margin: 1.4rem 0; }
.mill-cta a { color: var(--gold-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.mill-src a { color: var(--gold-deep); }

/* ---------- property tax ranking hub ---------- */
.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;
}
.tax-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--mist);
  border: 1px solid var(--mist); margin: 2rem 0;
}
.tax-summary > div { background: #fff; padding: 1.2rem 1.3rem; }
.tax-sum-l { color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.2rem; }
.tax-sum-v {
  font-family: 'Spectral', Georgia, serif; font-size: 2.1rem; font-weight: 600;
  color: var(--gold-deep); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.tax-sum-s { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin-top: 0.4rem; }

.tax-table-section { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 5rem); }
.tax-controls { margin-bottom: 1.4rem; }
.tax-search input {
  width: 100%; max-width: 26rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.65rem 0.9rem;
  border: 1px solid #c8ceda; background: #fff;
  transition: border-color 140ms var(--ease);
}
.tax-search input:focus {
  outline: none; border-color: var(--gold-strong);
  box-shadow: 0 0 0 2px rgba(169, 127, 47, 0.22);
}
.tax-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.tax-chip {
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  padding: 0.4rem 0.85rem; border-radius: 99px;
  border: 1px solid #c8ceda; background: #fff; color: var(--muted);
  transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}
.tax-chip:hover { border-color: var(--gold-strong); color: var(--ink); }
.tax-chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.tax-count { color: var(--muted); font-size: 0.88rem; margin-top: 0.9rem; }

.tax-table { font-size: 0.92rem; }
.tax-table thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.tax-table td { padding: 0.6rem 0.9rem 0.6rem 0; }
.tax-rank { color: var(--muted); font-variant-numeric: tabular-nums; width: 3rem; }
.tax-table a { color: var(--gold-deep); font-weight: 600; text-decoration: none; }
.tax-table a:hover { text-decoration: underline; }
.tax-table tbody tr:nth-child(even of :not([hidden])) td { background: #fbfaf7; }
.tax-empty { color: var(--muted); padding: 1.5rem 0; }
@media (max-width: 620px) {
  .tax-table thead th:nth-child(4), .tax-table td:nth-child(4) { display: none; }
  .tax-table thead th:nth-child(5), .tax-table td:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tax-chip, .tax-search input { transition: none; } }

/* real closed proof on city pages */
.city-proof {
  background: var(--mist); padding: 1rem 1.2rem; margin-top: 1.4rem;
  font-size: 0.97rem; border-left: 0;
}
.city-proof strong { color: var(--gold-deep); }
.city-proof a { color: var(--gold-deep); font-weight: 600; }
.trustbar a { color: var(--gold-deep); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; }
.trustbar a:hover { border-bottom-color: var(--gold-deep); }
.quiz-step { color: var(--muted); font-size: 0.82rem; font-weight: 600; margin: -1.4rem 0 1.5rem; }
.qvalue { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: -0.6rem 0 0.4rem; }
.footer-contact { margin-top: 0.9rem; font-size: 0.95rem; line-height: 1.7; }
.footer-contact a { color: var(--gold); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
.crosslink { background: var(--mist); padding: 1rem 1.2rem; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.crosslink a { color: var(--gold-deep); font-weight: 600; }
