/* PropertyMill v4 — "Portal" design system (2026-10-07).
 * Composition follows the property-portal archetype: search-first hero,
 * price-style record numbers, facts strips, calculator card.
 * System fonts only, zero external requests. */

:root {
  color-scheme: light dark;

  --ink: #1A2A3A;
  --ink-2: #3D4F61;
  --muted: #5B6B7B;
  --paper: #FFFFFF;
  --band: #F5F7F9;
  --card: #FFFFFF;
  --line: #E4E8EC;
  --line-2: #CDD5DC;
  --brand: #0A6CFF;
  --brand-ink: #0052C8;
  --brand-soft: #EAF2FF;
  --brand-line: #BBD6FF;
  --on-brand: #FFFFFF;
  --hero-a: #0A5BD3;
  --hero-b: #0A6CFF;
  --accent: #B45309;

  --shadow-1: 0 1px 2px rgba(26, 42, 58, .07), 0 2px 8px rgba(26, 42, 58, .05);
  --shadow-2: 0 2px 6px rgba(26, 42, 58, .08), 0 12px 32px rgba(26, 42, 58, .10);
  --shadow-hero: 0 12px 40px rgba(4, 40, 100, .35);

  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 16px;

  --fs-xs: .75rem;
  --fs-s: .8125rem;

  --wrap: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E5EAF0;
    --ink-2: #B9C4CF;
    --muted: #8C9AA8;
    --paper: #0D1218;
    --band: #121924;
    --card: #141C26;
    --line: #223040;
    --line-2: #33455A;
    --brand: #5B9DFF;
    --brand-ink: #8FBAFF;
    --brand-soft: #10233F;
    --brand-line: #1D3A63;
    --hero-a: #083B8F;
    --hero-b: #0A4FC0;
    --accent: #F0B429;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .55);
    --shadow-hero: 0 12px 40px rgba(0, 0, 0, .6);
  }
}

/* ---------- base ---------- */

html { overflow-x: clip; }
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 8px; top: 8px; z-index: 99;
  background: var(--brand); color: #fff;
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-2);
}

/* ---------- header: white portal bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 18px; min-height: 64px; padding: 8px 20px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 14px;
}
.brand-name { font-size: 1.35rem; font-weight: 800; color: var(--brand); letter-spacing: -.3px; }
.brand-rating {
  font-size: var(--fs-xs); color: var(--muted);
  display: flex; flex-direction: column; line-height: 1.25;
}
.brand-rating strong { color: var(--ink-2); }

.nav-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-left: auto; }

/* no-JS hamburger (checkbox pattern) — visible only ≤900px */
.nav-burger { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger-label {
  display: none; cursor: pointer; user-select: none;
  margin-left: auto; align-self: center;
  color: var(--ink-2); font-weight: 700; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
}

.site-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-2); font-weight: 600;
  padding: 7px 12px; border-radius: 999px; font-size: .95rem;
}
.site-nav a:hover { background: var(--band); color: var(--ink); text-decoration: none; }
.site-nav a.is-current { background: var(--brand-soft); color: var(--brand-ink); }

