/* reinforcement_learning: the deck's own styles, after deck-kit.css. Layout as in clustering_kmeans and cnn_land:
   a title, then a body centred in the rest of the slide; html.portrait is a phone held upright (540 by 960). */
.reveal .slides section > h2 { margin-bottom: 0.25em; padding-right: 56px; }
.reveal .sub { font-size: 0.62em; }
.reveal p { margin: 0.25em 0; }
.reveal .slides [hidden] { display: none !important; }
.body { height: 540px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.lay { display: flex; gap: 34px; align-items: center; }
.lay.top { align-items: flex-start; }
.lay.center { justify-content: center; }
.lay > .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lay > svg, .lay > .fig { flex: none; }
.fig { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.reveal svg.viz { overflow: visible; max-width: 100%; height: auto; display: block; }
.eyebrow { font: 600 15px 'JetBrains Mono', monospace; letter-spacing: 3px; text-transform: uppercase; color: #dbe4f5; margin: 0; }
.cap { font-size: 17px; color: #dbe4f5; text-align: center; margin: 0; line-height: 1.35; }
.cap b { color: #e6ebf5; }
.src { font-size: 15px; color: #dbe4f5; margin: 0 !important; text-align: center; word-break: break-word; }
.src a { color: #61afef; }
.list { margin: 0; padding-left: 1.1em; font-size: 24px; } .list li { margin: 8px 0; line-height: 1.42; }
.list.small { font-size: 21.6px; }
.take { font-size: 23px; line-height: 1.5; margin: 0; padding-left: 1.2em; } .take li { margin: 8px 0; }
.eq { font-size: 26px; }
.eqline { text-align: center; font-size: 26px; white-space: nowrap; margin: 6px 0; }
.eqline.big { font-size: 30px; }
.pill { display: inline-block; background: #274768; border-radius: 10px; padding: 6px 18px; }
.pill.red { background: #6e2a33; }
.algo { font-size: 23px; border: 1px solid rgba(219,228,245,0.25); border-radius: 14px; padding: 14px 22px; white-space: nowrap; }
.algo p { margin: 3px 0 !important; }
.algo .in { border-left: 2px solid #4a5261; padding-left: 16px; margin: 4px 0 4px 10px; }
.algo .kw { font-weight: 700; }
.deriv { font-size: 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.deriv .why { font-size: 18px; color: #dbe4f5; }
.notation td { padding: 3px 12px; vertical-align: top; font-size: 20px; border-bottom: 1px solid #222937; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn.small { font-size: 17px; padding: 6px 12px; line-height: 1.2; }
.btn.on { background: rgba(229,192,123,0.18); border-color: #e5c07b; color: #fff; }
.btn.go { background: #e5c07b; color: #0d1017; border-color: #e5c07b; font-weight: 600; font-size: 18px; padding: 8px 16px; }
.btn.go.alt { background: transparent; color: #e5c07b; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:focus-visible { outline: 2px solid #e5c07b; outline-offset: 2px; }
.ctl { display: flex; flex-direction: column; gap: 10px; font-size: 19px; color: #e6ebf5; }
.ctl label { display: flex; align-items: center; gap: 10px; }
.ctl input[type=range] { width: 220px; accent-color: #d19a66; }
.ctl .val { font-family: 'JetBrains Mono', monospace; color: #e5c07b; min-width: 3.2em; display: inline-block; }
.read { font-size: 19px; color: #e6ebf5; line-height: 1.45; margin: 0; }
.read b { color: #e5c07b; font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.read .bad { color: #e06c75; } .read .good { color: #98c379; }
svg .lab { font: 15px 'DM Sans', sans-serif; fill: #e6ebf5; }
svg .lab.big { font-size: 19px; } svg .lab.strong { font-weight: 700; }
svg .lab.mono { font-family: 'JetBrains Mono', monospace; }
svg .math { font: italic 20px 'KaTeX_Math', 'Times New Roman', serif; fill: #e6ebf5; }
svg .math.up { font-style: normal; font-family: 'KaTeX_Main', 'Times New Roman', serif; }
svg .tick text { font-size: 14px; }
.video { position: relative; width: 760px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
table.tb { border-collapse: collapse; font-size: 19px; margin: 4px 0; }
table.tb th { font: 600 16px 'DM Sans', sans-serif; padding: 5px 12px; color: #e6ebf5; border-bottom: 1px solid #4a5261; text-align: center; }
table.tb td { padding: 5px 12px; text-align: center; font-family: 'JetBrains Mono', monospace; color: #e6ebf5; border-bottom: 1px solid #222937; }
table.tb td.l { text-align: left; font-family: 'DM Sans', sans-serif; }
table.tb tr.me td { background: rgba(229,192,123,0.16); }
.league-form { display: grid; grid-template-columns: auto auto; gap: 8px 14px; align-items: center; font-size: 19px; }
.league-form input[type=text], .league-form input[type=number] { font: 18px 'DM Sans', sans-serif; background: #161b26; color: #e6ebf5; border: 1px solid #4a5261; border-radius: 6px; padding: 5px 8px; width: 170px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid #2a3140; border-radius: 10px; padding: 12px 16px; background: #121722; }
.card b { font-size: 20px; color: #e5c07b; } .card p { font-size: 18px; margin: 6px 0 0; line-height: 1.42; }
.reveal pre.codebox { width: 100%; font-size: 0.75em; line-height: 1.35; margin: 0; max-height: none !important; }
.reveal pre.codebox code { max-height: none; padding: 12px 20px; font-size: 22.5px; line-height: 1.25; font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }   /* 0.75em: the code floor */
.rc { font-size: 17px; color: #e6ebf5; margin: 4px 0 0 !important; font-family: 'JetBrains Mono', monospace; white-space: pre; line-height: 1.35; }
.chain-wrap { display: flex; justify-content: center; }
.notes-q { font-size: 21px; }

/* ---- Nov 24: the weight of the Keynote this deck came from. Large type, few words, bold figures ---- */
html:not(.portrait) .reveal .slides section > h2 { font-size: 44px; line-height: 1.12; }
html:not(.portrait) .reveal h2 .sub { font-size: 25px; line-height: 1.3; margin-top: 0.25em; }
html:not(.portrait) .reveal .small-text { font-size: 24px; line-height: 1.4; }
html:not(.portrait) .list { font-size: 30px; } html:not(.portrait) .list li { margin: 12px 0; line-height: 1.32; }
html:not(.portrait) .list.small { font-size: 26px; } html:not(.portrait) .list.small li { margin: 8px 0; }
html:not(.portrait) .take { font-size: 29px; line-height: 1.4; } html:not(.portrait) .take li { margin: 14px 0; }
html:not(.portrait) .eqline { font-size: 32px; }
html:not(.portrait) .eqline.big { font-size: 40px; margin: 12px 0; }
html:not(.portrait) .say { font-size: 31px; line-height: 1.35; margin: 0.35em 0; }
html:not(.portrait) .say.q { color: #e5c07b; font-weight: 600; }
html:not(.portrait) .cap { font-size: 21px; }
html:not(.portrait) .algo { font-size: 27px; padding: 18px 26px; border-width: 2px; }
html:not(.portrait) .deriv { font-size: 24px; gap: 10px 18px; } html:not(.portrait) .deriv .why { font-size: 20px; }
html:not(.portrait) .notation td { font-size: 26px; padding: 7px 16px; }
html:not(.portrait) .btn.small { font-size: 21px; padding: 8px 15px; }
html:not(.portrait) .btn.go { font-size: 22px; padding: 10px 18px; }
html:not(.portrait) .ctl { font-size: 23px; gap: 12px; } html:not(.portrait) .ctl input[type=range] { width: 260px; }
html:not(.portrait) .read { font-size: 25px; line-height: 1.4; }
html:not(.portrait) table.tb { font-size: 24px; } html:not(.portrait) table.tb th { font-size: 21px; padding: 8px 14px; } html:not(.portrait) table.tb td { padding: 8px 14px; }
html:not(.portrait) .card b { font-size: 23px; } html:not(.portrait) .card p { font-size: 20px; }
html:not(.portrait) svg .lab { font-size: 17px; } html:not(.portrait) svg .lab.big { font-size: 22px; }
html:not(.portrait) .video { width: 860px; }
.kr { color: #e06c75; font-weight: 700; }                       /* the Keynote's red word */
.hy { background: #f2c94c; color: #0d1017; border-radius: 6px; padding: 0 0.22em; font-weight: 600; }   /* and its yellow marker */
.pad { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; justify-content: start; align-items: center; }
.pad .btn { min-width: 112px; text-align: center; font-size: 24px !important; padding: 12px 14px !important; }
.pad .sp { visibility: hidden; }
.score { font: 700 30px 'JetBrains Mono', monospace; color: #f2c94c; }
.map2 { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: center; font-size: 24px; }
.map2 .m { white-space: nowrap; }
.map2 code { font: 500 20px 'JetBrains Mono', monospace; background: #161b26; border: 1px solid #2f3747; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.c1 { color: #e5c07b; } .c2 { color: #61afef; } .c3 { color: #98c379; } .c4 { color: #e06c75; }
.codecol { flex: 0 0 auto; }
html:not(.portrait) .reveal section[data-layer="code"] .lay { align-items: flex-start; gap: 26px; }
html:not(.portrait) .reveal section[data-layer="code"] .lay > .codecol { width: 800px; }   /* 55 characters at the code floor, 22.5px */
html:not(.portrait) .reveal section[data-layer="code"] .lay > .txt { gap: 12px; }

/* ---- Nov 26: answers that arrive one at a time and line up; legends made of swatches; targets side by side ---- */
.ans { display: grid; grid-template-columns: 58px 132px 1fr; align-items: baseline; font-size: 31px; line-height: 1.25; margin: 12px 0; }
.ans .sym { font-size: 42px; font-weight: 700; }
.ans .what { color: #b9c4d8; font-weight: 600; }
.ans.vals { grid-template-columns: 58px auto 1fr; column-gap: 14px; font-size: 27px; margin: 6px 0; }
.ans.vals .sym { font-size: 36px; }
.lg { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; font-size: 20px; color: #e6ebf5; margin: 0 !important; }
.lg span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.lg i { display: inline-block; width: 30px; height: 7px; border-radius: 4px; flex: none; }
.lg i.bx { width: 24px; height: 17px; border-radius: 4px; }
.lg i.fr { width: 22px; height: 17px; border-radius: 4px; border: 3px dashed #ffffff; background: none; box-sizing: border-box; }
html:not(.portrait) table.tb.tg { font-size: 29px; } html:not(.portrait) table.tb.tg td { padding: 15px 20px; font-family: 'DM Sans', sans-serif; } html:not(.portrait) table.tb.tg td.l:first-child { font-weight: 700; color: #ffffff; }
html:not(.portrait) table.tb.tg th { font-size: 22px; }
html:not(.portrait) table.tb.tg.cmp { font-size: 23px; align-self: center; } html:not(.portrait) table.tb.tg.cmp td { padding: 8px 16px; } html:not(.portrait) table.tb.tg.cmp th { font-size: 22px; }
html:not(.portrait) .reveal section[data-layer="deep"] .deriv { font-size: 27px; gap: 14px 26px; } html:not(.portrait) .reveal section[data-layer="deep"] .deriv .why { font-size: 22px; }
.reveal .slides section svg .fragment { transition: opacity 0.2s ease; }
html.portrait .ans { grid-template-columns: 40px 90px 1fr; font-size: 20px; } html.portrait .ans .sym { font-size: 26px; }
html.portrait .ans.vals { font-size: 16px; } html.portrait .lg { font-size: 16px; }

/* ---- a phone held upright: 540 by 960, one column ---- */
html.portrait .reveal { font-size: 26px; }
html.portrait .reveal .slides section { padding-top: 14px; }
html.portrait .reveal .slides section > h2 { font-size: 30px; line-height: 1.15; padding-right: 0; }
html.portrait .reveal .sub { font-size: 18px; line-height: 1.3; }
html.portrait .body { height: auto; justify-content: flex-start; gap: 12px; margin-top: 8px; }
html.portrait .lay { flex-direction: column; align-items: stretch; gap: 14px; }
html.portrait .lay > svg, html.portrait .lay > .fig { align-self: center; }
html.portrait .list { font-size: 22px; } html.portrait .take { font-size: 21px; }
html.portrait .cap { font-size: 19px; }
html.portrait .eqline, html.portrait .eqline.big { font-size: 17px; white-space: nowrap; overflow-x: auto; overflow-y: hidden; }
html.portrait .key-k2 { font-size: 17px !important; white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding: 0.5em 0.6em; }
html.portrait .algo p { white-space: nowrap; } html.portrait .algo { overflow-x: auto; font-size: 16px; }
html.portrait .algo { font-size: 18px; white-space: normal; padding: 10px 12px; }
html.portrait .deriv { font-size: 17px; grid-template-columns: 1fr; } html.portrait .deriv .why { font-size: 17px; }
html.portrait .cards { grid-template-columns: 1fr; }
html.portrait .ctl input[type=range] { width: 100%; }
html.portrait .ctl label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
html.portrait .ctl label input[type=checkbox] { width: 28px; height: 28px; }
html.portrait .ctl label:has(input[type=checkbox]) { grid-template-columns: auto 1fr; }
html.portrait table.tb { font-size: 16px; } html.portrait table.tb td, html.portrait table.tb th { padding: 4px 6px; }
html.portrait .katex-display { overflow-x: auto; overflow-y: hidden; font-size: 0.82em; }
html.portrait .reveal pre.codebox { font-size: 15px; }
html.portrait .reveal pre.codebox code { max-height: none; overflow-x: auto; white-space: pre; }
html.portrait .rc { font-size: 14px; white-space: pre-wrap; }
html.portrait .video { width: 100%; }
html.portrait svg .lab { font-size: 19px; } html.portrait svg .math { font-size: 23px; }
html.touch .btn { min-height: 44px; }
html.portrait .reveal-viewport { --tap: max(64px, calc(44px / var(--slide-scale, 0.69))); }
html.touch.portrait .btn { min-height: var(--tap); font-size: 20px; padding-left: 14px; padding-right: 14px; }
html.touch.portrait input[type=range] { height: var(--tap); }
html.portrait .league-form { grid-template-columns: 1fr; }
html.portrait .notation td { font-size: 17px; padding: 2px 6px; }
/* the platform's quiz slides on a phone: as tall as their question */
html.portrait .reveal .slides section.quiz-engine-slide { height: auto !important; min-height: 0 !important; display: block !important; padding: 18px 0 10px !important; }
html.portrait .reveal .slides section.quiz-engine-slide > .quiz-engine-mount { flex: none; height: auto; }
html.portrait .reveal .quiz-engine-slide .qe { height: auto; }
html.portrait .reveal .quiz-engine-slide .qe-scroll { flex: none; overflow: visible; padding: 0; }
html.portrait .reveal .quiz-engine-slide .qe-mode-slide { font-size: max(20px, calc(14.5px / var(--slide-scale, 0.69))); }
html:not(.portrait) .reveal .quiz-engine-slide .qe-mode-slide .qe-scroll { padding-left: 64px; padding-right: 64px; }
/* code slides: the code starts under the title, so the Run button under it stays on the slide */
.reveal section[data-layer="code"] .body { justify-content: flex-start; height: auto; gap: 8px; }
html.portrait #expectation .eqline.big { font-size: 15px; }
html.portrait .reveal .slides section:has(> .concept-links) { padding-top: 42px; }   /* the platform's concept links sit at the top: keep the title under them */
