/* ============================================================
   Blog Post template (single.php)
   Everything is scoped under .blog-post so nothing leaks into the
   header, footer or the rest of the theme. Headings set their
   colour explicitly because the theme's h1–h6 rules beat inheritance.
   Button hover uses #FF6B4A, matching the other templates.
   The in-article component classes (.bp-compare, .bp-stat, .bp-steps,
   .bp-inline-cta) are also loaded in the block editor.
   ============================================================ */

.blog-post,
.editor-styles-wrapper {
  --bp-ink: #1C2240;
  --bp-navy: #333957;
  --bp-navy-d: #2A2F4C;
  --bp-body: #3E465E;
  --bp-muted: #6A7187;
  --bp-teal: #1FAE9E;
  --bp-teal-d: #1FAE9E;
  --bp-mint: #1FAE9E;
  --bp-tint: #E5F4F1;
  --bp-light: #F4F6F9;
  --bp-line: #E3E7EE;
  --bp-hover: #FF6B4A;
  --bp-sticky-top: 120px;
}

.blog-post {
  font-family: 'Ubuntu', system-ui, sans-serif;
  color: var(--bp-body);
  background: #fff;
  overflow-x: clip; /* clip (not hidden) so position:sticky keeps working */
}
.blog-post *,
.blog-post *::before,
.blog-post *::after { box-sizing: border-box; }
.blog-post img { max-width: 100%; height: auto; }
.blog-post h1, .blog-post h2, .blog-post h3, .blog-post h4 {
  font-family: 'Ubuntu', system-ui, sans-serif; color: var(--bp-ink);
  text-transform: none; letter-spacing: -0.01em;
}
.blog-post a { text-decoration: none; }
.blog-post ul, .blog-post ol { list-style-position: outside; }

.blog-post .bp-wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

.blog-post .bp-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bp-muted); margin: 0 0 12px;
}

/* ---- buttons ---- */
.blog-post .bp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bp-teal-d); color: #fff !important; font-size: 15px; font-weight: 700;
  line-height: 1.3; padding: 14px 22px; border-radius: 6px; border: 1px solid transparent;
  text-align: center; white-space: normal; text-decoration: none; transition: background .18s ease, border-color .18s ease;
}
.blog-post .bp-btn:hover,
.blog-post .bp-btn:focus-visible { background: var(--bp-hover); }
.blog-post .bp-btn--block { display: flex; width: 100%; }
.blog-post .bp-btn--ghost { background: transparent; border-color: rgba(255,255,255,0.35); }
.blog-post .bp-btn--ghost:hover,
.blog-post .bp-btn--ghost:focus-visible { background: rgba(255,255,255,0.08); border-color: #fff; }

.blog-post .bp-arrow { color: var(--bp-teal-d); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.blog-post .bp-arrow:hover { color: var(--bp-hover); }

.blog-post :focus-visible { outline: 2px solid var(--bp-teal-d); outline-offset: 2px; }


/* ================= HERO ================= */
.blog-post .bp-hero { background: var(--bp-light); padding: 40px 0 56px; }
.blog-post.has-image .bp-hero {
  padding-bottom: 0;
  /* grey band stops part-way down the featured image */
  background: linear-gradient(to bottom, var(--bp-light) 0, var(--bp-light) calc(100% - 180px), #fff calc(100% - 180px));
}

.blog-post .bp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--bp-muted); margin-bottom: 22px; }
.blog-post .bp-crumbs a { color: var(--bp-muted); }
.blog-post .bp-crumbs a:hover { color: var(--bp-teal-d); text-decoration: underline; }
.blog-post .bp-crumbs [aria-current] { color: var(--bp-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

.blog-post .bp-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.blog-post .bp-pills li { margin: 0; }
.blog-post .bp-pill {
  display: inline-block; font-size: 12px; font-weight: 500; line-height: 1; padding: 7px 12px;
  border-radius: 999px; background: #E6E9EF; color: var(--bp-ink);
}
.blog-post .bp-pill--primary { background: var(--bp-tint); color: var(--bp-teal-d); }
.blog-post .bp-pill:hover { background: var(--bp-teal-d); color: #fff; }

.blog-post h1.bp-title {
  font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; font-weight: 700;
  letter-spacing: -0.02em; margin: 0 0 16px; max-width: 18em; text-wrap: balance;
}
.blog-post .bp-standfirst { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--bp-body); max-width: 36em; margin: 0 0 24px; text-wrap: pretty; }

.blog-post .bp-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 14px; color: var(--bp-muted); }
.blog-post .bp-byline .bp-avatar { margin-right: -10px; }
.blog-post .bp-byline__who { display: flex; flex-direction: column; line-height: 1.3; }
.blog-post .bp-byline__name { color: var(--bp-ink); font-weight: 700; }
.blog-post .bp-byline__name:hover { color: var(--bp-teal-d); }
.blog-post .bp-byline__role { font-size: 13px; }

.blog-post .bp-avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: var(--bp-navy); color: #fff; font-size: 15px; font-weight: 700;
}
.blog-post .bp-avatar { position: relative; }
.blog-post .bp-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 50%; }

