/* ==========================================================================
   Editorial layer: blog listing, blog topics, blog posts, author page.
   Mirrors the homepage language (warm glows, diagonal panel, Industry
   display type with orange accents, pill buttons, glowing dark cards).
   Loaded only on those pages via $page_styles.
   ========================================================================== */

:root {
  --bx-ink: #f4f4f4;
  --bx-mute: rgba(255, 255, 255, 0.62);
  --bx-dim: rgba(255, 255, 255, 0.46);
  --bx-line: rgba(255, 255, 255, 0.09);
  --bx-line-strong: rgba(255, 255, 255, 0.16);
  --bx-card: #121212;
  --bx-card-2: #161616;
  --bx-fire: var(--orange, #ff642d);
  --bx-lift: var(--green, #34a853);
  --bx-grad: linear-gradient(135deg, #34a853 0%, #9bbf3a 45%, #ff642d 100%);
  --bx-ease: var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

/* ---------- Shared atoms ---------- */
.bx-eyebrow {
  margin: 0 0 0.9rem;
  color: var(--bx-fire);
  font: 700 0.72rem/1.2 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bx-h1 {
  margin: 0 0 1.15rem;
  color: #fff;
  font: 900 clamp(2.3rem, 4.6vw, 3.7rem)/1.04 var(--font-display);
  letter-spacing: -0.035em;
  text-transform: none;
  text-wrap: balance;
}
.bx-h1 span { color: var(--bx-fire); }
.bx-h1-sub { display: block; }
.bx-h1--post { font-size: clamp(2rem, 3.6vw, 3.05rem); line-height: 1.08; }
.bx-h2 {
  margin: 0;
  color: #fff;
  font: 900 clamp(1.75rem, 3vw, 2.45rem)/1.1 var(--font-display);
  letter-spacing: -0.03em;
  text-transform: none;
  text-wrap: balance;
}
.bx-h2 span { color: var(--bx-fire); }
.bx-lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--bx-mute);
  font: 400 1.1rem/1.6 var(--font-body);
}
.bx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.bx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.15rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font: 600 0.95rem/1.1 var(--font-body);
  text-decoration: none;
  text-align: center;
  transition: transform 0.28s var(--bx-ease), background-color 0.28s var(--bx-ease), box-shadow 0.28s var(--bx-ease);
}
.bx-btn--fire {
  background: var(--bx-fire);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 100, 45, 0.3);
}
.bx-btn--fire:hover,
.bx-btn--fire:focus-visible {
  background: #e85420;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 100, 45, 0.42);
}
.bx-text-link {
  color: rgba(255, 255, 255, 0.82);
  font: 600 0.95rem/1.4 var(--font-body);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}
.bx-text-link:hover,
.bx-text-link:focus-visible { color: var(--bx-fire); border-color: var(--bx-fire); }

.bx-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(52, 168, 83, 0.38);
  border-radius: 999px;
  background: rgba(52, 168, 83, 0.1);
  color: #7fd394;
  font: 600 0.74rem/1 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
a.bx-badge:hover,
a.bx-badge:focus-visible { background: rgba(52, 168, 83, 0.2); border-color: rgba(52, 168, 83, 0.7); color: #a6e6b5; }
.bx-badge--hot {
  border-color: rgba(255, 100, 45, 0.45);
  background: rgba(255, 100, 45, 0.12);
  color: #ff9a74;
}
.bx-badge--ghost {
  border-color: var(--bx-line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bx-mute);
}
.bx-card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }

.bx-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  padding: 2px;
  background: var(--bx-grad);
}
.bx-avatar--lg { width: 44px; height: 44px; }
.bx-meta { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.bx-meta-text { display: grid; gap: 0.15rem; min-width: 0; }
.bx-meta-author { color: #fff; font: 600 0.88rem/1.2 var(--font-body); text-decoration: none; }
a.bx-meta-author:hover { color: var(--bx-fire); }
.bx-meta-sub { color: var(--bx-dim); font: 400 0.8rem/1.3 var(--font-body); }

/* ---------- Hero (shares the homepage stage) ---------- */
.bx-hero {
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(6.5rem, 13vh, 8.5rem) clamp(3.5rem, 7vw, 5rem);
  min-height: min(78vh, 40rem);
}
.bx-hero--compact { min-height: min(58vh, 30rem); }
.bx-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 48% at 10% 18%, rgba(255, 100, 45, 0.16), transparent 60%),
    radial-gradient(ellipse 38% 42% at 88% 72%, rgba(52, 168, 83, 0.12), transparent 58%);
}
.bx-hero-bg::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(48vw, 680px);
  background:
    radial-gradient(ellipse 80% 55% at 70% 18%, rgba(255, 100, 45, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 45% at 30% 90%, rgba(52, 168, 83, 0.1), transparent 50%),
    #0e0e0e;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.bx-hero--compact .bx-hero-bg::after { width: min(36vw, 520px); opacity: 0.85; }
.bx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.bx-hero-grid--single { grid-template-columns: minmax(0, 46rem); }
.bx-hero-copy { min-width: 0; }
.bx-hero-copy .breadcrumbs { margin-bottom: 1.4rem; }
.bx-hero-crumbs { grid-column: 1 / -1; margin-bottom: -1rem; }
.bx-hero-crumbs .breadcrumbs { margin: 0; }

/* Topics panel on /blog */
.bx-hero-panel {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--bx-line-strong);
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.92), rgba(12, 12, 12, 0.92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(6px);
}
.bx-hero-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--bx-grad);
  opacity: 0.35;
  filter: blur(24px);
}
.bx-panel-label {
  margin: 0 0 0.9rem;
  color: var(--bx-dim);
  font: 700 0.7rem/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bx-topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.bx-topic-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--bx-line);
  border-radius: var(--radius, 14px);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: border-color 0.25s var(--bx-ease), background-color 0.25s var(--bx-ease), transform 0.25s var(--bx-ease);
}
.bx-topic-list a::after {
  content: '→';
  color: var(--bx-dim);
  transition: color 0.25s, transform 0.25s var(--bx-ease);
}
.bx-topic-list a:hover,
.bx-topic-list a:focus-visible {
  border-color: rgba(255, 100, 45, 0.45);
  background: rgba(255, 100, 45, 0.06);
  transform: translateX(3px);
}
.bx-topic-list a:hover::after,
.bx-topic-list a:focus-visible::after { color: var(--bx-fire); transform: translateX(2px); }
.bx-topic-name { color: #fff; font: 600 0.98rem/1.25 var(--font-body); }
.bx-topic-count { margin-left: auto; color: var(--bx-dim); font: 500 0.8rem/1 var(--font-body); white-space: nowrap; }
.bx-panel-foot { margin: 1.1rem 0 0; color: var(--bx-dim); font: 400 0.85rem/1.5 var(--font-body); }
.bx-panel-foot a { color: #fff; }

/* ---------- Listing ---------- */
.bx-list { padding-top: clamp(3rem, 5vw, 4rem); }
.bx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2.25rem;
}
.bx-filters a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0 0.6rem 0 1.1rem;
  border: 1px solid var(--bx-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
  font: 600 0.88rem/1 var(--font-body);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--bx-ease);
}
.bx-filters a span {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bx-mute);
  font-size: 0.75rem;
}
.bx-filters a:hover,
.bx-filters a:focus-visible { border-color: rgba(255, 100, 45, 0.55); color: #fff; transform: translateY(-1px); }
.bx-filters a[aria-current='page'] {
  border-color: transparent;
  background:
    linear-gradient(#1a1a1a, #1a1a1a) padding-box,
    var(--bx-grad) border-box;
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 100, 45, 0.18);
}
.bx-filters a[aria-current='page'] span { background: var(--bx-fire); color: #fff; }

/* Cards */
.bx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--bx-line);
  border-radius: var(--radius-lg, 20px);
  background: var(--bx-card);
  overflow: hidden;
  transition: transform 0.35s var(--bx-ease), border-color 0.35s var(--bx-ease), box-shadow 0.35s var(--bx-ease);
}
.bx-card:hover,
.bx-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 100, 45, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 100, 45, 0.12), 0 18px 50px -18px rgba(255, 100, 45, 0.35);
}
.bx-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0e0e0e;
}
.bx-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 18, 18, 0.65));
  pointer-events: none;
}
.bx-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--bx-ease);
}
.bx-card:hover .bx-card-media img { transform: scale(1.04); }
.bx-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.5rem;
}
.bx-card-title {
  margin: 0 0 0.7rem;
  font: 800 1.3rem/1.22 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: none;
}
.bx-card-title a { color: #fff; text-decoration: none; }
.bx-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bx-card-title a:focus-visible { outline: none; }
.bx-card:has(.bx-card-title a:focus-visible) { outline: 2px solid var(--bx-fire); outline-offset: 3px; }
.bx-card:hover .bx-card-title a { color: #fff; }
.bx-card-excerpt {
  margin: 0 0 1.4rem;
  color: var(--bx-mute);
  font: 400 0.96rem/1.6 var(--font-body);
}
.bx-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--bx-line);
}
.bx-card-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bx-fire);
  font: 600 0.88rem/1 var(--font-body);
  text-decoration: none;
}
.bx-arrow { display: inline-block; transition: transform 0.3s var(--bx-ease); }
.bx-card:hover .bx-arrow { transform: translateX(4px); }

