/* /css/pages/frontpage-demos-exam.css (R-133): the figures of the exam-preparation demos. One block per card id;
 * every selector names an hpd-<id>- class. The frame, the timeline and the colour helpers are in
 * /css/pages/frontpage-demos.css; the markup is in src/presentation/homepage/demos/<id>.ts. */

/* ==== right-triangle */
/* ---- right-triangle: a right triangle to scale (legs 4 and 4√3, hypotenuse 8). The given is ink; each leg, its value
   and the 60° arc are redrawn in the solution ink as they are found; the check is three squares of areas 16 + 48 = 64
   (the legs' in the solution ink, the hypotenuse's in ink), and the end beat lights the 64 square in "correct" */
.hpd-right-triangle-paper{fill:var(--hp-demo-paper)}
.hpd-right-triangle-mark{stroke:var(--hp-demo-ink);stroke-width:2.5}
.hpd-right-triangle-side{stroke:var(--hp-demo-ink);stroke-width:4}
.hpd-right-triangle-found{stroke:var(--hp-demo-c);stroke-width:5}
.hpd-right-triangle-arc{stroke:var(--hp-demo-ink);stroke-width:3.5}
.hpd-right-triangle-arc--c{stroke:var(--hp-demo-c)}
.hpd-right-triangle-sq{fill:color-mix(in srgb,var(--hp-demo-c) 14%,var(--hp-demo-paper));stroke:var(--hp-demo-c);stroke-width:2.5}
.hpd-right-triangle-sq--c{fill:var(--hp-demo-paper);stroke:var(--hp-demo-ink)}
.hpd-right-triangle-ok{stroke:var(--hp-demo-ok)}

/* ==== parabola-roots */
/* ---- parabola-roots: y = x² + 2x − 8 drawn exactly. The axis of symmetry x = −1 drops, two equal arrows run 3 out
   from (−1, 0) along the x-axis (−1 ± 3 = (−2 ± 6)/2) and stop short of the roots; −4 stays neutral, 2 is ringed */
.hpd-parabola-roots-axis{stroke:var(--hp-demo-ink-2);stroke-width:3}
.hpd-parabola-roots-tick{stroke:var(--hp-demo-quiet);stroke-width:2}
.hpd-parabola-roots-sym{stroke:var(--hp-demo-ink-2);stroke-width:2.5;stroke-dasharray:5 6;stroke-linecap:butt;--hp-demo-len:.6s}
.hpd-parabola-roots-curve{stroke:var(--hp-demo-ink);stroke-width:3.5;--hp-demo-len:1.2s;--hp-demo-ease:cubic-bezier(.45,.05,.4,1)}
.hpd-parabola-roots-run{stroke:var(--hp-demo-c);stroke-width:3.5}
.hpd-parabola-roots-mid{fill:var(--hp-demo-c);stroke:var(--hp-demo-paper);stroke-width:2}
.hpd-parabola-roots-dot{fill:var(--hp-demo-ink);stroke:var(--hp-demo-paper);stroke-width:2}
.hpd-parabola-roots-root{fill:var(--hp-demo-c);stroke:var(--hp-demo-paper);stroke-width:2}
.hpd-parabola-roots-ring{stroke:var(--hp-demo-c);stroke-width:2.5}
/* a shaft and its head share length and easing, so the head rides on the tip */
.hpd-parabola-roots-shaft,.hpd-parabola-roots-head-l,.hpd-parabola-roots-head-r{--hp-demo-len:.7s;--hp-demo-ease:cubic-bezier(.3,.6,.35,1)}
.hpd-parabola-roots-head-l{--hp-demo-dx:77px}
.hpd-parabola-roots-head-r{--hp-demo-dx:-77px}
.hpd-parabola-roots-takeoff{--hp-demo-len:.12s}

/* ==== bag-draw */
/* ---- bag-draw: 3 red + 3 blue balls in a sack; two reds are drawn one after the other to the slots outside it
   (red is the lesson's own colour: the one figure allowed --hp-warn, and nothing correct is red); then the product
   line, and 1 of 5 equal cells = 20%. A drawn ball rises out of the neck (lift), then slides to its slot (across) */
.hpd-bag-draw-sack{fill:var(--hp-demo-paper);stroke:var(--hp-demo-ink);stroke-width:3.5}
.hpd-bag-draw-rim{fill:var(--hp-demo-tile);stroke:var(--hp-demo-ink);stroke-width:3.5}
.hpd-bag-draw-slot{stroke:var(--hp-demo-blank);stroke-width:2;stroke-dasharray:4 3.46}
.hpd-bag-draw-red{fill:var(--hp-demo-red)}
.hpd-bag-draw-blue{fill:var(--hp-demo-blue)}
.hpd-bag-draw-glow{stroke:color-mix(in srgb,var(--hp-demo-red) 45%,transparent);--hp-demo-len:.55s}
.hpd-bag-draw-way{stroke:var(--hp-demo-ink-2);stroke-width:2.5}
.hpd-bag-draw-bar{stroke:var(--hp-demo-ink);stroke-width:2.5}
.hpd-bag-draw-bar--c{stroke:var(--hp-demo-c)}
.hpd-bag-draw-paper{fill:var(--hp-demo-paper)}
.hpd-bag-draw-shade{fill:var(--hp-demo-c)}
.hpd-bag-draw-cut{stroke:var(--hp-demo-ink);stroke-width:2}
.hpd-bag-draw-frame{stroke:var(--hp-demo-ink);stroke-width:3}
.hpd-bag-draw-shine{stroke:var(--hp-demo-ok)}
.hpd-bag-draw-lift-1,.hpd-bag-draw-lift-2{--hp-demo-ease:cubic-bezier(.2,.7,.3,1)}
.hpd-bag-draw-lift-1{--hp-demo-dy:52px;--hp-demo-len:.4s}
.hpd-bag-draw-lift-2{--hp-demo-dy:76px;--hp-demo-len:.5s}
.hpd-bag-draw-across-1,.hpd-bag-draw-across-2{--hp-demo-len:.5s;--hp-demo-ease:cubic-bezier(.45,0,.3,1)}
.hpd-bag-draw-across-1{--hp-demo-dx:110px}
.hpd-bag-draw-across-2{--hp-demo-dx:-110px}