.blog-post .bp-feature { margin: 40px 0 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bp-navy); }
.blog-post .bp-feature__img { display: block; width: 100%; height: 100%; object-fit: cover; }


/* ================= LAYOUT ================= */
.blog-post .bp-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 250px;
  grid-template-areas: "rail article side";
  gap: 48px; padding: 56px 0 72px; align-items: start;
}
.blog-post .bp-rail { grid-area: rail; position: sticky; top: var(--bp-sticky-top); }
.blog-post .bp-article { grid-area: article; max-width: 680px; width: 100%; margin: 0 auto; }
.blog-post .bp-side { grid-area: side; align-self: stretch; }
.blog-post .bp-side__sticky { position: sticky; top: var(--bp-sticky-top); display: flex; flex-direction: column; gap: 32px; }
.blog-post .bp-layout--no-toc { grid-template-columns: 0 minmax(0, 1fr) 250px; }
.blog-post .bp-layout--no-toc .bp-rail { display: none; }


/* ---- contents (desktop: plain list in the left rail) ---- */
.blog-post .bp-toc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.blog-post .bp-toc__icon { display: none; color: var(--bp-ink); }
.blog-post .bp-toc__title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bp-muted); }
.blog-post .bp-toc__toggle { display: none; }
.blog-post .bp-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.blog-post .bp-toc__list > li { margin: 0; counter-increment: toc; }
.blog-post .bp-toc__list ul { list-style: none; margin: 0 0 4px; padding: 0 0 0 12px; }
.blog-post .bp-toc__list ul li { margin: 0; }
.blog-post .bp-toc a {
  display: block; font-size: 13px; line-height: 1.35; color: var(--bp-body);
  padding: 6px 0 6px 12px; border-left: 2px solid var(--bp-line);
  transition: color .15s ease, border-color .15s ease;
}
.blog-post .bp-toc ul a { font-size: 12.5px; color: var(--bp-muted); padding-top: 4px; padding-bottom: 4px; }
.blog-post .bp-toc a:hover { color: var(--bp-teal-d); }
.blog-post .bp-toc a.is-active { color: var(--bp-teal-d); font-weight: 700; border-left-color: var(--bp-teal-d); }

/* ---- share ---- */
.blog-post .bp-share--rail { margin-top: 32px; }
.blog-post .bp-share--end { display: none; }
.blog-post .bp-share__list { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.blog-post .bp-share__list li { margin: 0; }
.blog-post .bp-share__btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bp-line);
  background: #fff; color: var(--bp-ink); cursor: pointer; padding: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.blog-post .bp-share__btn:hover { background: var(--bp-teal-d); border-color: var(--bp-teal-d); color: #fff; }
.blog-post .bp-share__done {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  background: var(--bp-ink); color: #fff; font-size: 11px; padding: 3px 7px; border-radius: 4px;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s ease;
}
.blog-post .bp-share__done.is-visible { opacity: 1; }


/* ================= ARTICLE ================= */
.blog-post .bp-takeaways {
  background: var(--bp-light); border-left: 3px solid var(--bp-teal); border-radius: 6px;
  padding: 22px 26px; margin-bottom: 36px;
}
.blog-post .bp-takeaways .bp-label { color: var(--bp-teal-d); }
.blog-post .bp-takeaways ul { margin: 0; padding-left: 18px; }
.blog-post .bp-takeaways li { font-size: 15px; line-height: 1.5; color: var(--bp-ink); margin: 0 0 8px; }
.blog-post .bp-takeaways li:last-child { margin-bottom: 0; }

