/* ============================================================
   OSINB provider pages — seamless modern build (2026-06-17).
   Scope: body.is-provider. Athenahealth-style cohesion on the
   OSINB brand: the page flows as alternating white / soft-gray
   bands with generous spacing (NO hairline dividers), soft
   rounded cards with subtle shadows instead of hard-bordered
   boxes. Keeps OSINB navy/green + Newsreader serif name. Native
   Google-reviews + Leaflet-map sections stay wired; the aggregate
   star rating is suppressed (per-review stars remain).
   ============================================================ */

body.is-provider {
  --pr-serif: var(--font);
  --pr-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --pr-ink: #16191d;
  --pr-gray: #475063;
  --pr-soft: #6b7280;
  --pr-navy: #0b2a4a;
  --pr-green: #2b5e4c;
  --pr-head: #203070;
  --pr-rule: #e7ebf0;
  --pr-tint: #f4f4f3; /* neutral soft gray (NOT the cool blue Sam hated) */
  --pr-gold: #FBBC04;
  --pr-shadow: 0 6px 28px rgba(11, 42, 74, 0.07);
  --pr-shadow-sm: 0 2px 10px rgba(11, 42, 74, 0.05);
  --pr-r: 14px;
  --pr-max: 1080px;
  --pr-gutter: clamp(1.4rem, 4vw, 2.6rem);
  --pr-ease: cubic-bezier(.23, 1, .32, 1);
  background: #fff;
}

/* generic centered container used inside every band — viewport-based centering
   (matches the full-width reviews/location bands exactly, scrollbar included) */
body.is-provider .prov-inner,
body.is-provider .prov-section__inner {
  max-width: none;
  margin: 0;
  padding: 0 max(var(--pr-gutter), calc((100vw - var(--pr-max)) / 2 + var(--pr-gutter)));
}
/* align the breadcrumb to the same left edge as the page content */
body.is-provider .breadcrumb {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: max(var(--pr-gutter), calc((100vw - var(--pr-max)) / 2 + var(--pr-gutter))) !important;
  padding-right: max(var(--pr-gutter), calc((100vw - var(--pr-max)) / 2 + var(--pr-gutter))) !important;
}

/* shared section heading bits */
body.is-provider .prov-eyebrow,
body.is-provider .provider-reviews__eyebrow,
body.is-provider .provider-location__eyebrow {
  display: block;
  font-family: var(--pr-sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pr-green);
  margin: 0 0 0.7rem;
}
body.is-provider .prov-h,
body.is-provider .provider-reviews__title,
body.is-provider .provider-location__title {
  font-family: var(--pr-serif);
  font-optical-sizing: auto;
  font-weight: 480;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--pr-head);
  margin: 0 0 1.5rem;
  text-align: left;
}

