/* ============================================================
 Access Medi-Cal LA - design system
 Inspired by cmspriorauth.com (clean blue, stat blocks, flat,
 authoritative) + hims.com motion (smooth ease-out reveals) +
 211-LA patterns (quick chips, community faces, metric trust).
 Accessible · mobile-first · dark-mode & reduced-motion aware.
 ============================================================ */

:root {
 /* Brand - confident healthcare blue on white */
 --navy: #0b2447;
 --navy-700: #11315f;
 --primary: #0a5dc2;
 --primary-600: #0b66d6;
 --primary-700: #084a99;
 --primary-050: #e9f1fc;
 --primary-bright: #2b86e0;
 --accent: #b9722e; /* warm - for "please confirm" + small highlights */
 --accent-050: #fbf0e4;
 --accent-700: #8f561f;
 --danger: #c0395f;
 --danger-050: #fdeaf0;
 --ok: #1f8a52;

 /* Neutrals */
 --ink: #0b1f3a;
 --ink-2: #3a4d66;
 --muted: #687888;
 --line: #e3e9f1;
 --line-2: #eff3f8;
 --bg: #f7f9fc;
 --bg-tint: #eef3f9;
 --surface: #ffffff;

 --shadow-sm: 0 1px 2px rgba(11, 36, 71, .06);
 --shadow: 0 2px 8px rgba(11, 36, 71, .07), 0 12px 30px rgba(11, 36, 71, .07);
 --shadow-lg: 0 16px 48px rgba(11, 36, 71, .16);

 --radius: 12px;
 --radius-sm: 8px;
 --radius-lg: 18px;
 --tap: 48px;
 --maxw: 1140px;
 --font-scale: 1;
 --ease: cubic-bezier(.16, 1, .3, 1);

 --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
 :root {
 --navy: #06101f; --navy-700: #0a1c33;
 --primary: #5aa2ec; --primary-600: #6cb0f2; --primary-700: #3f8ce0; --primary-050: #102135; --primary-bright: #7bb8f5;
 --accent: #e0954f; --accent-050: #36240f; --accent-700: #e0954f;
 --danger: #ef6f92; --danger-050: #381421; --ok: #4cc585;
 --ink: #e9f1f8; --ink-2: #c0cfdd; --muted: #8fa1b3;
 --line: #1f3349; --line-2: #16273a;
 --bg: #091322; --bg-tint: #0e1d2f; --surface: #102236;
 --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 2px 8px rgba(0,0,0,.4),0 12px 30px rgba(0,0,0,.5); --shadow-lg: 0 16px 48px rgba(0,0,0,.6);
 }
}

* { box-sizing: border-box; }
html { font-size: calc(100% * var(--font-scale)); scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 .8rem; }
a { color: var(--primary-700); }
@media (prefers-color-scheme: dark) { a { color: var(--primary); } }
:focus-visible { outline: 3px solid var(--primary-bright); outline-offset: 2px; border-radius: 6px; }

.visually-hidden, .skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 8px; z-index: 200; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }

/* ---------- Animations ---------- */
@keyframes flowIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes popSel { 0% { transform: scale(1); } 45% { transform: scale(1.035); } 100% { transform: scale(1); } }
.flow { animation: flowIn .5s var(--ease) both; }
.pop { animation: popSel .3s var(--ease); }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
[data-reveal].reveal-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
 [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Safety strip ---------- */
.safety-strip { background: var(--danger); color: #fff; text-align: center; padding: .5rem 1rem; font-size: .95rem; display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.safety-strip a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.safety-strip .divider { opacity: .55; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark){ .site-header { background: rgba(16,34,54,.9); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 11px; flex: none; background: linear-gradient(135deg, var(--primary), var(--navy)); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-weight: 800; font-size: 1.16rem; color: var(--ink); }
.brand-tagline { font-size: .82rem; color: var(--muted); }

.header-tools { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.tool-btn, .ts-btn { min-height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; padding: .35rem .6rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.tool-btn svg, .lang-btn svg { width: 17px; height: 17px; }
.ts-group { display: inline-flex; align-items: center; gap: .25rem; }
.ts-label { font-size: .78rem; color: var(--muted); }
.ts-btn { min-width: 38px; justify-content: center; }
.ts-btn[data-size="large"] { font-size: 1.05rem; } .ts-btn[data-size="xlarge"] { font-size: 1.2rem; }
.ts-btn[aria-pressed="true"], .tool-btn[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.tool-btn:hover, .ts-btn:hover { border-color: var(--primary-bright); }

.lang-wrap { position: relative; }
.lang-btn { font-weight: 700; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .5rem; width: 290px; display: none; grid-template-columns: 1fr 1fr; gap: .25rem; }
.lang-menu.open { display: grid; animation: flowIn .25s var(--ease) both; }
.lang-menu .lang-opt { text-align: left; border: 0; background: transparent; color: var(--ink); padding: .55rem .6rem; border-radius: 9px; cursor: pointer; font-family: inherit; font-size: .92rem; min-height: 40px; }
.lang-menu .lang-opt:hover { background: var(--bg-tint); }
.lang-menu .lang-opt[aria-pressed="true"] { background: var(--primary); color: #fff; }
.lang-menu .lang-note { grid-column: 1 / -1; font-size: .72rem; color: var(--muted); padding: .35rem .5rem 0; border-top: 1px solid var(--line); margin-top: .25rem; }

.site-nav { border-top: 1px solid var(--line-2); }
.nav-inner { display: flex; gap: .25rem; overflow-x: auto; padding: .35rem 0; scrollbar-width: thin; }
.nav-link { white-space: nowrap; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .92rem; padding: .5rem .8rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; transition: background .2s var(--ease), color .2s var(--ease); }
.nav-link svg { width: 16px; height: 16px; opacity: .85; }
.nav-link:hover { background: var(--primary-050); color: var(--primary-700); }
@media (prefers-color-scheme: dark){ .nav-link:hover { color: var(--primary); } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; min-height: clamp(460px, 74vh, 680px); display: flex; align-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--primary-700) 100%); }
.hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .55; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(7,16,31,.9) 0%, rgba(8,40,90,.62) 48%, rgba(8,74,153,.34) 100%); }
.hero-inner { position: relative; padding: 3.4rem 0 2.8rem; max-width: 760px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: .7rem; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.18rem; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.hero-cta .btn-hero { display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: var(--navy); font-weight: 800; padding: .8rem 1.3rem; border-radius: 10px; text-decoration: none; min-height: var(--tap); border: 2px solid #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.hero-cta .btn-hero.ghost { background: transparent; color: #fff; }
.hero-cta .btn-hero:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hero-cta .btn-hero.ghost:hover { background: rgba(255,255,255,.12); }
.hero-cta svg { width: 19px; height: 19px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.hero-chip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 10px; padding: .5rem .8rem; font-weight: 700; font-size: .9rem; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; min-height: 42px; font-family: inherit; transition: background .2s var(--ease), transform .2s var(--ease); }
.hero-chip:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.hero-chip svg { width: 16px; height: 16px; }

/* ---------- Stats band (cmspriorauth-style metrics) ---------- */
.stats-band { position: relative; overflow: hidden; background: var(--navy); }
.stats-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.08), rgba(255,255,255,0) 45%), radial-gradient(120% 140% at 85% 10%, rgba(56,132,200,.35), transparent 60%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.5rem 0; }
.stat { text-align: center; }
.stat-num { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.72); margin-top: .15rem; }

/* ---------- Sections ---------- */
.section { padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section.tinted { background: var(--bg-tint); }
.section-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .3rem; }
.step-num { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; flex: none; }
.section h2 { font-size: clamp(1.4rem, 3.2vw, 1.75rem); }
.section-sub { color: var(--ink-2); margin: .25rem 0 1.2rem; max-width: 66ch; }
.muted { color: var(--muted); }

/* ---------- Plan picker ---------- */
.county-group { margin-bottom: 1.4rem; }
.county-title { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 800; color: var(--primary-700); text-transform: uppercase; letter-spacing: .04em; margin: .2rem 0 .7rem; }
@media (prefers-color-scheme: dark) { .county-title { color: var(--primary); } }
.county-title svg { width: 18px; height: 18px; }
.plan-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.plan-card { position: relative; text-align: left; cursor: pointer; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: .9rem 1rem .9rem 1.1rem; min-height: var(--tap); color: var(--ink); font-family: inherit; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); display: flex; flex-direction: column; gap: .25rem; border-left: 6px solid var(--plan-color, var(--primary)); }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-card[aria-checked="true"] { border-color: var(--primary); box-shadow: var(--shadow); background: var(--primary-050); }
.plan-card .pc-name { font-weight: 800; font-size: 1.04rem; padding-right: 1.4rem; }
.plan-card .pc-rel { font-size: .82rem; color: var(--muted); }
.plan-card .pc-fhir { display: inline-flex; align-items: center; gap: .3rem; align-self: flex-start; margin-top: .15rem; padding: .15rem .5rem; border-radius: 999px; background: #f0f7f2; color: #2f7d52; font-size: .72rem; font-weight: 800; border: 1px solid #d6e8dc; }
.plan-card .pc-fhir svg { width: 13px; height: 13px; }
.plan-card .pc-check { position: absolute; top: .7rem; right: .8rem; color: var(--primary); font-weight: 800; font-size: .8rem; opacity: 0; transform: scale(.6); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.plan-card[aria-checked="true"] .pc-check { opacity: 1; transform: scale(1); }
@media (prefers-color-scheme: dark){ .plan-card[aria-checked="true"] .pc-check { color: var(--primary); } }

.dont-know { margin-top: 1rem; }
.dont-know summary { cursor: pointer; font-weight: 700; color: var(--primary-700); padding: .5rem 0; min-height: var(--tap); display: flex; align-items: center; gap: .4rem; }
@media (prefers-color-scheme: dark) { .dont-know summary { color: var(--primary); } }
.dont-know-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.dont-know-body ul { margin: .4rem 0 0; padding-left: 1.2rem; } .dont-know-body li { margin: .35rem 0; }

/* ---------- Search + needs ---------- */
.search-row { margin-bottom: 1rem; position: relative; max-width: 560px; }
.search-box { width: 100%; min-height: var(--tap); border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem 1.1rem .7rem 2.7rem; font-size: 1.05rem; font-family: inherit; background: var(--surface); color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.search-row > svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-box:focus-visible { border-color: var(--primary); outline-offset: 0; box-shadow: 0 0 0 4px var(--primary-050); }

.needs-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.need-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; text-align: center; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.1rem .6rem; min-height: 120px; cursor: pointer; color: var(--ink); font-family: inherit; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); }
.need-tile:hover { border-color: var(--primary-bright); transform: translateY(-3px); box-shadow: var(--shadow); }
.need-tile[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-050); }
.need-tile .nt-ic { width: 30px; height: 30px; color: var(--primary); transition: transform .25s var(--ease); }
.need-tile:hover .nt-ic { transform: scale(1.08); }
.need-tile .nt-label { font-weight: 700; font-size: .96rem; } .need-tile .nt-count { font-size: .76rem; color: var(--muted); }

