/* ==========================================================================
   Insurance Cost Guide — full reset + single design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   STEP 1 — RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}

a:visited {
  color: var(--color-accent-visited);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

ul, ol {
  list-style-position: outside;
  padding-left: 1.25rem;
}

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

/* --------------------------------------------------------------------------
   LOCKED COLOR SYSTEM + DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #0F3D3E;
  --color-primary-hover: #0B2F30;
  --color-pre-footer: #164a4b;
  --color-secondary: #5F7D8A;
  --color-accent: #B8860B;
  --color-accent-hover: #A88520;
  --color-accent-visited: #B8962E;
  --color-bg: #F5F6F8;
  --color-text: #1A1F2E;
  --color-text-muted: #5C6B73;
  --color-border: #E1E6EB;
  --color-on-primary: #F4F6F8;
  --color-on-primary-muted: rgba(244, 246, 248, 0.88);
  --color-surface: #FFFFFF;
  --color-border-on-primary: rgba(244, 246, 248, 0.25);
  --color-border-on-pre-footer: rgba(244, 246, 248, 0.2);
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-section: 32px;
  --container-wide: 1280px;
  --container-prose: 900px;
  /* Design tokens (premium identity) */
  --bg: var(--color-bg);
  --surface: var(--color-surface);
  --surface-2: #EEF1F5;
  --border: var(--color-border);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --accent: var(--color-accent);
  --accent-2: #E8DDB5;
}

/* --------------------------------------------------------------------------
   STEP 2 — BASE TYPOGRAPHY (premium financial reference)
   -------------------------------------------------------------------------- */
h1 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

@media (min-width: 430px) {
  h1 {
    font-size: 28px;
    margin-bottom: var(--space-md);
  }
}

