/* medicareresourcecenter.com — one stylesheet, no build step.
   Audience skews 65+: large type, high contrast, generous targets. */
:root {
  /* Neutral slate ramp. Surfaces and actions are graphite; the logo red stays an accent so it
     reads as deliberate rather than as the temperature of the page. White on graphite is 16.9:1,
     where white on the old red button was 5.3:1 — a real gain for a 65+ audience. */
  --n-0: #ffffff; --n-25: #fbfbfc; --n-50: #f6f7f9; --n-100: #eef0f3; --n-200: #e2e5ea;
  --n-300: #cbd0d8; --n-400: #9aa1ad; --n-600: #5b616d; --n-700: #414753;
  --n-800: #2a2f38; --n-900: #1a1d23;

  --ink: var(--n-900); --ink-2: var(--n-700); --muted: var(--n-600);
  --bg: var(--n-0); --bg-2: var(--n-50); --line: var(--n-200);

  /* Brand red: the logo's colour. Accent only — rules, marks, map pins, emphasis. Never a field
     behind white text. #ef4137 is 3.8:1 so it is decorative; --brand-2 clears AA for text. */
  --brand: #ef4137; --brand-2: #c2342c; --link: #b3281f; --accent: #ef4137; --tint: #fdf1f0;
  --ok: #2b7a4b; --warn: #a03b2a;

  /* Primary actions and dark surfaces are graphite, not red. */
  --action: var(--n-900); --action-hover: var(--n-800);
  /* Gradients resolve into white: a tint at one edge washing out across the surface. Dark fills are
     reserved for controls, where contrast has to carry text. */
  --grad-brand-wash: linear-gradient(104deg, #fbe3e1 0%, #fdf1f0 34%, #fffafa 68%, #ffffff 100%);
  --grad-ink-wash: linear-gradient(180deg, #e8ebef 0%, #f6f7f9 46%, #ffffff 100%);
  --grad-action: linear-gradient(180deg, #343943 0%, #1a1d23 100%);
  --grad-action-hover: linear-gradient(180deg, #3d434e 0%, #24272f 100%);
  --grad-badge: linear-gradient(145deg, #c2342c 0%, #8e2822 100%);
  --rule-brand: linear-gradient(90deg, #ef4137 0%, #e8766f 22%, #f3cfcb 48%, #ffffff 100%);
  --grad-page: linear-gradient(180deg, var(--n-50) 0%, var(--n-0) 70%);
  --shadow-sm: 0 1px 2px rgba(16,19,24,.05), 0 1px 3px rgba(16,19,24,.04);
  --shadow-md: 0 2px 4px rgba(16,19,24,.05), 0 8px 20px -6px rgba(16,19,24,.10);

  --radius: 14px; --wrap: 1120px;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
::selection { background: var(--tint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }  /* keep the hidden attribute authoritative over .btn's display */
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5rem; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.lede { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.fine { font-size: .8rem; color: var(--muted); margin-top: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 2.5rem 16px; }
.section-sm { padding-top: 1.5rem; }
.wrap.section { padding-left: 16px; padding-right: 16px; }

/* header / footer */
.site-header { border-bottom: 0; background: var(--bg); box-shadow: var(--shadow-sm); position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rule-brand); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.brand-block { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .5rem 0; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-disclaimer { margin: .2rem 0 0; font-size: 16px; /* 12pt */ line-height: 1.2; color: var(--ink-2); }
.brand img { height: 48px; width: auto; }
@media (max-width: 519px) { .brand img { height: 56px; } }
.site-nav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 600; color: var(--ink-2); padding: .5rem 0; }
.site-nav a:hover { color: var(--brand-2); }
.site-footer { margin-top: 3rem; background: var(--grad-ink-wash); border-top: 1px solid var(--n-200); padding: 2.75rem 0 1.75rem; font-size: .95rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: .25rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .4rem; }
.disclaimers { border-top: 1px solid var(--n-200); margin-top: 1.5rem; padding-top: 1.25rem; font-size: .85rem; color: var(--muted); }
.copyright { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; }

/* hero / search */
.hero { background: var(--grad-brand-wash); padding: 3.5rem 0 2.5rem; }
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero h1 { max-width: 16ch; }
.search { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0 .5rem; }
.search input { flex: 1 1 260px; font: inherit; font-size: 1.1rem; padding: .85rem 1rem; border: 1.5px solid var(--n-300); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.search input:hover { border-color: var(--n-400); }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,29,35,.12); }
.search.inline { margin: 1rem 0 2rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; text-decoration: none; padding: .8rem 1.25rem; border-radius: var(--radius); border: 1.5px solid var(--n-300); color: var(--ink); background: #fff; cursor: pointer; min-height: 48px; box-shadow: var(--shadow-sm); transition: background .15s ease, border-color .15s ease, transform .06s ease; }
.btn:hover { background: var(--n-50); border-color: var(--n-400); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-action); background-color: var(--action); border-color: var(--n-900); color: #fff; }
.btn-primary:hover { background: var(--grad-action-hover); background-color: var(--action-hover); border-color: var(--n-800); color: #fff; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }

/* layout */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 1rem; }
.lead .grid-2, form .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.two-col { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.chips { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; }
.chips.big li { font-size: 1rem; padding: .4rem 1rem; }
.chips.big a { text-decoration: none; font-weight: 600; }
.state-list { columns: 2; list-style: none; padding: 0; margin: 0; }
.state-list li { break-inside: avoid; padding: .3rem 0; }
.state-list a { font-weight: 600; text-decoration: none; }
.plain { list-style: none; padding: 0; }
.plain li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.checklist { padding-left: 1.4rem; }
.checklist li { margin: .4rem 0; }
.steps li { margin: .6rem 0; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.guide-list a { font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.prose { max-width: 72ch; }

/* breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 .4rem; }
.crumbs a { text-decoration: none; }

/* location page */
.address { font-size: 1.05rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 480px; }
.hours th, .hours td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; width: 45%; }
.hours tr.today th, .hours tr.today td { background: var(--tint); font-weight: 700; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; margin: 1rem 0; }
.photos img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.events { list-style: none; padding: 0; }
.events li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.stars { color: var(--accent); letter-spacing: 1px; }
.review-sources { list-style: none; padding: 0; }
.review-sources li { padding: .4rem 0; }
.reviews { list-style: none; padding: 0; display: grid; gap: .75rem; }
.google-review-text { white-space: pre-line; }
.link-button { background: none; border: 0; padding: 0; color: var(--link, #c9302a); text-decoration: underline; cursor: pointer; font: inherit; }
.tpmo { margin-top: 1rem; padding: 1rem; border-left: 4px solid var(--ink); background: var(--bg-2); font-size: .85rem; color: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0; }

/* agent */
.agent-head { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.headshot, .logo { border-radius: var(--radius); object-fit: cover; }
.avatar { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 1.4rem; flex: none; }
.avatar.large { width: 160px; height: 160px; font-size: 3rem; border-radius: var(--radius); }
.agent-card-head { display: flex; gap: .9rem; align-items: center; }
.agent-card-head img { border-radius: 50%; object-fit: cover; width: 88px; height: 88px; flex: none; }
.agent-card .avatar { width: 88px; height: 88px; }
.agent-card h3 { font-size: 1.3rem; }
.agent-bio { margin: .9rem 0 .5rem; }
.agent-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 1rem 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }
.badge { display: inline-block; margin-left: .5rem; padding: .05rem .5rem; border-radius: 999px; background: #e6f4ea; color: var(--ok); font-size: .8rem; font-weight: 600; }

/* forms */
.lead label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
.lead input, .lead textarea { width: 100%; font: inherit; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.lead input:focus, .lead textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.lead .btn { margin-top: 1rem; width: 100%; }
.req { color: var(--warn); }
.hp { position: absolute; left: -9999px; }
.form-errors { background: #fdeeea; border: 1px solid #f1c3b9; color: var(--warn); border-radius: 10px; padding: .75rem 1rem; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr; }
  .state-list { columns: 3; }
}
@media (min-width: 960px) {
  .two-col { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); align-items: start; }
  .two-col > aside { position: sticky; top: 1rem; }
}

/* roster: one card per row so short bios read as prose */
.roster { display: grid; gap: 1rem; }
.agent-card { max-width: 640px; }

/* office map */
.map { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.btn-small { padding: .55rem .9rem; min-height: 40px; font-size: .95rem; }
.agent-book { margin: .25rem 0 .75rem; }

/* open / closed status */
.status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; }
.status.open { color: var(--ok); }
.status.closed { color: var(--warn); }
.status.unknown { color: var(--muted); }
.status-line { margin: 0 0 .5rem; }
.status-line.big .status { font-size: 1.1rem; }
.distance { color: var(--ink); }
.pin-num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .5rem; border-radius: 50%; background: var(--grad-badge); background-color: var(--brand-2); color: #fff; font: 700 .85rem var(--sans); vertical-align: middle; }
.btn-ghost { border-color: var(--line); color: var(--ink-2); background: var(--bg-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
h2.h3 { font-size: 1.35rem; margin-top: 1.75rem; }

/* results list + map */
.results-layout { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.results-list { display: grid; gap: 1rem; }
.results-list h2 { margin-top: 1rem; }
.results-list .grid-3 { grid-template-columns: 1fr; }
.results-map { display: none; }
#mrc-map { width: 100%; height: 60vh; min-height: 320px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.map-note { margin: .4rem 0 0; }
.view-toggle { display: flex; gap: .5rem; }
.view-toggle .btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.results-layout[data-show="map"] .results-list { display: none; }
.results-layout[data-show="map"] .results-map { display: block; }
@media (min-width: 960px) {
  .results-layout { grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); align-items: start; }
  .results-map { display: block !important; position: sticky; top: 1rem; }
  .results-layout[data-show="map"] .results-list { display: grid; }
  .view-toggle { display: none; }
  #mrc-map { height: calc(100vh - 6rem); max-height: 760px; }
  .results-list .grid-3 { grid-template-columns: 1fr; } /* cards carry thumbnails now; one per row beside the map */
}
/* numbered pins */
.mrc-pin { background: none; border: 0; }
.mrc-pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-2); color: #fff; font: 700 15px/1 var(--sans); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); position: relative; }
.mrc-pin span::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-top: 8px solid var(--brand-2); border-bottom: 0; }
.leaflet-popup-content { font: 400 .95rem/1.4 var(--sans); color: var(--ink); }
.leaflet-popup-content a { color: var(--link); }

/* sticky phone action bar (office pages) */
.sticky-bar { display: none; }
@media (max-width: 959px) {
  .sticky-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); backdrop-filter: blur(6px); }
  .sticky-bar .btn { min-height: 52px; font-size: 1.05rem; }
  /* leave room so the footer isn't hidden behind the bar */
  body:has(.sticky-bar) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* filters */
.filters { margin: 1rem 0 1.5rem; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-weight: 600; margin-bottom: .4rem; }
.chip-check { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; font-weight: 600; }
.chip-check input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--brand-2); }
.chip-check.on { border-color: var(--ink); background: var(--bg-2); }
.chip-check:focus-within { outline: 3px solid var(--ink); outline-offset: 1px; }
.filter-status { margin: .5rem 0 0; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.filter-chips { padding: 0; }
.chips.filter-chips li, .filter-chips .chip-check { font-size: .95rem; }

/* intake form */
.intake fieldset.card { margin: 1.25rem 0; }
.intake legend { font-family: var(--serif); font-size: 1.5rem; padding: 0 .5rem; margin-left: -.5rem; background: #fff; }
.intake fieldset.card { padding-top: .75rem; }
.intake .label { font-weight: 600; margin: 1rem 0 .35rem; }
.intake select { width: 100%; font: inherit; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.intake input[type="file"] { padding: .5rem 0; border: 0; }
.intake input[type="checkbox"] { width: 1.15rem; height: 1.15rem; }
.hours-grid { border-collapse: collapse; width: 100%; max-width: 560px; margin: .25rem 0 .75rem; }
.hours-grid th, .hours-grid td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid var(--line); }
.hours-grid input[type="time"] { width: 100%; padding: .45rem .5rem; }
.hours-grid input[type="checkbox"] { width: 1.3rem; height: 1.3rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; margin: 1rem 0; }
.consent input { margin-top: .3rem; flex: none; }
.intake .btn-primary { width: auto; min-width: 240px; }

/* independently-owned notice */
.independence { margin: .5rem 0 1.25rem; padding: .9rem 1rem; border: 1px solid var(--line); border-left: 4px solid var(--brand-2); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-2); font-size: .95rem; }
.independence p { margin: 0; }
.existing { border: 0; padding: 0; margin: .75rem 0 0; }
.existing legend { font-weight: 600; margin-bottom: .25rem; }
.existing .radio { display: flex; gap: .5rem; align-items: center; font-weight: 500; margin: .3rem 0; }
.existing .radio input { width: 1.15rem; height: 1.15rem; margin: 0; }
.existing-note { margin: .5rem 0 0; padding: .6rem .8rem; background: var(--tint); border-radius: 10px; color: var(--ink-2); }

/* split hero with photo collage */
.hero-split { padding: 2.5rem 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.hero-copy h1 { max-width: 14ch; }
.hero-stats { margin: .75rem 0 0; color: var(--ink-2); }
.hero-stats strong { color: var(--ink); }
.hero-collage { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: .75rem; min-height: 320px; }
.hero-photo { margin: 0; border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-meeting img { object-position: 35% center; }
.hero-photo-storefront img { object-position: center 40%; }
.hero-photo-storefront { grid-column: 1; grid-row: 1 / span 2; }
.hero-photo-meeting { grid-column: 2; grid-row: 1; }
.hero-photo-agent { grid-column: 2; grid-row: 2; }
.hero-placeholder { height: 100%; min-height: 150px; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); font-weight: 600; font-size: .9rem;
  background: repeating-linear-gradient(135deg, #f3f3f3 0 14px, #ebebeb 14px 28px); border: 1px dashed var(--line); border-radius: 18px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; }
  .hero-collage { min-height: 440px; }
}
@media (min-width: 1100px) {
  /* ZIP box + Find offices + Use my location on one line, once there's room */
  .hero-copy .search { flex-wrap: nowrap; }
  .hero-copy .search input { flex: 1 1 auto; min-width: 12ch; }
  .hero-copy .search .btn { flex: 0 0 auto; white-space: nowrap; padding-inline: .9rem; font-size: 1rem; }
  .hero-copy .search input { font-size: 1.05rem; }
}
@media (max-width: 599px) {
  .hero-split { padding-top: 1.5rem; }
  .hero-grid { gap: 1.25rem; }
  .hero-copy h1 { font-size: 2.1rem; }
  .hero-copy .lede { margin-bottom: .75rem; }
  .hero-copy .search { margin-top: 1rem; }
  /* ZIP box full width, then Find offices + Use my location side by side */
  .hero-copy .search input { flex: 1 1 100%; }
  .hero-copy .search .btn-primary { flex: 1 1 0; }
  .hero-copy .search .btn-ghost { flex: 1 1 0; }
  .hero-collage { min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px; }
  .hero-photo img { height: 100%; }
  .hero-photo-storefront { grid-column: 1 / span 2; grid-row: 1; }
  .hero-photo-meeting { grid-column: 1; grid-row: 2; }
  .hero-photo-agent { grid-column: 2; grid-row: 2; }
}

/* richer office cards */
.loc-card.has-thumb { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: start; }
.loc-thumb { display: block; }
.loc-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.loc-body h3 { margin-bottom: .15rem; }
.rating-line { margin: 0 0 .35rem; font-weight: 600; }
.loc-tagline { margin: 0 0 .35rem; color: var(--ink-2); }
@media (max-width: 479px) { .loc-card.has-thumb { grid-template-columns: 1fr; gap: .6rem; } .loc-thumb img { width: 100%; height: 120px; } }

/* nearby cities strip */
.city-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: .5rem; }
@media (min-width: 720px) { .city-strip { grid-template-columns: repeat(4, 1fr); } }
.city-card { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.city-card:hover { border-color: var(--ink); color: var(--ink); }
.city-thumb img, .city-thumb-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.city-card.no-photo { display: flex; align-items: center; min-height: 72px; background: var(--bg-2); }
.city-card.no-photo .city-body { padding: .8rem; }
.city-body { padding: .6rem .8rem .8rem; display: grid; gap: .1rem; }

/* for-agents page */
.proof-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.proof { background: var(--bg-2); border-radius: var(--radius); padding: 1.1rem 1.25rem; display: grid; gap: .25rem; }
.proof strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.proof span { color: var(--ink-2); }
@media (min-width: 720px) { .proof-row { grid-template-columns: repeat(3, 1fr); } }
.steps-visual { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.step { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; }
.step-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.step-num { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--grad-badge); background-color: var(--brand-2); color: #fff; font-weight: 700; margin-bottom: .5rem; }
.step h3 { margin-top: 0; }
@media (min-width: 800px) {
  .step { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .step:nth-child(even) .step-text { order: 2; }
}
.cta-band { background: var(--ink); color: #fff; padding: 3rem 0; margin-top: 2rem; text-align: center; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #ddd; }
.cta-band a { color: #fff; }
.cta-band .btn-primary { margin: .5rem 0 1rem; }

/* guides */
.guide .answer { font-size: 1.25rem; line-height: 1.5; color: var(--ink); border-left: 4px solid var(--brand-2); padding: .75rem 1rem; background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0; margin: 1rem 0 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: .3rem 0; }
.faq summary::marker { color: var(--brand-2); }
.faq details p { margin: .5rem 0 .25rem; color: var(--ink-2); }
.guide-cta { margin: 2rem 0 1rem; }
.guide-cta h2 { margin-top: 0; font-size: 1.4rem; }
.reviewed { margin: 1.5rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.reviewed p { margin: 0 0 .4rem; }
.reviewer { font-weight: 600; }

/* state info */
.state-info .card h3 { font-size: 1.15rem; }
.state-extra { margin-top: 1.25rem; padding: 1rem 1.1rem; border-left: 4px solid var(--brand-2); background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0; }
.state-extra h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.state-extra p { margin: 0; }

/* phone nav: four items on one row */


/* Annual Enrollment hub + banner */
.aep-banner { display: block; text-decoration: none; background: var(--grad-brand-wash); color: var(--ink); padding: .8rem 16px; text-align: center; font-size: .95rem; border-bottom: 1px solid var(--n-200); box-shadow: inset 4px 0 0 var(--n-300); }
.aep-banner span { color: var(--ink-2); }
/* While enrolment is open the urgency comes from a red edge, not a red field behind white text. */
.aep-banner.phase-open, .aep-banner.phase-closing { box-shadow: inset 4px 0 0 var(--brand); }
.aep-banner:hover { color: var(--ink); filter: none; background: linear-gradient(104deg, #f9d8d5 0%, #fdeceb 34%, #fff7f6 68%, #ffffff 100%); }
.aep-banner.phase-closing strong::before { content: "⏰ "; }
.aep-hero { padding: 2.5rem 0 2rem; }
.aep-hero h1 { max-width: 20ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; color: var(--brand-2); margin: 0 0 .5rem; }
.prose-wide { max-width: var(--wrap); }
.prose-wide h2 { margin-top: 2.25rem; }

@media (max-width: 599px) {
  .guide .answer { font-size: 1.1rem; padding: .65rem .85rem; }
  .crumbs ol { font-size: .85rem; }
}

/* office page on phones: compact gallery, no duplicate Call button (the pinned bar has it) */
@media (max-width: 959px) {
  .photos { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .photos img { aspect-ratio: 1 / 1; }
  .two-col > div > .actions .btn-primary[href^="tel:"] { display: none; }
}
@media (max-width: 759px) {
  .two-col > div > .actions { display: flex; flex-wrap: wrap; gap: .6rem; }
  .two-col > div > .actions .btn { flex: 1 1 40%; text-align: center; justify-content: center; padding-left: .75rem; padding-right: .75rem; white-space: nowrap; }
}

@media (max-width: 599px) {
  .proof-row { margin-top: -1rem; }
  .steps-visual { gap: 2rem; }
}

@media (max-width: 599px) {
  .aep-banner { font-size: .9rem; padding: .55rem 16px; }
  .aep-banner span { display: none; }
}

/* header: hamburger + centered logo below 1100px. Measured minimum for the inline nav beside the
   logo is 926px in English and 991px in Spanish; 1100 leaves ~76px of slack so a longer label in
   either language cannot push the nav onto a second row. */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.hamburger { display: none; }
.nav-more { display: none; }
@media (max-width: 1099px) {
  .site-header .wrap { display: grid; grid-template-columns: 48px 1fr 48px; grid-template-areas: "spacer brand burger" "nav nav nav"; align-items: center; column-gap: .5rem; row-gap: 0; min-height: 0; padding-top: .35rem; padding-bottom: .35rem; }
  .brand-block { grid-area: brand; align-items: center; text-align: center; padding: .4rem 0; }
  .brand-block .brand img { height: 52px; }
  .brand-disclaimer { font-size: 14px; }
  .hamburger { grid-area: burger; display: grid; justify-items: center; align-content: center; gap: .15rem; width: 48px; height: 52px; border-radius: 10px; cursor: pointer; color: var(--ink); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; user-select: none; justify-self: end; }
  .hamburger:hover, .hamburger:focus-visible { background: var(--bg-2); outline: none; }
  .hamburger-bars { display: grid; gap: 5px; width: 24px; }
  .hamburger-bars i { display: block; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .menu-toggle:checked ~ .hamburger .hamburger-bars i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle:checked ~ .hamburger .hamburger-bars i:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .hamburger .hamburger-bars i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav { grid-area: nav; display: none; flex-direction: column; gap: 0; width: 100%; border-top: 1px solid var(--line); margin-top: .35rem; padding: .25rem 0 .5rem; }
  .menu-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { display: block; font-size: 1.15rem; padding: .85rem .25rem; border-bottom: 1px solid var(--line); color: var(--ink); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-more { display: block; }
}

/* events */
.event-kind { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); }
.event-kind.educational { background: #e8f1fb; color: #1d4e89; border-color: #c9ddf3; }
.event-kind.sales { background: #fdecea; color: #a12b23; border-color: #f5c6c2; }
.event-kind.community { background: #e6f4ea; color: #1e6b3a; border-color: #c3e4cc; }
.badge.warn { background: #fdecea; color: #a12b23; }
.badge.muted-badge { background: var(--bg-2); color: var(--muted); }
.event-month { margin: 1.25rem 0 .25rem; font-size: 1.15rem; }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-row { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.event-row.cancelled .event-title a { text-decoration: line-through; color: var(--muted); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; padding: .4rem 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.event-dow { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-2); font-weight: 700; }
.event-day { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.event-title { margin: 0 0 .15rem; font-size: 1.15rem; }
.event-title a { text-decoration: none; }
.event-title a:hover { text-decoration: underline; }
.event-meta { margin: 0 0 .3rem; }
.event-body p.small { margin: 0; }
.event-kinds { margin-top: 1rem; }
.event-kinds .card h3 { margin-bottom: .5rem; }
.event-when { margin-top: 0; }
.event-notice { margin-top: 1.5rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); font-size: .9rem; color: var(--ink-2); }
.event-notice p { margin: 0 0 .5rem; }
.event-notice p:last-child { margin-bottom: 0; }
.warn-notice { padding: .9rem 1rem; border-left: 4px solid #a12b23; background: #fdecea; border-radius: 8px; }
.event-page aside .actions { margin-top: 0; }
.event-page aside .actions .btn { width: 100%; }
.event-page aside .card .loc-card { border: 0; padding: 0; }

/* glossary */
.az-bar { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0 1.5rem; }
@media (min-width: 760px) { .az-bar { position: sticky; top: 0; background: var(--bg); padding: .5rem 0; z-index: 2; } }
.az-bar a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; text-decoration: none; }
.az-bar a:hover { border-color: var(--ink); }
.letter-group { scroll-margin-top: 1rem; }
@media (min-width: 760px) { .letter-group, .term { scroll-margin-top: 4rem; } }
.letter-group .letter { font-size: 2rem; margin: 2rem 0 .25rem; padding-bottom: .25rem; border-bottom: 2px solid var(--ink); }
.glossary dl { margin: 0; }
.term { padding: 1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.term dt { font-weight: 700; font-size: 1.15rem; }
.term .aka { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
.term dd { margin: .35rem 0 0; }
.term dd p { margin: 0 0 .4rem; }
.term .term-links { margin: 0; }
.term-anchor { float: right; color: var(--line); text-decoration: none; font-weight: 400; padding: 0 .25rem; }
.term:hover .term-anchor, .term-anchor:focus { color: var(--brand-2); }
.term:target { background: var(--bg-2); margin: 0 -.75rem; padding-left: .75rem; padding-right: .75rem; border-radius: 8px; }

/* yearly facts */
.year-nav { display: flex; gap: .4rem; margin: .5rem 0 1rem; }
.year-nav a, .year-nav span { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.year-nav span { background: var(--ink); color: #fff; border-color: var(--ink); }
.facts-table { width: 100%; border-collapse: collapse; margin: .75rem 0 .5rem; font-size: 1rem; }
.facts-table th, .facts-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.facts-table tbody th { font-weight: 500; }
.facts-table .num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.facts-table .num.pending { font-weight: 500; color: var(--muted); white-space: normal; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.irmaa td { font-size: .95rem; }
.pending-notice { padding: .9rem 1rem; border-left: 4px solid var(--brand-2); background: var(--bg-2); border-radius: 8px; margin: 1rem 0; }
.pending-notice p { margin: 0; }
.sources ul { padding-left: 1.2rem; }
.sources li { margin: .3rem 0; }
.timeline { list-style: none; padding: 0; margin: 1.5rem 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.5rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--brand-2); border: 3px solid var(--bg); }
.timeline li.approx::before { background: #fff; border: 3px solid var(--brand-2); left: -9px; }
.timeline time { display: block; font-weight: 700; color: var(--brand-2); }
.timeline h3 { margin: .1rem 0 .25rem; font-size: 1.15rem; }
.timeline p { margin: 0; }
@media (max-width: 599px) { .facts-table { font-size: .95rem; } .facts-table th, .facts-table td { padding: .5rem .35rem; } .facts-table td.small { font-size: .8rem; } }

/* county plan pages */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.25rem 0; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { display: flex; flex-direction: column; gap: .15rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat-n { font-family: var(--font-display, 'DM Serif Display', serif); font-size: 2.2rem; line-height: 1; color: var(--brand-2); }
.stat-label { font-weight: 600; line-height: 1.25; }
.facts-table .num.up { color: var(--ok); }
.facts-table .num.down { color: var(--warn); }
.county-table th.num, .county-table td.num { text-align: right; }
.county-table tbody th a { text-decoration: none; font-weight: 600; }
.county-table tbody th a:hover { text-decoration: underline; }
.source-note { margin-top: 1.5rem; }
@media (max-width: 599px) { .county-table { font-size: .85rem; } .county-table th, .county-table td { padding: .45rem .3rem; } }
.hide-lg { display: none; }
@media (max-width: 599px) { .hide-lg { display: block; } .county-table tbody th { position: sticky; left: 0; background: var(--bg); } }

/* news */
.news-body h2 { margin-top: 2rem; }
.news-body ul, .news-body ol { padding-left: 1.4rem; }
.news-body li { margin: .4rem 0; }
.news-body blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 4px solid var(--line); color: var(--ink-2); }
.news-list .small { margin: .25rem 0 0; }

/* language switch */
.site-nav .lang-switch { font-weight: 700; }
@media (min-width: 1100px) { .site-nav .lang-switch { margin-left: .5rem; padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 999px; } }
.lang-note { margin: -.25rem 0 .75rem; }

/* social profiles + featured video */
.social-row { margin-top: 2rem; }
.social-links { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social-links a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-sm); transition: border-color .15s ease, background .15s ease; }
.social-links a:hover { border-color: var(--n-400); background: var(--n-50); color: var(--ink); }
.social-links svg { flex: none; color: var(--ink-2); }
.social-links a:hover svg { color: var(--brand-2); }
.video-section { margin-top: 2rem; }
.video-facade { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--n-800); aspect-ratio: 16 / 9; text-decoration: none; box-shadow: var(--shadow-md); }
.video-facade img, .video-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-poster { background: var(--grad-ink-wash); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,19,24,.15) 0%, rgba(16,19,24,.55) 100%); }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--brand-2); padding-left: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.3); transition: transform .15s ease; }
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.06); }
.video-label { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 1; color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }

/* Tables inside news and blog post bodies. The markdown renderer emits a bare <table>, so style it
   here rather than asking authors to add classes in markdown. Scrolls sideways on phones instead of
   squeezing columns to one word per line. */
.news-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 1rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.news-body table thead th { text-align: left; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--ink); padding: .6rem .5rem; white-space: nowrap; }
.news-body table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.news-body table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 599px) { .news-body table { font-size: .95rem; } .news-body table th, .news-body table td { padding: .5rem .35rem; } }