/* ---------- HERO (white): portrait + name/intro ---------- */
body.is-provider .prov-hero { background: #fff; padding: clamp(2.2rem, 3.5vw, 3.4rem) 0 clamp(2.2rem, 3.5vw, 3.2rem); }
body.is-provider .prov-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(2.2rem, 4.5vw, 4rem);
  align-items: center;
}
body.is-provider .prov__fig { margin: 0; border-radius: var(--pr-r); overflow: hidden; box-shadow: var(--pr-shadow); background: var(--pr-tint); }
body.is-provider .prov__fig img { display: block; width: 100%; height: auto; border: 0; }
body.is-provider .prov__kicker {
  font-family: var(--pr-sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pr-green);
  margin: 0 0 0.9rem;
}
body.is-provider .prov__name {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--pr-head);
  margin: 0;
}
body.is-provider .prov__name em { font-style: normal; font-weight: 500; color: var(--pr-head); } /* M.D. same color as name */
body.is-provider .prov__lede {
  font-family: var(--pr-serif);
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--pr-ink);
  margin: 1.05rem 0 0;
  max-width: 48ch;
}
body.is-provider .prov__actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.8rem; flex-wrap: wrap; }
body.is-provider .prov__btn {
  font-family: var(--pr-sans);
  font-size: 0.93rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-green, #004020); /* match the nav "Schedule Appointment" CTA */
  padding: 0.92rem 1.7rem;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: var(--pr-shadow-sm);
  transition: background 160ms ease, transform 140ms var(--pr-ease);
}
body.is-provider .prov__btn:hover { background: var(--brand-green-dark, #002b15); transform: translateY(-1px); }
body.is-provider .prov__btn:active { transform: scale(.98); }
body.is-provider .prov__alt {
  font-family: var(--pr-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pr-navy);
  text-decoration: none;
  transition: color 160ms ease;
}
body.is-provider .prov__alt:hover { color: var(--pr-green); }
@media (max-width: 760px) {
  body.is-provider .prov-hero__grid { grid-template-columns: 1fr; }
  body.is-provider .prov__fig { max-width: 280px; }
}

/* ---------- CREDENTIALS strip (tint): horizontal proof points ---------- */
body.is-provider .prov-creds { background: var(--pr-tint); padding: clamp(1.8rem, 3vw, 2.6rem) 0; }
body.is-provider .prov-creds .prov__facts {
  margin: 0;
  max-width: 620px;
  background: #fff;
  border-radius: var(--pr-r);
  box-shadow: var(--pr-shadow);
  padding: clamp(0.6rem, 1.4vw, 1rem) clamp(1.5rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
}
body.is-provider .prov-creds .prov__facts > div {
  display: grid;
  grid-template-columns: 152px 1fr;
  align-items: baseline;
  gap: 0.6rem 1.4rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--pr-rule);
}
body.is-provider .prov-creds .prov__facts > div:first-child { border-top: 0; }
body.is-provider .prov-creds dt {
  font-family: var(--pr-sans);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pr-green);
  margin: 0;
}
body.is-provider .prov-creds dd {
  margin: 0;
  font-family: var(--pr-serif);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--pr-head);
}
@media (max-width: 560px) {
  body.is-provider .prov-creds .prov__facts > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- ABOUT (white): bio, full readable column ---------- */
body.is-provider .prov-about { background: #fff; padding: clamp(2.8rem, 5vw, 4.2rem) 0; }
body.is-provider .prov__narr { max-width: 68ch; }
body.is-provider .prov__narr p {
  font-family: var(--pr-serif);
  font-size: 1.13rem;
  line-height: 1.75;
  color: var(--pr-ink);
  margin: 0 0 1.25rem;
}
body.is-provider .prov__narr p:last-child { margin-bottom: 0; }
body.is-provider .prov__narr a {
  color: var(--pr-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--pr-rule);
  transition: text-decoration-color 160ms ease;
}
body.is-provider .prov__narr a:hover { text-decoration-color: var(--pr-navy); }

/* ---------- CARE TEAM (tint): rounded card ---------- */
body.is-provider .prov-section { background: var(--pr-tint); padding: clamp(2.8rem, 5vw, 4.2rem) 0; border: 0; }
/* .prov-section__inner centering handled by the unified .prov-inner rule above */
body.is-provider .prov-card {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  background: #fff;
  border-radius: var(--pr-r);
  box-shadow: var(--pr-shadow);
  padding: 1.5rem 1.7rem;
  text-decoration: none;
  max-width: 680px;
  transition: transform 160ms var(--pr-ease), box-shadow 160ms ease;
}
body.is-provider .prov-card:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(11, 42, 74, 0.10); }
body.is-provider .prov-card img {
  width: 84px;
  height: 104px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 0;
  flex: 0 0 auto;
}
body.is-provider .prov-card__text { display: block; }
body.is-provider .prov-card__name {
  display: block;
  font-family: var(--pr-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--pr-head);
  margin-bottom: 0.3rem;
  transition: color 160ms ease;
}
body.is-provider .prov-card:hover .prov-card__name { color: var(--pr-green); }
body.is-provider .prov-card__sub {
  display: block;
  font-family: var(--pr-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--pr-gray);
}
body.is-provider .prov-card__go {
  margin-left: auto;
  align-self: center;
  font-family: var(--pr-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pr-navy);
  white-space: nowrap;
  transition: transform 160ms var(--pr-ease);
}
body.is-provider .prov-card:hover .prov-card__go { transform: translateX(3px); }
@media (max-width: 560px) {
  body.is-provider .prov-card { flex-wrap: wrap; }
  body.is-provider .prov-card__go { margin-left: 0; width: 100%; }
}

/* ---------- REVIEWS (white band): pull-quote, rounded soft cards ---------- */
body.is-provider .provider-reviews:not(.provider-reviews--home) {
  max-width: none;
  margin: 0;
  background: var(--pr-tint); /* gray so the white review cards stand out */
  border: 0;
  padding: clamp(2.8rem, 5vw, 4.2rem) max(var(--pr-gutter), calc((100vw - var(--pr-max)) / 2 + var(--pr-gutter)));
  text-align: left;
}
body.is-provider .provider-reviews:not(.provider-reviews--home) > * { max-width: none; margin-left: 0; margin-right: 0; }
/* the aggregate "5.0 ★★★★★" summary is removed per Sam — not an accurate claim */
body.is-provider .provider-reviews:not(.provider-reviews--home) .reviews-summary { display: none !important; }

/* 3-up testimonial carousel: 3 cards visible, arrows page through the rest */
body.is-provider .provider-reviews:not(.provider-reviews--home) .reviews-grid.reviews-carousel { gap: 1.4rem; }
body.is-provider .provider-reviews:not(.provider-reviews--home) .reviews-grid.reviews-carousel > .review-card {
  flex: 0 0 calc((100% - 2 * 1.4rem) / 3) !important;
  border: 0;
  border-radius: var(--pr-r);
  background: #fff;
  box-shadow: var(--pr-shadow);
  padding: 1.7rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 160ms var(--pr-ease), box-shadow 160ms ease;
}
@media (max-width: 900px) {
  body.is-provider .provider-reviews:not(.provider-reviews--home) .reviews-grid.reviews-carousel > .review-card { flex: 0 0 calc((100% - 1.4rem) / 2) !important; }
}
@media (max-width: 600px) {
  body.is-provider .provider-reviews:not(.provider-reviews--home) .reviews-grid.reviews-carousel > .review-card { flex: 0 0 100% !important; }
}
body.is-provider .provider-reviews:not(.provider-reviews--home) .review-card:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(11, 42, 74, 0.10); }
/* arrows: a joined segmented control pinned to the section's top-right, in line
   with the heading. The cards stay flush with the page gutter; the old version
   pulled 44px arrows only -22px so half of each sat on top of the cards. */
