/* figure layouts specific to the diffusion explainer; tokens and shared figure parts come from /education/sim.css */

.canvas-wrap canvas { display: block; width: 100%; height: auto; border: 1.5px solid var(--ink); cursor: crosshair; }

.pool-controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; margin-bottom: 14px; }
.pool-ctl { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; align-items: center; gap: 8px; }
.pool-ctl input[type="range"] { width: 100%; }
.pool-ctl .label { font: 600 0.8rem/1 var(--mono); color: var(--ink-2); }

#fig-pool svg, #fig-basic svg { width: 100%; height: auto; display: block; }

.tax-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; margin-top: 8px; font: 500 0.72rem/1.3 var(--mono); color: var(--ink-2); }
.tax-legend i { display: inline-block; width: 12px; height: 8px; margin-right: 5px; vertical-align: 0; }
