/* ==================================================================
   BCB Blog — single post CSS
   ------------------------------------------------------------------
   Shared article primitives (post hero, byline, share, prose, pull
   quotes, callouts, inline placeholders, appointment CTA, related
   rail) used by BOTH post layouts, plus the variant blocks for
   Option A (centered article sheet) and Option B (article + sticky
   sidebar).
   Load order:  colors_and_type.css → bcb-chrome.css → blog-post.css
   (blog-landing.css optional — for the related-rail cards.)
   ================================================================== */

body.page-post {
  font-family: var(--font-sans);
  color: var(--navy-600);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.page-post [id] { scroll-margin-top: 130px; }

/* Single posts carry the same top .hub-subnav filter strip (links back to
   /blog/). Same nav-clearance issue as the landing: the ::before white-fill is
   clipped by the sitewide html,body{overflow-x:hidden}, so paint the top band
   white via the body background (clip-proof, scroll-attached). Keep this height
   matched to blog-landing.css. */
body.page-post {
  background:
    linear-gradient(#fff, #fff) left top / 100% 120px no-repeat scroll,
    var(--grad-page-v3) no-repeat fixed;
}

/* ══════════════════════════════════════════════════════════════
   POST HERO — eyebrow trail, category, title, lede, byline, share
   ══════════════════════════════════════════════════════════════ */
.bp-hero { padding: clamp(22px, 3vw, 40px) 24px clamp(14px, 2vw, 24px); }
.bp-hero__inner { max-width: 800px; margin: 0 auto; }
.bp-hero__text { min-width: 0; }
.bp-crumbs {
  font-family: var(--font-accent); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-400);
  margin: 0 0 18px; display: flex; gap: 9px; flex-wrap: wrap; align-items: center;
}
.bp-crumbs a { color: var(--navy-400); text-decoration: none; }
.bp-crumbs a:hover { color: var(--pink-600); }
.bp-crumbs__sep { opacity: 0.5; }
.bp-hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4vw, 50px); line-height: 1.06; letter-spacing: -0.024em;
  color: var(--pink-500); margin: 14px 0 0; text-wrap: balance;
}
.bp-hero__lede {
  font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55;
  color: var(--navy-600); margin: clamp(16px, 2vw, 22px) 0 0; max-width: 60ch; text-wrap: pretty;
}

/* Byline row */
.bp-byline {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: clamp(20px, 2.4vw, 28px) 0 0;
  padding: clamp(16px, 2vw, 20px) 0;
  border-top: 1px solid rgba(62,80,104,0.12);
  border-bottom: 1px solid rgba(62,80,104,0.12);
}
.bp-byline__avatar {
  --cat: var(--pink-500);
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--cat); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-accent); font-weight: 800; font-size: 16px;
}
.bp-byline__meta { display: flex; flex-direction: column; min-width: 0; }
.bp-byline__name { font-weight: 700; font-size: 15px; color: var(--navy-700); }
.bp-byline__sub { font-size: 13px; color: var(--navy-400); }
.bp-byline__sub span + span::before { content: " · "; }
.bp-byline__share { margin-left: auto; }

/* Share buttons */
.bp-share { display: flex; align-items: center; gap: 8px; }
.bp-share__label {
  font-family: var(--font-accent); font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-400);
  margin-right: 2px;
}
.bp-share__btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(62,80,104,0.16);
  color: var(--navy-500); cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.bp-share__btn:hover { background: var(--pink-500); color: #fff; border-color: var(--pink-500); transform: translateY(-2px); }
.bp-share__btn svg { width: 17px; height: 17px; }
/* QA 2026-06-10 (Suzanne): copy-link button carries a visible label so it reads
   as an action (it copies the article URL), not an empty link. */
.bp-share__btn--copy {
  width: auto; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 7px; padding: 0 14px;
}
.bp-share__copylabel {
  font-family: var(--font-accent); font-weight: 700; font-size: 12px; letter-spacing: 0.04em;
}

/* ─── Hero media + caption (shared) ─────────────────────────────── */
.bp-hero__media { margin: 0; min-width: 0; }
.bp-hero__img {
  display: block;
  width: 100%;
  object-fit: cover;            /* crop, never distort or balloon a portrait source */
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(31,45,64,.06), 0 26px 56px -20px rgba(31,45,64,.3);
}
.bp-hero__cap {
  margin: 11px 0 0; text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--navy-400);
}

/* ─── Header style modes (switched via Tweaks → [data-hero]) ─────
   full    — large image stacked under the title block (original look)
   compact — modest image, sized to the reading column
   text    — no hero image; lead straight into the article
   split   — title/byline left, image right (homepage-style)            */

