/* Bonfire GTM blog. Tokens copied from the live bonfiregtm.com landing; header/footer come from the main site's chrome.css;
   blog components adapted from the approved demo blog template. */
@font-face { font-family: "Geist"; src: url("/blog/assets/fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/blog/assets/fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --x-ink: #111111; --x-grey: #5F5F5F; --x-line: #E7E7E7; --x-line-2: #D4D4D4; --x-panel: #FAFAFA;
  --x-ember: #FF5A1F; --x-ember-dk: #C2410C; --x-ember-hover: #E8480F; --x-tint: #FFF1EA; --x-tint-line: #F6C9B3;
  --x-green: #22A06B; --x-red: #E5484D;
  --x-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --x-mono: "Geist Mono", ui-monospace, monospace;
  --x-max: 992px; --x-wide: 1120px; --x-gut: clamp(16px, 3.2vw, 32px);
  --x-hh: 54px; --x-read: 720px;
  --x-fs-ui: 12px; --x-btn-h: 36px; --x-btn-h-lg: 40px;
  color-scheme: light;
}
html { background: #fff; scroll-padding-top: calc(var(--x-hh) + 24px); }
body.x-body {
  margin: 0; background: #fff; color: var(--x-ink);
  font: 500 16px/1.6 var(--x-sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.x-body :focus-visible { outline: 2px solid var(--x-ember-dk); outline-offset: 3px; border-radius: 4px; }
.x-wrap { max-width: var(--x-max); margin: 0 auto; padding-inline: var(--x-gut); }
.x-body h1:not(:where(.x-ann *, .x-head *, .x-ft *)), .x-body h2:not(:where(.x-ann *, .x-head *, .x-ft *)), .x-body h3:not(:where(.x-ann *, .x-head *, .x-ft *)) { font-family: var(--x-sans); font-weight: 600; color: var(--x-ink); margin: 0; letter-spacing: -0.035em; }
.x-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.x-body a:not(:where(.x-ann *, .x-head *, .x-ft *)) { color: inherit; }
img:not(:where(.x-ann *, .x-head *, .x-ft *)) { max-width: 100%; height: auto; }

/* Buttons (landing) */
.x-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--x-btn-h); padding: 0 16px; border-radius: 999px; text-decoration: none; cursor: pointer;
  font: 500 var(--x-fs-ui)/1 var(--x-sans); letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s;
}
.x-body .x-btn--dark { background: var(--x-ink); color: #fff; }
.x-body .x-btn--dark:hover { background: #2a2a2a; }
.x-body .x-btn--light { background: #fff; color: var(--x-ink); border-color: #D9D9D9; }
.x-body .x-btn--light:hover { border-color: #9a9a9a; }
.x-body .x-btn--ember { background: var(--x-ember); color: var(--x-ink); }
.x-body .x-btn--ember:hover { background: var(--x-ember-hover); }
.x-btn--lg { min-height: var(--x-btn-h-lg); padding: 0 19px; font-size: 13px; }

/* Header + footer: the main-site chrome (static/chrome.css + templates/partials, copied verbatim by scripts/sync_chrome.py).
   Element-level rules above skip the chrome with :not(:where(...)), which adds no specificity, so content styling is unchanged. */

/* ===== Shared chips ===== */
.x-tag { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 11px; border: 1px solid var(--x-line-2); background: #fff; color: var(--x-ink); font: 500 12px/1 var(--x-sans); text-decoration: none; white-space: nowrap; }
.x-tag::before { content: ""; width: 6px; height: 6px; background: var(--x-ember); flex: none; }
a.x-tag:hover { border-color: var(--x-ink); }
.bf-type { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; background: var(--x-ink); color: #fff; font: 500 11px/1 var(--x-mono); letter-spacing: .02em; white-space: nowrap; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ===== Blog index ===== */
.x-bh { padding: 56px 0 8px; }
.x-body .x-bh h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1; }
.x-bh p { margin: 14px 0 0; max-width: 600px; color: var(--x-grey); font-size: 17px; }
.x-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; padding: 0; list-style: none; }
.x-filter button, .x-filter a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--x-line-2); background: #fff; color: var(--x-ink); font: 500 12.5px/1 var(--x-sans); border-radius: 999px; cursor: pointer; text-decoration: none; }
.x-filter button[aria-pressed="true"], .x-filter a[aria-current="page"] { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }
.x-filter button:hover { border-color: var(--x-ink); }
.x-feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--x-line); text-decoration: none; color: inherit; }
.x-feat img, .x-pcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--x-line); background: var(--x-panel); }
.x-body .x-feat h2 { margin-top: 14px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.06; text-wrap: balance; }
.x-feat p { margin: 12px 0 0; color: var(--x-grey); font-size: 16px; }
.x-feat:hover h2, .x-pcard:hover h3 { text-decoration: underline; text-decoration-color: var(--x-ember); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.x-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; font: 500 12px/1.4 var(--x-mono); color: var(--x-grey); }
.x-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; margin-top: 40px; }
.x-pcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.x-pcard .bf-chips { margin-top: 14px; }
.x-body .x-pcard h3 { margin-top: 12px; font-size: 19px; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.x-pcard p { margin: 8px 0 0; font-size: 14px; color: var(--x-grey); line-height: 1.5; }
.x-pcard[hidden] { display: none; }
.x-empty { margin-top: 40px; padding: 48px 24px; border: 1px dashed var(--x-line-2); text-align: center; color: var(--x-grey); }
.x-empty b { display: block; color: var(--x-ink); font-size: 18px; margin-bottom: 6px; }
@media (max-width: 900px) { .x-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .x-feat { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 560px) { .x-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ===== Comparison banner (11x-style) ===== */
.cb { position: relative; background: #111; color: #fff; overflow: hidden; isolation: isolate; }
.cb__bg { position: absolute; inset: 0; z-index: -2; }
.cb__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(17, 17, 17, .42); }
.cb__in { max-width: 1040px; margin: 0 auto; padding: 64px var(--x-gut) 0; text-align: center; box-sizing: border-box; }
.cb__logos { display: flex; justify-content: center; align-items: center; gap: 18px; }
.cb__logo { width: 96px; height: 96px; border-radius: 50%; background: #1A1A1A; border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.cb__logo img { width: 64px; height: 64px; image-rendering: pixelated; }
.cb__logo span { font: 600 30px/1 var(--x-sans); letter-spacing: -0.04em; color: #fff; }
.cb__logo span.is-word { font-size: 15px; letter-spacing: -0.02em; padding: 0 10px; text-align: center; line-height: 1.1; }
.cb__slash { width: 1px; height: 64px; background: rgba(255,255,255,.55); transform: rotate(20deg); }
.x-body .cb h1 { margin: 30px auto 0; max-width: 1100px; color: #fff; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.cb__sub { margin: 20px auto 0; max-width: 680px; font-size: 20px; line-height: 1.45; color: rgba(255,255,255,.8); }
.cb__sub b { color: #fff; font-weight: 600; }
.cb__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 14px; max-width: 860px; margin: 36px auto 0; text-align: left; }
.cb__form label { display: block; font: 500 15px/1.2 var(--x-sans); color: #fff; margin-bottom: 8px; }
.cb__form label i { font-style: normal; color: var(--x-ember); }
.cb__in input { box-sizing: border-box; width: 100%; height: 50px; padding: 0 20px; border-radius: 999px; background: rgba(255, 90, 31, .18); border: 1px solid rgba(246, 243, 238, .18); color: #fff; font: 500 16px/1 var(--x-sans); outline: none; }
.cb__in input::placeholder { color: rgba(255,255,255,.6); }
.cb__in input:focus { border-color: rgba(255,255,255,.6); }
.cb__email { position: relative; }
.cb__email input { padding-right: 168px; }
.cb__email .x-btn { position: absolute; right: 5px; bottom: 5px; min-height: 40px; background: #fff; color: var(--x-ink); font-size: 13px; }
.cb__email .x-btn:hover { background: #f1f1f1; }
.cb__ai { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cb__ai .x-btn { min-height: 44px; padding: 0 8px 0 20px; background: #fff; color: var(--x-ink); font-size: 14px; gap: 12px; }
.cb__ai .x-btn i { width: 30px; height: 30px; border-radius: 50%; background: var(--x-ember); display: inline-flex; align-items: center; justify-content: center; font-style: normal; color: var(--x-ink); font-size: 15px; }
.cb__ai small { font-size: 13px; color: rgba(255,255,255,.65); }
.cb__strip { display: flex; align-items: center; gap: 28px; margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); }
.cb__strip > span { flex: none; padding-left: max(var(--x-gut), calc((100vw - 1040px) / 2)); font: 500 13px/1.2 var(--x-sans); color: rgba(255,255,255,.7); white-space: nowrap; }
.cb__track { position: relative; flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cb__row { display: flex; width: max-content; animation: cb-marquee 40s linear infinite; }
.cb__row ul { display: flex; gap: 80px; margin: 0; padding: 0 40px; list-style: none; }
.cb__row li { font: 600 22px/28px var(--x-sans); letter-spacing: -0.03em; color: rgba(255,255,255,.7); white-space: nowrap; }
.cb__strip:hover .cb__row { animation-play-state: paused; }
@keyframes cb-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cb__row { animation: none; } }
@media (max-width: 760px) {
  .cb__in { padding-top: 44px; }
  .cb__logo { width: 72px; height: 72px; } .cb__logo img { width: 48px; height: 48px; } .cb__logo span { font-size: 24px; }
  .x-body .cb h1 { font-size: 40px; }
  .cb__sub { font-size: 17px; }
  .cb__form { grid-template-columns: 1fr 1fr; }
  .cb__email { grid-column: 1 / -1; }
  .cb__strip { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 40px; }
  .cb__strip > span { padding-left: var(--x-gut); }
  .cb__row li { font-size: 18px; }
}
@media (max-width: 420px) { .cb__email input { padding-right: 20px; } .cb__email .x-btn { position: static; width: 100%; margin-top: 8px; min-height: 46px; } }

/* ===== Post layout ===== */
.x-post { display: grid; grid-template-columns: 168px minmax(0, var(--x-read)); justify-content: center; column-gap: 40px; padding-top: 24px; max-width: var(--x-wide); margin: 0 auto; padding-inline: var(--x-gut); }
.x-post__top { grid-column: 2; grid-row: 1; }
.x-post__toc { grid-column: 1; grid-row: 2; }
.x-post__body { grid-column: 2; grid-row: 2; }
.x-post__band { grid-column: 1 / -1; grid-row: 3; justify-self: center; width: min(var(--x-wide), calc(100vw - 2 * var(--x-gut))); margin-top: 48px; }
.x-post__end { grid-column: 2; grid-row: 4; }
.x-post--notoc { grid-template-columns: minmax(0, var(--x-read)); }
.x-post--notoc > * { grid-column: 1 !important; }
@media (max-width: 959px) {
  .x-post { grid-template-columns: minmax(0, var(--x-read)); }
  .x-post > * { grid-column: 1 !important; grid-row: auto !important; }
}

.x-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--x-grey); }
.x-crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.x-crumbs li + li::before { content: "/"; color: var(--x-line-2); }
.x-crumbs a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.x-crumbs a:hover { color: var(--x-ink); text-decoration: underline; text-underline-offset: 3px; }
.x-crumbs [aria-current] { color: var(--x-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

.x-ph1 { padding: 16px 0 0; }
.x-body .x-ph1 h1 { margin-top: 18px; font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.x-dek { margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--x-grey); }
.x-by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--x-line); font-size: 14px; color: var(--x-grey); }
.x-by__who { display: inline-flex; align-items: center; gap: 10px; color: var(--x-ink); font-weight: 600; text-decoration: none; min-height: 40px; }
.x-by__who:hover span { text-decoration: underline; text-decoration-color: var(--x-ember); text-underline-offset: 3px; }
.x-av { width: 36px; height: 36px; border-radius: 50%; background: var(--x-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.x-av img { width: 24px; height: 24px; image-rendering: pixelated; }
.x-av--lg { width: 56px; height: 56px; } .x-av--lg img { width: 38px; height: 38px; }
.x-by__sep { width: 3px; height: 3px; border-radius: 50%; background: var(--x-line-2); }
.x-by time, .x-by__rt { font-family: var(--x-mono); font-size: 12.5px; }
.bf-poster { margin: 28px 0 0; }
.bf-poster img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--x-line); background: var(--x-panel); }

/* TOC */
.x-toc { position: sticky; top: calc(var(--x-hh) + 24px); margin-top: 44px; }
.x-toc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 40px; font: 600 13px/1.2 var(--x-sans); color: var(--x-ink); cursor: pointer; }
.x-toc summary::-webkit-details-marker { display: none; }
.x-toc summary::after { content: "+"; font-weight: 500; color: var(--x-grey); font-size: 18px; }
.x-toc details[open] summary::after { content: "\2212"; }
.x-toc ol { list-style: none; margin: 4px 0 0; padding: 0; border-left: 1px solid var(--x-line); }
.x-toc a { display: flex; align-items: center; min-height: 32px; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13px; line-height: 1.35; color: var(--x-grey); text-decoration: none; }
.x-toc a:hover { color: var(--x-ink); }
.x-toc a.is-active { color: var(--x-ink); font-weight: 600; border-left-color: var(--x-ember); }
@media (min-width: 960px) { .x-toc summary { pointer-events: none; } .x-toc summary::after { display: none; } }
@media (max-width: 959px) {
  .x-toc { position: static; margin-top: 28px; padding: 4px 16px; background: var(--x-panel); border: 1px solid var(--x-line); }
  .x-toc ol { margin-bottom: 12px; }
  .x-toc a { min-height: 44px; font-size: 15px; }
}

/* Prose */
.x-prose { font-size: 17px; line-height: 1.7; color: #1d1d1d; }
.x-prose > * { margin: 0; }
.x-prose > * + * { margin-top: 18px; }
.x-prose h2 { margin-top: 64px !important; font-size: clamp(26px, 3.2vw, 33px); line-height: 1.1; letter-spacing: -0.035em; scroll-margin-top: calc(var(--x-hh) + 24px); }
.x-prose h3 { margin-top: 36px !important; font-size: 21px; line-height: 1.25; letter-spacing: -0.025em; }
.x-prose h2 + *, .x-prose h3 + * { margin-top: 14px; }
.x-prose ul, .x-prose ol { padding-left: 22px; }
.x-prose li + li { margin-top: 6px; }
.x-prose li > ul, .x-prose li > ol { margin-top: 6px; }
.x-prose a { text-decoration-color: var(--x-ember); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.x-prose a:hover { color: var(--x-ember-dk); }
.x-prose strong { font-weight: 600; color: var(--x-ink); }
.x-prose code { font: 500 .88em var(--x-mono); background: var(--x-panel); border: 1px solid var(--x-line); padding: 1px 5px; }
.x-prose pre { background: var(--x-panel); border: 1px solid var(--x-line); padding: 16px 18px; overflow-x: auto; font: 500 13.5px/1.7 var(--x-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.x-prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.x-prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--x-line-2); color: var(--x-grey); }
.x-prose hr { border: 0; border-top: 1px solid var(--x-line); margin: 40px 0; }
.x-prose figure { margin-top: 28px; }
.x-prose figure img { display: block; width: 100%; height: auto; border: 1px solid var(--x-line); background: var(--x-panel); }
.x-prose figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--x-grey); }

/* Tables: horizontal scroll on mobile */
.x-cmp { margin-top: 24px !important; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--x-line); background: #fff; }
.x-cmp table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; margin: 0; font: 500 14px/1.45 var(--x-sans); }
.x-cmp th, .x-cmp td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--x-line); text-align: left; vertical-align: top; overflow-wrap: break-word; }
.x-cmp th + th, .x-cmp th + td, .x-cmp td + td { border-left: 1px solid var(--x-line); }
.x-cmp tbody tr:last-child > * { border-bottom: 0; }
.x-cmp thead th { font-weight: 600; color: var(--x-ink); background: var(--x-panel); }
.x-cmp tbody td:first-child { font-weight: 600; color: var(--x-ink); }
.x-cmp td { color: #3a3a3a; }
.x-cmp .x-us { background: var(--x-tint); color: var(--x-ink); }
.x-cmp thead .x-us { background: var(--x-ink); color: #fff; }
.x-cmp a { text-decoration-color: var(--x-ember); text-underline-offset: 3px; }
.x-mk { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--x-ink); vertical-align: top; }
.x-mk::before { content: ""; flex: none; width: 18px; height: 18px; background: center / 100% no-repeat; }
.x-mk--yes::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23FF5A1F'/%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='%23111111' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.x-mk--part::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8.1' fill='none' stroke='%23C2410C' stroke-width='1.6'/%3E%3Cpath d='M9 2.5a6.5 6.5 0 0 1 0 13z' fill='%23C2410C'/%3E%3C/svg%3E"); }
.x-mk--no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8.1' fill='none' stroke='%23767676' stroke-width='1.6'/%3E%3Cpath d='M6.2 6.2l5.6 5.6M11.8 6.2l-5.6 5.6' stroke='%23767676' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.x-mk--no { color: var(--x-grey); }
.x-mk__note { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--x-grey); }
.x-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px !important; font-size: 13px; color: var(--x-grey); }

/* Directive blocks */
.bf-tldr { margin-top: 32px !important; padding: 24px 26px; background: var(--x-panel); border: 1px solid var(--x-line); }
.bf-tldr__lab, .bf-note__lab { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--x-mono); color: var(--x-ink); }
.bf-tldr__lab::before { content: ""; width: 7px; height: 7px; background: var(--x-ember); }
.bf-tldr > div { margin-top: 12px; }
.bf-tldr p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--x-ink); }
.bf-tldr p + p { margin-top: 10px; }
.bf-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bf-pick { padding: 20px 22px; background: var(--x-panel); border: 1px solid var(--x-line); }
.bf-pick--us { background: var(--x-tint); border-color: var(--x-tint-line); }
.x-body .bf-pick h3 { margin: 0 !important; font-size: 17px; letter-spacing: -0.02em; }
.x-ticks { list-style: none; margin: 12px 0 0; padding: 0 !important; display: grid; gap: 8px; font-size: 15px; line-height: 1.5; }
.x-ticks li { position: relative; padding-left: 18px; margin: 0 !important; }
.x-ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--x-ember); }
.x-ticks--muted li::before { background: var(--x-ink); }
@media (max-width: 600px) { .bf-picks { grid-template-columns: 1fr; } }
.bf-top { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 8px; counter-reset: pick; }
.bf-top li { counter-increment: pick; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 14px 16px; background: var(--x-panel); border: 1px solid var(--x-line); font-size: 15.5px; margin: 0 !important; }
.bf-top li::before { content: counter(pick, decimal-leading-zero); font: 500 12px/1 var(--x-mono); color: var(--x-grey); }
.bf-top li:first-child { background: var(--x-tint); border-color: var(--x-tint-line); }
.bf-disclose { padding: 12px 16px; border-left: 3px solid var(--x-ember); background: var(--x-panel); font-size: 15px; line-height: 1.55; color: var(--x-grey); }
.bf-disclose p { margin: 0; }
.bf-disclose b { color: var(--x-ink); }
.bf-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--x-line); font-size: 14px; line-height: 1.55; color: var(--x-grey); }
.bf-note::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; background: var(--x-ember); }
.bf-note p { margin: 0; }
.bf-x-steps { list-style: none; margin: 24px 0 0 !important; padding: 0 0 0 0 !important; border-left: 1px solid var(--x-line-2); counter-reset: st; }
.bf-x-steps > li { position: relative; padding: 0 0 22px 26px; margin: 0 !important; font-size: 16px; }
.bf-x-steps > li::before { content: ""; position: absolute; left: -5px; top: .5em; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--x-ink); }
.bf-x-steps > li:last-child { padding-bottom: 0; }
.bf-x-steps > li:last-child::before { background: var(--x-ember); border-color: var(--x-ember); }

