/* ══════════════════════════════════════════════════════════════════
   STOBOX — blog-post-v3.css
   Per-page styles for /blog/<slug>.html article pages.
   Loads AFTER /css/v3-system.css.
   ══════════════════════════════════════════════════════════════════ */

/* ── HERO — clean dark band, typography only ────────────────────
   Earlier this hero stretched a generic Nodes.webp behind every
   post and overlaid the title on it. Many posts have feature
   images that already include text — overlaying ALSO put title
   text on top of image text. Now: hero is solid dark, the post's
   native feature image displays cleanly in .bp-feature below. */
.bp-hero{
  position: relative;
  background:
    radial-gradient(1100px 620px at 18% -10%, rgba(43,100,245,0.28), transparent 60%),
    radial-gradient(900px 560px at 92% 8%, rgba(22,34,77,0.55), transparent 62%),
    linear-gradient(180deg, #060912 0%, #070a14 55%, #080c18 100%);
  color: var(--bg);
  overflow: hidden;
  padding: 108px var(--gutter) 72px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* fine grid texture, masked to fade at the edges */
.bp-hero::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 80% 90% at 30% 30%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 30%, black, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.bp-hero-inner{
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.bl-crumb{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 26px;
}
.bl-crumb a{ color: rgba(255,255,255,0.75); transition: color var(--t-fast) }
.bl-crumb a:hover{ color: var(--accent-hi) }
.bl-crumb span{ margin: 0 8px; color: rgba(255,255,255,0.32) }

.bp-meta-top{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bp-meta-top::before{
  content: '';
  width: 24px; height: 2px;
  background: var(--accent-hi);
}
.bp-meta-top a{
  color: var(--accent-hi);
  border-bottom: 1px solid rgba(165,180,252,0.4);
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.bp-meta-top a:hover{ color: var(--bg); border-color: var(--bg) }
.bp-meta-top span{ color: rgba(255,255,255,0.5); letter-spacing: .14em }
.bp-meta-top span:first-child + span{ color: rgba(255,255,255,0.85) }

.bp-hero h1{
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--bg);
  text-transform: none;
  margin: 0 0 24px;
  max-width: 20ch;
  text-wrap: balance;
}
.bp-hero h1 em{ font-weight: 800; font-style: normal; background: linear-gradient(135deg,#5aa2ff,#7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.bp-excerpt{
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 60ch;
  margin: 0 0 38px;
}

.bp-author{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 6px;
}
.bp-author-avatar img{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.14), 0 0 0 4px rgba(43,100,245,0.32);
}
.bp-author-name{
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 2px;
}
.bp-author-meta{
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── FEATURE IMAGE STRIP (between hero and body) ──────────────────── */
/* ── FEATURE IMAGE — sits between hero and body ────────────────
   No overlap with the hero. No border frame. Image is the subject;
   it stands alone with breathing room. Many posts ship images that
   already contain text/headlines — we treat them as editorial
   covers, not as decorative bg. */
.bp-feature{
  background:
    linear-gradient(180deg, #080c18 0%, #080c18 130px, var(--bg) 130px, var(--bg) 100%);
  padding: 0 var(--gutter) 0;
  border-bottom: 1px solid var(--rule);
}
.bp-feature-img{
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  background: var(--bg-3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 70px -28px rgba(7,10,18,0.55),
    0 8px 24px -12px rgba(7,10,18,0.4);
}
.bp-feature-img img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}

/* ── BODY — single column article ─────────────────────────────────── */
.bp-body-wrap{
  background: var(--bg);
  padding: 72px var(--gutter) 88px;
  border-bottom: 1px solid var(--rule);
}
.bp-body{
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--body);
  font-size: 18.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.bp-body > *:first-child{ margin-top: 0 }

.bp-body p{
  font-family: var(--body);
  font-size: 18.5px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 1.25em;
  letter-spacing: -0.003em;
}
.bp-body p strong{ color: var(--ink); font-weight: 700 }
/* Lead paragraph: the first paragraph reads a touch larger + darker */
.bp-body > p:first-of-type{
  font-size: 21px;
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: 1.4em;
}
.bp-body a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-bd);
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.bp-body a:hover{
  color: var(--accent-lo);
  border-color: var(--accent-lo);
  background: var(--accent-bg);
}
.bp-body a u, .bp-body u{ text-decoration: none }

.bp-body h2{
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: -0.022em;
  color: var(--blue-deep);
  text-transform: none;
  margin: 1.9em 0 0.55em;
  scroll-margin-top: 90px;
}
.bp-body h3{
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--blue-deep);
  text-transform: none;
  margin: 1.7em 0 0.5em;
  scroll-margin-top: 90px;
}
.bp-body h4{
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.008em;
  margin: 1.4em 0 0.5em;
}
.bp-body h5, .bp-body h6{
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin: 1.4em 0 0.5em;
}

.bp-body ul, .bp-body ol{
  margin: 0 0 1.3em 0;
  padding: 0;
  list-style: none;
}
.bp-body li{
  position: relative;
  margin: 0 0 0.55em;
  padding-left: 1.6em;
  font-family: var(--body);
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.bp-body ul > li::before{
  content: '';
  position: absolute;
  left: 0.15em;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.bp-body ol{ counter-reset: bp-ol }
.bp-body ol > li{ counter-increment: bp-ol }
.bp-body ol > li::before{
  content: counter(bp-ol);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.bp-body li > ul, .bp-body li > ol{ margin: 0.5em 0 0.2em }

/* Blockquote — used both as real pull-quotes and as Ghost emoji callouts.
   Render as an elegant cobalt-tinted callout card with an accent rail. */
.bp-body blockquote{
  position: relative;
  margin: 1.7em 0;
  padding: 22px 26px 22px 28px;
  background: var(--blue-ice);
  border: 1px solid var(--accent-bd);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  font-family: var(--body);
  font-style: normal;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}
.bp-body blockquote p{
  font-size: 18px;
  font-style: normal;
  margin: 0 0 0.6em;
  color: var(--ink-2);
}
.bp-body blockquote p:last-child{ margin: 0 }
.bp-body blockquote strong{ color: var(--blue-deep); font-weight: 700 }
.bp-body blockquote em{ color: var(--blue-deep); font-style: italic }

.bp-body figure{ margin: 2em 0 }
.bp-body img{
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 18px 44px -22px rgba(7,10,18,0.4);
}
.bp-body figcaption{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
  text-align: center;
}

.bp-body hr{
  border: 0;
  border-top: 1px solid var(--rule-hard);
  margin: 60px auto;
  max-width: 60%;
}

.bp-body code{
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--accent-lo);
}
.bp-body pre{
  background: #0d1322;
  color: rgba(233,240,255,0.92);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.62;
  padding: 22px 24px;
  border-radius: 14px;
  overflow-x: auto;
  margin: 1.7em 0;
  border: 1px solid rgba(43,100,245,0.22);
  box-shadow: 0 18px 44px -24px rgba(7,10,18,0.6);
}
.bp-body pre code{
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Wrap each table in a horizontal-scroll container so wide tables
   don't overflow body width on phones. The wrapper is also ::before/::after
   trimmed to the rule-soft border so it reads as a scrollable region. */
.bp-body table{
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* When the table is wide enough to scroll, give the user a visual cue
   via a subtle right-edge fade — pure CSS, no JS. */
.bp-body table{
  background:
    linear-gradient(to right, var(--bg) 30%, transparent),
    linear-gradient(to right, transparent, var(--bg) 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(10,14,44,0.12), transparent),
    radial-gradient(farthest-side at 100% 50%, rgba(10,14,44,0.12), transparent) 100% 0;
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
.bp-body th, .bp-body td{
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.bp-body th{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  border-bottom-color: var(--ink);
}
@media (max-width: 600px){
  .bp-body table{ font-size: 13px; margin: 1.2em -16px; width: calc(100% + 32px); }
  .bp-body th, .bp-body td{ padding: 10px 12px; }
  .bp-body th{ font-size: 10px; letter-spacing: .1em; }
}

/* Ghost embed/figure tweaks */
.bp-body .kg-card,
.bp-body .kg-image-card{ margin: 2em 0 }
.bp-body .kg-image-card img{ border-radius: 14px }

/* ── KOENIG CTA CARD → V15 gradient call-to-action ─────────────── */
.bp-body .kg-cta-card{
  position: relative;
  margin: 2.2em 0;
  padding: 30px 32px;
  border-radius: 16px;
  background:
    radial-gradient(680px 320px at 0% 0%, rgba(124,92,255,0.55), transparent 60%),
    linear-gradient(115deg, #2b64f5 0%, #4f46e5 55%, #6d3ff0 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 56px -26px rgba(43,100,245,0.65);
}
.bp-body .kg-cta-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 90% at 90% 10%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 90% 10%, black, transparent 75%);
  pointer-events: none;
}
.bp-body .kg-cta-card > *{ position: relative; z-index: 1 }
.bp-body .kg-cta-sponsor-label,
.bp-body .kg-cta-sponsor-label *{
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.bp-body .kg-cta-sponsor-label-wrapper{ margin-bottom: 12px }
.bp-body .kg-cta-text,
.bp-body .kg-cta-text p{
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.bp-body .kg-cta-text p{ margin-bottom: 0 }
.bp-body .kg-cta-content-inner{ display: flex; flex-direction: column; align-items: flex-start; gap: 18px }
.bp-body .kg-cta-button,
.bp-body a.kg-cta-button{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 13px 22px;
  border-radius: 999px;
  /* override the inline black/white the markup ships with */
  background: #fff !important;
  color: var(--blue-deep) !important;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(7,10,18,0.5);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.bp-body .kg-cta-button::after{ content: '→'; font-size: 14px }
.bp-body .kg-cta-button:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(7,10,18,0.55);
}

/* ── KOENIG CALLOUT CARD → soft cobalt callout w/ accent bar ────── */
.bp-body .kg-callout-card{
  display: flex;
  gap: 14px;
  margin: 1.9em 0;
  padding: 20px 24px;
  background: var(--blue-ice);
  border: 1px solid var(--accent-bd);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}
.bp-body .kg-callout-emoji{ font-size: 20px; line-height: 1.5 }
.bp-body .kg-callout-text{
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.bp-body .kg-callout-card.kg-callout-card-blue{ background: var(--blue-ice) }

.bp-body .kg-bookmark-card{
  border: 1px solid var(--rule);
  padding: 20px 22px;
  margin: 2em 0;
  display: block;
  background: var(--bg);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(7,10,18,0.04);
  transition: border-color var(--t-fast), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.bp-body .kg-bookmark-card:hover{
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -24px rgba(7,10,18,0.4);
}
.bp-body .kg-bookmark-content{ display: block }
.bp-body .kg-bookmark-title{
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.012em;
}
.bp-body .kg-bookmark-description{
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.bp-body .kg-bookmark-thumbnail img{ display: none }
.bp-body iframe{
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  margin: 1.6em 0;
  display: block;
}

/* ── POST FOOTER (tags + back) ────────────────────────────────────── */
.bp-tags{
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.bp-tags-label{
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.bl-tag-chip,
.bp-tags .bl-tag-chip{
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-3);
  border: 1px solid var(--rule-hard);
  padding: 6px 11px;
  border-radius: 1px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.bl-tag-chip:hover,
.bp-tags .bl-tag-chip:hover{
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
}

.bp-back{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  display: inline-block;
  margin-top: 36px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.bp-back:hover{ color: var(--accent); border-color: var(--accent) }

/* ── SHARE ROW ────────────────────────────────────────────────────── */
.bp-share{
  max-width: 720px;
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bp-share-label{
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.bp-share-btn{
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--rule-hard);
  padding: 7px 12px;
  border-radius: 1px;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.bp-share-btn:hover{ color: var(--accent); border-color: var(--accent); background: var(--accent-bg) }

/* ── PREV / NEXT NAV ──────────────────────────────────────────────── */
.bp-nav-wrap{
  background: var(--bg-2);
  padding: 50px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.bp-nav-inner{
  max-width: 1100px;
  margin: 0 auto;
}
.bp-nav{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.bp-nav-item{
  background: var(--bg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: background var(--t-base) var(--ease);
}
.bp-nav-item:hover{ background: var(--blue-ice) }
.bp-nav-empty{ background: var(--bg-2) }
.bp-nav-prev{ text-align: left }
.bp-nav-next{ text-align: right }
.bp-nav-dir{
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.bp-nav-title{
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.014em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (max-width: 760px){
  .bp-nav{ grid-template-columns: 1fr }
  .bp-nav-next{ text-align: left }
}

/* ── RELATED POSTS (3-up cards using ref-card pattern) ────────────── */
.bp-related{
  background: var(--bg);
  padding: 80px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.bp-related-label{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  max-width: var(--maxw);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bp-related-label::before{
  content: '';
  width: 24px; height: 2px;
  background: var(--accent);
}
.bp-related-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  background: transparent;
  border: 0;
  max-width: var(--maxw);
  margin: 0 auto;
}
.bl-card{
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--rule-hard);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(7,10,18,0.03);
  transition: transform var(--t-base) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow .45s cubic-bezier(.22,1,.36,1);
}
.bl-card:hover{
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 26px 54px -26px rgba(43,100,245,0.4), 0 10px 26px -16px rgba(7,10,18,0.25);
}
.bl-card-img{
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-3);
}
.bl-card-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.bl-card:hover .bl-card-img img{ transform: scale(1.05) }
.bl-card-body{ padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 11px; flex: 1 }
.bl-card-meta{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.bl-card-tag{
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  padding: 4px 9px;
  border-radius: 999px;
}
.bl-card-dot{ display: none }
.bl-card-meta > span:not(.bl-card-tag):not(.bl-card-dot){
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.bl-card h3{
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--blue-deep);
  transition: color var(--t-fast);
}
.bl-card:hover h3{ color: var(--accent-lo) }
.bl-card-excerpt{
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-card-read{
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
  padding-bottom: 0;
  border: 0;
  align-self: flex-start;
  transition: gap var(--t-fast), color var(--t-fast);
}
.bl-card:hover .bl-card-read{ color: var(--accent-lo) }

@media (max-width: 920px){
  .bp-related-grid{ grid-template-columns: 1fr 1fr }
}
@media (max-width: 600px){
  .bp-related-grid{ grid-template-columns: 1fr; gap: 20px }
}

/* ── BLOG INDEX (used by blog.html and tag/page archives) ─────────── */
.bl-hero{
  position: relative;
  background:
    radial-gradient(1100px 620px at 15% -10%, rgba(43,100,245,0.3), transparent 60%),
    radial-gradient(900px 520px at 95% 0%, rgba(22,34,77,0.5), transparent 60%),
    linear-gradient(180deg, #060912 0%, #070a14 60%, #080c18 100%);
  color: var(--bg);
  overflow: hidden;
  padding: 128px var(--gutter) 104px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bl-hero::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.bl-hero-inner{
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}
.bl-hero h1{
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.022em;
  color: var(--bg);
  text-transform: uppercase;
  margin: 0 0 20px;
  max-width: 22ch;
}
.bl-hero h1 em{ font-style: normal; background: linear-gradient(135deg,#5aa2ff,#7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bl-hero-lead{
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 64ch;
  margin: 0;
}

.bl-filter{
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: sticky;
  top: 51px;
  z-index: 50;
}
.bl-filter-label{
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.bl-filter .bl-tag-chip{
  border-radius: 999px;
  padding: 8px 15px;
  background: var(--bg);
  border-color: var(--rule-hard);
}
.bl-filter .bl-tag-chip:hover{
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
}
.bl-filter .bl-tag-chip.active{
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.bl-filter .bl-tag-chip.active:hover{
  background: var(--accent-lo);
  border-color: var(--accent-lo);
  color: var(--bg);
}

.bl-grid-section{
  background: var(--bg);
  padding: 60px var(--gutter) 90px;
}
.bl-grid-inner{
  max-width: var(--maxw);
  margin: 0 auto;
}
.bl-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  background: transparent;
  border: 0;
}
@media (max-width: 920px){
  .bl-grid{ grid-template-columns: 1fr 1fr }
}
@media (max-width: 600px){
  .bl-grid{ grid-template-columns: 1fr; gap: 20px }
}

.bl-pager{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.bl-pager a, .bl-pager .current, .bl-pager .disabled, .bl-pager .bl-pager-ellipsis{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 13px;
  border: 1px solid var(--rule-hard);
  color: var(--ink-2);
  background: var(--bg);
  border-radius: 1px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.bl-pager a:hover{ color: var(--accent); border-color: var(--accent) }
.bl-pager .current{
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.bl-pager .disabled{ color: var(--ink-4); border-color: var(--rule); cursor: not-allowed }
.bl-pager .bl-pager-ellipsis{ border: 0; color: var(--ink-3); padding: 9px 6px; background: transparent }

/* ── RESPONSIVE FOR HERO ──────────────────────────────────────────── */
@media (max-width: 760px){
  .bp-hero{ padding: 70px var(--gutter) 50px }
  .bp-feature{ padding: 36px var(--gutter) 0 }
  .bp-body-wrap{ padding: 50px var(--gutter) 60px }
  .bp-body{ font-size: 16.5px }
  .bp-body p, .bp-body li{ font-size: 16.5px }
}

/* ══════════════════════════════════════════════════════════════════
   COMPASS LAUNCH — mid-post inline nudge
   Injected by scripts/build-blog.js after the 2nd </h2> on any post
   with 3+ h2s. Brutalist accent-tinted card, sharp corners, single
   CTA. Designed to read AS PART OF the article, not as a popup.
   ══════════════════════════════════════════════════════════════════ */
.bp-compass-nudge{
  margin: 36px 0;
  padding: 26px 28px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bp-compass-nudge-eye{
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.bp-compass-nudge-row{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.bp-compass-nudge-body{ display: flex; flex-direction: column; gap: 6px }
.bp-compass-nudge-title{
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.bp-compass-nudge-desc{
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.bp-compass-nudge-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid var(--accent);
  white-space: nowrap;
  transition: background var(--t-base) var(--ease), border-color var(--t-base);
}
.bp-compass-nudge-cta:hover{
  background: var(--accent-lo);
  border-color: var(--accent-lo);
}
.bp-body .bp-compass-nudge-cta{
  color: var(--bg);
  border-bottom: none;
  padding-bottom: 0;
}
@media (max-width: 600px){
  .bp-compass-nudge{ padding: 22px 20px }
  .bp-compass-nudge-row{ grid-template-columns: 1fr; gap: 16px }
  .bp-compass-nudge-cta{ align-self: flex-start }
  .bp-compass-nudge-title{ font-size: 19px }
}

/* ──────────────────────────────────────────────────────────────────
   V15 RESKIN — headline retune (appended override).
   Old display headlines were Big Shoulders, condensed + UPPERCASE.
   V15 uses Inter 800/700, sentence case, tight tracking. Small mono
   eyebrows/labels keep their uppercase treatment (handled above).
   Article body layout, spacing, and Koenig cards are unchanged.
   ────────────────────────────────────────────────────────────────── */
.bl-hero h1{
  text-transform: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-size: clamp(40px, 5vw, 78px);
}
.bp-hero h1{
  text-transform: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(34px, 4.6vw, 58px);
}
.bp-body h2{
  text-transform: none;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.14;
  color: var(--blue-deep);
}
.bp-body h3,
.bp-body h4{
  text-transform: none;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--blue-deep);
}
.bp-nav-title,
.bp-body .kg-bookmark-title{
  text-transform: none;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.18;
}
.bl-card h3{
  text-transform: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--blue-deep);
}

/* ── Related-posts section: lighten the wrapper so cards read as
      objects on a soft canvas, not cells in a table. ──────────── */
.bp-related{ background: var(--bg-2) }
.bp-nav-wrap{ background: var(--bg-2) }
.bl-grid-section{ background: var(--bg-2) }

/* ── Reduced motion: kill transforms/scales/parallax ──────────── */
@media (prefers-reduced-motion: reduce){
  .bl-card,
  .bl-card:hover,
  .bl-card-img img,
  .bl-card:hover .bl-card-img img,
  .bp-body .kg-bookmark-card,
  .bp-body .kg-bookmark-card:hover,
  .bp-body .kg-cta-button,
  .bp-body .kg-cta-button:hover{
    transform: none !important;
    transition: none !important;
  }
  html{ scroll-behavior: auto }
}

/* ── Mobile polish: full-width prose, no overflow at 375px ─────── */
@media (max-width: 760px){
  .bp-hero{ padding: 84px var(--gutter) 48px }
  .bp-feature{
    background: linear-gradient(180deg, #080c18 0%, #080c18 64px, var(--bg) 64px, var(--bg) 100%);
    padding: 0 var(--gutter);
  }
  .bp-body > p:first-of-type{ font-size: 19px }
  .bp-body blockquote{ padding: 18px 18px 18px 20px }
  .bp-body .kg-cta-card{ padding: 24px 22px }
  .bp-body .kg-cta-text, .bp-body .kg-cta-text p{ font-size: 18px }
}
@media (max-width: 420px){
  .bp-body{ font-size: 16.5px }
  .bp-body p, .bp-body li{ font-size: 16.5px }
  .bp-body > p:first-of-type{ font-size: 18px }
  .bp-body h2{ font-size: 25px }
  .bp-body h3{ font-size: 20px }
}

/* ════════════════════════════════════════════════════════════════
   V15 CHROME CORRECTIONS
   Loads after v3-system.css → wins. Brings the shared chrome that
   the blog inherits (footer dual-path CTA) onto the V15 system:
   display headings are sentence-case Inter (NOT uppercase), tuned
   to the -0.03em V15 tracking, and CTA buttons use the 10px V15
   radius instead of the old sharp 1px. Eyebrows/labels stay
   uppercase by design — only true DISPLAY headings change.
   ════════════════════════════════════════════════════════════════ */
.cta-sec h2,
.path h3{
  text-transform: none;
  letter-spacing: -0.03em;
}
.path-btn{
  border-radius: 10px;
}

/* ════════════════════════════════════════════════════════════════
   BLOG CLEANUP (V15) — bulletproof, unscoped, !important so they win
   regardless of cascade/nesting.
   ════════════════════════════════════════════════════════════════ */

/* 1. Kill the oversized, low-res link-preview thumbnails inside
      bookmark cards. The card keeps its clean title + description +
      small favicon — no blurry blown-up logos. */
.kg-bookmark-thumbnail{ display: none !important; }
.kg-bookmark-container{ min-height: 0 !important; }

/* 2. Footer dual-path CTA → canonical V15 scale:
      drop the busy globe backdrop, tame the oversized display heading. */
.cta-sec .sec-bg-img{ display: none !important; }
.cta-sec h2{ font-size: clamp(30px, 4.4vw, 54px) !important; line-height: 1.06 !important; }
.path h3{ font-size: clamp(22px, 2.6vw, 28px) !important; }
.cta-sec{ padding-top: 96px !important; padding-bottom: 96px !important; }

/* ════════════════════════════════════════════════════════════════
   V15 THOROUGH PASS — kill remaining LEGACY uppercase on true display
   headings (article H4, bookmark titles, the in-content Compass nudge
   title, the listing hero). Eyebrows / labels / meta / tags / table
   heads / buttons stay uppercase — that's the V15 small-caps system.
   ════════════════════════════════════════════════════════════════ */
.bp-body h4,
.bp-body .kg-bookmark-title,
.bp-compass-nudge-title,
.bl-hero h1{ text-transform: none !important; letter-spacing: -0.02em; }

/* In-content Compass nudge: make sure the CTA never clips and reads V15. */
.bp-compass-nudge{ overflow: visible !important; border-radius: 12px; }
.bp-compass-nudge-row{ align-items: center !important; }
.bp-compass-nudge-cta{ border-radius: 10px !important; align-self: center !important; flex: none; }

/* Bookmark/link cards: drop the leftover Ghost metadata row (stray
   favicon + junk "author" text like "Stobox Logo"). Card = clean
   title + description link. */
.kg-bookmark-metadata{ display: none !important; }

/* ════════════════════════════════════════════════════════════════
   V15 — previously UNSTYLED Ghost card types (audit pass).
   header / button / file / gallery / embed cards had no V15 rules and
   rendered with browser defaults. Bring them all onto the system.
   ════════════════════════════════════════════════════════════════ */

/* HEADER CARDS → clean V15 section band. Their bg images are dead Ghost
   paths (/blog/contentimages/*, 404 on live too) — drop the banner, render
   as an intentional tinted section heading with a cobalt rule. */
.bp-body .kg-header-card{
  background: var(--blue-ice) !important;
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 22px 26px !important;
  margin: 2em 0 1.2em !important;
  min-height: 0 !important;
  display: block !important;
}
.bp-body .kg-header-card-header,
.bp-body .kg-header-card-heading,
.bp-body .kg-header-card h2,
.bp-body .kg-header-card h3{
  font-family: var(--display) !important;
  font-weight: 800 !important;
  font-size: clamp(21px, 2.5vw, 28px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: var(--blue-deep) !important;
  margin: 0 !important;
  text-transform: none !important;
}
.bp-body .kg-header-card-subheading,
.bp-body .kg-header-card-text{
  font-family: var(--body) !important;
  font-size: 15.5px !important;
  color: var(--ink-2) !important;
  line-height: 1.6 !important;
  margin: 8px 0 0 !important;
}

/* BUTTON CARDS + any .kg-btn (also used inside header cards) → V15 gradient CTA */
.bp-body .kg-button-card{ margin: 1.8em 0; display: flex; }
.bp-body .kg-button-card.kg-align-center{ justify-content: center; }
.bp-body .kg-button-card.kg-align-left{ justify-content: flex-start; }
.bp-body .kg-btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px;
  font-family: var(--body); font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em;
  text-decoration: none !important; border: none;
  background: linear-gradient(135deg, #3b6cff, #7c5cff); color: #fff !important;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.bp-body .kg-btn:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(43,100,245,.7); }

/* FILE CARDS → V15 download card */
.bp-body .kg-file-card{ margin: 1.8em 0; }
.bp-body .kg-file-card-container{
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px; border: 1px solid var(--rule); border-radius: 12px;
  background: var(--bg-2); text-decoration: none !important;
  transition: border-color var(--t-fast), box-shadow var(--t-base);
}
.bp-body .kg-file-card-container:hover{ border-color: var(--accent); box-shadow: 0 14px 30px -20px rgba(7,10,18,.3); }
.bp-body .kg-file-card-title{ font-family: var(--display); font-weight: 700; font-size: 15.5px; color: var(--ink); letter-spacing: -0.01em; }
.bp-body .kg-file-card-caption{ font-family: var(--body); font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.bp-body .kg-file-card-metadata{ font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); margin-top: 8px; }
.bp-body .kg-file-card-filename{ word-break: break-all; }

/* GALLERY CARDS → proper flex grid (was stacking 2000px-wide images full size) */
.bp-body .kg-gallery-card{ margin: 1.8em 0; }
.bp-body .kg-gallery-container{ display: flex; flex-direction: column; gap: 10px; }
.bp-body .kg-gallery-row{ display: flex; gap: 10px; }
.bp-body .kg-gallery-image{ flex: 1 1 0; min-width: 0; }
.bp-body .kg-gallery-image img{ width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; margin: 0; }

/* EMBED CARDS → centered, rounded (sizing already from .bp-body iframe) */
.bp-body .kg-embed-card{ margin: 1.8em 0; display: flex; justify-content: center; }
.bp-body .kg-embed-card iframe{ border-radius: 12px; }

/* ════════════════════════════════════════════════════════════════
   BUTTON HARMONIZATION — identical to homepage Button.astro.
   Standalone CTAs → PRIMARY (gradient+glow). The button that sits ON
   the vivid gradient Compass card → GHOST-LIGHT (white) for contrast
   (a gradient button on a gradient card would be invisible).
   ════════════════════════════════════════════════════════════════ */
.bp-body .kg-btn,
.bp-compass-nudge-cta,
.bp-body .bp-compass-nudge-cta{
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  font-family: var(--body) !important; font-weight: 700 !important; font-size: 15px !important; line-height: 1 !important; letter-spacing: -0.005em !important;
  padding: 13px 22px !important; border-radius: 10px !important; min-height: 44px !important;
  text-decoration: none !important; border: none !important; white-space: nowrap;
  color: #fff !important; background: linear-gradient(135deg,#3b6cff,#7c5cff) !important;
  box-shadow: 0 10px 30px -10px rgba(59,108,255,.7) !important; transition: transform .15s !important;
}
.bp-body .kg-btn:hover,
.bp-compass-nudge-cta:hover,
.bp-body .bp-compass-nudge-cta:hover{ transform: translateY(-1px) !important; }

.bp-body .kg-cta-button,
.bp-body a.kg-cta-button{
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  font-family: var(--body) !important; font-weight: 700 !important; font-size: 15px !important; line-height: 1 !important; letter-spacing: -0.005em !important;
  padding: 13px 22px !important; border-radius: 10px !important; min-height: 44px !important;
  text-decoration: none !important; white-space: nowrap;
  color: #16224d !important; background: #fff !important; border: 1.5px solid #d4ddee !important;
  box-shadow: none !important; transition: transform .15s !important;
}
.bp-body .kg-cta-button:hover{ transform: translateY(-1px) !important; background: #fff !important; border-color: #b9c6e0 !important; }
