/* Makkos 5787 nights - the look. Source: Makkos/Presentations/_build/night_html_assets/deck.css, copied into each night's
   assets/ by build_makkos_night_html.py. Edit HERE, rebuild.
   His 2026-10-12 redesign: the "What Is a Mishnah" opener's board - light, colourful, Young Serif titles over small
   uppercase kickers, white cards with soft shadows, his pyramid colours - on every teaching slide. Each slide carries its
   perek's map colour as --acc (Perek 1 maroon, 2 teal, 3 gold; night 1 the opener's red): the left band, the kicker, the
   title tick, bullets, chart and Mishnah headers. Dark only ON PURPOSE (.slide.dark: the memorial photo, a night's
   curtain, the hand-off into the opener) or for the whole night on T (html[data-theme=dark]). 1600x900 stage. */
:root{--bg:#EEF2F9;--board:#F8FAFE;--ink:#1B2140;--muted:#59618A;--line:#D3DAEA;--panel:#FFFFFF;--shadow:rgba(27,33,64,.12);
  --gold:#E8A317;--note:#FFF7DA;--note-ink:#5C4A00;
  --ct:#1a1a1a;--cr:#b8323a;--cp:#2d7a3e;--cn:#6b3a8a;--cb:#1f5fa8;--cg:#8B4513;--ctana:#b8902a;--fu:#c0399c;--cs:#0d8a8a;
  --serif:'Young Serif',Georgia,serif;--sans:'Nunito','Segoe UI',system-ui,sans-serif;--heb:'FR Deck','Frank Ruhl Libre','David','Times New Roman',serif}
