/* Figures for docs/blog/2026/atlas-small-models.html */
figure.sm-fig { margin: 2.5rem 0; text-align: left; }
figure.sm-fig figcaption { text-align: center; }
.sm-panel { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 1rem; }
.sm-scroll { overflow-x: auto; }
.sm-scroll svg { min-width: 560px; }
.sm-fig svg { width: 100%; height: auto; display: block; font-family: var(--font-body); }

/* Figure 1: leaked tool-call recovery */
.sm-top { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
.sm-top button { font: inherit; font-size: .8rem; color: var(--fg); background: transparent; border: 1px solid var(--border);
  border-radius: 999px; padding: .3rem .8rem; cursor: pointer; }
.sm-top button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sm-top .sm-replay { margin-left: auto; }
.sm-stage rect { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; transition: fill .3s, stroke .3s; }
.sm-stage text { fill: var(--muted); font-size: 12.5px; text-anchor: middle; transition: fill .3s; }
.sm-stage .sm-sub { font-size: 11px; font-family: var(--font-mono); }
.sm-stage.on rect { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: var(--accent); stroke-width: 1.8; }
.sm-stage.on text { fill: var(--fg); }
.sm-stage.done rect { stroke: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.sm-stage.skip { opacity: .35; }
.sm-wire { fill: none; stroke: var(--muted); stroke-width: 1.3; }
.sm-head { fill: var(--muted); }
.sm-panes { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
@media (max-width: 640px) { .sm-panes { grid-template-columns: 1fr; } }
.sm-pane { border: 1px solid var(--border-soft); border-radius: 10px; padding: .6rem .75rem; min-height: 8.5rem; background: var(--bg); }
.sm-pane h4 { margin: 0 0 .4rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.sm-raw { font-family: var(--font-mono); font-size: .8rem; line-height: 1.55; word-break: break-word; }
.sm-tok { border-radius: 3px; padding: 0 1px; }
.sm-tok.held { color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, transparent); outline: 1px dashed color-mix(in srgb, var(--accent-2) 60%, transparent); }
.sm-tok.live { color: var(--fg); }
.sm-tok.result { color: var(--accent-3); }
.sm-note { font-size: .78rem; color: var(--muted); margin-top: .5rem; min-height: 1.2rem; }
.sm-screen { font-size: .9rem; line-height: 1.5; }
.sm-toolrow { display: inline-flex; gap: .4rem; align-items: center; font-size: .78rem; font-family: var(--font-mono); color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: .15rem .6rem; margin-bottom: .45rem; }
.sm-toolrow i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent-3); }
.sm-empty { color: var(--muted); font-style: italic; font-size: .82rem; }
.sm-cursor { display: inline-block; width: .45em; height: 1em; vertical-align: text-bottom; background: var(--accent); margin-left: 1px; animation: sm-blink 1s steps(1) infinite; }
@keyframes sm-blink { 50% { opacity: 0; } }

/* Figure 2: healthy metrics, empty answers */
.sm-tile rect { fill: var(--bg); stroke: var(--border); stroke-width: 1.2; }
.sm-tile .sm-k { fill: var(--muted); font-size: 11.5px; }
.sm-tile .sm-v { fill: var(--fg); font-size: 20px; font-family: var(--font-display); }
.sm-ok { fill: var(--accent-3); font-size: 12px; font-weight: 600; }
.sm-track { fill: none; stroke: var(--border); stroke-dasharray: 4 4; stroke-width: 1.2; }
.sm-zero { fill: var(--accent-2); font-family: var(--font-mono); font-size: 13px; text-anchor: middle; opacity: 0; }
.sm-zero.in { opacity: 1; transition: opacity .35s; }
.sm-turn { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; text-anchor: middle; }
.sm-axis { fill: var(--muted); font-size: 11.5px; }
.sm-title { fill: var(--fg); font-size: 13.5px; font-weight: 600; }
.sm-base { stroke: var(--muted); stroke-width: 1.2; }
.sm-tally { fill: var(--accent-2); font-size: 13px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .sm-cursor { animation: none; } .sm-zero.in, .sm-stage rect, .sm-stage text { transition: none; } }
