/*
  Buyer Team Engineering Blog — Shared Stylesheet
  ─────────────────────────────────────────────────
  Usage: <link rel="stylesheet" href="buyer-team-blog.css">

  Fonts (add to each HTML <head>):
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=Sora:wght@300;400;500;600&display=swap" rel="stylesheet">

  ── COMPONENT REFERENCE ──────────────────────────────────────────────

  EYEBROW
    <div class="eyebrow">
      <span class="tag">Engineering</span>
      <span class="dot">·</span>
      <span>Buyer Team</span>
    </div>

  TITLE + DECK
    <h1>Title with <em>italic accent</em></h1>
    <p class="deck">Subtitle / lede paragraph.</p>

  BLOCKQUOTE (pull quote — teal left border, serif italic)
    <blockquote><p>"Quote text."</p></blockquote>

  CALLOUT (amber box — for cost notes, warnings, tips)
    <div class="callout">
      <div class="callout-label">Cost note</div>
      <p>Body text. <strong>Highlighted phrase.</strong></p>
    </div>

  LAYER STACK (up to 3 tinted rows with chips)
    <div class="layer-stack">
      <div class="layer l1"> <!-- teal tint -->
        <div class="layer-meta">
          <span class="layer-num">Layer 1</span>
          <span class="layer-name">Platform</span>
          <span class="layer-src">AgentCore → CloudWatch</span>
        </div>
        <div class="chips">
          <span class="chip">metric name</span>
        </div>
      </div>
      <div class="layer l2">…</div> <!-- blue tint -->
      <div class="layer l3">…</div> <!-- amber tint -->
    </div>

  EVAL GRID (3-column evaluator cards)
    <div class="eval-grid">
      <div class="eval-card">
        <div class="ec-label">Type A</div>
        <div class="ec-name">LLM-as-Judge</div>
        <span class="ec-badge badge-llm">qualitative</span>
        <div class="ec-desc">Description text.</div>
      </div>
      <!-- badge variants: badge-llm (coral), badge-ground (teal), badge-code (blue) -->
    </div>

  TABLE (wrapped for overflow)
    <div class="table-wrap">
      <table>
        <thead><tr><th>Col</th></tr></thead>
        <tbody>
          <tr><td>cell</td></tr>
          <!-- accent rows: class="row-quality" (coral), class="row-gov" (amber) -->
        </tbody>
      </table>
    </div>

  ACTION PILLS (inline in table cells)
    <span class="pill pill-rollback">AppConfig rollback</span>
    <!-- variants: pill-rollback (coral), pill-disable (teal),
                   pill-halt (amber), pill-sns (blue) -->

  PIPELINE (vertical timeline with label, dot, body)
    <div class="pipeline">
      <div class="pipe-stage">
        <div class="pipe-aside">PR</div>
        <div class="pipe-spine"><div class="pipe-dot"></div><div class="pipe-bar"></div></div>
        <div class="pipe-body">
          <div class="pipe-title">Stage title</div>
          <div class="pipe-desc">Description.</div>
          <div class="pipe-pass">✓ pass → outcome</div>
          <div class="pipe-fail">✗ fail → outcome</div>
        </div>
      </div>
      <!-- Last stage: omit pipe-bar inside pipe-spine -->
    </div>

  TRADEOFF GRID (2-column cards with icon)
    <div class="tradeoff-grid">
      <div class="tcard">
        <div class="tcard-head">
          <div class="tcard-icon icon-amber">⊕</div>
          <div class="tcard-title">Card title</div>
        </div>
        <p>Card body text.</p>
      </div>
      <!-- icon variants: icon-amber, icon-teal, icon-coral, icon-blue -->
    </div>

  SAMPLING TIERS (3-row tinted blocks)
    <div class="sampling-tiers">
      <div class="tier tier-always">
        <div class="tier-badge">100%</div>
        <div class="tier-text"><strong>Always:</strong> description.</div>
      </div>
      <div class="tier tier-threshold">…</div>
      <div class="tier tier-sampled">…</div>
    </div>

  SCORE BAR TABLE (threshold bars)
    <div class="score-bars">
      <div class="sbar-row">
        <div class="sbar-label">Evaluator name</div>
        <div class="sbar-track"><div class="sbar-fill" style="width:72%"></div></div>
        <div class="sbar-val">0.72</div>
        <div class="sbar-action">action text</div>
      </div>
    </div>

  CODE BLOCK
    <pre><code>your code here</code></pre>

  FOOTER
    <div class="post-footer">
      <p><strong>Author Name</strong> — Role, Team · Month Year</p>
      <p>Based on PRD-XXX · version</p>
    </div>
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  --bg:              #F8F6F1;
  --surface:         #FFFFFF;
  --ink:             #1A1814;
  --ink-muted:       #6B6760;
  --ink-faint:       #A8A49E;
  --rule:            #DDD9D2;

  --amber:           #B07D2A;
  --amber-light:     #FDF3DC;
  --amber-mid:       #EF9F27;

  --teal:            #0F6E56;
  --teal-light:      #E1F5EE;

  --coral:           #993C1D;
  --coral-light:     #FAECE7;

  --blue:            #185FA5;
  --blue-light:      #E6F1FB;

  --green:           #3B6D11;
  --green-light:     #EAF3DE;

  --serif:           'DM Serif Display', Georgia, serif;
  --sans:            'Sora', system-ui, sans-serif;
  --mono:            'DM Mono', 'Courier New', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #181614;
    --surface:     #211F1C;
    --ink:         #F0EDE6;
    --ink-muted:   #A8A49E;
    --ink-faint:   #6B6760;
    --rule:        #2E2C28;

    --amber:       #EF9F27;
    --amber-light: #2A2010;

    --teal:        #5DCAA5;
    --teal-light:  #04342C;

    --coral:       #F0997B;
    --coral-light: #4A1B0C;

    --blue:        #85B7EB;
    --blue-light:  #042C53;

    --green:       #97C459;
    --green-light: #173404;
  }
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE SHELL ── */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 8rem;
}

