/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --primary:        #1a6b72;
  --primary-dark:   #134f55;
  --primary-light:  #e6f4f5;
  --accent:         #2a9aa6;
  --text:           #1a1a2e;
  --muted:          #6b7280;
  --border:         #e2e8f0;
  --bg:             #f8fafc;
  --white:          #ffffff;
  --warn-bg:        #fffbeb;
  --warn-border:    #f59e0b;
  --warn-text:      #78350f;
  --green-bg:       #dcfce7;
  --green-text:     #166534;
  --red-bg:         #fee2e2;
  --red-text:       #991b1b;
  --neutral-bg:     #f1f5f9;
  --neutral-text:   #475569;
  --font:           system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius:         8px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow:         0 4px 12px rgba(0,0,0,.1);
  --max-w:          1100px;
}

/* ── Reset / Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .75rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; color: var(--primary-dark); }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
p  { margin-bottom: .75rem; }
ul, ol { padding-left: 1.25rem; }
img { max-width: 100%; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 760px; }

/* ── Skip link ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: 1rem;
  background: var(--primary); color: var(--white);
  padding: .4rem 1rem; border-radius: var(--radius);
  font-weight: 600; z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  color: var(--white);
  padding: .75rem 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-logo {
  display: flex; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--white);
  font-weight: 700; font-size: 1.1rem;
  white-space: nowrap;
}
.logo-mark {
  background: var(--white); color: var(--primary);
  padding: .1rem .45rem; border-radius: 4px;
  font-size: .85rem; font-weight: 900;
}
.header-nav {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.header-nav a {
  color: rgba(255,255,255,.88);
  text-decoration: none; font-size: .875rem;
}
.header-nav a:hover { color: var(--white); text-decoration: underline; }
.header-search {
  margin-left: auto;
  display: flex; align-items: center; gap: .25rem;
}
.header-search input {
  padding: .35rem .7rem; border-radius: var(--radius) 0 0 var(--radius);
  border: none; font-size: .875rem; width: 180px;
}
.header-search button {
  background: rgba(255,255,255,.2); color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  padding: .35rem .7rem; cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.header-search button:hover { background: rgba(255,255,255,.35); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--white); }
.hero-sub { font-size: 1.1rem; opacity: .9; max-width: 600px; margin: 0 auto 2rem; }
.hero-search {
  display: flex; max-width: 560px; margin: 0 auto;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-search input {
  flex: 1; padding: .85rem 1.2rem; font-size: 1rem;
  border: none; outline: none;
}
.hero-search button {
  background: var(--primary-dark); color: var(--white);
  padding: .85rem 1.75rem; font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer;
}
.hero-search button:hover { background: #0f3d42; }

/* ── Hero location-first form ────────────────────────────────────────────── */
.hero-location-form {
  max-width: 820px;
  margin: 0 auto 1rem;
}
.hero-location-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: calc(var(--radius) + 2px);
  padding: .55rem .65rem;
}
.hero-zip-input {
  flex: 0 0 7rem;
  padding: .65rem .75rem;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  outline: none;
  background: white;
  color: var(--text);
}
.hero-zip-input::placeholder { color: var(--muted); }
.btn-loc-hero {
  padding: .6rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  background: rgba(255,255,255,.2);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.btn-loc-hero:hover { background: rgba(255,255,255,.32); }
.hero-select {
  padding: .6rem .55rem;
  font-size: .9rem;
  border: none;
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  cursor: pointer;
}
.btn-hero-find {
  padding: .65rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--primary-dark, #0f3d42);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
}
.btn-hero-find:hover { opacity: .88; }
.hero-secondary {
  text-align: center;
  margin: .6rem 0 0;
  font-size: .9rem;
  opacity: .85;
}
.hero-secondary a { color: var(--white); text-decoration: underline; }
.hero-secondary a:hover { opacity: .8; }
.hero-loc-error {
  margin: .4rem 0 0;
  padding: .35rem .65rem;
  background: rgba(255,255,255,.92);
  color: #b91c1c;
  border-radius: var(--radius);
  font-size: .875rem;
  text-align: left;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* ── Type cards (home page) ─────────────────────────────────────────────── */
.type-grid { padding: 2.5rem 0; }
.type-grid h2 { margin-bottom: 1.25rem; }
.type-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .15s, transform .15s;
  display: block;
}
.type-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.type-card-icon { font-size: 2rem; margin-bottom: .5rem; }
.type-card h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.type-card .count { color: var(--muted); font-size: .875rem; margin-bottom: .5rem; }
.type-card .cta-link { color: var(--primary); font-size: .875rem; font-weight: 600; }

/* ── Popular counties grid ──────────────────────────────────────────────── */
.popular-counties { padding: 0 0 2.5rem; }
.popular-counties h2 { margin-bottom: 1.25rem; }
.county-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}
.county-group strong { display: block; margin-bottom: .25rem; font-size: .9rem; }
.county-group ul { list-style: none; padding: 0; }
.county-group li a { font-size: .85rem; }