@media (min-width: 720px) {
  h1 {
    font-size: 38px;
    margin-bottom: var(--space-lg);
  }
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: var(--space-section);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

@media (min-width: 720px) {
  h2 {
    font-size: 24px;
    margin-bottom: var(--space-sm);
  }
}

h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

p {
  margin-bottom: 1em;
  line-height: 1.65;
}

p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   STEP 3 — LAYOUT (containers control width; no parent overrides)
   -------------------------------------------------------------------------- */
.container-wide,
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.container-prose {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

@media (max-width: 719px) {
  .container-wide,
  .wrap,
  .container-prose {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 430px) {
  .container-wide,
  .wrap,
  .container-prose {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.page {
  padding-top: 20px;
  padding-bottom: 32px;
}

@media (min-width: 720px) {
  .page {
    padding-top: 48px;
    padding-bottom: 56px;
  }
}

.page-header {
  margin-bottom: var(--space-lg);
}

.breadcrumb {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
@media (max-width: 719px) {
  .breadcrumb {
    margin-bottom: 8px;
  }
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

/* Prose: full width in .container-wide; 70–80ch in .container-prose for readability */
.prose {
  max-width: 100%;
  line-height: 1.65;
}

main.container-prose .prose {
  max-width: 75ch;
}

.prose p {
  margin-bottom: 14px;
}

.prose ul, .prose ol {
  margin-bottom: 14px;
}

.prose li {
  margin-bottom: 6px;
}

.prose p:last-child,
.prose ul:last-child,
.prose ol:last-child {
  margin-bottom: 0;
}

/* Page shell: no white blocks, just spacing */
.page-shell {
  margin-bottom: 0;
}

.page-card {
  padding: 0;
}

/* Inner editorial wrapper: no extra width constraint; main uses .container-wide or .container-prose. */
.page-editorial {
  max-width: 100%;
  padding: 0 0 var(--space-3xl);
  background: none;
}

/* Sources (and any table-heavy page): prose and tables use full container width. */
.page-editorial--wide .prose {
  max-width: 100%;
}

.page-editorial .page-header {
  margin-bottom: var(--space-2xl);
  background: none;
  padding: 0;
}

.page-editorial .page-header h1 {
  margin-top: 0;
  margin-bottom: 0;
}

/* Long-form hero: title area with breathing room and subtle divider */
.page-hero {
  padding-top: 44px;
  padding-bottom: 44px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
@media (max-width: 719px) {
  .page-hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

/* State hero: STATE pages only. Image from /state-images/{abbr}.jpg, dark overlay, consistent height */
.state-hero {
  position: relative;
  z-index: 0;
  margin-left: calc(-1 * var(--space-md, 20px));
  margin-right: calc(-1 * var(--space-md, 20px));
  margin-bottom: var(--space-2xl);
  min-height: 180px;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-color: var(--color-primary, #0f3d3e);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.state-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}
.state-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-wide, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}
.state-hero__title {
  color: #fff;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.state-hero__subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  margin: 0;
  max-width: 42em;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.state-hero--fallback {
  background-image: none;
  background: linear-gradient(135deg, var(--color-primary, #0f3d3e) 0%, #0a2d2e 100%);
}

@media (min-width: 720px) {
  .state-hero {
    min-height: 220px;
    margin-left: calc(-1 * var(--space-lg, 24px));
    margin-right: calc(-1 * var(--space-lg, 24px));
    padding: var(--space-xl) var(--space-lg);
  }
}

/* Content blocks: section cards (white on off-white, subtle divider rhythm) */
.content-block {
  padding: 26px 28px;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (max-width: 719px) {
  .content-block {
    padding: 18px 16px;
    margin-bottom: var(--space-lg);
  }
}
.content-block:not(:last-child) {
  border-bottom: none;
}
.content-block + .content-block {
  margin-top: 0;
}
.content-block h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 719px) {
  .content-block h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
}
.content-block p {
  margin-bottom: 1em;
  line-height: 1.65;
}
.content-block p:last-child {
  margin-bottom: 0;
}

/* Quick Answer: high-signal summary at top of informational pages */
.quick-answer {
  border-left: 4px solid var(--accent);
  background: var(--surface-2, #f5f6f8);
}

@media (max-width: 719px) {
  .quick-answer {
    padding: var(--space-sm) var(--space-md);
  }
}
.quick-answer__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0.5em;
}
.quick-answer__content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.quick-answer__content p {
  margin-bottom: 0.5em;
}
.quick-answer__content p:last-child {
  margin-bottom: 0;
}

/* Estimate summary (AEO / AI-answer block): compact key-value list */
.estimate-summary {
  border-left: 4px solid var(--accent);
  background: var(--surface-2, #f5f6f8);
}
.estimate-summary__title {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5em;
}
.estimate-summary__list {
  display: grid;
  gap: 0.25em 1em;
  margin: 0;
  font-size: 0.95rem;
}
.estimate-summary__list dt {
  grid-column: 1;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}
.estimate-summary__list dd {
  grid-column: 2;
  margin: 0;
}
@media (max-width: 479px) {
  .estimate-summary__list { grid-template-columns: 1fr; }
  .estimate-summary__list dd { grid-column: 1; }
}

/* Ad placeholder: reserved space, no layout shift */
.ad-placeholder {
  width: 100%;
  background: transparent;
  margin: 0.5em 0;
}

/* Key Facts: label + value cards in a grid */
.fact-cards__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
}
.fact-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 520px) {
  .fact-cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 780px) {
  .fact-cards__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.fact-card {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.fact-card__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.fact-card__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* Callout: important, cost-impact, state-rule, methodology, warning */
.callout {
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 4px solid var(--muted);
  background: var(--surface-2, #f5f6f8);
  margin: 1em 0;
}
.callout__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 6px;
}
.callout__content {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.callout__content p {
  margin-bottom: 0.4em;
}
.callout__content p:last-child {
  margin-bottom: 0;
}
.callout--important { border-left-color: var(--accent); }
.callout--cost-impact { border-left-color: var(--accent); }
.callout--state-rule { border-left-color: var(--accent); }
.callout--methodology { border-left-color: var(--muted); }
.callout--warning { border-left-color: #c53030; }

/* Chips/tags */
.chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chip {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.chip--link {
  color: var(--accent);
  text-decoration: none;
  border-color: var(--accent);
}
.chip--link:hover {
  background: var(--accent-2, #f0ebe0);
  text-decoration: underline;
}
.chips-wrap__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.chips-list {
  margin-top: 0;
}

/* Bullet summaries in content blocks */
.bullet-summary {
  margin: 0.5em 0 0;
  padding-left: 1.25rem;
}
.bullet-summary li {
  margin-bottom: 0.35em;
}
.bullet-summary li:last-child {
  margin-bottom: 0;
}

/* FAQ: details/summary accordion (accessible, no JS required) */
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 0;
  list-style: none;
  padding: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-q {
  padding: 14px 16px;
  padding-right: 44px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
  position: relative;
}

summary.faq-q::-webkit-details-marker {
  display: none;
}

summary.faq-q::marker {
  display: none;
}

.faq-q::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-q::after {
  transform: translateY(-30%) rotate(180deg);
}

.faq-item[open] .faq-q {
  border-bottom: 1px solid var(--border);
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-a {
  padding: 14px 16px;
  color: var(--text);
  line-height: 1.65;
  font-size: 0.95rem;
}

.faq-a p {
  margin-bottom: 0.75em;
}

.faq-a p:last-child {
  margin-bottom: 0;
}

/* Flat variant (no details/summary) for optional non-accordion use */
.faq-item--flat .faq-q {
  cursor: default;
  padding-right: 16px;
}

.faq-item--flat .faq-q::after {
  display: none;
}

/* Related scenarios: card grid (2 cols desktop, 1 mobile) — aligns with .card-grid */
.related-cards,
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
@media (min-width: 600px) {
  .related-cards,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
.related-card,
.card-grid__item {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover,
.card-grid__item:hover {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.related-card a,
.card-grid__item a {
  display: block;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.related-card a:hover,
.card-grid__item a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.related-card:focus-within,
.card-grid__item:focus-within {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.related-card a:focus-visible,
.card-grid__item a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.related-intro {
  margin-bottom: 12px;
}

/* Prose: full container width in wide pages; 75ch in prose pages */
.page-editorial .prose {
  max-width: 100%;
  line-height: 1.65;
}

main.container-prose .page-editorial .prose {
  max-width: 75ch;
}

/* Section rhythm: 28–40px between major sections */
.page-editorial .prose h2 {
  margin-top: var(--space-section);
  margin-bottom: var(--space-sm);
}

.page-editorial .prose h2:first-of-type {
  margin-top: 0;
}

.intro-tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* Browse by Age / Browse by Risk — card grids (state hub) */
.browse-section {
  margin-top: var(--space-section);
  margin-bottom: 0;
}

.browse-section__title {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.browse-cards {
  display: grid;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.browse-cards--age,
.browse-cards--risk {
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .browse-cards--age,
  .browse-cards--risk {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .browse-cards--age {
    grid-template-columns: repeat(3, 1fr);
  }
  .browse-cards--risk {
    grid-template-columns: repeat(2, 1fr);
  }
}

.browse-card {
  background: #FFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.15s ease;
}

.browse-card:hover {
  border-color: var(--color-secondary);
}

.browse-card__title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.browse-card__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.browse-card__links li {
  margin-bottom: 0;
}

.browse-card__link {
  display: block;
  padding: 10px 0;
  min-height: 44px;
  line-height: 1.5;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.browse-card__link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.browse-card__link:not(:last-child) {
  border-bottom-color: var(--color-border);
}

/* Estimate by Profile — grouped by age (state hub) */
.estimate-by-profile-section {
  margin-top: var(--space-section);
}

.estimate-by-profile-section h2 {
  margin-bottom: var(--space-sm);
}

.estimate-by-profile-section > p {
  margin-bottom: var(--space-md);
}

.estimate-by-profile-group {
  margin-bottom: var(--space-lg);
}

.estimate-by-profile-group:last-child {
  margin-bottom: 0;
}

.estimate-by-profile-group__title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.estimate-by-profile-list {
  margin: 0 0 0 1.25rem;
  padding-left: 0;
  list-style-position: outside;
}

.estimate-by-profile-list li {
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   STEP 4 — HEADER (site nav only; .site-header = sticky nav bar; .hero = homepage hero, not sticky)
   -------------------------------------------------------------------------- */
#site-header {
  border: none;
  background: transparent;
  min-height: 0;
}
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  isolation: isolate;
  background: var(--color-primary);
  border-bottom: 1px solid var(--color-border-on-primary);
  padding: 14px 0;
}

.header-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  overflow: visible;
}

.header-brand {
  color: #fff;
  display: inline-flex;
  text-decoration: none;
}

.header-brand:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}

/* No focus ring on mouse click; show ring for keyboard only (avoids black flash on navigation) */
.header-brand:focus {
  outline: none;
}
.header-brand:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Logo as img (e.g. dynamic server): currentColor not inherited; force white via filter */
.header-brand img.header-logo {
  filter: brightness(0) invert(1);
}

.header-brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  align-items: flex-start;
}

.header-brand-visual {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo {
  height: 1.5rem;
  width: auto;
  vertical-align: middle;
  flex-shrink: 0;
  color: inherit;
}

.header-brand-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: inherit;
  text-transform: uppercase;
}

.header-value-line {
  font-size: 0.7rem;
  color: var(--color-on-primary-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.header-trust-cues {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.header-trust-chip {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--color-on-primary-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border-on-primary);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

a.header-trust-chip:hover {
  color: var(--color-on-primary);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--color-border-on-primary);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-on-primary);
  cursor: pointer;
}
.nav-toggle:focus {
  outline: none;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-panel {
  flex: 1 1 100%;
  width: 100%;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-md);
}

/* Default: all nav links white (override global a color) */
.nav a,
.nav a:visited {
  color: var(--color-on-primary);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.nav a:hover,
.nav a:focus {
  color: var(--color-accent);
}

/* Suppress default focus outline on click (avoids black rectangle flash); show for keyboard only */
.nav a:focus,
.nav-link:focus {
  outline: none;
}
.nav a:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 2px;
  color: var(--color-on-primary);
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}

.nav-link.active {
  color: var(--color-accent);
  font-weight: 600;
  border-bottom: 2px solid var(--color-accent);
  text-decoration: none;
}

.nav .icon, .nav-link svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Dropdown: dark teal panel, white items, hover = lighter teal bg + gold text */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  color: var(--color-on-primary);
  text-decoration: none;
}

.nav-dropdown-label:hover,
.nav-dropdown-label:focus {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}
.nav-dropdown-label:focus {
  outline: none;
}
.nav-dropdown-label:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-dropdown-label .icon,
.nav-dropdown-label svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.nav-dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-dropdown-menu .nav-link {
  display: inline-flex;
  padding: 6px 0;
  color: var(--color-on-primary);
  text-decoration: none;
}

.nav-dropdown-menu .nav-link:hover,
.nav-dropdown-menu .nav-link:focus {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.nav-dropdown-menu .nav-link:focus {
  outline: none;
}
.nav-dropdown-menu .nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .nav-toggle {
    display: none !important;
  }
  .nav-panel {
    flex: 1 1 auto;
    width: auto;
    margin-top: 0;
    margin-left: auto;
    justify-content: flex-end;
  }
  .nav {
    gap: 0 20px;
    justify-content: flex-end;
  }
  .nav-link {
    padding: 10px 4px;
  }
  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    padding: var(--space-sm) var(--space-md);
    min-width: 200px;
    background: var(--color-primary);
    border: 1px solid var(--color-border-on-primary);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 1101;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
  .nav-dropdown-chevron {
    font-size: 0.7em;
    opacity: 0.9;
  }
  .nav-dropdown-menu .nav-link {
    display: block;
    padding: 8px 10px;
    margin: 0 -2px;
    border-radius: 4px;
    border-bottom: none;
  }
  .nav-dropdown-menu .nav-link:hover,
  .nav-dropdown-menu .nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
  }
  .nav-dropdown-menu .nav-link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 719px) {
  .nav-toggle {
    display: flex;
  }
  .header-trust-cues {
    display: none;
  }
  .nav-panel {
    display: none;
    order: 3;
    margin-top: var(--space-xs);
    padding: var(--space-md);
    background: var(--color-primary);
    border: 1px solid var(--color-border-on-primary);
    border-radius: var(--radius);
  }
  body.nav-open .nav-panel {
    display: block !important;
    width: 100%;
    flex-basis: 100%;
  }
  .nav {
    flex-direction: column;
    gap: 0;
  }
  .nav-link {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-on-primary);
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .nav-dropdown {
    border-bottom: 1px solid var(--color-border-on-primary);
  }
  .nav-dropdown-label {
    padding: var(--space-sm) 0;
  }
  .nav-dropdown-menu {
    padding-left: var(--space-md);
    padding-bottom: var(--space-xs);
  }
  .nav-dropdown-menu .nav-link {
    padding: var(--space-xs) 0;
    border-bottom: none;
  }
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   STEP 4 — PRE-FOOTER + FOOTER
   Pre-footer: lighter teal band (value + trust + quick links).
   Footer: darkest band (nav grid + copyright).
   -------------------------------------------------------------------------- */
.site-pre-footer {
  width: 100%;
  background: var(--color-pre-footer);
  color: var(--color-on-primary);
  font-size: 15px;
  line-height: 1.75;
  border-top: 1px solid var(--color-border);
}

.pre-footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-2xl) 20px var(--space-xl);
  width: 100%;
}

@media (max-width: 719px) {
  .pre-footer-wrap {
    padding: var(--space-xl) 16px var(--space-lg);
  }
}

@media (max-width: 430px) {
  .pre-footer-wrap {
    padding: var(--space-lg) 14px var(--space-md);
  }
}

.pre-footer-content {
  max-width: 56em;
  margin-bottom: var(--space-lg);
}

@media (max-width: 719px) {
  .pre-footer-content {
    margin-bottom: var(--space-md);
  }
  .pre-footer-quick-links {
    gap: var(--space-sm) var(--space-md);
    padding-top: var(--space-md);
  }
}

.pre-footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-on-primary);
  margin: 0 0 var(--space-sm);
  line-height: 1.35;
}

.pre-footer-value {
  font-size: 0.9375rem;
  color: var(--color-on-primary-muted);
  margin: 0 0 var(--space-sm);
  line-height: 1.6;
}

.pre-footer-trust {
  font-size: 0.875rem;
  color: var(--color-on-primary-muted);
  margin: 0;
  line-height: 1.6;
  opacity: 0.95;
}

.pre-footer-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-on-pre-footer);
}

.pre-footer-quick-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-on-primary);
  text-decoration: none;
}

.pre-footer-quick-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}

/* Footer: darkest band */
.site-footer {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 15px;
  line-height: 1.75;
  border-top: 1px solid var(--color-border-on-pre-footer);
}

.footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-xl) 20px var(--space-lg);
  width: 100%;
}

@media (max-width: 719px) {
  .footer-wrap {
    padding: var(--space-lg) 16px var(--space-md);
  }
}

@media (max-width: 430px) {
  .footer-wrap {
    padding: var(--space-md) 14px var(--space-sm);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg) var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (min-width: 520px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-xl);
  }
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-xl) var(--space-2xl);
  }
}

.footer-col-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-on-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col-heading .icon, .footer-col-heading svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  opacity: 0.9;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

@media (max-width: 719px) {
  .footer-col {
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-on-primary);
  }
  .footer-col:first-child {
    padding-top: 0;
    border-top: none;
  }
  .footer-col-heading {
    margin-bottom: var(--space-sm);
  }
  .footer-bottom {
    padding-top: var(--space-lg);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--color-on-primary-muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}

.footer-link .icon, .footer-link svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  font-size: 14px;
  color: var(--color-on-primary-muted);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-on-primary);
}

.footer-brand {
  font-weight: 600;
  color: var(--color-on-primary);
}

.footer-copy {
  color: var(--color-on-primary-muted);
}

/* --------------------------------------------------------------------------
   STEP 5A — HERO (home only). Image + dark overlay + content; fallback gradient if image missing.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 0;
  width: calc(100% + 40px);
  max-width: calc(var(--container-wide) + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: var(--space-xl);
  min-height: 280px;
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-primary);
  background-image: url("/assets/hero-usa-banner-1600x600.webp"), linear-gradient(135deg, #0a2d2e 0%, var(--color-primary) 40%, #164a4b 100%);
  background-size: cover, cover;
  background-position: center 50%, center;
  background-repeat: no-repeat, no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 61, 62, 0.88) 0%, rgba(15, 61, 62, 0.5) 55%, rgba(15, 61, 62, 0.25) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  padding: var(--space-lg) 20px;
  box-sizing: border-box;
}

.hero__content {
  max-width: 520px;
}

.hero__title {
  margin: 0 0 0.4em;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero__support {
  margin: 0 0 0.5em;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-on-primary);
}

.hero__tagline {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-on-primary-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.hero__cta {
  display: inline-block;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 0.15s ease, background 0.15s ease;
}

.hero__cta--primary {
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
}

.hero__cta--primary:hover,
.hero__cta--primary:focus,
.hero__cta--primary:visited {
  color: #ffffff;
}

.hero__cta--primary:hover {
  opacity: 0.95;
  background: var(--color-accent-hover);
}

.hero__cta:not(.hero__cta--primary) {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid var(--color-border-on-primary);
}

.hero__cta:not(.hero__cta--primary):hover,
.hero__cta:not(.hero__cta--primary):focus,
.hero__cta:not(.hero__cta--primary):visited {
  color: #ffffff;
}

.hero__cta:not(.hero__cta--primary):hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Mobile hero: allow height to fit content; no clipping */
@media (max-width: 719px) {
  .hero {
    min-height: 300px;
    background-position: center 40%, center;
  }
  .hero-inner {
    padding: var(--space-xl) 20px;
    align-items: flex-start;
    padding-top: var(--space-lg);
  }
  .hero__content {
    width: 100%;
  }
  .hero__title {
    font-size: 1.35rem;
  }
  .hero__support {
    font-size: 0.9rem;
  }
  .hero__tagline {
    margin-bottom: var(--space-md);
  }
  .hero__actions {
    margin-top: 0;
  }
}

/* Contact / primary button (e.g. Contact page Send Email) */
.btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:visited {
  color: #ffffff;
}
.btn-primary:hover {
  opacity: 0.95;
  background: var(--color-accent-hover);
}
.btn-primary a {
  color: #ffffff;
}
.contact-action {
  margin-bottom: 1em;
}
.contact-email-button {
  margin-top: 8px;
}

@media (min-width: 720px) {
  .hero {
    min-height: 300px;
    height: 300px;
    margin-bottom: var(--space-2xl);
  }
  .hero-inner {
    min-height: 100%;
    height: 100%;
    padding: var(--space-xl) 28px;
  }
  .hero__title {
    font-size: 1.85rem;
  }
  .hero__support {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 2rem;
  }
}

/* --------------------------------------------------------------------------
   STEP 5A — STATE GRID (no cards, clean rows)
   -------------------------------------------------------------------------- */
.state-filter-wrap {
  margin-bottom: var(--space-md);
}

.state-filter-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.state-filter-input-wrap {
  position: relative;
  display: block;
}

.state-filter-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.state-filter-icon svg {
  width: 100%;
  height: 100%;
}

.state-filter-input {
  width: 100%;
  padding: 12px 36px 12px 40px;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}

.state-filter-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(15, 61, 62, 0.2);
}

.state-filter-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.state-filter-clear:hover {
  color: var(--color-text);
  background: var(--color-border);
}

.state-filter-clear[aria-hidden="true"] {
  display: none;
}

.state-filter-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.state-filter-no-results {
  display: none;
  padding: var(--space-md) 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.state-filter-no-results.state-filter-no-results-visible {
  display: block;
}

.state-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 720px) {
  .state-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .state-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.state-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.state-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.15);
  text-decoration: none;
  color: var(--color-text);
}

.state-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.state-card.state-filter-hidden {
  display: none !important;
}

/* State card icon: silhouette (auto) or stroke icon (SR-22, home). Left of name, muted. */
.state-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: var(--color-secondary);
}

.state-card-icon svg {
  width: 24px;
  height: 24px;
}

/* Auto page: state silhouette uses fill, no stroke */
.state-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

/* SR-22 / home: stroke-based icons (document, map pin) need stroke visible */
.state-card-icon svg.icon {
  stroke: currentColor;
  fill: none;
}

.state-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.state-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.state-card-sub {
  font-size: 13px;
  color: var(--color-text-muted);
}

.state-card-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.state-card:hover .state-card-chevron {
  color: var(--color-accent);
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   STEP 5B — TABLES (Sources + state hubs)
   -------------------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 14px;
  line-height: 1.5;
}

thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-surface);
}

th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
  min-width: 4rem;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  min-width: 4rem;
}

tbody tr:nth-child(even) {
  background: rgba(244, 246, 248, 0.6);
}

tbody tr:hover {
  background: rgba(226, 232, 238, 0.5);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-lg) 0;
  width: 100%;
}

.table-wrap table {
  margin: 0;
  min-width: 600px;
  width: 100%;
}

/* Cluster/ranking tables: stacked cards on mobile (use data-label on each td) */
@media (max-width: 719px) {
  .table-wrap table.cluster-state-table {
    min-width: 0;
  }
  .cluster-state-table thead {
    display: none;
  }
  .cluster-state-table tbody tr {
    display: block;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .cluster-state-table tbody tr:nth-child(even) {
    background: var(--surface);
  }
  .cluster-state-table tbody tr:hover {
    background: var(--surface);
    border-color: var(--color-secondary);
  }
  .cluster-state-table tbody td {
    display: block;
    padding: 6px 0;
    border: none;
    min-width: 0;
  }
  .cluster-state-table tbody td:first-child {
    padding-top: 0;
  }
  .cluster-state-table tbody td:last-child {
    padding-bottom: 0;
    margin-top: 8px;
  }
  .cluster-state-table tbody td::before {
    content: attr(data-label);
    display: inline-block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    min-width: 10em;
    margin-right: 0.5em;
  }
  .cluster-state-table tbody td:last-child::before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   PROSE PAGES: callout, dividers, estimate box
   -------------------------------------------------------------------------- */
/* At a glance: compact strip, no card look */
.at-a-glance {
  background: rgba(244, 246, 248, 0.8);
  border-left: 2px solid var(--color-accent);
  padding: var(--space-xs) var(--space-sm);
  margin-top: 0;
  margin-bottom: var(--space-2xl);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 719px) {
  .at-a-glance {
    margin-bottom: var(--space-xl);
  }
}

.at-a-glance-title {
  font-weight: 600;
  margin-right: 0.5em;
}

.at-a-glance ul {
  display: inline;
  list-style: none;
  padding: 0;
  margin: 0;
}

.at-a-glance li {
  display: inline;
}

.at-a-glance li:not(:last-child)::after {
  content: " · ";
  color: var(--color-text-muted);
}

/* Subtle divider between major sections (48px rhythm) */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-2xl) 0;
}

.estimate-box {
  padding: var(--space-lg) 0;
  margin: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.estimate-box .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
}

.estimate-note, .data-basis, .inflation-adjustment {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* FAQ blocks (premium + readable) */
.faq-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-section);
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  margin-bottom: var(--space-lg);
}

