/* =========================================================
   BLOG SINGLE POST — page-specific (bp- prefix)
   ========================================================= */

/* reading progress bar */
.bp-progress{position:fixed;top:0;left:0;height:4px;width:0;background:var(--yellow);z-index:200;transition:width .1s linear;}

/* breadcrumb */
.bp-crumb{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);flex-wrap:wrap;margin-bottom:22px;}
.bp-crumb a{color:var(--muted);text-decoration:none;}
.bp-crumb a:hover{color:var(--ink);}
.bp-crumb .sep{opacity:.5;}
.bp-crumb .here{color:var(--ink);font-weight:600;}

/* article header */
.bp-head{max-width:760px;margin:0 auto;text-align:center;}
.bp-cat{display:inline-block;background:var(--yellow);color:var(--ink);font-weight:600;font-size:12px;letter-spacing:.09em;text-transform:uppercase;padding:6px 14px;border-radius:20px;margin-bottom:20px;}
.bp-title{font-size:clamp(32px,4.6vw,52px);line-height:1.08;margin-bottom:20px;}
.bp-deck{font-size:19px;color:var(--muted);line-height:1.5;max-width:60ch;margin:0 auto 30px;}
.bp-byline{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;font-size:14px;color:var(--muted);}
.bp-byline .au{display:flex;align-items:center;gap:10px;font-weight:600;color:var(--ink);}
.bp-byline .au .dot{width:40px;height:40px;border-radius:50%;background:var(--ink);color:var(--yellow);font-family:var(--display);font-weight:700;font-size:17px;display:flex;align-items:center;justify-content:center;}
.bp-byline .sep{opacity:.5;}

/* featured image */
.bp-hero-img{max-width:1040px;margin:44px auto 0;aspect-ratio:16/8;border-radius:18px;overflow:hidden;position:relative;background:var(--ink);}
.bp-hero-img img{width:100%;height:100%;object-fit:cover;display:block;}
.bp-hero-fallback{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;padding:38px;background:radial-gradient(120% 90% at 82% 0%, rgba(249,181,20,.24), transparent 58%),linear-gradient(160deg,var(--ink-soft),var(--ink));}
.bp-hero-fallback .fb-spines{position:absolute;top:34px;right:38px;display:flex;gap:7px;}
.bp-hero-fallback .fb-spines i{display:block;width:12px;border-radius:3px;background:var(--yellow);}
.bp-hero-fallback .fb-cat{font-family:var(--display);font-weight:600;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--yellow);}
.bp-hero-fallback .fb-word{font-family:var(--display);font-weight:700;font-size:32px;color:#fff;margin-top:6px;}

/* body layout: prose + left share rail */
.bp-layout{max-width:1040px;margin:0 auto;padding-top:52px;position:relative;}
.bp-share-rail{position:absolute;left:0;top:52px;display:flex;flex-direction:column;gap:10px;}
.bp-share-rail.stick{position:sticky;top:100px;}
.bp-share-rail a{width:42px;height:42px;border-radius:50%;border:1.5px solid var(--line-strong);display:flex;align-items:center;justify-content:center;color:var(--ink-soft);transition:all .15s;}
.bp-share-rail a:hover{background:var(--ink);border-color:var(--ink);color:#fff;}
.bp-share-rail svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}

.bp-prose{max-width:720px;margin:0 auto;}

/* TOC */
.bp-toc{background:var(--warm);border:1px solid var(--line);border-left:5px solid var(--yellow);border-radius:12px;padding:24px 28px;margin-bottom:40px;}
.bp-toc h4{font-family:var(--display);font-weight:600;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--yellow-deep);margin-bottom:12px;}
.bp-toc ol{list-style:none;counter-reset:toc;display:flex;flex-direction:column;gap:9px;}
.bp-toc li{counter-increment:toc;}
.bp-toc a{color:var(--ink-soft);text-decoration:none;font-size:15px;display:flex;gap:10px;transition:color .15s;}
.bp-toc a::before{content:counter(toc,decimal-leading-zero);font-family:var(--display);font-weight:600;color:var(--yellow-deep);}
.bp-toc a:hover{color:var(--ink);}

/* prose typography */
.bp-prose p{font-size:17.5px;line-height:1.8;color:var(--ink-soft);margin-bottom:24px;}
.bp-prose h2{font-family:var(--display);font-weight:600;font-size:clamp(26px,3vw,34px);text-transform:uppercase;letter-spacing:.01em;color:var(--ink);margin:48px 0 18px;scroll-margin-top:96px;}
.bp-prose h3{font-weight:600;font-size:21px;color:var(--ink);margin:34px 0 12px;}
.bp-prose ul,.bp-prose ol.body{margin:0 0 24px 4px;padding-left:22px;display:flex;flex-direction:column;gap:10px;}
.bp-prose li{font-size:17px;line-height:1.7;color:var(--ink-soft);}
.bp-prose a.inline{color:var(--yellow-deep);text-decoration:underline;text-underline-offset:2px;}
.bp-prose strong{color:var(--ink);font-weight:600;}
.bp-pullquote{border-left:5px solid var(--yellow);padding:6px 0 6px 28px;margin:36px 0;font-family:var(--display);font-weight:500;font-size:clamp(24px,2.8vw,30px);line-height:1.3;color:var(--ink);}
.bp-prose figure{margin:36px 0;}
.bp-prose figure img{width:100%;border-radius:12px;}
.bp-prose figcaption{font-size:13.5px;color:var(--muted);margin-top:10px;text-align:center;font-style:italic;}

/* tags */
.bp-tags{max-width:720px;margin:44px auto 0;display:flex;gap:10px;flex-wrap:wrap;}
.bp-tags a{font-size:13px;font-weight:500;color:var(--ink-soft);background:var(--cream);border:1px solid var(--line);border-radius:20px;padding:7px 15px;text-decoration:none;transition:all .15s;}
.bp-tags a:hover{background:var(--ink);color:#fff;border-color:var(--ink);}

/* author bio */
.bp-author{max-width:720px;margin:44px auto 0;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:34px 38px;display:flex;gap:22px;align-items:flex-start;}
.bp-author .ava{width:72px;height:72px;border-radius:50%;background:var(--yellow);color:var(--ink);font-family:var(--display);font-weight:700;font-size:30px;display:flex;align-items:center;justify-content:center;flex:none;}
.bp-author h4{font-family:var(--display);font-weight:700;font-size:22px;text-transform:uppercase;letter-spacing:.02em;color:var(--ink);margin-bottom:2px;}
.bp-author .role{font-size:13.5px;color:var(--yellow-deep);font-weight:600;letter-spacing:.06em;text-transform:uppercase;margin-bottom:10px;}
.bp-author p{font-size:15px;color:var(--muted);line-height:1.65;}

/* related */
.bp-related .eyebrow{margin-bottom:8px;}

@media(max-width:1120px){
  .bp-share-rail{display:none;}
}
@media(max-width:640px){
  .bp-author{flex-direction:column;gap:14px;padding:26px 24px;}
  .bp-hero-img{border-radius:12px;aspect-ratio:16/10;}
}