.blog-post .bp-content { font-size: 17px; line-height: 1.7; color: var(--bp-body); }
.blog-post .bp-content > * { margin-top: 0; margin-bottom: 22px; }
.blog-post .bp-content p { line-height: 1.7; }
.blog-post .bp-content h2 {
  font-size: clamp(24px, 2.5vw, 30px); line-height: 1.2; font-weight: 700;
  margin: 52px 0 16px; scroll-margin-top: calc(var(--bp-sticky-top) + 10px); text-wrap: balance;
}
.blog-post .bp-content h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 36px 0 12px; scroll-margin-top: calc(var(--bp-sticky-top) + 10px); }
.blog-post .bp-content h4 { font-size: 17px; line-height: 1.35; font-weight: 700; margin: 28px 0 8px; }
.blog-post .bp-content > h2:first-child,
.blog-post .bp-content > h3:first-child { margin-top: 0; }
.blog-post .bp-content a { color: var(--bp-teal-d); text-decoration: underline; text-underline-offset: 2px; }
.blog-post .bp-content a:hover { color: var(--bp-hover); }
.blog-post .bp-content ul,
.blog-post .bp-content ol { padding-left: 22px; }
.blog-post .bp-content li { line-height: 1.6; margin: 0 0 8px; }
.blog-post .bp-content strong { color: var(--bp-ink); }
.blog-post .bp-content blockquote {
  border-left: 3px solid var(--bp-teal); padding: 4px 0 4px 22px; margin: 32px 0;
  font-size: 19px; color: var(--bp-ink);
}
.blog-post .bp-content blockquote p { font-size: inherit; }
.blog-post .bp-content figure { margin: 32px 0; }
.blog-post .bp-content figure img { border-radius: 8px; display: block; }
.blog-post .bp-content figcaption { font-size: 13px; color: var(--bp-muted); margin-top: 8px; }
.blog-post .bp-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.blog-post .bp-content th,
.blog-post .bp-content td { border-bottom: 1px solid var(--bp-line); padding: 10px 12px; text-align: left; }
.blog-post .bp-content th { color: var(--bp-ink); }
.blog-post .bp-content hr { border: 0; border-top: 1px solid var(--bp-line); margin: 44px 0; }


/* ================= IN-ARTICLE COMPONENTS (block patterns) =================
   Shared by the front end (.blog-post) and the block editor. */

/* Comparison cards */
.bp-compare.wp-block-columns { gap: 16px; margin: 28px 0; }
.bp-compare .bp-card,
.bp-compare > .wp-block-column {
  border: 1px solid var(--bp-line); border-radius: 8px; padding: 20px 22px; background: #fff;
}
.bp-compare h4 { font-size: 15px !important; line-height: 1.35; margin: 0 0 8px !important; color: var(--bp-ink); }
.bp-compare p { font-size: 14.5px !important; line-height: 1.55 !important; margin: 0 !important; }

/* Stat callout */
.bp-stat {
  display: flex; align-items: center; gap: 24px; margin: 32px 0;
  background: var(--bp-navy); color: #DCE0EC; border-radius: 10px; padding: 26px 30px;
}
.bp-stat p { margin: 0 !important; }
.bp-stat .bp-stat__num {
  flex: none; font-size: clamp(38px, 4.5vw, 48px) !important; line-height: 1 !important;
  font-weight: 700; color: var(--bp-mint); letter-spacing: -0.02em;
}
.bp-stat .bp-stat__text { font-size: 15px !important; line-height: 1.5 !important; color: #DCE0EC; }
.bp-stat .bp-stat__text strong { color: #fff; }

/* Numbered steps */
.bp-steps { counter-reset: bp-step; margin: 28px 0; }
.bp-steps > .bp-step,
.bp-steps > .wp-block-group {
  counter-increment: bp-step; position: relative;
  padding: 22px 0 22px 52px; border-top: 1px solid var(--bp-line); margin: 0 !important;
}
.bp-steps > .bp-step:last-child,
.bp-steps > .wp-block-group:last-child { border-bottom: 1px solid var(--bp-line); }
.bp-steps > .bp-step::before,
.bp-steps > .wp-block-group::before {
  content: counter(bp-step); position: absolute; left: 0; top: 20px;
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bp-tint); color: var(--bp-teal-d); font-size: 14px; font-weight: 700;
}
.bp-steps h3 { font-size: 18px !important; line-height: 1.35; margin: 4px 0 8px !important; color: var(--bp-ink); }
.bp-steps p { margin: 0 0 10px !important; }
.bp-steps p:last-child { margin-bottom: 0 !important; }

/* Inline CTA */
.bp-inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap;
  background: var(--bp-tint); border: 1px solid #C9E8E1; border-radius: 10px; padding: 22px 26px; margin: 36px 0;
}
.bp-inline-cta__text { flex: 1 1 260px; }
.bp-inline-cta p { margin: 0 !important; font-size: 14.5px !important; line-height: 1.5 !important; }
.bp-inline-cta .bp-inline-cta__title { font-size: 17px !important; font-weight: 700; color: var(--bp-ink); margin-bottom: 4px !important; }
.bp-inline-cta .wp-block-buttons { margin: 0 !important; flex: none; }
.bp-inline-cta .wp-block-button__link {
  background: var(--bp-teal-d) !important; color: #fff !important; text-decoration: none !important;
  font-size: 14.5px; font-weight: 700; padding: 13px 20px; border-radius: 6px; transition: background .18s ease;
}
.bp-inline-cta .wp-block-button__link:hover { background: var(--bp-hover) !important; }