.bx-featured { margin-bottom: 1.5rem; }
.bx-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(255, 100, 45, 0.09), transparent 60%),
    var(--bx-card);
}
.bx-card--featured .bx-card-media { aspect-ratio: auto; min-height: 100%; }
.bx-card--featured .bx-card-media::after { background: linear-gradient(90deg, transparent 60%, rgba(18, 18, 18, 0.7)); }
.bx-card--featured .bx-card-body { padding: clamp(1.6rem, 3vw, 2.5rem); justify-content: center; }
.bx-card--featured .bx-card-title { font-size: clamp(1.55rem, 2.4vw, 2.05rem); line-height: 1.12; }
.bx-card--featured .bx-card-excerpt { font-size: 1.02rem; }
.bx-card--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}
.bx-card--wide .bx-card-media { order: 2; aspect-ratio: auto; min-height: 100%; }
.bx-card--wide .bx-card-media::after { background: linear-gradient(270deg, transparent 60%, rgba(18, 18, 18, 0.7)); }
.bx-card--wide .bx-card-body { padding: clamp(1.5rem, 2.6vw, 2.1rem); justify-content: center; }
.bx-card--wide .bx-card-title { font-size: clamp(1.35rem, 2vw, 1.65rem); }

.bx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem;
}

/* ---------- CTA band ---------- */
.bx-band-cta {
  padding: var(--section-y-sm, 3.5rem) 0 var(--section-y, 5rem);
  background: var(--bg, #070707);
}
.bx-band-cta-inner {
  position: relative;
  width: min(100% - (var(--gutter, 1.25rem) * 2), var(--container, 1180px));
  margin-inline: auto;
  padding: clamp(2.2rem, 5vw, 3.75rem);
  border: 1px solid rgba(255, 100, 45, 0.25);
  border-radius: var(--radius-xl, 28px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 90% at 0% 0%, rgba(255, 100, 45, 0.22), transparent 60%),
    radial-gradient(ellipse 55% 90% at 100% 100%, rgba(52, 168, 83, 0.18), transparent 60%),
    #0f0f0f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.bx-band-cta-inner h2 {
  max-width: 40rem;
  margin: 0 auto 1rem;
  color: #fff;
  font: 900 clamp(1.8rem, 3.4vw, 2.7rem)/1.08 var(--font-display);
  letter-spacing: -0.03em;
  text-transform: none;
  text-wrap: balance;
}
.bx-band-cta-inner h2 span { color: var(--bx-fire); }
.bx-band-cta-inner p:not(.bx-eyebrow) {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: var(--bx-mute);
  font: 400 1.02rem/1.6 var(--font-body);
}

/* ---------- Post header ---------- */
.bx-hero--post { min-height: 0; }
.bx-hero--post .bx-lede { max-width: 38rem; }
.bx-byline { display: flex; align-items: center; gap: 0.85rem; }
.bx-byline .byline { display: grid; gap: 0.2rem; margin: 0; }
.bx-byline-name { color: rgba(255, 255, 255, 0.82); font: 500 0.95rem/1.3 var(--font-body); }
.bx-byline-name a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid rgba(255, 100, 45, 0.6); }
.bx-byline-name a:hover { color: var(--bx-fire); }
.bx-byline-sub { color: var(--bx-dim); font: 400 0.84rem/1.3 var(--font-body); }
.bx-hero-cover {
  position: relative;
  border-radius: var(--radius-lg, 20px);
  padding: 1px;
  background: linear-gradient(135deg, rgba(52, 168, 83, 0.6), rgba(255, 255, 255, 0.08) 45%, rgba(255, 100, 45, 0.6));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 20px 60px -20px rgba(255, 100, 45, 0.35);
  transform: rotate(1.2deg);
}
.bx-hero-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius-lg, 20px) - 1px);
  background: #0e0e0e;
}

