/* EOB flowchart: the canvas takes all the room under the title (the page is a flex column of the
   scrollport's height; the bottom padding clears the sticky footer and the comment button). Boxes
   are placed in % of the source figure's 1030x455 frame, so the layout stretches to the window's
   aspect; type is sized in min(cqw, cqh) so it never outgrows its box either way. */
.slide-page:has(.eob){max-width:none;display:flex;flex-direction:column;padding:1rem 2vw 2.8rem;box-sizing:border-box}
.slide-page h1.eob-title{font-size:clamp(1.3rem,2.2vw,1.9rem);margin:0 0 1rem;text-transform:uppercase;letter-spacing:.14em;font-weight:400;text-align:center}
.eob{--ink:#504c44;--paper:#f1efe9;--teal:#2a7f7a;--u:min(1cqw,2.264cqh);position:relative;container-type:size;flex:1 1 0;min-height:0;width:100%;color:var(--ink)}
.eob__arrows{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.eob__arrows path{fill:none;stroke:var(--ink);stroke-width:1.8;vector-effect:non-scaling-stroke}
.eob__arrows marker path{fill:var(--ink);stroke:none}
.eob__box{position:absolute;left:calc(var(--x) * 1%);top:calc(var(--y) * 1%);width:calc(var(--w) * 1%);height:calc(var(--h) * 1%);box-sizing:border-box;
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:calc(1.2 * var(--u));padding:calc(1.6 * var(--u)) var(--u) calc(.8 * var(--u));background:var(--paper);font-size:calc(2.05 * var(--u))}
.eob__box--small{font-size:calc(1.45 * var(--u));gap:calc(.5 * var(--u))}
.eob__box--mode{font-size:calc(3 * var(--u));padding:0;background:#fff;border:1.5px solid var(--ink)}
.eob__box--out{background:#fff;border:2px solid var(--teal)}
.eob__tag{position:absolute;top:calc(.6 * var(--u));left:calc(.9 * var(--u));font:400 calc(1 * var(--u))/1 var(--font-body,Inter),sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--teal)}
.eob__box--out .eob__tag{color:var(--teal)}
.eob__row{display:flex;gap:calc(2.4 * var(--u));align-items:center}
.eob .katex{font-size:1em}
.eob__cite{position:absolute;right:0;bottom:0;margin:0;font:calc(1.15 * var(--u)) var(--font-display,serif);letter-spacing:.06em;opacity:.7}
/* reveal: box n (and the arrows into it) exist from step n on; the newest one fades in */
.eob [data-n]{transition:opacity .35s ease}
.eob[data-step="1"] [data-n]:not([data-n="1"]),
.eob[data-step="2"] [data-n="3"],.eob[data-step="2"] [data-n="4"],.eob[data-step="2"] [data-n="5"],.eob[data-step="2"] [data-n="6"],
.eob[data-step="3"] [data-n="4"],.eob[data-step="3"] [data-n="5"],.eob[data-step="3"] [data-n="6"],
.eob[data-step="4"] [data-n="5"],.eob[data-step="4"] [data-n="6"],
.eob[data-step="5"] [data-n="6"]{visibility:hidden;opacity:0}
/* KaTeX breaks inline maths at relations when a line runs out; a box is one picture, never wrap */
.eob__box > div,.eob__row > span{white-space:nowrap}
