
/* ==== the figures of the "learning gaps" section. Each block holds one figure's own paint and per-part motion knobs */

/* ---- fraction-bars: three identical bars cut into 2, 4 and 8. Half of each is shaded with cells that abut, so the
   three halves are the same area by construction; the cuts are drawn over the shading; a guide marks where they end */
.hpd-fraction-bars-paper{fill:var(--hp-demo-paper)}
.hpd-fraction-bars-frame{stroke:var(--hp-demo-ink);stroke-width:3}
.hpd-fraction-bars-shade{fill:var(--hp-demo-c);stroke:var(--hp-demo-c)}
.hpd-fraction-bars-cut{stroke:var(--hp-demo-ink);stroke-width:2.5}
.hpd-fraction-bars-cut--in{stroke:var(--hp-demo-on-c)}
.hpd-fraction-bars-guide{stroke:var(--hp-demo-ink-2);stroke-width:2.5;stroke-dasharray:5 6;stroke-linecap:butt}
.hpd-fraction-bars-over{stroke:var(--hp-demo-c);stroke-width:2.5}

/* ---- number-line: −5° is a cold ring; a cold jump of 5 reaches 0 (the cold dot rides it and stays on 0), a warm jump
   of 3 reaches 3 (the warm dot takes off from 0). Dots ride their jump: a linear slide in x around an arc in y */
.hpd-number-line-axis{stroke:var(--hp-demo-ink);stroke-width:3}
.hpd-number-line-minor{stroke:var(--hp-demo-quiet);stroke-width:2}
.hpd-number-line-major{stroke:var(--hp-demo-ink);stroke-width:2.5}
.hpd-number-line-zero{stroke:var(--hp-demo-ink);stroke-width:3.5}
.hpd-number-line-span{stroke:var(--hp-demo-ink-2);stroke-width:2.5}
.hpd-number-line-cool{stroke:var(--hp-demo-cool);stroke-width:3.5}
.hpd-number-line-warm{stroke:var(--hp-demo-warm);stroke-width:3.5}
.hp-demo__svg .hpd-number-line-t-cool{fill:var(--hp-demo-cool-t)}
.hp-demo__svg .hpd-number-line-t-warm{fill:var(--hp-demo-warm-t)}
.hpd-number-line-ring{fill:var(--hp-demo-paper);stroke:var(--hp-demo-cool);stroke-width:3}
.hpd-number-line-foot-cool{fill:var(--hp-demo-cool)}
.hpd-number-line-foot-warm{fill:var(--hp-demo-warm)}
.hpd-number-line-dot-cool{fill:var(--hp-demo-cool);stroke:var(--hp-demo-paper);stroke-width:2}
.hpd-number-line-dot-warm{fill:var(--hp-demo-warm);stroke:var(--hp-demo-paper);stroke-width:2.5}
.hpd-number-line-halo{stroke:var(--hp-demo-warm)}
/* the answer is above zero: it wears the warm colour of the figure's 3°, not the solution ink (which is the cold colour here) */
.hpd-number-line .hp-demo__value{color:var(--hp-demo-warm-t)}
.hpd-number-line .hp-demo__value::after{background:var(--hp-demo-warm)}
.hpd-number-line-pill-cool{fill:color-mix(in srgb,var(--hp-demo-cool) 14%,var(--hp-demo-paper));stroke:var(--hp-demo-cool);stroke-width:2}
.hpd-number-line-pill-warm{fill:color-mix(in srgb,var(--hp-demo-warm) 18%,var(--hp-demo-paper));stroke:var(--hp-demo-warm);stroke-width:2}
.hpd-number-line-arc5,.hpd-number-line-jump5,.hpd-number-line-hop5{--hp-demo-len:1s}
.hpd-number-line-arc3,.hpd-number-line-jump3,.hpd-number-line-hop3{--hp-demo-len:.7s}
.hpd-number-line-arc5,.hpd-number-line-arc3,.hpd-number-line-jump5,.hpd-number-line-jump3{--hp-demo-ease:linear}
.hpd-number-line-jump5{--hp-demo-dx:-70px}
.hpd-number-line-jump3{--hp-demo-dx:-42px}
.hpd-number-line-hop5{--hp-demo-dy:-39px}
.hpd-number-line-hop3{--hp-demo-dy:-23px}
.hpd-number-line-takeoff{--hp-demo-len:.15s}

/* ---- balance: 2x + 3 over the left pan, 11 over the right. Tiles are drawn to scale (x and 4 are 40 wide, 3 is 30),
   so x = 4 can be seen. The 11 arrives as one bar and opens into 4 | 4 | 3; what is taken from both sides lifts, dims
   and is struck through (still readable); the beam never tips. The check lights x and 4 in the "correct" colour */
.hpd-balance-brace{stroke:var(--hp-demo-ink-2);stroke-width:2}
.hpd-balance-stand{fill:var(--hp-demo-ink)}
.hpd-balance-post{stroke:var(--hp-demo-ink);stroke-width:4}
.hpd-balance-beam{stroke:var(--hp-demo-ink);stroke-width:6}
.hpd-balance-plate{stroke:var(--hp-demo-ink);stroke-width:5}
.hpd-balance-pivot{fill:var(--hp-demo-paper);stroke:var(--hp-demo-ink);stroke-width:3}
.hpd-balance-tick{stroke:var(--hp-demo-ok);stroke-width:3}
.hpd-balance-x{fill:var(--hp-demo-c)}
.hpd-balance-n{fill:var(--hp-demo-tile)}
.hp-demo__svg .hpd-balance-x .hp-demo__t{fill:var(--hp-demo-on-c)}
.hpd-balance-shine{stroke:var(--hp-demo-ok)}
.hpd-balance-strike{stroke:var(--hp-demo-ink);stroke-width:3}
.hpd-balance-then{stroke:var(--hp-demo-ink-2);stroke-width:2.5}
.hpd-balance-half{stroke:var(--hp-demo-ink-2);stroke-width:2.5;stroke-dasharray:5 6;stroke-linecap:butt}
.hpd-balance-open-l{--hp-demo-dx:5px}
.hpd-balance-open-r{--hp-demo-dx:-5px}