/* ---------- Article layout ---------- */
.bx-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: 50rem;
}
.bx-article-main { min-width: 0; }
.bx-toc-wrap { position: relative; }
.bx-toc {
  margin: 0;
  border: 1px solid var(--bx-line-strong);
  border-radius: var(--radius, 14px);
  background: var(--bx-card);
  padding: 0;
}
.bx-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font: 700 0.74rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.bx-toc summary::-webkit-details-marker { display: none; }
.bx-toc summary::after { content: '+'; color: var(--bx-fire); font-size: 1.1rem; letter-spacing: 0; }
.bx-toc[open] summary::after { content: '–'; }

.bx-toc nav {
  padding: 0 0.85rem 1.35rem 1.15rem;
}
/* Firefox (standard scrollbar properties). Keep these out of Chromium or they
   override ::-webkit-scrollbar and leave the light native thumb.) */
@-moz-document url-prefix() {
  .bx-toc nav {
    scrollbar-width: thin;
    scrollbar-color: #ff642d #1a1a1a;
  }
}
/* WebKit / Chromium custom scrollbar on the TOC nav */
.bx-toc nav::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.bx-toc nav::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 999px;
  margin: 6px 2px 6px 0; /* even ends — no awkward empty gap under the thumb */
  -webkit-box-shadow: none;
}
.bx-toc nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #34a853 0%, #9bbf3a 45%, #ff642d 100%);
  border-radius: 999px;
  border: 1px solid #121212;
  min-height: 40px;
  -webkit-box-shadow: none;
}
.bx-toc nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3ec45f 0%, #ff642d 100%);
  background-clip: padding-box;
  border: 2px solid transparent;
}
.bx-toc nav::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.bx-toc nav::-webkit-scrollbar-corner { background: transparent; }

