/* ============================================================
   OSINB editorial homepage system (T-223). Scope: body.ed-home.
   Newsreader display (variable, opsz auto) + Inter UI.
   White / cool gray / green accent / navy brand. Hairline grid,
   small-caps kickers, framed figures. Nav/mega untouched.
   ============================================================ */

body.ed-home {
  --ed-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --ed-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --ed-ink: #16191d;
  --ed-gray: #4b5563;
  --ed-soft: #6b7280;
  --ed-navy: #0b2a4a;
  --ed-green: #2b5e4c;
  --ed-head: #203070;
  --ed-slate: #0b2a4a;
  --ed-rule: #e5e7eb;
  --ed-rule-ink: #16191d;
  --ed-alt: #f7f8fa;
  background: #fff;
}

/* ---------- editorial primitives ---------- */
body.ed-home .ed-kicker {
  font-family: var(--ed-sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ed-green);
  margin: 0 0 1.1rem;
}
body.ed-home .ed-rule {
  border: 0;
  border-top: 1px solid var(--ed-rule-ink);
  margin: 0;
}

/* ---------- hero: type left, framed photo right ---------- */
body.ed-home .ed-hero {
  /* 2026-06-17 (Sam, option A — contained split): copy leads, the building
     photo sits framed in a narrower right column INSIDE the centered content.
     NOT a washed-out background, and never bleeding off the edge. */
  background: #fff;
  border-bottom: 1px solid var(--ed-rule);
  padding: clamp(2.4rem, 4vw, 3.6rem) 0;
}
body.ed-home .ed-hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.4rem);
  align-items: stretch;
}
body.ed-home .ed-hero__text { max-width: 640px; align-self: center; }
body.ed-home .ed-hero--split .ed-hero__title { font-size: clamp(1.95rem, 3.65vw, 3.43rem); line-height: 1.1; margin-bottom: 1.2rem; text-wrap: pretty; }
/* locations kicker scaled to line up with the headline's first line width */
body.ed-home .ed-hero--split .ed-kicker { font-size: clamp(0.72rem, 1.1vw, 0.875rem); letter-spacing: 0.08em; }
body.ed-home .ed-hero__title {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.9rem, 5.4vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ed-head);
  margin: 0 0 1.6rem;
  text-wrap: balance;
}
body.ed-home .ed-hero__sub {
  font-family: var(--ed-serif);
  font-optical-sizing: auto;
  font-size: 1.17rem;
  font-weight: 400;
  line-height: 1.66;
  color: var(--ed-ink);
  max-width: 58ch;
  margin: 0 0 1.1rem;
}
body.ed-home .ed-hero__sub--quiet {
  color: var(--ed-gray);
  font-size: 1.08rem;
}
body.ed-home .ed-hero__cta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.9rem;
  flex-wrap: wrap;
}
body.ed-home .ed-btn {
  font-family: var(--ed-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--brand-green, #004020);
  padding: 0.95rem 1.75rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 160ms ease;
  cursor: pointer;
}
body.ed-home .ed-btn:hover { background: var(--brand-green-dark, #002b15); }
body.ed-home .ed-hero__alt {
  font-family: var(--ed-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ed-green);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
body.ed-home .ed-hero__alt:hover { color: var(--brand-green, #004020); }

/* full-bleed band: the figure is a direct child of the full-width .ed-hero
   section (outside the centered inner), so width:100% IS the viewport width. */
body.ed-home .ed-hero__media {
  /* bottom margin crops the stretched photo so it ends at the body copy
     (the Medicare/TRICARE line) instead of running down to the CTA buttons.
     5.25rem == the CTA block height (1.9rem top gap + the buttons). Reset on
     mobile below, where the layout stacks. */
  margin: 0 0 5.25rem !important;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--ed-rule);
}
body.ed-home .ed-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border: 0;
}
body.ed-home .ed-hero__media figcaption {
  font-family: var(--ed-serif);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ed-soft);
  padding-top: 0.55rem;
}
body.ed-home .ed-hero__media figcaption b {
  font-style: normal;
  font-weight: 600;
  color: var(--ed-ink);
}

/* ---------- trust band: rule-bounded line ---------- */
body.ed-home .lp-trust {
  background: #fff;
  border-top: 1px solid var(--ed-rule-ink);
  border-bottom: 1px solid var(--ed-rule);
}
body.ed-home .lp-trust__row { padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem); }
body.ed-home .lp-trust__row li { color: var(--ed-ink); }
body.ed-home .lp-trust__row li + li::before { color: var(--ed-green); }

/* ---------- section header pattern, applied to existing classes ---------- */
body.ed-home .lp-section-title,
body.ed-home .lp-directory__title,
body.ed-home .lp-joint__heading,
body.ed-home .lp-book__title,
body.ed-home .lp-first-visit__title,
body.ed-home .reviews-cta__title {
  font-family: var(--ed-serif) !important;
  font-optical-sizing: auto;
  font-weight: 480 !important;
  letter-spacing: -0.01em !important;
  color: var(--ed-head);
}
body.ed-home .lp-section-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

/* sections sit on white; rhythm comes from rules, not tint blocks */
body.ed-home .lp-providers,
body.ed-home .lp-locations,
body.ed-home .lp-directory,
body.ed-home .lp-nonop,
body.ed-home .lp-first-visit,
body.ed-home .lp-stats { background: #fff; }
body.ed-home .lp-providers,
body.ed-home .lp-locations,
body.ed-home .lp-directory,
body.ed-home .lp-first-visit {
  border-top: 1px solid var(--ed-rule);
}

/* bands: white, short green bar over the heading instead of tints */
body.ed-home .lp-joint--paper.lp-joint--sage,
body.ed-home .lp-joint--paper.lp-joint--cream,
body.ed-home .lp-joint--paper.lp-joint--rust {
  background-color: #fff;
  border-top: 1px solid var(--ed-rule);
  border-bottom: 0;
}
body.ed-home .lp-joint__heading--dark::before,
body.ed-home .lp-joint--paper.lp-joint--sage .lp-joint__heading::before {
  content: "";
  display: block;
  width: 2.2rem;
  border-top: 3px solid var(--ed-green);
  margin-bottom: 1rem;
}
body.ed-home .lp-joint--paper .lp-joint__body {
  font-family: var(--ed-serif);
  font-optical-sizing: auto;
  font-size: 1.08rem;
  line-height: 1.7;
}
/* navy band stays as the one dark moment */
body.ed-home .lp-joint--paper.lp-joint--navy { background-color: var(--ed-slate); }
body.ed-home .lp-joint--paper.lp-joint--navy .lp-joint__heading::before {
  content: "";
  display: block;
  width: 2.2rem;
  border-top: 3px solid #7fb59e;
  margin-bottom: 1rem;
}
body.ed-home .lp-joint--paper.lp-joint--navy .lp-joint__body {
  font-family: var(--ed-serif);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* X-ray figure caption goes serif italic */
body.ed-home .lp-joint__figure figcaption {
  font-family: var(--ed-serif);
  font-style: italic;
}

/* ---------- providers: serif names, hairline cards ---------- */
body.ed-home .lp-person__name {
  font-family: var(--ed-serif) !important;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ed-head);
}
body.ed-home .lp-person__role { color: var(--ed-gray); }
body.ed-home .lp-person img { border: 1px solid var(--ed-rule); }

/* ---------- region/condition cards: flat, hairline, serif titles ---------- */
body.ed-home .lp-region-card {
  background: #fff;
  border: 1px solid var(--ed-rule);
  border-radius: 0;
  box-shadow: none;
}
body.ed-home .lp-region-card:hover {
  transform: none;
  border-color: var(--ed-green);
  box-shadow: none;
}
body.ed-home .lp-region-card__title,
body.ed-home .lp-region-card__title-link {
  font-family: var(--ed-serif) !important;
  font-weight: 500;
}

/* ---------- locations ---------- */
body.ed-home .lp-loc__name { font-family: var(--ed-serif); font-weight: 500; }

/* ---------- reviews + schedule ---------- */
body.ed-home .lp-book { background: var(--ed-slate); }
body.ed-home .lp-book__lead { font-family: var(--ed-serif); font-size: 1.1rem; line-height: 1.65; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  body.ed-home .ed-hero__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  body.ed-home .ed-hero__text { max-width: none; }
  body.ed-home .ed-hero__media { min-height: 0; height: clamp(240px, 56vw, 340px); margin-bottom: 0 !important; }
  body.ed-home .ed-hero--split .ed-hero__title { font-size: clamp(2.2rem, 8vw, 2.9rem); }
  body.ed-home .ed-hero--split .ed-kicker { letter-spacing: 0.16em; }
}

body.ed-home .img-placeholder {
  background: #f7f8fa;
  border: 1px solid var(--ed-rule);
  border-radius: 0;
  color: var(--ed-ink);
}
body.ed-home .img-placeholder::before { border-color: var(--ed-rule); }
body.ed-home .img-placeholder__label {
  font-family: var(--ed-sans);
  letter-spacing: 0.18em;
  color: var(--ed-soft);
}
body.ed-home .img-placeholder__hint { font-family: var(--ed-serif); color: var(--ed-gray); }

/* ---------- shelves (Conditions / Surgical Procedures): cool cards, neutral films ---------- */
body.ed-home .shelf__title {
  font-family: var(--ed-serif) !important;
  font-optical-sizing: auto;
  font-weight: 480 !important;
  letter-spacing: -0.01em;
  color: var(--ed-head);
}
body.ed-home html body .shelf .shelf__card, body.ed-home .shelf .shelf__card {
  border: 1px solid var(--ed-rule) !important;
  border-radius: 0;
}
body.ed-home .shelf__card-media { background: #f7f8fa; }
body.ed-home .shelf__card-title { font-family: var(--ed-serif); font-weight: 500; }

/* navy band: light type (fix navy-on-navy) */
body.ed-home .lp-joint--paper.lp-joint--navy .lp-joint__heading { color: #f7f8fa; }
body.ed-home .lp-joint--paper.lp-joint--navy .lp-joint__body { color: rgba(247, 248, 250, 0.92); }
body.ed-home .lp-joint--paper.lp-joint--navy .lp-joint__links a { color: #f7f8fa; }

/* ---------- quick actions row (small-town ortho canon) ---------- */
body.ed-home .ed-actions { background: #fff; border-bottom: 1px solid var(--ed-rule); }
body.ed-home .ed-actions__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
body.ed-home .ed-action {
  position: relative;
  display: block;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--ed-rule);
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11,42,74,0.05), 0 3px 10px rgba(11,42,74,0.05);
}
body.ed-home .ed-action:hover { transform: translateY(-3px); border-color: var(--ed-green); box-shadow: 0 12px 26px rgba(11,42,74,0.13); }
body.ed-home .ed-action::after {
  content: "→";
  position: absolute;
  top: 1.15rem;
  right: 1.3rem;
  color: var(--ed-green);
  font-family: var(--ed-sans);
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}
body.ed-home .ed-action:hover::after { opacity: 1; transform: translateX(0); }
body.ed-home .ed-action__title {
  display: block;
  font-family: var(--ed-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ed-head);
  margin-bottom: 0.3rem;
  padding-right: 1.4rem;
}
body.ed-home .ed-action__sub {
  display: block;
  font-family: var(--ed-sans);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ed-gray);
}
@media (max-width: 980px) { body.ed-home .ed-actions__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { body.ed-home .ed-actions__inner { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ---------- locations ---------- */
/* T-21 v5: responsive split. DESKTOP = a left rail of city-name boxes beside
   the map (the rail and map sit centered as a pair, sized to one viewport).
   MOBILE = the city chips become a horizontal strip above a full-width map. */
@media (min-width: 821px) {
  body.ed-home .lp-locations__layout {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
  /* left rail: city boxes stacked top-to-bottom, left-aligned text */
  body.ed-home .loc-cityselect {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5rem;
    max-width: none;
    margin: 0;
    text-align: left;
  }
  body.ed-home .lp-locations__mapwrap { float: none; width: 100%; max-width: none; margin: 0; }
  /* Rail items: flat nav-style boxes with the curved sage-green left-line on
     hover/active (the mega-nav mechanic, restored per Sam) instead of a navy
     fill. Transparent box, a 2px sage border-left on a 6px radius so the line
     curves around the corner, text turns green, gentle nudge. Names stay
     centered (text-align is set on the chip in enhancements.css). */
  body.ed-home .loc-cityselect__chip {
    background: transparent;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 6px;
    box-shadow: none;
    padding-block: 0.55rem;
    transition: color 160ms ease, transform 160ms ease, border-color 160ms ease;
  }
  body.ed-home .loc-cityselect__chip:hover,
  body.ed-home .loc-cityselect__chip.is-active {
    background: transparent;
    border-left-color: #3F8069;
    color: #2B5E4C;
    transform: translateX(0.28rem);
    box-shadow: none;
  }
  body.ed-home .loc-cityselect__chip:hover .loc-cityselect__name,
  body.ed-home .loc-cityselect__chip.is-active .loc-cityselect__name { color: #2B5E4C; }
}
body.ed-home .lp-locations__map {
  border: 1px solid var(--ed-rule);
  border-radius: 4px;
  box-shadow: none;
}

/* The heading block centers over the whole composition. The title's max-width
   box was centered, but its text fell to the initial `start` align, so it
   left-aligned whenever it wrapped (mobile). Force the text centered too. */
body.ed-home .lp-locations__inner { text-align: center; }
body.ed-home .lp-locations__eyebrow,
body.ed-home .lp-locations .lp-section-title,
body.ed-home .lp-locations__intro { margin-inline: auto; text-align: center; }
body.ed-home .lp-locations__intro { max-width: 56ch; }
body.ed-home .lp-locations__attr { text-align: center; }

/* ---------- mobile footer accordions ----------
   Moved SITE-WIDE to enhancements.css (T-293) so every page collapses its
   footer columns on mobile, not just the homepage. JS in nextgen.js. */

/* ============================================================
   Seamless pass (T-229): one container, one rhythm, one voice.
   ============================================================ */

/* no color bars on body-region cards */
body.ed-home .lp-region-card::before { display: none !important; }

/* no dash/bar ornaments over band headings */
body.ed-home .lp-joint__heading--dark::before,
body.ed-home .lp-joint--paper.lp-joint--sage .lp-joint__heading::before,
body.ed-home .lp-joint--paper.lp-joint--navy .lp-joint__heading::before { content: none !important; }

/* light bands: links must be ink, never inherited cream */
body.ed-home .lp-joint--paper:not(.lp-joint--navy) .lp-joint__links a {
  color: var(--ed-ink) !important;
  opacity: 1;
}
body.ed-home .lp-joint--paper:not(.lp-joint--navy) { color: var(--ed-ink); }

/* uniform section rhythm: same container, same padding, hairline seams */
body.ed-home .ed-actions__inner,
body.ed-home .lp-providers__inner,
body.ed-home .lp-locations__inner,
body.ed-home .lp-directory__inner,
body.ed-home .lp-first-visit__inner,
body.ed-home .lp-joint__inner,
body.ed-home .shelf__inner,
body.ed-home .provider-reviews__inner { max-width: 1160px; margin-inline: auto; }
body.ed-home .lp-providers,
body.ed-home .lp-locations,
body.ed-home .lp-joint--paper:not(.lp-joint--navy) {
  background: #fff !important;
}
body.ed-home .lp-directory,
body.ed-home .lp-first-visit,
body.ed-home .shelf,
body.ed-home .provider-reviews--home {
  background: #f7f8fa !important;
}
body.ed-home .lp-providers,
body.ed-home .lp-locations,
body.ed-home .lp-directory,
body.ed-home .lp-first-visit,
body.ed-home .shelf,
body.ed-home .lp-joint--paper:not(.lp-joint--navy),
body.ed-home .provider-reviews--home {
  border-top: 1px solid var(--ed-rule);
  border-bottom: 0;
  padding-top: clamp(2.75rem, 5vw, 4rem);
  padding-bottom: clamp(2.75rem, 5vw, 4rem);
}

/* providers: aligned column cards */
body.ed-home .lp-person__role { display: block; }
body.ed-home .lp-person__cred {
  display: block;
  font-family: var(--ed-sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-green);
  margin: 0.2rem 0 0.3rem;
}
body.ed-home .lp-person__focus {
  display: block;
  font-family: var(--ed-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ed-gray);
}
body.ed-home .lp-person__note {
  display: block;
  font-family: var(--ed-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ed-soft);
  margin-top: 0.3rem;
}

/* reviews: editorial pull-quotes, not pill cards */
body.ed-home .provider-reviews__title {
  font-family: var(--ed-serif) !important;
  font-optical-sizing: auto;
  font-weight: 480 !important;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.01em !important;
  color: var(--ed-head) !important;
  background: none !important;
  text-align: center;
}
body.ed-home .review-card {
  background: #fff !important;
  border: 1px solid var(--ed-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.5rem 1.5rem 1.25rem;
}
body.ed-home .review-card__body {
  font-family: var(--ed-serif);
  font-optical-sizing: auto;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--ed-ink);
}
body.ed-home .review-card__stars { color: #FBBC04; letter-spacing: 0.12em; font-size: 0.8rem; }
/* Reviews (2026-06-14, per Sam): patient name to the top of each card, and a
   warm leave-a-review prompt stacked above the button. */
body.ed-home .reviews-grid.reviews-carousel .review-card__meta { order: -1; margin: 0 0 0.55rem; }
body.ed-home .reviews-cta { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
body.ed-home .reviews-cta__prompt { margin: 0; max-width: 46ch; text-align: center; color: var(--ed-gray, #5a5f70); font-size: 1rem; line-height: 1.5; }
body.ed-home .review-card__src {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: var(--ed-sans);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-soft) !important;
  padding: 0 !important;
}
body.ed-home .review-card__name {
  font-family: var(--ed-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ed-head);
}

/* navy sections keep navy + light type */
body.ed-home .lp-joint--paper.lp-joint--navy {
  background-color: var(--ed-slate) !important;
  border-top: 1px solid var(--ed-rule);
  padding-top: clamp(2.75rem, 5vw, 4rem);
  padding-bottom: clamp(2.75rem, 5vw, 4rem);
}
body.ed-home .lp-book__title { color: #f7f8fa !important; }

/* region card titles: obviously clickable, larger (T-238) */
/* T-316: drop the redundant region name (Shoulder/Hip/...) on the homepage
   cards — the "X Pain" link directly below already names each card. Icon stays
   clickable. */
body.ed-home .lp-region-card__title {
  display: none;
  font-size: clamp(1.1rem, 1.35vw, 1.22rem);
  white-space: nowrap;
  text-align: center;
}
body.ed-home .lp-region-card__title-link {
  color: var(--ed-head) !important;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--ed-green) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
body.ed-home .lp-region-card__title-link:hover {
  color: var(--ed-green) !important;
  text-decoration-color: var(--ed-green);
}

/* ============ visual audit fixes (T-246) ============ */

/* 1. band prose at readable measure */
body.ed-home .lp-joint--paper .lp-joint__body { max-width: 70ch; }
body.ed-home .lp-joint__links--inline { max-width: 70ch; }

/* 2. reviews: equal heights, clean clamp with ellipsis */
body.ed-home .review-card { display: flex; flex-direction: column; }
body.ed-home .review-card__body {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 3. mobile hero: trimmed (T-300, per Sam — was 4.25rem, too much dead space
   under the last line on phones) */
@media (max-width: 720px) {
  body.ed-home .ed-hero { padding-bottom: 2.5rem; }
}

/* 4. quick-action row breathes */
body.ed-home .ed-actions__inner { padding-top: 2rem; padding-bottom: 2rem; }

/* 5. provider card rhythm: one spacing scale for all five */
body.ed-home .lp-person__name { display: block; margin: 0.8rem 0 0.3rem; line-height: 1.3; }
body.ed-home .lp-person__cred { margin: 0 0 0.3rem; }
body.ed-home .lp-person__focus { line-height: 1.5; }
body.ed-home .lp-person__note { margin-top: 0.35rem; line-height: 1.4; }

/* 7. shelf scroll cue: stronger fade on the gray section bg */
body.ed-home .shelf__fade--left { background: linear-gradient(90deg, #f7f8fa 12%, transparent 100%); }
body.ed-home .shelf__fade--right { background: linear-gradient(270deg, #f7f8fa 12%, transparent 100%); }

/* one green accent line only on active location (T-247): keep ::before, kill border */
body.ed-home .lp-locations .lp-loc-list .lp-loc,
body.ed-home .lp-locations .lp-loc-list .lp-loc.is-active {
  border-left-color: transparent;
}

/* provider chips wrap tidy inside the card column */
body.ed-home .lp-loc__providers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}
body.ed-home .lp-loc__providers li { white-space: nowrap; }
body.ed-home .lp-loc__providers li:not(:last-child)::after { content: none; }

/* providers row: every provider name is a single line, so no reserved second
   line. The old min-height:2.6em left a dead gap between each name and its
   credential text. Natural height; the role's own min-height bottom-aligns. */
body.ed-home .lp-person__name { min-height: 0; }

/* T-248: stray band accent bars (rust/sage/umber/indigo) off on homepage */
body.ed-home .lp-joint--sage::before,
body.ed-home .lp-joint--indigo::before,
body.ed-home .lp-joint--umber::before,
body.ed-home .lp-joint--rust::before { display: none !important; }

/* imageless shelf cards: no empty media box; text carries the card */
body.ed-home .shelf__card-media:not(:has(img.shelf__card-photo)) { display: none; }

/* shelf media credit line (CC BY attribution) */
body.ed-home .shelf__card-media { position: relative; }
body.ed-home .shelf__card-credit {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-family: var(--ed-sans);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* ---------- T-288: mobile readability scale ----------
   Benchmarked on a 393px phone against Athenahealth, One Medical, Cleveland
   Clinic, Mayo: body 16-20px, hero 40-48px, section heads 36-40px. Ours was
   undersized, so scale UP for legibility (the earlier T-286 shrink overshot).
   Phones only (<=600px); tablet + desktop untouched. */
@media (max-width: 600px) {
  body.ed-home { font-size: 18px; }

  body.ed-home .ed-hero__title { font-size: clamp(2.5rem, 11vw, 2.95rem); line-height: 1.08; margin-bottom: 1.05rem; }   /* ~42px */
  body.ed-home .ed-hero__sub { font-size: 1.2rem; line-height: 1.55; }      /* ~19px */
  body.ed-home .ed-hero__sub--quiet { font-size: 1.1rem; }                  /* ~17.5px */
  body.ed-home .ed-hero { padding-top: 1.8rem; padding-bottom: 2.4rem; }
  body.ed-home .ed-hero__cta { margin-top: 1.5rem; gap: 1rem; }
  body.ed-home .ed-btn,
  body.ed-home .ed-hero__alt { font-size: 1.02rem; }                        /* ~16px tap targets */

  body.ed-home .lp-section-title,
  body.ed-home .lp-directory__title,
  body.ed-home .provider-reviews__title { font-size: 2.05rem !important; line-height: 1.14; margin-bottom: 0.95rem; }    /* ~33px */
  body.ed-home .lp-joint__heading { font-size: 1.8rem; line-height: 1.18; } /* ~29px */
  body.ed-home .lp-locations__intro { font-size: 1.08rem; margin-bottom: 1.4rem; }  /* ~17px */

  /* supporting text: lift the small stuff to a readable floor */
  body.ed-home .ed-action__title { font-size: 1.08rem; }       /* 15 -> ~17 */
  body.ed-home .ed-action__sub { font-size: 0.92rem; }         /* 13 -> ~15 */
  body.ed-home .lp-region-card__title { font-size: 1.1rem; }   /* ~18 -> ~18 */
  body.ed-home .lp-region-card a { font-size: 1.08rem; }       /* 16 -> ~17 */
  body.ed-home .lp-person__name { font-size: 1.25rem; }        /* 19 -> ~20 */
  body.ed-home .lp-person__focus { font-size: 1rem; }          /* ~14 -> ~16 */
  body.ed-home .lp-person__cred { font-size: 0.8rem; }         /* keep eyebrow small */
  body.ed-home .review-card__body { font-size: 1.12rem; }      /* 17 -> ~18 */
  body.ed-home .shelf__card-title { font-size: 1.18rem; }      /* ~19 */
  body.ed-home .reviews-cta__prompt { font-size: 1.08rem; }    /* ~17 */

  body.ed-home .lp-region-card { padding: 1.2rem 1.25rem; }
}

/* ---------- T-296: region cards maximize space (mobile) ----------
   Per Sam: icon at top, then the "X Pain" link full-width, the remaining
   condition links in a 2x2 grid, then "See all ..." full-width at the bottom.
   Replaces the tall single-column layout that left vertical dead space. Phones
   only (<=600px); the desktop grid is untouched. */
@media (max-width: 600px) {
  body.ed-home .lp-region-card { padding: 1.25rem 1.3rem 1.35rem; }
  body.ed-home .lp-region-card__title-link {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    border-bottom: none;
    padding: 0;
    margin: 0 0 0.65rem;
  }
  body.ed-home .lp-region-card__icon {
    position: static;
    width: 100%;
    max-width: 120px;
    height: 100px;
    margin: 0 auto;
  }
  body.ed-home .lp-region-card__title {
    font-size: 1.35rem;
    text-align: center;
    justify-content: center;
    margin: 0;
  }
  /* "X Pain" leads, full width */
  body.ed-home .lp-region-card__pain { margin: 0 0 0.6rem; }
  /* remaining conditions: 2 x 2 grid, wrap instead of truncate */
  body.ed-home .lp-region-card__conditions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 0.8rem;
    margin: 0 0 0.7rem;
  }
  body.ed-home .lp-region-card__conditions a {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    padding-left: 0;
    padding-right: 0;
  }
  /* "See all" spans full width at the bottom */
  body.ed-home .lp-region-card__foot { display: block; width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════
   HERO SCROLL UI (2026-06-17) — make the headline, lede, and the main
   office photo pop on landing. Pure CSS: a staggered fade-up entrance on
   load, depth on the frame, a ken-burns settle, and a scroll-linked
   parallax on the photo via animation-timeline. No JS, compositor-driven
   (no scroll jank). Degrades to a static-but-elevated hero where
   unsupported, and is fully disabled under prefers-reduced-motion.
   ════════════════════════════════════════════════════════════════════ */

/* Depth: lift the framed photo off the white page so it reads as a real
   object, not a flat inset. Static, so it survives reduced motion too. */
body.ed-home .ed-hero__media{
  box-shadow:
    0 44px 80px -28px rgba(11,42,74,0.52),
    0 18px 34px -18px rgba(11,42,74,0.32);
}

@media (prefers-reduced-motion: no-preference){
  /* ── Staggered entrance for the copy column ───────────────────────── */
  body.ed-home .ed-hero__text > *{
    opacity:0;
    animation: edHeroRise 0.82s cubic-bezier(0.16,1,0.3,1) both;
  }
  body.ed-home .ed-kicker{ animation-delay:0.10s }
  body.ed-home .ed-hero__title{ animation-delay:0.22s }
  body.ed-home .ed-hero__sub{ animation-delay:0.36s }
  body.ed-home .ed-hero__sub--quiet{ animation-delay:0.46s }
  body.ed-home .ed-hero__cta{ animation-delay:0.56s }
  @keyframes edHeroRise{
    from{ opacity:0; transform:translateY(30px) }
    to{ opacity:1; transform:none }
  }

  /* ── Photo: frame rises + grows in, image settles from a strong zoom ── */
  body.ed-home .ed-hero__media{
    opacity:0;
    animation: edHeroFrame 1.05s cubic-bezier(0.16,1,0.3,1) 0.20s both;
  }
  @keyframes edHeroFrame{
    from{ opacity:0; transform:translateY(46px) scale(0.93) }
    to{ opacity:1; transform:none }
  }
  body.ed-home .ed-hero__media img{
    /* `scale` (individual property) composes with the parallax `transform`
       below, so the settle and the scroll-drift never fight. */
    animation: edHeroSettle 2.1s cubic-bezier(0.16,1,0.3,1) 0.20s both;
  }
  @keyframes edHeroSettle{
    from{ scale:1.20 }
    to{ scale:1 }
  }
}

/* ── Scroll-linked parallax on the photo ──────────────────────────────
   The image is sized well above its frame and drifts vertically as the
   hero passes through the viewport, giving an obvious sense of depth
   against the stationary copy. Scroll-driven, so it costs nothing on the
   main thread. Guarded by @supports so non-supporting browsers keep the
   exact current crop. */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    body.ed-home .ed-hero__media img{
      height:132%;
      top:-16%;
      animation:
        edHeroSettle 2.1s cubic-bezier(0.16,1,0.3,1) 0.20s both,
        edHeroParallax linear both;
      animation-timeline: auto, view();
      animation-range: normal, cover;
    }
    @keyframes edHeroParallax{
      from{ transform:translateY(-10%) }
      to{ transform:translateY(10%) }
    }
  }
}

/* ════════════════════════════════════════════════════════════════════
   CONDITIONS DIRECTORY (2026-06-17) — re-energize the region grid. The
   editorial homepage had flattened the cards (hid the per-region color
   stripe, killed the hover lift), leaving a plain white list. Bring back
   the color-coded chapter-tab feel (T-138) plus an interactive,
   region-hued hover, tuned to the editorial look. The per-region hue
   flows through --region-color (set per data-region in enhancements.css).
   ════════════════════════════════════════════════════════════════════ */
body.ed-home .lp-region-card{
  border-radius: 8px;
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.16,1,0.3,1),
              border-color 200ms ease,
              box-shadow 220ms ease;
}
/* Re-enable the per-region color stripe across the top of each card
   (editorial.css had forced it display:none). */
body.ed-home .lp-region-card::before{
  display: block !important;
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--region-color, var(--ed-green));
  transition: height 200ms ease;
}
/* Lift the card and glow in its own hue on hover. */
body.ed-home .lp-region-card:hover{
  transform: translateY(-4px);
  border-color: var(--region-color, var(--ed-green));
  box-shadow:
    0 20px 38px -20px color-mix(in oklab, var(--region-color, #0B2A4A) 60%, transparent),
    0 6px 14px -10px rgba(11,42,74,0.10);
}
body.ed-home .lp-region-card:hover::before{ height: 6px; }
/* The anatomy icon is the visual anchor — ease it up and scale on hover. */
body.ed-home .lp-region-card__icon{
  transition: transform 320ms cubic-bezier(0.16,1,0.3,1);
}
body.ed-home .lp-region-card:hover .lp-region-card__icon{
  transform: translateY(-3px) scale(1.06);
}
/* The "X Pain" heading and the condition links pick up the region hue on
   hover, tying the whole card to its color. */
body.ed-home .lp-region-card:hover .lp-region-card__pain{
  color: var(--region-color, var(--ed-green)) !important;
}
body.ed-home .lp-region-card__conditions a:hover{
  color: var(--region-color, var(--ed-green)) !important;
}
