/* How Mehtagent works: the four staged figures (anatomy.js draws them; build_docs.py links this file from that page
   only). Wireframe scratchpad/design/wireframes/anatomy-figures-2026-11-08.md (read 2 PASS). The frame is Arbiter's
   figures.tsx Frame: title and badge on one row, the drawing, the shared player (autoplay-steps.css), a caption. Library
   records dribbble-25438239 (one stage at a time on a rail), dribbble-27536559 (edge labels in a quiet second register,
   dashed for what leaves), dribbble-27266105 (each stage changes the drawing). Not taken: their glows and arcs.
   Page tokens only (--panel, --text, --soft, --border, --alt, --accent), so the dark theme follows the page. */
.anf-pin { margin: 16px 0 24px; }
.anf { margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.anf-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.anf-title { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text); }
.anf-badge { font-size: 12px; line-height: 16px; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--soft); white-space: nowrap; }
.anf-draw { min-height: 48px; }
.anf-draw svg { display: block; overflow: visible; }
article ol.anf-fallback { margin: 0; padding-left: 24px; font-size: 13px; line-height: 20px; }
.anf-ctl { margin-top: 8px; }
.anf-cap { margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--soft); }

/* The drawing. Box labels 13 px text; edge, shelf and field labels 12 px soft. Lit at full strength, the rest at .35. */
.anf svg text { font-family: var(--sans); }
.anf .t-box { font-size: 13px; fill: var(--text); }
.anf .t-edge { font-size: 12px; fill: var(--soft); }
.anf .t-val { font-size: 13px; fill: var(--text); }
.anf .box { fill: var(--panel); stroke: var(--soft); stroke-width: 1; }
.anf .box.out { stroke-dasharray: 5 4; }
.anf .box.ent { fill: var(--alt); stroke: none; }
.anf .region { fill: none; stroke: var(--border); stroke-width: 1; }
.anf .region.out { stroke-dasharray: 5 4; }
.anf .edge { fill: none; stroke: var(--soft); stroke-width: 1.25; }
.anf .edge.dash { stroke-dasharray: 5 4; }
.anf .head { fill: var(--soft); stroke: none; }
.anf .lit .edge { stroke: var(--accent); stroke-width: 1.75; }
.anf .lit .head { fill: var(--accent); }
/* His 14 Nov rule: red is his private data on its way to the AI company; green is metadata Mehtagent made, on its
   way to SimPPL. The colour holds whether the part is lit or dim, and the caption names each colour with a swatch. */
.anf .k-private .edge, .anf .k-private.lit .edge { stroke: var(--red); }
.anf .k-private .head, .anf .k-private.lit .head { fill: var(--red); }
.anf .k-meta .edge, .anf .k-meta.lit .edge { stroke: var(--green); }
.anf .k-meta .head, .anf .k-meta.lit .head { fill: var(--green); }
.anf .k-private .box { stroke: var(--red); stroke-width: 1.5; }
.anf .k-meta .box { stroke: var(--green); stroke-width: 1.5; }
.sw { display: inline-block; width: 14px; height: 3px; margin: 0 6px 4px 0; border-radius: 2px; vertical-align: middle; }
.sw-private { background: var(--red); }
.sw-meta { background: var(--green); }
.anf .part { transition: opacity .3s ease; }
.anf .part.dim { opacity: .55; }
.anf .part.off { opacity: 0; }
.anf .lbl { transition: opacity .3s ease; }
.anf .lbl.off { opacity: 0; }

@media (max-width: 600px) {
  .anf { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .anf .part, .anf .lbl { transition: none; }
}