/* ── EYEBROW ── */
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tag {
  background: var(--amber-light);
  color: var(--amber);
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.dot { opacity: 0.4; }

/* ── HEADINGS ── */
h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
h1 em { font-style: italic; color: var(--amber); }

h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 3rem 0 1rem;
}

h3 {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 2.25rem 0 0.8rem;
}

/* ── DECK / LEDE ── */
.deck {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.65;
  border-left: 3px solid var(--amber);
  padding-left: 1.25rem;
  margin-bottom: 3rem;
}

/* ── RULES ── */
hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.75rem 0;
}

/* ── BODY TEXT ── */
p {
  margin-bottom: 1.3rem;
  font-weight: 300;
  color: var(--ink);
}
p:last-child { margin-bottom: 0; }
p strong { font-weight: 600; }

/* ── INLINE CODE ── */
code {
  font-family: var(--mono);
  font-size: 0.8em;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--coral);
}

/* ── BLOCKQUOTE ── */
blockquote {
  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
}
blockquote p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}

/* ── CALLOUT ── */
.callout {
  background: var(--amber-light);
  border: 1px solid rgba(176,125,42,0.25);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.callout p { font-size: 14px; font-weight: 400; margin: 0; }
.callout strong { color: var(--amber); }

/* ── LAYER STACK ── */
.layer-stack {
  margin: 1.75rem 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.layer {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.layer:last-child { border-bottom: none; }
.l1 { background: var(--teal-light); }
.l2 { background: var(--blue-light); }
.l3 { background: var(--amber-light); }
.layer-meta { display: flex; flex-direction: column; gap: 3px; }
.layer-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.layer-name { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.layer-src { font-family: var(--mono); font-size: 10px; color: var(--ink-muted); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--ink);
}

/* ── TABLES ── */
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: 8px;
  border: 1px solid var(--rule);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead tr { background: var(--surface); border-bottom: 1px solid var(--rule); }
thead th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--rule); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg); }
td {
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 300;
  vertical-align: top;
  line-height: 1.5;
}
td:first-child { font-weight: 500; }
.row-quality { background: var(--coral-light) !important; }
.row-gov     { background: var(--amber-light) !important; }