/* Sitemap / state lists */
.sitemap-list, .state-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 720px) {
  .sitemap-list, .state-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sitemap-list li, .state-list li {
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}

.sitemap-list a, .state-list a {
  display: block;
  padding: 10px 0;
  color: var(--color-text);
}

.sitemap-list a:hover, .state-list a:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   COMPONENT CLASSES (cards, section titles, chips, grids)
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow);
}

@media (max-width: 719px) {
  .card {
    padding: 16px 18px;
    margin-bottom: var(--space-md);
  }
}
.card h2 {
  margin-top: 0;
  margin-bottom: 14px;
}
.card p {
  margin-bottom: 16px;
  line-height: 1.65;
}
.card p:last-child {
  margin-bottom: 0;
}

.card--subtle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 20px 24px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius);
}
.card--subtle h2 { margin-top: 0; margin-bottom: 14px; }
.card--subtle p:last-child { margin-bottom: 0; }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.section-title .section-title__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.section-title .section-title__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-list li {
  margin-bottom: 8px;
}
.link-list li:last-child {
  margin-bottom: 0;
}
.link-list a {
  color: var(--accent);
}
@media (max-width: 719px) {
  .link-list a {
    display: inline-block;
    padding: 6px 0;
    min-height: 44px;
    line-height: 1.4;
  }
}

