/* Chrome of the staged figures (stage-fig.js): the row of steps and buttons above a drawing, the sentence of the current
   step, and the read-out under it. Thin rules and the essay's sans, like the rest of a lean page. */
.sf-host{min-height:0}
.sf-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 10px;font:400 13px/1.2 var(--lean-ui,system-ui,sans-serif);color:var(--muted)}
.sf-steps{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.sf-step,.sf-btn,.sf-seg button{appearance:none;-webkit-appearance:none;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s,color .15s,border-color .15s}
.sf-step{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px 0 4px;border:1px solid var(--rule-hard);border-radius:999px;background:var(--paper);color:var(--muted)}
.sf-step i{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;font-style:normal;font-size:12px;background:var(--surface,#f3f3f0);color:var(--muted)}
.sf-step.sf-done{color:var(--ink)}
.sf-step.sf-done i{background:var(--rule-hard);color:var(--ink)}
.sf-step[aria-pressed="true"]{border-color:var(--ink);color:var(--ink)}
.sf-step[aria-pressed="true"] i{background:var(--ink);color:var(--paper)}
.sf-btn{height:28px;padding:0 11px;border:1px solid var(--rule-hard);border-radius:4px;background:none;color:var(--ink)}
.sf-btn.sf-play{min-width:62px}
.sf-step:hover,.sf-btn:hover,.sf-seg button:hover{border-color:var(--ink)}
.sf-step:focus-visible,.sf-btn:focus-visible,.sf-seg button:focus-visible{outline:2px solid var(--accent,#A0341F);outline-offset:2px}
.sf-choice{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 8px;max-width:100%}
.sf-seg{display:inline-flex;flex-wrap:wrap;max-width:100%}
.sf-seg button{height:28px;padding:0 11px;border:1px solid var(--rule-hard);background:none;color:var(--muted);margin-left:-1px;position:relative}
.sf-seg button:first-child{border-radius:4px 0 0 4px;margin-left:0}
.sf-seg button:last-child{border-radius:0 4px 4px 0}
.sf-seg button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper);z-index:1}
/* the sentences of all steps share one grid cell, so the drawing does not move when the step changes */
.sf-notes{display:grid;margin:0 0 8px}
html.lean .sf-notes > p,.sf-notes > p{grid-area:1/1;visibility:hidden;margin:0;font-family:var(--serif,serif);font-size:.86em;line-height:1.5;color:var(--body,inherit);text-align:left;hyphens:none}
html.lean .sf-notes > p.on,.sf-notes > p.on{visibility:visible}
.sf-notes > p b{font-weight:400;color:var(--ink);font-variant:small-caps;letter-spacing:.02em}
html.lean .sf-read,.sf-read{margin:10px 0 0;font-family:var(--lean-ui,system-ui,sans-serif);font-size:.8em;line-height:1.5;color:var(--body,inherit);text-align:left;hyphens:none;min-height:3em}
/* the page's justifier (assets/justify.js) rebuilds every justified p line by line; these sentences are rewritten on every change, so they stay ragged and out of its reach */
html.lean[data-align] main p.sf-read,html.lean[data-align] main .sf-notes > p,html.lean[data-align] main .sf-prog p{text-align:left;hyphens:none;-webkit-hyphens:none}
.sf-read b{font-weight:600}
.sf-read .n{font-variant-numeric:tabular-nums}
.sf-host > svg .sf-h,.sf-host > svg .sf-pick{outline:none}
.sf-host > svg .sf-pick{cursor:pointer}
.sf-host > svg:not([data-pointer]) .sf-h:focus-visible .ds-grip circle{stroke:var(--accent,#A0341F) !important;stroke-width:2.5}
.sf-host > svg:not([data-pointer]) .sf-pick:focus-visible > rect:first-of-type,.sf-host > svg:not([data-pointer]) .sf-pick:focus-visible > circle:first-of-type{stroke:var(--accent,#A0341F) !important;stroke-width:2.2 !important}
/* touch-action on the svg itself: Chrome ignores it on svg children, so the handles' own values (tfm.css) do nothing there */
.sf-host > svg{touch-action:pan-y pinch-zoom}
.sf-host > svg.sf-rotatable{cursor:grab}
.sf-host > svg.sf-rotatable.sf-grabbing{cursor:grabbing}
@media (max-width:620px){
  .sf-seg{gap:4px}
  .sf-seg button,.sf-seg button:first-child,.sf-seg button:last-child{margin-left:0;border-radius:4px}
  .sf-step span{display:none}
  .sf-step{padding:0 4px}
  .sf-step[aria-pressed="true"] span{display:inline;padding-right:7px}
  .sf-read{font-size:.84em;min-height:4.5em}
}
@media (pointer:coarse){.sf-step,.sf-btn,.sf-seg button{height:34px}.sf-step i{width:24px;height:24px}}
@media print{.sf-bar{display:none}}
/* a program printed under a figure: one line per rule and per score */
.sf-prog{display:grid;gap:5px;margin:12px 0 0;font-family:var(--lean-ui,system-ui,sans-serif);font-size:.96em;line-height:1.45}
html.lean .sf-prog p,.sf-prog p{margin:0;padding-left:1.5em;text-indent:-1.5em;text-align:left;hyphens:none;font:inherit;color:var(--body,inherit)}
.sf-prog p b{font-weight:600;color:var(--ink)}
html.lean .sf-prog p.sf-prog-end,.sf-prog p.sf-prog-end{color:var(--muted);padding-left:0;text-indent:0;margin-top:4px}
