
  /* ── Reading progress bar (top of viewport) ── */
  .bd-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; background: transparent; z-index: 200;
    pointer-events: none;
  }
  .bd-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-green));
    transition: width .08s linear;
  }

  /* ── Article header (above the fold) ── */
  .bd-header {
    padding-top: 48px; padding-bottom: 32px;
    text-align: left;
  }

  /* ── Sticky breadcrumb bar — mirrors blog.html .bl-catnav-bar.
       Contains the back-to-blog link + category pill. Follows the global
       nav via --nav-offset which the same hide-on-scroll-down JS controls. ── */
  .bd-crumb-bar {
    position: sticky; top: var(--nav-offset, 0px); z-index: 30;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    padding: 12px 0;
    transition: top .35s cubic-bezier(.2,.7,.3,1);
  }
  .bd-crumb {
    display: flex; align-items: center; gap: 14px; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bd-crumb::-webkit-scrollbar { display: none; }

  /* Blog-detail override of the global nav: slide hide/show on scroll. */
  .rfs-nav { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
  .rfs-nav.is-hidden { transform: translateY(-100%); }

  .bd-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .18s;
    flex-shrink: 0;
  }
  .bd-back:hover { color: var(--accent); }
  .bd-back svg { transition: transform .2s; }
  .bd-back:hover svg { transform: translateX(-3px); }
  .bd-cat-pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent-blue);
    background: color-mix(in oklab, var(--accent-blue) 10%, #fff);
    border: 1px solid color-mix(in oklab, var(--accent-blue) 22%, transparent);
    padding: 5px 12px; border-radius: 99px;
    flex-shrink: 0;
  }
  .bd-cat-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-blue); }
  .bd-title {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-weight: 600; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.05;
    letter-spacing: -0.025em; margin: 0; color: var(--ink); text-wrap: balance;
    max-width: 28ch;
  }
  .bd-deck {
    font-size: 19px; line-height: 1.55; color: var(--muted);
    margin: 22px 0 0; max-width: 60ch; text-wrap: pretty;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  }
  .bd-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hair);
  }
  .bd-meta-author { display: flex; align-items: center; gap: 12px; }
  .bd-meta-pic {
    width: 44px; height: 44px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    background: color-mix(in oklab, var(--accent-blue) 14%, var(--hair));
  }
  .bd-meta-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
  .bd-meta-info { display: flex; flex-direction: column; gap: 2px; }
  .bd-meta-name { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink); }
  .bd-meta-role { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

  /* Stat stack — date on line 1, read time on line 2, each with a small icon */
  .bd-meta-stats {
    display: flex; flex-direction: column; gap: 6px;
    align-items: flex-end;
  }
  .bd-meta-stat {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px; font-weight: 500; color: var(--muted);
    letter-spacing: 0.04em;
  }
  .bd-meta-stat svg { width: 13px; height: 13px; color: var(--muted); flex-shrink: 0; }

  @media (max-width: 640px) {
    .bd-meta-stats { align-items: flex-start; }
  }

  /* ── Cover image ── */
  .bd-cover {
    aspect-ratio: 19 / 10;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in oklab, var(--accent-blue) 22%, #fff), color-mix(in oklab, var(--accent-blue) 8%, #fff));
  }
  .bd-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* ── Article layout: sticky TOC + share on left, body in middle,
       optional sticky eBook promo on the right (when `.has-ebook` is set). ── */
  .bd-layout {
    display: grid; grid-template-columns: 220px minmax(0, 1fr);
    gap: 60px;
    padding-top: 56px;
  }
  .bd-layout.has-ebook {
    grid-template-columns: 200px minmax(0, 1fr) 260px;
    gap: 48px;
  }
  @media (max-width: 1280px) {
    .bd-layout.has-ebook { grid-template-columns: 200px minmax(0, 1fr) 240px; gap: 40px; }
  }
  .bd-aside {
    position: sticky; top: 100px; align-self: start;
    display: flex; flex-direction: column; gap: 28px;
    max-height: calc(100vh - 120px); overflow: auto;
    padding-right: 8px;
  }
  .bd-aside-h {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 12px;
  }
  .bd-toc { display: flex; flex-direction: column; gap: 6px; }
  .bd-toc a {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 13.5px; line-height: 1.45;
    color: var(--muted); text-decoration: none;
    padding: 6px 0 6px 14px;
    border-left: 2px solid transparent;
    transition: color .18s, border-color .18s;
  }
  .bd-toc a:hover { color: var(--ink); border-left-color: var(--hair); }
  .bd-toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
  .bd-share { display: flex; flex-direction: column; gap: 8px; }
  .bd-share a {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 13px; font-weight: 600; color: var(--ink);
    text-decoration: none;
    padding: 8px 12px;
    background: #fff; border: 1px solid var(--hair); border-radius: 10px;
    transition: border-color .18s, background .18s;
  }
  .bd-share a:hover { border-color: var(--ink); background: var(--bg); }
  .bd-share a svg { width: 14px; height: 14px; color: var(--muted); }

  /* ── Article body typography ── */
  .bd-body {
    max-width: 720px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 17px; line-height: 1.75; color: var(--ink);
  }
  .bd-body > p { margin: 0 0 22px; color: color-mix(in oklab, var(--ink) 92%, var(--muted)); }
  .bd-body p:first-of-type {
    font-size: 21px; line-height: 1.55; color: var(--ink); font-weight: 500;
  }
  .bd-body h2 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-weight: 600; font-size: clamp(26px, 3vw, 32px); line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 50px 0 18px; color: var(--ink); text-wrap: balance;
    scroll-margin-top: 100px;
  }
  .bd-body h3 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-weight: 600; font-size: 21px; line-height: 1.22;
    letter-spacing: -0.01em;
    margin: 32px 0 14px; color: var(--ink);
    scroll-margin-top: 100px;
  }
  .bd-body ul, .bd-body ol {
    margin: 0 0 22px; padding-left: 22px;
  }
  .bd-body li { margin-bottom: 8px; }
  .bd-body li::marker { color: var(--muted); }
  .bd-body strong { color: var(--ink); font-weight: 600; }
  .bd-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
  .bd-body a:hover { border-bottom-color: var(--accent); }

  /* Pull quote */
  .bd-pullquote {
    margin: 36px 0;
    padding: 28px 32px;
    background: color-mix(in oklab, var(--accent) 5%, #fff);
    border-left: 3px solid var(--accent);
    border-radius: 4px 16px 16px 4px;
  }
  .bd-pullquote p {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-style: italic; font-weight: 500;
    font-size: 19px; line-height: 1.55;
    margin: 0; color: var(--ink);
  }
  .bd-pullquote cite {
    display: block; margin-top: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--muted); font-style: normal;
  }

  /* Code block */
  .bd-code {
    margin: 28px 0;
    background: var(--ink); color: #ebebe6;
    border-radius: 14px;
    padding: 20px 24px;
    overflow-x: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13.5px; line-height: 1.7;
  }
  .bd-code code { font-family: inherit; }

  /* Inline code */
  .bd-body code:not(.bd-code code) {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88em;
    background: color-mix(in oklab, var(--accent) 10%, #fff);
    color: var(--accent);
    padding: 2px 8px; border-radius: 6px;
    border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
  }

  /* Figure with caption */
  .bd-figure {
    margin: 32px 0;
    background: color-mix(in oklab, var(--accent-blue) 7%, #fff);
    border: 1px solid var(--hair);
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    display: flex; align-items: center; justify-content: center;
    color: color-mix(in oklab, var(--accent-blue) 60%, #000);
  }
  .bd-figure svg { width: 38%; height: 38%; opacity: 0.4; }
  .bd-figcaption {
    text-align: center; font-size: 13px; color: var(--muted);
    margin-top: 10px; font-style: italic;
  }

  /* ── Author bio card — scaled-down light-cta visual: gradient background,
       soft orange blob, centered content with avatar + name + bio + LinkedIn. ── */
  .bd-author-card {
    position: relative; overflow: hidden;
    margin-top: 56px;
    background: linear-gradient(135deg, oklch(0.93 0.05 140), oklch(0.94 0.06 80));
    border-radius: 22px;
    padding: 32px 32px 30px;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    text-align: center;
  }
  .bd-author-card::before {
    content: ""; position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px; border-radius: 99px;
    background: oklch(0.92 0.08 60);
    opacity: 0.7; filter: blur(40px);
    pointer-events: none;
  }
  .bd-author-card > * { position: relative; z-index: 1; }
  .bd-author-card-pattern { z-index: 0 !important; opacity: 0.9; }
  .bd-author-card-pic {
    width: 56px; height: 56px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid color-mix(in oklab, var(--accent) 28%, #fff);
    background: color-mix(in oklab, var(--accent-blue) 12%, #fff);
    margin-bottom: 2px;
  }
  .bd-author-card-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
  .bd-author-card-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    /* Darkened ~20% so the small eyebrow clears AA contrast against the pale gradient */
    color: color-mix(in oklab, var(--accent) 82%, #000);
  }
  .bd-author-card-name {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em;
    margin: 0; color: var(--ink);
  }
  .bd-author-card-name em { font-style: normal; color: var(--accent); }
  .bd-author-card-bio {
    font-size: 13.5px; line-height: 1.6; color: var(--ink); opacity: 0.74;
    margin: 4px 0 0; max-width: 520px; text-wrap: pretty;
  }
  /* Defeat .bd-body a { color: var(--accent); border-bottom: ... } which
     was bleeding orange text + an underline into the LinkedIn button. */
  .bd-body a.bd-author-card-cta,
  .bd-author-card-cta {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 12px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600; font-size: 12.5px;
    color: #fff !important; background: #0A66C2;
    border: 1.5px solid #0A66C2;
    border-bottom: 1.5px solid #0A66C2;
    padding: 8px 18px; border-radius: 99px;
    text-decoration: none;
    transition: background .2s, transform .2s, border-color .2s;
  }
  .bd-author-card-cta:hover {
    background: color-mix(in oklab, #0A66C2 85%, #000);
    border-color: color-mix(in oklab, #0A66C2 85%, #000);
    transform: translateY(-1px);
  }
  .bd-author-card-cta svg { flex-shrink: 0; fill: #fff; }

  /* ── Related posts ── */
  .bd-related-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 16px; flex-wrap: wrap;
    margin-bottom: 28px;
  }
  .bd-related-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  }
  @media (max-width: 1100px) { .bd-related-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 620px)  { .bd-related-grid { grid-template-columns: 1fr; } }

  .bd-related-card {
    --cc: var(--accent);
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--hair); border-radius: 20px;
    overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s, box-shadow .25s;
  }
  .bd-related-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in oklab, var(--cc) 30%, var(--hair));
    box-shadow: 0 18px 38px -20px rgba(28,26,22,0.14);
  }
  .bd-related-cover {
    aspect-ratio: 19 / 10;
    background: linear-gradient(135deg, color-mix(in oklab, var(--cc) 22%, #fff), color-mix(in oklab, var(--cc) 6%, #fff));
    overflow: hidden;
  }
  .bd-related-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .bd-related-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .bd-related-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .bd-related-cat {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--cc);
    background: color-mix(in oklab, var(--cc) 10%, #fff);
    border: 1px solid color-mix(in oklab, var(--cc) 22%, transparent);
    padding: 3px 9px; border-radius: 99px;
  }
  .bd-related-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px; color: var(--muted);
  }
  .bd-related-title {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-weight: 600; font-size: 17px; line-height: 1.22; letter-spacing: -0.01em;
    margin: 0; color: var(--ink); text-wrap: balance;
  }
  .bd-related-card:hover .bd-related-title { color: var(--cc); }
  .bd-related-excerpt {
    font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }

  /* ── Newsletter shell — uses the standard .lbp-*-head split pattern
       (title 1.3fr / desc 1fr, aligned to bottom) inside the dark CTA,
       then a full-width row below with the email form. ── */
  .bd-news-head {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
    align-items: end;
    margin-bottom: 32px;
  }
  .bd-news-head-r { padding-bottom: 6px; }
  .bd-news-form { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
  .bd-news-row {
    display: flex; align-items: center; gap: 6px;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 6px 6px 6px 18px;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
  }
  .bd-news-row:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
  }
  .bd-news-row input {
    flex: 1; min-width: 0;
    background: transparent; border: 0; outline: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 14.5px; color: var(--ink);
    padding: 10px 4px;
  }
  .bd-news-row input::placeholder { color: color-mix(in oklab, var(--ink) 45%, transparent); }
  .bd-news-row button {
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600; font-size: 14px;
    color: #fff; background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 999px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
  }
  .bd-news-row button:hover {
    background: #fff; color: var(--accent); border-color: #fff;
    transform: translateY(-1px);
  }
  .bd-news-footnote {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px; letter-spacing: 0.04em;
    color: rgba(251,247,240,0.55);
    margin: 0;
  }
  .lb-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  @media (max-width: 820px) {
    .bd-news-head { grid-template-columns: 1fr; gap: 16px; }
    .bd-news-head-r { padding-bottom: 0; }
    .bd-news-form { max-width: none; }
  }

  /* ── Right-rail sticky eBook promo (only renders inside .bd-layout.has-ebook). ── */
  .bd-ebook-aside {
    position: sticky; top: 100px; align-self: start;
  }
  .bd-ebook-card {
    --cc: var(--accent);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    background: linear-gradient(135deg, oklch(0.93 0.05 140), oklch(0.94 0.06 80));
    border-radius: 22px;
    padding: 22px 22px 24px;
    text-decoration: none; color: inherit;
    transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
  }
  .bd-ebook-card::before {
    content: ""; position: absolute;
    top: -50px; right: -50px;
    width: 180px; height: 180px; border-radius: 99px;
    background: oklch(0.92 0.08 60);
    opacity: 0.7; filter: blur(40px);
    pointer-events: none;
  }
  .bd-ebook-card > * { position: relative; z-index: 1; }
  .bd-ebook-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -22px rgba(28,26,22,0.18); }
  .bd-ebook-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: color-mix(in oklab, var(--cc) 82%, #000);
    background: rgba(255,255,255,0.65);
    border: 1px solid color-mix(in oklab, var(--cc) 25%, transparent);
    padding: 4px 9px; border-radius: 99px;
    margin-bottom: 14px;
  }
  .bd-ebook-eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cc); }
  .bd-ebook-cover {
    aspect-ratio: 5 / 4; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.15));
    padding: 14px;
  }
  .bd-ebook-cover img {
    max-width: 100%; max-height: 100%;
    width: auto; height: 100%;
    object-fit: contain; display: block;
    filter: drop-shadow(0 10px 22px rgba(28,26,22,0.22));
    transition: transform .5s cubic-bezier(.2,.7,.3,1);
  }
  .bd-ebook-card:hover .bd-ebook-cover img { transform: translateY(-2px) scale(1.02); }
  .bd-ebook-title {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-weight: 600; font-size: 16px; line-height: 1.22; letter-spacing: -0.01em;
    margin: 0 0 6px; color: var(--ink); text-wrap: balance;
  }
  .bd-ebook-desc {
    font-size: 12.5px; line-height: 1.5; color: var(--ink); opacity: 0.74;
    margin: 0 0 14px;
  }
  .bd-ebook-cta {
    display: inline-flex; align-items: center; gap: 6px; width: fit-content;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600; font-size: 12.5px;
    color: #fff; background: var(--ink);
    padding: 8px 14px; border-radius: 99px;
    transition: background .2s, gap .2s, transform .2s;
  }
  .bd-ebook-card:hover .bd-ebook-cta { background: var(--accent); gap: 10px; }
  .bd-ebook-footnote {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px; color: var(--muted); margin: 10px 0 0;
    letter-spacing: 0.04em;
  }

  /* ── Responsive ── */
  @media (max-width: 1180px) {
    /* Drop the right-rail eBook one breakpoint early so the article body has room */
    .bd-layout.has-ebook { grid-template-columns: 220px minmax(0, 1fr); gap: 60px; }
    .bd-ebook-aside { display: none; }
  }
  @media (max-width: 980px) {
    .bd-layout,
    .bd-layout.has-ebook { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
    .bd-aside { position: static; max-height: none; overflow: visible; padding-right: 0; }
    .bd-toc { display: none; }
    .bd-share { flex-direction: row; }
    .bd-author-card { padding: 26px 22px 24px; }
    /* On mobile, show the eBook as a normal block at the end of the article */
    .bd-ebook-aside { display: block; position: static; }
    .bd-ebook-card { max-width: 520px; margin: 0 auto; }
  }

/* TOC h3 sub-items (dynamic posts) */
.bd-toc a.bd-toc-sub { padding-left: 16px; font-size: 0.92em; opacity: 0.82; }