.section-card {
  padding: var(--space-md) 0;
}

/* --------------------------------------------------------------------------
   ON THIS PAGE (sticky sidebar for long-form pages)
   -------------------------------------------------------------------------- */
.page-with-sidebar {
  display: block;
  width: 100%;
}

.main-col {
  width: 100%;
}

/* Scroll targets: avoid sticky header overlap (header + padding ~88px) */
.page-with-sidebar .main-content [id] {
  scroll-margin-top: 88px;
}

.on-this-page-wrap {
  display: none;
}

/* Mobile: compact "Jump to" dropdown at top of main content */
.jump-to-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.jump-to-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.jump-to-select {
  flex: 1;
  max-width: 280px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.on-this-page-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 var(--space-sm);
}

.on-this-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.on-this-page-list li {
  margin-bottom: 6px;
}

.on-this-page-link {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
  text-decoration: none;
}

.on-this-page-link:hover {
  color: var(--accent);
}

.on-this-page-link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

@media (min-width: 1024px) {
  .page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: var(--space-2xl);
    align-items: start;
  }

  .main-col {
    min-width: 0;
  }

  .jump-to-mobile {
    display: none;
  }

  .on-this-page-wrap {
    display: block;
    position: sticky;
    top: 88px;
    padding-top: var(--space-xs);
  }

  .on-this-page-wrap .on-this-page-title {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   BACK TO TOP (floating control, sitewide)
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-accent);
  color: #fff;
}

