/* Statmeds — corporate design system. Brand colors come from the logo:
   blue #004F9D, red #E82C2A (graphics only), green #96CA4F. */

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2'); unicode-range: U+0000-002C, U+002E-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/public-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/public-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Headings take the hyphen from Public Sans: Plus Jakarta's hyphen is wide enough to read as a dash. */
/* Metric-matched fallbacks keep layout shift near zero while web fonts load. */
@font-face { font-family: 'Jakarta Fallback'; src: local('Arial'); size-adjust: 104%; ascent-override: 96%; descent-override: 22%; }
@font-face { font-family: 'Public Fallback'; src: local('Arial'); size-adjust: 101%; ascent-override: 95%; descent-override: 23%; }

:root {
  --navy-950: #061629; --navy-900: #0a1f3c; --navy-800: #12305a;
  --blue-800: #003c78; --blue-700: #004f9d; --blue-600: #1f66b3; --blue-100: #dce8f6; --blue-50: #f0f5fb;
  --red-500: #e82c2a; --red-600: #c41f1d; --red-700: #a31816; --red-50: #fdeeee;
  --green-400: #96ca4f; --green-700: #3b7417; --green-50: #eff7e4;
  --gray-900: #101828; --gray-700: #344054; --gray-600: #475467; --gray-400: #98a2b3;
  --gray-300: #d0d5dd; --gray-200: #e4e7ec; --gray-100: #f2f4f7; --gray-50: #f8fafc; --white: #fff;
  --text: var(--gray-900); --text-muted: var(--gray-600); --on-dark: #fff; --on-dark-muted: #b9c6d8;

  --font-display: 'Plus Jakarta Sans', 'Public Sans', 'Jakarta Fallback', system-ui, sans-serif;
  --font-body: 'Public Sans', 'Public Fallback', system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.375rem, 1.6rem + 3vw, 3.75rem);
  --fs-h1: clamp(2.125rem, 1.6rem + 1.8vw, 2.875rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --fs-h3: clamp(1.188rem, 1.1rem + 0.3vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-body: 1.0625rem; --fs-sm: 0.9375rem; --fs-xs: 0.8125rem;
  --tracking-head: -0.022em; --tracking-eyebrow: 0.1em;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-y: clamp(64px, 8vw, 112px);
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-xl: 14px;
  --sh-xs: 0 1px 2px rgb(16 24 40 / 0.06);
  --sh-sm: 0 1px 3px rgb(16 24 40 / 0.08), 0 1px 2px rgb(16 24 40 / 0.04);
  --sh-md: 0 6px 16px -4px rgb(10 31 60 / 0.1), 0 2px 4px -2px rgb(10 31 60 / 0.06);
  --sh-lg: 0 20px 40px -12px rgb(10 31 60 / 0.22);
  --ring: 0 0 0 2px #fff, 0 0 0 4px var(--blue-700);
  --header-h: 80px;
  --z-header: 30; --z-menu: 40; --z-skip: 50;
}
@media (min-width: 1680px) { :root { --container: 1440px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--text); font: 400 var(--fs-body)/1.6 var(--font-body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-head); line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; color: inherit; }
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-800); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid transparent; box-shadow: var(--ring); border-radius: var(--r-sm); }
::selection { background: var(--blue-100); }
address { font-style: normal; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
/* reCAPTCHA badge is replaced by the disclosure line under each form, as Google allows. */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note { margin: var(--s-3) 0 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.lead { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.55; max-width: 60ch; }
.mt-0 { margin-top: 0 !important; } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0 !important; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: var(--z-skip); background: var(--navy-950); color: #fff; padding: 12px 18px; border-radius: var(--r-md); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 22px; border-radius: var(--r-md); border: 1.5px solid transparent;
  font: 600 var(--fs-sm)/1.1 var(--font-body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn--primary { background: var(--red-600); color: #fff; }
.btn--primary:hover { background: var(--red-700); color: #fff; }
.btn--secondary { background: var(--blue-700); color: #fff; }
.btn--secondary:hover { background: var(--blue-800); color: #fff; }
.btn--outline { border-color: var(--gray-300); color: var(--gray-900); background: #fff; }
.btn--outline:hover { border-color: var(--blue-700); color: var(--blue-700); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--blue-50); color: var(--navy-900); }
.btn--ghost-dark { border-color: rgb(255 255 255 / 0.45); color: #fff; background: transparent; }
.btn--ghost-dark:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 520px) { .btn-row > .btn { flex: 1 1 auto; } }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--blue-700); }
.text-link:hover { text-decoration: underline; }


/* ---------- Utility bar ---------- */
.utility { background: var(--navy-950); color: var(--on-dark-muted); font-size: var(--fs-xs); }
.utility .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 40px; }
.utility ul { list-style: none; display: flex; align-items: center; gap: var(--s-5); margin: 0; padding: 0; }
.utility a { color: var(--on-dark-muted); text-decoration: none; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility .utility__phone { color: #fff; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-400); flex: none; }
.status-dot[data-open='true'] { background: var(--green-400); box-shadow: 0 0 0 3px rgb(150 202 79 / 0.25); }
.status-dot[data-open='false'] { background: var(--red-500); }
@media (max-width: 760px) { .utility { display: none; } }

/* ---------- Header + navigation ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: #fff; border-bottom: 1px solid var(--gray-200); transition: box-shadow 160ms ease-out; }
.site-header.is-scrolled { box-shadow: var(--sh-sm); }
.site-header > .container { display: flex; align-items: center; gap: var(--s-6); min-height: var(--header-h); }
.brand { flex: none; line-height: 0; }
.brand img { width: 168px; height: auto; }
.nav { margin-left: auto; align-self: stretch; display: flex; }
.nav__list { list-style: none; display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; }
.nav__item { display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; height: 100%; padding: 0 12px; position: relative;
  font: 600 var(--fs-sm)/1 var(--font-body); color: var(--gray-700); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav__link:hover { color: var(--blue-700); }
.nav__link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: transparent; }
.nav__link[aria-current='page'], .nav__link[aria-expanded='true'], .nav__link.is-section { color: var(--blue-700); }
.nav__link[aria-current='page']::after, .nav__link.is-section::after, .nav__link[aria-expanded='true']::after { background: var(--red-600); }
.nav__link .icon { width: 16px; height: 16px; transition: transform 160ms ease-out; }
.nav__link[aria-expanded='true'] .icon { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: var(--s-4); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-sm); color: var(--gray-900); text-decoration: none; white-space: nowrap; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--gray-200);
  box-shadow: var(--sh-lg); padding: var(--s-6) 0 var(--s-7);
}
.mega[hidden] { display: none; }
.mega__grid { display: grid; grid-template-columns: 1.05fr 1.1fr 1.1fr 1fr; gap: var(--s-6); }
.mega__list a { white-space: nowrap; }
.mega__intro .mega__feature { margin-top: var(--s-5); }
.mega__intro .mega__feature img { aspect-ratio: 16 / 9; }
.mega__title { font: 700 var(--fs-xs)/1 var(--font-body); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--gray-600); margin: 0 0 var(--s-4); }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__list a { display: flex; align-items: center; gap: var(--s-3); padding: 9px 10px; border-radius: var(--r-md); color: var(--gray-900); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.mega__list a:hover { background: var(--blue-50); color: var(--blue-700); }
.mega__list .icon { width: 20px; height: 20px; color: var(--blue-700); }
.mega__feature { display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--gray-200); text-decoration: none; color: var(--gray-900); }
.mega__feature img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.mega__feature span { display: block; padding: var(--s-4); font-size: var(--fs-sm); color: var(--text-muted); }
.mega__feature strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; color: var(--gray-900); }
.mega__feature:hover { border-color: var(--blue-100); box-shadow: var(--sh-md); }
.mega__aside { background: var(--gray-50); border-radius: var(--r-lg); padding: var(--s-5); }
.mega__aside p { font-size: var(--fs-sm); color: var(--text-muted); }
.mega__intro { padding-right: var(--s-4); border-right: 1px solid var(--gray-200); }
.mega__intro p:not(.mega__title) { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--s-5); }

.menu-toggle { display: none; width: 48px; height: 48px; border-radius: var(--r-md); border: 1px solid var(--gray-300); background: #fff; color: var(--gray-900); cursor: pointer; }
.drawer-head, .drawer-actions { display: none; }

@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 1060px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: grid; place-items: center; }
  .header-actions { margin-left: auto; }
  .header-phone { display: none; }
  .brand img { width: 144px; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: var(--z-menu); width: min(400px, 92vw); margin: 0;
    flex-direction: column; background: #fff; overflow-y: auto; box-shadow: var(--sh-lg);
    transform: translateX(105%); visibility: hidden; transition: transform 220ms ease-out, visibility 0s linear 220ms;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform 220ms ease-out; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--gray-200); }
  .drawer-head img { width: 132px; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 8px 12px; }
  .nav__item { display: block; border-bottom: 1px solid var(--gray-100); }
  .nav__link { width: 100%; height: auto; padding: 16px 8px; font-size: 1.05rem; justify-content: space-between; }
  .nav__link::after { display: none; }
  .nav__link[aria-current='page'] { background: var(--blue-50); border-radius: var(--r-md); }
  .mega { position: static; box-shadow: none; border: 0; padding: 0 0 12px; }
  .mega .container { width: 100%; }
  .mega__grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .mega__intro, .mega__aside { display: none; }
  .mega__title { margin: 8px 8px 6px; }
  .drawer-actions { display: grid; gap: 10px; padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); margin-top: auto; }
}
@media (max-width: 480px) { .header-actions .btn { padding: 0 14px; } }

.nav-scrim { position: fixed; inset: 0; background: rgb(6 22 41 / 0.5); z-index: calc(var(--z-header) - 1); opacity: 0; transition: opacity 200ms ease-out; }
.nav-scrim.is-open { opacity: 1; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy-900); color: var(--on-dark); }
.section--navy .lead, .section--navy .muted { color: var(--on-dark-muted); }
.section--navy a:not(.btn) { color: #fff; }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-7); }
.section-head > div { max-width: 64ch; }
.section-head h2 { margin-bottom: var(--s-3); }
.section-head .lead { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--s-4);
  font: 700 var(--fs-xs)/1 var(--font-body); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--blue-700);
}
.section--navy .eyebrow, .hero .eyebrow, .page-head--navy .eyebrow { color: #c9d8ec; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; }
.hero__copy { padding: clamp(56px, 7vw, 104px) var(--s-7) clamp(112px, 10vw, 152px) 0; align-self: center; }
.hero h1 { font-size: var(--fs-display); line-height: 1.08; max-width: 21ch; margin-bottom: var(--s-5); }
.hero .lead { color: var(--on-dark-muted); max-width: 54ch; margin-bottom: var(--s-6); }
.hero__media { position: relative; margin-right: calc(-1 * (100vw - min(var(--container), 100vw - 2 * var(--gutter))) / 2); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(0.95) contrast(1.02); }
.hero__note { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--on-dark-muted); }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note .icon { width: 18px; height: 18px; color: var(--green-400); }

.action-bar { position: relative; z-index: 2; margin-top: -64px; }
.action-bar ul {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); border: 1px solid var(--gray-200); overflow: hidden;
}
.action-bar li + li { border-left: 1px solid var(--gray-200); }
.action-bar a { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 24px; height: 100%; text-decoration: none; color: var(--gray-900); }
.action-bar a:hover { background: var(--blue-50); }
.action-bar a:focus-visible { box-shadow: inset 0 0 0 2px var(--blue-700); border-radius: 0; }
.action-bar .icon-box { grid-row: span 2; }
.action-bar strong { font: 700 1rem/1.25 var(--font-display); }
.action-bar small { grid-column: 2; color: var(--text-muted); font-size: 0.875rem; line-height: 1.4; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { display: none; }
  .hero__copy { padding: 56px 0 104px; }
}
@media (max-width: 1180px) {
  .action-bar ul { grid-template-columns: 1fr 1fr; }
  .action-bar li:nth-child(3) { border-left: 0; }
  .action-bar li:nth-child(n + 3) { border-top: 1px solid var(--gray-200); }
}
@media (max-width: 520px) {
  .action-bar a { grid-template-columns: 1fr; padding: 18px 16px; gap: 8px; }
  .action-bar .icon-box { grid-row: auto; }
  .action-bar small { grid-column: 1; }
}

.icon-box { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-50); color: var(--blue-700); flex: none; }
.icon-box--red { background: var(--red-50); color: var(--red-600); }
.icon-box--dark { background: rgb(255 255 255 / 0.08); color: #fff; }

/* ---------- Trust strip ---------- */
.trust { padding-block: var(--s-7) var(--s-6); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.trust li { display: flex; gap: var(--s-4); align-items: flex-start; }
.trust strong { display: block; font-weight: 600; font-size: 1rem; line-height: 1.3; margin-bottom: 2px; }
.trust div > span { display: block; font-size: 0.875rem; color: var(--text-muted); line-height: 1.45; }
@media (max-width: 960px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .trust ul { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); overflow: hidden; transition: box-shadow 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
}
.card:hover { box-shadow: var(--sh-md); border-color: var(--blue-100); transform: translateY(-2px); }
.card:focus-within { box-shadow: var(--ring); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card__body > .icon-box { margin-bottom: var(--s-2); }
.card h3 { margin: 0; font-size: var(--fs-h3); }
.card h3 a { color: var(--gray-900); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card h3 a:focus-visible { box-shadow: none; }
.card p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.card__more { margin-top: auto; padding-top: var(--s-3); font-size: 0.875rem; font-weight: 600; color: var(--blue-700); display: inline-flex; align-items: center; gap: 6px; }

.card--static:hover { transform: none; box-shadow: none; border-color: var(--gray-200); }
.grid { display: grid; gap: var(--s-5); list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
/* Column counts are chosen per item count (see gridStyle() in pages.js) so rows stay even. */
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(var(--cols-md, 2), minmax(0, 1fr)); gap: var(--s-4); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

/* Compact specialty tiles */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gray-200); border-left: 1px solid var(--gray-200); }
.tile { position: relative; display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); background: #fff; transition: background-color 160ms ease-out; }
.tile:hover { background: var(--blue-50); }
.tile:focus-within { box-shadow: inset 0 0 0 2px var(--blue-700); }
.tile h3 { font-size: 1.0625rem; margin: 0 0 4px; }
.tile h3 a { color: var(--gray-900); text-decoration: none; }
.tile h3 a::after { content: ''; position: absolute; inset: 0; }
.tile h3 a:focus-visible { box-shadow: none; }
.tile p { margin: 0; font-size: 0.875rem; color: var(--text-muted); line-height: 1.45; }
@media (max-width: 1060px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tile-grid { grid-template-columns: 1fr; } .tile { padding: var(--s-4); } }

/* Featured specialty */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--navy-900); color: #fff; border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s-6); }
.feature img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; filter: saturate(0.92) contrast(1.02); }
.feature__body { padding: clamp(28px, 4vw, 56px); align-self: center; }
.feature__body h3 { font-size: var(--fs-h2); color: #fff; }
.feature__body p { color: var(--on-dark-muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-sm); font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; background: var(--green-50); color: var(--green-700); }
.feature .badge { background: var(--green-400); color: var(--navy-950); margin-bottom: var(--s-4); }
.badge--blue { background: var(--blue-50); color: var(--blue-800); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature img { min-height: 0; aspect-ratio: 16 / 9; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--5-7 { grid-template-columns: 5fr 7fr; }
.split--top { align-items: start; }
.split__media img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
@media (max-width: 900px) { .split__media img { aspect-ratio: 16 / 9; max-height: 320px; } }
@media (max-width: 900px) { .split, .split--5-7 { grid-template-columns: 1fr; } }

/* Process steps — a genuine sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--gray-200); }
.steps li:last-child { border-bottom: 1px solid var(--gray-200); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 700 0.95rem/1.6 var(--font-display); color: var(--red-600); }
.steps h3 { font-size: 1.0625rem; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.steps--grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.steps--grid li { grid-template-columns: 1fr; border: 0; border-top: 1px solid var(--gray-200); padding-top: var(--s-4); }
.steps--grid li:last-child { border-bottom: 0; }
@media (max-width: 960px) { .steps--grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps--grid { grid-template-columns: 1fr; } }
.section--navy .steps li { border-color: rgb(255 255 255 / 0.14); }
.section--navy .steps li::before { color: var(--green-400); }
.section--navy .steps p { color: var(--on-dark-muted); }
.section--navy .steps--grid li { border-top-color: rgb(255 255 255 / 0.16); }

.callout { background: var(--blue-50); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--gray-700); }
.callout--green { background: var(--green-50); }
.callout--dark { background: rgb(255 255 255 / 0.06); color: var(--on-dark-muted); }
.callout p:last-child { margin-bottom: 0; }

.ticks { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.4em; width: 14px; height: 8px; border-left: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700); transform: rotate(-45deg); }
.section--navy .ticks li::before, .panel--blue .ticks li::before { border-color: var(--green-400); }

.panel { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.panel h2, .panel h3 { font-size: var(--fs-h3); }
.panel--blue { background: var(--blue-700); color: #fff; border: 0; }
.panel--blue h2, .panel--blue h3, .panel--blue a:not(.btn) { color: #fff; }
.panel--blue p, .panel--blue li { color: #dce8f6; }
.panel--gray { background: var(--gray-50); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--gray-200); background: #fff; border-radius: var(--r-sm); padding: 6px 12px; font-size: 0.875rem; color: var(--gray-700); }
.prose .chips { padding: 0; margin: 0 0 var(--s-5); }
.prose .chips li { margin: 0; }

/* ---------- Page head ---------- */
.page-head { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding-block: clamp(40px, 6vw, 80px); }
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-bottom: 0; }
.page-head .btn-row { margin-top: var(--s-6); }
.page-head--image > .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-head--image img { border-radius: var(--r-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; filter: saturate(0.92) contrast(1.02); }
.page-head--navy { background: var(--navy-900); color: #fff; border: 0; }
.page-head--navy .lead { color: var(--on-dark-muted); }
.page-head--navy .breadcrumbs ol, .page-head--navy .breadcrumbs a { color: var(--on-dark-muted); }
@media (max-width: 900px) { .page-head--image > .container { grid-template-columns: 1fr; } }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 var(--s-5); font-size: var(--fs-xs); color: var(--text-muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--gray-400); }
.breadcrumbs a { color: var(--text-muted); }

/* ---------- Content layouts ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.content-grid > .prose { max-width: none; }
.sidebar { display: grid; gap: var(--s-4); }
@media (max-width: 1100px) { .content-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; } }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) and (min-width: 641px) {
  .panel--contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
  .panel--contact .hours { margin-top: 0; }
}
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-h2); margin-top: 1.6em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol:not(.steps) { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose .steps li { margin-bottom: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); margin: var(--s-4) 0; }
.prose th, .prose td { border: 1px solid var(--gray-200); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--gray-50); font-weight: 600; }

.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--fs-sm); }
.legal-toc details { border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); background: #fff; }
.legal-toc summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 28px; display: inline-block; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--blue-700); border-bottom: 2px solid var(--blue-700); transform: rotate(45deg); }
.legal-toc details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.legal-toc ol { margin: var(--s-3) 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-toc a { color: var(--gray-700); text-decoration: none; }
.legal-toc a:hover { color: var(--blue-700); text-decoration: underline; }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-xl); box-shadow: var(--sh-sm); padding: clamp(20px, 3.5vw, 40px); }
.form-card > h2, .form-card > h3 { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.tabs [role='tablist'] { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--gray-200); margin-bottom: var(--s-5); overflow-x: auto; }
.tabs [role='tab'] {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 2px; border: 0; background: none; cursor: pointer;
  font: 600 1rem/1 var(--font-body); color: var(--gray-600); white-space: nowrap;
}
.tabs [role='tab'] .icon { width: 18px; height: 18px; }
.tabs [role='tab']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.tabs [role='tab'][aria-selected='true'] { color: var(--blue-700); }
.tabs [role='tab'][aria-selected='true']::after { background: var(--blue-700); }
.tabs [role='tabpanel'][hidden] { display: none; }
.tabs [role='tabpanel']:focus-visible { box-shadow: none; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s-6); min-width: 0; }
legend { font: 700 1.0625rem/1.3 var(--font-display); padding: 0; margin-bottom: var(--s-4); color: var(--gray-900); }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 600; font-size: 0.875rem; color: var(--gray-700); }
.opt { font-weight: 400; color: var(--text-muted); }
.req { color: var(--red-600); }
input[type='text'], input[type='email'], input[type='tel'], input[type='date'], input[type='search'], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: var(--r-md);
  background: #fff; color: var(--gray-900); font: 400 1rem/1.4 var(--font-body); box-shadow: var(--sh-xs);
}
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid transparent; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgb(0 79 157 / 0.18); }
[aria-invalid='true'] { border-color: var(--red-600) !important; }
.field-error { display: flex; align-items: center; gap: 6px; color: var(--red-600); font-size: 0.875rem; font-weight: 600; }
.field-error:empty { display: none; }
.field-error::before { content: '!'; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--red-600); color: #fff; font-size: 11px; flex: none; }
.hint { font-size: 0.8125rem; color: var(--text-muted); }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px; border: 1px solid var(--gray-300); border-radius: var(--r-md); cursor: pointer; font-size: var(--fs-sm); background: #fff; }
.choice input:checked + span { border-color: var(--blue-700); background: var(--blue-50); color: var(--blue-800); font-weight: 600; box-shadow: inset 0 0 0 1px var(--blue-700); }
.choice input:focus-visible + span { box-shadow: var(--ring); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.875rem; line-height: 1.55; color: var(--gray-700); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-700); }
.notice { display: grid; grid-template-columns: 20px 1fr; gap: 12px; background: var(--blue-50); border-radius: var(--r-md); padding: 14px 16px; font-size: 0.875rem; line-height: 1.55; margin-bottom: var(--s-5); color: var(--gray-700); }
.notice .icon { width: 20px; height: 20px; color: var(--blue-700); margin-top: 1px; }
.notice strong { color: var(--blue-800); }
.notice--green { background: var(--green-50); }
.notice--green .icon { color: var(--green-700); }
.med-list { display: grid; gap: 14px; }
.med-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) 20px; }
@media (max-width: 620px) { .med-row { grid-template-columns: 1fr; } }
.link-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: none; border: 0; padding: 8px 0; color: var(--blue-700); font: 600 var(--fs-sm)/1.2 var(--font-body); cursor: pointer; }
.link-btn .icon { width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--gray-200); }
.form-actions .spacer { flex: 1; }
.form-status:not(:empty) { margin-top: 16px; border-radius: var(--r-md); padding: 14px 16px; font-weight: 600; font-size: var(--fs-sm); }
.form-status[data-state='error'] { background: var(--red-50); color: #8f1513; }
button[disabled] { opacity: 0.7; cursor: progress; }
.form-done h3 { display: flex; align-items: center; gap: 12px; }
.form-done ol { padding-left: 1.2em; color: var(--gray-700); }

.progress { list-style: none; display: grid; grid-template-columns: repeat(var(--steps, 3), 1fr); gap: 8px; margin: 0 0 var(--s-5); padding: 0; }
.progress li { font-size: 0.8125rem; font-weight: 600; color: var(--gray-600); padding-top: 10px; border-top: 3px solid var(--gray-200); }
.progress li[data-state='current'] { color: var(--blue-700); border-color: var(--blue-700); }
.progress li[data-state='done'] { color: var(--gray-700); border-color: var(--green-700); }
.progress, .step-nav { display: none; }
.js .progress { display: grid; }
.js .step-nav { display: flex; }
.js .step[hidden] { display: none; }

/* ---------- Delivery tiers ---------- */
.tiers { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-5); }
.tier { border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); background: #fff; }
.tier h3 { display: flex; align-items: center; gap: 12px; }
.tier__regions { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); }
.tier__regions li { border-bottom: 1px solid var(--gray-200); }
.tier__regions a { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; text-decoration: none; color: var(--gray-900); font-weight: 500; }
.tier__regions a:hover { color: var(--blue-700); }

@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tier__regions { grid-template-columns: 1fr; } }
.town-list { columns: 4 170px; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.town-list li { padding: 7px 0; border-bottom: 1px solid var(--gray-200); break-inside: avoid; font-size: var(--fs-sm); }
.towns summary { cursor: pointer; font-weight: 600; color: var(--blue-700); margin-bottom: var(--s-4); }

/* ---------- A–Z directory ---------- */

/* ---------- News ---------- */
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-5); }
.news-filter button { min-height: 40px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--gray-300); background: #fff; font: 600 0.875rem/1 var(--font-body); color: var(--gray-700); cursor: pointer; }
.news-filter button[aria-pressed='true'] { border-color: var(--blue-700); background: var(--blue-50); color: var(--blue-800); }
.news-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.news-item { position: relative; border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: var(--s-5); background: #fff; display: flex; flex-direction: column; gap: 10px; transition: box-shadow 160ms ease-out, border-color 160ms ease-out; }
.news-item:hover { box-shadow: var(--sh-md); border-color: var(--blue-100); }
.news-item h3 { font-size: 1.125rem; margin: 0; }
.news-item h3 a { color: var(--gray-900); text-decoration: none; }
.news-item h3 a::after { content: ''; position: absolute; inset: 0; }
.news-item p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8125rem; color: var(--text-muted); }
.news-source { font-weight: 700; color: var(--blue-700); }
.news-item--skeleton { min-height: 170px; background: linear-gradient(90deg, var(--gray-50), #fff, var(--gray-50)) 0 0 / 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .news-item--skeleton { animation: shimmer 1.4s ease-in-out infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 700px) { .news-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--gray-200); }
.faq details { border-bottom: 1px solid var(--gray-200); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 600 1.0625rem/1.4 var(--font-display); color: var(--gray-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--blue-700); border-bottom: 2px solid var(--blue-700); transform: rotate(45deg); transition: transform 160ms ease-out; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 20px; color: var(--text-muted); max-width: 72ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Visit + map ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.25fr; border: 1px solid var(--gray-200); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.visit__info { padding: clamp(24px, 4vw, 48px); }
.map { position: relative; min-height: 380px; background: var(--blue-50); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } .map { min-height: 340px; } }
@media (max-width: 600px) { .map { min-height: 300px; } }
.hours { width: 100%; border-collapse: collapse; margin: var(--s-4) 0 var(--s-5); font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--gray-200); font-weight: 400; }
.hours td { text-align: right; }
.hours tr[data-today='true'] th, .hours tr[data-today='true'] td { font-weight: 700; color: var(--blue-700); }

/* ---------- Downloads ---------- */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.doc { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--s-5); align-items: center; padding: var(--s-5); border: 1px solid var(--gray-200); border-radius: var(--r-lg); background: #fff; }
.doc h3 { margin: 0 0 4px; font-size: 1.0625rem; }
.doc p { margin: 0; color: var(--text-muted); font-size: 0.875rem; }
@media (max-width: 640px) { .doc { grid-template-columns: 1fr; } }

/* ---------- Prescriber band ---------- */
.rx-band { background: var(--blue-700); color: #fff; }
.rx-band .container { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-5) var(--s-6); align-items: center; padding-block: var(--s-7); }
.rx-band h2 { font-size: 1.5rem; margin: 0 0 6px; color: #fff; }
.rx-band p { margin: 0; color: #dce8f6; font-size: var(--fs-sm); }
@media (max-width: 900px) { .rx-band .container { grid-template-columns: 1fr; } .rx-band .btn { justify-self: start; } }
@media (max-width: 520px) { .rx-band .btn { justify-self: stretch; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding-block: 80px 32px; font-size: var(--fs-sm); }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--s-6); }
.footer-grid h2 { font: 700 var(--fs-xs)/1 var(--font-body); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: #fff; margin: 0 0 var(--s-4); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-logo { display: inline-block; background: #fff; padding: 12px; border-radius: var(--r-md); margin-bottom: var(--s-5); line-height: 0; }
.footer-logo img { width: 150px; }
.footer-brand p { margin: 0 0 var(--s-3); }
.footer-brand strong { color: #fff; font-weight: 600; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / 0.12); margin-top: var(--s-8); padding-top: var(--s-5); display: grid; gap: var(--s-3); font-size: var(--fs-xs); }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal p { margin: 0; }
.footer-legal a { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 1180px) and (min-width: 1001px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 1180px) { .footer-brand { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3) var(--s-6); align-items: start; } .footer-brand p, .footer-brand address { margin: 0; } .footer-brand .footer-logo { margin: 0; justify-self: start; } }
@media (max-width: 520px) { .footer-grid, .footer-brand { grid-template-columns: 1fr; } .footer-brand { gap: var(--s-3); } }
@media (max-width: 600px) { .footer-legal ul { flex-direction: column; gap: 10px; font-size: var(--fs-xs); } }
@media (max-width: 1000px) { .footer-brand { grid-template-columns: 1fr 1fr; } .footer-legal ul { gap: 6px 14px; font-size: 0.75rem; } }


.notfound { text-align: center; padding-block: 120px; }
.notfound h1, .notfound .lead { margin-inline: auto; }

@media print {
  .utility, .site-header, .site-footer, .rx-band, .legal-toc { display: none !important; }
  .legal-layout { display: block; }
  body { font-size: 11pt; }
}
.steps li { align-content: start; }
.tile--more { background: var(--blue-50); }
.tile--more h3 a { color: var(--blue-700); }
.card__body > .badge { align-self: flex-start; }

/* ---------- Round 3 layout refinements ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-7); }
.faq-grid .faq { border-top: 1px solid var(--gray-200); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .faq + .faq { border-top: 0; } }
.page-head--legal { padding-block: clamp(40px, 5vw, 64px); }
.page-head--legal h1 { max-width: none; }
.page-head--legal .lead { max-width: 80ch; }
.page-head--image img { aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .page-head--image img { aspect-ratio: 16 / 9; max-height: 320px; } }
.action-bar .icon-box .icon, .trust .icon-box .icon, .tile .icon-box .icon, .card .icon-box .icon { width: 26px; height: 26px; }
.icon-box { width: 48px; height: 48px; }
.mega__list .icon { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .site-header > .container { gap: var(--s-3); }
  .header-actions .btn { min-height: 44px; padding: 0 16px; }
}
@media (max-width: 360px) { .brand img { width: 128px; } }
@media (max-width: 1100px) { .utility ul li:not(:last-child) { display: none; } }

/* ---------- Finish-gate fixes ---------- */
.trust .icon-box { display: grid; color: var(--blue-700); }
.prose .steps h3 { margin-top: 0; }
.prose .eyebrow + h2 { margin-top: 0; }
.sidebar .form-grid { grid-template-columns: 1fr; }
.action-bar a { align-content: start; align-items: start; }
.eyebrow { line-height: 1.35; }
.mega__aside { padding: 0; background: none; }
@media (max-width: 1180px) and (min-width: 1061px) {
  .mega__grid { grid-template-columns: 1fr 1fr 1fr; }
  .mega__intro { display: none; }
}
@media (max-width: 1180px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tile-grid { grid-template-columns: 1fr; } }
@media (max-width: 1060px) {
  .mega__aside { display: block; }
  .mega__aside .mega__title { margin-top: 12px; }
}
@media (max-width: 600px) {
}
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 12px 0; border-bottom: 1px solid var(--gray-200); color: var(--gray-900); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.link-list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.link-list a:hover { color: var(--blue-700); }
.link-list .icon { width: 16px; height: 16px; color: var(--blue-700); flex: none; }
.spec-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0 var(--s-5); }
.spec-links a { display: flex; align-items: center; gap: var(--s-3); padding: 14px 0; border-bottom: 1px solid var(--gray-200); color: var(--gray-900); font-weight: 600; text-decoration: none; }
.spec-links a:hover { color: var(--blue-700); }
.spec-links .icon { width: 22px; height: 22px; color: var(--blue-700); }
.spec-links--flow li { break-inside: avoid; }
.spec-links__all a { color: var(--blue-700); }
@media (min-width: 1061px) { .spec-links__all { display: none; } }
.prose .spec-links { padding: 0; }
.prose .spec-links li { margin: 0; }
@media (max-width: 1060px) { .spec-links { grid-template-columns: repeat(var(--cols-md, 2), minmax(0, 1fr)); } }
@media (max-width: 520px) { .spec-links { grid-template-columns: 1fr; } }
@media (min-width: 1061px) { .spec-links--five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mega__aside .mega__title { font-size: var(--fs-xs); color: var(--gray-600); }
@media (max-width: 1060px) { .mega__title[aria-hidden='true'] { display: none; } .mega__grid { gap: 0; } }
.hero h1 { font-size: clamp(2.25rem, 1rem + 2.6vw, 3.75rem); }
@media (min-width: 961px) and (max-width: 1280px) { .hero__grid { grid-template-columns: 3fr 2fr; } }
@media (max-width: 1180px) and (min-width: 961px) { .action-bar a { padding: 20px; } }

/* ---------- Why Statmeds (home) ---------- */
.why { padding-top: clamp(72px, 8vw, 104px); }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.why-grid li { display: flex; flex-direction: column; gap: var(--s-3); }
.why-grid > li > .icon { width: 40px; height: 40px; color: var(--blue-700); }
.why-grid h3 { font-size: 1.1875rem; margin: var(--s-2) 0 0; }
.why-grid p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; flex: 1; }
.why-grid .text-link { margin-top: var(--s-2); }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Consistency pass ---------- */
.med-row { align-items: start; }
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .btn-row--stack > .btn { flex-basis: 100%; }
  .form-actions .spacer { flex: 1 1 100%; order: -1; }
  .form-actions .btn { flex: 1 1 0; }
  /* The final step's longer submit label gets its own row, with Back underneath. */
  .form-actions [data-submit] { flex-basis: 100%; }
  .form-actions [data-step-prev] { order: 3; }
  .form-actions:has([data-submit][hidden]) [data-step-prev] { order: 0; }
  .panel > .btn, .panel--contact .btn, .section-head > .btn, [data-news-more] { width: 100%; }
}
.sidebar .form-actions .spacer { flex: 1 1 100%; order: -1; }
.sidebar .form-actions .btn { flex: 1 1 0; }
@media (min-width: 961px) and (max-width: 1060px) { .hero__note { flex-direction: column; } }
/* Three-up specialty cards turn into image-beside-text rows on tablets */
@media (min-width: 601px) and (max-width: 1000px) {
  .grid[style*='--cols:3']:has(> .card > img) { grid-template-columns: 1fr; grid-auto-rows: 1fr; }
  .grid[style*='--cols:3'] > .card:has(> img) { flex-direction: row; }
  .grid[style*='--cols:3'] > .card > img, .grid[style*='--cols:3'] > .card > picture { flex: 0 0 38%; width: 38%; aspect-ratio: auto; height: auto; min-height: 100%; object-fit: cover; }
}
/* Nav: compact focus ring, one underline at a time, A-Z link where the intro panel is hidden */
@media (min-width: 1061px) {
  .nav__link:focus-visible { box-shadow: none; }
  .nav__link:focus-visible::before { content: ''; position: absolute; left: 2px; right: 2px; top: 50%; height: 40px; transform: translateY(-50%); box-shadow: var(--ring); border-radius: var(--r-sm); }
}
.nav__list:has([aria-expanded='true']) .nav__link:not([aria-expanded='true'])::after { background: transparent; }
.nav__list:has([aria-expanded='true']) a.nav__link[aria-current='page'] { color: var(--gray-700); }
.mega__az { display: none; }
@media (max-width: 1180px) { .mega__az { display: block; } }
@media (max-width: 520px) {
  .footer-grid, .footer-brand { grid-template-columns: 1fr; }
  .footer-brand { gap: var(--s-3); }
  .news-filter button { min-height: 44px; }
}
/* Card and news titles use the full card width instead of balanced (shortened) lines */
.card h3, .news-item h3, .tile h3 { text-wrap: pretty; }
.chips a { text-decoration: none; color: var(--blue-700); font-weight: 600; }
.chips a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* Specialty directory: balanced columns of name and description */
.dir-list { list-style: none; margin: 0; padding: 0; column-gap: var(--s-7); }
.dir-list li { break-inside: avoid; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.dir-list strong { display: block; font: 700 1rem/1.35 var(--font-display); color: var(--gray-900); }
.dir-list p { margin: 4px 0 0; font-size: 0.875rem; color: var(--text-muted); }

/* ---------- Reviews ---------- */
.split--balanced { align-items: stretch; }
.split--balanced > div:first-child { align-self: center; }
.h3 { font-size: var(--fs-h3); }
.stars { display: inline-flex; gap: 2px; color: #f5a524; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.review-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-3) var(--s-6); padding: var(--s-5) var(--s-6); margin-bottom: var(--s-6); border: 1px solid var(--gray-200); border-radius: var(--r-lg); background: var(--gray-50); }
.review-summary__score { display: flex; align-items: center; gap: var(--s-3); }
.review-summary__num { font: 700 2.5rem/1 var(--font-display); color: var(--gray-900); letter-spacing: var(--tracking-head); }
.review-summary .stars svg { width: 22px; height: 22px; }
.review-summary__count { margin: 0; font-weight: 600; color: var(--gray-900); }
.review-summary__source { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--blue-700); text-decoration: none; }
a.review-summary__source:hover { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 640px) { .review-summary { grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-5); } }
.review-viewport { margin: -8px; padding: 8px; }
.review-track { display: grid; }
.review-page { grid-area: 1 / 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--per, 3), minmax(0, 1fr)); gap: var(--s-5); align-content: start; opacity: 0; visibility: hidden; transition: opacity 500ms ease, visibility 0s linear 500ms; }
.review-page.is-active { opacity: 1; visibility: visible; transition: opacity 500ms ease; }
.review-card { display: flex; flex-direction: column; gap: var(--s-4); min-height: var(--card-h, 0); padding: var(--s-6); background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.review-card__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: var(--s-3); }
.review-card__quote { margin: 0; color: var(--gray-700); line-height: 1.65; }
.review-card__more { align-self: flex-start; font-size: var(--fs-sm); font-weight: 600; color: var(--blue-700); text-decoration: none; }
.review-card__more:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.review-card__by { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--gray-200); }
.review-card__avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50); color: var(--blue-800); font: 700 1rem/1 var(--font-display); }
.review-card__name { display: block; font-weight: 700; color: var(--gray-900); font-size: var(--fs-sm); text-decoration: none; }
a.review-card__name:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.review-controls { display: flex; align-items: center; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }
.review-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gray-300); background: #fff; color: var(--blue-700); cursor: pointer; }
.review-arrow:hover { border-color: var(--blue-700); background: var(--blue-50); }
.review-arrow .icon { width: 18px; height: 18px; }
.review-arrow[data-review-prev] .icon { transform: rotate(180deg); }
.review-dots { display: flex; gap: 6px; }
.review-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--gray-300); cursor: pointer; position: relative; }
.review-dots button::after { content: ''; position: absolute; inset: -12px; }
.review-dots button[aria-current='true'] { background: var(--blue-700); width: 26px; border-radius: 5px; }
.review-pause { margin-left: var(--s-3); min-height: 44px; padding: 0 var(--s-3); border: 0; background: none; color: var(--gray-600); font: 600 var(--fs-sm)/1 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.review-fallback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); }
.review-fallback > div:first-child { max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .review-page { transition: none; } }
.panel .steps h3 { font-size: 1.0625rem; }

