/* Blog post components (bp-*). Loaded on post pages only, after styles.css.
   Generated by _baseline/tools/build_blog.py from patterns in each post body.
   Every rule here is additive: a post with none of these classes renders as
   the plain BLOG-TEMPLATE markup styled in styles.css. */

.blog-article { --bp-line: #e3e8f2; --bp-soft: #f4f7fc; --bp-green-soft: #e9f8ef; --bp-warn: #8a5a1f; --bp-warn-soft: #fbf3e8; }

/* reading progress (blog-post.js) */
.bp-progress { position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 4px; pointer-events: none; }
.bp-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--green)); }

/* standfirst under the title */
.bp-dek { font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--navy-2); margin: 0 0 26px;
  padding-left: 18px; border-left: 4px solid var(--green); }

/* in this article */
.bp-toc { margin: 8px 0 34px; padding: 20px 24px; background: var(--bp-soft); border: 1px solid var(--bp-line); border-radius: 14px; }
.bp-toc__head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--navy-2); }
.bp-toc__head svg { width: 18px; height: 18px; color: var(--blue); }
.bp-toc ol { margin: 0 !important; padding: 0 0 0 1.3em; columns: 2; column-gap: 32px; font-size: 15px; line-height: 1.5; }
.bp-toc li { margin: 0 0 8px; break-inside: avoid; }
.bp-toc li::marker { color: var(--blue); font-weight: 600; }
.bp-toc a { color: var(--navy); text-decoration: none; }
.bp-toc a:hover { color: var(--blue); text-decoration: underline; }
.blog-article [id] { scroll-margin-top: 110px; }

/* icons */
.bp-ico { flex: none; display: inline-grid; place-items: center; }
.bp-ico svg { width: 100%; height: 100%; }

/* lists: chips (short items) and checks (sentence items) */
.blog-article .bp-list { list-style: none; margin: 6px 0 26px; padding: 0; }
.bp-list li { margin: 0; display: flex; align-items: flex-start; gap: 10px; }
.bp-list--chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-list--chips li { align-items: center; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--bp-soft);
  border: 1px solid var(--bp-line); font-size: 15px; line-height: 1.35; }
.bp-list--checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp-list--checks li { padding: 14px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--bp-line);
  box-shadow: 0 4px 14px rgba(19, 31, 67, .05); font-size: 15.5px; line-height: 1.55; }