/* states dropdown — native <details> */
.head-menu { position: relative; }
.head-menu summary {
  cursor: pointer; list-style: none; color: var(--ink-2); font-weight: 600;
  font-size: .95rem; padding: 7px 12px; border-radius: 999px; user-select: none;
}
.head-menu summary::-webkit-details-marker { display: none; }
.head-menu summary:hover { background: var(--band); color: var(--ink); }
.head-menu[open] > summary { background: var(--brand-soft); color: var(--brand-ink); }
.head-menu summary::after { content: "▾"; font-size: .75em; margin-left: 4px; }
.head-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 12px 18px;
  max-height: 70vh; overflow: auto; min-width: 340px; max-width: calc(100vw - 28px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px 26px; font-size: .88rem;
}
.head-menu-region {
  grid-column: 1 / -1; margin: 10px 0 2px; font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.head-menu-region:first-child { margin-top: 0; }
.head-menu-panel a { display: block; padding: 3px 0; white-space: nowrap; }
.head-menu-panel a:hover { text-decoration: underline; }

/* header search */
.search-form { display: flex; gap: 6px; align-items: center; }
.search-label { position: absolute; left: -9999px; }
.search-form input[type="search"] {
  border: 2px solid var(--line-2); border-radius: 999px;
  padding: 8px 14px; min-width: 190px;
  background: var(--card); color: var(--ink); font-family: inherit; font-size: .92rem;
}
.search-form input[type="search"]::placeholder { color: var(--muted); }
.search-form input[type="search"]:focus { border-color: var(--brand); outline: none; }
.search-form button, .search-form--page button, .picker-go {
  border: 0; border-radius: 999px; padding: 9px 18px;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: .92rem; font-family: inherit; cursor: pointer;
}
.search-form button:hover, .search-form--page button:hover, .picker-go:hover { background: var(--brand-ink); }

/* ---------- hero: the portal front door ---------- */

.hero {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  background:
    radial-gradient(rgba(255, 255, 255, .16) 1.5px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--hero-a), var(--hero-b) 55%, var(--hero-a));
  color: #fff;
  padding-top: 54px;
  padding-bottom: 74px;
  text-align: center;
}
.hero-kicker {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #CFE2FF; margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  font-weight: 800; line-height: 1.1; margin: 0 auto 12px; letter-spacing: -.5px;
  max-width: 22ch;
}
.hero-sub { max-width: 58ch; margin: 0 auto; color: #DCE9FF; font-size: 1.08rem; }

/* the big hero search pill */
.hero-search {
  max-width: 640px; margin: 26px auto 0;
  background: #fff; border-radius: 999px; padding: 8px 8px 8px 22px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-hero);
  text-align: left;
}
.hero-search input {
  flex: 1; border: 0; font-size: 1.08rem; font-family: inherit;
  color: var(--ink); background: transparent; min-width: 0;
}
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--muted); }
.hero-search .picker-go { padding: 13px 28px; font-size: 1rem; flex: none; }
.hero-search-hint { margin: 12px auto 0; font-size: var(--fs-s); color: #BFD7FF; }

/* ---------- quick chips + facts strip ---------- */

.quick-chips {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: -26px auto 0; position: relative;
}
.quick-chips a {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-1);
  color: var(--ink); font-weight: 600; font-size: .92rem;
  padding: 10px 18px;
}
.quick-chips a:hover { border-color: var(--brand); color: var(--brand-ink); text-decoration: none; }

.facts {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0; margin: 34px 0 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  padding: 18px 10px;
}
.fact {
  flex: 1 1 150px; text-align: center; padding: 6px 18px;
}
.fact + .fact { border-left: 1px solid var(--line); }
.fact-num {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.5px; line-height: 1.15;
}
.fact-label { font-size: var(--fs-s); color: var(--muted); margin-top: 2px; }

/* ---------- page heads (record pages) ---------- */

.city-head { padding: 26px 0 14px; }
.head-kicker {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 6px;
}
.head-kicker a { color: var(--muted); }
.head-kicker a:hover { color: var(--brand-ink); }
.city-head h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 800; line-height: 1.12; margin: 0 0 8px; letter-spacing: -.4px;
}
.city-sub { color: var(--ink-2); max-width: 74ch; margin: 0 0 8px; }
.city-head--error { padding-bottom: 0; }

/* ---------- layout ---------- */

.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px; padding: 14px 0 48px;
}
.layout--narrow { grid-template-columns: minmax(0, 1fr); max-width: 780px; margin: 0 auto; }
.layout-side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 901px) {
  .layout-side { position: sticky; top: 84px; align-self: start; }
}