.bx-toc ol {
  list-style: none;
  counter-reset: bxtoc;
  margin: 0;
  padding: 0 0.85rem 0.5rem 0; /* clear the scrollbar + leave room under last item */
  display: grid;
  gap: 0.35rem;
}
.bx-toc li { counter-increment: bxtoc; margin: 0; }
.bx-toc a {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.45rem;
  padding: 0.55rem 0.55rem 0.55rem 0;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--bx-mute);
  font: 500 0.88rem/1.55 var(--font-body);
  text-decoration: none;
  overflow-wrap: break-word;
  transition: color 0.2s var(--bx-ease), border-color 0.2s var(--bx-ease), background-color 0.2s var(--bx-ease);
}
.bx-toc a::before {
  content: counter(bxtoc, decimal-leading-zero);
  padding-left: 0.55rem;
  color: var(--bx-dim);
  font: 600 0.72rem/1.55 var(--font-body); /* match link line-height so numbers don't clip */
  transition: color 0.2s var(--bx-ease);
}
.bx-toc a:hover,
.bx-toc a:focus-visible { color: #fff; border-left-color: var(--bx-fire); }
.bx-toc a.is-active {
  color: #fff;
  border-left-color: var(--bx-lift);
  background: rgba(52, 168, 83, 0.1);
}
.bx-toc a.is-active::before { color: var(--bx-fire); }

@media (min-width: 1100px) {
  .bx-article {
    grid-template-columns: 15.5rem minmax(0, 46rem);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    max-width: none;
    justify-content: center;
  }
  .bx-article--no-toc { grid-template-columns: minmax(0, 46rem); }
  .bx-toc {
    position: sticky;
    top: 6.5rem;
    /* ~80vh as requested, capped so sticky offset + panel stay in the viewport */
    max-height: min(80vh, calc(100vh - 6.5rem - 1.25rem));
  }
  /* Title stays put; nav is the scroller (avoids <details> flex bugs) */
  .bx-toc nav {
    max-height: calc(min(80vh, calc(100vh - 6.5rem - 1.25rem)) - 3.5rem);
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }
  .bx-toc summary { cursor: default; pointer-events: none; }
  .bx-toc summary::after { display: none; }
}

/* ---------- Prose ---------- */
.bx-prose { color: rgba(255, 255, 255, 0.8); font-size: 1.075rem; line-height: 1.78; }
.bx-prose > * + * { margin-top: 1.15em; }
.bx-prose p, .bx-prose li { color: rgba(255, 255, 255, 0.8); }
.bx-prose strong { color: #fff; }
.bx-prose h2 {
  position: relative;
  margin: 2.6em 0 0.8em;
  padding-top: 1.4rem;
  color: #fff;
  font: 900 clamp(1.5rem, 2.4vw, 1.9rem)/1.15 var(--font-display);
  letter-spacing: -0.025em;
  text-transform: none;
  scroll-margin-top: 6.5rem;
}
.bx-prose h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  border-radius: 3px;
  background: var(--bx-grad);
}
.bx-prose > h2:first-child { margin-top: 0; }
.bx-prose h3 {
  margin: 2em 0 0.6em;
  color: #fff;
  font: 800 1.22rem/1.3 var(--font-display);
  letter-spacing: -0.015em;
  text-transform: none;
  scroll-margin-top: 6.5rem;
}
.bx-prose a {
  color: #ff8a5e;
  text-decoration: underline;
  text-decoration-color: rgba(255, 100, 45, 0.45);
  text-underline-offset: 3px;
}
.bx-prose a:hover { color: #fff; text-decoration-color: var(--bx-fire); }
.bx-prose ul, .bx-prose ol { padding-left: 1.35rem; }
.bx-prose li + li { margin-top: 0.45em; }
.bx-prose ul li::marker { color: var(--bx-fire); }
.bx-prose ol li::marker { color: var(--bx-fire); font-weight: 700; }
.bx-prose figure {
  margin: 2.2em 0;
  padding: 0.75rem;
  border: 1px solid var(--bx-line);
  border-radius: var(--radius-lg, 20px);
  background: var(--bx-card);
}
.bx-prose figure img { display: block; width: 100%; height: auto; border-radius: var(--radius, 14px); }
.bx-prose figcaption {
  margin: 0.8rem 0.25rem 0.15rem;
  color: var(--bx-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}
.bx-prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2em 0;
  border: 1px solid var(--bx-line-strong);
  border-radius: var(--radius, 14px);
  background: var(--bx-card);
  font-size: 0.95rem;
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
}
.bx-prose th, .bx-prose td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--bx-line);
  text-align: left;
  vertical-align: top;
  min-width: 9rem;
}
.bx-prose th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
}
.bx-prose tr:last-child td { border-bottom: 0; }
.bx-prose blockquote {
  margin: 2em 0;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--bx-fire);
  border-radius: 0 var(--radius, 14px) var(--radius, 14px) 0;
  background: rgba(255, 100, 45, 0.06);
}

