/* Shared look for every blog post: numbered section headings with icons, key-takeaway boxes,
   a full-width pull-quote band, "In this post" jump links and a reading-progress bar.
   Per-post rules live in each post's own <style>; link this file after it. */

body{ counter-reset:sec; }

/* reading progress */
.read-progress{ position:fixed; top:0; left:0; right:0; height:4px; z-index:300; background:transparent; pointer-events:none; }
.read-progress span{ display:block; height:100%; width:0; background:var(--gold); }

/* jump links */
.jump{ margin:-8px 0 38px; padding:16px 18px; background:#fff; border:1px solid var(--line-dark); border-radius:14px; }
.jump .jump-label{ display:block; font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold-dim); margin-bottom:10px; }
.jump ul{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; }
.jump a{ display:inline-block; padding:8px 14px; border-radius:999px; border:1px solid var(--line-dark); font-size:13.5px; font-weight:600; color:var(--navy); background:var(--cream); }
.jump a:hover{ background:var(--gold); border-color:var(--gold); color:var(--navy); }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

/* numbered section headings with an icon tile */
.post-body h2{
  display:grid; grid-template-columns:56px 1fr; column-gap:18px; align-items:center;
  counter-increment:sec; scroll-margin-top:110px; margin:60px 0 24px;
}
.post-body h2::before{
  content:"Section " counter(sec, decimal-leading-zero); grid-column:2; grid-row:1;
  font-family:'IBM Plex Mono',monospace; font-size:11.5px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold-dim);
}
.post-body h2 .sec-ic{ grid-column:1; grid-row:1 / span 2; width:56px; height:56px; border-radius:14px; background:var(--navy); display:flex; align-items:center; justify-content:center; }
.post-body h2 .sec-ic svg{ width:28px; height:28px; fill:none; stroke:var(--gold); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.post-body h2 .sec-t{ grid-column:2; grid-row:2; line-height:1.08; }

/* key takeaway */
.takeaway{ background:var(--navy); border-left:5px solid var(--gold); border-radius:12px; padding:20px 24px 18px; margin:34px 0 8px; }
.takeaway .tk-label{ display:block; font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold); margin-bottom:8px; }
.post-body .takeaway p{ color:#fff; font-size:17.5px; line-height:1.55; font-weight:600; margin:0; }

/* full-width pull-quote band */
.pull-band{ background:var(--gold); padding:60px 48px; text-align:center; }
.pull-band p{ font-family:'Anton','Anton Fallback',sans-serif; text-transform:uppercase; color:var(--navy); font-size:clamp(22px,2.7vw,36px); line-height:1.22; letter-spacing:0.01em; max-width:980px; margin:0 auto; }

@media (max-width: 860px){
  .pull-band{ padding:44px 24px; }
  .post-body h2{ grid-template-columns:48px 1fr; column-gap:14px; margin-top:48px; }
  .post-body h2 .sec-ic{ width:48px; height:48px; border-radius:12px; }
  .post-body h2 .sec-ic svg{ width:24px; height:24px; }
}