body.is-provider .provider-reviews:not(.provider-reviews--home) { position: relative; }
body.is-provider .provider-reviews:not(.provider-reviews--home) .reviews-carousel-wrap { position: static; padding: 0 !important; }
body.is-provider .provider-reviews:not(.provider-reviews--home) .rev-nav {
  top: clamp(2.4rem, 4.6vw, 3.7rem);
  bottom: auto;
  transform: none;
  width: 48px;
  height: 44px;
  border: 1px solid var(--pr-rule);
  background: #fff;
  color: var(--pr-navy);
  box-shadow: var(--pr-shadow-sm);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
body.is-provider .provider-reviews:not(.provider-reviews--home) .rev-nav svg { width: 19px; height: 19px; }
body.is-provider .provider-reviews:not(.provider-reviews--home) .rev-nav:hover { background: var(--pr-navy); border-color: var(--pr-navy); color: #fff; }
/* right edge flush with the cards; the two buttons join into one pill */
body.is-provider .provider-reviews:not(.provider-reviews--home) .rev-nav--next {
  left: auto;
  right: max(var(--pr-gutter), calc((100vw - var(--pr-max)) / 2 + var(--pr-gutter)));
  border-radius: 0 11px 11px 0;
}
body.is-provider .provider-reviews:not(.provider-reviews--home) .rev-nav--prev {
  left: auto;
  right: calc(48px + max(var(--pr-gutter), calc((100vw - var(--pr-max)) / 2 + var(--pr-gutter))));
  border-radius: 11px 0 0 11px;
  border-right: 0;
}
@media (max-width: 680px) {
  body.is-provider .provider-reviews:not(.provider-reviews--home) .rev-nav { display: none; }
}
body.is-provider .provider-reviews:not(.provider-reviews--home) .review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0 0 0.7rem;
}
body.is-provider .provider-reviews:not(.provider-reviews--home) .review-card__stars { color: var(--pr-gold); font-size: 1rem; letter-spacing: 0.05em; }
body.is-provider .provider-reviews:not(.provider-reviews--home) .review-card__src--google {
  font-family: var(--pr-sans);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pr-soft);
}
body.is-provider .provider-reviews:not(.provider-reviews--home) .review-card__body {
  font-family: var(--pr-serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--pr-ink);
  margin: 0 0 1.1rem;
  flex: 1;
}
body.is-provider .provider-reviews:not(.provider-reviews--home) .review-card__more { align-self: flex-start; color: var(--pr-navy); margin: -0.5rem 0 0.9rem; }
body.is-provider .provider-reviews:not(.provider-reviews--home) .review-card__meta { margin: 0; }
body.is-provider .provider-reviews:not(.provider-reviews--home) .review-card__name { font-family: var(--pr-serif); font-size: 1.02rem; font-weight: 500; color: var(--pr-head); }
body.is-provider .provider-reviews:not(.provider-reviews--home) .reviews-cta { justify-content: flex-start; gap: 1.1rem; margin-top: 1.8rem; font-family: var(--pr-sans); color: var(--pr-gray); flex-wrap: wrap; align-items: center; }
body.is-provider .provider-reviews:not(.provider-reviews--home) .reviews-cta__link {
  font-family: var(--pr-sans);
  font-weight: 600;
  color: var(--pr-navy);
  background: #fff;
  border: 1px solid var(--pr-rule);
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  box-shadow: var(--pr-shadow-sm);
  transition: border-color 160ms ease;
}
body.is-provider .provider-reviews:not(.provider-reviews--home) .reviews-cta__link:hover { border-color: var(--pr-navy); }