/* full */
.bp-hero[data-hero="full"] .bp-hero__inner { max-width: 980px; }
.bp-hero[data-hero="full"] .bp-hero__text { max-width: 800px; margin: 0 auto; }
.bp-hero[data-hero="full"] .bp-hero__media { margin-top: clamp(20px, 3vw, 32px); }
.bp-hero[data-hero="full"] .bp-hero__img { aspect-ratio: 16 / 8; }

/* compact */
.bp-hero[data-hero="compact"] .bp-hero__inner { max-width: 800px; }
.bp-hero[data-hero="compact"] .bp-hero__media { margin-top: clamp(18px, 2.4vw, 26px); }
.bp-hero[data-hero="compact"] .bp-hero__img { aspect-ratio: 16 / 7; }

/* text only */
.bp-hero[data-hero="text"] .bp-hero__inner { max-width: 800px; }
.bp-hero[data-hero="text"] .bp-hero__media { display: none; }

/* split — side by side on wide screens, stacks on mobile */
.bp-hero[data-hero="split"] .bp-hero__inner { max-width: 1120px; }
.bp-hero[data-hero="split"] .bp-hero__media { margin-top: clamp(20px, 3vw, 30px); }
.bp-hero[data-hero="split"] .bp-hero__img { aspect-ratio: 16 / 10; }
@media (min-width: 920px) {
  .bp-hero[data-hero="split"] .bp-hero__inner {
    display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 4vw, 52px); align-items: center;
  }
  .bp-hero[data-hero="split"] .bp-hero__media { margin-top: 0; align-self: center; }
  /* Landscape crop that matches the /blog/ card; object-fit:cover crops any
     source (portrait or wide) into this box so the opened hero never balloons. */
  .bp-hero[data-hero="split"] .bp-hero__img { aspect-ratio: 3 / 2; height: auto; max-height: 440px; }
}

/* ══════════════════════════════════════════════════════════════
   ARTICLE PROSE — the reading column
   ══════════════════════════════════════════════════════════════ */
.bp-prose { color: var(--navy-600); }
.bp-prose > * { margin: 0; }
.bp-prose > * + * { margin-top: 1.15em; }
.bp-prose p {
  font-size: clamp(16.5px, 1.1vw, 18px); line-height: 1.74; text-wrap: pretty;
}
.bp-prose p > a, .bp-prose li > a {
  color: var(--pink-600); text-decoration: none;
  border-bottom: 1px solid rgba(194,99,138,0.32); padding-bottom: 1px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.bp-prose p > a:hover, .bp-prose li > a:hover { color: var(--pink-700); border-color: var(--pink-500); }
.bp-prose h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(23px, 2.2vw, 30px); line-height: 1.18; letter-spacing: -0.02em;
  color: var(--navy-700); margin-top: 1.7em; text-wrap: balance;
}
.bp-prose h2 .bp-num {
  font-family: var(--font-accent); color: var(--pink-500); margin-right: 0.5ch;
}
.bp-prose h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; letter-spacing: -0.014em;
  color: var(--navy-700); margin-top: 1.5em;
}
.bp-prose ul, .bp-prose ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.bp-prose ul li, .bp-prose ol li {
  position: relative; padding-left: 28px;
  font-size: clamp(16px, 1.05vw, 17.5px); line-height: 1.65; color: var(--navy-600);
}
.bp-prose ul li::before {
  content: ""; position: absolute; left: 5px; top: 0.62em;
  width: 8px; height: 8px; background: var(--pink-400); border-radius: 2px; transform: rotate(45deg);
}
.bp-prose ol { counter-reset: bpol; }
.bp-prose ol li { counter-increment: bpol; padding-left: 34px; }
.bp-prose ol li::before {
  content: counter(bpol); position: absolute; left: 0; top: 0.05em;
  width: 22px; height: 22px; border-radius: 50%; background: var(--pink-100); color: var(--pink-700);
  font-family: var(--font-accent); font-weight: 800; font-size: 12px;
  display: grid; place-items: center;
}

/* Pull quote */
.bp-pull {
  margin: clamp(26px, 3vw, 36px) 0; padding: 4px 0 4px 26px;
  border-left: 3px solid var(--pink-300);
}
.bp-pull p {
  font-style: italic; font-weight: 500;
  font-size: clamp(20px, 1.9vw, 26px) !important; line-height: 1.38 !important;
  color: var(--navy-700); margin: 0; text-wrap: pretty;
}

/* Inline callout (tip / note) — sky-tinted */
.bp-callout {
  margin: clamp(24px, 2.8vw, 32px) 0;
  background: var(--sky-50);
  border: 1px solid color-mix(in srgb, var(--sky-400) 30%, #fff);
  border-left: 4px solid var(--sky-600);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 26px);
}
.bp-callout__label {
  font-family: var(--font-accent); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-700);
  margin: 0 0 8px;
}
.bp-callout p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--navy-600); }

