/* Figure language of the lesson tools (mockups/d; js/figure.js, js/demos.js mountDemo). Loaded after session.css; uses the site.css tokens.
   The "Fig. N · title" label goes above every tool wherever it mounts; the D frame around the tool body, figures sitting on that
   sheet and the meter tick marks are scoped to body.session. Canvas colours are read from the same tokens at draw time. */

/* ---------- Label: mono, uppercase, --muted with "Fig. N" in --text (mockups/d .label) ---------- */
.step .prose .tool-fig, .tool-fig { margin: 0 0 var(--s-2); font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tool-fig b { font-weight: 500; color: var(--text); }

/* ---------- Frame: the tool body on the D sheet (surface, hairline edge, 16 px radius, machined top edge) ---------- */
body.session .tool-body > .demo-box { background: var(--surface); border-color: var(--line); border-radius: 16px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
/* The canvas figures sit on the sheet itself, as in the mockups: no dark well; their own axis line is the edge. */
body.session .tool-body .dscope, body.session .tool-body .dtrace { background: transparent; border-radius: 0; }

/* ---------- Meters: a tick mark hangs from the track at every value, the value under it (D axis) ---------- */
body.session .mtr-scale { height: 1.5rem; margin-top: -.4rem; font-size: 12px; color: var(--muted); }
body.session .mtr-scale span { top: 8px; }
body.session .mtr-scale span::before { content: ""; position: absolute; top: -8px; left: 50%; width: 1px; height: 5px; background: var(--control-border); }
body.session .mtr-scale span:first-child::before { left: 0; }
body.session .mtr-scale span:last-child::before { left: auto; right: 0; }