/* ---------- LOCATION (tint band): rounded map + clinic card ---------- */
body.is-provider .provider-location {
  max-width: none;
  margin: 0;
  background: var(--pr-tint);
  border: 0;
  padding: clamp(2.8rem, 5vw, 4.2rem) max(var(--pr-gutter), calc((100vw - var(--pr-max)) / 2 + var(--pr-gutter)));
  text-align: left;
}
body.is-provider .provider-location__map { max-width: none; margin: 0 0 1.5rem; border-radius: var(--pr-r); overflow: hidden; box-shadow: var(--pr-shadow); }
body.is-provider .provider-location__map-canvas { border: 0; background: #ebebea; }
body.is-provider .provider-location__clinics--single { justify-content: flex-start; }
@media (min-width: 720px) {
  body.is-provider .provider-location__clinics--single { grid-template-columns: minmax(0, 480px); }
}
body.is-provider .provider-location__clinic {
  background: #fff;
  border: 0;
  border-radius: var(--pr-r);
  box-shadow: var(--pr-shadow);
  text-align: left;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
}
body.is-provider .provider-location__clinic-name {
  font-family: var(--pr-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--pr-head);
  text-align: left;
  margin: 0 0 0.5rem;
}
body.is-provider .provider-location__clinic-meta { text-align: left; color: var(--pr-gray); font-size: 0.98rem; }
body.is-provider .provider-location__clinic-link { color: var(--pr-navy); }
body.is-provider .provider-location__clinic-dir { color: var(--pr-soft); }
body.is-provider .provider-location__clinic-dir:hover { color: var(--pr-green); }
body.is-provider .provider-location__callall { text-align: left; color: var(--pr-gray); }

/* ---------- CTA band ---------- */
body.is-provider .lp-book__title { font-family: var(--pr-serif); font-weight: 480; letter-spacing: -0.01em; }
body.is-provider .lp-book__btn { border-radius: 8px; }

/* ============================================================
   MULTI-LOCATION: chips + clinic cards (Vrana, Twitero).
   Chips sit between the heading and the map. Clicking one focuses
   that clinic on the map and highlights its card (wired in
   nextgen.js); every clinic card stays listed below either way.
   ============================================================ */
body.is-provider .provider-location__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
}
body.is-provider .provider-location__chip {
  font-family: var(--pr-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--pr-navy);
  background: #fff;
  border: 1px solid var(--pr-rule);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  box-shadow: var(--pr-shadow-sm);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 140ms var(--pr-ease);
}
body.is-provider .provider-location__chip:hover { border-color: var(--pr-navy); transform: translateY(-1px); }
body.is-provider .provider-location__chip.is-active { background: var(--pr-navy); border-color: var(--pr-navy); color: #fff; }
body.is-provider .provider-location__chip:focus-visible { outline: 3px solid var(--pr-green); outline-offset: 2px; }

/* multi card grid: auto-fit so 3 or 4 clinics balance, stack on mobile */
body.is-provider .provider-location__clinics:not(.provider-location__clinics--single) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 1rem;
  margin: 0;
}
/* clinic schedule line */
body.is-provider .provider-location__clinic-when {
  font-family: var(--pr-sans);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--pr-gray);
  margin: 0 0 0.6rem;
}
/* push the link + directions to the card bottom so they line up across cards
   even when titles/addresses wrap to different line counts */
body.is-provider .provider-location__clinic-link { display: block; margin-top: auto; font-family: var(--pr-sans); font-weight: 600; }
body.is-provider .provider-location__clinic-dir { display: block; margin-top: 0.4rem; font-family: var(--pr-sans); }
/* selected clinic (chip clicked) gets a soft ring */
body.is-provider .provider-location__clinic.is-active {
  box-shadow: 0 0 0 2px var(--pr-green), var(--pr-shadow);
}
/* badges: Primary (green) and Home clinic (navy) */
body.is-provider .provider-location__primary,
body.is-provider .provider-location__home {
  display: inline-block;
  margin-left: 0.45rem;
  font-family: var(--pr-sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
  vertical-align: middle;
  white-space: nowrap;
}
body.is-provider .provider-location__primary { color: var(--pr-green); background: rgba(43, 94, 76, 0.12); }
body.is-provider .provider-location__home { color: var(--pr-navy); background: rgba(11, 42, 74, 0.10); }

/* Reserve 2 lines for the clinic name + address on multi-clinic cards so the
   cadence line and the details/directions links line up across cards even when
   titles/addresses wrap to different line counts (links also pin to the bottom
   via margin-top:auto on .provider-location__clinic-link above). */
body.is-provider .provider-location__clinics:not(.provider-location__clinics--single) .provider-location__clinic-name { line-height: 1.25; min-height: 2.5em; }
body.is-provider .provider-location__clinics:not(.provider-location__clinics--single) .provider-location__clinic-meta { line-height: 1.45; min-height: 2.9em; }
