/* ===========================================================
   Kidney Hypertension Clinic — design system
   Calm Red / White / Navy · plain CSS, mobile-first, accessible
   =========================================================== */

:root {
  /* Brand palette */
  --navy-900: #0f1d36;
  --navy-800: #15294a;
  --navy:     #1a2a4f;
  --navy-600: #2b4575;
  --navy-400: #5d77a6;
  --red:      #c1273b;
  --red-600:  #a81f31;
  --red-100:  #fbe9eb;

  --ink:      #16202f;
  --muted:    #586374;
  --bg:       #ffffff;
  --bg-soft:  #f4f8fd;
  --bg-tint:  #eaf1fa;
  --line:     #e2e9f2;

  --line:     #e2e9f2;
  --hairline: #eceff5;

  /* Shape & depth — soft, layered, "designer" shadows */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --maxw: 1200px;

  --shadow-sm: 0 1px 2px rgba(16,32,60,.05), 0 4px 10px -4px rgba(16,32,60,.07);
  --shadow:    0 14px 34px -16px rgba(16,32,60,.22), 0 5px 12px -8px rgba(16,32,60,.10);
  --shadow-lg: 0 40px 80px -28px rgba(16,32,60,.32), 0 16px 32px -18px rgba(16,32,60,.16);
  --ring: 0 0 0 4px rgba(193,39,59,.20);

  --ease: cubic-bezier(.4,.15,.2,1);

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* offset for sticky header on anchor jumps */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem; /* 17px at default root; scales with accessibility text-size */
  letter-spacing: .1px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 3.8rem); }
h2 { font-size: clamp(1.85rem, 3.9vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
.section-sub, p { text-wrap: pretty; }

p { margin: 0 0 1rem; }

a { color: var(--red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red-600); }

img, iframe, svg { max-width: 100%; }

section[id] { scroll-margin-top: 88px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .65rem 1rem;
  z-index: 1000;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.6), var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  height: 46px;
  width: auto;
  transition: transform .25s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.03); }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--navy-600);
  font-weight: 600;
  font-size: .98rem;
  padding: .45rem 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:hover { color: var(--navy); }
.site-nav a:hover::after { transform: scaleX(1); }

/* turn the last nav item into a CTA pill (desktop) */
.site-nav li:last-child a {
  background: linear-gradient(135deg, var(--red), var(--red-600));
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.site-nav li:last-child a::after { display: none; }
.site-nav li:last-child a:hover {
  color: #fff;
  box-shadow: 0 6px 16px rgba(193,39,59,.35);
  transform: translateY(-1px);
}

/* Mobile nav toggle (CSS-only) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-label span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-600));
  color: #fff;
  box-shadow: 0 8px 20px rgba(193,39,59,.30);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(193,39,59,.40); }
.btn-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.btn-light:hover { background: #f1f5fb; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(93,119,166,.45), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(193,39,59,.24), transparent 55%),
    linear-gradient(160deg, rgba(15,29,54,.88) 0%, rgba(26,42,79,.80) 55%, rgba(21,41,74,.90) 100%),
    url("images/hero.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(5rem, 11vw, 8rem);
}
/* subtle grid texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
/* floating gradient orbs */
.hero-orbs { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  will-change: transform;
}
.hero-orbs span:nth-child(1) {
  width: 360px; height: 360px; top: -90px; left: -60px;
  background: radial-gradient(circle, rgba(193,39,59,.85), transparent 70%);
  animation: orb-a 16s ease-in-out infinite;
}
.hero-orbs span:nth-child(2) {
  width: 420px; height: 420px; top: -40px; right: -80px;
  background: radial-gradient(circle, rgba(93,119,166,.9), transparent 70%);
  animation: orb-b 20s ease-in-out infinite;
}
.hero-orbs span:nth-child(3) {
  width: 300px; height: 300px; bottom: -120px; left: 45%;
  background: radial-gradient(circle, rgba(43,69,117,.95), transparent 70%);
  animation: orb-a 22s ease-in-out infinite reverse;
}
@keyframes orb-a { 50% { transform: translate(50px, 40px) scale(1.1); } }
@keyframes orb-b { 50% { transform: translate(-40px, 30px) scale(1.08); } }

.hero-inner { max-width: 800px; position: relative; }
/* hero entrance: content fades up in sequence */
.hero .eyebrow   { animation: fade-up .7s var(--ease) both; }
.hero h1         { animation: fade-up .7s var(--ease) .1s both; }
.hero-tagline    { animation: fade-up .7s var(--ease) .2s both; }
.hero-actions    { animation: fade-up .7s var(--ease) .3s both; }
.hero-trust      { animation: fade-up .7s var(--ease) .4s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { color: #ffd0d6; }
/* hero title in a slab serif to echo the logo lettering (kept as real text for SEO) */
.hero-title-logo {
  font-family: "Roboto Slab", Rockwell, Georgia, serif;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .005em;
}
.eyebrow {
  display: inline-block;
  max-width: 100%;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  color: #eaf0fb;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  padding: .5rem 1.05rem;
  border-radius: var(--radius-pill);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(193,39,59,.30);
  margin-right: .55rem;
  vertical-align: middle;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #d8e2f1;
  margin: 0 auto 2.2rem;
  max-width: 640px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-trust {
  margin: 1.8rem 0 0;
  font-size: .9rem;
  color: #b9c6dc;
  letter-spacing: .3px;
}
.hero-trust strong { color: #fff; font-weight: 700; }

/* ---------- Stats band ---------- */
.stats {
  position: relative;
  z-index: 3;
  margin-top: clamp(-4rem, -6vw, -3rem);
}
.stats-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  text-align: center;
  padding: 1.8rem 1rem;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  line-height: 1;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  margin: .5rem 0 0;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-alt { background: var(--bg-soft); }
/* subtle divider where a section meets a different-toned one */
.section-alt + .section,
.section + .section-alt { position: relative; }
.section-alt + .section::before,
.section + .section-alt::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: min(1140px, 88%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,32,60,.10), transparent);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.6rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--red));
}
.section-head .kicker::after {
  content: "";
  width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.section-head h2 { position: relative; }
.section-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin: 1.1rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-600));
}
.section-sub { color: var(--muted); font-size: 1.1rem; line-height: 1.65; margin: 0; }

/* ---------- Cards (shared) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.9rem;
}

/* ---------- Features / Why choose us ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  text-align: left;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--red-100);
  color: var(--red);
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: .4rem; }
.feature-card p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Providers ---------- */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 1.6rem;
}
.provider-card {
  text-align: center;
  padding: 0;
  overflow: hidden;
  border-top: 4px solid var(--red);
  transition: box-shadow .25s var(--ease), transform .2s var(--ease);
}
.provider-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.provider-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: var(--bg-tint);
}
.provider-photo--initials {
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
}
.provider-body { padding: 1.4rem 1.4rem 1.6rem; }
.provider-name { margin-bottom: .15rem; font-size: 1.12rem; }
.provider-title {
  color: var(--red);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 .8rem;
}
.provider-bio { color: var(--muted); font-size: .96rem; margin: 0; }

/* Clickable provider cards -> individual profile pages */
.provider-link { color: inherit; text-decoration: none; }
.provider-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.provider-card:hover .provider-name { color: var(--red); }
.provider-body::after {
  content: "View profile \2192";
  display: block;
  margin-top: 1rem;
  color: var(--red);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .3px;
  transition: transform .2s var(--ease);
}
.provider-card:hover .provider-body::after { transform: translateX(3px); }

/* ============================================================
   Physician profile pages (dr-*.html)
   ============================================================ */
.doc-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

/* Big name across the top */
.doc-head { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.doc-head .kicker { margin-bottom: .4rem; }
.doc-head h1 { margin: .35rem 0 .3rem; }
.doc-role {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: .95rem;
  margin: 0;
}

/* Three columns: photo · bio · quick facts */
.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 3.5vw, 3rem);
  align-items: start;
}
.doc-photo-col { position: sticky; top: 100px; }
img.doc-photo, .doc-photo--initials {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: center top;
  background: var(--bg-tint);
}
.doc-photo--initials {
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
}
.doc-bio h2 { margin: 0 0 1.1rem; }
.doc-bio p { margin: 0 0 1.1rem; font-size: 1.05rem; line-height: 1.75; }
.doc-bio p:last-child { margin-bottom: 0; }
.doc-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