.bx-sources {
  margin-top: 3rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--bx-line);
  border-radius: var(--radius-lg, 20px);
  background: var(--bx-card);
}

/* Author box */
.bx-author-box {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  margin-top: 2.5rem;
  padding: 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg, 20px);
  background:
    linear-gradient(#121212, #121212) padding-box,
    linear-gradient(135deg, rgba(52, 168, 83, 0.55), rgba(255, 255, 255, 0.06) 50%, rgba(255, 100, 45, 0.55)) border-box;
}
.bx-author-box-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
  background: var(--bx-grad);
}
.bx-author-box .bx-eyebrow { margin-bottom: 0.4rem; }
.bx-author-box-name { margin: 0 0 0.5rem; font: 800 1.3rem/1.2 var(--font-display); }
.bx-author-box-name a { color: #fff; text-decoration: none; }
.bx-author-box-name a:hover { color: var(--bx-fire); }
.bx-author-box-bio { margin: 0 0 0.9rem; color: var(--bx-mute); font: 400 0.96rem/1.6 var(--font-body); }

/* ---------- Author page ---------- */
.bx-hero--author { min-height: min(88vh, 46rem); }
.bx-hero--author .bx-h1-sub {
  margin-top: 0.3rem;
  font-size: 0.62em;
  line-height: 1.1;
  color: var(--bx-fire);
}
.bx-socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
}
.bx-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0 1rem 0 0.8rem;
  border: 1px solid var(--bx-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font: 600 0.86rem/1 var(--font-body);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--bx-ease);
}
.bx-socials a:hover,
.bx-socials a:focus-visible { border-color: rgba(255, 100, 45, 0.55); background: rgba(255, 100, 45, 0.08); color: #fff; transform: translateY(-2px); }
.bx-socials img { width: 18px; height: 18px; filter: invert(1); opacity: 0.9; }
.bx-socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.bx-portrait { display: grid; justify-items: center; gap: 1.25rem; }
.bx-portrait-ring {
  position: relative;
  width: min(100%, 23rem);
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #34a853, #9bbf3a, #ff642d, #ff9a74, #34a853);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.025), 0 40px 100px rgba(0, 0, 0, 0.6);
}
.bx-portrait-ring::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(52, 168, 83, 0.35), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(255, 100, 45, 0.4), transparent 60%);
  filter: blur(30px);
  animation: bx-breathe 7s ease-in-out infinite;
}
.bx-portrait-ring img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid #0b0b0b;
  object-fit: cover;
  background: #111;
}
@keyframes bx-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.bx-portrait-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.6rem 1rem;
  border: 1px solid var(--bx-line-strong);
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.9);
  color: rgba(255, 255, 255, 0.82);
  font: 500 0.84rem/1.3 var(--font-body);
  text-align: center;
}
.bx-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bx-lift);
  box-shadow: 0 0 0 4px rgba(52, 168, 83, 0.18);
}