/* Clinical safety note — sanctioned terracotta */
.bp-note {
  margin: clamp(24px, 2.8vw, 32px) 0;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-left: 4px solid var(--note-accent);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 26px);
}
.bp-note__label {
  font-family: var(--font-accent); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--note-accent);
  margin: 0 0 8px; display: flex; align-items: center; gap: 8px;
}
.bp-note__label::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%; background: var(--note-accent); flex: none;
  -webkit-mask: no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='8' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
          mask: no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='8' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}
.bp-note p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--navy-600); }

/* Inline figure placeholder */
.bp-figure { margin: clamp(24px, 2.8vw, 34px) 0; }
.bp-figure .blog-ph { aspect-ratio: 16 / 9; }
.bp-figure figcaption {
  margin: 11px 0 0; text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--navy-400);
}

/* ══════════════════════════════════════════════════════════════
   APPOINTMENT CTA CARD — in-article conversion
   ══════════════════════════════════════════════════════════════ */
.bp-cta {
  margin: clamp(30px, 4vw, 44px) 0;
  background: linear-gradient(150deg, color-mix(in srgb, var(--pink-500) 14%, #fff) 0%, #fff 60%);
  border: 1px solid var(--pink-100);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 38px);
  text-align: center;
}
.bp-cta__eyebrow {
  font-family: var(--font-accent); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink-600); margin: 0 0 10px;
}
.bp-cta__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(21px, 2.2vw, 28px); line-height: 1.16; letter-spacing: -0.02em;
  color: var(--navy-700); margin: 0 0 10px; text-wrap: balance;
}
.bp-cta__text { font-size: 15.5px; line-height: 1.6; color: var(--navy-600); margin: 0 auto 22px; max-width: 50ch; text-wrap: pretty; }
.bp-cta__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   END MATTER — author bio, tags, share-again, related rail
   ══════════════════════════════════════════════════════════════ */
.bp-authorbox {
  display: flex; gap: 18px; align-items: flex-start;
  margin: clamp(28px, 3.4vw, 40px) 0 0;
  padding: clamp(22px, 2.6vw, 30px);
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: var(--card-lift-blur); backdrop-filter: var(--card-lift-blur);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-lift);
}
.bp-authorbox__avatar {
  --cat: var(--pink-500);
  width: 60px; height: 60px; flex: none; border-radius: 50%;
  background: var(--cat); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-accent); font-weight: 800; font-size: 21px;
}
.bp-authorbox__name { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--navy-700); margin: 0 0 2px; }
.bp-authorbox__role { font-family: var(--font-accent); font-weight: 700; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink-600); margin: 0 0 10px; }
.bp-authorbox__bio { font-size: 14.5px; line-height: 1.6; color: var(--navy-500); margin: 0; text-wrap: pretty; }

.bp-tags { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: clamp(24px, 3vw, 32px) 0 0; }
.bp-tags__label { font-family: var(--font-accent); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-400); }
.bp-tag {
  font-size: 13px; font-weight: 600; color: var(--navy-600); text-decoration: none;
  background: rgba(255,255,255,0.66); border: 1px solid rgba(62,80,104,0.14);
  padding: 6px 13px; border-radius: var(--radius-pill);
}
.bp-tag:hover { color: var(--pink-600); border-color: var(--pink-200); }

.bp-related { padding: clamp(36px, 5vw, 64px) 24px; }
.bp-related__inner { max-width: 1180px; margin: 0 auto; }
.bp-related__head { text-align: center; margin-bottom: clamp(24px, 3vw, 36px); }
.bp-related__eyebrow { font-family: var(--font-accent); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink-600); margin: 0 0 10px; }
.bp-related__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.02em; color: var(--pink-500); margin: 0; text-wrap: balance; }
.bp-related__grid { display: grid; gap: clamp(18px, 2vw, 26px); grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
@media (max-width: 600px) { .bp-related__grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════
   OPTION A — centered article sheet (single column on the gradient)
   ══════════════════════════════════════════════════════════════ */
.bp-sheet {
  max-width: 820px;
  margin: clamp(10px, 1.6vw, 20px) auto clamp(36px, 5vw, 60px);
  padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 64px);
  background: rgba(255, 253, 251, 0.93);
  -webkit-backdrop-filter: blur(10px) saturate(112%); backdrop-filter: blur(10px) saturate(112%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-2xl);
  box-shadow: 0 1px 3px rgba(31,45,64,.05), 0 22px 60px -20px rgba(31,45,64,.22);
}

/* ══════════════════════════════════════════════════════════════
   OPTION B — article + sticky sidebar
   ══════════════════════════════════════════════════════════════ */
.bp-layout { padding: clamp(14px, 2vw, 26px) 24px clamp(36px, 5vw, 60px); }
.bp-layout__inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 52px);
}
.bp-main {
  background: rgba(255, 253, 251, 0.93);
  -webkit-backdrop-filter: blur(10px) saturate(112%); backdrop-filter: blur(10px) saturate(112%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-2xl);
  padding: clamp(26px, 3.4vw, 48px) clamp(22px, 3.4vw, 52px);
  box-shadow: 0 1px 3px rgba(31,45,64,.05), 0 22px 60px -20px rgba(31,45,64,.2);
  min-width: 0;
}
.bp-aside { min-width: 0; }
.bp-aside__sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }

.bp-side-card {
  background: rgba(255,255,255,0.62);
  -webkit-backdrop-filter: var(--card-lift-blur); backdrop-filter: var(--card-lift-blur);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-lift);
  padding: clamp(18px, 2vw, 24px);
}
.bp-side-card__label {
  font-family: var(--font-accent); font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-400);
  margin: 0 0 14px;
}
/* TOC */
.bp-toc { display: flex; flex-direction: column; gap: 2px; }
.bp-toc a {
  font-size: 14px; line-height: 1.4; color: var(--navy-500); text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.bp-toc a:hover { background: var(--pink-50); color: var(--pink-700); }
.bp-toc a.is-active { background: var(--pink-50); color: var(--pink-700); border-left-color: var(--pink-500); font-weight: 600; }

/* sidebar author mini */
.bp-side-author { display: flex; gap: 13px; align-items: center; }
.bp-side-author__avatar {
  --cat: var(--pink-500);
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--cat); color: #fff; display: grid; place-items: center;
  font-family: var(--font-accent); font-weight: 800; font-size: 15px;
}
.bp-side-author__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--navy-700); }
.bp-side-author__role { font-size: 12.5px; color: var(--navy-400); }

/* sidebar mini CTA */
.bp-side-cta { text-align: center; background: linear-gradient(150deg, color-mix(in srgb, var(--pink-500) 16%, #fff), #fff 70%); border-color: var(--pink-100); }
.bp-side-cta__title { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--navy-700); margin: 0 0 8px; }
.bp-side-cta__text { font-size: 13.5px; line-height: 1.55; color: var(--navy-500); margin: 0 0 16px; }
/* Narrow (≈252px) sidebar column can't fit "Request Appointment" at the
   default 28px side padding + fixed 52px height — the label clips. Let it
   size to the column: full width, tighter padding, wrap to 2 lines if it must. */
.bp-side-cta .btn {
  width: 100%; box-sizing: border-box; max-width: 100%;
  padding-left: 16px; padding-right: 16px;
  height: auto; min-height: 52px;
  white-space: normal; line-height: 1.2; text-align: center;
}

.bp-aside__share { display: flex; align-items: center; gap: 8px; justify-content: flex-start; }

@media (min-width: 940px) {
  .bp-layout__inner { grid-template-columns: 300px 1fr; }
}

/* ─── CTA discipline ────────────────────────────────────────────
   Below the two-column breakpoint the sticky sidebar collapses and
   stacks under the article, where the persistent mobile bottom bar
   (.mobile-cta-bar) already presents "Request Appointment." Showing
   the sidebar mini-CTA there too would duplicate the same action in
   the same viewport, so hide it on mobile. The contextual in-article
   .bp-cta block stays — it earns its place with its own argument. */
@media (max-width: 939px) {
  .bp-side-cta { display: none; }
}

/* ─── Related care block (appended to blog posts) ───────────────
   Internal links from a post to the relevant Model 5 service /
   condition / location pages. Added by apply-blog-links.php. */
.bcb-related {
  margin: 40px 0 8px;
  padding: 22px 26px;
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  border-left: 4px solid var(--pink-500);
  border-radius: var(--radius-lg);
}
.bcb-related__label {
  margin: 0 0 12px;
  font-family: var(--font-accent);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pink-700);
}
.bcb-related__list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 9px;
}
.bcb-related__list li { margin: 0; }
/* QA 2026-06-10 (Suzanne): related items are text LINKS, not pill buttons. */
.bcb-related__list a {
  font-weight: 600; font-size: 15px;
  color: var(--pink-700);
  text-decoration: underline;
  text-decoration-color: var(--pink-300);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}
.bcb-related__list a:hover { color: var(--pink-500); text-decoration-color: var(--pink-500); }