.doc-facts { align-self: start; padding: 1.8rem; }
.doc-facts h3 {
  font-size: 1.05rem;
  margin: 0 0 1.2rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--hairline);
}
.doc-facts dl { margin: 0; }
.doc-fact { padding: .7rem 0; border-bottom: 1px solid var(--hairline); }
.doc-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.doc-fact dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: .25rem;
}
.doc-fact dd { margin: 0; color: var(--navy); font-weight: 500; line-height: 1.5; }

/* One-liner pinned to the bottom */
.doc-lead {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--hairline);
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--navy);
  max-width: 62ch;
}

@media (max-width: 1080px) {
  .doc-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); }
  .doc-photo-col { position: static; }
  .doc-facts { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .doc-grid { grid-template-columns: 1fr; }
  .doc-photo-col { max-width: 320px; }
}

/* ---------- Services ---------- */
.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-weight: 600;
  color: var(--navy);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.service-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cdd9ea;
}
.svc-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--red-100);
  color: var(--red);
}
.svc-icon svg { width: 23px; height: 23px; }
.service-item a {
  color: var(--navy);
  font-weight: 700;
  display: block;
  width: 100%;
}
.service-item a:hover { color: var(--red); }
.service-item--link { position: relative; cursor: pointer; }
.svc-link { text-decoration: none; }
.svc-link::after { content: ""; position: absolute; inset: 0; }
.service-item--link:hover { border-color: #cdd9ea; }
.service-item--link:hover .svc-icon { background: var(--red); color: #fff; }

/* ---------- Locations ---------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.location-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease);
}
.location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---- Location finder ---- */
.loc-finder { max-width: 640px; margin: 0 auto 2.8rem; }
.loc-finder-row { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
#loc-input {
  flex: 1 1 260px;
  min-width: 0;
  padding: .85rem 1.1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
#loc-input::placeholder { color: #9aa6b8; }
#loc-input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.loc-finder .btn { flex: 0 0 auto; }
.loc-finder.is-busy { opacity: .7; pointer-events: none; }
.loc-finder-status { text-align: center; margin: .9rem 0 0; min-height: 1.2em; color: var(--muted); font-size: .92rem; }
.loc-finder-status.is-error { color: var(--red); }
@media (max-width: 560px) {
  .loc-finder-row { flex-direction: column; }
  .loc-finder .btn { width: 100%; }
}

/* ---- Drive-time pill on each card + "closest" highlight ---- */
.location-distance {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .25rem 1.5rem .1rem;
  margin: .1rem 0 .2rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
}
.location-card.has-distance .location-distance { display: flex; }
.location-distance svg { color: var(--red); flex: 0 0 auto; }
.location-distance .ld-time { color: var(--red); }
.location-distance .ld-sep { color: var(--muted); font-weight: 400; }
.location-distance .ld-dist { color: var(--navy); font-weight: 600; }
.location-distance .ld-dir {
  flex-basis: 100%;
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-top: .1rem;
}
.location-distance .ld-dir:hover { color: var(--red); text-decoration: underline; }
.location-distance .ld-na { color: var(--muted); font-weight: 500; font-size: .9rem; }

.location-card.is-nearest {
  border: 2px solid var(--red);
  transform: scale(1.045);
  z-index: 3;
  box-shadow: 0 0 0 5px rgba(197, 32, 47, .10), var(--shadow-lg);
}
.location-card.is-nearest:hover { transform: scale(1.045) translateY(-4px); }
.location-card.is-nearest .location-city .loc-name { color: var(--red); }
.location-card.is-nearest .location-distance { font-size: 1.02rem; }
.location-card.is-nearest::before {
  content: "★ Closest to you";
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg, var(--red), var(--red-600));
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: .34rem .7rem;
  border-bottom-left-radius: var(--radius-sm);
  box-shadow: 0 6px 14px -6px rgba(197, 32, 47, .6);
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .location-card.is-nearest, .location-card.is-nearest:hover { transform: none; }
}
html.a11y-motion .location-card.is-nearest,
html.a11y-motion .location-card.is-nearest:hover { transform: none; }

/* ---- Office-page "closest location" banner (set by office-nearest.js) ---- */
.nearest-banner { width: 100%; }
.nearest-banner-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1.3rem;
  padding: .95rem 0;
}
.nearest-banner.is-closest {
  background: linear-gradient(135deg, var(--red), var(--red-600));
  color: #fff;
}
.nearest-banner:not(.is-closest) {
  background: var(--bg-tint);
  color: var(--navy);
  border-bottom: 1px solid var(--hairline);
}
.nb-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .2);
  padding: .4rem .8rem;
  border-radius: var(--radius-pill);
}
.nb-detail { font-size: 1.02rem; font-weight: 600; }
.nearest-banner:not(.is-closest) .nb-detail strong { color: var(--red); }
.nb-from { opacity: .85; font-weight: 500; }
.location-city {
  padding: 1.3rem 1.5rem .2rem;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.loc-name { color: var(--navy); text-decoration: none; }
.loc-name:hover { color: var(--red); text-decoration: underline; }
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), var(--red-600));
  color: #fff;
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: .22rem .6rem;
  border-radius: var(--radius-pill);
}
.location-address {
  font-style: normal;
  color: var(--muted);
  padding: 0 1.5rem;
  margin: .5rem 0;
}
.location-phone {
  padding: 0 1.5rem .4rem;
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.location-text {
  padding: 0 1.5rem .7rem;
  margin: 0;
  font-weight: 600;
  font-size: .98rem;
}
.location-link { padding: 0 1.5rem 1.2rem; margin: 0; }
.location-link a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: .92rem;
}
.location-link a:hover { gap: .6rem; }
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.05);
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.8rem;
  align-items: start;
}
.contact-info h3 { color: var(--navy); font-size: 1.35rem; }
.contact-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}
.contact-list li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-label {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .15rem;
}
.contact-list a, .contact-list span:not(.contact-label) { font-size: 1.05rem; }
.contact-note {
  font-size: .9rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-left: 3px solid var(--red);
  padding: .9rem 1.1rem;
  border-radius: 0 8px 8px 0;
}

/* Form */
.contact-form { padding: 2rem; }
.form-row { margin-bottom: 1.15rem; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--navy);
  font-size: .95rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: var(--ring);
}
.contact-form .btn { width: 100%; margin-top: .3rem; }
.form-check { display: flex; align-items: flex-start; gap: .6rem; }
.form-check input {
  width: auto;
  flex: 0 0 auto;
  margin: .2rem 0 0;
  accent-color: var(--red);
}
.form-check label {
  margin: 0;
  font-weight: 400;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}
.form-check label a { font-weight: 600; }

/* ---------- Location-page additions ---------- */
.crumbs {
  font-size: .9rem;
  color: var(--muted);
  padding: 1.2rem 0 0;
}
.crumbs a { color: var(--navy); font-weight: 600; }
.crumbs [aria-current="page"] { color: var(--muted); }

.hero-loc { text-align: left; padding: clamp(3rem, 7vw, 4.5rem) 0; }
.hero-loc .hero-inner { max-width: 800px; margin: 0; }
.hero-loc .hero-actions { justify-content: flex-start; }