.back-to-top:focus {
  outline: none;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.back-to-top__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top__icon svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 719px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
  .back-to-top__icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.01s ease;
  }
}

/* --------------------------------------------------------------------------
   ACCENT UTILITIES (accent only: underlines, left borders, active nav, badges)
   -------------------------------------------------------------------------- */
.accent-underline {
  border-bottom: 2px solid var(--color-accent);
}

.accent-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   GEO CLUSTER HUB (cities / counties list pages)
   -------------------------------------------------------------------------- */
.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;
}

.geo-cluster-intro {
  margin-bottom: var(--space-lg);
}

.geo-cluster-major {
  margin: var(--space-xl) 0;
}

.geo-cluster-major h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.geo-cluster-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-sm);
  list-style: none;
  margin-top: var(--space-md);
}

.geo-cluster-card {
  margin: 0;
}

.geo-cluster-card a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  font-weight: 500;
}

.geo-cluster-card a:hover {
  background: var(--color-bg-soft-hover, #e8e8e8);
}

.geo-cluster-what-varies {
  margin: var(--space-xl) 0;
}

.geo-cluster-what-varies h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.geo-cluster-list-section {
  margin: var(--space-xl) 0;
}

.geo-cluster-filter {
  width: 100%;
  max-width: 20rem;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.geo-cluster-list {
  list-style: none;
  column-count: 2;
  column-gap: var(--space-lg);
}

@media (max-width: 640px) {
  .geo-cluster-list {
    column-count: 1;
  }
}

.geo-cluster-list li {
  margin-bottom: var(--space-xs);
  break-inside: avoid;
}

.geo-cluster-footer-links {
  margin-top: var(--space-xl);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