.block {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 20px 22px; margin: 0 0 18px;
  box-shadow: var(--shadow-1);
}
.section-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; letter-spacing: -.2px; }
.section-title a { color: var(--ink); }
.section-sub { color: var(--muted); font-size: .93rem; margin: 0 0 12px; }
.fineprint { color: var(--muted); font-size: var(--fs-xs); }

/* ---------- record hero: the price treatment ---------- */

.record-hero { border: 0; box-shadow: var(--shadow-2); padding: 22px 24px 16px; }
.big-number {
  font-size: clamp(2.3rem, 5vw, 3rem); font-weight: 800;
  color: var(--ink); margin: 2px 0 4px; letter-spacing: -.8px;
  font-variant-numeric: tabular-nums;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
}
.big-unit { font-size: 1.05rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.record-hero .section-sub { margin-bottom: 0; }
.record-hero .facts {
  justify-content: flex-start; text-align: left;
  border: 0; border-top: 1px solid var(--line); border-radius: 0;
  box-shadow: none; margin: 14px 0 12px; padding: 12px 0 0;
}
.record-hero .fact { flex: 1 1 130px; text-align: left; padding: 0 16px; }
.record-hero .fact:first-child { padding-left: 0; }
.record-hero .fact + .fact { border-left: 1px solid var(--line); }
@media (max-width: 640px) {
  .record-hero .fact { flex-basis: 46%; }
  .record-hero .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- data tables (price-history style) ---------- */

.tbl-head { margin-bottom: 10px; }
.tbl-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 0 0 12px;
}
.tbl-filter {
  border: 2px solid var(--line-2); border-radius: 999px;
  padding: 8px 14px; font-size: .92rem; font-family: inherit;
  background: var(--card); color: var(--ink); min-width: 220px;
}
.tbl-filter:focus { border-color: var(--brand); outline: none; }
.tbl-filter::placeholder { color: var(--muted); }

.tbl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--card); color: var(--ink-2);
  padding: 6px 13px; font-size: var(--fs-s); font-weight: 600; font-family: inherit; cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .chip-n { opacity: .75; font-variant-numeric: tabular-nums; font-weight: 500; }

.tbl-wrap {
  overflow: auto; max-height: 70vh;
  border: 1px solid var(--line); border-radius: var(--radius);
  scrollbar-width: thin;
}
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.data-table th {
  position: sticky; top: 0; z-index: 2;
  text-align: left; color: var(--muted); font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 11px 14px;
  background: var(--band);
  border-bottom: 2px solid var(--line-2);
  white-space: nowrap;
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--brand-soft); }
.data-table .cell-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.data-table .row-total td { border-top: 2px solid var(--brand); background: var(--brand-soft); font-weight: 700; }
.data-table .rank-num { font-variant-numeric: tabular-nums; color: var(--muted); }
.data-table .rank-top { color: var(--accent); font-weight: 800; }

.tbl-status { margin: 8px 0 0; }
.tbl-more {
  margin: 10px 0 0;
  border: 0; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink);
  padding: 8px 18px; font-size: var(--fs-s); font-weight: 700; font-family: inherit; cursor: pointer;
}
.tbl-more:hover { background: var(--brand); color: #fff; }

/* ---------- lists ---------- */

.proto-list { list-style: none; margin: 0; padding: 0; }
.proto-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.proto-list li:last-child { border-bottom: 0; }

.county-grid {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 14px;
}
.county-grid a { text-decoration: none; }
.county-grid a:hover { text-decoration: underline; }

.more-link { font-weight: 700; text-decoration: none; color: var(--brand-ink); }
.more-link:hover { text-decoration: underline; }
.faq-h { font-size: 1.02rem; margin: 14px 0 4px; font-weight: 700; }

/* district groups on county pages */
.dist-groups { display: grid; gap: 10px; }
.dist-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 0; }
.dist-group summary {
  cursor: pointer; padding: 11px 14px; font-weight: 700;
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  list-style: none;
}
.dist-group summary::-webkit-details-marker { display: none; }
.dist-group summary::after { content: "＋"; color: var(--muted); font-weight: 400; }
.dist-group[open] summary::after { content: "–"; }
.dist-group summary:hover { color: var(--brand-ink); }
.dist-n { color: var(--muted); font-weight: 500; font-size: var(--fs-s); font-variant-numeric: tabular-nums; }
.dist-group .proto-list { padding: 2px 14px 12px; }
.dist-links li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