.map-col { display: flex; flex-direction: column; }
.map-directions { margin: 1.1rem 0 0; }
.map-directions .btn { width: 100%; }
.map-embed-page {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.docs-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
}
.docs-list li {
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  margin-bottom: .8rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer (premium multi-column) ---------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(1100px 380px at 85% -20%, rgba(193,39,59,.14), transparent 60%),
    linear-gradient(180deg, var(--navy-900), #0b1730);
  color: #aeb9cf;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--navy-400), var(--red));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.3fr 1.2fr;
  gap: 2.6rem;
}
.footer-brand {
  font-family: var(--font-head);
  color: #fff;
  font-weight: 800;
  font-size: 1.22rem;
  margin: 0 0 .7rem;
  letter-spacing: -.01em;
}
.footer-tagline { color: #93a3bf; font-size: .92rem; line-height: 1.65; margin: 0 0 1rem; max-width: 34ch; }
.footer-reach { margin: 0; font-size: .92rem; color: #cdd8ea; }
.footer-col h4 {
  color: #fff; font-family: var(--font-head); font-size: .82rem;
  text-transform: uppercase; letter-spacing: 1.4px; margin: 0 0 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-locs ul { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.2rem; }
.footer-visit p { font-size: .92rem; color: #93a3bf; line-height: 1.65; margin: 0 0 .9rem; }
.site-footer a { color: #c2cee0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer-copy { margin: 0; font-size: .82rem; color: #7e8eaa; }
.footer-legal { margin: 0; font-size: .82rem; }
.footer-legal a { font-size: .82rem; }
.link-btn {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-size: .82rem; color: #c2cee0; cursor: pointer;
}
.link-btn:hover { color: #fff; text-decoration: underline; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 1200;
  max-width: 880px;
  margin: 0 auto;
  background: var(--navy-900);
  color: #dde5f1;
  border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.05rem 1.3rem;
  animation: cookie-rise .45s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-icon { flex: 0 0 auto; color: var(--red); display: grid; place-items: center; }
.cookie-icon svg { width: 28px; height: 28px; }
.cookie-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: #cdd8e8;
}
.cookie-text a { color: #fff; text-decoration: underline; font-weight: 600; }
.cookie-actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.cookie-banner .btn { padding: .58rem 1.35rem; font-size: .92rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
@keyframes cookie-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Legal / prose ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 .3rem; }
.legal h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 .7rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--line);
}
.legal h3 { font-size: 1.08rem; margin: 1.3rem 0 .4rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .45rem; }
.legal .muted { color: var(--muted); }
.legal .eff { color: var(--muted); font-style: italic; margin: 0 0 1.6rem; }
.legal .intro {
  background: var(--bg-tint);
  border-left: 4px solid var(--navy);
  padding: 1rem 1.2rem;
  border-radius: 0 10px 10px 0;
  margin: 0 0 1.5rem;
}
.legal .banner {
  background: var(--red-100);
  border-left: 4px solid var(--red);
  padding: 1rem 1.2rem;
  border-radius: 0 10px 10px 0;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.5rem;
}
.legal .contact {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin-top: .6rem;
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 1rem; }
.legal table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: .95rem;
}
.legal th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: .7rem .9rem;
  font-family: var(--font-head);
  font-weight: 700;
}
.legal td { border: 1px solid var(--line); padding: .7rem .9rem; }

/* ---------- Media row (image + text) ---------- */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.media-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.media-text h2 { margin-bottom: .8rem; }
.media-text p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.check-list li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: .7rem;
  color: var(--ink);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: .1em;
  width: 1.4rem; height: 1.4rem;
  display: grid; place-items: center;
  background: var(--red-100);
  color: var(--red);
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
}
@media (max-width: 760px) {
  .media-row { grid-template-columns: 1fr; }
  .media-figure, .rpm-figure, .lab-figure, .collab-figure { order: -1; }
}

/* ---------- Location office photo ---------- */
.office-photo { margin-bottom: 2rem; }
.office-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Remote Patient Monitoring phone ---------- */
.rpm-stage {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  /* ===== Fine-tune these to align the fill to the phone screen ===== */
  --screen-top: 18%;
  --screen-left: 30.5%;
  --screen-width: 46%;
  --screen-height: 81%;
  /* ================================================================= */
}
.rpm-phone { display: block; width: 100%; height: auto; }

.rpm-screen {
  position: absolute;
  top: var(--screen-top);
  left: var(--screen-left);
  width: var(--screen-width);
  height: var(--screen-height);
  container-type: inline-size;
  overflow: hidden;
  border-radius: 8% / 6%;            /* matches the phone screen's rounded corners */
  background: #000;
  color: #fff;
  display: flex;
  /* Translucent / ombre edges: the fill fades out near all four edges so the
     boundary blends into the black screen even if alignment isn't pixel-perfect. */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
.rpm-screen[data-stage="off"] { background: #000; }

.rpm-ui {
  width: 100%;
  padding: 7cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5cqw;
  opacity: 1;
  transition: opacity .55s var(--ease);
}
.rpm-screen[data-stage="off"] .rpm-ui { opacity: .08; }

.rpm-top {
  display: flex; align-items: center; gap: 2.4cqw;
  font-size: 4.4cqw; font-weight: 700; letter-spacing: .3cqw;
  text-transform: uppercase; color: #c4d1ea;
}
.rpm-dot {
  width: 3.4cqw; height: 3.4cqw; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 1.6cqw rgba(193,39,59,.30);
}

/* sync stage */
.rpm-greeting { margin: 0; font-size: 6cqw; line-height: 1.32; font-weight: 600; color: #eaf0fb; }
.rpm-syncbar { margin-top: 1cqw; }
.rpm-syncbar-label { display: block; font-size: 4.6cqw; color: #a9b8d6; margin-bottom: 2.6cqw; }
.rpm-track { height: 3cqw; border-radius: 2cqw; background: rgba(255,255,255,.16); overflow: hidden; }
.rpm-fill {
  display: block; height: 100%; width: 0; border-radius: 2cqw;
  background: linear-gradient(90deg, var(--red), #e35c6e);
}
.rpm-screen[data-stage="sync"] .rpm-fill { width: 100%; transition: width 1.8s linear; }

/* reading stage */
.rpm-greeting-short { margin: 0; font-size: 5cqw; font-weight: 600; color: #a9b8d6; }
.rpm-bp { display: flex; align-items: center; gap: 2.2cqw; margin: 1.5cqw 0 1cqw; }
.rpm-pulse {
  position: relative; flex: 0 0 auto;
  width: 10cqw; height: 10cqw; display: grid; place-items: center; color: var(--red);
}
.rpm-pulse svg { width: 6.4cqw; height: 6.4cqw; }
.rpm-pulse::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1cqw solid var(--red); opacity: .55;
}
.rpm-vals { font-family: var(--font-head); font-weight: 800; font-size: 16cqw; line-height: 1; color: #fff; white-space: nowrap; }
.rpm-slash { color: #7f93b8; font-weight: 600; margin: 0 .3cqw; }
.rpm-unit { align-self: flex-end; font-size: 4.2cqw; color: #a9b8d6; margin-bottom: 2.6cqw; }
.rpm-done { margin: 0; font-size: 5cqw; font-weight: 700; color: #4ed99a; opacity: 0; transition: opacity .4s var(--ease); }
.rpm-screen[data-stage="done"] .rpm-done { opacity: 1; }

/* stage visibility */
.rpm-reading { display: none; }
.rpm-screen[data-stage="reading"] .rpm-sync,
.rpm-screen[data-stage="done"] .rpm-sync { display: none; }
.rpm-screen[data-stage="reading"] .rpm-reading,
.rpm-screen[data-stage="done"] .rpm-reading { display: block; }

/* pulse + heartbeat (only while reading/done, and only if motion allowed) */
.rpm-screen[data-stage="reading"] .rpm-pulse svg,
.rpm-screen[data-stage="done"] .rpm-pulse svg { animation: rpm-beat 1.5s ease-in-out infinite; }
.rpm-screen[data-stage="reading"] .rpm-pulse::before,
.rpm-screen[data-stage="done"] .rpm-pulse::before { animation: rpm-ring 1.5s ease-out infinite; }
@keyframes rpm-beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } }
@keyframes rpm-ring { 0% { transform: scale(.7); opacity: .7; } 80%,100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Careers ---------- */
.job-list { display: flex; flex-direction: column; gap: 1rem; max-width: 860px; margin: 0 auto; }
.job {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap; padding: 1.2rem 1.6rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.job-title { margin: 0 0 .2rem; font-size: 1.15rem; }
.job-meta { margin: 0; color: var(--muted); font-size: .92rem; }
.job .btn { flex: 0 0 auto; }
.job-note { text-align: center; color: var(--muted); font-size: .88rem; margin: 1.6rem 0 0; }
.quote {
  border-left: 4px solid var(--red);
  padding: .3rem 0 .3rem 1.2rem;
  margin: 0 0 1.4rem;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
}
.quote cite { display: block; margin-top: .6rem; font-style: normal; font-weight: 700; font-size: .88rem; color: var(--muted); }

/* application form */
.apply-form { max-width: 620px; margin: 0 auto; }
.form-hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.form-fineprint { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }
.apply-form input[type="file"] {
  padding: .55rem .6rem;
  background: var(--bg-soft);
  cursor: pointer;
}
.apply-form input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  padding: .5rem .95rem;
  margin-right: .85rem;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.apply-form input[type="file"]::file-selector-button:hover { background: var(--navy-600); }

/* thank-you page */
.thanks-card { max-width: 620px; margin: 0 auto; text-align: center; padding: 3rem 2rem; }
.thanks-check {
  width: 72px; height: 72px; margin: 0 auto 1.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--red-100);
  color: var(--red);
}
.thanks-check svg { width: 36px; height: 36px; }
.thanks-card p { color: var(--muted); max-width: 460px; margin: 0 auto 1.8rem; }
.thanks-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-on-light { color: var(--navy); border-color: var(--navy-400); background: transparent; }
.btn-on-light:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Lab trends (high-tech dashboard) ---------- */
.lab-intro { margin-bottom: 2.4rem; }

.lab-chart {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.8rem 1.4rem;
  color: #fff;
  background: linear-gradient(160deg, #0f1d36 0%, #1a2a4f 58%, #112038 100%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-lg);
}
.lab-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.lab-chart-head h3 { margin: 0; color: #fff; font-size: 1.1rem; }
.lab-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(193,39,59,.20); color: #ff9aa6; border: 1px solid rgba(193,39,59,.45);
  font-size: .74rem; font-weight: 700; letter-spacing: .3px;
  padding: .32rem .75rem; border-radius: var(--radius-pill); white-space: nowrap;
  opacity: 0; transform: translateY(-2px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
html:not(.js) .lab-badge { opacity: 1; transform: none; }
.lab-trends.done .lab-badge { opacity: 1; transform: none; }

.lab-svg { display: block; width: 100%; height: auto; }
.lab-grid line { stroke: rgba(255,255,255,.07); }
.lab-area { fill: url(#lab-area-grad); }
.lab-line { stroke: var(--red); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(193,39,59,.55)); }
.lab-dots circle { fill: #fff; stroke: var(--red); stroke-width: 2; }
.lab-heart { fill: var(--red); transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 8px rgba(193,39,59,.6)); }
html.js .lab-heart { opacity: 0; }
.lab-marker { fill: #fff; stroke: var(--red); stroke-width: 2.5; opacity: 0; filter: drop-shadow(0 0 6px rgba(193,39,59,.9)); }
.lab-anim { transition: opacity .5s var(--ease); }
.lab-trends.fading .lab-anim,
.lab-trends.fading .lab-badge { opacity: 0; transition: opacity .6s var(--ease); }
.lab-trends.beat-on .lab-heart { animation: lab-beat .7s ease 2; }
@keyframes lab-beat { 0%,100% { transform: scale(1); } 25% { transform: scale(1.13); } 50% { transform: scale(1); } 75% { transform: scale(1.07); } }
.lab-cap { margin: .75rem 0 0; font-size: .8rem; color: #9fb0cc; text-align: center; }

/* word-by-word headline */
.lab-head .rw { display: inline-block; }
html.js .lab-head .rw { opacity: 0; }
.lab-trends.in-view .lab-head .rw { animation: lab-word .5s var(--ease) both; }
@keyframes lab-word { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }

/* points row */
.lab-points { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.lab-points li { display: flex; gap: .9rem; align-items: flex-start; }
.lab-ic { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--red-100); color: var(--red); }
.lab-ic svg { width: 22px; height: 22px; }
.lab-points strong { display: block; color: var(--navy); margin-bottom: .15rem; }
.lab-points span { color: var(--muted); font-size: .93rem; }
@media (max-width: 760px) { .lab-points { grid-template-columns: 1fr; gap: 1.2rem; } }

/* reduced motion: show finished graph + filled heart, no animation */
@media (prefers-reduced-motion: reduce) {
  .lab-marker { opacity: 0 !important; }
  .lab-heart { opacity: 1 !important; }
  .lab-badge { opacity: 1 !important; transform: none !important; }
  .lab-head .rw { opacity: 1 !important; transform: none !important; animation: none !important; }
}
html.a11y-motion .lab-marker { opacity: 0 !important; }
html.a11y-motion .lab-heart { opacity: 1 !important; }
html.a11y-motion .lab-badge { opacity: 1 !important; transform: none !important; }
html.a11y-motion .lab-head .rw { opacity: 1 !important; transform: none !important; animation: none !important; }

/* ---------- Collaborative, team-based care ---------- */
.collab-video-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--navy);
}
html.js .collab-video-wrap { clip-path: inset(0 100% 0 0); }
.collab.in-view .collab-video-wrap { clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease); }
.collab-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.collab.in-view .collab-video { animation: collab-kenburns 22s ease-in-out infinite alternate; }
@keyframes collab-kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1.5%); } }

.collab-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: linear-gradient(135deg, var(--red), var(--red-600));
  color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; padding: .4rem .8rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.collab-chip {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 14px; padding: .55rem .8rem; box-shadow: var(--shadow);
}
.collab-initials { display: inline-flex; flex: 0 0 auto; }
.collab-initials span {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: .6rem; font-weight: 800;
  color: #fff; background: var(--navy); border: 2px solid #fff; margin-left: -9px;
}
.collab-initials span:first-child { margin-left: 0; }
.collab-initials span:nth-child(even) { background: var(--red); }
.collab-chip-text { font-size: .8rem; font-weight: 600; color: var(--navy); line-height: 1.3; }

.collab-head .rw { display: inline-block; }
html.js .collab-head .rw { opacity: 0; }
.collab.in-view .collab-head .rw { animation: lab-word .5s var(--ease) both; }

.collab-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.1rem; }
.collab-points li { display: flex; gap: .9rem; align-items: flex-start; }
.collab-points strong { display: block; color: var(--navy); margin-bottom: .15rem; }
.collab-points div span { color: var(--muted); font-size: .93rem; }
html.js .collab-points li { opacity: 0; }
.collab.in-view .collab-points li { animation: fade-up .5s var(--ease) both; }
.collab.in-view .collab-points li:nth-child(1) { animation-delay: .15s; }
.collab.in-view .collab-points li:nth-child(2) { animation-delay: .28s; }
.collab.in-view .collab-points li:nth-child(3) { animation-delay: .41s; }
.collab.in-view .collab-points li:nth-child(4) { animation-delay: .54s; }

.collab-cta {
  margin-top: 2.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
  border-radius: var(--radius); padding: 1.5rem 1.9rem; color: #fff;
}
.collab-cta p { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.65rem); }
@media (max-width: 760px) { .collab-cta { flex-direction: column; text-align: center; } }

@media (prefers-reduced-motion: reduce) {
  .collab-video { animation: none !important; }
  .collab-video-wrap { clip-path: none !important; }
  .collab-head .rw { opacity: 1 !important; transform: none !important; animation: none !important; }
  .collab-points li { opacity: 1 !important; transform: none !important; animation: none !important; }
}
html.a11y-motion .collab-video { animation: none !important; }
html.a11y-motion .collab-video-wrap { clip-path: none !important; }
html.a11y-motion .collab-head .rw { opacity: 1 !important; transform: none !important; animation: none !important; }
html.a11y-motion .collab-points li { opacity: 1 !important; transform: none !important; animation: none !important; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: .9rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--red-100);
  color: var(--red);
  font-size: 1.2rem; font-weight: 700; line-height: 1;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq-item summary:hover { color: var(--red); }
.faq-a { padding: 0 1.3rem 1.2rem; }
.faq-a p { margin: 0; color: var(--muted); }
.faq-a a { font-weight: 600; }
.faq-a ol { margin: 0; padding-left: 1.25rem; color: var(--muted); }
.faq-a ol li { margin-bottom: .45rem; }
.faq-a ol li:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background:
    radial-gradient(800px 400px at 80% -20%, rgba(193,39,59,.45), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-600));
}
.cta-orbs { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta-orbs span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform;
}
.cta-orbs span:nth-child(1) {
  width: 340px; height: 340px; top: -100px; left: -60px;
  background: radial-gradient(circle, rgba(193,39,59,.9), transparent 70%);
  animation: orb-a 18s ease-in-out infinite;
}
.cta-orbs span:nth-child(2) {
  width: 300px; height: 300px; bottom: -120px; right: -40px;
  background: radial-gradient(circle, rgba(93,119,166,.9), transparent 70%);
  animation: orb-b 22s ease-in-out infinite;
}
.cta-inner { max-width: 640px; position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: #dde6f3; font-size: 1.1rem; margin: 0 auto 1.8rem; max-width: 540px; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Scroll reveal (added by reveal.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .nav-toggle-label { display: flex; }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s var(--ease);
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.5rem 1.2rem;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: .95rem 0; }
  .site-nav a::after { display: none; }
  /* reset CTA pill to plain link inside mobile drawer */
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav li:last-child a {
    background: none;
    color: var(--red);
    padding: .95rem 0;
    box-shadow: none;
    border-radius: 0;
  }
  .site-nav li:last-child a:hover { transform: none; }

  .nav-toggle:checked ~ .site-nav { max-height: 420px; }

  /* animate hamburger into an X */
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .stats-card { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }

  .cookie-icon { display: none; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-orbs, .cta-orbs { display: none; }
}
/* In-site "Reduce motion" accessibility toggle */
html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-motion .hero-orbs,
html.a11y-motion .cta-orbs { display: none; }

/* ===========================================================
   Accessibility widget
   =========================================================== */
.a11y { position: fixed; left: 1rem; top: 50%; transform: translateY(-50%); z-index: 1300; }
.a11y-toggle {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .15s var(--ease), background .2s var(--ease);
}
.a11y-toggle svg { width: 28px; height: 28px; }
.a11y-toggle:hover { transform: scale(1.06); }

.a11y-panel {
  position: fixed;
  left: 5rem; top: 50%; transform: translateY(-50%);
  width: 290px;
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.a11y-head h2 { font-size: 1.2rem; margin: 0; }
.a11y-close {
  background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--muted); padding: 0 .2rem;
}
.a11y-close:hover { color: var(--red); }
.a11y-group { margin-bottom: 1rem; }
.a11y-label {
  display: block; font-weight: 700; color: var(--navy);
  font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .5rem;
}
.a11y-sizes { display: flex; gap: .5rem; }
.a11y-sizes button {
  flex: 1; padding: .5rem 0; line-height: 1;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--navy); font-family: var(--font-head); font-weight: 700; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.a11y-sizes button:hover { border-color: var(--navy-400); }
.a11y-sizes button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.a11y-opt {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin-bottom: .55rem; padding: .7rem .9rem;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--navy); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.a11y-opt:hover { border-color: var(--navy-400); }
.a11y-opt::after { content: "Off"; font-size: .78rem; font-weight: 700; color: var(--muted); }
.a11y-opt[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.a11y-opt[aria-pressed="true"]::after { content: "On"; color: #fff; }
.a11y-reset {
  width: 100%; margin-top: .4rem; padding: .65rem;
  border: 0; border-radius: var(--radius-sm);
  background: var(--bg-tint); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer;
}
.a11y-reset:hover { background: #dce6f3; }

@media (max-width: 560px) {
  .a11y-panel {
    left: 1rem; right: 1rem; top: 4.5rem;
    transform: none; width: auto; max-height: 78vh;
  }
}

/* ===========================================================
   Accessibility state classes (applied to <html>)
   =========================================================== */
html.a11y-font-1 { font-size: 112.5%; }   /* ~18px root */
html.a11y-font-2 { font-size: 125%; }      /* ~20px root */

html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.a11y-links a { text-decoration: underline !important; font-weight: 700; }
.a11y-links .a11y-opt, .a11y-links .a11y-reset, .a11y-links .a11y-sizes button { text-decoration: none !important; }

html.a11y-readable,
html.a11y-readable body,
html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable h4,
html.a11y-readable .btn, html.a11y-readable input, html.a11y-readable select, html.a11y-readable textarea {
  font-family: Verdana, Tahoma, "Segoe UI", sans-serif !important;
}
html.a11y-readable body { line-height: 1.85; letter-spacing: .015em; }
html.a11y-readable p, html.a11y-readable li { line-height: 1.95; }

/* High-contrast mode */
html.a11y-contrast { background: #000; }
html.a11y-contrast body { background: #000; color: #fff; }
html.a11y-contrast .site-header {
  background: #000 !important; border-bottom: 1px solid #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.a11y-contrast .hero, html.a11y-contrast .hero-loc { background: #000 !important; }
html.a11y-contrast .hero::before { display: none; }
html.a11y-contrast .section-alt { background: #0b0b0b !important; }
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast h4,
html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast address, html.a11y-contrast span,
html.a11y-contrast .section-sub, html.a11y-contrast .stat-label, html.a11y-contrast .provider-bio,
html.a11y-contrast .hero-tagline, html.a11y-contrast .footer-meta, html.a11y-contrast .footer-copy,
html.a11y-contrast .footer-brand, html.a11y-contrast .crumbs, html.a11y-contrast .contact-label,
html.a11y-contrast .legal .muted, html.a11y-contrast .eyebrow, html.a11y-contrast .hero-trust {
  color: #fff !important;
}
html.a11y-contrast a, html.a11y-contrast .site-nav a, html.a11y-contrast .crumbs a,
html.a11y-contrast .kicker, html.a11y-contrast .provider-title, html.a11y-contrast .location-phone a {
  color: #ffe500 !important;
}
html.a11y-contrast .card, html.a11y-contrast .stats-card, html.a11y-contrast .service-item,
html.a11y-contrast .feature-card, html.a11y-contrast .location-card, html.a11y-contrast .provider-card,
html.a11y-contrast .contact-form, html.a11y-contrast .docs-list li, html.a11y-contrast .legal .contact,
html.a11y-contrast .legal .intro, html.a11y-contrast .legal .banner, html.a11y-contrast .contact-note {
  background: #000 !important; border-color: #fff !important; box-shadow: none !important;
}
html.a11y-contrast .stat-num { -webkit-text-fill-color: #fff; color: #fff; }
html.a11y-contrast .section-head h2::after { background: #fff !important; }
html.a11y-contrast .feature-icon, html.a11y-contrast .svc-icon { background: #000 !important; border: 1px solid #ffe500; color: #ffe500 !important; }
html.a11y-contrast .btn-primary { background: #ffe500 !important; color: #000 !important; box-shadow: none !important; }
html.a11y-contrast .btn-secondary { background: transparent !important; color: #fff !important; border-color: #fff !important; }
html.a11y-contrast .badge { background: #ffe500 !important; color: #000 !important; }
html.a11y-contrast .form-row input, html.a11y-contrast .form-row select, html.a11y-contrast .form-row textarea {
  background: #000 !important; color: #fff !important; border-color: #fff !important;
}
html.a11y-contrast .legal th { background: #000 !important; border-color: #fff !important; }
html.a11y-contrast .legal td { border-color: #fff !important; }
html.a11y-contrast .site-footer { background: #000 !important; }
html.a11y-contrast .site-footer::before { background: #ffe500 !important; }
/* keep the widget itself readable in contrast mode */
html.a11y-contrast .a11y-panel { background: #000; color: #fff; border-color: #fff; }
html.a11y-contrast .a11y-head h2, html.a11y-contrast .a11y-label { color: #fff; }
html.a11y-contrast .a11y-sizes button, html.a11y-contrast .a11y-opt { background: #000; color: #fff; border-color: #fff; }

/* ============================================================
   Testimonials — draggable shuffle deck
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.testimonials .section-head { margin-bottom: 2.2rem; }
.tdeck-stage { position: relative; display: flex; justify-content: center; max-width: 640px; margin: 0 auto; overflow: hidden; padding: 30px 0; }
.tdeck {
  position: relative;
  width: 540px;
  max-width: 100%;
  height: 430px;
  --fan1: 22%;
  --fan2: 44%;
  --fan3: 66%;
}
.tdeck-card {
  position: absolute;
  top: 0; left: 0;
  width: 320px; height: 410px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.2rem 1.9rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  user-select: none;
  -webkit-user-select: none;
  transition: transform .38s var(--ease), opacity .38s var(--ease);
  will-change: transform;
}
.tdeck-card.is-p0 { z-index: 4; transform: translateX(0) rotate(-6deg); cursor: grab; touch-action: pan-y; }
.tdeck-card.is-p0:active { cursor: grabbing; }
.tdeck-card.is-p1 { z-index: 3; transform: translateX(var(--fan1)) rotate(0deg); }
.tdeck-card.is-p2 { z-index: 2; transform: translateX(var(--fan2)) rotate(6deg); }
.tdeck-card.is-p3 { z-index: 1; transform: translateX(var(--fan3)) rotate(12deg); }
.tdeck-card.is-hidden { z-index: 0; opacity: 0; transform: translateX(var(--fan3)) rotate(12deg); pointer-events: none; }
.tdeck-pile {
  position: absolute; top: 0; left: 0;
  width: 320px; height: 410px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--hairline);
  transform: translateX(var(--fan3)) rotate(12deg);
  z-index: 0;
  box-shadow:
    5px 6px 0 0 #ffffff, 5px 6px 0 1px #e6eaf1,
    10px 12px 0 0 #ffffff, 10px 12px 0 1px #e6eaf1,
    15px 18px 0 0 #ffffff, 15px 18px 0 1px #e1e6ef,
    20px 24px 0 0 #ffffff, 20px 24px 0 1px #dbe2ec;
}

.tdeck-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.2rem; letter-spacing: .5px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
}
.tdeck-stars { color: #f5a623; letter-spacing: 3px; font-size: 1.05rem; }
.tdeck-quote { margin: 0; font-size: 1.05rem; line-height: 1.6; font-style: italic; font-weight: 500; color: var(--navy); }
.tdeck-name { margin: 0; font-weight: 700; color: var(--red); font-size: .95rem; }
.tdeck-name span { color: var(--muted); font-weight: 500; }

.tdeck-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  background: #fff; color: var(--navy);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tdeck-arrow:hover { background: var(--red); color: #fff; border-color: var(--red); }
.tdeck-arrow:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.tdeck-prev { left: 0; }
.tdeck-next { right: 0; }

@media (max-width: 560px) {
  .tdeck { width: min(300px, 100%); height: 400px; --fan1: 9%; --fan2: 18%; --fan3: 27%; }
  .tdeck-card { width: 210px; height: 360px; padding: 1.6rem 1.3rem; gap: .8rem; }
  .tdeck-avatar { width: 54px; height: 54px; font-size: 1.05rem; }
  .tdeck-quote { font-size: .98rem; }
  .tdeck-pile { width: 210px; height: 360px; box-shadow:
    4px 5px 0 0 #fff, 4px 5px 0 1px #e6eaf1,
    8px 10px 0 0 #fff, 8px 10px 0 1px #e6eaf1,
    12px 15px 0 0 #fff, 12px 15px 0 1px #e1e6ef; }
  .tdeck-arrow { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .tdeck-card { transition: none; } }
html.a11y-motion .tdeck-card { transition: none; }

html.a11y-contrast .tdeck-card { background: #000; border-color: #fff; }
html.a11y-contrast .tdeck-quote { color: #fff; }
html.a11y-contrast .tdeck-stars { color: #ffe500 !important; }
html.a11y-contrast .tdeck-name { color: #ffe500; }
html.a11y-contrast .tdeck-name span { color: #fff; }

/* ============================================================
   Diet & Nutrition card — rolling produce + pop, and the
   juice-pour page transition into nutrition-counseling.html
   ============================================================ */
.service-item--nutrition { position: relative; overflow: hidden; }
.svc-produce { position: absolute; left: 0; right: 0; bottom: 4px; height: 30px; pointer-events: none; }
.svc-produce img {
  position: absolute; bottom: 0; left: -38px;
  height: 26px; width: auto;
  opacity: 0;
  transform: translateX(0) rotate(0deg);
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 3px rgba(16,32,60,.18));
}
.service-item--nutrition:hover .svc-produce img,
.service-item--nutrition:focus-within .svc-produce img {
  animation: produce-roll 1.9s linear infinite;
  animation-delay: calc(var(--i) * .3s);
}
@keyframes produce-roll {
  0%   { transform: translateX(0) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(330px) rotate(720deg); opacity: 0; }
}
.service-item--nutrition.is-popping .svc-produce img {
  animation: produce-pop .44s ease-out forwards;
  animation-delay: calc(var(--i) * .05s);
}
@keyframes produce-pop {
  0%   { transform: translate(130px, 0) scale(1) rotate(0deg); opacity: 1; }
  35%  { transform: translate(130px, -10px) scale(1.6) rotate(18deg); opacity: 1; }
  100% { transform: translate(calc(130px + (var(--i) - 2) * 62px), -52px) scale(.1) rotate(140deg); opacity: 0; }
}

/* Juice-pour full-screen transition */
.juice-transition {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #fff7e9, #ffe9c9);
  opacity: 0;
  transition: opacity .35s ease;
}
.juice-transition[hidden] { display: none; }
.juice-transition.is-active { opacity: 1; }
.juice-scene { text-align: center; }
.juice-glass { width: 124px; height: 160px; display: block; margin: 0 auto; }
.juice-caption {
  margin-top: 1.3rem;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .3px;
}
.juice-liquid { transform: translateY(118px); }
.juice-bub { opacity: 0; }
.juice-transition.is-active .juice-liquid { animation: juice-fill 1s cubic-bezier(.4, 0, .2, 1) .15s forwards; }
.juice-transition.is-active .juice-bub { animation: juice-bub 1s ease-in .3s forwards; }
@keyframes juice-fill { from { transform: translateY(118px); } to { transform: translateY(4px); } }
@keyframes juice-bub {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(-72px); opacity: 0; }
}
/* continuously rising bubbles for the nutrition-page hero glass */
.juice-bub--loop { opacity: 0; animation: bub-rise 3s ease-in infinite; }
@keyframes bub-rise {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: .85; }
  80%  { opacity: .85; }
  100% { transform: translateY(-96px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .juice-bub--loop { display: none; } }
html.a11y-motion .juice-bub--loop { display: none; }
@media (prefers-reduced-motion: reduce) {
  .svc-produce { display: none; }
  .juice-transition .juice-liquid { transform: translateY(4px); }
}
html.a11y-motion .svc-produce { display: none; }

/* full (static) glass used on the nutrition page hero */
.juice-glass--full .juice-liquid { transform: translateY(4px); }

/* ============================================================
   Nutrition Counseling page
   ============================================================ */
.nutri-hero {
  background: linear-gradient(135deg, #fff7e9 0%, #f3f8ee 60%, #eef4fb 100%);
  border-bottom: 1px solid var(--hairline);
  /* shorter than the homepage hero so the next section peeks into view */
  padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(2rem, 4.5vw, 3rem);
}
.nutri-more { text-align: center; margin-top: clamp(1.5rem, 4vw, 2.4rem); }
.nutri-scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: .25rem;
  color: var(--navy); text-decoration: none;
  font-weight: 700; font-size: .78rem; letter-spacing: .8px; text-transform: uppercase;
}
.nutri-scroll:hover { color: var(--red); }
.nutri-scroll svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .nutri-scroll svg, .hero-scroll svg { animation: none; } }
html.a11y-motion .nutri-scroll svg, html.a11y-motion .hero-scroll svg { animation: none; }
#n-med { scroll-margin-top: 96px; }

/* careers hero: tighter than the homepage hero + a scroll cue */
.careers-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.hero-scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: .25rem;
  margin-top: clamp(1.4rem, 3.5vw, 2.2rem);
  color: rgba(255, 255, 255, .85); text-decoration: none;
  font-weight: 700; font-size: .76rem; letter-spacing: .8px; text-transform: uppercase;
}
.hero-scroll:hover { color: #fff; }
.hero-scroll svg { animation: nudge 1.6s ease-in-out infinite; }

/* trust strip */
.nutri-strip { padding: clamp(1.5rem, 3.5vw, 2.3rem) 0; background: var(--bg-tint); border-bottom: 1px solid var(--hairline); }
.nutri-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1.8rem; }
.nutri-chip { display: flex; align-items: center; gap: .85rem; }
.nutri-chip-ic {
  flex: 0 0 auto; width: 44px; height: 44px;
  border-radius: 12px; display: grid; place-items: center;
  background: var(--red-100); color: var(--red);
}
.nutri-chip-tx { display: flex; flex-direction: column; line-height: 1.3; }
.nutri-chip-tx strong { color: var(--navy); font-size: .98rem; }
.nutri-chip-tx span { color: var(--muted); font-size: .82rem; }
a.nutri-chip { text-decoration: none; transition: transform .15s var(--ease); }
a.nutri-chip:hover { transform: translateY(-2px); }
a.nutri-chip:hover .nutri-chip-ic { background: var(--red); color: #fff; }
a.nutri-chip:hover .nutri-chip-tx strong { color: var(--red); }
@media (max-width: 900px) { .nutri-strip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .nutri-strip-grid { grid-template-columns: 1fr; } }

/* Medicine + Nutrition split section */
.nutri-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.nutri-split-text h2 { margin: .5rem 0 1rem; }
.nutri-split-text p { color: var(--muted); line-height: 1.7; margin: 0 0 1rem; max-width: 56ch; }
.nutri-split-text p:last-child { margin-bottom: 0; }
.nutri-points { padding: 1.9rem 2rem; align-self: start; }
.nutri-points h3 { margin: 0 0 1.1rem; font-size: 1.12rem; }
.nutri-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.nutri-checklist li { position: relative; padding-left: 2rem; color: var(--navy); line-height: 1.5; }
.nutri-checklist li::before { content: ""; position: absolute; left: 0; top: .05rem; width: 1.3rem; height: 1.3rem; background: var(--red-100); border-radius: 50%; }
.nutri-checklist li::after { content: ""; position: absolute; left: .4rem; top: .38rem; width: .42rem; height: .24rem; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
@media (max-width: 760px) { .nutri-split { grid-template-columns: 1fr; } }
.nutri-hero-inner {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.nutri-hero h1 { margin: .4rem 0 .6rem; color: var(--navy); }
.nutri-hero .hero-tagline { max-width: 52ch; color: #41506b; }
.nutri-hero .hero-tagline strong { color: var(--navy); }
.nutri-glasswrap { display: grid; place-items: center; }
.nutri-glasswrap .juice-glass {
  width: clamp(150px, 22vw, 220px);
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(255, 159, 28, .28));
}
@media (max-width: 760px) {
  .nutri-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .nutri-hero .hero-tagline { margin-left: auto; margin-right: auto; }
  .nutri-hero .hero-actions { justify-content: center; }
  .nutri-glasswrap { order: -1; }
}

/* ===========================================================
   Patient Education — hub + articles
   =========================================================== */

/* ---------- Hub: hero band ---------- */
.edu-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 460px at 82% -20%, var(--bg-tint), transparent 60%),
    radial-gradient(720px 360px at -5% 0%, rgba(193,39,59,.06), transparent 55%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.6rem;
}
.edu-hero .section-head { margin-bottom: 0; }
.edu-hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.15rem);
  line-height: 1.07;
  letter-spacing: -.6px;
}
.edu-hero h1::after {
  content: "";
  display: block;
  width: 60px; height: 3px;
  margin: 1.15rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-600));
}

/* ---------- Hub: groups + grid ---------- */
.edu-library { padding-top: 3rem; }
.edu-group { margin-bottom: 3.2rem; }
.edu-group:last-child { margin-bottom: 0; }
.edu-group-title {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0 0 1.4rem;
}
.edu-group-title::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-600));
}
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(282px, 1fr));
  gap: 1.3rem;
}

/* ---------- Hub: cards ---------- */
.edu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.55rem 1.55rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.edu-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.edu-card:hover, .edu-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--bg-tint);
}
.edu-card:hover::before, .edu-card:focus-visible::before { transform: scaleX(1); }
.edu-card:focus-visible { outline: none; box-shadow: var(--shadow-lg), var(--ring); }
.edu-card h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0 0 .5rem;
  color: var(--navy);
}
.edu-card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0 0 1.15rem;
}
.edu-card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--red);
}
.edu-card-more::after {
  content: "\2192";
  display: inline-block;
  transition: transform .3s var(--ease);
}
.edu-card:hover .edu-card-more::after,
.edu-card:focus-visible .edu-card-more::after { transform: translateX(5px); }

/* ---------- Article ---------- */
.edu-article { max-width: 760px; }
.edu-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--navy-800);
  font-weight: 500;
  margin: 0 0 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
/* h2 accent bar — only the body section headers (direct children), not CTA/related */
.edu-article > h2 {
  position: relative;
  border-bottom: none;
  padding: 0 0 0 1rem;
  margin: 2.4rem 0 .85rem;
  font-size: 1.45rem;
  color: var(--navy);
  scroll-margin-top: 90px;
}
.edu-article > h2::before {
  content: "";
  position: absolute;
  left: 0; top: .15em; bottom: .15em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--red), var(--red-600));
}
.edu-article > p { line-height: 1.72; }
/* custom bullets */
.edu-article ul { list-style: none; padding-left: .2rem; margin: 0 0 1.2rem; }
.edu-article li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; line-height: 1.6; }
.edu-article li::before {
  content: "";
  position: absolute;
  left: .3rem; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.edu-article a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.edu-article a:hover { color: var(--red); }

/* ---------- Disclaimer note ---------- */
.edu-disclaimer {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-400);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  margin: 2.4rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.edu-disclaimer::before {
  content: "\24D8"; /* ⓘ */
  flex: none;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--navy-400);
}

/* ---------- CTA panel ---------- */
.edu-cta {
  position: relative;
  overflow: hidden;
  margin: 2.6rem 0 0;
  padding: 2.1rem 2.1rem 2.2rem;
  border: none;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(620px 220px at 100% 0%, var(--navy-600), transparent 62%),
    linear-gradient(135deg, var(--navy-800), var(--navy-900));
  box-shadow: var(--shadow);
}
.edu-cta h2 {
  color: #fff;
  margin: 0 0 .6rem;
  font-size: 1.45rem;
  border: none;
  padding: 0;
}
.edu-cta p { color: #d7e2f3; margin: 0 0 1.35rem; max-width: 60ch; }
.edu-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.edu-cta .btn-on-light { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.edu-cta .btn-on-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Related reading ---------- */
.edu-related { margin: 2.6rem 0 0; }
.edu-related h2 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 1rem;
  border: none;
  padding: 0;
}
.edu-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.edu-related li { padding: 0; margin: 0; }
.edu-related li::before { display: none; }
.edu-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.15rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.edu-related a::after {
  content: "\2192";
  flex: none;
  color: var(--red);
  transition: transform .25s var(--ease);
}
.edu-related a:hover {
  background: var(--bg-tint);
  border-color: var(--navy-400);
  transform: translateX(3px);
}
.edu-related a:hover::after { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .edu-grid { grid-template-columns: 1fr; }
  .edu-card { padding: 1.35rem; }
  .edu-cta { padding: 1.6rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .edu-card, .edu-card::before, .edu-card-more::after,
  .edu-related a, .edu-related a::after { transition: none; }
  .edu-card:hover, .edu-card:focus-visible,
  .edu-related a:hover { transform: none; }
  .edu-card:hover::before, .edu-card:focus-visible::before { transform: scaleX(1); }
}
html.a11y-motion .edu-card:hover, html.a11y-motion .edu-card:focus-visible,
html.a11y-motion .edu-related a:hover { transform: none; }

/* ===========================================================
   In-article interactivity — plain-English note, doodles, annotations
   =========================================================== */

/* ---------- "In plain English" handwriting note ---------- */
.edu-eli5 {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  margin: 1.9rem 0 0;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(180deg, #fffdf4, #fff6df);
  border: 2px dashed #e7c15f;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.edu-eli5-doodle { flex: none; width: 56px; height: 56px; overflow: visible; }
.edu-eli5-body { min-width: 0; }
.edu-eli5-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .66rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #b07d12;
  margin-bottom: .25rem;
}
/* the explanation, set in a handwriting face and "written" left-to-right */
.edu-eli5-hand {
  display: block;
  margin: 0;
  font-family: "Caveat", "Segoe Script", cursive;
  font-weight: 600;
  font-size: 1.62rem;
  line-height: 1.32;
  color: var(--navy-800);
  /* reversible "writing" reveal: plays on scroll-in, un-writes on scroll-out */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.9s steps(56, end);
}
.edu-eli5.drawn .edu-eli5-hand { clip-path: inset(0 0 0 0); }

/* ---------- Doodles (line-art that draws itself in, reversibly) ---------- */
.doodle { display: inline-block; vertical-align: middle; line-height: 0; }
.doodle svg { display: block; overflow: visible; width: 1.15em; height: 1.15em; }
.edu-article > h2 .doodle { margin-left: .5rem; }
.doodle .draw, .edu-eli5-doodle .draw {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.25s var(--ease);
}
.edu-eli5-doodle .draw { stroke-width: 2.4; transition-duration: 1.4s; }
.edu-eli5-doodle .draw.rays { transition-delay: .55s; }
.doodle.drawn .draw,
.edu-eli5.drawn .edu-eli5-doodle .draw { stroke-dashoffset: 0; }

/* doodle accent on dark panels (CTA) */
.doodle-on-dark .draw { stroke: #fff; }
.edu-cta h2 .doodle { margin-left: .5rem; }
.edu-cta h2 .doodle svg { width: 1em; height: 1em; }

/* larger floating margin doodles, spaced down the gutters on wide screens */
.edu-margin-doodle {
  display: none;
  position: absolute;
  width: 78px; height: 78px;
  opacity: .45;
  pointer-events: none;
}
.edu-margin-doodle .doodle { display: block; width: 100%; height: 100%; }
.edu-margin-doodle svg { width: 100% !important; height: 100% !important; overflow: visible; }
.edu-md-1 { right: -108px; top: 2%;  transform: rotate(7deg); }
.edu-md-2 { left:  -106px; top: 38%; transform: rotate(-8deg); }
.edu-md-3 { right: -102px; top: 71%; transform: rotate(-5deg); }
@media (min-width: 1160px) {
  .edu-article { position: relative; }
  .edu-margin-doodle { display: block; }
}

/* ---------- Hand-drawn word annotations ---------- */
.rn-target { position: relative; }
.rn-k-circle, .rn-k-box, .rn-k-underline { display: inline-block; white-space: nowrap; }
.rn-svg { position: absolute; overflow: visible; pointer-events: none; z-index: 1; }
.rn-path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* highlighter swipe — animates as the element's own background, always behind text */
.rn-k-highlight {
  background-image: linear-gradient(180deg, rgba(255,206,84,.62), rgba(255,206,84,.62));
  background-repeat: no-repeat;
  background-position: 0 84%;
  background-size: 0% 58%;
  border-radius: 2px;
  padding: 0 .06em;
  transition: background-size .6s var(--ease);
}
.rn-k-highlight.rn-on { background-size: 100% 58%; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .doodle .draw, .edu-eli5-doodle .draw { stroke-dashoffset: 0 !important; transition: none !important; }
  .edu-eli5-hand { clip-path: none !important; transition: none !important; }
  .rn-k-highlight { transition: none; }
}
html.a11y-motion .doodle .draw, html.a11y-motion .edu-eli5-doodle .draw { stroke-dashoffset: 0 !important; transition: none !important; }
html.a11y-motion .edu-eli5-hand { clip-path: none !important; transition: none !important; }
html.a11y-motion .rn-k-highlight { transition: none; }

/* ===========================================================
   Playful upgrades + side "explanation" margin notes
   =========================================================== */

/* --- bigger, bouncier, more colorful doodles --- */
.doodle svg { width: 1.42em; height: 1.42em; }
.edu-article > h2 .doodle { margin-left: .55rem; }
.doodle .draw, .edu-eli5-doodle .draw { stroke-width: 2.5; }
/* color variety across heading doodles */
.edu-article > h2:nth-of-type(3n+2) .doodle .draw { stroke: var(--navy-600); }
.edu-article > h2:nth-of-type(3n)   .doodle .draw { stroke: #e6a400; }
.edu-eli5 { transform: rotate(-0.6deg); }            /* a hand-pinned note tilt */
.edu-eli5-doodle { width: 60px; height: 60px; }
.edu-eli5-hand { font-size: 1.72rem; }

/* margin doodles a touch larger */
.edu-margin-doodle { width: 92px; height: 92px; opacity: .55; }

/* --- side "explanation" notes --- */
.mn-anchor {
  border-bottom: 2px dotted rgba(193,39,59,.55);
  cursor: help;
}
.mn-note {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  margin: .35rem 0 .7rem;
  color: var(--navy-800);
}
.mn-arrow { flex: none; width: 44px; height: 22px; margin-top: .3rem; overflow: visible; }
.mn-arrow .draw {
  fill: none; stroke: var(--red); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s var(--ease);
}
.mn-note.drawn .mn-arrow .draw { stroke-dashoffset: 0; }
.mn-text {
  font-family: "Caveat", "Segoe Script", cursive;
  font-weight: 600;
  font-size: 1.24rem;
  line-height: 1.22;
  color: var(--navy-800);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s steps(40, end) .12s;
}
.mn-note.drawn .mn-text { clip-path: inset(0 0 0 0); }

/* on wide screens the notes float out into the gutters beside the column */
@media (min-width: 1220px) {
  .mn-note {
    width: 168px;
    margin-top: .1rem;
    margin-bottom: 1rem;
  }
  .mn-right { float: right; clear: right; margin-right: -188px; }
  .mn-left  { float: left;  clear: left;  margin-left: -188px; flex-direction: row-reverse; text-align: right; }
  .mn-left .mn-arrow { transform: scaleX(-1); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mn-arrow .draw { stroke-dashoffset: 0 !important; transition: none !important; }
  .mn-text { clip-path: none !important; transition: none !important; }
}
html.a11y-motion .mn-arrow .draw { stroke-dashoffset: 0 !important; transition: none !important; }
html.a11y-motion .mn-text { clip-path: none !important; transition: none !important; }

/* ===========================================================
   Patient-education hub: search + sort toolbar
   =========================================================== */
.edu-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 0 0 2.2rem;
}
.edu-search { position: relative; flex: 1 1 340px; min-width: 0; }
.edu-search-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--navy-400); pointer-events: none;
}
.edu-search input {
  width: 100%; box-sizing: border-box;
  padding: .9rem 2.6rem .9rem 2.95rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.edu-search input::placeholder { color: var(--navy-400); }
.edu-search input:focus { outline: none; border-color: var(--navy-400); box-shadow: var(--shadow-sm), var(--ring); }
.edu-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.edu-search-clear {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  width: 27px; height: 27px; border: none; border-radius: 50%;
  background: var(--bg-tint); color: var(--navy);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.edu-search-clear:hover { background: var(--red-100); color: var(--red); }
.edu-sort { display: flex; align-items: center; gap: .5rem; flex: none; }
.edu-sort label { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.edu-sort select {
  font-family: var(--font-body); font-size: .94rem; color: var(--ink);
  padding: .7rem 2.3rem .7rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background-color: #fff; box-shadow: var(--shadow-sm); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%231a2a4f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat; background-position: right .85rem center;
}
.edu-sort select:focus { outline: none; border-color: var(--navy-400); box-shadow: var(--shadow-sm), var(--ring); }
.edu-search-status { color: var(--muted); font-size: .98rem; margin: 0 0 1.5rem; }

/* category tag shown only on flat search results */
.edu-card-cat { display: none; }
.edu-results .edu-card-cat {
  display: inline-block;
  font-family: var(--font-head); font-weight: 800;
  font-size: .64rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--red); margin-bottom: .55rem;
}

@media (max-width: 560px) {
  .edu-toolbar { flex-direction: column; align-items: stretch; }
  .edu-sort { justify-content: space-between; }
}

/* FAQ -> Patient Education Library link */
.faq-more {
  text-align: center;
  margin: 2.4rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}
.faq-more a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.faq-more a:hover { color: var(--red); }

/* Patient-education hub: category filter chips */
.edu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.8rem;
}
.edu-chip {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: .5rem 1.05rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.edu-chip:hover { border-color: var(--navy-400); color: var(--navy-900); transform: translateY(-1px); }
.edu-chip.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.edu-chip:focus-visible { outline: none; box-shadow: var(--shadow-sm), var(--ring); }

/* Footer social icons (Facebook, Instagram) */
.footer-social { display: flex; gap: .6rem; margin-top: .9rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible { background: var(--red); transform: translateY(-2px); }

/* Footer "Subscribe to our newsletter" button (opens the newsletter popup) */
.footer-subscribe-wrap { margin: 1rem 0 .25rem; }
.footer-subscribe { cursor: pointer; border: none; }

/* Floating "Subscribe" button — fixed, always visible (like the a11y widget) */
.nl-fab {
  position: fixed; top: 5.75rem; right: 1rem; z-index: 95;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .62rem 1.05rem; border: none; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; font-size: .88rem;
  cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nl-fab:hover, .nl-fab:focus-visible {
  transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.3);
}
.nl-fab svg { width: 17px; height: 17px; }
@media (max-width: 560px) {
  .nl-fab { top: 4.75rem; padding: .55rem .8rem; font-size: .8rem; }
  .nl-fab svg { width: 15px; height: 15px; }
}
