:root {
  /* One white page, read top to bottom; figures are the content and prose stays in a narrow column. */
  color-scheme: light;
  --bg: #ffffff;
  --ink: #161513;
  --muted: #6d6860;
  --faint: #9a948a;
  --line: #e7e3dc;
  --soft: #f6f4f0;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* Roles, fixed across every figure. */
  --actor: #2459c7;  --actor-fill: #dbe7f8;  --actor-s: #7ea4d8;
  --critic: #7a3fd1; --critic-fill: #e9defa; --critic-s: #9a78d6;
  --ref: #6d6860;    --ref-fill: #f1efeb;    --ref-s: #bdb7ad;
  --good: #1b7a43;   --good-fill: #d8eedf;   --good-s: #6fae86;
  --bad: #c62828;    --bad-fill: #f8d9d6;    --bad-s: #d0685c;
  --note: #fbf3d6;   --note-s: #d4bb63;
  --idle: #f6f4f0;   --idle-s: #d6d1c8;

  /* Methods in the plots. */
  --binac: #2a78d6; --grpo: #eb6834; --score: #1baf7a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--actor); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 12px 32px 10px; }
.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.brand { font: 600 19px/1.1 var(--serif); }
.brand-row .sub { font-size: 13px; color: var(--muted); }
.brand-row .sp { margin-left: auto; }
.keys { font-size: 12px; color: var(--faint); display: none; }
.keys kbd { font: 11px/1 var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; margin: 0 2px; color: var(--muted); }
.clock { display: none; font-size: 13px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.clock b { font-weight: 600; color: var(--ink); }
.clock span { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.clock.over span { color: var(--bad); font-weight: 600; }
.clock.done b { color: var(--bad); }
.pres { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; color: var(--muted); }
.pres[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rail { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.rail a { position: relative; display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px 6px; min-width: 0; overflow: hidden; }
.rail a:hover { border-color: var(--faint); }
.rail .n { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); }
.rail .t { display: block; font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .fill { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--faint); display: none; }
.rail a[aria-current="true"] { border-color: var(--ink); }
.rail a[aria-current="true"] .t { font-weight: 600; }
@media (max-width: 900px) { .rail { grid-template-columns: repeat(3, 1fr); } }

main { max-width: 1180px; margin: 0 auto; padding: 0 32px 120px; }
.hero { padding: 64px 0 44px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.015em; max-width: 22ch; }
.hero p { font: 400 16px/1.55 var(--sans); color: var(--muted); max-width: 70ch; margin: 14px 0 0; }
section.block { padding: 64px 0 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
section.block:last-of-type { border-bottom: 0; }
.block > h2 { font-size: 32px; line-height: 1.15; max-width: 30ch; }
.lede { font-size: 15.5px; line-height: 1.65; color: #3b3935; max-width: 68ch; margin: 12px 0 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; margin-left: 10px; vertical-align: 6px; font-family: var(--sans); }

figure.fk { margin: 36px 0 8px; }
.fk-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.fk-title { font: 600 19px/1.3 var(--serif); letter-spacing: -.01em; }
.fk-ctl { display: flex; gap: 6px; flex: none; }
.fk-ctl button { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; font-size: 13px; cursor: pointer; min-width: 38px; }
.fk-ctl button:hover { border-color: var(--faint); }
.fk-ctl button:disabled { opacity: .35; cursor: default; }
.fk-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.fk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fk-legend i { width: 11px; height: 11px; border-radius: 3px; border: 1px solid; display: inline-block; }
.fk-legend i.ln { height: 3px; width: 18px; border: 0; border-radius: 2px; }
figure.fk svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--sans); fill: #6d6860; }
.fk-status { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 1.5em; display: flex; justify-content: space-between; gap: 16px; }
.fk-status b { font-weight: 500; color: var(--faint); white-space: nowrap; margin-left: auto; }
figcaption { font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 80ch; margin-top: 6px; }

svg .cap { font-size: 11px; letter-spacing: .08em; font-weight: 600; text-transform: uppercase; fill: #9a948a; }
svg .lbl { font-size: 12.5px; }
svg .name { font-size: 13px; font-weight: 600; letter-spacing: -.005em; fill: #161513; }
svg .num { font-size: 14px; font-weight: 600; fill: #161513; }
svg .mono { font-family: var(--mono); font-size: 12.5px; }
svg .tile rect { stroke-width: 1.2; }
svg .k-actor rect { fill: var(--actor-fill); stroke: var(--actor-s); }
svg .k-critic rect { fill: var(--critic-fill); stroke: var(--critic-s); }
svg .k-ref rect { fill: var(--ref-fill); stroke: var(--ref-s); }
svg .k-good rect { fill: var(--good-fill); stroke: var(--good-s); }
svg .k-bad rect { fill: var(--bad-fill); stroke: var(--bad-s); }
svg .k-idle rect { fill: var(--idle); stroke: var(--idle-s); }
svg .k-note rect { fill: var(--note); stroke: var(--note-s); }
svg .k-plain rect { fill: #fff; stroke: var(--idle-s); }
svg .k-dash rect { fill: #fff; stroke: var(--faint); stroke-dasharray: 5 4; }

/* Formulas. Actor parameters are blue, critic parameters purple, the reference actor grey, everywhere. */
.katex { font-size: 1.12em; }
.katex .c-th { color: var(--actor); }
.katex .c-ph { color: var(--critic); }
.katex .c-ref { color: var(--ref); }
.fo { height: 100%; display: flex; align-items: center; font-size: 14px; color: var(--ink); white-space: nowrap; line-height: 1.2; }
.fo-start { justify-content: flex-start; } .fo-middle { justify-content: center; } .fo-end { justify-content: flex-end; }
.fo .katex { font-size: 1.08em; }

/* The worked example. */
.ex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 22px; }
.ex-q { grid-column: 1 / -1; display: flex; gap: 14px; align-items: baseline; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; font: 400 19px/1.45 var(--serif); }
.ex-q .who { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); flex: none; }
.card { border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; min-height: 268px; background: #fff; }
.card.actor { border-top: 3px solid var(--actor); } .card.critic { border-top: 3px solid var(--critic); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 16px 9px; border-bottom: 1px solid var(--line); }
.card-h .role { font: 600 13px/1.2 var(--sans); }
.card.actor .role { color: var(--actor); } .card.critic .role { color: var(--critic); }
.card-h .sym { font-size: 13px; color: var(--muted); }
.card-b { padding: 12px 16px 6px; flex: 1; font: 400 17px/1.5 var(--serif); }
.card-b .ln { display: block; margin: 0 0 7px; opacity: 0; }
.card.critic .card-b { font-size: 16px; line-height: 1.45; }
.card-b mark { background-image: linear-gradient(#f6ecbf, #f6ecbf); background-repeat: no-repeat; background-size: var(--hl, 0%) 100%; background-color: transparent; color: inherit; border-radius: 2px; padding: 0 1px; }
.card-b mark.bad { background-image: linear-gradient(var(--bad-fill), var(--bad-fill)); }
.card-f { padding: 4px 16px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.card-f svg { width: 190px !important; flex: none; }
.stamp { font: 600 12.5px/1 var(--sans); border-radius: 999px; padding: 6px 12px; border: 1px solid; white-space: nowrap; opacity: 0; }
.stamp.bad { color: var(--bad); background: var(--bad-fill); border-color: var(--bad-s); }
.stamp.good { color: var(--good); background: var(--good-fill); border-color: var(--good-s); }
.ex-alt { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; border-top: 1px dashed var(--line); padding-top: 16px; }
.ex-alt .alt-l { font: 600 19px/1.3 var(--serif); align-self: center; max-width: 18ch; }
.ex-alt .alt-l small { display: block; font: 400 13px/1.5 var(--sans); color: var(--muted); margin-top: 6px; }
.ex-alt .card { min-height: 0; }
.ex-alt .card.critic { border-top-color: var(--ref-s); } .ex-alt .card.critic .role { color: var(--ref); }

/* Equation boards. */
.board { display: grid; gap: 0; }
.eq-row { display: grid; grid-template-columns: 170px 1fr 44px; align-items: center; gap: 18px; padding: 12px 4px; border-top: 1px solid var(--line); min-height: 76px; }
.eq-row:first-child { border-top: 0; }
.eq-row .who { font: 600 13px/1.3 var(--sans); }
.eq-row .who small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.eq-row.actor .who { color: var(--actor); } .eq-row.critic .who { color: var(--critic); }
.eq-row .eq { font-size: 17px; overflow-x: auto; overflow-y: hidden; }
.eq-row .eq .katex-display { margin: 0; text-align: left; }
.eq-row .eq .katex-display > .katex { text-align: left; }
.eq-row .no { font: 13px/1 var(--sans); color: var(--faint); text-align: right; }
.eq-row .hl-star, .eq-row .hl-pen { border-radius: 4px; box-shadow: 0 0 0 4px rgba(246, 236, 191, var(--hl, 0)); background: rgba(246, 236, 191, var(--hl, 0)); }
.chain { margin: 0 0 6px; }

/* Limitations. */
.lim { display: grid; gap: 0; }
.lim-row { display: grid; grid-template-columns: 210px 1fr 300px; gap: 24px; align-items: center; padding: 16px 4px; border-top: 1px solid var(--line); }
.lim-row:first-child { border-top: 0; }
.lim-row h3 { font-size: 19px; }
.lim-row p { margin: 0; font-size: 15px; line-height: 1.55; color: #3b3935; }
.lim-row svg { width: 100% !important; }

/* Presenter view: the presenter talks, so narration, captions and the title block go; figures get the room. */
body.present .lede, body.present .hero { display: none; }
body.present .clock, body.present .keys { display: inline-block; }
body.present .rail .fill { display: block; }
body.present main, body.present .top-in { max-width: 1360px; }
body.present section.block { padding-top: 40px; }
body.present .block > h2 { font-size: 38px; max-width: 34ch; }

footer { max-width: 1180px; margin: 0 auto; padding: 0 32px 80px; font-size: 13px; color: var(--faint); }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  .top-in, main, footer { padding-left: 16px; padding-right: 16px; }
  .ex, .ex-alt { grid-template-columns: 1fr; }
  .eq-row { grid-template-columns: 1fr; gap: 6px; }
  .lim-row { grid-template-columns: 1fr; gap: 8px; }
  .hero h1 { font-size: 34px; }
  figure.fk svg { min-width: 760px; }
  figure.fk { overflow-x: auto; }
  .card-f svg, .lim-row svg { min-width: 0; }
}

/* Speaker notes: a second window for the presenter. The audience window never shows any of this. */
.notes-open { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; color: var(--muted); }
body.notes-mode .top, body.notes-mode main, body.notes-mode footer { display: none; }
.notes { max-width: 1100px; margin: 0 auto; padding: 22px 32px 40px; min-height: 100vh; display: flex; flex-direction: column; gap: 16px; }
.notes[hidden] { display: none; }
.nt-top { display: flex; align-items: center; gap: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nt-clock b { font: 600 46px/1 var(--serif); letter-spacing: -.01em; }
.nt-clock span { font-size: 15px; color: var(--muted); margin-left: 8px; }
.nt-clock.over b { color: var(--bad); }
.nt-sec { display: flex; flex-direction: column; gap: 2px; }
.nt-name { font: 600 19px/1.2 var(--serif); }
.nt-ends { font-size: 13px; color: var(--muted); }
.nt-ends.over { color: var(--bad); font-weight: 600; }
.nt-link { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.nt-link.on { color: var(--good); font-weight: 600; }
.notes button { font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.notes button:hover { border-color: var(--faint); }
.nt-where { font-size: 13px; color: var(--muted); }
.nt-where b { color: var(--ink); font-weight: 600; }
.nt-now { width: 100%; flex: 1; min-height: 240px; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; font: 400 30px/1.42 var(--serif); color: var(--ink); background: #fff; }
.nt-now:focus { outline: 2px solid var(--actor-s); outline-offset: 0; }
.nt-next { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: baseline; }
.nt-next span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.nt-next p { margin: 0; font: 400 18px/1.45 var(--serif); color: var(--faint); }
.nt-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-bar .nt-fwd { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nt-count { margin: 0 auto 0 12px; font-size: 13px; color: var(--muted); }
.nt-count b { color: var(--ink); font-weight: 600; }
.nt-count .warn { color: var(--bad); font-weight: 600; }
.nt-rail { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.nt-rail div { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12px; min-width: 0; }
.nt-rail div b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-rail div span { color: var(--faint); font-size: 11px; }
.nt-rail div.cur { border-color: var(--ink); }
.nt-rail div.cur b { font-weight: 600; }
.nt-rail div span.warn { color: var(--bad); font-weight: 600; }
@media (max-width: 760px) { .notes { padding: 14px 16px 24px; } .nt-now { font-size: 22px; } .nt-rail { grid-template-columns: repeat(3, 1fr); } .nt-top { flex-wrap: wrap; gap: 10px 18px; } .nt-clock b { font-size: 34px; } }

/* ---- The merged talk: dice example, boards with step-by-step terms, reward table ---- */
.fo.purple { color: var(--critic); } .fo.purple .katex { color: var(--critic); }
.ex.two { grid-template-columns: 1.55fr 1fr; }
.card .mini { width: 92px !important; flex: none; }
.gridpanel { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; }
.gridpanel svg { width: 250px !important; }
.gnote { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); min-height: 1.4em; }
.card.critic { border-top-color: color-mix(in srgb, var(--critic) calc(var(--src, 1) * 100%), var(--ref-s)); }
.card.critic .role { color: color-mix(in srgb, var(--critic) calc(var(--src, 1) * 100%), var(--ref)); }
.swapi { display: inline-grid; } .swapi > * { grid-area: 1 / 1; white-space: nowrap; }
.card-h .sym.swapi > * { justify-self: end; }
.card-b .fx { display: block; font-style: italic; margin-bottom: 10px; }
.card-b .tag2 { display: grid; font: 600 12.5px/1.3 var(--sans); color: var(--muted); margin-bottom: 6px; }

.board { position: relative; display: block; }
.brow { display: grid; grid-template-columns: 170px 1fr; align-items: center; column-gap: 18px; padding: 12px 4px 6px; border-top: 1px solid var(--line); min-height: 78px; position: relative; }
.board > .brow:first-child { border-top: 0; }
.brow .who { font: 600 13.5px/1.3 var(--sans); }
.brow .who small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.brow.actor .who { color: var(--actor); } .brow.critic .who { color: var(--critic); }
.brow .eq { font-size: 19px; }
.brow .eq .katex-display, .bbig .katex-display { margin: 0; text-align: left; }
.brow .eq .katex-display > .katex { text-align: left; }
.brow .cap { grid-column: 2; margin: 2px 0 6px; font-size: 14.5px; color: #3b3935; }
.bdef { padding: 0 4px 12px 192px; display: flex; gap: 34px; align-items: baseline; font-size: 16px; }
.bdef .note { font-size: 13px; color: var(--muted); }
.bdef.two { display: grid; grid-template-columns: 1fr 1fr; }
.bdef small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.bcases { position: absolute; right: 4px; top: 10px; display: grid; row-gap: 7px; font-size: 16px; }
.bcases > div { display: grid; grid-template-columns: 74px 22px 74px 110px; align-items: center; }
.bcases > div:first-child { grid-template-columns: 170px 110px; } .bcases small { font-size: 12.5px; color: var(--muted); }
.bcases i { font-style: normal; color: var(--faint); } .bcases b { font-weight: 400; padding-left: 4px; }
.chip { justify-self: start; font: 600 13px var(--sans); border-radius: 999px; padding: 3px 12px; }
.chip.bad { color: var(--bad); background: var(--bad-fill); } .chip.good { color: var(--good); background: var(--good-fill); }
.brace-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.emk { border-radius: 4px; background: rgba(246, 236, 191, var(--hl, 0)); box-shadow: 0 0 0 4px rgba(246, 236, 191, var(--hl, 0)); }
.key.emk { font-weight: 600; color: var(--ink); }
.bbig { font-size: 22px; padding: 18px 4px 6px; } .bbig .katex-display, .bbig .katex-display > .katex { text-align: center; }
.bbig.left .katex-display, .bbig.left .katex-display > .katex { text-align: left; } .bbig.left { font-size: 19px; }
.bbig.sub { font-size: 19px; text-align: center; padding-top: 10px; } .bbig.sub p { margin: 6px 0 0; font: 14.5px var(--sans); color: #3b3935; }
svg.bars { margin-top: 14px; }
.bpair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; font-size: 18px; padding: 4px; }
.bpair > div { border-top: 2px solid var(--line); padding-top: 9px; }
.bpair b { display: block; font: 600 17px var(--serif); } .bpair small { display: block; font-size: 13.5px; color: var(--muted); margin: 1px 0 6px; }
table.rw { border-collapse: separate; border-spacing: 0 6px; width: 100%; margin-top: 16px; }
table.rw th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 14px 2px; }
table.rw td { padding: 13px 14px; font-size: 18px; border-top: 1px solid; border-bottom: 1px solid; }
table.rw td:first-child { font-size: 15px; width: 300px; border-left: 3px solid; border-radius: 8px 0 0 8px; }
table.rw td:last-child { border-right: 1px solid; border-radius: 0 8px 8px 0; }
table.rw tr.s td { background: #f6f9fe; border-color: #d5e1f6; } table.rw tr.s td:first-child { border-left-color: var(--actor); }
table.rw tr.f td { background: #faf7fe; border-color: #e3d8f7; } table.rw tr.f td:first-child { border-left-color: var(--critic); }
.bnote { margin: 10px 4px 0; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 120ch; }
.bnote .katex { color: var(--ink); }
#backup > h2 { color: var(--muted); }
@media (max-width: 760px) { .ex.two { grid-template-columns: 1fr; } .brow { grid-template-columns: 1fr; } .bdef { padding-left: 4px; flex-wrap: wrap; } .bcases { position: static; margin-top: 8px; } .bpair { grid-template-columns: 1fr; } }
/* KaTeX draws braces with its own SVGs; the figure rules above must not resize them. */
figure.fk .katex svg { width: 100%; height: inherit; display: block; fill: currentColor; overflow: hidden; font-family: inherit; }
figure.fk svg.brace-svg { height: 100%; }

body.present #backup { margin-top: 70vh; }

/* ---- Slide deck: one figure per slide, scaled to the window, with a short slide transition ---- */
html, body { height: 100%; overflow: hidden; }
.rail { display: flex; gap: 6px; align-items: stretch; }
.rail a { flex: 1 1 0; }
.rail a.other { display: none; }
.rail .proj { flex: none; align-self: center; font: 600 12px/1 var(--sans); color: var(--faint); background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 6px 5px; cursor: pointer; }
.rail .proj[aria-current="true"] { color: var(--ink); border-bottom-color: #cdb555; }
.rail .proj + a, .rail .proj[data-project="sb"] { margin-right: 4px; }
.rail .m { visibility: hidden; } body.present .rail .m { visibility: visible; }
main { visibility: hidden; height: 0; overflow: hidden; }
.deck { position: fixed; left: 0; right: 0; bottom: 0; top: 96px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transform: translateX(28px); transition: opacity .16s ease, transform .16s ease; pointer-events: none; }
.slide.before { transform: translateX(-28px); }
.slide.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .26s ease .17s, transform .26s ease .17s; }
/* The old slide is gone before the new one comes in, so the two never overlap. */
.slide-in { position: absolute; width: 1180px; transform-origin: 0 0; }
.s-title { font: 600 34px/1.15 var(--serif); letter-spacing: -.012em; margin: 0 0 6px; max-width: 30ch; }
.slide figure.fk { margin: 20px 0 0; }
.fk-status span { display: none; }
figcaption { font-size: 12.5px; color: var(--faint); max-width: 110ch; }
.dnav { position: fixed; right: 16px; bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); z-index: 6; }
.dnav button { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; width: 34px; height: 30px; font-size: 17px; line-height: 1; cursor: pointer; color: var(--muted); }
.dnav button:hover { border-color: var(--faint); } .dnav button:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* The rollout, one symbol per card, with what each symbol is. */
.defs4 { display: grid; grid-template-columns: 0.8fr 1fr 1fr 1.1fr; column-gap: 30px; padding: 6px 0 4px; }
.dcard { position: relative; border: 1px solid var(--line); border-top: 3px solid var(--faint); border-radius: 10px; padding: 14px 16px 14px; background: #fff; min-height: 236px; }
.dcard + .dcard::before { content: ""; position: absolute; left: -21px; top: 30px; width: 9px; height: 9px; border-top: 2px solid var(--faint); border-right: 2px solid var(--faint); transform: rotate(45deg); }
.dcard.actor { border-top-color: var(--actor); background: #f8fafe; border-color: #d5e1f6; border-top-color: var(--actor); }
.dcard.fixed { background: var(--soft); }
.dcard .dm { font-size: 19px; height: 34px; white-space: nowrap; }
.dcard b { display: block; font: 600 18px/1.3 var(--serif); margin-top: 4px; }
.dcard p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #3b3935; }
.dcard q { display: block; quotes: none; margin-top: 10px; font: italic 400 15.5px/1.35 var(--serif); color: #3b3935; }
.dcard .dr { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink); }

/* Speaker notes: only in presenter view (N hides them), or alone in a second window opened at #notes. */
.notes { display: none; position: fixed; right: 0; bottom: 0; top: 96px; width: 380px; border-left: 1px solid var(--line); background: #fbfaf8; padding: 18px 22px 60px; overflow-y: auto; z-index: 5; font-family: var(--sans); }
body.present .notes { display: block; } body.present.no-notes .notes { display: none; }
body.present .dnav { right: 396px; } body.present.no-notes .dnav { right: 16px; }
.nt-h { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.nt-h span { font-size: 12px; color: var(--faint); grid-row: 1 / 3; padding-top: 3px; }
.nt-h b { font: 600 16px/1.3 var(--serif); } .nt-h em { font-style: normal; font-size: 12px; color: var(--muted); }
.notes ul { list-style: none; margin: 0; padding: 0; display: grid; row-gap: 10px; }
.notes li { font-size: 16px; line-height: 1.45; padding: 8px 12px; border-radius: 8px; border-left: 3px solid transparent; transition: background-color .2s, color .2s; }
.notes li.now { background: #fff; border-left-color: var(--ink); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.notes li.done { color: var(--muted); }
.notes li.later { color: var(--faint); }
.nt-ns { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
body.notes-only .top, body.notes-only .deck, body.notes-only .dnav { display: none; }
body.notes-only .notes { display: block; position: static; width: auto; max-width: 900px; margin: 0 auto; border: 0; background: var(--bg); padding: 28px 32px; height: 100%; }
body.notes-only .notes li { font-size: 24px; } body.notes-only .nt-h b { font-size: 22px; }

/* ---- StewardBench section (scoped to .sb) ---- */
.notes li.cue { background: none; border-left-color: transparent; box-shadow: none; padding-top: 2px; padding-bottom: 2px; font-size: 13.5px; }
.notes li.cue em { color: #8a7a2a; }
.sb .sb-ref { color: var(--muted); font-weight: 500; }
.sb .sb-scale { font-size: 15px; color: #3b3935; margin: 2px 0 10px; } .sb .sb-scale b { font: 600 18px var(--serif); color: var(--ink); }
.sb .sb-tl { margin-bottom: 6px; }
.sb .sb-low { display: grid; row-gap: 12px; }
.sb .sb-blocks { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 18px; }
.sb .sb-blocks div { border: 1px solid var(--line); border-top: 3px solid var(--faint); border-radius: 10px; padding: 10px 14px; background: #fff; }
.sb .sb-blocks b { display: block; font: 600 16px var(--serif); } .sb .sb-blocks span { display: block; font-size: 13.5px; line-height: 1.45; color: #3b3935; margin-top: 3px; }
.sb .sb-legend { display: flex; gap: 26px; font-size: 14px; color: #3b3935; }
.sb .sb-legend i { display: inline-block; width: 13px; height: 13px; border-radius: 3px; margin-right: 8px; vertical-align: -2px; }
.sb .sb-score { display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 22px; align-items: stretch; }
.sb .sb-key { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: grid; row-gap: 6px; background: #fff; }
.sb .sb-key > div { display: grid; grid-template-columns: 120px 1fr 160px; align-items: center; font-size: 14px; }
.sb .sb-key b { font: 600 15px var(--serif); text-align: right; } .sb .sb-key p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.sb .sb-chip { justify-self: start; font: 600 12px var(--sans); border-radius: 999px; padding: 3px 10px; }
.sb .sb-chip.rt { background: #eceef1; border: 1px solid #cfd4db; } .sb .sb-chip.ev { background: #4c6a8f; color: #fff; }
.sb .sb-key em { font-style: normal; font-weight: 600; } .sb .ok { color: #1b7a43; } .sb .bad { color: #c62828; } .sb .fd { color: #8a6a1e; }
.sb .sb-formula { border: 1px solid #cdb555; background: #fbf6e1; border-radius: 10px; padding: 8px 14px; }
.sb .sb-formula .katex-display { margin: 0; } .sb .sb-formula > div { font-size: 19px; }
.sb .sb-formula p { margin: 2px 0 0; font-size: 13px; color: #3b3935; } .sb .sb-formula .sb-refuse { margin-top: 4px; }
.sb .sb-two { display: grid; grid-template-columns: 760fr 340fr; column-gap: 22px; align-items: start; }
.sb .sb-two svg { width: 100%; height: auto; }
.sb .sb-side { display: grid; row-gap: 10px; padding-top: 4px; }
.sb .sb-stage { border-left: 3px solid #cdb555; padding: 2px 0 2px 12px; }
.sb .sb-stage b { display: block; font: 600 15.5px/1.3 var(--serif); } .sb .sb-stage p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: #3b3935; }

/* ---- Header: CMU wordmark, a tiny numbered slide rail, the humans& ampersand ---- */
.top-in { max-width: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px; padding: 10px 26px; }
.logo-cmu { height: 25px; width: auto; justify-self: start; display: block; }
.logo-amp { height: 34px; width: auto; justify-self: end; display: block; }
.top .rail { display: flex; gap: 4px; align-items: center; margin: 0; }
.top .rail a { flex: none; width: 26px; padding: 3px 0 2px; border-radius: 5px; border: 1px solid var(--line); text-align: center; line-height: 1; }
.top .rail a b { display: block; font: 500 11px/1 var(--sans); color: var(--faint); }
.top .rail a .m { display: none; font: 400 9px/1 var(--sans); color: var(--faint); margin-top: 2px; visibility: visible; }
.top .rail a[aria-current="true"] { border-color: var(--ink); } .top .rail a[aria-current="true"] b { color: var(--ink); font-weight: 600; }
.top .rail a.first-sb, .top .rail a.first-binac { margin-left: 10px; }
body.present .top .rail a { width: 34px; } body.present .top .rail a .m { display: block; }
.dnav .pres { width: auto; height: 30px; padding: 0 10px; font-size: 12px; margin-right: 6px; }
.dnav .pres[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sb .sb-replay { display: block; width: 100%; height: 590px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sb .sb-blocks span { font-size: 14px; }
.sb .sb-key > div { grid-template-columns: 130px 1fr 170px; font-size: 14.5px; }
.sb .sb-formula { display: flex; flex-direction: column; justify-content: center; }
.sb .sb-formula .sb-refuse { font-size: 14px; }
.top-in, body.present .top-in { max-width: none; padding-left: 28px; padding-right: 28px; }
/* Title slides */
.is-cover .fk-head, .is-cover .fk-status, .is-cover figcaption { display: none; }
.is-cover figure.fk { border: 0; background: none; padding: 0; }
.cover { min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding: 0 40px; }
.cover .cv-kick { font: 600 15px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #C41230; margin-bottom: 26px; }
.cover h1 { font: 600 50px/1.12 var(--serif); letter-spacing: -.015em; color: var(--ink); max-width: 1000px; margin: 0; }
.cover .cv-name { font: 400 22px/1.3 var(--serif); font-style: italic; color: var(--muted); margin-top: 18px; }
.cover .cv-auth { font: 400 17px/1.5 var(--sans); color: var(--ink); margin-top: 46px; }
.cover .cv-auth b { font-weight: 600; }
.cover .cv-affil { font: 400 15px/1.5 var(--sans); color: var(--muted); margin-top: 4px; }
.cover .cv-note { font: 400 13px/1.5 var(--sans); color: var(--faint, #9a958c); margin-top: 6px; }
/* Opening slide */
.opening { min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding: 0 40px; }
.opening h1 { font: 600 48px/1.1 var(--serif); letter-spacing: -.015em; color: var(--ink); margin: 0; }
.opening .op-name { font: 600 19px/1.4 var(--sans); color: var(--ink); margin-top: 18px; }
.opening .op-affil { font: 400 15px/1.4 var(--sans); color: var(--muted); margin-top: 2px; }
.opening .op-list { list-style: none; margin: 40px 0 0; padding: 0; max-width: 880px; }
.opening .op-list li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.opening .op-list li:last-child { border-bottom: 1px solid var(--line); }
.opening .op-n { font: 500 14px/1 var(--sans); color: var(--faint, #9a958c); }
.opening .op-t { font: 600 21px/1.3 var(--serif); color: var(--ink); }
.opening .op-d { font: 400 14.5px/1.45 var(--sans); color: var(--muted); margin-top: 3px; }
/* The highlight: a saturated yellow behind ink text, so it reads on white and on a projector. */
.opening mark { color: inherit; background-color: transparent; background-image: linear-gradient(#f9dc6b, #f9dc6b); background-repeat: no-repeat; background-size: var(--hl, 0%) 100%; border-radius: 3px; padding: 1px 4px; margin: 0 -4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.opening.index .op-list { margin-top: 0; max-width: 1040px; }
/* Notes: timing target for each part, cue tags, and a marker where a click starts the next step */
.nt-part { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #C41230; margin: -4px 0 10px; }
.notes .nt-tag { font-style: normal; font-size: 11.5px; color: var(--faint); margin-left: 4px; white-space: nowrap; }
.notes li.nt-click { font-size: 11px; line-height: 1; padding: 2px 12px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; background: none; box-shadow: none; border-left-color: transparent; }
.notes li.nt-click::before { content: "→ "; }
.notes li.cue.now em { color: #8a6a12; }
.notes li b { font-weight: 650; }
/* Window link status: presenter view only */
.dnav .linkstat { display: none; font-size: 12px; color: var(--faint); margin-right: 4px; }
body.present .dnav .linkstat { display: inline; }
.dnav .linkstat.ok { color: #3f7a3a; }
.dnav .linkstat.ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5a9a54; margin-right: 6px; vertical-align: 1px; }
/* Q&A slides: a separate group at the end of the rail */
.top .rail a.first-qa { margin-left: 14px; }
.top .rail a[data-project="qa"] { border-style: dashed; width: 30px; }
body.present .top .rail a[data-project="qa"] { width: 36px; }
/* Small citation beside a subtitle */
.fk-title .cite { font: 400 12.5px/1 var(--sans); color: var(--faint); margin-left: 8px; letter-spacing: 0; }
/* Future Directions */
.top .rail a.first-outro { margin-left: 10px; }
.sb .fx-eq { margin-top: 6px; font-size: 15px; }
.sb .fx-eq .katex-display { margin: 4px 0 0; text-align: left; }
/* No small grey text under the slides: captions and step counters are off everywhere */
figure.fk figcaption, figure.fk .fk-status { display: none !important; }