/* ── Paying for Care page ────────────────────────────────────────────────── */
.pfc-layout { max-width: 820px; padding-top: .5rem; padding-bottom: 3.5rem; }

.pfc-myth-buster {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff7ed;
  border: 2px solid #f97316;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0 2.25rem;
}
.pfc-myth-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.pfc-myth-heading { font-size: 1.15rem; margin: 0 0 .7rem; color: #9a3412; }
.pfc-myth-buster p { margin: 0 0 .6rem; font-size: .95rem; line-height: 1.6; }
.pfc-myth-buster p:last-child { margin-bottom: 0; }

.pfc-section { padding: 2rem 0 1rem; border-top: 1.5px solid var(--border); }
.pfc-section h2 { margin-bottom: 1rem; }
.pfc-dated { font-size: .8rem; font-weight: 400; color: var(--text-muted); }

.pfc-ways-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; margin-top: .5rem; }
.pfc-way-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.pfc-way-card h3 { font-size: 1rem; margin: 0 0 .55rem; }
.pfc-way-card p { font-size: .875rem; line-height: 1.6; margin: 0 0 .5rem; }
.pfc-way-card p:last-child { margin-bottom: 0; }

.pfc-program-block { margin-bottom: 1.5rem; }
.pfc-program-block h3 { font-size: 1rem; margin: 0 0 .5rem; }
.pfc-program-block p { font-size: .9rem; line-height: 1.65; margin: 0 0 .5rem; }

.pfc-caveat-list { display: flex; flex-direction: column; gap: .75rem; margin: .75rem 0; }
.pfc-caveat {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-size: .9rem;
  line-height: 1.55;
}
.pfc-caveat-icon { flex-shrink: 0; font-size: 1.1rem; }

