/* Real Solutions Home Health Care — design system
   Brand blue kept from the existing site (#0f71b8); deepened into a navy ink
   for headings and the theme color, with a warm paper surface and a single
   gold accent echoing the ACHC seal. One accent, used sparingly. */

:root {
  --ink: #0b2e4f;
  --ink-2: #1f2a37;
  --text: #2b3645;
  --muted: #5b6676;
  --brand: #0f71b8;
  --brand-dark: #0a5790;
  --brand-tint: #e8f2fb;
  --brand-tint-2: #d4e7f6;
  --gold: #b8842e;
  --gold-tint: #fbf3e3;
  --paper: #fbf9f5;
  --surface: #ffffff;
  --line: #dfe5ec;
  --ok: #1f7a4d;
  --focus: #ffb703;

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-0: clamp(0.84rem, 0.8rem + 0.2vw, 0.92rem);
  --fs-1: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-2: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-3: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  --fs-4: clamp(2rem, 1.5rem + 2vw, 3.1rem);
  --fs-5: clamp(2.4rem, 1.6rem + 3.2vw, 4.2rem);

  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2rem;
  --space-5: 3rem; --space-6: 4.5rem; --space-7: 6.5rem;
  --radius: 14px; --radius-sm: 8px; --radius-pill: 999px;
  --shadow: 0 10px 30px -12px rgba(11, 46, 79, .22);
  --shadow-sm: 0 2px 10px -4px rgba(11, 46, 79, .18);
  --container: 1180px;
  --nav-h: 76px;
  --header-h: 120px; /* measured by JS: topbar + nav; used only for offsets, never for header layout */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-1); line-height: 1.65;
  color: var(--text); background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 var(--space-2); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-5); }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-2); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 var(--space-2); }