/* ---------- home: regions + cards ---------- */

.region-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0 6px; }
.region-nav a {
  text-decoration: none; font-size: var(--fs-s); font-weight: 700;
  color: var(--brand-ink); border: 1px solid var(--brand-line);
  background: var(--brand-soft); border-radius: 999px; padding: 7px 15px;
}
.region-nav a:hover { background: var(--brand); color: #fff; text-decoration: none; }

.region-head {
  margin: 34px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--line-2);
}
.region-head h2 { font-size: 1.45rem; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.region-head .region-n { color: var(--muted); font-size: var(--fs-s); font-weight: 500; margin-left: 8px; }

.state-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px; margin: 0 0 28px;
}
.state-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 18px 20px;
  box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.state-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--brand-line); }
.state-card-title { font-size: 1.1rem; font-weight: 800; text-decoration: none; color: var(--ink); }
.state-card-title:hover { color: var(--brand-ink); text-decoration: underline; }
.state-card-meta { color: var(--muted); font-size: var(--fs-s); }
.county-chips { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.county-chips a { font-size: var(--fs-s); text-decoration: none; color: var(--ink-2); }
.county-chips a:hover { color: var(--brand-ink); text-decoration: underline; }
.state-card .more-link { font-size: var(--fs-s); }

/* top-rates card (home) */
.top-rates { border: 0; box-shadow: var(--shadow-2); }
.top-rates ol { list-style: none; margin: 0; padding: 0; counter-reset: tr; }
.top-rates li {
  counter-increment: tr; display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.top-rates li:last-child { border-bottom: 0; }
.top-rates li::before {
  content: counter(tr); color: var(--muted); font-weight: 700;
  font-variant-numeric: tabular-nums; font-size: var(--fs-s);
  width: 1.2em; flex: none;
}
.top-rates .tr-name { flex: 1; }
.top-rates .tr-name small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.top-rates .tr-rate { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.top-rates li:first-child .tr-rate { color: var(--accent); }

/* ---------- simulator: the calculator card ---------- */

.sim {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: end; padding: 16px; border-radius: var(--radius);
  background: var(--band); border: 1px solid var(--line);
}
.sim-label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .92rem; }
.sim-label input, .search-form--page input {
  border: 2px solid var(--line-2); border-radius: var(--radius-s);
  padding: 11px 12px; font-size: 1.05rem; width: 210px;
  background: var(--card); color: var(--ink); font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.sim-label input:focus, .search-form--page input:focus { border-color: var(--brand); outline: none; }
.sim-check { flex-basis: 100%; font-size: .9rem; color: var(--muted); }
.sim-output { display: flex; flex-direction: column; }
.sim-year { font-size: 1.6rem; font-weight: 800; color: var(--brand-ink); font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.sim-month { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.sim .fineprint { flex-basis: 100%; margin: 0; }

/* ---------- side boxes ---------- */

.side-box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 16px 18px; box-shadow: var(--shadow-1);
}
.side-box h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.side-box p { font-size: .89rem; margin: 0 0 8px; }
.side-box ul { margin: 0; padding-left: 18px; font-size: .9rem; }
.side-box li { margin: 3px 0; }
.side-box a:hover { text-decoration: underline; }

/* ---------- stamps ---------- */

.stamp-row { margin: 8px 0 0; }
.stamp {
  display: inline-block; font-size: var(--fs-xs); padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--band); color: var(--muted);
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.stamp-verify { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- ads (CLS-safe fixed heights) ---------- */

.ad { margin: 16px 0; }
.ad-box {
  display: grid; place-items: center; min-height: 90px;
  background: var(--band); border: 1px dashed var(--line-2);
  border-radius: var(--radius); color: var(--muted); font-size: var(--fs-xs);
}
.ad--sidebar .ad-box { min-height: 250px; }

/* ---------- footer ---------- */

.site-footer { background: var(--band); border-top: 1px solid var(--line); margin-top: 44px; }
.footer-in {
  display: grid; grid-template-columns: 1.1fr 2fr 0.9fr;
  gap: 28px; padding: 30px 20px 22px;
}
.footer-brand { font-weight: 800; color: var(--brand); font-size: 1.2rem; margin: 0 0 6px; letter-spacing: -.3px; }
.footer-about p { font-size: .88rem; line-height: 1.6; margin: 0; color: var(--muted); }
.footer-head {
  color: var(--ink); font-weight: 800; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .8px; margin: 0 0 8px;
}
.footer-states { columns: 3 160px; column-gap: 28px; }
.footer-region { break-inside: avoid; margin: 0 0 14px; }
.footer-region .footer-head { color: var(--muted); margin-bottom: 4px; font-size: .7rem; }
.footer-region ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.footer-region li { padding: 2px 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.footer-col li { padding: 3px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand-ink); text-decoration: underline; }
.footer-legal { padding: 0 20px 26px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- guides ---------- */

.guide { line-height: 1.65; }
.guide p { line-height: 1.65; }
.guide-kicker {
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-ink); margin: 0 0 2px;
}
.city-head .guide-kicker { margin: 0; }
.guide-byline { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.guide section { margin: 20px 0; }
.guide h2 { margin: 24px 0 8px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.2px; }
.guide ul, .guide ol { line-height: 1.6; }
.guide table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 14px 0; }
.guide th {
  text-align: left; color: var(--muted); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px;
  border-bottom: 2px solid var(--line-2);
}
.guide td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide td.num, .guide th.num { text-align: right; font-variant-numeric: tabular-nums; }

.guide-toc {
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  background: var(--card); border-radius: var(--radius-s);
  padding: 12px 16px; margin: 16px 0;
}
.guide-toc-label { font-weight: 800; font-size: .82rem; color: var(--ink); margin: 0 0 4px; }
.guide-toc ol { margin: 0; padding-left: 20px; }
.guide-toc li { margin: 3px 0; }
.guide-toc a:hover { text-decoration: underline; }

.guide-live {
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
  color: #fff; border-radius: var(--radius-l); padding: 18px 20px; margin: 20px 0;
  box-shadow: var(--shadow-1);
}
.guide-live-kicker {
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #CFE2FF; margin: 0 0 6px;
}
.guide-live-line { font-size: 1.12rem; font-weight: 800; margin: 0 0 10px; color: #fff; }
.guide-live-cta { margin: 0; }
.guide-live-cta a { color: #fff; font-weight: 700; font-size: .9rem; text-decoration: underline; }
.guide-live-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin: 0; }
.guide-live-table th {
  text-align: left; color: #E4EEFF; padding: 6px 10px 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .3); width: 130px; vertical-align: top;
  background: none; text-transform: none; letter-spacing: 0; font-size: .85rem;
}
.guide-live-table td { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.guide-live-table ul { margin: 0; padding-left: 16px; }
.guide-live-table li { margin: 2px 0; }
.guide-live-note { font-size: var(--fs-xs); color: #CFE2FF; margin: 10px 0 0; }

.guide-sources { font-size: .85rem; color: var(--muted); }
.guide-sources ul { padding-left: 20px; }
.guide-next { font-weight: 700; margin-top: 22px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.guide-card {
  display: flex; flex-direction: column; gap: 4px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px 18px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--brand-line); }
.guide-card-title { font-weight: 800; color: var(--ink); }
.guide-card-desc { font-size: .85rem; color: var(--muted); }
.guide-hint { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
.guide-hint a { color: var(--brand-ink); font-weight: 700; }

/* ---------- search page ---------- */

.search-form--page { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-form--page input { flex: 1 1 200px; width: auto; }
.search-form--page select {
  border: 2px solid var(--line-2); border-radius: var(--radius-s);
  padding: 11px 12px; font-size: .95rem; font-family: inherit;
  background: var(--card); color: var(--ink);
}
.search-form--page select:focus { border-color: var(--brand); outline: none; }
.search-meta { color: var(--muted); font-size: var(--fs-s); margin: 10px 0 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .site-header { position: static; }
  .brand-rating { display: none; }
  .nav-burger-label { display: inline-flex; }
  .nav-panel { display: none; }
  .nav-burger:checked ~ .nav-panel {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; margin-left: 0; gap: 4px;
    padding: 12px 2px 16px;
    border-top: 1px solid var(--line);
  }
  .nav-burger:checked ~ .nav-panel .site-nav { flex-direction: column; gap: 2px; }
  .nav-burger:checked ~ .nav-panel .site-nav a { padding: 10px 12px; }
  .nav-burger:checked ~ .nav-panel .head-menu summary { padding: 10px 12px; }
  .nav-burger:checked ~ .nav-panel .head-menu-panel {
    position: static; box-shadow: none; border: 0; padding: 4px 12px 8px 24px;
    max-height: none; min-width: 0;
  }
  .nav-burger:checked ~ .nav-panel .search-form { margin-top: 8px; }
  .nav-burger:checked ~ .nav-panel .search-form input[type="search"] { flex: 1; min-width: 0; width: 100%; }
  .search-form { flex: 1 1 220px; }
  .search-form input[type="search"] { min-width: 0; flex: 1; }
  .layout { grid-template-columns: 1fr; }
  .layout-side { position: static; }
  .footer-in { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .hero { padding-top: 48px; padding-bottom: 66px; }
  .hero-search { padding: 6px 6px 6px 18px; margin: 20px auto 0; }
  .hero-search .picker-go { padding: 11px 18px; }
  .block { padding: 16px; border-radius: var(--radius); }
  .record-hero { padding: 18px 16px 12px; }
  .tbl-toolbar { flex-direction: column; align-items: stretch; }
  .tbl-filter { min-width: 0; width: 100%; }
  .tbl-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tbl-wrap { max-height: 60vh; }
  .state-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .state-card { padding: 14px 16px; }
  .facts { gap: 10px 0; }
  .fact { flex-basis: 40%; }
  .fact:nth-child(3) { border-left: 0; }
  .sim { gap: 12px; }
  .sim-label input, .search-form--page input { width: 100%; }
}

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

/* ---------- print ---------- */

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .crumbs, .ad, .sim, .side-box,
  .tbl-toolbar, .tbl-status, .tbl-more, .region-nav, .quick-chips,
  .skip-link, .guide-toc, .guide-next, .stamp-row, .hero-search { display: none !important; }
  .hero { background: #fff; color: #000; margin-inline: 0; padding: 0 0 6pt; }
  .hero-sub, .hero-kicker { color: #000; }
  .wrap { max-width: none; padding: 0; }
  .block, .state-card, .facts { box-shadow: none; border: 1px solid #999; border-radius: 0; }
  .layout { display: block; padding: 0; }
  .layout-side { display: none; }
  .tbl-wrap { max-height: none; overflow: visible; border: 0; }
  .data-table th { position: static; background: #fff; }
  .data-table tr[hidden] { display: table-row; }
  .data-table tr { break-inside: avoid; }
  .data-table td, .data-table th { padding: 4pt 6pt; }
  .record-hero { border: 0; padding: 0 0 6pt; }
  .big-number, .fact-num { color: #000; }
  .guide-live { background: #fff; color: #000; border: 1px solid #999; }
  .guide-live-line, .guide-live-kicker, .guide-live-note { color: #000; }
  a { color: #000; text-decoration: none; }
  .city-head { padding: 0 0 6pt; }
}
