.recipe-figure {
  margin: 1.25rem 0 1.75rem;
  padding: clamp(.8rem, 3vw, 1.35rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.recipe-figure figcaption {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 650;
}
.figure-note {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .85rem;
}

/* Rollout path: trainer -> environment -> harness -> proxy -> vLLM */
.stack-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.stack-flow section {
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: var(--bg-soft);
}
.stack-flow h3 { margin: 0 0 .35rem; font-size: 1rem; }
.stack-flow p { margin: 0; font-size: .92rem; }
.stack-flow .role { display: block; color: var(--muted); font-size: .8rem; margin-bottom: .2rem; }
.stack-output {
  margin-top: .75rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-left: .25rem solid var(--accent);
  border-radius: .55rem;
  background: var(--bg-soft);
}

/* Per-harness pass@1 bars */
.harness-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.1rem;
  margin: 0 0 .75rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .85rem;
}
.harness-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.harness-legend i { width: .8rem; height: .8rem; border-radius: .2rem; display: inline-block; }
.harness-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 3fr;
  gap: .3rem 1rem;
  align-items: center;
  padding: .6rem 0;
  border-top: 1px solid var(--border);
}
.harness-row > strong { font-weight: 600; }
.harness-bars { display: grid; gap: .25rem; }
.harness-bar {
  display: grid;
  grid-template-columns: 1fr 3.2rem;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.harness-bar span {
  display: block;
  height: .7rem;
  border-radius: .25rem;
  width: var(--v);
}
.harness-bar output { text-align: right; color: var(--muted); }
.series-base { background: var(--border-strong); }
.series-single { background: var(--muted); }
.series-multi { background: var(--accent); }
.harness-bar.best output { color: var(--text); font-weight: 650; }

@media (max-width: 34rem) {
  .stack-flow, .harness-row { grid-template-columns: 1fr; }
}

/* Recipe header and stat row */
.guide-eyebrow {
  margin: 0 0 2px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.recipe-head .avatar-lg { flex: none; object-fit: cover; }
.gh-mark { width: 15px; height: 15px; fill: currentColor; }
.guide-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 8px;
}
.guide-stats > div {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.guide-stats dt { color: var(--muted); font-size: 12.5px; }
.guide-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.guide-stats dd b { color: var(--text); font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 48rem) {
  .guide-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
  .recipe-head { flex-direction: column; gap: 12px; }
}