.bx-stats-band {
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-radius: 1.5rem 1.5rem 0 0;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  background-color: var(--bg-elevated, #0e0e0e);
  box-shadow: 0 -28px 60px rgba(0, 0, 0, 0.55), 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.bx-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.bx-stats li {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem 1.4rem 1.3rem;
  border: 1px solid var(--bx-line);
  border-radius: var(--radius-lg, 20px);
  background: var(--bx-card);
  overflow: hidden;
}
.bx-stats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: var(--bx-grad);
  opacity: 0.85;
}
.bx-stats strong {
  color: #fff;
  font: 900 clamp(1.45rem, 2.4vw, 1.95rem)/1.1 var(--font-display);
  letter-spacing: -0.02em;
}
.bx-stats span { color: var(--bx-mute); font: 500 0.9rem/1.4 var(--font-body); }

.bx-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.bx-split .bx-prose > p:first-child { margin-top: 0; }

.bx-section-head { max-width: 44rem; margin: 0 0 2.25rem; }
.bx-section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: none;
}

.bx-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
}
.bx-service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--bx-line);
  border-radius: var(--radius-lg, 20px);
  background: var(--bx-card);
  transition: transform 0.35s var(--bx-ease), border-color 0.35s var(--bx-ease), box-shadow 0.35s var(--bx-ease);
}
.bx-service:hover,
.bx-service:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 100, 45, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 18px 50px -20px rgba(255, 100, 45, 0.35);
}
.bx-service--hot {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(255, 100, 45, 0.12), transparent 60%),
    var(--bx-card);
}
.bx-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.2rem;
  border-radius: 14px;
  background:
    linear-gradient(#171717, #171717) padding-box,
    var(--bx-grad) border-box;
  border: 1px solid transparent;
  color: #ff8a5e;
  box-shadow: 0 10px 30px -10px rgba(255, 100, 45, 0.45);
}
.bx-icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bx-service h3 {
  margin: 0 0 0.6rem;
  color: #fff;
  font: 800 1.2rem/1.25 var(--font-display);
  letter-spacing: -0.015em;
  text-transform: none;
}
.bx-service p { margin: 0 0 1.2rem; color: var(--bx-mute); font: 400 0.95rem/1.6 var(--font-body); }
.bx-service-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: auto 0 0 !important; }
.bx-service-links a {
  color: var(--bx-fire);
  font: 600 0.88rem/1.4 var(--font-body);
  text-decoration: none;
}
.bx-service-links a::after { content: ' →'; }
.bx-service-links a:hover { color: #fff; }

.bx-principles {
  list-style: none;
  counter-reset: bxp;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .bx-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-principles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .bx-principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bx-principles li:last-child:nth-child(odd) { grid-column: auto; }
  .bx-principles li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
.bx-principles li {
  counter-increment: bxp;
  position: relative;
  padding: 1.35rem 1.4rem 1.35rem 4rem;
  border: 1px solid var(--bx-line);
  border-radius: var(--radius-lg, 20px);
  background: var(--bx-card);
  color: var(--bx-mute);
  font: 400 0.95rem/1.6 var(--font-body);
}
.bx-principles li::before {
  content: counter(bxp, decimal-leading-zero);
  position: absolute;
  left: 1.3rem;
  top: 1.3rem;
  color: var(--bx-fire);
  font: 900 1.15rem/1.4 var(--font-display);
}
.bx-principles strong { display: block; margin-bottom: 0.3rem; color: #fff; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bx-hero-bg::after { display: none; }
  .bx-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .bx-hero { min-height: 0; }
  .bx-hero-cover { transform: none; max-width: 36rem; }
  .bx-card--featured, .bx-card--wide { grid-template-columns: minmax(0, 1fr); }
  .bx-card--featured .bx-card-media, .bx-card--wide .bx-card-media { order: 0; aspect-ratio: 16 / 10; min-height: 0; }
  .bx-card--featured .bx-card-media::after, .bx-card--wide .bx-card-media::after { background: linear-gradient(180deg, transparent 55%, rgba(18, 18, 18, 0.65)); }
  .bx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-split { grid-template-columns: minmax(0, 1fr); }
  .bx-hero--author .bx-hero-grid { gap: 2.5rem; }
  .bx-hero--author .bx-portrait { order: -1; justify-items: start; }
  .bx-hero--author .bx-portrait-ring { width: min(52vw, 12.5rem); padding: 4px; }
  .bx-hero--author .bx-portrait-ring img { border-width: 4px; }
  .bx-hero-crumbs { margin-bottom: -1.25rem; }
}
@media (max-width: 560px) {
  .bx-hero { padding-top: 6rem; }
  .bx-lede { font-size: 1.02rem; }
  .bx-actions .bx-btn { width: 100%; }
  .bx-hero-panel { padding: 1.15rem; }
  .bx-card-body { padding: 1.2rem 1.2rem 1.3rem; }
  .bx-card-cta { display: none; }
  .bx-stats { gap: 0.75rem; }
  .bx-stats li { padding: 1.1rem 1rem; }
  .bx-stats strong { font-size: 1.3rem; }
  .bx-author-box { grid-template-columns: minmax(0, 1fr); }
  .bx-prose { font-size: 1.02rem; }
  .bx-prose figure { padding: 0.5rem; margin-inline: 0; }
  .bx-portrait-tag { font-size: 0.78rem; }
  .bx-filters a { min-height: 2.4rem; font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bx-btn, .bx-card, .bx-card-media img, .bx-arrow, .bx-service, .bx-topic-list a,
  .bx-topic-list a::after, .bx-filters a, .bx-socials a, .bx-toc a, .bx-toc a::before { transition: none !important; }
  .bx-btn:hover, .bx-btn--fire:hover, .bx-card:hover, .bx-card:focus-within, .bx-service:hover,
  .bx-service:focus-within, .bx-topic-list a:hover, .bx-filters a:hover, .bx-socials a:hover,
  .bx-card:hover .bx-card-media img, .bx-card:hover .bx-arrow { transform: none !important; }
  .bx-portrait-ring::before { animation: none; }
  .bx-hero-cover { transform: none; }
}

/* ---------- Post FAQs (aligned with the article column) ---------- */
.bx-toc li { margin: 0; }
.bx-faq-band .container { max-width: 50rem; }
@media (min-width: 1100px) {
  .bx-faq-band .container { max-width: calc(15.5rem + clamp(2.5rem, 5vw, 4.5rem) + 46rem); padding-left: calc(15.5rem + clamp(2.5rem, 5vw, 4.5rem)); box-sizing: border-box; }
}
.bx-faq-band .article-h2 {
  margin: 0 0 1.4rem;
  color: #fff;
  font: 900 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--font-display);
  letter-spacing: -0.025em;
  text-transform: none;
}
.bx-faq-band .faq-item {
  border: 1px solid var(--bx-line);
  border-radius: var(--radius, 14px);
  background: var(--bx-card);
  transition: border-color 0.25s var(--bx-ease);
}
.bx-faq-band .faq-item:hover,
.bx-faq-band .faq-item[open] { border-color: rgba(255, 100, 45, 0.4); }
.bx-faq-band .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
}
.bx-faq-band .faq-item summary::-webkit-details-marker { display: none; }
.bx-faq-band .faq-item summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 100, 45, 0.12);
  color: var(--bx-fire);
  font: 600 1.05rem/1 var(--font-body);
}
.bx-faq-band .faq-item[open] summary::after { content: '–'; }
@media (prefers-reduced-motion: reduce) {
  .bx-faq-band .faq-item { transition: none; }
}