.pfc-eligibility-list {
  padding-left: 1.4rem;
  margin: .75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.pfc-eligibility-list li { font-size: .9rem; line-height: 1.6; }

.pfc-disclaimer-block {
  background: #fef9c3;
  border: 1.5px solid #fde047;
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  font-size: .875rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.pfc-start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; margin-top: .5rem; }
.pfc-start-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.pfc-start-card h3 { font-size: 1rem; margin: 0 0 .5rem; }
.pfc-start-card p { font-size: .875rem; line-height: 1.6; margin: 0; }

.pfc-directory-tie { }
.badge-medicaid-inline {
  display: inline-block; font-size: .78rem; padding: 1px 6px;
  background: #d1fae5; color: #065f46; border-radius: 3px; font-weight: 600;
}
.pfc-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.pfc-cta-btn { padding: .65rem 1.25rem; font-size: .9rem; text-decoration: none; }

.pfc-required-disclaimer {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .85rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-top: 2.5rem;
}
.pfc-required-disclaimer strong { color: var(--text); }
.pfc-source-list { display: block; margin-top: .4rem; }
.pfc-source { font-size: .8rem; color: var(--text-muted); margin-top: .4rem; }
.pfc-source a { color: var(--accent); }

/* "Will Medicaid pay?" links */
.pfc-will-medicaid-link { margin: .6rem 0 0; font-size: .85rem; }
.pfc-will-medicaid-link a { color: var(--accent); }
.btn-will-medicaid {
  font-size: .8rem;
  padding: .3rem .7rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.btn-will-medicaid:hover { background: var(--accent); color: white; }

/* ── Care Finder callout (homepage) ─────────────────────────────────────── */
.cf-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  background: #eff8f8;
  border: 1.5px solid #b2dfe0;
  border-radius: var(--radius);
  padding: .9rem 1.25rem;
  margin: 1.5rem 0 2rem;
}
.cf-callout-text { display: flex; flex-direction: column; gap: .15rem; }
.cf-callout-text strong { color: var(--primary); font-size: .97rem; }
.cf-callout-text span { font-size: .88rem; color: var(--text-muted); }
.cf-callout-link {
  white-space: nowrap;
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: .45rem 1rem;
  text-decoration: none;
}
.cf-callout-link:hover { background: var(--accent); color: white; }

/* ── Care Finder page ────────────────────────────────────────────────────── */
.cf-layout { max-width: 740px; padding-top: .5rem; padding-bottom: 3rem; }

.cf-form { display: flex; flex-direction: column; gap: 1.5rem; }
.cf-step {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 1.25rem;
  background: var(--surface);
  margin: 0;
}
.cf-q-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: .9rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.cf-q-num { font-size: .75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.cf-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  cursor: pointer;
  margin-top: .5rem;
  transition: border-color .15s, background .15s;
  background: white;
}
.cf-option:hover { border-color: var(--accent); background: #f0fbfb; }
.cf-option--selected { border-color: var(--accent); background: #e8f7f7; }
.cf-option input[type=radio] { margin-top: .2rem; flex-shrink: 0; accent-color: var(--accent); }
.cf-option-body { display: flex; flex-direction: column; gap: .15rem; }
.cf-option-body strong { font-size: .95rem; }
.cf-option-hint { font-size: .82rem; color: var(--text-muted); }
.cf-actions { display: flex; justify-content: flex-end; }
.cf-submit { padding: .75rem 2rem; font-size: 1rem; }

/* Result screen */
.cf-result { display: flex; flex-direction: column; gap: 1.5rem; }
.cf-result-hero {
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}
.cf-result-label { font-size: .85rem; opacity: .8; margin: 0 0 .3rem; text-transform: uppercase; letter-spacing: .05em; }
.cf-result-type { font-size: 1.55rem; margin: 0 0 .75rem; color: white; }
.cf-result-reason { font-size: 1rem; opacity: .92; margin: 0; line-height: 1.6; }
.cf-memory-note {
  margin-top: 1rem;
  background: rgba(255,255,255,.15);
  border-radius: calc(var(--radius) - 2px);
  padding: .75rem 1rem;
  font-size: .88rem;
  line-height: 1.5;
}
.cf-medicaid-note { margin-top: .75rem; font-size: .88rem; opacity: .9; }

.cf-disclaimer {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius);
  padding: .9rem 1.25rem;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text);
}
.cf-disclaimer a { color: var(--accent); }

.cf-zip-block {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.cf-zip-label { font-weight: 700; display: block; margin-bottom: .6rem; }
.cf-zip-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cf-zip-input {
  padding: .6rem .75rem; font-size: 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  width: 7.5rem;
}
.cf-radius-select {
  padding: .6rem .5rem; font-size: .9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: white; cursor: pointer;
}
.cf-see-btn { padding: .65rem 1.5rem; font-size: .95rem; }
.cf-all-types { margin: .75rem 0 0; font-size: .88rem; }
.cf-all-types a { color: var(--accent); }
.cf-retake { font-size: .88rem; }
.cf-retake a { color: var(--text-muted); }

/* Home/money card */
.cf-home-money-card {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin-top: .5rem;
}
.cf-hm-heading { font-size: 1rem; margin: 0 0 .5rem; color: #92400e; }
.cf-hm-body { font-size: .93rem; margin: 0 0 .6rem; line-height: 1.6; color: #1a1a1a; }
.cf-hm-link { font-size: .93rem; font-weight: 600; color: #92400e; }
.cf-hm-link:hover { text-decoration: underline; }
.cf-hm-disclosure { font-size: .78rem; color: #92400e; opacity: .75; margin: .5rem 0 0; }

/* Explainer */
.cf-explainer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1.5px solid var(--border);
}
.cf-explainer h2 { margin-bottom: 1.25rem; }
.cf-explainer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.cf-explainer-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.cf-explainer-card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.cf-explainer-card p { font-size: .875rem; line-height: 1.6; margin: 0; color: var(--text-muted); }

/* ── FAQ preview ────────────────────────────────────────────────────────── */
.faq-preview { padding: 0 0 2.5rem; }
.faq-list { list-style: none; padding: 0; }
.faq-list li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.faq-list li:last-child { border-bottom: none; }

/* ── How it works ───────────────────────────────────────────────────────── */
.how-it-works { padding: 0 0 3rem; }

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb { padding: 1rem 0 .5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; font-size: .875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); }

/* ── Page header ────────────────────────────────────────────────────────── */
.page-header { padding: 1.5rem 0 1rem; }
.page-header h1 { margin-bottom: .5rem; }
.page-sub { color: var(--muted); font-size: .95rem; }

/* ── Disclaimer ─────────────────────────────────────────────────────────── */
.page-disclaimer {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--warn-text);
  margin-bottom: 1.5rem;
}

/* ── Facility header ────────────────────────────────────────────────────── */
.facility-header { padding: 1rem 0 .5rem; }
.facility-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: .2rem .6rem;
  border-radius: 12px; font-size: .78rem; font-weight: 600;
  line-height: 1.4;
}
.badge-type    { background: var(--primary-light); color: var(--primary-dark); }
.badge-green   { background: var(--green-bg); color: var(--green-text); }
.badge-red     { background: var(--red-bg); color: var(--red-text); }
.badge-warn    { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral-text); }
.badge-sm      { font-size: .7rem; padding: .15rem .4rem; }

/* ── Overview grid ──────────────────────────────────────────────────────── */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 600px) { .overview-grid { grid-template-columns: 1fr; } }
.map-placeholder { min-width: 140px; text-align: center; }
.map-link {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .875rem;
}