/* ── ACTION PILLS ── */
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 3px;
  white-space: nowrap;
}
.pill-rollback { background: var(--coral-light);  color: var(--coral); }
.pill-disable  { background: var(--teal-light);   color: var(--teal); }
.pill-halt     { background: var(--amber-light);  color: var(--amber); }
.pill-sns      { background: var(--blue-light);   color: var(--blue); }

/* ── EVAL GRID ── */
.eval-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  margin: 1.75rem 0;
}
.eval-card { background: var(--surface); padding: 1.25rem; }
.ec-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 5px;
}
.ec-name { font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.ec-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.badge-llm    { background: var(--coral-light); color: var(--coral); }
.badge-ground { background: var(--teal-light);  color: var(--teal); }
.badge-code   { background: var(--blue-light);  color: var(--blue); }
.ec-desc { font-size: 12px; font-weight: 300; color: var(--ink-muted); line-height: 1.55; }

/* ── PIPELINE ── */
.pipeline { margin: 1.75rem 0; display: flex; flex-direction: column; }
.pipe-stage { display: flex; gap: 0; align-items: stretch; }
.pipe-aside {
  width: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px 14px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  text-align: right;
  line-height: 1.3;
}
.pipe-spine {
  width: 2px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
}
.pipe-dot  { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.pipe-bar  { flex: 1; width: 2px; background: var(--rule); min-height: 16px; }
.pipe-body { flex: 1; padding: 12px 0 20px 18px; }
.pipe-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pipe-desc  { font-size: 13px; font-weight: 300; color: var(--ink-muted); line-height: 1.5; margin-bottom: 6px; }
.pipe-pass  { font-family: var(--mono); font-size: 11px; color: var(--teal); }
.pipe-fail  { font-family: var(--mono); font-size: 11px; color: var(--coral); }

/* ── CODE BLOCK ── */
pre {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.75rem 0;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ── TRADEOFF GRID ── */
.tradeoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1.75rem 0;
}
.tcard {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.25rem;
}
.tcard-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tcard-icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.icon-amber { background: var(--amber-light); color: var(--amber); }
.icon-teal  { background: var(--teal-light);  color: var(--teal); }
.icon-coral { background: var(--coral-light); color: var(--coral); }
.icon-blue  { background: var(--blue-light);  color: var(--blue); }
.tcard-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.tcard p { font-size: 13px; font-weight: 300; color: var(--ink-muted); line-height: 1.6; margin: 0; }

/* ── SAMPLING TIERS ── */
.sampling-tiers {
  margin: 1.75rem 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.tier {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.tier:last-child { border-bottom: none; }
.tier-always    { background: var(--teal-light); }
.tier-threshold { background: var(--amber-light); }
.tier-sampled   { background: var(--surface); }
.tier-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  min-width: 44px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tier-always    .tier-badge { background: var(--teal);  color: var(--teal-light); }
.tier-threshold .tier-badge { background: var(--amber); color: var(--amber-light); }
.tier-sampled   .tier-badge { background: var(--rule);  color: var(--ink-muted); }
.tier-text { font-size: 14px; font-weight: 300; color: var(--ink); line-height: 1.5; }
.tier-text strong { font-weight: 600; }

/* ── SCORE BARS ── */
.score-bars { margin: 1.75rem 0; display: flex; flex-direction: column; gap: 0; }
.sbar-row {
  display: grid;
  grid-template-columns: 220px 1fr 52px 180px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.sbar-row:last-child { border-bottom: none; }
.sbar-label { font-size: 13px; font-weight: 400; color: var(--ink); }
.sbar-track {
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.sbar-fill { height: 100%; border-radius: 3px; background: var(--amber-mid); }
.sbar-fill.fill-halt   { background: var(--coral); }
.sbar-fill.fill-full   { background: var(--coral); }
.sbar-val { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); text-align: right; }
.sbar-action { font-size: 12px; color: var(--ink-muted); font-style: italic; text-align: right; }

/* ── FOOTER ── */
.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.post-footer p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.post-footer strong { color: var(--ink); font-weight: 500; }

/* ── RELATED POSTS ── */
.related-posts {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.related-posts-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.related-post-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  transition: border-color .2s, background .2s;
}
.related-post-card:hover {
  border-color: #0891B2;
  background: rgba(8,145,178,.04);
}
.rpc-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0891B2;
  margin-bottom: .4rem;
}
.rpc-title {
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .page { padding: 2.5rem 1.25rem 5rem; }
  .layer { grid-template-columns: 1fr; }
  .eval-grid { grid-template-columns: 1fr; }
  .tradeoff-grid { grid-template-columns: 1fr; }
  .pipe-aside { display: none; }
  .sbar-row { grid-template-columns: 1fr 1fr; }
  .sbar-val, .sbar-action { display: none; }
  h1 { font-size: 1.9rem; }
  .related-posts-grid { grid-template-columns: 1fr; }
}

/* ── BLOG NAV ── */
.blog-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--rule);
  padding: .75rem 2rem; display: flex; align-items: center; justify-content: space-between;
}
.blog-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.blog-nav-logo img { height: 50px; width: auto; }
.blog-nav-links {
  display: flex; gap: 1.5rem; list-style: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.blog-nav-links a { color: var(--ink-muted); text-decoration: none; transition: color .2s; }
.blog-nav-links a:hover { color: var(--ink); }
.blog-nav-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.blog-nav-cta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); text-decoration: none; transition: color .2s; white-space: nowrap;
}
.blog-nav-cta:hover { color: var(--ink); }

/* hamburger — hidden on desktop */
.blog-nav-hamburger { display: none; }
.hb-close { display: none; }

@media (max-width: 560px) {
  .blog-nav { flex-wrap: wrap; padding: .75rem 1.25rem; }
  /* logo left (order 1), nav-right right (order 2) — always same row */
  .blog-nav-logo { order: 1; }
  .blog-nav-right { order: 2; }
  /* links below on their own row */
  .blog-nav-links { order: 3; display: none; width: 100%; flex-direction: column; gap: 0;
    border-top: 1px solid var(--rule); margin-top: .5rem; padding: .5rem 0; }
  .blog-nav-hamburger {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: none; border: 1px solid var(--rule); border-radius: 6px;
    cursor: pointer; color: var(--ink); font-size: 1.4rem; line-height: 1;
  }
  .blog-nav.nav-open .blog-nav-links { display: flex; }
  .blog-nav-links li { padding: .55rem 0; border-bottom: 1px solid var(--rule); }
  .blog-nav-links li:last-child { border-bottom: none; }
  .blog-nav-links a { font-size: 12px; display: block; }
  /* ☰ → ✕ when open */
  .blog-nav.nav-open .hb-open { display: none; }
  .blog-nav.nav-open .hb-close { display: inline; }
}
.breadcrumb {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 2.5rem;
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb .sep { opacity: .35; }
.breadcrumb .current { color: var(--amber); }

/* ── FIGURE (diagram container) ── */
.bt-figure {
  margin: 2.6rem 0;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: radial-gradient(120% 120% at 0% 0%, var(--surface) 0%, var(--bg) 55%, var(--bg) 100%);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -18px rgba(15,23,42,.18);
}
.bt-figure svg { display: block; width: 100%; height: auto; }
.bt-figcaption {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: .85rem 1.2rem;
  border-top: 1px solid var(--rule);
  background: var(--surface);
}
.bt-figcaption b { color: var(--blue); font-weight: 500; }

/* ── STAT BAND (3-col stats) ── */
.bt-stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  margin: 2.4rem 0;
}
.bt-stat { background: var(--surface); padding: 1.4rem 1.2rem; }
.bt-stat .n {
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ink);
}
.bt-stat .n.red   { color: var(--coral); }
.bt-stat .n.cyan  { color: var(--blue); }
.bt-stat .n.green { color: var(--green); }
.bt-stat .l {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: .5rem;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .bt-stat-band { grid-template-columns: 1fr; }
}

/* ── BT CALLOUT ── */
.bt-callout {
  border-left: 3px solid var(--amber);
  background: var(--amber-light);
  padding: 1.1rem 1.3rem;
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
  font-size: .97rem;
  color: var(--ink-muted);
}
.bt-callout strong { color: var(--ink); }

/* ── PRINT ── */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .page { max-width: 100%; padding: 0; }
  pre, .layer-stack, .eval-grid, .sampling-tiers { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