ul, ol { padding-left: 1.2rem; }
strong { color: var(--ink-2); }
.accent { font-style: italic; color: var(--brand); }
.cta-band .accent, .section-dark .accent { color: #ffd166; }
.eyebrow {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 var(--space-2); display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); }
.section-dark .eyebrow, .cta-band .eyebrow { color: #cfe4f7; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); z-index: 1000; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-4); }
.section-paper { background: var(--paper); }
.section-tint { background: var(--brand-tint); }
.section-dark { background: var(--ink); color: #dfe8f1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #cfe4f7; }
.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-head p.lede { font-size: var(--fs-2); color: var(--muted); }
.section-dark .section-head p.lede { color: #b9c9d9; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.mt { margin-top: var(--space-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.4rem; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none; border: 2px solid transparent; line-height: 1.1; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s;
  cursor: pointer; font-size: 1rem; min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.section-dark .btn-ghost, .cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.section-dark .btn-ghost:hover, .cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .6rem 1.05rem; font-size: .92rem; min-height: 40px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--space-3); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--ink); color: #cfe4f7; font-size: .82rem; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar strong { color: #ffd166; }
@media (max-width: 900px) { .topbar-right { display: none; } }
@media (max-width: 520px) { .topbar-sub { display: none; } .topbar-inner { justify-content: center; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 52px; }
@media (max-width: 480px) { .brand img { height: 42px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.brand-sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.brand-chip { background: #fff; border-radius: var(--radius-sm); padding: .5rem .8rem; display: inline-block; margin-bottom: .8rem; } .brand-chip img { height: 48px; }
.nav-list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .75rem; margin: 0; color: var(--ink-2); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; background: none; border: 0; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; border-radius: var(--radius-sm); min-height: 40px; }
.nav-link svg { margin-top: 1px; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
.has-menu { position: relative; }
.mega { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem 1.2rem; width: max-content; max-width: min(92vw, 760px); display: none; }
.has-menu:hover .mega, .has-menu:focus-within .mega, .nav-link[aria-expanded="true"] + .mega { display: block; }
.mega-hub { display: inline-block; font-weight: 700; color: var(--brand-dark); text-decoration: none; margin-bottom: .6rem; }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: .1rem 1.5rem; }
.mega-list a { display: block; padding: .4rem .5rem; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.mega-list a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-size: 1rem; line-height: 1.2; }
.header-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow: auto; z-index: 99; -webkit-overflow-scrolling: touch; }
.drawer[hidden] { display: none; }
.drawer-inner { display: grid; gap: .8rem; padding-block: 1.2rem 6rem; }
.drawer nav { display: grid; }
.drawer nav > a, .drawer summary { display: block; padding: .9rem .25rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.05rem; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: '+'; float: right; color: var(--brand); }
.drawer details[open] summary::after { content: '−'; }
.drawer details ul { list-style: none; margin: 0; padding: .3rem 0 .6rem .8rem; }
.drawer details li a { display: block; padding: .5rem .25rem; color: var(--ink-2); text-decoration: none; }
@media (max-width: 1080px) {
  .site-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .site-header .btn-sm { display: none; }
}

/* Hero */
.hero { position: relative; background: var(--paper); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(720px 420px at 92% 0%, var(--brand-tint-2), transparent 65%),
  radial-gradient(500px 360px at 0% 100%, var(--gold-tint), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: var(--space-3); max-width: 14ch; }
.hero .accent { color: var(--brand); }
.hero .lede { font-size: var(--fs-2); color: var(--muted); max-width: 580px; }
.hero .lede a { color: var(--ink); font-weight: 500; }
.trust-row { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; flex-wrap: wrap; gap: .9rem 1.8rem; }
.trust-row li { display: inline-flex; align-items: center; gap: .6rem; color: var(--brand); }
.trust-row span { display: flex; flex-direction: column; line-height: 1.2; font-size: .8rem; color: var(--muted); }
.trust-row strong { color: var(--ink); font-size: .9rem; }
.hero-visual { position: relative; }
.hero-photo { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background:
  linear-gradient(160deg, var(--ink) 0%, var(--brand-dark) 60%, var(--brand) 100%); box-shadow: var(--shadow); overflow: hidden; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 300px at 80% 20%, rgba(255,255,255,.18), transparent 60%); }
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; position: relative; }
.plan-card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.5rem; width: min(100%, 440px); margin: -3.5rem auto 0; border: 1px solid var(--line); }
.plan-steps li { grid-template-columns: 3.2rem 1fr; }
.hero-visual { min-height: 0; padding-bottom: 0; }
.plan-card h2 { font-size: var(--fs-3); margin-bottom: 1rem; }
.plan-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.plan-steps li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .6rem; align-items: start; font-size: .92rem; line-height: 1.45; }
.plan-steps .when { font-family: var(--font-display); color: var(--gold); font-weight: 600; font-size: .95rem; padding-top: .1rem; }
.plan-steps .what { color: var(--text); }
.plan-steps strong { color: var(--ink); display: block; }
.plan-stats { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.plan-stats span { background: var(--brand-tint); color: var(--ink); border-radius: var(--radius-pill); padding: .35rem .8rem; font-size: .82rem; }
.plan-stats strong { color: var(--brand-dark); font-size: .95rem; }
.plan-src { font-size: .72rem; color: #8a94a3; margin: .6rem 0 0; }
@media (max-width: 960px) { .plan-card { margin: -2rem 1rem 0; width: auto; } }
/* Seals and credentials */
.seals { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.seals img { width: 150px; height: auto; }
.seal-sm { width: 36px; height: auto; }
.trust-inner picture { display: inline-flex; }
.cred-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: grid; gap: .8rem; justify-items: start; }
.cred-panel .seals { justify-content: center; width: 100%; margin: 0 0 .5rem; }
.cred-caption { margin: 0; color: var(--muted); }
.affiliates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0 0; }
@media (max-width: 760px) { .affiliates { grid-template-columns: 1fr; } }
.affiliate { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.affiliate-logo { display: grid; place-items: center; min-height: 90px; padding: .4rem; }
.affiliate-logo img { max-height: 80px; width: auto; max-width: 100%; }
.affiliate h3 { font-size: 1rem; margin: 0; }
.affiliate p { font-size: .92rem; color: var(--muted); margin: 0; }
.team-photo { margin: 0 0 1.5rem; }
.team-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.team-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.footer-seals { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.footer-seals img { height: 64px; width: auto; background: #fff; border-radius: 50%; }
.footer-seals a { font-size: .8rem; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-pill); padding: .3rem .7rem; }
.page-hero { background: var(--brand-tint); padding-block: var(--space-5) var(--space-5); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.page-hero-media { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-media { max-height: 300px; aspect-ratio: 16 / 9; } }
.hub-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; margin-bottom: var(--space-5); }
.hub-intro p { margin: 0; }
@media (max-width: 760px) { .hub-intro { grid-template-columns: 1fr; } }
.page-hero h1 { font-size: var(--fs-4); max-width: 900px; }
.page-hero .lede { font-size: var(--fs-2); color: var(--muted); max-width: 760px; margin: 0; }
.page-hero .btn-row { margin-top: var(--space-3); }

/* Breadcrumb */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 var(--space-3); font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: .4rem; color: #a3adb9; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-dark); text-decoration: underline; }

/* Stat band */
.stat-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: var(--space-4); }
.stat { padding: .5rem 1rem; border-left: 3px solid var(--gold); }
.stat .num { font-family: var(--font-display); font-size: var(--fs-4); color: var(--ink); font-weight: 600; line-height: 1; }
.stat .num sup { font-size: .5em; vertical-align: top; margin-left: .05em; }
.stat .lbl { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.stat .src { font-size: .72rem; color: #8a94a3; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Trust strip */
.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.4rem; padding-block: 1rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.trust-inner span { display: inline-flex; align-items: center; gap: .5rem; }
.trust-inner svg { color: var(--gold); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.figure { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--brand-tint-2); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure .placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; color: var(--brand-dark); font-weight: 600; background: repeating-linear-gradient(135deg, var(--brand-tint) 0 14px, var(--brand-tint-2) 14px 28px); }
.diffs { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: 1rem; }
.diffs li { padding-left: 2rem; position: relative; }
.diffs li::before { content: ''; position: absolute; left: 0; top: .45rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--gold-tint); border: 2px solid var(--gold); }
.diffs strong { display: block; color: var(--ink); }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; position: relative; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-tint-2); }
.card .num { font-family: var(--font-display); color: var(--gold); font-size: 1rem; font-weight: 600; letter-spacing: .08em; }
.card h3 { margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; display: inline-block; min-height: 24px; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card ul { margin: .2rem 0 0; padding-left: 1.1rem; color: var(--text); font-size: .92rem; }
.card .more { margin-top: auto; font-weight: 600; color: var(--brand-dark); font-size: .92rem; }
.card.flag::before { content: attr(data-flag); position: absolute; top: -.7rem; right: 1rem; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: var(--radius-pill); }
.card-paper { background: var(--paper); }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #fff; padding-block: .9rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: .7rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee a { white-space: nowrap; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .5rem 1rem; font-size: .9rem; font-weight: 500; background: var(--paper); }
.marquee a:hover { border-color: var(--brand); color: var(--brand-dark); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } .marquee { mask-image: none; } }

/* Selector (interactive) */
.selector { display: grid; grid-template-columns: 340px 1fr; gap: var(--space-4); align-items: start; }
@media (max-width: 860px) { .selector { grid-template-columns: 1fr; } }
.selector-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.selector-list button { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 44px; }
.selector-list button:hover { border-color: var(--brand); }
.selector-list button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.selector-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); min-height: 320px; box-shadow: var(--shadow-sm); }
.selector-panel[hidden] { display: none; }
.selector-panel h3 { font-family: var(--font-display); font-size: var(--fs-3); font-weight: 600; }
.pill-links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .8rem 0 1rem; }
.pill-links a { display: inline-block; padding: .45rem .9rem; border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand-dark); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pill-links a:hover { background: var(--brand); color: #fff; }

/* Timeline */
.timeline { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .timeline { grid-template-columns: 1fr; } }
.timeline li { counter-increment: step; padding-top: 1rem; border-top: 2px solid rgba(255,255,255,.2); position: relative; }
.timeline li::before { content: counter(step, upper-roman); font-family: var(--font-display); color: #ffd166; font-size: 1.4rem; display: block; margin-bottom: .4rem; }
.timeline h3 { color: #fff; font-size: 1.05rem; margin-bottom: .3rem; }
.timeline p { font-size: .92rem; color: #b9c9d9; margin: 0; }

/* Checker (eligibility quiz) */
.checker { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow-sm); }
.checker fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.checker legend { font-weight: 700; color: var(--ink); margin-bottom: .5rem; font-size: 1.02rem; }
.checker .opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.checker .opts label { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .5rem 1rem; cursor: pointer; font-weight: 500; display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; }
.checker .opts label:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.checker .opts input { accent-color: var(--brand); }
.checker-result { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--brand-tint); border-left: 4px solid var(--brand); }
.checker-result[hidden] { display: none; }
.checker-result.warn { background: var(--gold-tint); border-left-color: var(--gold); }
.checker small, .disclaimer { display: block; color: var(--muted); font-size: .82rem; margin-top: .8rem; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.quote .stars { color: var(--gold); letter-spacing: .1em; font-size: .95rem; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-2); line-height: 1.5; }
.quote figcaption { font-size: .9rem; color: var(--muted); margin-top: auto; }
.quote figcaption strong { color: var(--ink); display: block; }

/* Local block */
.local { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-5); align-items: center; }
@media (max-width: 860px) { .local { grid-template-columns: 1fr; } }
.nap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
.nap address { font-style: normal; }
.nap dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 1rem 0; }
.nap dt { font-weight: 700; color: var(--ink); }
.nap dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.area-map { background: var(--brand-tint); border-radius: var(--radius); padding: .6rem; }
.area-map .service-map { display: none; }
.area-map.has-map .service-map { display: block; }
.area-map.has-map .map-fallback { display: none; }
.service-map { width: 100%; aspect-ratio: 4 / 5; min-height: 440px; border-radius: 10px; overflow: hidden; background: #0b2e4f; isolation: isolate; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-container a { color: var(--brand-dark); }
.city-label { background: rgba(255,255,255,.94); border: 0; border-radius: 999px; padding: .2rem .6rem; font-weight: 700; font-size: .78rem; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.city-label::before { display: none; }
.office-label { background: var(--gold); color: #fff; }
.office-pin { background: none; border: 0; }
.office-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 16px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.map-note { font-size: .75rem; color: var(--muted); margin: .5rem .3rem 0; display: none; }
.area-map.has-map .map-note { display: block; }
.map-fallback svg { width: 100%; height: auto; }
.map-fallback a { fill: var(--ink); font-size: 11px; font-weight: 600; text-decoration: none; }
.map-fallback a:hover text { fill: var(--brand); text-decoration: underline; }

/* Accordion */
.accordion { display: grid; gap: .6rem; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.acc-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--ink); min-height: 44px; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary svg { flex: none; color: var(--brand); transition: transform .2s; }
.acc-item[open] summary svg { transform: rotate(45deg); }
.acc-body { padding: 0 1.2rem 1.1rem; color: var(--text); }
.acc-body p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brand-dark), var(--ink)); color: #e6eef6; padding-block: var(--space-6); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 640px; margin-inline: auto; color: #d5e3f0; }
.cta-band .btn-row { justify-content: center; }

/* Prose / inner pages */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-6); align-items: start; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-3); margin-top: var(--space-5); scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-3); }
.prose ul li, .prose ol li { margin-bottom: .4rem; }
.prose .lede { font-size: var(--fs-2); color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); color: var(--gold); font-size: 1.3rem; line-height: 1.3; }
.steps strong { display: block; color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.box.good { border-left: 4px solid var(--ok); }
.box.caution { border-left: 4px solid var(--gold); }
.box h3 { margin-top: 0; }
.box ul { margin: 0; padding-left: 1.1rem; }
.linklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.5rem; }
@media (max-width: 620px) { .linklist { grid-template-columns: 1fr; } }
.linklist a { display: flex; gap: .5rem; align-items: center; text-decoration: none; color: var(--ink-2); padding: .5rem .2rem; border-bottom: 1px dashed var(--line); font-weight: 500; }
.linklist a::before { content: '→'; color: var(--brand); }
.linklist a:hover { color: var(--brand-dark); }
.aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.2rem; }
.aside-card { background: var(--ink); color: #dfe8f1; border-radius: var(--radius); padding: 1.5rem; }
.aside-card h3 { color: #fff; margin-top: 0; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: .6rem; }
.aside-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.aside-card .btn-ghost:hover { background: #fff; color: var(--ink); }
.aside-card p { font-size: .92rem; }
.aside-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; font-size: .92rem; }
.aside-nav h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 0; }
.aside-nav ol { margin: 0; padding-left: 1.1rem; }
.aside-nav a { text-decoration: none; color: var(--ink-2); }
.aside-nav a:hover { color: var(--brand-dark); text-decoration: underline; }
.red-flags { background: #fff3f0; border: 1px solid #f3c7bf; border-left: 4px solid #c43d2b; border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.red-flags h3 { color: #8f2a1c; margin-top: 0; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0; }
@media (max-width: 700px) { .kv { grid-template-columns: 1fr 1fr; } }
.kv div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.kv .v { font-family: var(--font-display); font-size: var(--fs-3); color: var(--ink); line-height: 1; }
.kv .k { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); background: var(--paper); }

/* Forms */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: .8rem .9rem; border: 1px solid #b9c3cf; border-radius: var(--radius-sm); background: #fff; min-height: 44px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
.field .err { color: #b3261e; font-size: .85rem; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { background: #e8f5ee; border-left: 4px solid var(--ok); padding: 1rem 1.2rem; border-radius: var(--radius-sm); }
.form-success[hidden] { display: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d6e2; font-size: .93rem; margin-bottom: 0; }
.site-footer a { color: #dfe8f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 2rem; padding-block: var(--space-6) var(--space-4); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-h { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #ffd166; margin: 0 0 .8rem; }
.footer-h-gap { margin-top: 1.6rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.footer-col li a, .footer-bottom li a { display: inline-block; padding: .25rem 0; min-height: 24px; }
.footer-brand p { color: #b4c3d3; }
.social { list-style: none; display: flex; gap: .6rem; padding: 0; margin: 1rem 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.badges li { font-size: .78rem; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-pill); padding: .3rem .7rem; }
.footer-visit address { font-style: normal; color: #dfe8f1; }
.footer-visit strong { color: #fff; }
.license { font-size: .8rem; color: #8ea3b8; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; font-size: .82rem; color: #8ea3b8; }
.footer-bottom { background: #071f37; padding-block: 1rem 5.5rem; font-size: .82rem; }
@media (min-width: 1081px) { .footer-bottom { padding-bottom: 1rem; } }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; padding: 0; margin: 0; }

/* Mobile bar / to top */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line); padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); gap: .6rem; }
.mobile-bar a { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 46px; border-radius: var(--radius-pill); font-weight: 700; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); }
.mobile-bar .mobile-bar-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 1080px) { .mobile-bar { display: flex; } }
.to-top { position: fixed; right: 1rem; bottom: 5.5rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); z-index: 80; }
@media (min-width: 1081px) { .to-top { bottom: 1.5rem; } }
.to-top[hidden] { display: none; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Overflow guards for grid children */
.contact-grid > *, .article > *, .split > *, .local > *, .grid > *, .selector > * { min-width: 0; }
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Utilities */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hub-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .hub-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub-list { grid-template-columns: 1fr; } }
.notfound { text-align: center; padding-block: var(--space-7); }
.notfound h1 { font-size: var(--fs-5); }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.toc a { display: inline-block; padding: .45rem .9rem; border-radius: var(--radius-pill); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 600; background: #fff; }
.toc a:hover { border-color: var(--brand); color: var(--brand-dark); }
.faq-group { margin-bottom: var(--space-5); scroll-margin-top: calc(var(--header-h) + 1rem); }