/* ── Detail list (dl) ───────────────────────────────────────────────────── */
.detail-list { display: table; width: 100%; border-collapse: collapse; }
.dl-row { display: table-row; }
.dl-row dt, .dl-row dd { display: table-cell; padding: .35rem .5rem .35rem 0; vertical-align: top; }
.dl-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.dl-row dt { font-weight: 600; color: var(--muted); font-size: .875rem; width: 180px; padding-right: 1rem; white-space: nowrap; }
.dl-row dd { font-size: .95rem; }
@media (max-width: 500px) {
  .detail-list, .dl-row, .dl-row dt, .dl-row dd { display: block; }
  .dl-row dt { padding-bottom: 0; color: var(--muted); font-size: .8rem; margin-top: .5rem; }
}

/* ── Source badge ───────────────────────────────────────────────────────── */
.src-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .7rem; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px;
  white-space: nowrap; vertical-align: middle;
  margin-left: .35rem;
}
.src-line { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }

/* ── Medicaid status blocks ─────────────────────────────────────────────── */
.medicaid-status { margin-bottom: 1.25rem; }
.status-block {
  padding: .75rem 1rem; border-radius: var(--radius);
  border-left: 4px solid; margin-bottom: 1rem;
}
.status-green  { background: var(--green-bg); border-color: #22c55e; }
.status-red    { background: var(--red-bg);   border-color: #ef4444; }
.status-neutral{ background: var(--neutral-bg); border-color: var(--muted); }
.status-block strong { display: block; margin-bottom: .25rem; }
.status-block p { margin: 0; font-size: .9rem; }

/* ── Rate note ──────────────────────────────────────────────────────────── */
.rate-note { font-size: .875rem; color: var(--muted); margin-bottom: .75rem; }
.rate-val { font-variant-numeric: tabular-nums; }

/* ── Data table ─────────────────────────────────────────────────────────── */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem; margin-bottom: 1rem;
}
.data-table th {
  background: var(--bg); border-bottom: 2px solid var(--border);
  text-align: left; padding: .5rem .75rem;
  font-size: .8rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
}
.data-table td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--primary-light); }
.val-old { color: var(--red-text); }
.val-new { color: var(--green-text); }