/* ---- written by ---- */
.blog-post .bp-author {
  display: flex; gap: 18px; align-items: flex-start;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--bp-line);
}
.blog-post .bp-author .bp-avatar { width: 56px; height: 56px; font-size: 18px; }
.blog-post .bp-author .bp-label { margin-bottom: 4px; }
.blog-post .bp-author__name { display: block; font-size: 17px; font-weight: 700; color: var(--bp-ink); }
.blog-post .bp-author__name:hover { color: var(--bp-teal-d); }
.blog-post .bp-author__role { display: block; font-size: 14px; color: var(--bp-muted); }
.blog-post .bp-author__bio { font-size: 15px; line-height: 1.6; margin: 10px 0 0; }


/* ================= SIDEBAR ================= */
.blog-post .bp-cta-card { background: var(--bp-navy); color: #DCE0EC; border-radius: 10px; padding: 20px; }
.blog-post .bp-cta-card__title { font-size: 18px; line-height: 1.25; font-weight: 700; color: #fff; margin: 0 0 8px; }
.blog-post .bp-cta-card__text { font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.blog-post .bp-cta-card .bp-btn { font-size: 14px; padding: 12px 14px; }
.blog-post .bp-cta-card__call { font-size: 13px; line-height: 1.4; margin: 12px 0 0; text-align: center; color: #B9BFD3; }
.blog-post .bp-cta-card__call a { color: #fff !important; font-weight: 700; }

.blog-post .bp-topics ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.blog-post .bp-topics li { margin: 0; }
.blog-post .bp-chip {
  display: inline-block; font-size: 12.5px; line-height: 1; padding: 8px 11px;
  border: 1px solid var(--bp-line); border-radius: 6px; color: var(--bp-ink); background: #fff;
}
.blog-post .bp-chip:hover { border-color: var(--bp-teal-d); color: var(--bp-teal-d); }
.blog-post .bp-chip.is-current { background: var(--bp-tint); border-color: var(--bp-tint); color: var(--bp-teal-d); font-weight: 500; }


/* ================= KEEP READING ================= */
.blog-post .bp-related { background: var(--bp-light); padding: 64px 0 72px; }
.blog-post .bp-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.blog-post .bp-related__head h2 { font-size: 28px; line-height: 1.2; margin: 0; }
.blog-post .bp-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-post .bp-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--bp-line); color: inherit; transition: box-shadow .18s ease, transform .18s ease;
}
.blog-post .bp-card:hover { box-shadow: 0 10px 28px rgba(28, 34, 64, 0.10); transform: translateY(-2px); }
.blog-post .bp-card__img { display: block; aspect-ratio: 3 / 2; background: #DDE2EA; overflow: hidden; }
.blog-post .bp-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-post .bp-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.blog-post .bp-card__cat { font-size: 12px; font-weight: 700; color: var(--bp-teal-d); }
.blog-post .bp-card__title { font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--bp-ink); }
.blog-post .bp-card:hover .bp-card__title { color: var(--bp-teal-d); }
.blog-post .bp-card__meta { font-size: 13px; color: var(--bp-muted); }


/* ================= CTA BAND ================= */
.blog-post .bp-band { background: var(--bp-navy); color: #DCE0EC; padding: 56px 0; }
.blog-post .bp-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.blog-post .bp-band__copy { flex: 1 1 420px; }
.blog-post .bp-band h2 { color: #fff; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
.blog-post .bp-band p { margin: 0; font-size: 16px; }
.blog-post .bp-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }


/* ================= MOBILE STICKY CTA ================= */
.blog-post .bp-sticky-cta { display: none; }


/* ================= RESPONSIVE ================= */
@media (max-width: 920px) {
  .blog-post { --bp-sticky-top: 24px; }
}

/* Tablet: contents box moves above the article, sidebar stays on the right */
@media (max-width: 1099px) {
  .blog-post .bp-layout,
  .blog-post .bp-layout--no-toc {
    grid-template-columns: minmax(0, 1fr) 240px;
    grid-template-areas: "rail side" "article side";
    gap: 32px 40px;
  }
  .blog-post .bp-rail { position: static; }
  .blog-post .bp-article { margin: 0; max-width: none; }
  .blog-post .bp-share--rail { display: none; }
  .blog-post .bp-share--end { display: block; margin-top: 40px; }
  .blog-post .bp-layout--no-toc .bp-rail { display: none; }

  /* contents as a collapsible box */
  .blog-post .bp-toc { border: 1px solid var(--bp-line); border-radius: 10px; background: #fff; }
  .blog-post .bp-toc__head { margin: 0; padding: 14px 18px; }
  .blog-post .bp-toc[data-open="true"] .bp-toc__head { border-bottom: 1px solid var(--bp-line); }
  .blog-post .bp-toc__icon { display: inline-flex; }
  .blog-post .bp-toc__title { flex: 1; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--bp-ink); }
  .blog-post .bp-toc__toggle {
    display: inline-block; background: none; border: 0; padding: 4px 0; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 700; color: var(--bp-teal-d);
  }
  .blog-post .bp-toc[data-open="false"] .bp-toc__list { display: none; }
  .blog-post .bp-toc__list { padding: 6px 18px 10px; }
  .blog-post .bp-toc__list ul { display: none; } /* top-level sections only */
  .blog-post .bp-toc__list > li + li { border-top: 1px solid var(--bp-line-2, #EEF1F4); }
  .blog-post .bp-toc__list > li > a {
    display: flex; gap: 12px; border: 0; padding: 12px 0; font-size: 15px;
  }
  .blog-post .bp-toc__list > li > a::before { content: counter(toc); color: var(--bp-muted); min-width: 1em; }
  .blog-post .bp-toc__list > li > a.is-active::before { color: var(--bp-teal-d); }
}

/* Phone: one column, sidebar CTA swapped for a sticky button */
@media (max-width: 767px) {
  .blog-post .bp-wrap { padding-left: 16px; padding-right: 16px; }
  .blog-post .bp-hero { padding-top: 28px; padding-bottom: 32px; }
  .blog-post.has-image .bp-hero { background: var(--bp-light); }
  .blog-post .bp-crumbs { display: none; }
  .blog-post .bp-standfirst { margin-bottom: 18px; }
  .blog-post.has-image .bp-hero > .bp-wrap:last-child { padding: 0; }
  .blog-post .bp-feature { margin-top: 28px; border-radius: 0; }

  .blog-post .bp-layout,
  .blog-post .bp-layout--no-toc {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "rail" "article" "side";
    gap: 28px; padding: 24px 0 48px;
  }
  .blog-post .bp-side { align-self: auto; }
  .blog-post .bp-side__sticky { position: static; }
  .blog-post .bp-cta-card { display: none; }

  .blog-post .bp-takeaways { padding: 20px 20px; }
  .blog-post .bp-content { font-size: 16.5px; }
  .blog-post .bp-content h2 { margin-top: 40px; }
  .bp-compare.wp-block-columns { flex-direction: column; }
  .bp-stat { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; }
  .bp-inline-cta .wp-block-buttons,
  .bp-inline-cta .wp-block-button,
  .bp-inline-cta .wp-block-button__link { width: 100%; text-align: center; }

  .blog-post .bp-related { padding: 48px 0 56px; }
  .blog-post .bp-related__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .blog-post .bp-related__head h2 { font-size: 24px; }
  .blog-post .bp-band { padding: 44px 0; }
  .blog-post .bp-band__actions { width: 100%; }
  .blog-post .bp-band__actions .bp-btn { flex: 1 1 100%; }

  .blog-post .bp-sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96); border-top: 1px solid var(--bp-line);
    box-shadow: 0 -6px 18px rgba(28,34,64,0.08);
    transition: transform .25s ease;
  }
  .blog-post .bp-sticky-cta.is-hidden { transform: translateY(110%); }
  .blog-post .bp-sticky-cta .bp-btn { padding: 13px 16px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-post *, .blog-post *::before, .blog-post *::after { transition: none !important; }
  html:has(.blog-post) { scroll-behavior: auto; }
}