/* ===== Balanced layouts (replace the long-column + sidebar pattern) ===== */
.mt-7 { margin-top: var(--s-7); }
.prose .ticks { padding-left: 0; }
.split > .prose { max-width: none; }
.split .prose h2 { font-size: var(--fs-h3); }
.split .prose .eyebrow + h2 { font-size: var(--fs-h2); }
.split .prose .eyebrow + h2 { margin-top: 0; }
.split .prose > .faq { margin-top: var(--s-3); }
@media (max-width: 1100px) { .split { gap: var(--s-6); } }
.faq-split .lead { margin: 0; }
.def-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gray-200); }
.def-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-2) var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--gray-200); }
.def-list h3 { font-size: 1.0625rem; margin: 0; }
.def-list p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.prose .def-list { padding: 0; } .prose .def-list li { margin: 0; }
@media (max-width: 1100px) and (min-width: 901px), (max-width: 520px) { .def-list li { grid-template-columns: 1fr; } }
.steps--grid.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .steps--grid.steps--3 { grid-template-columns: 1fr; } }
.ticks--row { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--s-3) var(--s-6); margin: 0; }
@media (max-width: 860px) { .ticks--row { grid-template-columns: 1fr; } }
.link-list--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
.link-list--2 li:nth-last-child(2):nth-child(odd) a { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 520px) { .link-list--2 { grid-template-columns: 1fr; } .link-list--2 li:nth-last-child(2) a { border-bottom: 1px solid var(--gray-200); padding-bottom: 12px; } }
@media (min-width: 1100px) {
  .form-card--wide .form-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 24px; }
  .form-card--wide .form-grid > * { grid-column: span 3; }
  .form-card--wide .form-grid > .full { grid-column: 1 / -1; }
  .form-card--wide .form-grid > .w-third { grid-column: span 4; }
  .form-card--wide .form-grid > .w-half { grid-column: span 6; }
  .form-card--wide .form-grid > .w-full { grid-column: 1 / -1; }
  .form-card--wide .med-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .form-card--wide .check { max-width: 120ch; }
}
.container--doc { width: min(860px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.page-head .container--doc { display: block; }
.container--doc .prose { max-width: none; }
.legal-toc--band { position: static; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); font-size: var(--fs-sm); }
.legal-toc--band .eyebrow { margin-bottom: var(--s-3); }
.legal-toc--band ol { margin: 0; padding-left: 1.4em; display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--toc-rows, 4), auto); grid-template-columns: repeat(var(--toc-cols, 2), minmax(0, 1fr)); gap: 6px var(--s-6); }
@media (max-width: 700px) { .legal-toc--band ol { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr; } }
@media (min-width: 901px) {
  .page-head--image > .container > img { align-self: stretch; height: 100%; min-height: 300px; max-height: 460px; aspect-ratio: auto; contain: size; object-fit: cover; }
  .split:not(.split--top) > .split__media { align-self: stretch; display: grid; }
  .split:not(.split--top) > .split__media img { height: 100%; min-height: 320px; aspect-ratio: auto; contain: size; }
}
.spec-links.spec-links--flow, .dir-list { display: grid; grid-auto-flow: column; columns: auto; grid-template-columns: repeat(var(--flow-cols, 4), minmax(0, 1fr)); grid-template-rows: repeat(var(--flow-rows, 1), auto); }
@media (max-width: 1060px) { .spec-links.spec-links--flow, .dir-list { grid-template-columns: repeat(var(--flow-cols-md, 2), minmax(0, 1fr)); grid-template-rows: repeat(var(--flow-rows-md, 1), auto); } }
@media (max-width: 520px) { .spec-links.spec-links--flow, .dir-list { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; } }
.split__full { grid-column: 1 / -1; }
.review-counter { min-width: 72px; text-align: center; font-size: var(--fs-sm); font-weight: 600; color: var(--gray-700); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .review-summary__sep { display: none; } .review-summary__count span:not(.review-summary__sep) { display: block; } }