/* ── Ratings ────────────────────────────────────────────────────────────── */
.ratings-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem; margin: 1rem 0 1.5rem;
}
.rating-cell {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .75rem; text-align: center;
}
.rating-label { font-size: .75rem; color: var(--muted); margin-bottom: .35rem; font-weight: 600; text-transform: uppercase; }
.stars { display: inline-block; }
.star-on  { color: #f59e0b; }
.star-off { color: var(--border); }
.star-num { font-size: .8rem; color: var(--muted); margin-left: .25rem; }

/* ── CMS dashboard ──────────────────────────────────────────────────────── */
.cms-dashboard h3 { font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); padding-bottom: .4rem; }

/* ── Source links ───────────────────────────────────────────────────────── */
.source-links { list-style: none; padding: 0; }
.source-links li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.source-links li:last-child { border-bottom: none; }

/* ── Stats bar ──────────────────────────────────────────────────────────── */
.stats-bar {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.stat .stat-num { display: block; font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.stat .stat-label { font-size: .85rem; color: var(--muted); }

/* ── Type nav (county page) ─────────────────────────────────────────────── */
.type-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  font-size: .875rem; margin-bottom: 1.25rem; color: var(--muted);
}
.type-nav a { color: var(--primary); text-decoration: none; }
.type-nav a:hover { text-decoration: underline; }

/* ── Facility list (county + search) ───────────────────────────────────── */
.facility-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.facility-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: .15rem .75rem;
  align-items: center;
  padding: .875rem 1rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: box-shadow .12s, border-color .12s;
}
.facility-row:hover { box-shadow: var(--shadow-sm); border-color: var(--accent); }
.fr-name { font-weight: 600; font-size: .95rem; grid-column: 1; grid-row: 1; }
.fr-meta { font-size: .825rem; color: var(--muted); grid-column: 1; grid-row: 2; }
.fr-lic  { font-size: .78rem; color: var(--muted); grid-column: 2; grid-row: 1 / 3; text-align: right; }

/* ── Search form ────────────────────────────────────────────────────────── */
.search-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.search-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.search-field { display: flex; flex-direction: column; gap: .3rem; min-width: 160px; }
.search-field.search-q { flex: 2 1 240px; }
.search-field label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.search-field input, .search-field select {
  padding: .5rem .75rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .9rem;
}
.search-btn {
  background: var(--primary); color: var(--white);
  border: none; border-radius: var(--radius);
  padding: .5rem 1.5rem; font-size: .95rem; font-weight: 600;
  cursor: pointer; align-self: flex-end;
}
.search-btn:hover { background: var(--primary-dark); }
.results-summary { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }

/* ── Browse hint ────────────────────────────────────────────────────────── */
.browse-hint p { margin-bottom: 1rem; }
.county-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .35rem; list-style: none; padding: 0; font-size: .875rem; }
.county-list li { padding: .3rem 0; border-bottom: 1px solid var(--border); }

/* ── FAQ article ────────────────────────────────────────────────────────── */
.faq-article { padding: 1rem 0 2rem; }
.faq-intro { color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem; }
.faq-questions { margin-bottom: 2rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.faq-item p { margin: 0; }
.faq-related h2 { font-size: 1rem; margin-bottom: .75rem; }
.faq-related ul { list-style: none; padding: 0; }
.faq-related li { padding: .35rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  margin-top: 3rem;
  padding: 2rem 0;
  font-size: .875rem;
}
.footer-inner { display: flex; flex-direction: column; gap: .75rem; }
.footer-disclaimer { max-width: 720px; line-height: 1.6; }
.footer-disclaimer a { color: rgba(255,255,255,.9); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: rgba(255,255,255,.55); font-size: .8rem; }
.staging-note { color: #fbbf24; font-size: .8rem; margin: .4rem 0 0; font-weight: 600; }

/* ── Empty state ────────────────────────────────────────────────────────── */
.empty-state { padding: 2rem; text-align: center; color: var(--muted); }
.muted { color: var(--muted); font-size: .9rem; }

/* ── Footer nav (3-column) ──────────────────────────────────────────────── */
.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 160px;
}
.footer-nav-group strong {
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}
.footer-nav-group a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .875rem;
}
.footer-nav-group a:hover { color: #fff; text-decoration: underline; }

/* ── Page header (shared prose-page hero) ───────────────────────────────── */
.page-header { margin-bottom: 1.75rem; }
.page-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: .35rem;
  max-width: 680px;
}