/* ===== Feature cards (Feature Cards spec: 0 radius, #D4D4D4 frames, hatched gutter) ===== */
.bf-cardwrap { margin: 48px 0 !important; }
.bf-leadin + .bf-cardwrap { margin-top: 14px !important; }
.bf-card { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 24px; align-items: center; padding: 32px; background: #fff; border: 1px solid var(--x-line-2); box-sizing: border-box; }
.bf-hatch { padding: 14px; background: repeating-linear-gradient(135deg, #E2E2E2 0 1px, transparent 1px 7px); }
.bf-sheet { position: relative; margin: 0 6px 6px 0; }
.bf-sheet::before { content: ""; position: absolute; inset: 6px -6px -6px 6px; border: 1px solid var(--x-line-2); background: #fff; z-index: 0; }
.bf-sheet .bf-card { position: relative; z-index: 1; }
.x-body .bf-card__title { margin: 0; font: 600 30px/1.1 var(--x-sans); letter-spacing: -0.03em; color: var(--x-ink); }
.bf-card__text { margin: 12px 0 0; font: 500 16px/1.5 var(--x-sans); color: #555; }
.x-body .bf-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.x-body .bf-card__chips li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border: 1px solid var(--x-line-2); font: 500 13px/1 var(--x-sans); color: var(--x-ink); background: #fff; margin: 0; }
.bf-card__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.bf-card__btns .x-btn { min-height: 40px; font-size: 13px; padding: 0 18px; }
.bf-card__btns .bf-link { font-size: 13px; font-weight: 600; color: var(--x-ink); text-decoration: underline; text-decoration-color: var(--x-ember); text-underline-offset: 3px; }
.bf-card .x-btn--ember { color: var(--x-ink); }
.bf-viz { position: relative; padding: 34px 14px 16px; border: 1px solid var(--x-line-2); background: var(--x-panel); font: 400 12.5px/1.35 var(--x-sans); color: var(--x-ink); }
.bf-ex { position: absolute; top: 8px; left: 8px; padding: 3px 6px; border: 1px solid var(--x-line-2); background: #fff; font: 500 10.5px/1 var(--x-mono); color: var(--x-grey); }
/* flows canvas */
.bf-flow { display: grid; gap: 0; }
.bf-node { position: relative; padding: 9px 10px 9px 12px; background: #fff; border: 1px solid var(--x-line-2); }
.bf-node b { display: flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--x-mono); color: var(--x-grey); letter-spacing: .03em; }
.bf-node b::before { content: ""; width: 6px; height: 6px; background: var(--x-ember); }
.bf-node span { display: block; margin-top: 5px; font-size: 13px; font-weight: 500; }
.bf-arrow { position: relative; height: 18px; margin-left: 22px; border-left: 1px solid var(--x-ink); }
.bf-arrow::after { content: ""; position: absolute; left: -3px; bottom: -1px; width: 5px; height: 5px; border-radius: 50%; background: var(--x-ember); }
/* agents crew */
.bf-crew { display: grid; gap: 6px; }
.bf-crew div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 0 11px; background: #fff; border: 1px solid var(--x-line-2); font-size: 13px; font-weight: 500; }
.bf-crew small { display: inline-flex; align-items: center; gap: 6px; font: 400 11.5px/1 var(--x-mono); color: var(--x-grey); white-space: nowrap; }
.bf-crew small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #BDBDBD; }
.bf-crew .is-work small::before { background: var(--x-green); }
.bf-crew .is-wait small::before { background: var(--x-red); }
/* plays rule */
.bf-rule { background: #fff; border: 1px solid var(--x-line-2); padding: 12px; }
.bf-rule p { margin: 0; font-size: 13px; line-height: 1.45; font-weight: 500; }
.bf-rule__chips { display: flex; gap: 5px; margin-bottom: 9px; }
.bf-rule__chips span { padding: 3px 7px; border: 1px solid var(--x-line-2); font: 500 10.5px/1 var(--x-mono); }
.bf-rule__chips span:first-child { border-color: var(--x-ember); color: var(--x-ember-dk); }
.bf-match { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 9px 11px; background: #fff; border: 1px solid var(--x-line-2); font-size: 12.5px; font-weight: 500; }
.bf-match small { padding: 4px 7px; background: var(--x-tint); border: 1px solid var(--x-tint-line); font: 500 10.5px/1 var(--x-mono); color: var(--x-ember-dk); white-space: nowrap; }
/* engine band */
.bf-engine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; min-height: 360px; padding: 48px 56px; background: var(--x-ink); color: #fff; box-sizing: border-box; }
.x-body .bf-engine .bf-card__title { color: #fff; font-size: 40px; line-height: 1.05; }
.bf-engine .bf-card__text { color: #CFCFCF; }
.bf-engine .bf-card__chips li { background: transparent; color: #fff; border-color: #3A3A3A; }
.bf-engine .bf-link { color: #fff !important; }
.bf-hub { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 8px; align-items: center; }
.bf-hub span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 6px; border: 1px solid #3A3A3A; font: 500 12px/1.2 var(--x-sans); color: #E6E6E6; text-align: center; }
.bf-hub span::before { content: ""; flex: none; width: 5px; height: 5px; margin-right: 6px; background: var(--x-ember); }
.bf-hub .bf-hub__fire { grid-column: 2; grid-row: 2; display: flex; justify-content: center; align-items: center; padding: 8px 0; }
.bf-hub__fire img { width: 96px; height: 96px; image-rendering: pixelated; }
@media (max-width: 720px) {
  .bf-card { grid-template-columns: 1fr; padding: 22px; }
  .x-body .bf-card__title { font-size: 24px; }
  .bf-viz { max-height: 300px; overflow: hidden; }
  .bf-hatch { padding: 10px; }
  .bf-engine { grid-template-columns: 1fr; padding: 32px 22px; }
  .x-body .bf-engine .bf-card__title { font-size: 28px; }
  .bf-hub { transform: scale(.9); transform-origin: top center; }
}
.bf-leadin { margin-top: 48px !important; }

/* Post end: FAQ, related, author, share, AI */
.x-sec { padding-top: 64px; }
.x-body .x-sec > h2 { font-size: clamp(26px, 3.2vw, 33px); line-height: 1.1; }
.x-faq { margin-top: 20px; border-top: 1px solid var(--x-line); }
.x-faq details { border-bottom: 1px solid var(--x-line); }
.x-faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 36px 1fr 19px; gap: 10px; align-items: baseline; min-height: 44px; padding: 18px 0; font-weight: 600; font-size: 16.5px; letter-spacing: -0.02em; color: var(--x-ink); }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: "+"; font-weight: 500; color: var(--x-grey); text-align: right; }
.x-faq details[open] summary::after { content: "\2212"; }
.x-faq__n { font: 300 13px/1 var(--x-mono); color: var(--x-grey); }
.x-faq__a { padding: 0 29px 20px 46px; color: #3a3a3a; font-size: 16px; line-height: 1.65; }
.x-faq__a p { margin: 0; } .x-faq__a p + p { margin-top: 10px; }
.x-faq__a a { text-decoration-color: var(--x-ember); text-underline-offset: 3px; }
@media (max-width: 640px) { .x-faq summary { grid-template-columns: 28px 1fr 16px; } .x-faq__a { padding: 0 0 18px 38px; } }

.x-related { max-width: var(--x-wide); margin: 0 auto; padding: 88px var(--x-gut) 0; box-sizing: border-box; }
.x-body .x-related h2 { font-size: clamp(24px, 3vw, 32px); }
.x-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.x-rel a { display: flex; flex-direction: column; gap: 10px; min-height: 170px; padding: 22px; background: #fff; border: 1px solid var(--x-line); text-decoration: none; transition: border-color .2s; }
.x-rel a:hover { border-color: var(--x-ink); }
.x-body .x-rel h3 { font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; }
.x-rel p { margin: 0; font-size: 14px; color: var(--x-grey); line-height: 1.5; }
.x-rel__go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--x-ink); }
.x-rel__go::after { content: " \2192"; color: var(--x-ember-dk); }
.x-rel__hub { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: 14px; font-weight: 600; text-decoration-color: var(--x-ember); text-underline-offset: 3px; }
@media (max-width: 820px) { .x-rel { grid-template-columns: 1fr; } .x-rel a { min-height: 0; } }

.x-end { max-width: var(--x-read); margin: 72px auto 0; padding-inline: var(--x-gut); }
.x-author { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px; background: var(--x-panel); border: 1px solid var(--x-line); }
.x-author__by { font-size: 13px; color: var(--x-grey); }
.x-body .x-author h2 { font-size: 20px; letter-spacing: -0.02em; margin-top: 2px; }
.x-author__bio { margin: 8px 0 0; font-size: 15px; color: var(--x-grey); }
.x-author__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 14px; font-weight: 600; }
.x-author__links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration-color: var(--x-ember); text-underline-offset: 3px; }
.x-share, .bf-ai__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.x-share { margin-top: 20px; }
.x-share__lab { font-size: 14px; font-weight: 600; margin-right: 6px; }
.x-share .x-btn, .bf-ai__row .x-btn { min-height: 40px; font-size: 13px; }
.bf-ai { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--x-line); }
.bf-ai__lab { display: block; font-size: 14px; font-weight: 600; }
.bf-ai__lab small { display: block; font-weight: 500; font-size: 13px; color: var(--x-grey); }
.bf-ai__row { margin-top: 10px; }
.bf-made { margin-top: 22px; font-size: 13px; color: var(--x-grey); }
.bf-sources { margin-top: 18px; font-size: 13px; color: var(--x-grey); }
.bf-sources summary { cursor: pointer; font-weight: 600; color: var(--x-ink); min-height: 32px; display: flex; align-items: center; }
.bf-sources ul { margin: 6px 0 0; padding-left: 18px; }
.bf-sources a { overflow-wrap: anywhere; }

/* Category hub + author page */
.x-hubhead { padding: 40px 0 0; }
.x-body .x-hubhead h1 { margin-top: 10px; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; }
.x-hubhead p { margin: 14px 0 0; max-width: 620px; font-size: 17px; color: var(--x-grey); }
.x-authhead { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: center; padding: 40px 0 0; }
.x-authhead .x-av { width: 72px; height: 72px; } .x-authhead .x-av img { width: 48px; height: 48px; }

/* Preview banner (CMS) */
.x-prevbar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 8px 16px; background: #FFF8E6; border-bottom: 1px solid #F1DFAE; font: 500 12.5px/1.4 var(--x-sans); color: #5c4400; text-align: center; }
.x-prevbar a { color: inherit; font-weight: 600; }

@media (pointer: coarse), (max-width: 640px) {
  .x-btn, .x-faq summary, .x-crumbs a, .x-author__links a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .x-body *, .x-body *::before, .x-body *::after { transition: none !important; }
}
@media (max-width: 600px) { .x-crumbs li:last-child { display: none; } .x-by__sep:nth-of-type(n) { display: none; } .x-by { gap: 4px 14px; } }
.x-body .cb--long h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.04; }
@media (max-width: 760px) { .x-body .cb--long h1 { font-size: 34px; } }