:root[data-theme=dark]{--bg:#0B0F26;--board:#151B3D;--ink:#EEF1FB;--muted:#A6AED3;--line:#313A69;--panel:#1E2650;--shadow:rgba(0,0,0,.35);--note:#2A2F55;--note-ink:#FFE7A3}
.slide.dark{--board:#151B3D;--ink:#EEF1FB;--muted:#A6AED3;--line:#313A69;--panel:#1E2650;--shadow:rgba(0,0,0,.35)}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);overflow:hidden;color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
#app{position:fixed;inset:0;background:var(--bg)}
#stage{position:absolute;left:50%;top:50%;width:1600px;height:900px;transform-origin:50% 50%;overflow:hidden;background:var(--board);border-radius:18px;box-shadow:0 10px 50px var(--shadow)}
.slide{position:absolute;inset:0;display:none;background:var(--board);color:var(--ink);overflow:hidden}
.slide.active,.slide.leaving,.slide.measure{display:block}
.slide.measure{visibility:hidden}
.he,bdi.he{font-family:var(--heb);font-weight:700;font-size:1.06em}
[dir=rtl]{font-family:var(--heb)}
/* click-steps (the opener's reveal) */
.step{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
.step.on{opacity:1;transform:none}
.nosteps .step{opacity:1;transform:none}
/* ---------- the frame every light slide shares: perek band, kicker, title, tick */
.band{position:absolute;left:0;top:0;bottom:0;width:16px;background:var(--acc)}
.band::after{content:"";position:absolute;left:16px;top:0;bottom:0;width:6px;background:var(--acc2)}
.slide header{position:absolute;left:80px;right:80px;top:40px}
.kick{font:800 20px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--acc)}
.kick .he{letter-spacing:0;text-transform:none}
.slide header h1{margin:10px 0 0;font:400 54px/1.12 var(--serif);color:var(--ink);text-wrap:balance}
.slide header h1 .he{font-weight:700;color:var(--acc)}
.tick{display:block;width:110px;height:7px;border-radius:4px;background:var(--acc);margin-top:16px}
.card{background:var(--panel);border:2px solid var(--line);border-radius:18px;box-shadow:0 6px 18px var(--shadow)}
/* ---------- text slides: the bullets on a white card */
.slide .row{position:absolute;left:80px;right:80px;top:218px;bottom:56px;display:flex;gap:44px}
.card.list{flex:1;padding:30px 40px 18px;overflow:hidden;font-size:36px;min-width:0}
ul.bul{margin:0;padding:0;list-style:none;line-height:1.32}
ul.bul li{position:relative;padding-left:44px;margin:0 0 .55em}
ul.bul li::before{content:"";position:absolute;left:4px;top:.42em;width:18px;height:18px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 5px var(--acc2)}
ul.bul li.lv1{margin-left:50px;font-size:.9em}
ul.bul li.lv1::before{width:18px;height:6px;border-radius:3px;top:.62em;box-shadow:none;opacity:.75}
figure.pic{flex:0 0 520px;margin:0;align-self:center;border-radius:18px;overflow:hidden;background:var(--panel);border:2px solid var(--line);box-shadow:0 6px 18px var(--shadow)}
figure.pic img{display:block;width:100%;height:auto;max-height:620px;object-fit:contain}
figure.pic.ph{height:560px;background:var(--note);border:4px dashed var(--gold);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:34px;text-align:center;color:var(--note-ink);box-shadow:none}
figure.pic.ph b{font:900 28px var(--sans);color:var(--gold);letter-spacing:.14em;margin-bottom:16px}
figure.pic.ph span{font:600 25px/1.38 var(--sans)}
i.stub{position:absolute;right:28px;top:20px;background:#D23B3B;color:#fff;font:800 14px var(--sans);padding:4px 12px;border-radius:999px;font-style:normal;opacity:.85;letter-spacing:.04em}
/* ---------- dark on purpose: the curtain, the hand-off */
.slide.dark{background:radial-gradient(circle at 18% 22%,color-mix(in srgb,var(--acc) 42%,transparent) 0,transparent 46%),radial-gradient(circle at 88% 90%,color-mix(in srgb,var(--acc) 26%,transparent) 0,transparent 40%),#151B3D}
.k-handoff .card.list{background:transparent;border:0;box-shadow:none;font-size:52px;display:flex;align-items:center;padding-left:0}
/* on a dark board a perek colour is too deep to read as text: text accents take its light tint (fills stay the colour itself) */
:root[data-theme=dark] .kick,:root[data-theme=dark] .slide header h1 .he,:root[data-theme=dark] .mbody h3,:root[data-theme=dark] .stext h4{color:var(--acc4)}
:root[data-theme=dark] .mbody h3,:root[data-theme=dark] .mbody .key,:root[data-theme=dark] .llab{color:color-mix(in srgb,var(--f) 50%,#fff)}
.slide.dark .kick,.slide.dark header h1 .he{color:var(--acc4)}
.cband .kick{color:rgba(255,255,255,.82)!important}
.k-handoff ul.bul li::before{background:var(--acc2);box-shadow:none}
.k-handoff header h1{font-size:76px}
/* ---------- topics: numbered colour cards (the opener's stops) */
ol.tops{position:absolute;left:80px;right:80px;top:218px;bottom:56px;margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:16px;font-size:32px;overflow:hidden}
ol.tops li{display:flex;gap:22px;align-items:center;background:var(--panel);border:2px solid var(--line);border-radius:16px;padding:14px 22px;box-shadow:0 4px 12px var(--shadow)}
ol.tops i{flex:none;width:52px;height:52px;border-radius:50%;color:#fff;font:900 26px/52px var(--sans);text-align:center;font-style:normal}
ol.tops span{font-weight:700;line-height:1.25}
/* ---------- cover */
.k-cover{background:var(--board)}
.ctitle{position:absolute;left:0;right:0;top:34px;text-align:center;font:700 92px/1.1 var(--heb);color:var(--ink)}
.k-cover .dots{position:absolute;left:0;right:0;top:150px;display:flex;justify-content:center;gap:10px}
.k-cover .dots i{width:64px;height:8px;border-radius:4px}
.cpic{position:absolute;left:0;right:0;top:186px;bottom:118px;display:flex;justify-content:center;gap:24px}
.cpic img{height:100%;width:auto;max-width:1400px;object-fit:contain;border-radius:18px;border:6px solid var(--panel);box-shadow:0 10px 30px var(--shadow)}
.k-cover footer{position:absolute;left:170px;right:170px;bottom:24px;display:flex;justify-content:space-between;font:700 25px/1.38 var(--sans);color:var(--muted)}
/* ---------- his slides as pictures */
.imgcard{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:820px;aspect-ratio:4/3;max-width:1500px;background:var(--panel);border-radius:18px;padding:10px;border:2px solid var(--line);box-shadow:0 10px 34px var(--shadow)}
.imgcard img{display:block;width:100%;height:100%;object-fit:contain;border-radius:10px}
.k-image.perek{background:linear-gradient(135deg,var(--acc),color-mix(in srgb,var(--acc) 70%,#000))}
.k-image.perek .imgcard{border:0;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.k-image.dark{background:#0B0F26}
.k-image.dark .imgcard{background:transparent;border:0;box-shadow:none;padding:0;height:880px}
/* ---------- a night's curtain: Chaburah N / its name */
.sub{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.sub .kick{font-size:30px;color:var(--acc2)}
.sub h1{margin:18px 0 0;font:400 110px/1.05 var(--serif);color:#fff;max-width:1300px}
.sub .tick{margin:30px auto 0;width:160px;height:9px;background:var(--acc2)}
/* ---------- maps */
.banner{position:absolute;left:80px;right:80px;top:212px;text-align:center}
.banner span{display:inline-block;padding:10px 26px;border-radius:999px;background:var(--panel);border:2px solid var(--line);font:800 26px var(--sans);color:var(--ink)}
.mcols{position:absolute;left:80px;right:80px;top:286px;bottom:80px;display:flex;gap:26px}
.mcols.rtl{flex-direction:row-reverse}
.mcol{flex:1;display:flex;flex-direction:column;min-width:0;border-radius:18px;box-shadow:0 6px 18px var(--shadow)}
.mhead{background:var(--f);border-radius:18px 18px 0 0;padding:14px 10px 12px;text-align:center;color:#fff}
.mhead small{display:block;font:700 24px var(--heb);opacity:.85}
.mhead b{display:block;font:700 52px/1.1 var(--heb)}
.mbody{flex:1;background:var(--panel);border:3px solid var(--f);border-top:0;border-radius:0 0 18px 18px;padding:16px 20px;text-align:center;overflow:hidden;font-size:30px}
.mbody h3{margin:0;font:900 1.25em var(--sans);color:var(--f)}
.mbody small{display:block;color:var(--muted);font-weight:700;font-size:.78em;margin-bottom:12px}
.mbody .q p{margin:0 0 .25em;line-height:1.3;font-weight:600}
.mbody .key{margin:.45em auto 0;font:700 1.25em var(--heb);color:var(--f);background:var(--f2);border-radius:999px;padding:.1em .6em;display:inline-block}
:root[data-theme=dark] .mbody .key{background:transparent}
.mfoot{position:absolute;left:80px;right:80px;bottom:26px;text-align:center;font-size:20px;color:var(--muted)}
/* ---------- What We Will Learn */
.lrows{position:absolute;left:80px;right:60px;top:218px;bottom:40px;display:flex;flex-direction:column;gap:18px}
.lrow{flex:1;display:flex;gap:14px}
.lrow.rtl{flex-direction:row-reverse}
.llab{flex:0 0 150px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--f2);border-radius:16px;color:var(--f)}
:root[data-theme=dark] .llab{background:var(--panel)}
.llab b{font:700 46px var(--heb)}.llab small{font:800 18px var(--sans);color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.lboxes{flex:1;display:flex;gap:10px}
.lrow.rtl .lboxes{flex-direction:row-reverse}
.lbox{flex:1;background:var(--f);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px 12px;min-width:0;border-radius:14px;box-shadow:0 4px 12px var(--shadow);overflow:hidden}
.lbox b{font:800 30px/1.2 var(--sans)}.lbox small{margin-top:6px;font:700 19px var(--sans);opacity:.85}
/* ---------- Sources */
.sbtns{position:absolute;left:0;right:0;top:230px;bottom:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}
.sbtn{width:600px;padding:22px;border-radius:999px;background:var(--f);color:#fff;text-align:center;font:400 54px var(--serif);cursor:pointer;box-shadow:0 8px 0 color-mix(in srgb,var(--f) 70%,#000),0 14px 24px var(--shadow);text-decoration:none}
.sbtn:hover{filter:brightness(1.06)}
.scard{position:absolute;left:80px;top:60px;bottom:60px;width:640px;display:flex;flex-direction:column;gap:22px}
.scard h1{margin:0;background:var(--f);color:#fff;font:400 72px var(--serif);padding:130px 36px 26px;border-radius:18px;box-shadow:0 8px 22px var(--shadow)}
.sblurb{flex:1;padding:24px 30px;font-size:32px;line-height:1.4;font-weight:600;overflow:hidden;background:var(--panel);border:2px solid var(--line);border-radius:18px;box-shadow:0 6px 18px var(--shadow)}
.sblurb p{margin:0 0 .6em}
.stext{position:absolute;right:80px;top:60px;bottom:60px;width:740px;background:var(--panel);border:2px solid var(--line);border-top:10px solid var(--f);border-radius:18px;box-shadow:0 6px 18px var(--shadow);padding:28px 38px;font-size:34px;line-height:1.6;overflow:hidden}
.stext h4{margin:0 0 .4em;font:700 .8em var(--heb);color:var(--f)}
.stext p{margin:0 0 .35em}
/* ---------- the Mishnah, coloured with the room (its text stays on a paper card in every theme: the canon colours need it) */
.mside{position:absolute;left:64px;top:52px;width:300px;bottom:150px;display:flex;flex-direction:column}
.mside .kick{line-height:1.3;margin-bottom:12px}
.mside h1{margin:0;background:var(--acc);color:#fff;font:400 56px/1.12 var(--serif);padding:36px 28px;border-radius:18px;box-shadow:0 10px 24px var(--shadow)}
.mside .hint{color:var(--muted);font:600 21px/1.4 var(--sans);margin:30px 0 18px}
.mtools{display:flex;gap:10px}
.mtools button{font:800 19px var(--sans);border:2px solid var(--line);background:var(--panel);border-radius:999px;padding:8px 16px;cursor:pointer;color:var(--ink)}
.mtools button.on{background:var(--acc);color:#fff;border-color:var(--acc)}
.mtext{position:absolute;left:400px;right:44px;top:36px;bottom:150px;background:#FFFEFA;border:2px solid var(--line);border-radius:18px;box-shadow:0 6px 18px var(--shadow);padding:22px 34px;
  column-count:2;column-gap:56px;column-rule:2px solid #EEF2F9;column-fill:auto;font-size:40px;line-height:1.55;overflow:hidden;color:#6b645a}
.mtext h4{margin:0 0 .25em;font:700 .8em var(--heb);color:var(--acc)}
.mtext .blk{break-inside:avoid;margin-bottom:.6em}
.mtext .ln{margin:0 0 .12em;break-inside:avoid}
.cl{cursor:pointer;font-weight:700;border-bottom:.06em dotted #b3a891;border-radius:.12em;transition:color .15s,background .15s}
.cl:hover{background:rgba(232,163,23,.25)}
.cl.dec{border-bottom-color:transparent}
.cl.keyed{border-bottom-color:transparent}
.cl.miss{text-decoration:underline wavy;text-decoration-color:var(--room);text-underline-offset:.25em;text-decoration-thickness:.06em}
.pal{position:absolute;left:24px;right:24px;bottom:18px;height:112px;display:grid;grid-template-columns:repeat(10,1fr);gap:6px}
.pb{border:3px solid var(--line);border-radius:14px;background:var(--panel);padding:8px;cursor:pointer;text-align:left;display:grid;grid-template-columns:24px 1fr;grid-template-rows:auto auto;column-gap:8px;align-content:center;position:relative;box-shadow:0 3px 8px var(--shadow);font-family:var(--sans)}
.pb i{grid-row:1/3;width:24px;height:24px;border-radius:50%;background:var(--c);align-self:center}
.pb i.er{background:repeating-linear-gradient(45deg,#fff 0 5px,#d3daea 5px 8px);border:1px solid #c3cbe0}
.pb b{font-size:18px;line-height:1.1;color:var(--ink)}
.pb small{font-size:13px;line-height:1.15;color:var(--muted)}
.pb kbd{position:absolute;right:6px;top:4px;font:800 12px var(--sans);color:var(--muted);border:0;background:none;padding:0}
.pb.sel{border-color:var(--acc);box-shadow:0 0 0 3px var(--acc2)}
.keystep{display:none}
/* ---------- chart: a perek-coloured band, the table on a card */
.k-chart .cband{position:absolute;left:0;right:0;top:0;height:178px;background:linear-gradient(120deg,var(--acc),color-mix(in srgb,var(--acc) 72%,#000));color:#fff;padding:30px 80px}
.cband .kick{color:rgba(255,255,255,.82)}
.cband h1{margin:12px 0 0;font:700 64px/1 var(--heb);text-align:left}
.cband .nosei{position:absolute;right:80px;bottom:30px;display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:760px;text-align:right}
.cband .nosei b{font:700 30px var(--heb)}
.cband .nosei span{font:800 22px var(--sans);opacity:.9}
.ctab{position:absolute;left:80px;right:80px;top:212px;bottom:40px;overflow:hidden;font-size:31px}
.ctab table{width:100%;border-collapse:separate;border-spacing:0;background:#FFFEFA;border:2px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 6px 18px var(--shadow);color:#1B2140}
.ctab th{background:var(--acc);color:#fff;font:900 .72em var(--sans);text-transform:uppercase;letter-spacing:.1em;padding:.55em .8em;text-align:left}
.ctab td{padding:.55em .8em;border-top:1px solid #E3E8F2;vertical-align:top;line-height:1.35}
.ctab td.case{font-weight:700;background:var(--acc3);width:40%;color:#1B2140}
.ctab tr.case-first td{border-top:3px solid var(--acc2)}
.ctab tbody tr:first-child td{border-top:0}
.ctab .vspeaker{font-weight:900;color:var(--ctana)}
.ctab td.reason{font-size:.85em;color:var(--cb);width:26%}
.ctab td.reason.cg{color:var(--cg)}
.ctab td.reason.empty{color:#999;text-align:center}
.ctab .cr{color:var(--cr);font-weight:800}.ctab .cp{color:var(--cp);font-weight:800}.ctab .cs{color:var(--cs);font-weight:800}
.ctab .cn{color:var(--cn);font-weight:800}.ctab .cb{color:var(--cb)}.ctab .cpa,.ctab .cpb,.ctab .cpc{color:var(--cp);font-weight:800}
.ctab tr.step{transform:none}
/* ---------- Questions To Ponder: a card each */
.qs{position:absolute;left:80px;right:80px;top:218px;bottom:56px;display:flex;flex-direction:column;gap:22px;font-size:36px;overflow:hidden}
.qcard{display:flex;gap:26px;align-items:center;background:var(--panel);border:2px solid var(--line);border-left:12px solid var(--acc);border-radius:18px;padding:22px 30px;box-shadow:0 6px 18px var(--shadow)}
.qcard i{flex:none;width:64px;height:64px;border-radius:50%;background:var(--acc);color:#fff;font:900 40px/64px var(--serif);text-align:center;font-style:normal}
.qcard p{margin:0;font-weight:700;line-height:1.3}
/* ---------- the opener, inside the night */
.k-opener{background:var(--board)}
.k-opener iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent}
/* ---------- chrome: HUD, progress, black, menu, help, toast (the opener's light pills) */
#hud{position:fixed;right:14px;bottom:14px;display:flex;gap:6px;align-items:center;background:var(--panel);border:2px solid var(--line);padding:6px 8px;border-radius:999px;z-index:50;transition:opacity .5s;font-family:var(--sans);box-shadow:0 6px 18px var(--shadow)}
#hud.hide{opacity:0;pointer-events:none}
#hud button{font:800 15px var(--sans);background:var(--board);color:var(--ink);border:2px solid var(--line);border-radius:999px;padding:4px 12px;cursor:pointer}
#hud #pos{color:var(--muted);font:800 14px var(--sans);min-width:60px;text-align:center}
#bar{position:fixed;left:0;right:0;bottom:0;height:5px;z-index:40}
#bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#E35D5B,#F28A3A,#8CC152,#2DAACB,#8B6CCB);transition:width .3s}
#black{position:fixed;inset:0;background:#000;z-index:80}
#toast{position:fixed;left:50%;top:24px;transform:translateX(-50%);background:var(--panel);color:var(--ink);border:2px solid var(--line);padding:10px 20px;border-radius:999px;font:800 18px var(--sans);z-index:90;box-shadow:0 6px 18px var(--shadow)}
#menu,#help{position:fixed;inset:0;background:rgba(15,20,48,.45);z-index:70;display:flex;align-items:center;justify-content:center}
#menu[hidden],#help[hidden],#black[hidden],#toast[hidden]{display:none}
#menuBox{background:var(--panel);border:2px solid var(--line);border-radius:18px;padding:14px;max-height:84vh;overflow:auto;width:min(760px,92vw);display:flex;flex-direction:column;gap:4px}
#menuBox button{display:flex;gap:12px;text-align:left;font:700 16px var(--sans);background:transparent;color:var(--ink);border:0;border-radius:10px;padding:7px 10px;cursor:pointer}
#menuBox button:hover,#menuBox button.cur{background:var(--board)}
#menuBox button i{width:10px;border-radius:5px;flex:none}
#menuBox span{color:var(--muted);min-width:30px}
#help>div{background:var(--panel);color:var(--ink);border-radius:18px;padding:18px 26px;max-width:760px;font-size:17px}
#help h2{margin:0 0 8px;font-family:var(--serif);font-weight:400}
#help td{padding:4px 10px}
kbd{font:800 14px ui-monospace,Consolas,monospace;border:1px solid var(--line);border-bottom-width:2px;border-radius:4px;padding:0 5px;background:var(--board)}
/* transitions */
.fx-layer{position:absolute;inset:0;pointer-events:none;z-index:30;overflow:visible}
.fx-layer>.slide{display:block}
@media (prefers-reduced-motion:reduce){.step{transition:none}}

/* hero: a placed picture fills the slide first; click 1 lifts it away and the bullets follow (2026-10-13) */
.hero{position:absolute;inset:0;z-index:20;overflow:hidden;background:#14161c}
.hero.step{opacity:1;transform:none;transition:opacity .7s ease,transform .8s cubic-bezier(.2,.8,.2,1)}
.hero.step.on{opacity:0;transform:scale(1.06);pointer-events:none}
.nosteps .hero{display:none}
.hero .hbg{position:absolute;inset:-60px;width:calc(100% + 120px);height:calc(100% + 120px);object-fit:cover;filter:blur(36px) brightness(.55)}
.hero .hfg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}

/* labelled pictures: the slide's words composited live over a blank sign / bubble / banner (2026-10-14) */
.pbox,.hbox{position:relative;container-type:inline-size;margin:0 auto}
figure.pic .pbox>img,.hbox>img{display:block;width:100%;height:100%;object-fit:fill;max-height:none}
.hbox{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.plab{position:absolute;transform:translate(-50%,-50%);text-align:center;line-height:1.12;text-wrap:balance;pointer-events:none;color:#2a1f14}
.plab.pl-sign{font-family:var(--sans);font-weight:900;letter-spacing:.01em}
.plab.pl-bubble{font-family:var(--sans);font-weight:800;color:#1a1a1a}
.plab.pl-script{font-family:var(--heb);font-weight:500;color:#3b2a18;line-height:1.5;opacity:.88}
.plab.pl-banner{font-family:var(--serif);color:#4a3018}
.plab[dir=rtl]{font-family:var(--heb);font-weight:700}
.nosteps .hero.still{display:block}
.hero.still .hbg{inset:0;width:100%;height:100%}

/* bullet slides in colour (his 2026-10-14 redline: "just a bunch of bullet points ... nothing to inspire the kids"):
   each point a soft card in the next of his pyramid colours, its Hebrew in that colour */
.k-text ul.bul>li:not(.lv1){--bc:#E35D5B;background:color-mix(in srgb,var(--bc) 9%,var(--panel));border-left:7px solid var(--bc);border-radius:14px;padding:.32em .6em .32em 48px}
.k-text ul.bul>li:not(.lv1)::before{background:var(--bc);box-shadow:0 0 0 5px color-mix(in srgb,var(--bc) 25%,transparent);left:14px}
.k-text ul.bul>li:nth-child(5n+2){--bc:#2DAACB}.k-text ul.bul>li:nth-child(5n+3){--bc:#8CC152}
.k-text ul.bul>li:nth-child(5n+4){--bc:#8B6CCB}.k-text ul.bul>li:nth-child(5n+5){--bc:#F28A3A}
.k-text ul.bul>li:not(.lv1) bdi.he{color:color-mix(in srgb,var(--bc) 70%,#000)}
:root[data-theme=dark] .k-text ul.bul>li:not(.lv1) bdi.he{color:color-mix(in srgb,var(--bc) 55%,#fff)}

/* the cases slide: his flow, then one card per case */
.cases{position:absolute;left:80px;right:80px;top:200px;bottom:50px;display:flex;flex-direction:column;justify-content:center;gap:44px}
.cflows{display:flex;align-items:center;gap:10px}
.cflow{flex:1;background:var(--panel);border:2px solid var(--line);border-radius:16px;padding:16px 20px;font:600 26px/1.3 var(--sans);text-align:center;box-shadow:0 4px 12px var(--shadow)}
.carrow{flex:0 0 34px;height:34px;background:var(--acc);clip-path:polygon(0 25%,55% 25%,55% 0,100% 50%,55% 100%,55% 75%,0 75%)}
.ccards{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.ccard{min-height:300px;background:color-mix(in srgb,var(--cc) 12%,var(--panel));border:3px solid var(--cc);border-top-width:14px;border-radius:18px;padding:18px 20px;display:flex;flex-direction:column;box-shadow:0 6px 16px var(--shadow)}
.ccard b{font:900 22px var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--cc)}
.ccard h3{margin:.2em 0 .35em;font:400 48px/1.1 var(--serif);color:var(--ink)}
.ccard p{margin:0;font:600 31px/1.35 var(--sans);color:var(--ink)}
.ccard bdi.he{color:color-mix(in srgb,var(--cc) 70%,#000)}

/* the colour key: one card per colour, with where it shows up in this Mishnah */
.kgrid{position:absolute;left:80px;right:80px;top:200px;bottom:50px;display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:1fr;gap:18px}
.kcard{display:flex;gap:16px;align-items:flex-start;background:color-mix(in srgb,var(--kc) 9%,var(--panel));border:2px solid color-mix(in srgb,var(--kc) 45%,var(--line));border-radius:16px;padding:14px 18px;box-shadow:0 4px 12px var(--shadow);overflow:hidden}
.kcard>i{flex:0 0 40px;height:40px;border-radius:50%;background:var(--kc);box-shadow:0 0 0 6px color-mix(in srgb,var(--kc) 22%,transparent);margin-top:4px}
.kcard b{display:block;font:800 30px/1.1 var(--sans);color:var(--ink)}
.kcard small{display:block;font:600 21px/1.3 var(--sans);color:var(--muted);margin-top:2px}
.kcard p{margin:.35em 0 0;font:700 27px/1.3 var(--heb);color:var(--kc)}
.kcard p.none{font:italic 600 20px var(--sans);color:var(--muted)}
.plab.ink{mix-blend-mode:multiply;filter:url(#ink);color:#3a200c}
.plab.ink.pl-script{color:#3f2510;opacity:1;font-weight:700}

/* night 3 (2026-10-14): the machlokes slide - two cards side by side, one click each (also any two-sided contrast) */
.mk{position:absolute;left:80px;right:80px;top:200px;bottom:50px;display:flex;flex-direction:column;justify-content:center;gap:30px}
.mlead{margin:0;background:var(--panel);border:2px solid var(--line);border-radius:16px;padding:14px 24px;font:600 30px/1.35 var(--sans);text-align:center;box-shadow:0 4px 12px var(--shadow)}
.mkcards{display:flex;align-items:stretch;gap:20px}
.mkcard{flex:1;background:color-mix(in srgb,var(--cc) 11%,var(--panel));border:3px solid var(--cc);border-top-width:16px;border-radius:20px;padding:22px 28px;display:flex;flex-direction:column;gap:10px;box-shadow:0 6px 16px var(--shadow)}
.mkcard>b{font:900 30px var(--sans);letter-spacing:.06em;color:var(--cc)}
.mkhe{font:700 34px/1.35 var(--heb);color:color-mix(in srgb,var(--cc) 70%,#000)}
.mkcard h3{margin:0;font:400 44px/1.15 var(--serif);color:var(--ink)}
.mkcard p{margin:0;font:600 29px/1.38 var(--sans);color:var(--ink)}
.mkcard bdi.he,.dvcol bdi.he{color:color-mix(in srgb,var(--cc) 70%,#000)}
.mkvs{flex:0 0 auto;align-self:center;font:900 30px var(--serif);font-style:normal;color:var(--acc);background:var(--panel);border:3px solid var(--acc);border-radius:50%;width:76px;height:76px;line-height:70px;text-align:center}
.mfootl{margin:0;align-self:center;background:var(--acc3);border:2px solid var(--acc2);border-radius:999px;padding:12px 30px;font:700 28px/1.3 var(--sans);text-align:center}
:root[data-theme=dark] .mkhe,:root[data-theme=dark] .mkcard bdi.he,:root[data-theme=dark] .dvcol bdi.he{color:color-mix(in srgb,var(--cc) 55%,#fff)}
:root[data-theme=dark] .mfootl{background:var(--panel);border-color:var(--line)}

/* night 3: the divide slide - the Mishnah's own numbers, money | lashes */
.dv{position:absolute;left:80px;right:80px;top:200px;bottom:50px;display:flex;flex-direction:column;justify-content:center;gap:26px}
.dvcols{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.dvcol{background:color-mix(in srgb,var(--cc) 9%,var(--panel));border:3px solid var(--cc);border-top-width:16px;border-radius:20px;padding:18px 26px;display:flex;flex-direction:column;gap:14px;box-shadow:0 6px 16px var(--shadow)}
.dvcol h3{margin:0;font:400 44px/1.1 var(--serif);color:var(--cc)}
.dvwhole{font:700 31px/1.3 var(--sans);color:var(--ink);padding-bottom:6px;border-bottom:2px dashed color-mix(in srgb,var(--cc) 45%,var(--line))}
.dvrow{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;white-space:nowrap}
.dvl{flex:0 0 196px;font:700 26px/1.2 var(--sans);color:var(--muted)}
.dvchips{display:flex;gap:10px}
.dvchips i{font:800 36px/1 var(--sans);font-style:normal;background:var(--panel);color:var(--ink);border:3px solid var(--cc);border-radius:14px;padding:8px 12px;min-width:60px;text-align:center;box-shadow:0 3px 8px var(--shadow)}
.dvsum{font:800 30px var(--sans);color:var(--cc)}

/* night 3: the recap - last time's picture, one line, its cases as chips */
.rc{position:absolute;left:80px;right:80px;top:196px;bottom:46px;display:flex;gap:40px;align-items:center}
.rc figure.rcpic{flex:0 0 860px}
.rcside{flex:1;display:flex;flex-direction:column;gap:20px;align-self:stretch;justify-content:center;overflow:hidden}
.rcline{margin:0;font:700 34px/1.35 var(--sans);color:var(--ink)}
.rcchips{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.rcchip{background:color-mix(in srgb,var(--cc) 12%,var(--panel));border:3px solid var(--cc);border-left-width:14px;border-radius:16px;padding:12px 18px;box-shadow:0 4px 12px var(--shadow)}
.rcchip b{display:block;font:900 18px var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--cc)}
.rcchip span{font:400 36px/1.15 var(--serif);color:var(--ink)}

/* night 3: a Mishnah's picture slide before the picture is made */
.k-picture figure.mpic{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:1200px;height:700px}
.k-picture .kick{position:absolute;left:80px;top:40px}

/* EDIT MODE (2026-10-14): E - the plan's words editable, a comment + picture idea per slide, exported to Downloads */
body.editing [data-src]{outline:2px dotted color-mix(in srgb,var(--acc,#8B6CCB) 70%,transparent);outline-offset:3px;border-radius:6px;cursor:text}
body.editing [data-src]:hover{background:color-mix(in srgb,#FFE58A 35%,transparent)}
body.editing [data-src]:focus{outline:3px solid #F2B705;background:#FFF8D6;color:#1B2140}
[data-src].edited{background:color-mix(in srgb,#FFE58A 45%,transparent);box-shadow:inset 0 -3px 0 #F2B705}
#edit{position:fixed;right:14px;top:14px;width:360px;z-index:70;background:var(--panel);color:var(--ink);border:3px solid #F2B705;border-radius:18px;padding:14px 16px;box-shadow:0 10px 30px rgba(0,0,0,.25);font-family:var(--sans);display:flex;flex-direction:column;gap:10px}
#edit[hidden]{display:none}
#edit .edhead{display:flex;flex-direction:column;gap:2px}
#edit .edhead b{font:900 14px var(--sans);letter-spacing:.14em;color:#B88600}
#edit .edhead span{font:700 16px/1.3 var(--sans)}
#edit label{display:flex;flex-direction:column;gap:4px;font:800 13px var(--sans);color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
#edit textarea{font:500 16px/1.4 var(--sans);text-transform:none;letter-spacing:0;color:var(--ink);background:var(--board);border:2px solid var(--line);border-radius:10px;padding:8px 10px;resize:vertical}
#edit .edcount{font:600 13px var(--sans);color:var(--muted)}
#edit .edbtns{display:flex;gap:8px}
#edit .edbtns button{flex:1;font:800 15px var(--sans);border-radius:999px;padding:8px 10px;cursor:pointer;border:2px solid #F2B705;background:#FFF3C4;color:#5a4300}
#edit .edbtns button#edExit{background:var(--board);color:var(--ink);border-color:var(--line)}
#edit .edhint{margin:0;font:500 12.5px/1.35 var(--sans);color:var(--muted)}

/* the chart game (2026-10-24) */
.gtab{position:absolute;left:80px;right:80px;top:200px;bottom:250px;overflow:hidden;font-size:26px}
.gtab table{width:100%;border-collapse:separate;border-spacing:0;background:#FFFEFA;border:2px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 6px 18px var(--shadow);color:#1B2140}
.gtab th{background:var(--acc);color:#fff;font:900 .72em var(--sans);text-transform:uppercase;letter-spacing:.1em;padding:.5em .8em;text-align:left}
.gtab td{padding:.4em .7em;border-top:1px solid #E3E8F2;vertical-align:middle;line-height:1.3}
.gtab tbody tr:first-child td{border-top:0}
.gtab td.case{font-weight:700;background:var(--acc3);width:52%}
.gslot{min-height:2.2em}
.gtray{position:absolute;left:80px;right:80px;bottom:34px;height:196px;border:3px dashed var(--line);border-radius:18px;display:flex;flex-wrap:wrap;gap:14px;align-content:center;justify-content:center;padding:12px}
.gcard{font:600 23px/1.25 var(--sans);background:#fff;color:#1B2140;border:2px solid var(--line);border-radius:14px;padding:10px 16px;max-width:620px;box-shadow:0 4px 12px var(--shadow);cursor:pointer;user-select:none}
.gcard:hover{border-color:var(--gold)}
.gcard.placed{display:block;max-width:none;box-shadow:none;border-color:transparent;background:var(--acc3);cursor:default;padding:6px 12px;font-size:24px}
.gcard .cr{color:var(--cr);font-weight:800}.gcard .cp{color:var(--cp);font-weight:800}.gcard .cs{color:var(--cs);font-weight:800}.gcard .gwho{color:var(--ctana)}
.greset{position:absolute;right:92px;bottom:40px;width:38px;height:38px;border-radius:50%;border:2px solid var(--line);background:#fff;color:#556;font-size:20px;cursor:pointer;opacity:.6}
.greset:hover{opacity:1}