/* ---------- Plan context bar (dynamic links) ---------- */
.plan-context { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: var(--primary-050); border: 1px solid var(--line); border-left: 5px solid var(--plan-color, var(--primary)); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; }
.plan-context .pcx-title { font-weight: 800; margin-right: .3rem; }
.plan-context .pcx-title small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }

/* ---------- Live / web-mining panel ---------- */
.live-panel { border: 1px solid var(--primary); background: linear-gradient(180deg, var(--primary-050), var(--surface)); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; animation: flowIn .4s var(--ease) both; }
.live-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-weight: 800; color: var(--primary-700); }
@media (prefers-color-scheme: dark){ .live-head { color: var(--primary); } }
.live-badge { display: inline-flex; align-items: center; gap: .35rem; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; padding: .15rem .55rem; border-radius: 999px; }
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #7CFFB2; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(124,255,178,.7)} 70%{box-shadow:0 0 0 7px rgba(124,255,178,0)} 100%{box-shadow:0 0 0 0 rgba(124,255,178,0)} }
.live-body { margin-top: .55rem; font-size: .96rem; color: var(--ink-2); }
.live-phones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.live-meta { font-size: .76rem; color: var(--muted); margin-top: .5rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.live-skel { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--line-2), var(--line), var(--line-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin: .4rem 0; }
.live-skel.w70 { width: 70%; } .live-skel.w40 { width: 40%; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ---------- Resource cards ---------- */
.results-context { color: var(--ink-2); font-weight: 700; margin: .2rem 0 1rem; }
.results-list { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.res-card { display: flex; flex-direction: column; gap: .5rem; border: 1px solid var(--line); border-left: 5px solid var(--primary); background: var(--surface); border-radius: var(--radius); padding: 1.05rem 1.1rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.res-card .rc-cat { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 800; color: var(--primary-700); text-transform: uppercase; letter-spacing: .03em; }
.res-card .rc-cat svg { width: 16px; height: 16px; }
@media (prefers-color-scheme: dark){ .res-card .rc-cat { color: var(--primary); } }
.res-card h3 { font-size: 1.1rem; }
.res-card .rc-desc { margin: 0; color: var(--ink-2); font-size: .97rem; }
.res-card .rc-lang { font-size: .82rem; color: var(--muted); display: flex; gap: .35rem; align-items: flex-start; }
.res-card .rc-lang svg { width: 15px; height: 15px; flex: none; margin-top: .15rem; }
.rc-note { font-size: .82rem; color: var(--ink-2); background: var(--bg-tint); border-radius: 8px; padding: .5rem .65rem; display: flex; gap: .45rem; align-items: flex-start; }
.rc-note svg { width: 15px; height: 15px; flex: none; margin-top: .1rem; color: var(--primary); }
.res-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); padding: .55rem 1rem; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: inherit; border: 2px solid transparent; transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-call { background: var(--primary); color: #fff; } .btn-call:hover { background: var(--primary-700); }
.btn-link { background: transparent; color: var(--primary-700); border-color: var(--line); } .btn-link:hover { border-color: var(--primary-bright); }
@media (prefers-color-scheme: dark){ .btn-link { color: var(--primary); } }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); font-size: .9rem; min-height: 40px; padding: .4rem .8rem; }
.btn-ghost:hover { border-color: var(--primary-bright); color: var(--ink); }
.verify-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 800; padding: .14rem .55rem; border-radius: 999px; background: var(--primary-050); color: var(--primary-700); width: fit-content; }
.verify-badge.unverified { background: var(--accent-050); color: var(--accent-700); }
@media (prefers-color-scheme: dark){ .verify-badge { color: var(--primary); } .verify-badge.unverified { color: var(--accent); } }
.empty-note { grid-column: 1 / -1; background: var(--bg-tint); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.2rem; color: var(--ink-2); }

/* ---------- Near me / Maps ---------- */
.map-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .9rem; }
.zip-input { min-height: var(--tap); border: 1.5px solid var(--line); border-radius: 10px; padding: .55rem .9rem; font-size: 1.05rem; font-family: inherit; width: 170px; background: var(--surface); color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: .5rem .9rem; min-height: 44px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .92rem; transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.chip svg { width: 17px; height: 17px; color: var(--primary); }
.chip:hover { border-color: var(--primary-bright); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip[aria-pressed="true"] svg { color: #fff; }
.map-frame-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--bg-tint); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
/* Green frame signals the map is showing verified in-network (FHIR/plan directory) data. */
.map-frame-wrap.in-network { border-color: #4a9d6e; box-shadow: 0 0 0 2px rgba(74,157,110,.28), var(--shadow-sm); }
.map-frame { width: 100%; height: 440px; border: 0; display: block; }
.map-source { display: inline-flex; align-items: center; gap: .4rem; margin: .6rem 0 0; padding: .3rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.map-source svg { width: 15px; height: 15px; }
.map-source.in-network { background: #f1f8f4; border-color: #d6e8dc; color: #2f7d52; }
/* Professional FHIR mark (flame), shown when the map is using FHIR/directory data. */
.map-source .fhir-badge { display: inline-flex; align-items: center; gap: .25rem; font-weight: 800; letter-spacing: .02em; color: #b5121b; background: #fff; border: 1px solid #e6cdca; border-radius: 6px; padding: .05rem .4rem; margin-right: .15rem; }
.map-source .fhir-badge svg { width: 14px; height: 14px; fill: #e8590c; stroke: #e8590c; }
.filter-q { display: block; width: 100%; margin: .1rem 0 .45rem; font-weight: 700; }
.chip.chip-spec[aria-pressed="true"] { background: #2f9e63; border-color: #2f9e63; color: #fff; }
.chip.chip-spec[aria-pressed="true"] svg { color: #fff; }
.chip .chip-count { font-size: .72rem; font-weight: 800; opacity: .65; margin-left: .15rem; }
.chip[aria-pressed="true"] .chip-count { opacity: .95; }
.map-open { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; font-weight: 700; }
.map-open svg { width: 17px; height: 17px; }

/* ---------- Full-bleed image bands ---------- */
.image-band { position: relative; color: #fff; background-color: var(--navy); background-image: var(--band-img); background-size: cover; background-position: center; background-attachment: fixed; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.image-band-overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(7,16,31,.9) 0%, rgba(8,40,90,.7) 55%, rgba(8,74,153,.5) 100%); }
.image-band-inner { position: relative; padding: clamp(3.2rem, 10vh, 6rem) 1.1rem; max-width: 760px; }
.image-band .eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 1rem; }
.image-band h2 { color: #fff; font-size: clamp(1.7rem, 4.2vw, 2.7rem); margin-bottom: .7rem; }
.image-band p { color: rgba(255,255,255,.93); font-size: 1.14rem; max-width: 56ch; }
.image-band .btn-hero { margin-top: 1.2rem; }
.image-band .hero-cta { margin-top: 1.3rem; }
.band-tall .image-band-inner { padding: clamp(4.5rem, 14vh, 8.5rem) 1.1rem; max-width: 820px; }
.band-headline { font-size: clamp(2rem, 5.5vw, 3.4rem) !important; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }

/* ---------- Barriers (scannable, low text density) ---------- */
.barriers-list { display: grid; gap: .7rem; }
.barrier { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: box-shadow .25s var(--ease); }
.barrier[open] { box-shadow: var(--shadow); }
.barrier > summary { cursor: pointer; list-style: none; padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: flex-start; min-height: var(--tap); }
.barrier > summary::-webkit-details-marker { display: none; }
.barrier > summary .b-ic { width: 24px; height: 24px; color: var(--primary); flex: none; margin-top: .15rem; }
.barrier > summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--primary); font-weight: 700; flex: none; line-height: 1; transition: transform .25s var(--ease); }
.barrier[open] > summary::after { content: "\2013"; }
.barrier .b-name { font-weight: 800; font-size: 1.08rem; display: block; }
.barrier .b-tag { font-size: .82rem; color: var(--muted); display: block; margin-top: .2rem; }
.barrier-body { padding: 0 1.1rem 1.1rem 3.25rem; animation: flowIn .35s var(--ease) both; }
.b-voice { display: flex; gap: .55rem; align-items: flex-start; background: var(--primary-050); border-radius: 10px; padding: .7rem .9rem; color: var(--ink); font-style: italic; margin-bottom: .9rem; }
.b-voice svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: .15rem; }
.b-howto { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--primary-700); margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
@media (prefers-color-scheme: dark){ .b-howto { color: var(--primary); } }
.b-howto svg { width: 15px; height: 15px; }
.b-solutions { display: grid; gap: .55rem; }
.b-sol { border: 1px solid var(--line); border-left: 4px solid var(--primary); background: var(--surface); border-radius: 10px; padding: .75rem .9rem; }
.b-sol .bs-title { font-weight: 700; }
.b-sol .bs-desc { font-size: .9rem; color: var(--ink-2); margin: .15rem 0 .45rem; }
.b-why { margin-top: .9rem; }
.b-why summary { cursor: pointer; font-weight: 700; color: var(--ink-2); font-size: .9rem; min-height: 40px; display: flex; align-items: center; gap: .35rem; }
.b-why .b-why-text { color: var(--ink-2); font-size: .92rem; margin-top: .4rem; }
.b-why .b-affected { color: var(--muted); font-size: .82rem; margin-top: .5rem; }

/* ---------- Info / language card ---------- */
.info-card { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.2rem; max-width: 75ch; box-shadow: var(--shadow-sm); }

/* ---------- About ---------- */
.about-body { max-width: 72ch; }
.disclaimer { background: var(--accent-050); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; color: var(--ink); }
.sources-details summary { cursor: pointer; font-weight: 700; padding: .5rem 0; min-height: var(--tap); display: flex; align-items: center; }
.sources-body { font-size: .84rem; color: var(--muted); } .sources-body a { word-break: break-all; } .sources-body ul { padding-left: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 2.4rem 1rem 5.5rem; background: var(--navy); }
.site-footer p { margin: .4rem auto; max-width: 62ch; color: rgba(255,255,255,.82); }
.site-footer a { color: #fff; } .site-footer .muted { color: rgba(255,255,255,.55); }

/* ---------- FAB ---------- */
.fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; display: inline-flex; align-items: center; gap: .5rem; background: var(--danger); color: #fff; text-decoration: none; padding: .8rem 1.1rem; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); }
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 20px; height: 20px; }

/* ---------- Google Translate cleanup ---------- */
#google_translate_element { display: none; }
.goog-te-banner-frame, .skiptranslate iframe.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; }
font[style] { background: transparent !important; box-shadow: none !important; }

/* ---------- Near me: address, radius, results list ---------- */
.addr-input { width: min(380px, 100%); }
.radius-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1rem; }
.spec-row { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: 0 0 1rem; padding: .75rem .9rem; background: #f6faf7; border: 1px solid #d6e8dc; border-radius: var(--radius); }
.spec-row .radius-label { width: 100%; color: #2f7d52; font-weight: 700; }
.spec-input { max-width: 16rem; }
.radius-label { font-weight: 700; color: var(--ink-2); font-size: .92rem; }
.chip-sm { min-height: 40px; padding: .4rem .8rem; }
.county-hint { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: var(--primary-050); border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 1rem; font-weight: 600; }
.county-hint svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.near-list { display: grid; gap: .7rem; margin-top: 1rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.near-item { border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); background: var(--surface); padding: .8rem .9rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.near-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.near-item .ni-name { font-weight: 700; }
.near-item .ni-dist { font-size: .82rem; color: var(--primary-700); font-weight: 800; margin-top: .1rem; }
@media (prefers-color-scheme: dark){ .near-item .ni-dist { color: var(--primary); } }
.near-item .ni-addr { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.near-item .ni-spec { font-size: .82rem; color: var(--ink-2); font-style: italic; margin-top: .1rem; }
.near-item .ni-net { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 800; color: #15803d; margin-top: .2rem; }
.near-item .ni-net svg { width: 14px; height: 14px; }
.near-item .ni-out { font-size: .76rem; font-weight: 600; color: #8a6d00; margin-top: .2rem; }
.near-count { font-size: .82rem; margin: 0 0 .2rem; }
.near-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.near-actions .btn { min-height: 40px; padding: .4rem .75rem; font-size: .9rem; }
.leaflet-container { font: inherit; border-radius: var(--radius); }
.leaflet-popup-content { font: inherit; }
.leaflet-popup-content a { font-weight: 700; }
.iso-controls { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; margin: 0 0 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.iso-controls .radius-label { width: 100%; }
.iso-controls .dist-head { font-weight: 800; }
.dist-sub { width: 100%; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin: .25rem 0 -.2rem; }
.iso-note { width: 100%; font-size: .82rem; margin: .25rem 0 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: .9rem; margin: .7rem 0 .2rem; font-size: .82rem; color: var(--ink-2); }
.lg-item { display: inline-flex; align-items: center; gap: .4rem; }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.lg-you { background: #c0395f; } .lg-place { background: #0b66d6; }
.lg-near { background: #f59e0b; color: #1a1206; width: 18px; height: 18px; font-size: .68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.lg-net { background: #2f9e63; color: #fff; width: 18px; height: 18px; font-size: .66rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.lg-swatch { width: 16px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-ring { background: rgba(10,93,194,.12); border: 1px solid var(--primary); }
.lg-iso { background: rgba(34,197,94,.18); border: 1px solid #15803d; }
/* numbered marker for the closest results (Leaflet divIcon) */
.near-pin { display: flex; align-items: center; justify-content: center; background: #f59e0b; color: #1a1206; font-weight: 800; font-size: .82rem; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.near-pin.net { background: #2f9e63; color: #fff; }
.btn-hero svg.bh-heart { width: 16px; height: 16px; }
.lg-area { background: rgba(34,197,94,.22); border: 1px solid #15803d; }
.net-note { margin: .8rem 0 .2rem; padding: .85rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); background: var(--surface); }
.net-note .nn-head { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--ink); }
.net-note .nn-head svg { width: 18px; height: 18px; color: var(--primary); }
.net-note .nn-body { margin: .35rem 0 .6rem; font-size: .9rem; color: var(--ink-2); }
.net-note .nn-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.net-note.net-ok { border-left-color: #4a9d6e; background: var(--surface); }
.net-note.net-ok .nn-head svg { color: #2f8f57; }
.net-note .nn-fresh { display: inline-flex; align-items: center; gap: .35rem; margin: .15rem 0 .6rem; font-size: .8rem; color: var(--muted); }
.net-note .nn-fresh svg { width: 14px; height: 14px; }
.net-note .nn-pcp { display: flex; gap: .45rem; align-items: flex-start; font-size: .82rem; color: var(--ink-2); background: var(--bg-tint); border-radius: 8px; padding: .5rem .65rem; margin: .15rem 0 .6rem; }
.net-note .nn-pcp svg { width: 15px; height: 15px; flex: none; margin-top: .1rem; color: var(--primary); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; }
.share-status { font-size: .85rem; color: var(--primary-700); font-weight: 600; }
@media (prefers-color-scheme: dark){ .share-status { color: var(--primary); } }

/* ---------- Live panel: number labeling ---------- */
.live-sub { font-size: .8rem; font-weight: 700; color: var(--ink-2); margin: .55rem 0 .3rem; }

/* ---------- Plan card: county badge ---------- */
.plan-card .pc-area { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--plan-color, var(--primary)); }

/* ---------- Image band: glass card ---------- */
.image-band .glass-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); padding: 1.1rem 1.2rem; max-width: 72ch; color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); margin-top: 1rem; }
.image-band .glass-card p { color: rgba(255,255,255,.95); }
.image-band .glass-card .muted { color: rgba(255,255,255,.8); }
.image-band .glass-card em { color: #fff; }

/* ---------- Section polish: accent rule + subtle texture ---------- */
.section h2::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 3px; margin-top: .55rem; background: linear-gradient(90deg, var(--primary), var(--primary-bright)); }
.section.tinted { position: relative; overflow: hidden; }
.section.tinted > .wrap { position: relative; z-index: 1; }
.section.tinted::before { content: ""; position: absolute; inset: 0; background: url("https://images.unsplash.com/photo-1758613171176-ea64579c2dcf?auto=format&fit=crop&w=2000&q=55") center/cover fixed; opacity: .05; pointer-events: none; }
@media (max-width: 900px) { .section.tinted::before { background-attachment: scroll; } }

/* ---------- Engagement toolkit ---------- */
#toolkitBody { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.tk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.care-card { border-left: 6px solid var(--plan-color, var(--primary)); grid-column: 1 / -1; }
.tk-head { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.08rem; margin-bottom: .7rem; }
.tk-head svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.care-nums { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.care-num { display: flex; flex-direction: column; gap: .15rem; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; text-decoration: none; color: var(--ink); background: var(--bg-tint); transition: border-color .2s var(--ease); }
.care-num:hover { border-color: var(--primary-bright); }
.cn-label { font-size: .8rem; color: var(--muted); font-weight: 700; }
.cn-phone { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; color: var(--primary-700); }
.cn-phone svg { width: 15px; height: 15px; }
@media (prefers-color-scheme: dark){ .cn-phone { color: var(--primary); } }
.tk-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.renew-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.renew-label { font-weight: 700; }
.renew-out { margin-top: .6rem; }
.renew-count { font-weight: 700; color: var(--primary-700); }
@media (prefers-color-scheme: dark){ .renew-count { color: var(--primary); } }
.progress { height: 10px; background: var(--bg-tint); border-radius: 999px; overflow: hidden; margin: 0 0 .8rem; border: 1px solid var(--line); }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-bright)); transition: width .5s var(--ease); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist input { width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--primary); flex: none; }
.checklist label { font-size: .96rem; }
.saved-list { display: grid; gap: .55rem; }
.saved-item { border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 10px; padding: .6rem .75rem; background: var(--bg-tint); }
.si-title { font-weight: 700; margin-bottom: .35rem; }
.fav-btn.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.fav-btn.on svg { fill: #fff; }

/* ---------- Card press + click ripple ---------- */
.plan-card, .need-tile, .chip, .res-card, .care-num, .near-item, .triage-item > summary, .btn, .btn-hero, .hero-chip { position: relative; overflow: hidden; }
.plan-card:active, .need-tile:active, .chip:active, .res-card:active, .care-num:active, .near-item:active, .btn:active, .btn-hero:active, .hero-chip:active { transform: translateY(0) scale(.985); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .18; pointer-events: none; animation: rippleAnim .6s var(--ease); z-index: 0; }
@keyframes rippleAnim { to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ripple { display: none !important; } }

/* default size for any generated icon not otherwise sized (prevents giant SVGs) */
.ic { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; }
.live-meta .ic { width: 15px; height: 15px; }

/* ---------- Start here / triage / appt prep / feedback ---------- */
#startHereBody h3 { margin: 0 0 .4rem; }
#startHereBody[dir="rtl"] { text-align: right; }
.lang-intro { max-width: 62ch; margin-bottom: .9rem; }
.image-band .glass-card h3 { color: #fff; }
.image-band #startChips { margin-bottom: .9rem; }
.triage-list { display: grid; gap: .6rem; }
.triage-item { border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.triage-item.lvl-emergency, .triage-item.lvl-mh { border-left-color: var(--danger); }
.triage-item.lvl-er { border-left-color: var(--accent); }
.triage-item > summary { cursor: pointer; list-style: none; padding: .9rem 1.1rem; min-height: var(--tap); display: flex; align-items: center; font-weight: 800; }
.triage-item > summary::-webkit-details-marker { display: none; }
.triage-item > summary::after { content: "+"; margin-left: auto; color: var(--primary); font-size: 1.3rem; font-weight: 700; }
.triage-item[open] > summary::after { content: "\2013"; }
.triage-item.lvl-emergency > summary, .triage-item.lvl-mh > summary { color: var(--danger); }
.triage-body { padding: 0 1.1rem 1rem; }
.tg-ex { color: var(--muted); font-size: .92rem; margin: 0 0 .4rem; }
.tg-go { font-weight: 600; margin: 0 0 .6rem; }
.prep-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }
.prep-list { margin: 0; padding-left: 1.1rem; } .prep-list li { margin: .35rem 0; }
.prep-script { background: var(--primary-050); border-radius: 10px; padding: .7rem .9rem; font-style: italic; }
.feedback-box { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0; }
.fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
/* Renewal spotlight - near the top. Uses the site's blue scheme (theme variables, so it
   stays readable in light AND dark mode) with a blue tint + accent bar to stand out. */
.renew-spotlight { background: var(--primary-050); border-top: 3px solid var(--primary); border-bottom: 1px solid var(--line); }
.renew-spotlight .renew-eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: var(--primary); color: #fff; padding: .3rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .6rem; }
.renew-spotlight .section-head { display: block; }
.renew-spotlight h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--ink); }
.renew-spotlight .section-sub { color: var(--ink-2); }
.renew-steps { counter-reset: step; list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .6rem; }
.renew-steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem .8rem 3.1rem; }
.renew-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: .7rem; top: .75rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; }
.renew-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }

/* ---------- Print ---------- */
@media print {
 .site-header, .safety-strip, .site-nav, .fab, .header-tools, .search-row, .map-frame-wrap, .chip-row, .map-controls, .hero-cta, .hero-chips, .skip-link, .live-panel { display: none !important; }
 body { font-size: 12pt; background: #fff; }
 .hero, .stats-band, .image-band { color: #000; background: none !important; } .hero-overlay, .hero-bg, .image-band-overlay { display: none; }
 .hero h1, .hero p, .hero .eyebrow, .stat-num, .stat-label, .image-band h2, .image-band p, .image-band .eyebrow { color: #000; }
 .res-card, .barrier { break-inside: avoid; box-shadow: none; border: 1px solid #999; }
 a[href^="tel:"]::after { content: " (" attr(href) ")"; }
 .section.tinted { background: none; }
}

/* ---------- Responsive ---------- */
/* Media that's pinned on desktop is too heavy for phones (jank + data). */
@media (max-width: 900px) { .image-band, .section.tinted::before { background-attachment: scroll; } }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Belt-and-suspenders: nothing should ever be wider than the screen. Large media and any
   stray wide element are capped so phones never get a sideways scrollbar. */
img, iframe, video, canvas, .leaflet-container { max-width: 100%; }

/* ---------- Phones (<= 640px) ---------- */
@media (max-width: 640px) {
 /* Card grids with large fixed minimums (300px, 280px, 270px...) force horizontal
    scrolling on a ~320-400px screen. Stack them to one column instead. */
 .results-list, .near-list, #toolkitBody, .prep-grid, .care-nums, .plan-grid { grid-template-columns: 1fr; }
 .needs-grid { grid-template-columns: repeat(2, 1fr); gap: .55rem; }

 .wrap { padding: 0 1rem; }
 .section { padding: 1.8rem 0; }
 .section-sub { margin-bottom: 1rem; }

 /* Header: tidy two-row layout (brand on top, tools below) without overflow. */
 .header-inner { gap: .4rem .6rem; padding: .55rem 0; }
 .header-tools { width: 100%; justify-content: flex-start; gap: .4rem; }
 .brand-mark { width: 38px; height: 38px; }
 .brand-title { font-size: 1.06rem; }
 .tool-btn span, .ts-label { font-size: .82rem; }

 /* Hero scales down so the fold isn't all image. */
 .hero { min-height: clamp(380px, 64vh, 520px); }
 .hero-inner { padding: 2.4rem 0 2rem; }
 .hero p { font-size: 1.04rem; }
 .hero-cta { gap: .5rem; }
 .hero-cta .btn-hero { width: 100%; justify-content: center; }

 /* Map + near-me controls go full width and finger-friendly. */
 .map-frame { height: 340px; }
 .map-controls { gap: .5rem; }
 .map-controls .btn, .map-controls .chip { flex: 1 1 auto; justify-content: center; }
 .zip-input, .addr-input, .spec-input, .search-row { width: 100%; max-width: none; }

 /* Stat numbers a touch smaller so 2-up never wraps awkwardly. */
 .stat-num { font-size: clamp(1.4rem, 7vw, 1.9rem); }
}

/* ---------- Small phones (<= 560px) ---------- */
@media (max-width: 560px) {
 .brand-tagline { display: none; } .ts-label { display: none; }
 .fab .fab-text { display: none; } .fab { padding: .9rem; }
 .barrier-body { padding-left: 1.1rem; }
 .lang-menu { width: min(280px, calc(100vw - 1.5rem)); }
 .image-band-inner { padding-top: 2.8rem; padding-bottom: 2.8rem; }
}

/* ---------- Extra-small phones (<= 380px) ---------- */
@media (max-width: 380px) {
 .needs-grid { grid-template-columns: 1fr; }
 .ts-group { gap: .15rem; } .ts-btn { min-width: 34px; }
 .stats-grid { gap: .6rem; }
}