/* ── Legal / disclaimer banner ──────────────────────────────────────────── */
.legal-banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left: 4px solid var(--warn-border);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  font-size: .9rem;
  color: var(--warn-text);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}
.legal-banner a { color: var(--warn-text); font-weight: 600; }

/* ── Prose sections (About, Data Sources) ───────────────────────────────── */
.prose-section { margin-bottom: 2rem; }
.prose-section h2 { border-bottom: 1px solid var(--border); padding-bottom: .4rem; }
.about-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.about-list li {
  padding: .75rem 1rem;
  background: var(--neutral-bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  font-size: .95rem;
}
.muted-text { color: var(--muted); font-size: .9rem; }

/* ── Data sources table ─────────────────────────────────────────────────── */
.ds-section { margin-bottom: 2.5rem; }
.ds-section h2 { border-bottom: 2px solid var(--primary-light); padding-bottom: .4rem; margin-bottom: .75rem; }
.ds-intro { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.ds-table-wrap { overflow-x: auto; }
.ds-table {
  width: 100%; border-collapse: collapse;
  font-size: .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ds-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  text-align: left;
  padding: .6rem .85rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ds-table td {
  padding: .75rem .85rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.ds-table tr:hover td { background: #f8fafc; }
.ds-note { color: var(--muted); font-size: .8rem; }
.ext-link { font-size: .85rem; }

.ds-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.ds-process-item {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.ds-process-icon { font-size: 1.5rem; flex-shrink: 0; }
.ds-process-item h3 { margin: 0 0 .3rem; font-size: .95rem; }
.ds-process-item p  { margin: 0; font-size: .875rem; color: var(--muted); }

/* ── Resources page ─────────────────────────────────────────────────────── */
.resource-partner-callout {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--primary-light);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.partner-icon { font-size: 2.2rem; flex-shrink: 0; }
.partner-body h2 { margin-top: 0; }
.partner-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: .55rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  margin-top: .25rem;
  transition: background .15s;
}
.partner-cta:hover { background: var(--primary-dark); color: var(--white); }
.partner-note { font-size: .8rem; color: var(--muted); margin-top: .5rem; margin-bottom: 0; }

.resource-section { margin-bottom: 2.5rem; }
.resource-section h2 { border-bottom: 1px solid var(--border); padding-bottom: .4rem; margin-bottom: .5rem; }
.resource-intro { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.resource-card--official { border-left: 3px solid var(--primary); }
.rc-name { font-size: .95rem; margin: 0 0 .3rem; }
.rc-type {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .75rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 999px;
  margin-bottom: .4rem;
  text-transform: capitalize;
}
.rc-desc { font-size: .85rem; color: var(--muted); margin: .4rem 0; }
.rc-phone { font-size: .875rem; margin: .3rem 0; }
.rc-link { font-size: .875rem; display: block; margin-top: .35rem; }
.rc-counties { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.rc-label { font-weight: 600; }

/* ── Official sources section on facility page ──────────────────────────── */
.sources-note { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; }
.source-links  { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.source-link-item { display: flex; flex-direction: column; gap: .2rem; }
.source-link-official a { font-weight: 600; }
.offic-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .1rem .45rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: .4rem;
  vertical-align: middle;
}
.source-hint { font-size: .8rem; color: var(--muted); }

/* ── Correction card on facility page ──────────────────────────────────── */
.correction-card { border-left: 4px solid var(--accent); }
.correction-link-btn {
  display: inline-block;
  margin-top: .5rem;
  background: var(--accent);
  color: var(--white);
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.correction-link-btn:hover { background: var(--primary-dark); color: var(--white); }

/* ── Correction form ────────────────────────────────────────────────────── */
.correction-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.correction-form legend {
  font-weight: 700;
  font-size: 1rem;
  padding: 0 .4rem;
  color: var(--primary-dark);
}
.cf-field { margin-bottom: 1.1rem; }
.cf-field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
}
.cf-field select,
.cf-field input[type="email"],
.cf-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .55rem .75rem;
  font-size: .95rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  transition: border-color .15s;
}
.cf-field select:focus,
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,154,166,.15);
}
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.cf-privacy-note {
  font-size: .85rem;
  background: var(--neutral-bg);
  border-radius: var(--radius);
  padding: .65rem .85rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--muted);
}
.req { color: #c00; margin-left: .15rem; }
.cf-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .75rem; }
.cf-submit-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: .6rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.cf-submit-btn:hover { background: var(--primary-dark); }
.cf-cancel-link { font-size: .9rem; color: var(--muted); }
.form-error-banner {
  background: var(--red-bg);
  color: var(--red-text);
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ── Thank-you page ─────────────────────────────────────────────────────── */
.thanks-wrap { max-width: 600px; text-align: center; margin: 2rem auto; }
.thanks-icon { font-size: 3rem; margin-bottom: 1rem; }
.thanks-wrap h1 { margin-bottom: .75rem; }
.thanks-detail {
  background: var(--neutral-bg);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  text-align: left;
}
.dl-simple { display: flex; flex-direction: column; gap: .5rem; }
.dl-simple > div { display: flex; gap: .5rem; flex-wrap: wrap; }
.dl-simple dt { font-weight: 700; min-width: 130px; }
.thanks-actions { margin-top: 1.5rem; text-align: center; }

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--muted); }

/* ── County index grid ───────────────────────────────────────────────────── */
.county-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.county-index-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.county-index-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.county-name { font-weight: 600; color: var(--primary); }
.county-count { font-size: .8rem; color: var(--muted); }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0;
}
.page-btn {
  display: inline-block;
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--primary);
  background: var(--surface);
  font-size: .875rem;
  transition: background .15s, border-color .15s;
}
.page-btn:hover { background: var(--bg); border-color: var(--accent); }
.page-btn-disabled { color: var(--muted); cursor: default; pointer-events: none; }
.page-info { font-size: .875rem; color: var(--muted); }