.bp-list .bp-ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; margin-top: 1px; }
.bp-list--chips .bp-ico { margin-top: 0; }
.bp-list--plain .bp-ico { width: 10px; height: 10px; padding: 0; background: linear-gradient(135deg, var(--blue), var(--green)); }
.bp-list--plain .bp-ico svg { display: none; }
.bp-list--plain.bp-list--checks .bp-ico { margin-top: 8px; }
.bp-list--zoom li { border-color: #cdebd8; }
.bp-list--zoom.bp-list--chips li { background: var(--bp-green-soft); }
.bp-list--zoom .bp-ico { background: var(--green); color: #fff; }
.bp-list--warn li { border-color: #f0dfc6; }
.bp-list--warn.bp-list--chips li { background: var(--bp-warn-soft); }
.bp-list--warn .bp-ico { background: #f3e2c7; color: var(--bp-warn); }

/* things patients say (quoted one-liners) */
.blog-article .bp-quotes { list-style: none; margin: 6px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp-quotes li { margin: 0; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px 16px 16px 4px;
  background: var(--bp-green-soft); font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; color: var(--navy-2); }
.bp-quotes .bp-ico { width: 20px; height: 20px; color: var(--green-text); margin-top: 3px; }

/* the lose, feel great, regain cycle */
.blog-article .bp-cycle { list-style: none; margin: 8px 0 28px; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; counter-reset: bp; }
.bp-cycle li { margin: 0; position: relative; flex: 1 1 140px; padding: 16px 18px 16px 18px; background: var(--bp-soft);
  border: 1px solid var(--bp-line); font-weight: 600; color: var(--navy-2); font-size: 15px; line-height: 1.4; counter-increment: bp; }
.bp-cycle li::before { content: counter(bp); display: block; font-size: 12px; font-weight: 600; color: var(--blue); letter-spacing: .08em; margin-bottom: 4px; }
.bp-cycle li:first-child { border-radius: 12px 0 0 12px; }
.bp-cycle li:last-child { border-radius: 0 12px 12px 0; background: var(--bp-warn-soft); border-color: #f0dfc6; color: var(--bp-warn); }
.bp-cycle li + li { border-left: 0; }

/* numbered steps (short title + explanation) */
.blog-article .bp-steps, .blog-article .bp-nums { list-style: none; margin: 10px 0 30px; padding: 0; display: grid; gap: 14px; }
.bp-step, .bp-num { margin: 0; display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; background: var(--white);
  border: 1px solid var(--bp-line); border-radius: 14px; box-shadow: 0 6px 18px rgba(19, 31, 67, .06); }
.bp-step__num, .bp-num__n, .bp-card__num, .bp-h-num__n { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; font-weight: 600; font-size: 17px; line-height: 1; }
.bp-step__body { min-width: 0; }
.bp-step__body > :last-child, .bp-num p { margin-bottom: 0; }
.blog-article .bp-step__title { margin: 6px 0 6px; font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.35; color: var(--navy-2); }
.bp-num p { padding-top: 7px; }
.blog-article .bp-nums--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bp-nums--compact .bp-num { padding: 12px 14px; gap: 12px; align-items: center; box-shadow: 0 3px 10px rgba(19, 31, 67, .05); }
.bp-nums--compact .bp-num p { padding-top: 0; font-size: 15.5px; line-height: 1.45; }
.bp-nums--compact .bp-num__n { width: 32px; height: 32px; font-size: 14px; }
.bp-step .blog-figure { margin: 14px 0 4px; }

/* card grid (tips, tools, short sections) */
.bp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 12px 0 32px; }
.bp-card { position: relative; padding: 22px 22px 20px; background: var(--white); border: 1px solid var(--bp-line); border-radius: 16px;
  box-shadow: 0 6px 18px rgba(19, 31, 67, .06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.bp-card::before { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--blue), var(--green)); }
.bp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(19, 31, 67, .12); border-color: #cfd9ee; }
.blog-article .bp-card__title { margin: 4px 0 8px; font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--navy-2); }
.bp-card p { font-size: 15.5px; line-height: 1.7; }
.bp-card > :last-child { margin-bottom: 0; }
.bp-card--num { padding-top: 24px; }
.bp-card__num { width: 34px; height: 34px; font-size: 15px; margin-bottom: 8px; }
.bp-card .blog-figure { margin: 12px 0; }
.bp-cards__wide { grid-column: 1 / -1; }
.bp-cards__wide .video-facade, .bp-cards__wide .blog-video, .bp-cards__wide .blog-figure { margin: 8px 0; }

/* numbered heading outside a card run */
.blog-article .bp-h-num { display: flex; align-items: center; gap: 14px; }
.bp-h-num__n { width: 38px; height: 38px; font-family: inherit; font-size: 16px; }

/* pull quotes */
.blog-article .bp-pullquote { display: flex; gap: 16px; align-items: flex-start; margin: 30px 0; padding: 24px 26px; border: 0;
  border-radius: 16px; background: var(--navy); color: #fff; font-style: normal; }
.bp-pullquote .bp-ico { width: 30px; height: 30px; color: var(--green); }
.bp-pullquote p { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.4; }
.bp-pullquote strong { font-weight: 700; }
.bp-pull { display: flex; gap: 14px; align-items: flex-start; margin: 8px 0 30px; padding: 6px 0 6px 0; }
.bp-pull .bp-ico { width: 34px; height: 34px; color: var(--green); margin-top: 2px; }
.bp-pull p { margin: 0 !important; font-family: var(--serif); font-size: 24px; line-height: 1.4; font-style: italic; color: var(--navy-2); }

/* closing call to action */
.bp-cta { margin: 44px 0 0; padding: 30px 30px 26px; border-radius: 18px; color: var(--navy);
  background: linear-gradient(135deg, #eef3ff 0%, #ecf9f1 100%); border: 1px solid #d9e4f6; }
.blog-article .bp-cta__title { margin: 0 0 14px; font-size: 26px; }
.bp-cta p { font-size: 16px; line-height: 1.75; margin-bottom: 12px; }
.bp-cta .bp-list { margin: 4px 0 16px; }
.bp-cta .bp-list--chips li { background: rgba(255, 255, 255, .8); font-size: 14px; }
.bp-cta .video-facade { margin: 18px 0; }
.bp-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #d3deef; }
.bp-cta__actions .btn { color: var(--white); text-decoration: none; }
.bp-cta__call { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy) !important; text-decoration: none; }
.bp-cta__call svg { width: 20px; height: 20px; color: var(--green-text); }
.bp-cta__call:hover span { text-decoration: underline; }

/* keep reading */
.bp-more { background: #f6f8fc; border-top: 1px solid #e6ebf4; padding: 56px var(--gutter) 72px; }
.bp-more__inner { max-width: 1100px; margin: 0 auto; }
.bp-more h2 { font-family: var(--serif); font-size: 28px; color: var(--navy-2); margin: 0 0 22px; }
.bp-more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bp-more__card { display: flex; flex-direction: column; background: var(--white); border-radius: 14px; overflow: hidden; text-decoration: none;
  color: var(--navy); box-shadow: 0 6px 20px rgba(19, 31, 67, .08); transition: transform .2s ease, box-shadow .2s ease; }
.bp-more__card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(19, 31, 67, .14); }
.bp-more__thumb { display: block; aspect-ratio: 16 / 9; background: #eef2f9; overflow: hidden; }
.bp-more__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bp-more__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.bp-more__cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.bp-more__title { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--navy-2); flex: 1; }
.bp-more__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }
.bp-more__go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.bp-more__card:hover .bp-more__go svg { transform: translateX(3px); }

/* reveal on scroll: only when JS is running, so nothing is hidden without it */
.bp-js .bp-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.bp-js .bp-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .bp-list--checks, .bp-quotes, .bp-cards, .blog-article .bp-nums--compact { grid-template-columns: minmax(0, 1fr); }
  .bp-toc ol { columns: 1; }
  .bp-more__grid { grid-template-columns: minmax(0, 1fr); }
  .bp-dek { font-size: 19px; }
  .bp-pullquote p, .bp-pull p { font-size: 20px; }
  .bp-cta { padding: 24px 20px 22px; }
  .bp-step, .bp-num { padding: 18px 16px; gap: 14px; }
  .bp-cycle { flex-direction: column; }
  .bp-cycle li, .bp-cycle li:first-child, .bp-cycle li:last-child { border-radius: 0; flex-basis: auto; }
  .bp-cycle li:first-child { border-radius: 12px 12px 0 0; }
  .bp-cycle li:last-child { border-radius: 0 0 12px 12px; }
  .bp-cycle li + li { border-left: 1px solid var(--bp-line); border-top: 0; }
  .bp-cycle li:last-child { border-left-color: #f0dfc6; }
}

@media (prefers-reduced-motion: reduce) {
  .bp-js .bp-reveal { opacity: 1; transform: none; transition: none; }
  .bp-card, .bp-more__card, .bp-more__go svg { transition: none; }
  .bp-card:hover, .bp-more__card:hover { transform: none; }
}