/* ── Medicaid filter bar ─────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.filter-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.filter-option { display: flex; align-items: center; gap: .35rem; font-size: .875rem; cursor: pointer; }
.filter-option input[type=checkbox] { cursor: pointer; }
.filter-clear {
  font-size: .8rem;
  color: var(--muted);
  text-decoration: underline;
  margin-left: auto;
}
.filter-active { font-size: .75rem; color: var(--primary); font-weight: 600; margin-left: .35rem; }
.btn-sm {
  padding: .3rem .7rem;
  font-size: .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

/* ── Directory header with count ─────────────────────────────────────────── */
.directory-header { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.directory-count { font-size: .85rem; color: var(--muted); font-weight: 400; }
.filter-note {
  font-size: .8rem; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: .5rem .75rem; margin-bottom: .75rem;
}
.empty-note { font-size: .875rem; color: var(--muted); margin-top: .5rem; }

/* ── Special Focus / Abuse banners ─────────────────────────────────────── */
.sff-banner, .abuse-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem;
  padding: .875rem 1.125rem; border-radius: var(--radius);
  margin-bottom: 1rem; font-size: .9rem; line-height: 1.5;
}
.sff-banner {
  background: #fff7ed; border: 1.5px solid #f97316; color: #7c2d12;
}
.abuse-banner {
  background: var(--warn-bg); border: 1.5px solid var(--warn-border); color: var(--warn-text);
}
.sff-banner a, .abuse-banner a { color: inherit; font-weight: 600; }

/* ── Facility row wrap (county listing) ─────────────────────────────────── */
.facility-row-wrap { display: flex; flex-direction: column; gap: 0; }
.facility-row-wrap .facility-row {
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  border-bottom: none;
}
/* .fr-footer removed — no longer used */

/* ── CMS star badge (compact, county listing) ───────────────────────────── */
.fr-signals {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  grid-column: 1 / 3; margin: .2rem 0 .1rem;
}
.cms-star-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .8rem; color: var(--muted);
}
.cms-star-badge .star-on { color: #f59e0b; font-size: .85rem; }
.cms-star-badge .star-off { color: #d1d5db; font-size: .85rem; }
.cms-star-label { font-weight: 600; color: var(--text); }
.cms-star-na { font-style: italic; }

/* ── Location search controls (county listing) ───────────────────────── */
.filter-bar {
  flex-direction: column;
  align-items: stretch;
  gap: .5rem;
}
.filter-row {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.filter-location-row {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding-top: .4rem;
  border-top: 1px solid var(--border);
}
.filter-zip-input {
  width: 6rem; padding: .28rem .5rem; font-size: .875rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white);
}
.btn-loc {
  white-space: nowrap;
}
.btn-primary-sm {
  background: var(--primary); color: #fff; border-color: var(--primary);
  font-weight: 600;
}
.btn-primary-sm:hover { opacity: .9; }
.zip-error {
  font-size: .8rem; color: #b91c1c; margin: .15rem 0 0;
  padding: .3rem .6rem; background: #fef2f2; border-radius: var(--radius);
}

/* ── County map bar + map ────────────────────────────────────────────── */
.county-map-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: .6rem;
}
.map-origin-label { font-size: .875rem; color: var(--muted); }
.btn-choice-list {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem 1rem; font-size: .875rem; font-weight: 600;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); text-decoration: none;
  white-space: nowrap;
}
.btn-choice-list:hover { opacity: .9; }
.county-map {
  height: 400px; width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 1.25rem;
  display: block;
}
.fr-dist {
  display: inline-block; font-size: .78rem; font-weight: 700;
  color: var(--primary); background: #eff6f6;
  border-radius: 3px; padding: .05rem .35rem;
  margin-right: .4rem;
}

/* ── Filter bar enhancements ────────────────────────────────────────────── */
.filter-select {
  display: inline-flex; align-items: center; gap: .35rem;
}
.filter-select select {
  font-size: .85rem; padding: .2rem .5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); color: var(--text); cursor: pointer;
}
.sort-active { color: var(--primary); }

/* ── Overview aside (map + reviews link) ───────────────────────────────── */
.overview-aside {
  display: flex; flex-direction: column; gap: .75rem; min-width: 140px;
}

/* ── Meta note (inline supplemental) ───────────────────────────────────── */
.meta-note { font-size: .82rem; color: var(--muted); margin-left: .25rem; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { gap: .75rem; }
  .header-nav { display: none; }
  .header-search input { width: 130px; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .stats-bar { gap: 1rem; }
  .data-table { font-size: .825rem; }
  .data-table th, .data-table td { padding: .4rem .5rem; }
  .ratings-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-row { grid-template-columns: 1fr; }
  .fr-lic { text-align: left; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  .hero-search { flex-direction: column; }
  .hero-search input, .hero-search button { border-radius: var(--radius); width: 100%; }
  .search-row { flex-direction: column; }
  .search-field { min-width: 100%; }
}

/* ── CMS Official Quality section ───────────────────────────────────────── */
.cms-official { border-left: 4px solid var(--primary, #2a7a6e); }
.cms-official h2 { color: var(--primary-dark, #1b5c52); }
.sev-chip {
  display: inline-block;
  padding: .1rem .4rem;
  margin: .1rem .2rem .1rem 0;
  border-radius: 3px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--neutral-bg, #f3f4f6);
  color: var(--neutral-text, #374151);
  border: 1px solid var(--border, #e5e7eb);
  font-family: monospace;
}
.cms-footnote { font-size: .8rem; color: var(--muted, #6b7280); margin-left: .25rem; }
.cms-disclaimer {
  margin-top: 1.25rem;
  font-size: .82rem;
  color: var(--muted, #6b7280);
  border-top: 1px solid var(--border, #e5e7eb);
  padding-top: .75rem;
}

/* ── Map page ────────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 1rem; }
.page-header h1 { margin: 0 0 .25rem; }
.page-subtitle { margin: 0; color: var(--text-muted); font-size: .92rem; }

.radius-item.active { border-color: var(--accent); background: #eff6f6; }

