/* Lecture 2 session 02 deck only. GENERATED into slides/polish.css by slides_build/assemble.py:
   this base, then each part's CSS (partA/partA.css, partB/partB.css, partC/partC.css). */

/* slide 1: copyright and version (as Lecture 1 session 01) */
.slide.cover .copyright { position: absolute; left: 64px; right: 64px; bottom: 100px; color: #7f96aa; opacity: .6; font-size: 14px; }
.slide.cover .version { position: absolute; left: 64px; bottom: 72px; letter-spacing: .06em; color: #7f96aa; opacity: .6; font-size: 14px; font-variant-numeric: tabular-nums; }

/* slide 2: recap table (as Lecture 1 session 01's Part 1 recap) */
.slide.recap .fit > table { width: 100%; font-size: 23px; line-height: 1.32; }
.slide.recap .fit > table th { font-size: 15px; text-align: left; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; }
.slide.recap .fit > table td { padding: 8px 10px; vertical-align: top; }
.slide.recap .fit > table td:first-child { width: 7%; font-weight: 700; color: var(--orange-2); }
.slide.recap .fit > table td:first-child a { color: inherit; }
.slide.recap .fit > table td:nth-child(2) { width: 33%; font-weight: 600; }
.slide.recap p.key { margin-top: 14px; }

/* outline: jump links keep the text colour */
.slide.agenda .card .tag a { color: inherit; }

/* today's question: three small cards under the question */
.slide.opening-question .fit { gap: 18px; }
.slide.opening-question .big span { color: var(--orange-2); }
.slide.opening-question .fit > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* homework task and questions (as Lecture 1 session 01, slides 68–69) */
.slide.task .task-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 10px; }
.slide.task .board-steps li { font-size: 27px; line-height: 1.35; margin-bottom: 10px; padding-left: 52px; }
.slide.task .card.deliver { border-top: 3px solid var(--orange); padding: 16px 22px; }
.slide.task .card.deliver p { font-size: 27px; line-height: 1.3; margin-bottom: 8px; padding-left: 18px; position: relative; }
.slide.task .card.deliver p::before { content: "•"; position: absolute; left: 0; color: var(--orange-2); }
.slide.task .card.deliver code { font-size: .9em; }
.slide.task p.same { font-size: 27px; color: var(--muted); margin-top: 8px; }
.slide.homework .fit > .grid > .card p { font-size: 27px; line-height: 1.35; margin-bottom: 9px; }
.slide.homework .callout { margin-top: 12px; padding-top: 12px; padding-bottom: 12px; }

/* part openers: the plan on the left, a short recap of the previous part on the right (as Lecture 1 session 01) */
.slide.section-open.with-recap > h1, .slide.section-open.with-recap > p, .slide.section-open.with-recap > .seg { max-width: 660px; }
.slide.section-open.with-recap > h1 { font-size: 54px; }
.slide.section-open.with-recap > p:not(.eb) { font-size: 26px; line-height: 1.4; margin-bottom: 30px; }
.slide.section-open.with-recap .recap { position: absolute; top: 118px; right: 60px; width: 440px; padding: 18px 22px; border-radius: 10px; background: rgba(255, 255, 255, .07); border-left: 4px solid var(--orange); }
.slide.section-open.with-recap .recap .t { font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b9cbd8; margin-bottom: 10px; }
.slide.section-open.with-recap .recap ul { margin: 0; padding-left: 1.1em; }
.slide.section-open.with-recap .recap li { font-size: 20px; line-height: 1.35; color: #fff; margin: 0 0 10px; }
.slide.section-open .seg span:last-child:empty { display: none; }
/* jump links: outline and the part openers */
.slide .seg a[data-goto] { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .06em; text-underline-offset: .16em; }
.slide .seg a[data-goto]:hover { text-decoration-thickness: .1em; }
/* part openers with more than four segments: tighter rows so all fit */
.slide.section-open.many { padding-top: 40px; }
.slide.section-open.many h1 { margin: 10px 0 12px; }
.slide.section-open.many > p:not(.eb) { margin-bottom: 18px; }
.slide.section-open.many .seg { padding: 9px 0; font-size: 28px; }

/* ───── Session 02 frame ───── */

/* outline: today's card has seven rows (opening, A, B, break, C, close, talk). The theme mutes rows 3 and 5
   by position (made for A ☕ B ☕ C); here the break and the talk rows carry .quiet instead. */
.slide.agenda .card .seg:nth-of-type(n) { color: var(--text); font-size: 28px; margin: 2px 0; }
.slide.agenda .card .seg.quiet:nth-of-type(n) { color: var(--muted); font-size: 27px; }
.slide.agenda .card .seg b { font-size: 22px; }
.slide.agenda .fit > .card:first-child p { color: var(--muted); }

/* five pieces: diagram left, list right */
.slide.five-pieces .fp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.slide.five-pieces .fp-art { width: 100%; height: auto; max-height: 355px; display: block; }
.slide.five-pieces .fp-art .hframe { fill: none; stroke: var(--orange); stroke-width: 2; stroke-dasharray: 10 6; }
.slide.five-pieces .fp-art text.hlbl { font-size: 17px; font-weight: 700; letter-spacing: .06em; fill: var(--orange-2); text-anchor: start; }
.slide.five-pieces p.key { margin-top: 6px; }
.slide.five-pieces .fp-art .box { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.slide.five-pieces .fp-art .box.mdl { fill: var(--panel); stroke-dasharray: 6 5; }
.slide.five-pieces .fp-art .box.env { stroke: var(--orange); }
.slide.five-pieces .fp-art text { font-size: 24px; font-weight: 700; fill: var(--blue); text-anchor: middle; }
.slide.five-pieces .fp-art text.sm { font-size: 18px; font-weight: 400; fill: var(--muted); }
.slide.five-pieces .fp-art text.lbl { font-size: 18px; font-weight: 600; fill: var(--orange-2); }
.slide.five-pieces .fp-art text.lbl.start { text-anchor: start; }
.slide.five-pieces .fp-art .wire { fill: none; stroke: var(--blue); stroke-width: 2.4; }
.slide.five-pieces .fp-art .wire.loop { stroke: var(--orange); stroke-dasharray: 7 5; }
.slide.five-pieces .fp-art marker path { fill: var(--blue); }
.slide.five-pieces .fp-list { margin: 0; padding-left: 1.3em; }
.slide.five-pieces .fp-list li { font-size: 27px; line-height: 1.32; margin: 0 0 12px; }
.slide.five-pieces .fp-list li span { display: inline-block; margin-left: 6px; font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-2); }

/* the verdict table at the close */
.slide.verdict-table .fit > table { width: 100%; font-size: 27px; }
.slide.verdict-table .fit > table td { padding: 16px 16px; line-height: 1.26; vertical-align: top; }
.slide.verdict-table .fit > table td:first-child { width: 17%; font-weight: 700; }
.slide.verdict-table .fit > table td:nth-child(2) { width: 36%; }

/* invited talk: three cards in a row */
.slide.talk .fit > .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, .8fr); }
.slide.talk .card p { font-size: 27px; line-height: 1.35; }

/* part openers with a recap and more than four segments (B, C): smaller title so six rows fit */
.slide.section-open.with-recap.many > h1 { font-size: 46px; margin: 8px 0 10px; }

/* opening hook: X posts. Left: X's own embed card with the media hidden (text and likes readable);
   right: the post's own media, large (images from capture_xpost.mjs --compact and the post's media URLs) */
.slide.xpost .xp-row { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 36px; align-items: center; }
.slide.xpost .xp-row:has(> .wide) { grid-template-columns: 600px minmax(0, 1fr); }
.slide.xpost figure.xp { margin: 0; }
.slide.xpost figure.xp img, .slide.xpost .xp-pair img { display: block; border: 1px solid var(--line); border-radius: 14px; }
.slide.xpost figure.xp.card img { width: 430px; height: auto; border: 0; }
.slide.xpost figure.xp.wide img { width: 600px; height: auto; border: 0; }
.slide.xpost figure.xp.media { justify-self: center; }
.slide.xpost figure.xp.media img { height: 380px; width: auto; max-width: 100%; }
.slide.xpost .xp-col { display: flex; flex-direction: column; gap: 20px; width: 430px; }
.slide.xpost .xp-pair { display: flex; gap: 16px; justify-content: center; min-width: 0; }
.slide.xpost .xp-pair img { height: 380px; width: auto; max-width: calc(50% - 8px); object-fit: contain; }
.slide.xpost .xp-text p { font-size: 29px; line-height: 1.35; margin: 0 0 18px; }
.slide.xpost .xp-text .xp-table { width: 100%; font-size: 27px; margin-bottom: 22px; }
.slide.xpost .xp-text .xp-table td { padding: 12px 14px; }
.slide.xpost .xp-text .xp-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.slide.xpost p.key { margin: 0; }
.slide.xpost-ask .slide-body .fit { gap: 40px; }
.slide.xpost-ask .bubble { align-self: flex-end; max-width: 760px; padding: 26px 34px; border-radius: 28px; background: var(--panel); border: 2px solid var(--blue); font-size: 40px; line-height: 1.3; font-style: italic; color: var(--blue); }
.slide.xpost figure.xp.media.short img { height: 340px; }
.slide.xpost .xp-text .xp-table th { white-space: nowrap; }

/* ── About these slides (D44, 14 Oct 2026): AI statement, reference decks, key papers ── */
.slide.about .slide-body > .fit { font-size: 27px; line-height: 1.38; gap: 0; }
.slide.about p.ai { margin: 0 0 20px; }
.slide.about p.tag { margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-2); }
.slide.about ul.decks { margin: 0 0 20px; padding-left: 26px; }
.slide.about ul.decks li { margin: 0 0 2px; }
.slide.about p.papers { margin: 0; }
.slide.about p.papers .tag { font-size: 17px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-2); margin-right: 10px; }

/* Part opener: a sub-segment row, indented under the segment above it ("sub": true in outline.json; 18 Oct 2026) */
.slide.section-open .seg.sub { padding-left: 46px; border-top-color: transparent; color: #cfdbe5; }
.slide.section-open.many .seg.sub { padding-top: 5px; padding-bottom: 5px; font-size: 27px; }
.slide.section-open .seg.sub span:last-child { color: #9fb4c4; font-size: 22px; }

/* Part summary slides (white, numbered takeaways), as in Lecture 2 session 01 (JH, 18 Oct 2026) */
.slide.part-summary .pa-list { margin: 0; padding-left: 1.2em; }
.slide.part-summary .pa-list > li { margin: 0 0 20px; font-size: 29px; line-height: 1.38; }
.slide.part-summary .pa-list > li::marker { color: var(--orange-2); font-weight: 700; }
.slide.part-summary .pa-list b { color: var(--deep); }
.slide.part-summary p.next { margin-top: 10px; font-size: 27px; color: var(--muted); }

/* Section dividers inside a part (generated by assemble.py), as in Lecture 2 session 01 (JH, 18 Oct 2026) */
.slide.seg-div > p:not(.eb) { margin-bottom: 30px; }
.slide.seg-div > p b { color: #fff; }
.slide.seg-div .seg.done, .slide.seg-div .seg.next { opacity: .45; }
.slide.seg-div .seg.now { opacity: 1; color: #fff; font-weight: 700; border-top-color: var(--orange); }
.slide.seg-div .seg.now b { color: var(--orange); font-weight: 700; }
.slide.seg-div .seg.now + .seg { border-top-color: var(--orange); }
.slide.seg-div .seg.sub.now { color: #fff; }
.slide.seg-div .seg span:last-child:empty { display: none; }

/* Key message on each part summary and the lecture summary (JH, 20 Oct 2026) */
.slide.part-summary .pa-key { margin: 0 0 18px; padding: 12px 18px; font-size: 29px; line-height: 1.32; background: var(--tint); border-left: 5px solid var(--orange-2); border-radius: 4px; color: var(--deep); }
.slide.part-summary .pa-key b { color: var(--orange-2); }
.slide.lecture-summary .pa-list > li { margin-bottom: 26px; }
/* Part summaries with a key message: tighter spacing so that the key message fits (20 Oct 2026) */
.slide.part-summary:not(.lecture-summary) .pa-key { margin-bottom: 12px; padding: 8px 16px; font-size: 28px; line-height: 1.28; }
.slide.part-summary:not(.lecture-summary) .pa-list > li { margin-bottom: 9px; font-size: 28px; line-height: 1.3; }
.slide.part-summary:not(.lecture-summary) p.next { margin-top: 6px; }

/* NeurIPS 2026 poster on the opening (JH, 20 Oct 2026): a tall image beside three short facts */
.slide.xpost .xp-row:has(> .tall) { grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: start; }
.slide.xpost figure.xp.tall img { height: 440px; width: auto; border: 1px solid var(--line); border-radius: 10px; }
.slide.xpost .xp-text ul.pts { margin: 0; padding-left: 1.1em; }
.slide.xpost .xp-text ul.pts li { margin: 0 0 14px; font-size: 28px; line-height: 1.32; }

/* NeurIPS poster slide, second layout (JH, 20 Oct 2026): the poster on the right, as tall as the page; the text on the left */
.slide.poster-right > figure.xp.tall { position: absolute; top: 0; right: 0; bottom: 0; margin: 0; z-index: 1; }
.slide.poster-right > figure.xp.tall img { display: block; height: 720px; width: auto; border: 0; border-radius: 0; }
.slide.poster-right > .eb, .slide.poster-right .slide-body, .slide.poster-right .refs { max-width: 600px; }
.slide.poster-right > h2 { max-width: 640px; }

/* One colour scheme for every example input and output of an LLM, after ChatGPT's chat (JH, 20 Oct 2026):
   the user's message is a light-grey rounded bubble; the model's reply is a white card with a green edge.
   Use .io.in / .io.out (Part A) and .b1-io, .b1-io.out, .b1-pre, .b1-pre.out (Part B). */
:root { --llm-in-bg: #f4f4f4; --llm-out-bg: #ffffff; --llm-out-line: #d9dde1; --llm-out-accent: #10a37f; }


/* Invited talk with headshot (JH, 20 Oct 2026) */
.slide.talk.bio .fit > .grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); align-items: start; }
.slide.talk.bio .who { text-align: left; }
.slide.talk.bio .who img.headshot { width: 240px; height: 240px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; display: block; margin: 0 0 14px; border: 4px solid #fff; box-shadow: 0 0 0 2px #cfd6de; }
.slide.talk.bio .who p.zoom { margin-top: 10px; color: var(--muted); font-size: 27px; }
/* Next week's guest lecture, in the style of the speaker's poster (JH, 20 Oct 2026) */
.slide.poster-ann { --pa-red: #a31f34; --pa-blue: #3b4a9c; --pa-teal: #1b7a6b; --pa-ochre: #a0620d; background: #fbfbf9; }
.slide.poster-ann .eb { display: flex; justify-content: space-between; font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: #1d1f24; }
.slide.poster-ann .eb span:first-child { color: var(--pa-red); }
.slide.poster-ann h2 { font-family: "STIX Two Text", "Iowan Old Style", Charter, Georgia, serif; font-weight: 500; font-size: 54px; line-height: 1.06; color: #1d1f24; letter-spacing: -.01em; margin: 6px 0 18px; }
.slide.poster-ann .pcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.slide.poster-ann .sub { font-family: "STIX Two Text", Georgia, serif; font-style: italic; font-size: 29px; color: #4a4d55; margin: 0 0 4px; }
.slide.poster-ann svg.poster-tree { width: 100%; height: auto; display: block; margin: 0 0 6px; }
.slide.poster-ann svg.poster-tree .main { stroke: var(--pa-red); stroke-width: 3.5; fill: none; }
.slide.poster-ann svg.poster-tree .node circle { fill: var(--pa-red); }
.slide.poster-ann svg.poster-tree .dash path { stroke: #8a8d94; stroke-width: 1.8; stroke-dasharray: 4 4; fill: none; }
.slide.poster-ann svg.poster-tree .xs path { stroke: #6b6e75; stroke-width: 1.8; fill: none; }
.slide.poster-ann svg.poster-tree .open circle { fill: #fbfbf9; stroke: #4a4d55; stroke-width: 1.8; }
.slide.poster-ann .abs { font-size: 22px; line-height: 1.42; color: #4a4d55; margin: 0; }
.slide.poster-ann .th { position: relative; padding-left: 26px; margin: 0 0 10px; }
.slide.poster-ann .th::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; }
.slide.poster-ann .th.m::before { background: var(--pa-blue); } .slide.poster-ann .th.c::before { background: var(--pa-teal); }
.slide.poster-ann .th.b::before { background: var(--pa-ochre); } .slide.poster-ann .th.n::before { background: var(--pa-red); }
.slide.poster-ann .th .k { display: block; font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; }
.slide.poster-ann .th.m .k { color: var(--pa-blue); } .slide.poster-ann .th.c .k { color: var(--pa-teal); }
.slide.poster-ann .th.b .k { color: var(--pa-ochre); } .slide.poster-ann .th.n .k { color: var(--pa-red); }
.slide.poster-ann .th b { display: block; font-family: "STIX Two Text", Georgia, serif; font-weight: 500; font-size: 25px; line-height: 1.15; color: #1d1f24; }
.slide.poster-ann .th i { display: block; font-style: normal; font-size: 18px; color: #6b6e75; }
.slide.poster-ann .who { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; border-top: 1px solid #d6d6d2; padding-top: 12px; margin-top: 6px; }
.slide.poster-ann .who img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
.slide.poster-ann .who b { display: block; font-family: "STIX Two Text", Georgia, serif; font-weight: 500; font-size: 30px; color: #1d1f24; }
.slide.poster-ann .who span { display: block; font-size: 19px; color: #4a4d55; }
.slide.poster-ann .who p { margin: 4px 0 0; font-size: 17px; line-height: 1.35; color: #4a4d55; }
.slide.closing .card.next { grid-column: 1 / -1; }
.slide.closing .card:first-child { grid-column: 1 / -1; }
/* release: the part opener names its reference deck once (outline.json "credit") */
.slide.section-open > .src { margin-top: 14px; font-size: 22px; max-width: 700px; line-height: 1.3; }
.slide.section-open .recap .cr { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.25); font-size: 20px; line-height: 1.3; color: #cfdbe5; }
.slide.section-open.with-recap.many > .seg { max-width: 700px; padding: 6px 0; }
.slide.section-open.with-recap.many > h1 { margin: 4px 0 6px; }
.slide.section-open.with-recap.many > p:not(.eb) { margin-bottom: 10px; }

/* ───── Part A (slides_build/partA/partA.css) ───── */
/* Part A — History of prompting, and one framework (slides_build/partA/partA.css).
   Every selector is scoped by .slide.pA. Theme: assets/css/slides-theme.css.
   Colours of the five pieces (as on the opening slide "One prompted system, five pieces"):
   context = --blue-2, model θ = --muted (dashed), generation = --good, loop and tools = --orange, check = --bad. */

/* text rhythm */
.slide.pA .slide-body > .fit { gap: 20px; }
.slide.pA .slide-body p, .slide.pA .slide-body li { font-size: 29px; line-height: 1.34; }
.slide.pA ul.pts { margin: 0; padding-left: 1.05em; }
.slide.pA ul.pts > li { margin: 0 0 10px; }
.slide.pA ul.pts > li:last-child { margin-bottom: 0; }
.slide.pA .key { margin: 0; font-weight: 650; color: var(--deep); }
.slide.pA .lede { margin: 0; color: var(--text); font-size: 29px; }
.slide.pA .callout p { margin: 0; }
.slide.pA .callout p + p { margin-top: 8px; }
.slide.pA .src a, .slide.pA .key a { color: inherit; }

/* columns */
.slide.pA .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.slide.pA .cols.wide-r { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.slide.pA .cols.wide-l { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.slide.pA .cols.mid { align-items: center; }
.slide.pA .cols > div { min-width: 0; }
.slide.pA .stack > * + * { margin-top: 14px; }

/* cards in a row */
.slide.pA .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.slide.pA .row3.r2024 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; }
.slide.pA .row3.r2024 > .card { align-self: stretch; }
.slide.pA .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.slide.pA .row2.one { grid-template-columns: 1fr; }
.slide.pA .row3 > .card, .slide.pA .row2 > .card { margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-top: 3px solid var(--blue-2); border-radius: 4px; background: #fff; }
.slide.pA .row3 > .card.accent, .slide.pA .row2 > .card.accent { border-top-color: var(--orange); }
.slide.pA .card .tag { margin-bottom: 8px; }
.slide.pA .card p { font-size: 28px; line-height: 1.32; margin: 0 0 10px; }
.slide.pA .card p:last-child { margin-bottom: 0; }
.slide.pA .card .num-big { font-weight: 700; color: var(--orange-2); }

/* model input and output boxes */
.slide.pA .io { margin: 0; padding: 12px 16px; background: var(--panel); border-left: 3px solid var(--blue-2); font-size: 27px; line-height: 1.28; white-space: pre-wrap; font-family: var(--font); }
.slide.pA .io-lab { display: block; margin-bottom: 6px; color: var(--muted); font-size: 18px; letter-spacing: .07em; text-transform: uppercase; font-weight: 650; }
/* Yellow = the part this method adds to the example (JH, 20 Oct 2026). */
.slide.pA .io .new { background: #ffeb7a; border-radius: 3px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* .inp (the question or task in an example prompt) carries no highlight since 20 Oct 2026 (JH) */
.slide.pA .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; }
.slide.pA .legend .tag { margin: 0; padding: 2px 8px; border-radius: 3px; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; font-weight: 650; color: var(--text); }

/* code */
.slide.pA pre.code { margin: 0; padding: 12px 18px; background: var(--code); border-left: 3px solid var(--orange); border-radius: 3px; font-size: 27px; line-height: 1.22; overflow: visible; }
.slide.pA pre.code code { font-size: inherit; background: none; padding: 0; white-space: pre; }
.slide.pA pre.code .cm { color: var(--muted); }
.slide.pA pre.code .k { color: var(--blue); font-weight: 650; }
.slide.pA pre.code .s { color: #4f6b33; }
.slide.pA .code-lab { display: block; margin: 0 0 6px; color: var(--muted); font-size: 18px; letter-spacing: .07em; text-transform: uppercase; font-weight: 650; }

/* recap of 7 Oct */
.slide.pA.recap7 .row3 > .card { border-top-color: var(--muted); }
.slide.pA.recap7 .card .io { font-size: 27px; padding: 8px 12px; margin-top: 4px; }

/* the timeline: two columns of dated steps */
.slide.pA .tl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.slide.pA .tl h4 { margin: 0 0 10px; font-size: 28px; color: var(--deep); }
.slide.pA .tl h4 .tag { display: block; margin: 0 0 2px; font-size: 18px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.slide.pA .tl ol { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 3px solid var(--line); }
.slide.pA .tl li { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: baseline; margin: 0; padding: 4px 0 6px 22px; font-size: 27px; line-height: 1.25; }
.slide.pA .tl li::before { content: ""; position: absolute; left: -11px; top: 15px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-2); }
.slide.pA .tl li.gen::before { border-color: var(--good); }
.slide.pA .tl li.mdl::before { border-color: var(--muted); border-style: dashed; }
.slide.pA .tl li.loop::before { border-color: var(--orange); background: var(--orange); }
.slide.pA .tl li .tag { font-size: 19px; font-weight: 650; color: var(--orange-2); letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slide.pA .tl li b { color: var(--deep); }
.slide.pA .dots { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; }
.slide.pA .dots .tag { position: relative; padding-left: 24px; font-size: 19px; font-weight: 650; color: var(--muted); letter-spacing: .04em; }
.slide.pA .dots .tag::before { content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--blue-2); background: #fff; }
.slide.pA .dots .tag.gen::before { border-color: var(--good); }
.slide.pA .dots .tag.mdl::before { border-color: var(--muted); border-style: dashed; }
.slide.pA .dots .tag.loop::before { border-color: var(--orange); background: var(--orange); }

/* xkcd */
.slide.pA .xkcd { margin: 0; text-align: center; }
.slide.pA .xkcd img { display: block; width: 100%; height: auto; background: #fff; }
.slide.pA .xkcd figcaption { margin-top: 6px; font-size: 18px; color: var(--muted); letter-spacing: .03em; }

/* paper figures (cropped at 300 dpi) */
.slide.pA .fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.slide.pA .fig img { display: block; max-width: 100%; width: auto; height: auto; object-fit: contain; background: #fff; }
.slide.pA .fig.h250 img { max-height: 250px; }
.slide.pA .fig.h230 img { max-height: 230px; }
.slide.pA .figs { display: flex; gap: 14px; justify-content: center; align-items: flex-start; }
.slide.pA .figs img { max-height: 250px; width: auto; max-width: 100%; background: #fff; }
.slide.pA .fig figcaption, .slide.pA .figcap { margin-top: 6px; font-size: 20px; line-height: 1.3; color: var(--muted); text-align: left; }

/* Liu et al.: one prompted call, three steps */
.slide.pA table.liu { width: 100%; border-collapse: collapse; }
.slide.pA table.liu th { padding: 6px 12px; font-size: 18px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--panel); text-align: left; font-weight: 650; }
.slide.pA table.liu td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 27px; line-height: 1.3; vertical-align: middle; }
.slide.pA table.liu td:first-child { width: 25%; font-weight: 700; color: var(--deep); }
.slide.pA table.liu td:nth-child(2) { width: 35%; }
.slide.pA table.liu td .q { font-family: var(--font); color: var(--text); }
.slide.pA table.liu td .z { background: var(--tint); box-shadow: inset 0 -2px 0 var(--orange); padding: 0 4px; border-radius: 3px; }
.slide.pA table.liu .katex { font-size: 1.02em; }

/* the loop: pseudo-code, a diagram, a step-through */
.slide.pA .loopgrid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 26px; align-items: start; }
.slide.pA .pcode { margin: 0; padding: 10px 0; list-style: none; background: var(--code); border-left: 3px solid var(--orange); border-radius: 3px; }
.slide.pA .pcode li { margin: 0; padding: 3px 14px 3px 16px; font-size: 27px; line-height: 1.32; border-left: 5px solid transparent; transition: background .2s; }
.slide.pA .pcode li.in1 { padding-left: 46px; }
.slide.pA .pcode li .w { display: block; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 650; line-height: 1.1; }
.slide.pA .pcode li.th .w { color: var(--blue-2); }
.slide.pA .pcode li.on { background: var(--tint); border-left-color: var(--orange); }
.slide.pA .pcode li.th.on { background: #e3eaf0; border-left-color: var(--blue-2); }
.slide.pA svg.loopsvg { display: block; width: 100%; height: auto; max-height: 262px; overflow: visible; }
.slide.pA svg.loopsvg .bx { fill: #fff; stroke: var(--orange); stroke-width: 2.2; transition: fill .2s; }
.slide.pA svg.loopsvg .bx.th { stroke: var(--blue-2); stroke-dasharray: 7 5; fill: var(--panel); }
.slide.pA svg.loopsvg .bx.on { fill: var(--tint); stroke-width: 4; }
.slide.pA svg.loopsvg .bx.th.on { fill: #dbe5ee; }
.slide.pA svg.loopsvg text { font-family: var(--font); font-size: 21px; font-weight: 700; fill: var(--deep); text-anchor: middle; }
.slide.pA svg.loopsvg text.sm { font-size: 17px; font-weight: 500; fill: var(--muted); }
.slide.pA svg.loopsvg text.lb { font-size: 17px; font-weight: 650; fill: var(--orange-2); }
.slide.pA svg.loopsvg .wr { fill: none; stroke: var(--muted); stroke-width: 2.2; }
.slide.pA svg.loopsvg marker path { fill: var(--muted); }
.slide.pA .loop-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; }
.slide.pA .loop-ctl button { font-size: 20px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--deep); cursor: pointer; }
.slide.pA .loop-ctl button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.slide.pA .loop-ctl .readout { flex: 1 1 100%; margin: 0; padding: 10px 14px; font-family: var(--font); font-size: 22px; line-height: 1.35; background: var(--panel); border-left: 3px solid var(--orange); }
.slide.pA .loop-ctl .readout b { color: var(--deep); }
.slide.pA .loop-ctl .readout code { font-size: .95em; }

/* every method in one of five pieces: an annotated diagram */
.slide.pA svg.slots { display: block; width: auto; height: 318px; max-width: 100%; margin: 0 auto; }
.slide.pA svg.slots .bx { fill: #fff; stroke-width: 2.4; }
.slide.pA svg.slots .bx.ctx { stroke: var(--blue-2); }
.slide.pA svg.slots .bx.mdl { stroke: var(--muted); stroke-dasharray: 7 5; fill: var(--panel); }
.slide.pA svg.slots .bx.gen { stroke: var(--good); }
.slide.pA svg.slots .bx.env { stroke: var(--orange); }
.slide.pA svg.slots .bx.chk { stroke: var(--bad); }
.slide.pA svg.slots text { font-family: var(--font); fill: var(--text); }
.slide.pA svg.slots text.nm { font-size: 25px; font-weight: 700; fill: var(--deep); }
.slide.pA svg.slots text.pt { font-size: 16px; font-weight: 700; letter-spacing: .08em; fill: var(--orange-2); }
.slide.pA svg.slots text.m { font-size: 20.5px; }
.slide.pA svg.slots text.m tspan.h { font-weight: 700; fill: var(--deep); }
.slide.pA svg.slots .wr { fill: none; stroke: var(--muted); stroke-width: 2.2; }
.slide.pA svg.slots .wr.loop { stroke: var(--orange); stroke-dasharray: 7 5; stroke-width: 2.6; }
.slide.pA svg.slots marker path { fill: var(--muted); }
.slide.pA svg.slots marker.o path { fill: var(--orange); }

/* ✋ question and its answer */
.slide.pA .ask .card { border-top-color: var(--orange); }
.slide.pA .ask .card p { font-size: 30px; line-height: 1.32; }
.slide.pA .ask .card .tag { font-size: 22px; color: var(--orange-2); }
.slide.pA .pieces { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0; }
.slide.pA .pieces span { padding: 6px 14px; border: 2px solid var(--blue-2); border-radius: 4px; font-size: 27px; font-weight: 650; color: var(--deep); background: #fff; }
.slide.pA .pieces span.mdl { border-color: var(--muted); border-style: dashed; background: var(--panel); }
.slide.pA .pieces span.gen { border-color: var(--good); }
.slide.pA .pieces span.loop { border-color: var(--orange); }
.slide.pA .pieces span.chk { border-color: var(--bad); }
.slide.pA .answers .card p.fail { font-size: 24px; color: var(--muted); font-style: italic; margin-bottom: 8px; }
.slide.pA .answers .card .piece { display: inline-block; margin: 0 6px 8px 0; padding: 2px 10px; border-radius: 3px; font-size: 19px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.slide.pA .answers .piece.ctx { background: #dfe8f0; color: var(--blue); }
.slide.pA .answers .piece.gen { background: #dbe8e3; color: #36524c; }
.slide.pA .answers .piece.loop { background: var(--tint); color: var(--orange-2); }
.slide.pA .answers .piece.chk { background: #f1dedb; color: #7d362e; }

/* plain prompting: strengths and limits */
.slide.pA .sl .card p { font-size: 28px; }
.slide.pA .sl .card.plus { border-top-color: var(--good); }
.slide.pA .sl .card.minus { border-top-color: var(--bad); }
.slide.pA .handoff { margin: 0; padding: 10px 16px; border-left: 4px solid var(--orange); background: var(--tint); font-size: 29px; font-weight: 650; color: var(--deep); }

/* small fixes after the first check */
.slide.pA p.call { margin: 10px 0 0; font-size: 27px; line-height: 1.3; }
.slide.pA .answers .card .tag.fail { margin: 0 0 8px; font-size: 19px; color: var(--orange-2); }
.slide.pA figcaption.tag { letter-spacing: 0; text-transform: none; font-weight: 400; }
.slide.pA .pcode li .tag.w { margin: 0; }

/* timeline with its APA footer (review of 10 Oct 2026): smaller footer, tighter rows */
.slide.pA.tlslide .refs { font-size: 15px; line-height: 1.3; }
.slide.pA.tlslide .tl h4 { margin: 0 0 6px; }
.slide.pA.tlslide .tl li { padding: 2px 0 4px 22px; }
.slide.pA.tlslide .tl li::before { top: 12px; }
.slide.pA.tlslide .slide-body > .fit { gap: 12px; }

/* ── Part A v2 (18 Oct 2026): one method per slide group; generated by gen_partA.py ── */
.slide.pA p.fixes { margin: 0; font-size: 27px; color: var(--muted); }
.slide.pA p.fixes b { color: var(--orange-2); text-transform: uppercase; font-size: 18px; letter-spacing: .07em; margin-right: 8px; }
.slide.pA .iorow { display: flex; flex-direction: column; gap: 10px; }
.slide.pA .io.big { font-size: 29px; line-height: 1.35; }
.slide.pA p.note-code { margin: 0; font-size: 27px; color: var(--muted); }
.slide.pA p.next { margin: 0; font-size: 29px; }
.slide.pA p.next b { color: var(--orange-2); }
.slide.pA .row2 .card ul.pts > li { font-size: 28px; line-height: 1.32; }
.slide.pA img.xcard { display: block; max-width: 100%; max-height: 340px; margin: 0 auto; border: 1px solid var(--line); border-radius: 10px; }
.slide.pA .tl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.slide.pA .tl-c > .tl-g + .tl-g { margin-top: 8px; }
.slide.pA .tl-g .tag { margin-bottom: 4px; }
.slide.pA .tl-i { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 27px; line-height: 1.22; }
.slide.pA .tl-i b { color: var(--orange-2); }
.slide.pA .tl-i em { font-style: normal; color: var(--muted); font-size: 27px; }
.slide.pA table.sum19 { width: 100%; border-collapse: collapse; font-size: 27px; line-height: 1.25; }
.slide.pA table.sum19 th { text-align: left; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 2px 8px; }
.slide.pA table.sum19 td { padding: 5px 10px; border-top: 1px solid var(--line); }
.slide.pA table.sum19 td:first-child { font-weight: 650; white-space: nowrap; }

.slide.pA .cols.wtwo { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 26px; align-items: start; }
.slide.pA .cols.wtwo .key { margin-top: 4px; }
.slide.pA .cols.wtwo > .card.evi { margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 4px; background: #fff; }
.slide.pA .cols.wtwo > .card.evi p { font-size: 27px; line-height: 1.34; margin: 0; }
.slide.pA .tl-g .tag { display: block; font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-2); margin: 0 0 4px; }

/* "The key milestones from a user's view" (19 Oct 2026): one wide image */
.slide.pA img.pa-wide { display: block; max-width: 100%; max-height: 470px; margin: 8px auto 0; border-radius: 10px; }
/* Failed examples on "A1 · Direct answer: use and limits" (19 Oct 2026) */
.slide.pA .fails { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.slide.pA .io.fail { border-left-color: #b23a3a; }
.slide.pA .io.fail .bad { display: block; margin-top: 6px; color: #b23a3a; font-weight: 650; }

/* LLM input and output, one scheme for the whole deck (see polish_base.css) */
.slide.pA .io.in { background: var(--llm-in-bg); border-left: 0; border-radius: 18px; padding: 12px 18px; }
.slide.pA .io.out { background: var(--llm-out-bg); border: 1px solid var(--llm-out-line); border-left: 4px solid var(--llm-out-accent); border-radius: 8px; }
.slide.pA .io.fail.out { border-left-color: #b23a3a; }


/* Branching diagrams: n samples, then a verifier (best-of-n) or a vote (self-consistency) */
.slide.pA svg.branch { width: 100%; height: auto; max-height: 330px; display: block; }
.slide.pA svg.branch .bx { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.slide.pA svg.branch .ch { fill: #fff; stroke: var(--blue-2); stroke-width: 1.6; }
.slide.pA svg.branch .bx.new, .slide.pA svg.branch .ch.new { fill: #ffeb7a; }
.slide.pA svg.branch .ch.win { stroke: var(--orange); stroke-width: 3; }
.slide.pA svg.branch .wr { fill: none; stroke: var(--blue-2); stroke-width: 1.8; }
.slide.pA svg.branch marker path { fill: var(--blue-2); }
.slide.pA svg.branch text { font-size: 22px; font-weight: 700; fill: var(--text); text-anchor: middle; }
.slide.pA svg.branch text.sm { font-size: 20px; font-weight: 500; }
.slide.pA svg.branch .ax { stroke: var(--blue); stroke-width: 2; }
.slide.pA svg.branch .bar { fill: #ffeb7a; stroke: var(--blue-2); stroke-width: 1.6; }
.slide.pA svg.branch .bar.win { stroke: var(--orange); stroke-width: 3; }
/* Best-of-n: right column with two cards, bullets */
.slide.pA .cols.wtwo > .rcol { display: flex; flex-direction: column; gap: 14px; }
.slide.pA .rcol > .card.evi { margin: 0; padding: 12px 20px; border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 4px; background: #fff; }
.slide.pA .rcol .card ul.pts > li { font-size: 27px; line-height: 1.3; margin: 0 0 8px; }
.slide.pA .io p.io-p { margin: 0; font-size: 27px; line-height: 1.28; }
.slide.pA .cols.wtwo.bon { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.slide.pA pre.code .new { background: #ffeb7a; border-radius: 3px; padding: 0 3px; }
.slide.pA .cols.wtwo > .card.evi ul.pts > li { font-size: 27px; line-height: 1.34; margin: 0 0 8px; }
.slide.pA .io.sysleak { font-size: 20px; line-height: 1.28; padding: 10px 14px; }
.slide.pA .cols.sysleak2 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
.slide.pA .io.sysleak .sum { font-style: italic; color: var(--muted); }

/* ReAct loop: diagram, step button, and a log that separates what the LLM writes from what comes from outside */
.slide.pA .react-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; flex-wrap: wrap; }
.slide.pA .rbtn { font: inherit; font-size: 22px; font-weight: 650; padding: 4px 16px; border-radius: 8px; border: 2px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; }
.slide.pA .rbtn.ghost { background: #fff; color: var(--blue); }
.slide.pA .rbtn:disabled { opacity: .55; cursor: default; }
.slide.pA .rcount { font-size: 22px; color: var(--muted); }
.slide.pA .rleg { margin-left: auto; font-size: 20px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.slide.pA .rleg .sw { display: inline-block; width: 26px; height: 18px; border-radius: 4px; margin-left: 10px; }
.slide.pA .rleg .sw.llm, .slide.pA .rrow.llm { background: var(--llm-out-bg); border: 1px solid var(--llm-out-line); border-left: 4px solid var(--llm-out-accent); }
.slide.pA .rleg .sw.ext, .slide.pA .rrow.ext { background: var(--llm-in-bg); border: 1px solid transparent; }
.slide.pA .react-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.slide.pA .react-svg { width: 100%; height: auto; max-height: 360px; display: block; }
.slide.pA .react-svg .nd rect { stroke-width: 2.4; transition: fill .2s; }
.slide.pA .react-svg .nd.llm rect { fill: var(--llm-out-bg); stroke: var(--llm-out-accent); }
.slide.pA .react-svg .nd.ext rect { fill: var(--llm-in-bg); stroke: #8a96a3; }
.slide.pA .react-svg .nd.llm.on rect { fill: #d5f0e8; stroke-width: 5; }
.slide.pA .react-svg .nd.ext.on rect { fill: #dfe3e8; stroke-width: 5; }
.slide.pA .react-svg text { font-size: 24px; font-weight: 700; fill: var(--text); text-anchor: middle; }
.slide.pA .react-svg text.sm { font-size: 19px; font-weight: 500; fill: var(--muted); }
.slide.pA .react-svg text.mid { fill: var(--muted); }
.slide.pA .react-svg .ar { fill: none; stroke: var(--blue-2); stroke-width: 2.4; }
.slide.pA .react-svg marker path { fill: var(--blue-2); }
.slide.pA .react-log { height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.slide.pA .rrow { font-size: 20px; line-height: 1.28; padding: 6px 12px; border-radius: 10px; white-space: normal; }
.slide.pA .rrow.ext { border-radius: 14px; }
.slide.pA .rrow.skip { color: var(--muted); font-style: italic; background: none; border: 0; padding: 0 12px; }
.slide.pA .rrow b { color: var(--muted); font-weight: 650; }
.slide.pA .rhead { font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }
.slide.pA .rleg .sw.env, .slide.pA .rrow.env { background: none; border: 2px dashed #8a96a3; }
.slide.pA .rrow.env { border-radius: 10px; color: var(--muted); font-style: italic; padding: 4px 12px; }
.slide.pA .rbadge { display: inline-block; margin-left: 8px; padding: 0 8px; font-size: 16px; font-style: normal; font-weight: 650; letter-spacing: .04em; border-radius: 6px; background: #e9ecef; color: #55606b; }
.slide.pA .rleg { font-size: 18px; }
.slide.pA .react-svg text.cap { font-size: 17px; font-style: italic; }
.slide.pA .react-svg .frame { fill: none; stroke: #b9c2cb; stroke-width: 2; stroke-dasharray: 8 6; }
.slide.pA .react-svg .nd.mem rect { fill: #fff; stroke: #8a96a3; stroke-dasharray: 6 4; }
.slide.pA .react-svg .nd.mem.on rect { fill: #eef0f3; stroke-width: 5; }
.slide.pA img.mcp-img { max-height: 360px; width: 100%; object-fit: contain; }
.slide.pA img.ctx-img { max-height: 380px; width: auto; max-width: 100%; border: 1px solid var(--line); }
.slide.pA .react-svg .nd.new rect { fill: #ffeb7a; }
.slide.pA .react-svg .ar.dash { stroke-dasharray: 7 5; }
.slide.pA .react-svg.ace-svg { max-height: 300px; }
/* Diagrams for methods 10-19 (after the papers' figures) */
.slide.pA .react-svg.dg-svg { max-height: 300px; }
.slide.pA .react-svg .nd.ext rect { fill: var(--llm-in-bg); stroke: #8a96a3; }
.slide.pA .react-svg .nd.ext.new rect, .slide.pA .react-svg .nd.mem.new rect, .slide.pA .react-svg .nd.new rect { fill: #ffeb7a; }
.slide.pA .react-svg .life { stroke: #b9c2cb; stroke-width: 2; stroke-dasharray: 6 5; fill: none; }
.slide.pA .react-svg .hl { fill: #ffeb7a; }
.slide.pA .react-svg .ar.gr { stroke: var(--llm-out-accent); }
.slide.pA .react-svg .wr2 { stroke: #8a96a3; stroke-width: 2; fill: none; }
.slide.pA .react-svg .tn { fill: #e4e7ea; stroke: #8a96a3; stroke-width: 1.6; }
.slide.pA .react-svg .tn.par { fill: #1f3a52; }
.slide.pA .react-svg .tn.kid { fill: #ffeb7a; stroke: #b08a00; }
.slide.pA table.sum19 tr.grp td { border-top: 0; padding: 6px 10px 1px; font-size: 17px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-2); }
.slide.pA table.sum19 tr.grp td:first-child { white-space: normal; }
.slide.pA img.ctx-img[src*="sakana"] { max-height: 450px; }

/* ───── Part B (slides_build/partB/partB1.css) ───── */
/* Part B, first half (builder B1): Chen pp. 2–37 and two math slides (slides_build/partB/partB1.css).
   Every selector is scoped by .slide.pB.b1-s (the B1 slides only); own classes start with b1-.
   Theme: assets/css/slides-theme.css. */

/* rhythm: references sit under every slide, so the title margin is smaller */
.slide.pB.b1-s > h2 { margin-bottom: 16px; }
.slide.pB.b1-s > .src { margin-top: 8px; padding-top: 6px; }
.slide.pB.b1-s .src + .refs { margin-top: 4px; }
.slide.pB.b1-s .slide-body > .fit { gap: 16px; }
.slide.pB.b1-s .slide-body p, .slide.pB.b1-s .slide-body li { font-size: 28px; line-height: 1.34; margin: 0; }
.slide.pB.b1-s .fit > * { width: 100%; align-self: stretch; }

/* text pieces */
.slide.pB.b1-s .slide-body p.b1-lede { font-size: 29px; }
.slide.pB.b1-s .slide-body p.b1-small { font-size: 27px; line-height: 1.3; color: var(--text); }
.slide.pB.b1-s .slide-body p.b1-key { font-weight: 650; color: var(--deep); }
.slide.pB.b1-s .slide-body p.b1-q { text-align: center; padding-top: 4px; }
.slide.pB.b1-s .slide-body p.b1-sub { font-size: 27px; font-weight: 650; color: var(--muted); }
.slide.pB.b1-s .b1-hl { color: var(--orange-2); }
.slide.pB.b1-s .b1-stack > * + * { margin-top: 14px; }
.slide.pB.b1-s ul.b1-pts { margin: 0; padding-left: 1.05em; }
.slide.pB.b1-s ul.b1-pts > li + li { margin-top: 10px; }
.slide.pB.b1-s ul.b1-pts ul { margin: 6px 0 0; padding-left: 1.05em; }
.slide.pB.b1-s ul.b1-pts ul li + li { margin-top: 4px; }
.slide.pB.b1-s ul.b1-pts.b1-big > li { font-size: 31px; }
.slide.pB.b1-s ul.b1-pts.b1-big > li + li { margin-top: 26px; }
.slide.pB.b1-s ol.b1-num { margin: 0; padding-left: 1.3em; }
.slide.pB.b1-s ol.b1-num > li + li { margin-top: 8px; }
.slide.pB.b1-s .b1-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--orange); border-radius: 3px; color: var(--orange-2); font-size: 18px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; vertical-align: 3px; }
.slide.pB.b1-s .b1-tag.b1-old { border-color: var(--line); color: var(--muted); }
.slide.pB.b1-s .eb .b1-recap { display: inline-block; margin-left: 14px; padding: 1px 9px; border-radius: 3px; background: var(--tint); color: var(--orange-2); letter-spacing: .06em; }

/* two-column layouts */
.slide.pB.b1-s .b1-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.slide.pB.b1-s .b1-cols > * { min-width: 0; }
.slide.pB.b1-s .b1-cols.b1-chart-left { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; }
.slide.pB.b1-s .b1-cols.b1-fig-xwide { grid-template-columns: minmax(0, .66fr) minmax(0, 1.34fr); }
.slide.pB.b1-s .b1-cols.b1-fig-wide { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.slide.pB.b1-s .b1-cols.b1-fig-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.slide.pB.b1-s .b1-cols.b1-fig-right-narrow { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.slide.pB.b1-s .b1-cols.b1-io-right { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); align-items: start; }
.slide.pB.b1-s .b1-cols.b1-ask-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
.slide.pB.b1-s .b1-cols.b1-fig-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }

/* paper figures (cropped at 300 dpi) and deck crops: set the height with style="--h:…" */
.slide.pB.b1-s .b1-fig { margin: 0; display: flex; justify-content: center; align-items: center; }
.slide.pB.b1-s .b1-fig img { display: block; max-width: 100%; max-height: var(--h, 400px); width: auto; height: auto; object-fit: contain; background: #fff; }

/* ✋ cards */
.slide.pB.b1-s .card.accent.b1-ask { margin: 0; padding: 14px 20px; border: 0; border-left: 3px solid var(--orange); border-radius: 0; background: var(--tint); box-shadow: none; }
.slide.pB.b1-s .card.accent.b1-ask .tag { margin-bottom: 6px; color: var(--orange-2); }
.slide.pB.b1-s .card.accent.b1-ask p { font-size: 28px; line-height: 1.32; }

/* model input / output boxes */
.slide.pB.b1-s .b1-io { margin: 0; padding: 10px 16px; background: var(--llm-in-bg); border-radius: 18px; font-size: 27px; line-height: 1.24; white-space: pre-wrap; }
.slide.pB.b1-s .b1-io.out { background: var(--llm-out-bg); border: 1px solid var(--llm-out-line); border-left: 4px solid var(--llm-out-accent); border-radius: 8px; }
.slide.pB.b1-s .b1-io-lab { display: block; margin-bottom: 4px; color: var(--muted); font-size: 18px; letter-spacing: .07em; text-transform: uppercase; font-weight: 650; }
.slide.pB.b1-s .b1-io .b1-ins { color: var(--blue-2); }
.slide.pB.b1-s .b1-io .b1-gen { color: #3d5f57; }
.slide.pB.b1-s .b1-io + .b1-io { margin-top: 12px; }

/* quote (Pólya) */
.slide.pB.b1-s .b1-quote { margin: 0; padding: 14px 24px; border-left: 3px solid var(--orange); background: var(--tint); }
.slide.pB.b1-s .slide-body .b1-quote p { font-size: 36px; font-weight: 650; color: var(--deep); }
.slide.pB.b1-s .b1-quote cite { display: block; margin-top: 6px; font-size: 27px; font-style: normal; color: var(--muted); }

/* legend under the o1 chart */
.slide.pB.b1-s .slide-body p.b1-legend { margin-top: 4px; font-size: 18px; color: var(--muted); text-align: center; }
.slide.pB.b1-s .b1-sw { display: inline-block; width: 18px; height: 14px; margin: 0 6px 0 14px; vertical-align: -1px; background: var(--orange); }
.slide.pB.b1-s .b1-sw.light { background: var(--orange); opacity: .38; }

/* optimization curves (OPRO) */
.slide.pB.b1-s .b1-curves > .b1-crow { display: flex; align-items: center; gap: 14px; }
.slide.pB.b1-s .b1-curves > .b1-crow + .b1-crow { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.slide.pB.b1-s .slide-body p.b1-clab { flex: 0 0 240px; font-size: 27px; line-height: 1.25; color: var(--deep); }

/* math slides */
.slide.pB.b1-s .slide-body p.b1-math { font-size: 30px; text-align: center; }
.slide.pB.b1-s .slide-body p.b1-ans { padding: 8px 14px; background: var(--tint); border-left: 3px solid var(--orange); }

/* ───── inline SVG charts drawn for these slides ───── */
.slide.pB.b1-s svg.b1-chart { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.slide.pB.b1-s svg.b1-chart text { fill: var(--text); text-anchor: middle; }
.slide.pB.b1-s svg.b1-chart .gl { stroke: var(--line); stroke-width: 1; }
.slide.pB.b1-s svg.b1-chart .axl { stroke: var(--muted); stroke-width: 1.4; }
.slide.pB.b1-s svg.b1-chart text.ax { font-size: 16px; fill: var(--muted); text-anchor: end; }

/* o1 bars (Chen p. 2) */
.slide.pB.b1-s svg.b1-o1 { max-height: 330px; }
.slide.pB.b1-s svg.b1-o1 text.pt { font-size: 21px; font-weight: 700; fill: var(--deep); }
.slide.pB.b1-s svg.b1-o1 text.ps { font-size: 16px; fill: var(--muted); }
.slide.pB.b1-s svg.b1-o1 text.vl { font-size: 18px; font-weight: 700; }
.slide.pB.b1-s svg.b1-o1 text.vs { font-size: 15px; font-weight: 650; fill: #fff; }
.slide.pB.b1-s svg.b1-o1 text.nm { font-size: 17px; }
.slide.pB.b1-s svg.b1-o1 .b.g4 { fill: var(--blue-2); }
.slide.pB.b1-s svg.b1-o1 .b.op { fill: #c99a5b; }
.slide.pB.b1-s svg.b1-o1 .b.o1 { fill: var(--orange-2); }
.slide.pB.b1-s svg.b1-o1 .b.hu { fill: var(--good); }
.slide.pB.b1-s svg.b1-o1 .b.lt { opacity: .38; }
.slide.pB.b1-s .b1-legend .b1-sw:first-child { background: var(--orange-2); }
.slide.pB.b1-s .b1-legend .b1-sw.light { background: var(--orange-2); }

/* ARC-AGI scatter (Chen p. 3) */
.slide.pB.b1-s svg.b1-arc { max-height: 370px; }
.slide.pB.b1-s svg.b1-arc text.axx { font-size: 16px; fill: var(--muted); }
.slide.pB.b1-s svg.b1-arc text.axt { font-size: 17px; fill: var(--muted); font-weight: 650; }
.slide.pB.b1-s svg.b1-arc circle.pt { stroke: #fff; stroke-width: 1.5; }
.slide.pB.b1-s svg.b1-arc .pt.o1p { fill: var(--good); }
.slide.pB.b1-s svg.b1-arc .pt.o1 { fill: var(--bad); }
.slide.pB.b1-s svg.b1-arc .pt.o3 { fill: var(--orange); }
.slide.pB.b1-s svg.b1-arc .pt.hu { fill: #9aa5ae; }
.slide.pB.b1-s svg.b1-arc text.pl { font-size: 17px; font-weight: 650; text-anchor: start; }
.slide.pB.b1-s svg.b1-arc text.pl.e { text-anchor: end; }
.slide.pB.b1-s svg.b1-arc text.pl.m { text-anchor: middle; }
.slide.pB.b1-s svg.b1-arc text.pl.o1p { fill: var(--good); }
.slide.pB.b1-s svg.b1-arc text.pl.o1 { fill: var(--bad); }
.slide.pB.b1-s svg.b1-arc text.pl.o3 { fill: var(--orange-2); }
.slide.pB.b1-s svg.b1-arc text.pl.hu { fill: var(--muted); font-weight: 500; }

/* analogical prompting results (Chen p. 21) */
.slide.pB.b1-s svg.b1-ana { max-height: 360px; }
.slide.pB.b1-s svg.b1-ana text.pt { font-size: 22px; font-weight: 700; fill: var(--deep); }
.slide.pB.b1-s svg.b1-ana text.ps { font-size: 17px; fill: var(--muted); }
.slide.pB.b1-s svg.b1-ana text.vl { font-size: 19px; font-weight: 650; }
.slide.pB.b1-s svg.b1-ana text.vl.an { fill: var(--orange-2); font-weight: 800; }
.slide.pB.b1-s svg.b1-ana text.nm { font-size: 17px; }
.slide.pB.b1-s svg.b1-ana .b.z { fill: #c9d3db; }
.slide.pB.b1-s svg.b1-ana .b.zc { fill: #93a9bb; }
.slide.pB.b1-s svg.b1-ana .b.fc { fill: var(--blue-2); }
.slide.pB.b1-s svg.b1-ana .b.fc.om { fill: #fff; stroke: var(--blue-2); stroke-width: 2; stroke-dasharray: 6 4; }
.slide.pB.b1-s svg.b1-ana .b.an { fill: var(--orange); }

/* math 1: layers × positions */
.slide.pB.b1-s svg.b1-m1 { max-height: 330px; }
.slide.pB.b1-s svg.b1-m1 text.ll { font-size: 16px; fill: var(--muted); text-anchor: start; }
.slide.pB.b1-s svg.b1-m1 .lb { fill: var(--panel); stroke: var(--line); stroke-width: 1.4; }
.slide.pB.b1-s svg.b1-m1 .lb.hot { fill: var(--tint); stroke: var(--orange); }
.slide.pB.b1-s svg.b1-m1 .tk { fill: #fff; stroke: var(--blue-2); stroke-width: 1.6; }
.slide.pB.b1-s svg.b1-m1 .tk.cot { stroke: var(--orange); stroke-dasharray: 5 3; }
.slide.pB.b1-s svg.b1-m1 text.tt { font-size: 24px; font-weight: 700; fill: var(--deep); }
.slide.pB.b1-s svg.b1-m1 text.tt.cot { fill: var(--orange-2); }
.slide.pB.b1-s svg.b1-m1 .att { stroke: var(--blue-2); stroke-width: 1.2; opacity: .55; }
.slide.pB.b1-s svg.b1-m1 .up { stroke: var(--orange-2); stroke-width: 2.4; }
.slide.pB.b1-s svg.b1-m1 .nx { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 4 3; }
.slide.pB.b1-s svg.b1-m1 .wb { fill: none; stroke: var(--orange-2); stroke-width: 2; stroke-dasharray: 6 4; }
.slide.pB.b1-s svg.b1-m1 .ah { fill: var(--muted); }
.slide.pB.b1-s svg.b1-m1 .ah2 { fill: var(--orange-2); }
.slide.pB.b1-s svg.b1-m1 text.lab { font-size: 17px; font-weight: 650; fill: var(--orange-2); }
.slide.pB.b1-s svg.b1-m1 text.lab.m { fill: var(--muted); }
.slide.pB.b1-s svg.b1-m1 text.br { font-size: 17px; fill: var(--blue-2); font-weight: 650; }
.slide.pB.b1-s svg.b1-m1 text.br.cot { fill: var(--orange-2); }
.slide.pB.b1-s svg.b1-m1 .brl { stroke: var(--blue-2); stroke-width: 2; }
.slide.pB.b1-s svg.b1-m1 .brl.cot { stroke: var(--orange); }

/* math 2: a circuit as CoT tokens */
.slide.pB.b1-s svg.b1-m2 { max-height: 300px; }
.slide.pB.b1-s svg.b1-m2 text.hd { font-size: 19px; font-weight: 700; fill: var(--deep); }
.slide.pB.b1-s svg.b1-m2 text.g { font-size: 20px; font-weight: 650; }
.slide.pB.b1-s svg.b1-m2 text.g.big { font-size: 30px; }
.slide.pB.b1-s svg.b1-m2 text.g.s { font-size: 17px; font-weight: 600; }
.slide.pB.b1-s svg.b1-m2 text.g.cot, .slide.pB.b1-s svg.b1-m2 text.sm.cot { fill: var(--orange-2); }
.slide.pB.b1-s svg.b1-m2 text.sm { font-size: 16px; fill: var(--muted); font-weight: 650; }
.slide.pB.b1-s svg.b1-m2 .inp, .slide.pB.b1-s svg.b1-m2 .tk { fill: #fff; stroke: var(--blue-2); stroke-width: 1.6; }
.slide.pB.b1-s svg.b1-m2 .tk.cot { stroke: var(--orange); stroke-dasharray: 5 3; }
.slide.pB.b1-s svg.b1-m2 .gate { fill: var(--panel); stroke: var(--deep); stroke-width: 1.6; }
.slide.pB.b1-s svg.b1-m2 .tf { fill: var(--tint); stroke: var(--orange); stroke-width: 1.6; }
.slide.pB.b1-s svg.b1-m2 .w { stroke: var(--deep); stroke-width: 1.6; }
.slide.pB.b1-s svg.b1-m2 .sep { stroke: var(--line); stroke-width: 1.4; }
.slide.pB.b1-s svg.b1-m2 .rd { fill: none; stroke: var(--blue-2); stroke-width: 1.8; }
.slide.pB.b1-s svg.b1-m2 .wr { stroke: var(--orange-2); stroke-width: 2.2; }
.slide.pB.b1-s svg.b1-m2 .ah { fill: var(--blue-2); }
.slide.pB.b1-s svg.b1-m2 .ah2 { fill: var(--orange-2); }
.slide.pB.b1-s svg.b1-m2 marker#b1m2a path { fill: var(--blue-2); }

/* fit fixes (9 Oct 2026) */
.slide.pB.b1-s .b1-cols.b1-top { align-items: start; }
.slide.pB.b1-s .b1-cols.b1-m2-cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
.slide.pB.b1-s svg.b1-m2 { max-height: 285px; }
.slide.pB.b1-s svg.b1-m1 { max-height: 305px; }
.slide.pB.b1-s svg.b1-o1 { max-height: 315px; }
.slide.pB.b1-s svg.b1-ana { max-height: 330px; }
.slide.pB.b1-s .b1-legend.tag { display: block; margin: 4px 0 0; font-size: 18px; color: var(--muted); text-align: center; letter-spacing: 0; }
.slide.pB.b1-s .b1-io-lab.tag { display: block; }
.slide.pB.b1-s .b1-cols.b1-wide-tab { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; }
.slide.pB.b1-s svg.b1-ana { max-height: 310px; }
.slide.pB.b1-s .b1-nw { white-space: nowrap; }
.slide.pB.b1-s svg.b1-m2 text.g.st { text-anchor: start; }
.slide.pB.b1-s .b1-cols.b1-even { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.slide.pB.b1-s .b1-cols.b1-fig-wide2 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.slide.pB.b1-s svg.b1-arc { max-height: 335px; }
.slide.pB.b1-s svg.b1-arc { max-height: 300px; }
.slide.pB.b1-s .b1-cols.b1-arc-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.slide.pB.b1-s svg.b1-arc { max-height: 330px; }
.slide.pB.b1-s .b1-stack > p.b1-math { margin-top: 4px; font-size: 28px; }

/* review fixes (10 Oct 2026) */
.slide.pB.b1-s .slide-body p.b1-bridge { padding-left: 14px; border-left: 3px solid var(--blue-2); color: var(--deep); }
.slide.pB.b1-s .b1-cols.b1-cf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.slide.pB.b1-s .b1-cols.b1-cf2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.slide.pB.b1-s pre.b1-code { margin: 0; padding: 14px 20px; background: var(--code); border-radius: 4px; font-size: 27px; line-height: 1.3; overflow: visible; }
.slide.pB.b1-s pre.b1-code code { font-size: inherit; background: none; padding: 0; white-space: pre; }
.slide.pB.b1-s .b1-cols.b1-curve-big { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.slide.pB.b1-s ul.b1-pts.b1-steps > li + li { margin-top: 4px; }
.slide.pB.b1-s .b1-thumbs { display: flex; gap: 10px; align-items: center; }
.slide.pB.b1-s .b1-cols.b1-o1-cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.slide.pB.b1-s .b1-cf .b1-io { line-height: 1.2; }
.slide.pB.b1-s .b1-cols.b1-demo-cols { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; }

/* verbatim alignment to the Chen pages (18 Oct 2026) */
.slide.pB.b1-s .b1-cols.b1-text-right { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.slide.pB.b1-s .b1-cols.b1-text-left { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.slide.pB.b1-s .b1-cols.b1-fig-narrow { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.slide.pB.b1-s .b1-sp { align-self: center; }
.slide.pB.b1-s .b1-red { color: #c4251c; }
.slide.pB.b1-s .b1-green { color: #3d6a2c; }
.slide.pB.b1-s .slide-body p.b1-benefits { font-size: 32px; }
.slide.pB.b1-s ul.b1-pts.b1-big2 > li { font-size: 31px; }
.slide.pB.b1-s ul.b1-pts.b1-big2 > li + li { margin-top: 22px; }
.slide.pB.b1-s .slide-body p.b1-green-lede { font-size: 31px; color: #3d6a2c; }
.slide.pB.b1-s .slide-body p.b1-cap { font-size: 27px; text-align: center; color: var(--text); }
.slide.pB.b1-s .slide-body p.b1-ex { font-size: 30px; }
.slide.pB.b1-s ul.b1-pts.b1-sum > li + li { margin-top: 8px; }
.slide.pB.b1-s ul.b1-pts.b1-sum ul ul { margin-top: 2px; }

/* a figure cut to the part the page shows, with the page's own labels laid over it */
.slide.pB.b1-s .b1-crop { position: relative; overflow: hidden; justify-self: center; width: min(100%, calc(var(--hh) * var(--cw) / var(--ch))); aspect-ratio: var(--cw) / var(--ch); background: #fff; }
.slide.pB.b1-s .b1-crop img { position: absolute; display: block; max-width: none; max-height: none; height: auto; width: calc(var(--iw) / var(--cw) * 100%); left: calc(var(--cx) / var(--cw) * -100%); top: calc(var(--cy) / var(--ch) * -100%); }
.slide.pB.b1-s .slide-body > .b1-crop, .slide.pB.b1-s .fit > .b1-crop { align-self: center; }
.slide.pB.b1-s .b1-ovl { position: absolute; transform: translate(-50%, -50%); font-size: 27px; font-weight: 700; line-height: 1; white-space: nowrap; }
.slide.pB.b1-s .b1-ovl.red { color: #e0201a; }
.slide.pB.b1-s .b1-ovl.blue { color: #2f6fd0; }
.slide.pB.b1-s .b1-fr { position: absolute; border: 3px solid #2f6fd0; }

/* ✋ slides that stand alone */
.slide.pB.b1-s .fit > .card.accent.b1-ask { padding: 34px 44px; }
.slide.pB.b1-s .fit > .card.accent.b1-ask p { font-size: 40px; line-height: 1.3; }
.slide.pB.b1-s .fit > .card.accent.b1-ask .tag { font-size: 22px; margin-bottom: 12px; }
.slide.pB.b1-s .slide-body p.b1-ans.b1-hand { font-size: 40px; line-height: 1.3; padding: 30px 40px; }

/* chart labels copied from the page (analogical prompting results) */
.slide.pB.b1-s svg.b1-ana text.ns { font-size: 15px; fill: var(--muted); }
.slide.pB.b1-s svg.b1-ana text.nm.bd { font-weight: 700; }

/* OPRO meta-prompt: the page's two side labels */
.slide.pB.b1-s .b1-cols.b1-meta { display: flex; justify-content: center; align-items: stretch; gap: 28px; }
.slide.pB.b1-s .b1-cols.b1-meta > .b1-crop { flex: 0 0 auto; }
.slide.pB.b1-s .b1-side { position: relative; flex: 0 0 470px; }
.slide.pB.b1-s .slide-body p.b1-lab { position: absolute; left: 0; right: 0; transform: translateY(-50%); font-size: 30px; line-height: 1.25; color: #3b78d8; }

/* optimization graphs: the page's two rows */
.slide.pB.b1-s .b1-curves > .b1-crow > .b1-fig, .slide.pB.b1-s .b1-curves > .b1-crow > .b1-crop { flex: 0 0 auto; }
.slide.pB.b1-s .b1-curves > .b1-crow > .b1-thumbs { flex: 1; }
.slide.pB.b1-s .b1-thumbs > .b1-crop { flex: 0 0 auto; }
.slide.pB.b1-s .slide-body p.b1-clab { flex: 0 0 330px; white-space: nowrap; }
.slide.pB.b1-s .b1-curves { display: flex; flex-direction: column; }

/* CFQ examples as text, as on the page */
.slide.pB.b1-s .slide-body p.b1-serif { font-family: Georgia, "Times New Roman", serif; font-size: 30px; text-align: center; }
.slide.pB.b1-s .b1-sparql { padding: 8px 0; border-top: 2px solid var(--deep); border-bottom: 2px solid var(--deep); }
.slide.pB.b1-s .b1-sparql p { font-size: 27px; line-height: 1.28; }
.slide.pB.b1-s .b1-sparql p.b1-gap { margin-top: 12px; }
.slide.pB.b1-s .b1-sparql .b1-br { display: inline-block; padding-left: 20px; }

.slide.pB.b1-s svg.b1-o1 { max-height: 285px; }
.slide.pB.b1-s .b1-stack > p.b1-gap2 { margin-top: 26px; }

/* round 2 (18 Oct 2026): full-text panels, charts with the page's labels, captions */
.slide.pB.b1-s .b1-pre { margin: 0; padding: 10px 18px; background: var(--llm-in-bg); border-radius: 18px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 27px; line-height: 1.2; white-space: pre-wrap; overflow-wrap: break-word; }
.slide.pB.b1-s .b1-pre.out { background: var(--llm-out-bg); border: 1px solid var(--llm-out-line); border-left: 4px solid var(--llm-out-accent); border-radius: 8px; }
.slide.pB.b1-s .b1-pre .b1-io-lab { display: block; margin-bottom: 6px; font-family: var(--font); font-size: 20px; letter-spacing: 0; text-transform: none; }
.slide.pB.b1-s .b1-pre .b1-gl { display: block; text-align: right; font-family: var(--font); font-size: 27px; font-weight: 700; color: #3d6a2c; line-height: 1.2; }
.slide.pB.b1-s .slide-body p.b1-url { font-size: 27px; }
.slide.pB.b1-s .slide-body p.b1-tcap { font-family: "Times New Roman", Times, serif; font-size: 27px; line-height: 1.22; }
.slide.pB.b1-s .b1-tt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 27px; }
.slide.pB.b1-s .b1-fr.red { border: 4px solid #e0201a; }
.slide.pB.b1-s .b1-cols.b1-cfq34 { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; }
.slide.pB.b1-s svg.b1-o1 { max-height: 330px; }
.slide.pB.b1-s svg.b1-o1 text.pt2 { font-size: 20px; fill: var(--deep); font-weight: 500; }
.slide.pB.b1-s svg.b1-o1 text.yl { font-size: 17px; fill: var(--muted); }
.slide.pB.b1-s svg.b1-arc text.pl { font-size: 14px; letter-spacing: .05em; }
.slide.pB.b1-s svg.b1-arc text.pn { font-size: 15px; font-weight: 650; }
.slide.pB.b1-s svg.b1-arc text.pn.o1p { fill: var(--good); }
.slide.pB.b1-s svg.b1-arc text.pn.o1 { fill: var(--bad); }
.slide.pB.b1-s svg.b1-arc text.pn.o3 { fill: var(--orange-2); }
.slide.pB.b1-s svg.b1-arc text.ttl { font-size: 15px; letter-spacing: .12em; }
.slide.pB.b1-s svg.b1-arc text.axt { letter-spacing: .08em; }

/* ───── Part B (slides_build/partB/partB2.css) ───── */
/* Part B, second half: Xinyun Chen's lecture pp. 39–73 and the limits of CoT (slides_build/partB/partB2.css).
   Every selector is scoped by .slide.pB; classes of this half start with b2-. Theme: assets/css/slides-theme.css. */

/* columns: set the two widths per slide with --l and --r */
.slide.pB .b2-cols { display: grid; grid-template-columns: minmax(0, var(--l, 1fr)) minmax(0, var(--r, 1fr)); gap: 34px; align-items: center; }
.slide.pB .b2-cols.top { align-items: start; }
.slide.pB .b2-cols > div { min-width: 0; }
.slide.pB .b2-stack > * + * { margin-top: 16px; }
.slide.pB .b2-row { display: flex; gap: 22px; align-items: flex-end; justify-content: center; }

/* text */
.slide.pB ul.b2-pts { margin: 0; padding-left: 1.05em; }
.slide.pB ul.b2-pts > li { font-size: 28px; line-height: 1.34; margin: 0 0 12px; }
.slide.pB ul.b2-pts > li:last-child { margin-bottom: 0; }
.slide.pB ul.b2-pts ul { margin: 6px 0 0; padding-left: 1.05em; }
.slide.pB ul.b2-pts ul li { font-size: 27px; margin: 0 0 4px; }
.slide.pB .slide-body p.b2-key, .slide.pB .b2-key { margin: 0; font-size: 29px; line-height: 1.34; font-weight: 650; color: var(--deep); }
.slide.pB .slide-body p.b2-p { margin: 0; font-size: 28px; line-height: 1.36; }
.slide.pB .b2-num { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--orange-2); }
.slide.pB .b2-good { color: var(--good); font-weight: 650; }
.slide.pB .b2-bad { color: var(--bad); font-weight: 650; }

/* paper figures (cropped at 300 dpi); --h sets the height limit per slide */
.slide.pB .b2-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.slide.pB .b2-fig img { display: block; max-width: 100%; max-height: var(--h, 360px); width: auto; height: auto; object-fit: contain; background: #fff; }
.slide.pB .b2-fig .tag { margin: 0; font-size: 18px; color: var(--muted); letter-spacing: .05em; }

/* ✋ questions */
.slide.pB .b2-ask { margin: 0; padding: 14px 22px; border-left: 4px solid var(--orange); background: var(--tint); }
.slide.pB .b2-ask .tag { display: block; margin: 0 0 6px; font-size: 18px; letter-spacing: .07em; color: var(--orange-2); font-weight: 700; }
.slide.pB .slide-body .b2-ask p { margin: 0; font-size: 29px; line-height: 1.36; }
.slide.pB .slide-body .b2-ask p + p { margin-top: 8px; }
.slide.pB .b2-ask.b2-big { padding: 26px 34px; }
.slide.pB .slide-body .b2-ask.b2-big p { font-size: 34px; line-height: 1.34; }
.slide.pB .b2-ask.b2-big p.b2-hint { font-size: 28px; color: var(--muted); }

/* derivations */
.slide.pB .b2-steps li { font-size: 27px; line-height: 1.32; margin-bottom: 10px; padding-left: 50px; }
.slide.pB .b2-steps li::before { font-size: 20px; }
.slide.pB .b2-steps .katex-display { margin: 4px 0; }
.slide.pB .b2-steps .katex { font-size: 1.02em; }

/* code and model output */
.slide.pB pre.b2-code { margin: 0; padding: 6px 16px; background: var(--code); border-left: 3px solid var(--blue-2); font-family: var(--mono); font-size: 27px; line-height: 1.3; white-space: pre-wrap; }
.slide.pB pre.b2-code.bad { border-left-color: var(--bad); }
.slide.pB pre.b2-code.good { border-left-color: var(--good); }
.slide.pB .b2-lab.tag, .slide.pB .b2-lab { display: block; margin: 7px 0 3px; font-size: 18px; letter-spacing: .07em; color: var(--muted); font-weight: 650; text-transform: uppercase; }
.slide.pB .b2-lab:first-child { margin-top: 0; }

/* tables written out for these slides */
.slide.pB table.b2-t { width: 100%; border-collapse: collapse; }
.slide.pB table.b2-t th { padding: 8px 12px; font-size: 17px; letter-spacing: .07em; color: var(--muted); background: var(--panel); text-align: left; }
.slide.pB table.b2-t td { padding: 9px 12px; font-size: 27px; line-height: 1.24; border-bottom: 1px solid var(--line); vertical-align: top; }
.slide.pB table.b2-t td:first-child { font-weight: 650; color: var(--deep); white-space: nowrap; }

/* two free-text answers vs numbers (p. 49) */
.slide.pB .b2-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.slide.pB .b2-cmp > div { padding: 14px 20px; border-top: 3px solid var(--line); }
.slide.pB .b2-cmp > div.ok { border-top-color: var(--good); }
.slide.pB .b2-cmp > div.no { border-top-color: var(--bad); }
.slide.pB .b2-cmp .tag { display: block; margin-bottom: 8px; font-size: 18px; letter-spacing: .07em; color: var(--muted); }
.slide.pB .slide-body .b2-cmp p { margin: 0 0 6px; font-size: 27px; line-height: 1.3; }
.slide.pB .b2-chip { display: inline-block; padding: 2px 12px; margin: 0 6px 6px 0; border-radius: 3px; background: var(--panel); font-size: 27px; font-weight: 650; }
.slide.pB .b2-chip.g { background: #e1ebe8; color: var(--good); }
.slide.pB .b2-chip.r { background: #f3e1de; color: var(--bad); }

/* three ways to use tokens (p. 72) */
.slide.pB .b2-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.slide.pB .b2-three > div { border-top: 2px solid var(--blue); padding-top: 12px; }
.slide.pB .b2-three h4 { margin: 0 0 6px; font-size: 32px; color: var(--deep); }
.slide.pB .slide-body .b2-three p { margin: 0; font-size: 27px; line-height: 1.32; }

/* quotes */
.slide.pB .b2-quote { margin: 0; padding: 10px 0 10px 22px; border-left: 3px solid var(--orange); font-size: 29px; line-height: 1.36; color: var(--deep); }

/* xkcd (image loads from imgs.xkcd.com; nothing copied) */
.slide.pB .b2-xkcd { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.slide.pB .b2-xkcd img { display: block; max-height: 330px; width: auto; background: #fff; }
.slide.pB .b2-xkcd .tag { font-size: 18px; color: var(--muted); margin: 0; }

/* diagrams drawn for these slides */
.slide.pB svg.b2-svg { display: block; width: 100%; height: auto; overflow: visible; }
.slide.pB svg.b2-svg text { font-family: var(--font); font-size: 19px; fill: var(--text); }
.slide.pB svg.b2-svg text.t { font-size: 20px; font-weight: 700; fill: var(--deep); }
.slide.pB svg.b2-svg text.s { font-size: 17px; fill: var(--muted); }
.slide.pB svg.b2-svg text.m { text-anchor: middle; }
.slide.pB svg.b2-svg text.e { text-anchor: end; }
.slide.pB svg.b2-svg .ln { stroke: var(--muted); stroke-width: 1.6; fill: none; }
.slide.pB svg.b2-svg .ln.b { stroke: var(--blue-2); stroke-width: 2.2; }
.slide.pB svg.b2-svg .ln.o { stroke: var(--orange); stroke-width: 2.2; }
.slide.pB svg.b2-svg .ln.d { stroke-dasharray: 6 5; }
.slide.pB svg.b2-svg .ah { fill: var(--muted); }
.slide.pB svg.b2-svg .ah.b { fill: var(--blue-2); }
.slide.pB svg.b2-svg .ah.o { fill: var(--orange); }
.slide.pB svg.b2-svg .bx { fill: #fff; stroke: var(--blue-2); stroke-width: 1.6; }
.slide.pB svg.b2-svg .bx.p { fill: var(--panel); }
.slide.pB svg.b2-svg .bx.o { fill: var(--tint); stroke: var(--orange); }
.slide.pB svg.b2-svg .st { fill: var(--panel-2); stroke: var(--blue-2); stroke-width: 1.2; }
.slide.pB svg.b2-svg .a0 { fill: #dbe7e3; stroke: var(--good); stroke-width: 1.6; }
.slide.pB svg.b2-svg .a1 { fill: var(--tint); stroke: var(--orange); stroke-width: 1.6; }
.slide.pB svg.b2-svg .a2 { fill: #f2dfdb; stroke: var(--bad); stroke-width: 1.6; }
.slide.pB svg.b2-svg text.g0 { fill: var(--good); font-weight: 700; }
.slide.pB svg.b2-svg text.g1 { fill: var(--orange-2); font-weight: 700; }
.slide.pB svg.b2-svg text.g2 { fill: var(--bad); font-weight: 700; }
.slide.pB svg.b2-svg .cl { fill: none; stroke-width: 2; stroke-dasharray: 5 4; }
.slide.pB svg.b2-svg .grid { stroke: var(--line); stroke-width: 1; fill: none; }
.slide.pB svg.b2-svg .axis { stroke: var(--muted); stroke-width: 1.4; fill: none; }
.slide.pB svg.b2-svg .c1 { stroke: var(--muted); stroke-width: 2.4; fill: none; stroke-dasharray: 7 6; }
.slide.pB svg.b2-svg .c3 { stroke: var(--blue-2); stroke-width: 3; fill: none; }
.slide.pB svg.b2-svg .c9 { stroke: var(--orange); stroke-width: 3; fill: none; }
.slide.pB svg.b2-svg .mk { stroke: var(--deep); stroke-width: 1.4; stroke-dasharray: 4 4; fill: none; }
.slide.pB svg.b2-svg .dot1 { fill: var(--muted); }
.slide.pB svg.b2-svg .dot3 { fill: var(--blue-2); }
.slide.pB svg.b2-svg .dot9 { fill: var(--orange); }
.slide.pB svg.b2-svg .bar { fill: var(--blue-2); }
.slide.pB svg.b2-svg .bar.o { fill: var(--orange); }
.slide.pB svg.b2-svg .half { fill: var(--panel); }

/* live visualizations (inline scripts on the slide); the svg height is set on each slide */
.slide.pB .b2-viz { margin: 0; }
.slide.pB .b2-viz svg.b2-svg { width: auto; max-width: 100%; margin: 0 auto; }
.slide.pB .b2-viz .controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 8px; }
.slide.pB .b2-viz .controls button { font-size: 19px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--text); cursor: pointer; }
.slide.pB .b2-viz .controls button:hover { border-color: var(--blue-2); }
.slide.pB .b2-viz .controls label { font-size: 19px; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; }
.slide.pB .b2-viz .controls input[type=range] { width: 220px; accent-color: var(--orange); }
.slide.pB .b2-viz .readout { margin: 8px 0 0; padding: 10px 14px; font-size: 20px; line-height: 1.35; white-space: normal; }

/* hand-off to Part C */
.slide.pB .b2-next { margin: 0; padding: 14px 22px; border-left: 4px solid var(--blue); background: var(--panel); font-size: 29px; font-weight: 650; color: var(--deep); }
/* the vote chart: larger labels (the svg is scaled down) */
.slide.pB [data-b2=vote] svg.b2-svg text.s { font-size: 21px; }
.slide.pB [data-b2=vote] svg.b2-svg text { font-size: 23px; }
/* retyped results table (CoT can hurt): compact rows, numbers aligned right */
.slide.pB table.b2-tn td { padding: 3px 10px; font-size: 27px; line-height: 1.15; }
.slide.pB table.b2-tn th { padding: 6px 10px; }
.slide.pB table.b2-t .n { text-align: right; font-variant-numeric: tabular-nums; }
.slide.pB table.b2-t td.n { font-weight: 400; color: var(--text); }
.slide.pB table.b2-t tr.hl td { background: var(--tint); }
.slide.pB table.b2-tn th { white-space: nowrap; }

/* reference-page slides (18 Oct 2026): the page's own words, its red emphasis and its caption lines */
.slide.pB .b2-em { color: var(--bad); font-weight: 650; }
.slide.pB .b2-fig figcaption { margin: 4px 0 0; max-width: 1040px; text-align: center; font-size: 28px; line-height: 1.34; }
.slide.pB .b2-fig figcaption.blue { margin: 0 0 4px; color: var(--blue-2); }
.slide.pB ul.b2-spread > li { margin-bottom: 26px; }
.slide.pB ul.b2-spread > li:last-child { margin-bottom: 0; }
.slide.pB .b2-lab.raw { text-transform: none; letter-spacing: 0; }
.slide.pB svg.b2-strip { width: 100%; max-width: 820px; margin: 0 auto; }
.slide.pB .b2-parts { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 8px 44px; align-items: center; }
.slide.pB .b2-parts svg.b2-svg { width: 270px; }
.slide.pB .slide-body p.b2-key.b2-em { color: var(--bad); }
.slide.pB .slide-body p.b2-center { text-align: center; }

/* ───── Part C (slides_build/partC/partC.css) ───── */
/* Part C — Agents and harnesses (slides_build/partC/partC.css).
   Every selector is scoped by .slide.pC. Theme: assets/css/slides-theme.css. */

/* rhythm: references sit under every slide, so keep the vertical spacing tight */
.slide.pC > h2 { margin-bottom: 18px; }
.slide.pC > .src { margin-top: 10px; padding-top: 8px; }
.slide.pC > .src + .refs, .slide.pC .src + .refs { margin-top: 5px; }
.slide.pC .slide-body > .fit { gap: 18px; }
.slide.pC .fit > .grid, .slide.pC .fit > .cols, .slide.pC .fit > .tasks, .slide.pC .fit > .codepair, .slide.pC .fit > table.pC-t,
.slide.pC .fit > .callout, .slide.pC .fit > ol, .slide.pC .fit > ul, .slide.pC .fit > svg, .slide.pC .fit > .chiprow, .slide.pC .fit > .drift,
.slide.pC .fit > .legend, .slide.pC .fit > figure { width: 100%; align-self: stretch; }

/* text */
.slide.pC .slide-body p, .slide.pC .slide-body li { font-size: 28px; line-height: 1.34; }
.slide.pC ul.pts { margin: 0; padding-left: 1.05em; }
.slide.pC ul.pts > li { margin: 0 0 12px; }
.slide.pC ul.pts > li:last-child { margin-bottom: 0; }
.slide.pC ul.pts.tight > li { margin-bottom: 8px; }
.slide.pC .key { margin: 0; font-weight: 650; color: var(--deep); }
.slide.pC .lede { margin: 0; color: var(--text); }
.slide.pC .slide-body p.small-prose { margin: 0; font-size: 28px; line-height: 1.34; }
.slide.pC .slide-body p.mathline { margin: 0; font-size: 30px; }
.slide.pC .mathline .katex-display { margin: 2px 0; }
.slide.pC .slide-body p.viz-note { margin: 0; font-size: 27px; line-height: 1.3; color: var(--muted); }
.slide.pC .slide-body p.muted { color: var(--muted); }
.slide.pC .slide-body p.callout { margin: 0; }
.slide.pC .stack > * + * { margin-top: 14px; }
.slide.pC .slide-body code { font-size: max(27px, .9em); }

/* two columns */
.slide.pC .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.slide.pC .cols > * { min-width: 0; }
.slide.pC .cols.fig-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.slide.pC .cols.fig-left.wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.slide.pC .cols.vid-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.slide.pC .cols.def { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.slide.pC .cols.code-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.slide.pC .cols.fig-right { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.slide.pC .cols.math-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.slide.pC .cols.inj { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }

/* figures: paper crops at 300 dpi and deck crops */
.slide.pC .fig { margin: 0; display: flex; justify-content: center; align-items: center; }
.slide.pC .fig img { display: block; max-width: 100%; max-height: 400px; width: auto; height: auto; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.slide.pC .fig.wide img { max-height: 225px; }
.slide.pC .cols.inj .fig img { max-height: 330px; border: 0; }
.slide.pC .cols.fig-right .fig img { max-height: 300px; border: 0; }
.slide.pC .fig.vid video { display: block; width: 100%; max-height: 400px; background: #000; border-radius: 4px; }
.slide.pC [data-viz=youtube] { width: 100%; }

/* ✋ cards */
.slide.pC .card.accent.row { display: flex; align-items: baseline; gap: 18px; padding: 12px 20px; border: 0; border-left: 3px solid var(--orange); background: var(--tint); border-radius: 0; }
.slide.pC .card.accent.row .tag { margin: 0; flex: none; }
.slide.pC .card.accent.row p { margin: 0; }

/* p. 4: six tasks to classify */
.slide.pC .legend { display: flex; align-items: center; gap: 26px; }
.slide.pC .legend .tag { margin: 0 auto 0 0; }
.slide.pC .legend .lg { font-size: 18px; font-weight: 650; letter-spacing: .05em; color: var(--muted); }
.slide.pC .legend .lg::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.slide.pC .legend .lg.auto::before { background: var(--good); }
.slide.pC .legend .lg.ask::before { background: var(--orange); }
.slide.pC .legend .lg.never::before { background: var(--bad); }
.slide.pC .tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.slide.pC .tasks > div { padding: 18px 20px; min-height: 120px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 28px; line-height: 1.3; font-weight: 600; color: var(--deep); display: flex; align-items: center; }

/* code */
.slide.pC pre.code { margin: 0; padding: 12px 18px; background: var(--code); border-radius: 4px; font-size: 27px; line-height: 1.25; overflow: visible; }
.slide.pC pre.code code { font-size: inherit; background: none; padding: 0; white-space: pre; letter-spacing: -.02em; }
.slide.pC pre.code .cm { color: var(--muted); }
.slide.pC .codepair { display: flex; flex-direction: column; gap: 14px; }
.slide.pC .codepair .tag, .slide.pC .code2 .tag, .slide.pC .trace .tag { display: block; margin: 0 0 6px; color: var(--muted); font-size: 18px; letter-spacing: .05em; font-weight: 650; }
.slide.pC .fit > .grid.code2 { gap: 0 24px; }
.slide.pC .fit > .grid.code2 > div > pre + .tag { margin-top: 14px; }

/* cards in a grid */
.slide.pC .fit > .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.slide.pC .fit > .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.slide.pC .fit > .grid > .card { padding-top: 14px; }
.slide.pC .fit > .grid > .card p { font-size: 28px; line-height: 1.34; margin: 0 0 8px; }
.slide.pC .fit > .grid > .card p:last-child { margin-bottom: 0; }
.slide.pC .fit > .grid > .card .tag { margin-bottom: 10px; }
.slide.pC .fit > .grid.guesses > .card p { font-size: 32px; font-weight: 650; color: var(--deep); }

/* p. 17: six capabilities */
.slide.pC ol.caps { margin: 0; padding: 0; list-style: none; counter-reset: cap; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 44px; }
.slide.pC ol.caps li { counter-increment: cap; position: relative; margin: 0; padding: 14px 0 0 52px; border-top: 2px solid var(--blue-2); font-size: 30px; line-height: 1.25; }
.slide.pC ol.caps li::before { content: counter(cap) "."; position: absolute; left: 0; top: 14px; color: var(--blue-2); font-weight: 600; }
.slide.pC ol.caps li b { display: block; color: var(--deep); }
.slide.pC ol.caps li span { display: block; margin-top: 4px; font-size: 27px; color: var(--muted); }

/* summary table */
.slide.pC table.pC-t { width: 100%; border-collapse: collapse; font-size: 27px; }
.slide.pC table.pC-t th { padding: 10px 14px; font-size: 17px; letter-spacing: .07em; color: var(--muted); background: var(--panel); text-align: left; }
.slide.pC table.pC-t td { padding: 9px 14px; border-bottom: 1px solid var(--line); line-height: 1.22; }
.slide.pC table.pC-t td:first-child { font-weight: 650; color: var(--deep); width: 26%; }

/* systems pages: a row of labelled chips, optionally joined by arrows */
.slide.pC .chiprow { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.slide.pC .chiprow span { padding: 10px 20px; border: 2px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 27px; font-weight: 600; color: var(--deep); }
.slide.pC .chiprow.arrows { gap: 0; }
.slide.pC .chiprow.arrows span + span::before { content: "→"; display: inline-block; margin: 0 14px 0 -36px; width: 22px; color: var(--muted); font-weight: 400; }
.slide.pC .chiprow.arrows span + span { margin-left: 44px; }

/* compaction drift */
.slide.pC .drift { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0; }
.slide.pC .drift .tag { margin: 0 18px 0 0; color: var(--muted); font-size: 18px; font-weight: 650; letter-spacing: .05em; }
.slide.pC .drift span:not(.tag) { font-size: 27px; padding: 6px 14px; background: var(--panel); border-radius: 4px; color: var(--deep); }
.slide.pC .drift span:not(.tag) + span:not(.tag)::before { content: "→ "; color: var(--muted); }
.slide.pC .drift span:not(.tag) + span:not(.tag) { margin-left: 12px; }
.slide.pC .drift span.lost { background: #f3e3e0; color: var(--bad); font-weight: 650; }

/* swatches in the context-growth legend */
.slide.pC .sw { display: inline-block; width: 18px; height: 18px; border-radius: 3px; vertical-align: -2px; margin: 0 4px 0 0; }
.slide.pC .sw.pre { background: var(--deep); }
.slide.pC .sw.hist { background: #8fa9bf; margin-left: 10px; }

/* inline SVG diagrams drawn for this part */
.slide.pC svg.pC-d { display: block; width: 100%; height: auto; overflow: visible; }
.slide.pC svg.pC-d.row { max-height: 118px; }
.slide.pC svg.pC-d.row.short { max-height: 84px; }
.slide.pC svg.pC-d.loop { max-height: 370px; }
.slide.pC svg.pC-d.sys { max-height: 350px; }
.slide.pC svg.pC-d.comp { max-height: 120px; }
.slide.pC .cols svg.pC-d { max-height: 330px; }
.slide.pC svg.pC-d text { font-family: var(--font); font-size: 20px; fill: var(--text); text-anchor: middle; }
.slide.pC svg.pC-d .ah { fill: var(--muted); }
.slide.pC svg.pC-d .bx { fill: #fff; stroke: var(--blue-2); stroke-width: 2; }
.slide.pC svg.pC-d .bx.alt { fill: var(--panel); }
.slide.pC svg.pC-d .bx.dark { fill: var(--deep); stroke: var(--deep); }
.slide.pC svg.pC-d .bx.or { fill: var(--tint); stroke: var(--orange); }
.slide.pC svg.pC-d .bx.blue { fill: var(--blue-2); stroke: var(--blue-2); }
.slide.pC svg.pC-d .bx.bad { fill: var(--bad); stroke: var(--bad); }
.slide.pC svg.pC-d .bx.hist { fill: #eef2f5; stroke-dasharray: 6 4; }
.slide.pC svg.pC-d .frame { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.slide.pC svg.pC-d .sand { fill: #f3f6f9; stroke: var(--blue-2); stroke-width: 2.5; stroke-dasharray: 10 7; }
.slide.pC svg.pC-d .chips rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.slide.pC svg.pC-d .w { fill: none; stroke: var(--muted); stroke-width: 2.4; }
.slide.pC svg.pC-d .w.thin { stroke-width: 1.6; }
.slide.pC svg.pC-d .w.blue { stroke: var(--blue-2); stroke-width: 3; }
.slide.pC svg.pC-d .w.dash { stroke-dasharray: 5 5; }
.slide.pC svg.pC-d .w.loopw { stroke: var(--orange); stroke-dasharray: 8 6; }
.slide.pC svg.pC-d text.t { font-size: 26px; font-weight: 700; fill: var(--deep); }
.slide.pC svg.pC-d text.inv { fill: #fff; }
.slide.pC svg.pC-d text.s { font-size: 20px; fill: var(--muted); }
.slide.pC svg.pC-d text.s.blue { fill: var(--blue-2); }
.slide.pC svg.pC-d text.b { font-weight: 700; }
.slide.pC svg.pC-d text.m { font-size: 26px; font-style: italic; font-family: "Times New Roman", serif; text-anchor: start; }
.slide.pC svg.pC-d text.m.sub { font-size: 17px; }
.slide.pC svg.pC-d text.code { font-family: var(--mono); font-size: 25px; fill: var(--deep); }
.slide.pC svg.pC-d text.code.sm { font-size: 21px; }
.slide.pC svg.pC-d text.hd2 { font-size: 24px; font-weight: 700; fill: var(--blue-2); text-anchor: start; }
.slide.pC svg.pC-d text.s2 { font-size: 20px; font-weight: 700; letter-spacing: 0; fill: var(--deep); text-anchor: start; }
/* context bars, pass curves and horizon curve (computed) */
.slide.pC svg.pC-d .pre { fill: var(--deep); }
.slide.pC svg.pC-d .hist { fill: #8fa9bf; }
.slide.pC svg.pC-d .bars text { font-size: 21px; }
.slide.pC svg.pC-d text.hd { font-size: 17px; fill: var(--muted); letter-spacing: .04em; text-anchor: start; }
.slide.pC svg.pC-d text.rl { font-weight: 700; fill: var(--deep); text-anchor: end; }
.slide.pC svg.pC-d text.v { font-weight: 700; fill: var(--deep); text-anchor: start; }
.slide.pC svg.pC-d text.c { fill: var(--orange-2); font-weight: 700; }
.slide.pC svg.pC-d .grid { stroke: var(--line); stroke-width: 1; }
.slide.pC svg.pC-d text.ax { font-size: 18px; fill: var(--muted); }
.slide.pC svg.pC-d .l { fill: none; stroke-width: 3; }
.slide.pC svg.pC-d .l.at { stroke: var(--blue-2); stroke-dasharray: 3 5; }
.slide.pC svg.pC-d .l.hat { stroke: var(--orange); }
.slide.pC svg.pC-d .d.at { fill: var(--blue-2); }
.slide.pC svg.pC-d .d.hat { fill: var(--orange); }
.slide.pC svg.pC-d .mk { fill: none; stroke: var(--orange-2); stroke-width: 2.5; }
.slide.pC svg.pC-d text.lab { font-size: 20px; font-weight: 700; text-anchor: start; }
.slide.pC svg.pC-d text.lab.at { fill: var(--blue-2); }
.slide.pC svg.pC-d text.lab.hat { fill: var(--orange-2); }
.slide.pC svg.pC-d .c1 { fill: var(--deep); }
.slide.pC svg.pC-d .c2 { fill: #6f7f8c; }
.slide.pC svg.pC-d .c3 { fill: var(--bad); }
.slide.pC svg.pC-d .c4 { fill: #a9b3bb; }
.slide.pC svg.pC-d .c5 { fill: #5b85aa; }
.slide.pC svg.pC-d .c6 { fill: var(--blue-2); }
.slide.pC svg.pC-d text.pc { font-size: 26px; font-weight: 700; }
/* anchors last, so they win over the defaults above */
.slide.pC svg.pC-d text.st { text-anchor: start; }
.slide.pC svg.pC-d text.mid { text-anchor: middle; }
.slide.pC svg.pC-d text.end { text-anchor: end; }

/* demo slide: the frame fills the body */
.slide.pC .demo-foot b { font-weight: 700; }

/* p. 4 legend: supporting tier */
.slide.pC .legend .tag.lg { margin: 0; text-transform: none; }
.slide.pC .legend > .tag:first-child { font-size: 18px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
/* YouTube clip: its "Open on YouTube" link is a supporting label */
.slide.pC .ytwrap { width: 100%; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.slide.pC .ytwrap .yt-link { font-size: 18px; }
/* mini-swe-agent code beside its notes */
.slide.pC .cols.code-left { grid-template-columns: 752px minmax(0, 1fr); gap: 30px; }
.slide.pC .cols.code-left ul.pts > li { margin-bottom: 10px; }
.slide.pC table.pC-t td:nth-child(2) { width: 40%; }
.slide.pC svg.pC-d text.s.sm { font-size: 17px; }
.slide.pC .chiprow i { font-style: normal; font-size: 27px; color: var(--muted); }
/* compaction drift: label above, chain below */
.slide.pC .drift { flex-direction: column; align-items: flex-start; gap: 8px; }
.slide.pC .drift .chain { display: flex; align-items: center; flex-wrap: nowrap; }
.slide.pC .drift .chain span + span { margin-left: 12px; }
.slide.pC .drift .chain span + span::before { content: "→ "; color: var(--muted); }
.slide.pC .drift .chain span { font-size: 27px; padding: 6px 14px; background: var(--panel); border-radius: 4px; color: var(--deep); }
.slide.pC .drift .chain span.lost { background: #f3e3e0; color: var(--bad); font-weight: 650; }
/* pass^k formulas in HTML (KaTeX has no plain caret in text) */
.slide.pC .slide-body p.mathline.eq { font-size: 30px; font-family: "Times New Roman", serif; }
.slide.pC .slide-body p.mathline.eq .gap { display: inline-block; width: 48px; }
.slide.pC .slide-body p.callout { font-size: 28px; line-height: 1.34; padding: 12px 20px; }
/* horizon values as a small table */
.slide.pC table.pC-t.hz { font-size: 28px; }
.slide.pC table.pC-t.hz th { font-size: 17px; }
.slide.pC table.pC-t.hz td, .slide.pC table.pC-t.hz th { text-align: center; width: auto; }
.slide.pC table.pC-t.hz td:first-child, .slide.pC table.pC-t.hz th:first-child { text-align: left; width: auto; }
/* xkcd beside the key line */
.slide.pC .xk { display: flex; align-items: center; gap: 24px; }
.slide.pC .xk .xkimg { flex: none; }
.slide.pC .xk img { display: block; height: 104px; width: auto; background: #fff; }
.slide.pC .xk .key { flex: 1; }
.slide.pC .cols.inj .stack > .trace pre.code { padding: 10px 16px; }
.slide.pC .slide-body p.mathline.eq { font-size: 33px; }
.slide.pC .slide-body p.mathline.eq sup { font-size: 27px; }
.slide.pC .cols.fig-left .fig img { max-height: 330px; }
.slide.pC .fig.wide img { max-height: 205px; }
.slide.pC svg.pC-d.loop { max-height: 340px; }
.slide.pC ul.pts.tight > li { margin-bottom: 4px; }
.slide.pC .cols.fig-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.slide.pC .cols.fig-left.wide { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.slide.pC .cols.def { grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr); gap: 28px; }
.slide.pC .cols.def { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 28px; }
.slide.pC .cols.def .stack > * + * { margin-top: 8px; }

/* review of 10 Oct 2026: back-references to Part A, and flows that explain each label of a deck page */
.slide.pC .slide-body p.backref { margin: 0; font-size: 27px; line-height: 1.3; color: var(--muted); }
.slide.pC .fit > .flow { width: 100%; align-self: stretch; }
.slide.pC .flow { display: grid; gap: 0 34px; }
.slide.pC .flow.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slide.pC .flow.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slide.pC .flow.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 26px; }
.slide.pC .flow .fs { position: relative; padding: 10px 0 0; border-top: 3px solid var(--blue-2); }
.slide.pC .flow .fs b { display: block; font-size: 28px; line-height: 1.2; color: var(--deep); margin-bottom: 4px; }
.slide.pC .flow .fs span { display: block; font-size: 27px; line-height: 1.28; color: var(--text); }
.slide.pC .flow .fs span code { font-size: 25px; }
.slide.pC .flow.arrows .fs + .fs::before { content: "→"; position: absolute; left: -27px; top: 8px; font-size: 26px; color: var(--muted); }
.slide.pC .flow.n5.arrows .fs + .fs::before { left: -22px; }
.slide.pC .flow .fs span code { font-size: 27px; }
.slide.pC .flow .fs { padding: 10px 14px 12px; background: var(--panel); border-top-color: var(--orange); }
.slide.pC .flow.arrows .fs + .fs::before { top: 12px; }
.slide.pC .flow .fs span code { background: transparent; padding: 0; }
.slide.pC .codepair { gap: 10px; }
.slide.pC .codepair pre.code { padding: 10px 18px; }

/* ═════ 18 Oct 2026: reference-page slides copy their page word for word ═════
   Page headings, page bullets, label-only flows, credit lines, split code pages. */
.slide.pC .fit > .grid > .card .tag.ph, .slide.pC .card .tag.ph { font-size: 28px; line-height: 1.2; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--orange-2); margin-bottom: 8px; }
.slide.pC .card ul.pts { margin: 0; padding-left: 1.05em; }
.slide.pC .card ul.pts > li { margin: 0 0 8px; font-size: 28px; line-height: 1.34; }
.slide.pC .card ul.pts > li:last-child { margin-bottom: 0; }
.slide.pC .card ul.pts b.rl { color: var(--orange-2); }
.slide.pC .card.pg .nm { margin: 0 0 6px; font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--orange-2); }
.slide.pC .card.pg p.mu { color: var(--muted); }
.slide.pC .pagecap { margin: 0; text-align: center; color: var(--muted); }
.slide.pC .credit { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.slide.pC .fig.capfig img { max-height: 292px; }

/* p. 4: sub-heading in the page's case, class label under each task */
.slide.pC .legend > .tag.sub:first-child { text-transform: none; letter-spacing: 0; font-size: 24px; font-weight: 650; color: var(--muted); }
.slide.pC .tasks > div { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.slide.pC .tasks > div .tag { margin: 0; font-size: 17px; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.slide.pC .tasks.pgp > div { min-height: 150px; }

/* p. 9: quotation and its credit above the figure, four bullets below */
.slide.pC .slide-body p.quote { margin: 0; font-size: 30px; line-height: 1.3; font-weight: 400; font-style: italic; color: var(--deep); }
.slide.pC .slide-body p.attr { margin: 8px 0 0; font-size: 27px; line-height: 1.3; color: var(--muted); }
.slide.pC .cols.def.top svg.pC-d { max-height: 230px; }

/* p. 11: left text, right code */
.slide.pC .cols.tdef { grid-template-columns: 330px minmax(0, 1fr); gap: 28px; align-items: start; }
.slide.pC .slide-body p.lead2 { margin: 0 0 14px; font-size: 32px; line-height: 1.25; font-weight: 700; color: var(--deep); }
.slide.pC .cols.tdef pre.code { padding: 10px 12px; }
.slide.pC .codelab { margin: 0 0 6px; font-size: 27px; font-weight: 700; color: var(--orange-2); }
.slide.pC .codelab code { background: var(--code); padding: 0 6px; border-radius: 3px; font-weight: 400; color: var(--deep); }
.slide.pC .fit > .grid.code2 { grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); gap: 0 20px; }
.slide.pC .grid.code2 pre.code { padding: 10px 12px; }
.slide.pC .grid.code2 .codelab.ph { font-size: 28px; }
.slide.pC .grid.code2 > div > pre + .codelab { margin-top: 12px; }

/* p. 15: two slides of code, buttons, the page's last line */
.slide.pC .codehead { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.slide.pC .codehead .nm { font-size: 34px; font-weight: 500; color: var(--deep); }
.slide.pC .codehead .browse { font-size: 20px; font-weight: 650; color: var(--muted); margin: 0; letter-spacing: 0; text-transform: none; }
.slide.pC .codehead .btn { display: inline-block; margin-left: 10px; padding: 3px 12px; border: 1.5px solid var(--blue-2); border-radius: 4px; color: var(--blue-2); font-size: 20px; }
.slide.pC .slide-body pre.code.lg { padding: 8px 16px; line-height: 1.15; }
.slide.pC .slide-body p.assign { margin: 0; padding-top: 8px; border-top: 2px solid var(--orange); font-size: 28px; line-height: 1.3; font-weight: 650; color: var(--muted); }

/* pp. 20–25, 28, 30, 31: the page's diagram labels, without our explanation lines */
.slide.pC .flow.lab .fs { text-align: center; }
.slide.pC .flow.lab .fs b { margin-bottom: 0; }
.slide.pC .flow .fs.ex span { margin-bottom: 6px; text-align: center; }
.slide.pC .flow .fs.ex span code { display: block; font-size: 27px; letter-spacing: -.04em; white-space: nowrap; }
.slide.pC .flow.dashed { border: 2px dashed var(--blue-2); border-radius: 16px; padding: 14px 18px; gap: 0 24px; }
.slide.pC .hbox { max-width: 920px; width: 100%; margin: 0 auto; border: 2px solid var(--deep); border-radius: 14px; padding: 8px 16px 14px; }
.slide.pC .hbox > b { display: block; text-align: center; font-size: 28px; color: var(--deep); margin-bottom: 8px; }
.slide.pC .hbox .chiprow { gap: 12px; flex-wrap: nowrap; }
.slide.pC .hbox .chiprow span { padding: 10px 14px; font-size: 27px; }

/* p. 3 of lecture 3 and p. 4 */
.slide.pC .slide-body p.formula { margin: 0; padding: 12px 20px; background: var(--code); border-radius: 4px; font-family: var(--mono); font-size: 30px; color: var(--deep); }
.slide.pC .slide-body p.formula sub { font-size: 27px; }
.slide.pC svg.pC-d.bars2 { max-height: 300px; }
.slide.pC .slide-body p.stat { margin: 0; text-align: center; color: var(--muted); }
.slide.pC .slide-body p.stat b { font-size: 52px; margin-right: 12px; color: var(--deep); }
.slide.pC svg.pC-d.row.tall { max-height: 170px; }
.slide.pC svg.pC-d .trk { fill: #e6e9ec; }
.slide.pC svg.pC-d .fil { fill: var(--blue-2); }
.slide.pC svg.pC-d text.vi { fill: #fff; font-weight: 700; font-size: 22px; }
.slide.pC svg.pC-d text.cm2 { fill: var(--muted); font-weight: 600; font-size: 22px; text-anchor: start; }
.slide.pC svg.pC-d text.lb2 { fill: var(--deep); font-weight: 700; font-size: 22px; text-anchor: start; }
.slide.pC svg.pC-d text.code.wt { fill: #fff; }
.slide.pC svg.pC-d text.m2 { font-size: 22px; font-style: italic; font-family: "Times New Roman", serif; text-anchor: start; }
.slide.pC svg.pC-d text.m2.sub2 { font-size: 15px; }

/* title-and-figure pages (CMU 3, 5, 6, 16): the figure alone, with the page's credit line */
.slide.pC .fig.capfig.tall img { max-height: 340px; }
.slide.pC .fig.vid.solo { max-width: 540px; width: 100%; margin: 0 auto; }
.slide.pC .ytwrap.solo { max-width: 600px; margin: 0 auto; }
.slide.pC .tag.lnkrow { margin: 0; text-align: right; letter-spacing: 0; text-transform: none; }
.slide.pC .lnkrow .btn { display: inline-block; padding: 3px 12px; border: 1.5px solid var(--blue-2); border-radius: 4px; color: var(--blue-2); font-size: 20px; font-weight: 650; text-decoration: none; }
.slide.pC .fig.wide.big img { max-height: 330px; }

/* Round 2: summary table in the page's words, one phrase per line */
.slide.pC table.pC-t.sum td { vertical-align: top; padding: 10px 14px; }
.slide.pC table.pC-t.sum td:first-child { width: 27%; }
.slide.pC table.pC-t.sum td:nth-child(2) { width: 36%; }
.slide.pC table.pC-t.sum td > div + div { margin-top: 2px; }
.slide.pC table.pC-t.sum td b { color: var(--orange-2); }

/* Figure 6 of Wilmers et al. (2026), JH 20 Oct 2026 */
.slide.pC .fig.capfig.anth6 { margin: 0 auto; }
.slide.pC .fig.capfig.anth6 img { display: block; margin: 0 auto; max-height: 440px; width: auto; max-width: 100%; border-radius: 8px; }

/* Figure 8 of Wilmers et al. (2026), JH 20 Oct 2026: the page's animation, click to play */
.slide.pC .fig.vid.solo.anth8 { max-width: none; width: auto; margin: 0 auto; }
.slide.pC .fig.vid.solo.anth8 video { display: block; margin: 0 auto; max-height: 400px; width: auto; max-width: 100%; border-radius: 8px; background: #f6f5f1; }

/* example lines added inside execute_actions (JH, 20 Oct 2026) */
.slide.pC pre.code .ex { display: inline-block; width: 100%; background: #e3edd9; border-radius: 3px; }

/* The six tasks classified with the page's three tags (JH, 20 Oct 2026) */
.slide.pC .tasks > div .tag.cls { font-size: 20px; padding: 2px 12px; border-radius: 999px; color: #fff; letter-spacing: .04em; text-transform: none; }
.slide.pC .tasks > div .tag.cls.auto { background: var(--good); }
.slide.pC .tasks > div .tag.cls.ask { background: var(--orange-2); }
.slide.pC .tasks > div .tag.cls.never { background: var(--bad); }

.slide.pC .legend > .tag.lg:first-child { text-transform: none; letter-spacing: .05em; }

/* Examples under the blocks of the capability slides (JH, 20 Oct 2026) */
.slide.pC .flow .fs span.eg { font-size: 22px; line-height: 1.25; color: var(--muted); margin-top: 6px; text-align: center; }
.slide.pC .flow .fs span.eg code { font-size: 21px; letter-spacing: 0; white-space: normal; display: inline; }
.slide.pC .card.pg p.eg { font-size: 24px; line-height: 1.3; margin-top: 10px; color: var(--text); }
.slide.pC .card.pg p.eg code { font-size: 22px; }

/* CMU 2: the repository screenshot, enlarged, JH 28 Oct 2026 */
.slide.pC .fig.capfig.repo { margin: 0 auto; }
.slide.pC .fig.capfig.repo img { display: block; margin: 0 auto; max-height: 390px; width: auto; max-width: 100%; }
.slide.pC .reporow { display: flex; align-items: center; justify-content: center; gap: 36px; }
.slide.pC .reporow .fig.capfig.repo { margin: 0; flex: 0 1 auto; }
.slide.pC .reporow img.tux { flex: 0 0 auto; height: 300px; width: auto; border: 0; }

/* CMU 2b: agents against people, JH 28 Oct 2026 */
.slide.pC table.pC-t.cmp { font-size: 30px; }
.slide.pC table.pC-t.cmp td { padding: 16px 16px; }
.slide.pC table.pC-t.cmp td:first-child { width: 34%; }
.slide.pC table.pC-t.cmp td:nth-child(2) { width: 22%; font-weight: 400; color: inherit; }
.slide.pC table.pC-t.cmp td:nth-child(3) { width: 25%; }
.slide.pC table.pC-t.cmp tr.ai td { background: #fdf1e6; font-weight: 700; color: var(--orange-2); }

/* CMU 3: red boxes on the chat screenshot, JH 28 Oct 2026 (the original image stays unchanged) */
.slide.pC .fig .hl { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
.slide.pC .fig .hl > .box { position: absolute; border: 4px solid #e11d1d; border-radius: 8px; pointer-events: none; }
.slide.pC .fig .hl > .box.b1 { left: 1.1%; top: 39.9%; width: 40.9%; height: 24.4%; }
.slide.pC .fig .hl > .box.b2 { left: 52.1%; top: 87.6%; width: 43%; height: 11.6%; }

/* CMU 15: a diagram above each code block, JH 28 Oct 2026 */
.slide.pC svg.pC-d.c15d { max-height: 190px; }
.slide.pC svg.pC-d.c15d.r1 { max-height: 80px; }
.slide.pC svg.pC-d.c15d text.cd { font-family: var(--mono); font-size: 19px; fill: var(--deep); letter-spacing: -.02em; }
.slide.pC svg.pC-d.c15d text.cd.inv { fill: #fff; }
.slide.pC svg.pC-d.c15d text.s { font-size: 20px; fill: var(--muted); }
.slide.pC svg.pC-d.c15d text.fl { text-anchor: start; font-weight: 700; font-family: var(--mono); fill: var(--deep); }
.slide.pC svg.pC-d.c15d text.lab { font-size: 18px; }

/* CMU 13 · language-model diagram above the agent diagram, keywords as overlay */
.slide.pC svg.pC-d.cmp13.lm { width: 100%; max-height: none; margin: 0 0 6px; }
.slide.pC svg.pC-d.cmp13.ag { width: 100%; max-height: none; margin: 0; }
.slide.pC .slide-body > .tag.ph { margin: 0; }
.slide.pC svg.pC-d.cmp13 .newband { fill: #ffeb7a; fill-opacity: .5; stroke: #d9b800; stroke-width: 2; stroke-dasharray: 9 6; }
.slide.pC svg.pC-d.cmp13 text.plus { font-size: 46px; font-weight: 800; fill: #8a6d00; text-anchor: middle; }
.slide.pC svg.pC-d.cmp13 .pl { stroke-width: 3; }
.slide.pC svg.pC-d.cmp13 .pl.gen { fill: #fff; stroke: #10a37f; stroke-width: 4; }
.slide.pC svg.pC-d.cmp13 .pl.ext { fill: #f4f4f4; stroke: #8a96a3; }
.slide.pC svg.pC-d.cmp13 .pl.env { fill: #fff; stroke: #8a96a3; stroke-dasharray: 8 6; }
.slide.pC svg.pC-d.cmp13 text.pt { font-size: 26px; font-weight: 700; fill: var(--deep); }
.slide.pC svg.pC-d.cmp13 .pk { fill: none; stroke: var(--muted); stroke-width: 2.4; }
.slide.pC svg.pC-d.cmp13 text.lp { font-size: 22px; font-weight: 600; fill: var(--orange-2); }

/* CMU 12 · flow strip above the four code blocks */
.slide.pC svg.pC-d.flow12 { max-height: 90px; margin: 0 0 10px; }
.slide.pC svg.pC-d.flow12 .fl { stroke-width: 3; fill: #fff; }
.slide.pC svg.pC-d.flow12 .fl.llm { stroke: #10a37f; stroke-width: 4; }
.slide.pC svg.pC-d.flow12 .fl.exe { fill: #f4f4f4; stroke: #8a96a3; stroke-dasharray: 8 6; }
.slide.pC svg.pC-d.flow12 .fl.pill { fill: var(--tint); stroke: var(--orange); }
.slide.pC svg.pC-d.flow12 text.fx { font-size: 26px; font-weight: 700; fill: var(--deep); }
.slide.pC .grid.code2 .codelab { font-size: 27px; color: var(--deep); display: flex; align-items: center; gap: 12px; }
.slide.pC .grid.code2 .codelab::before { content: ""; width: 26px; height: 20px; border-radius: 5px; flex: none; }
.slide.pC .grid.code2 .codelab.llm::before { border: 4px solid #10a37f; background: #fff; }
.slide.pC .grid.code2 .codelab.exe::before { border: 3px dashed #8a96a3; background: #f4f4f4; }
.slide.pC svg.pC-d.cmp13 .w.loopw { stroke-dasharray: none; stroke-width: 3; }
.slide.pC h2 .ai-out { color: #9aa5b1; text-decoration: line-through; text-decoration-thickness: .09em; }
.slide.pC svg.pC-d.cmp13 .ctx { fill: #fff; stroke: var(--blue-2); stroke-width: 2.5; }
.slide.pC svg.pC-d.cmp13 text.ctt { font-size: 24px; font-weight: 700; fill: var(--deep); text-anchor: start; }
.slide.pC svg.pC-d.cmp13 .chip { fill: #f4f4f4; stroke: #8a96a3; stroke-width: 2; }
.slide.pC svg.pC-d.cmp13 text.cx { font-size: 21px; font-weight: 600; fill: var(--deep); }
.slide.pC .top13 { display: flex; align-items: flex-start; gap: 24px; }
.slide.pC .top13 .lmcol { flex: 0 0 64.2%; }
.slide.pC .top13 svg.loop9 { flex: 1 1 0; min-width: 0; width: auto; max-height: 190px; }
.slide.pC .top13 svg.loop9 { box-sizing: border-box; border: 2px dashed #d9b800; border-radius: 14px; padding: 6px 8px; }
/* CMU 11 · thumbnail of the agent diagram, top right */
.slide.pC svg.pC-d.tdefmini { position: absolute; top: 56px; right: 56px; width: 500px; height: auto; overflow: hidden; border-radius: 12px; }
.slide.pC svg.pC-d.tdefmini .newband { stroke-dasharray: 9 6; }
/* CMU 14 · agent loop with the context emphasised */
.slide.pC svg.pC-d.cmp13.loop14 { width: 100%; max-height: none; }
.slide.pC svg.pC-d.loop14 .cblk { fill: #eef3f8; stroke: var(--blue-2); stroke-width: 4; }
.slide.pC svg.pC-d.loop14 text.cbt { font-size: 32px; font-weight: 800; fill: var(--deep); text-anchor: start; }
.slide.pC svg.pC-d.loop14 .cardc { fill: #fff; stroke: #8a96a3; stroke-width: 2.5; }
.slide.pC svg.pC-d.loop14 text.cn { font-size: 26px; font-weight: 700; fill: var(--deep); text-anchor: start; }
.slide.pC svg.pC-d.loop14 text.ce { font-family: var(--mono); font-size: 19px; fill: var(--deep); text-anchor: start; white-space: pre; }
/* merged slide: inbox screenshot and legend on the left, the six tasks on the right */
.slide.pC .mcols { display: grid; grid-template-columns: 36% minmax(0, 1fr); gap: 40px; align-items: center; width: 100%; align-self: stretch; }
.slide.pC .mleft { display: flex; flex-direction: column; gap: 18px; }
.slide.pC .mleft .fig.capfig.m177 { margin: 0; }
.slide.pC .mleft .fig.capfig.m177 img { display: block; width: 100%; height: auto; max-height: none; }
.slide.pC .legend.v { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.slide.pC .legend.v .tag.lg { font-size: 27px; font-weight: 400; letter-spacing: 0; }
.slide.pC .tasks.m177t { grid-template-columns: 1fr; border-left: 0; }
.slide.pC .tasks.m177t > div { flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; min-height: 0; padding: 10px 6px; font-size: 27px; font-weight: 400; border-right: 0; }
.slide.pC .tasks.m177t > div .tag { flex: none; }
.slide.pC h2 .hi { background: #ffeb7a; border-radius: 8px; padding: 0 .22em; }
/* CMU 19 · one small diagram above each training stage */
.slide.pC .grid.dgrow { margin-bottom: 18px; align-items: end; }
.slide.pC svg.pC-d.tr3 { width: 100%; height: auto; max-height: 160px; }
.slide.pC svg.pC-d.tr3 .gn { fill: #fff; stroke: #10a37f; stroke-width: 4; }
.slide.pC svg.pC-d.tr3 .gn.dash { stroke-dasharray: 8 6; }
.slide.pC svg.pC-d.tr3 text.tx { font-size: 22px; font-weight: 700; fill: var(--deep); }
.slide.pC svg.pC-d.tr3 text.tx.inv { fill: #fff; font-size: 20px; }
.slide.pC svg.pC-d.tr3 text.tk { font-size: 22px; font-weight: 600; fill: var(--deep); }
.slide.pC svg.pC-d.tr3 text.ts { font-size: 20px; font-weight: 600; fill: var(--muted); }
.slide.pC svg.pC-d.tr3 .w.loopw { stroke-dasharray: none; stroke: var(--orange); stroke-width: 3; }
/* CMU 18 · training against harness, one diagram per card */
.slide.pC svg.pC-d.two18 { width: 100%; height: auto; max-height: 225px; margin-top: 12px; }
.slide.pC svg.pC-d.two18 .frame18 { fill: #fafbfc; stroke: #b9c2cb; stroke-width: 2; stroke-dasharray: 8 6; }
.slide.pC svg.pC-d.two18 .chip3 { stroke-width: 3; }
.slide.pC svg.pC-d.two18 .chip3.upd { fill: #ffe6d6; stroke: #e5532d; }
.slide.pC svg.pC-d.two18 .chip3.frz { fill: #dff0fb; stroke: #3b9ad9; }
.slide.pC svg.pC-d.two18 .chip3.neu { fill: #f4f4f4; stroke: #8a96a3; }
.slide.pC svg.pC-d.two18 .env3 { fill: #f4f4f4; stroke: #8a96a3; stroke-width: 3; stroke-dasharray: 8 6; }
.slide.pC svg.pC-d.two18 .dat3 { fill: #fff; stroke: var(--blue-2); stroke-width: 3; }
.slide.pC svg.pC-d.two18 .opt3 { fill: var(--tint); stroke: var(--orange); stroke-width: 3; }
.slide.pC svg.pC-d.two18 text.cn3 { font-size: 22px; font-weight: 700; fill: var(--deep); }
.slide.pC svg.pC-d.two18 text.cs3 { font-size: 19px; font-weight: 600; fill: var(--muted); }
.slide.pC svg.pC-d.two18 text.fl3 { font-size: 19px; font-weight: 600; fill: var(--muted); text-anchor: start; }
.slide.pC .card:has(svg.two18) { display: flex; flex-direction: column; }
.slide.pC .card svg.two18 { margin-top: auto; }
.slide.pC .hh { background: #ffeb7a; }
.slide.pC span.hh { padding: 0 .2em; border-radius: 6px; }
.slide.pC .flow .fs.hh { background: #ffeb7a; }
/* CMU 20 · examples of inaccurate calls */
.slide.pC .bad4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr; gap: 12px 14px; width: 100%; align-self: stretch; }
.slide.pC .bad4 .bh { grid-column: 1 / -1; font-size: 27px; font-weight: 700; color: var(--deep); }
.slide.pC .bad4 > div:not(.bh) { background: #fff3f3; border: 2px solid var(--bad); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.slide.pC .bad4 b { font-size: 27px; color: var(--bad); }
.slide.pC .bad4 code { font-size: 27px; background: none; padding: 0; color: var(--deep); }
/* CMU 20 · pipelines without and with the harness */
.slide.pC svg.pC-d.pipe20 { width: 100%; height: auto; }
.slide.pC svg.pC-d.pipe20 .pn { stroke-width: 3; }
.slide.pC svg.pC-d.pipe20 .pn.llm { fill: var(--deep); stroke: var(--deep); }
.slide.pC svg.pC-d.pipe20 .pn.call { fill: var(--tint); stroke: var(--orange); }
.slide.pC svg.pC-d.pipe20 .pn.exe { fill: #f4f4f4; stroke: #8a96a3; stroke-dasharray: 8 6; }
.slide.pC svg.pC-d.pipe20 .pn.err { fill: var(--bad); stroke: var(--bad); }
.slide.pC svg.pC-d.pipe20 .chk { fill: #ffeb7a; stroke: #d9b800; stroke-width: 2.5; }
.slide.pC svg.pC-d.pipe20 text.pt2 { font-size: 24px; font-weight: 700; fill: var(--deep); }
.slide.pC svg.pC-d.pipe20 text.pt2.inv { fill: #fff; }
.slide.pC svg.pC-d.pipe20 text.pl2 { font-size: 22px; font-weight: 700; fill: var(--muted); text-anchor: start; }
.slide.pC svg.pC-d.pipe20 text.ct2 { font-size: 22px; font-weight: 600; fill: var(--deep); }
.slide.pC svg.pC-d.pipe20 text.rt2 { font-size: 20px; font-weight: 700; fill: var(--bad); text-anchor: start; }
.slide.pC svg.pC-d.pipe20 .w.rj { stroke: var(--bad); stroke-width: 2.6; }
.slide.pC svg.pC-d.pipe20 .ahr { fill: var(--bad); }
.slide.pC .bad4.eq { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slide.pC .bad4 span { font-size: 27px; color: var(--deep); }
.slide.pC svg.pC-d.cap21 .chk { fill: #ffeb7a; stroke: #d9b800; stroke-width: 2.5; }
.slide.pC svg.pC-d.cap21 text.rt3 { font-size: 20px; font-weight: 600; fill: var(--muted); text-anchor: start; }
.slide.pC svg.pC-d.cap21 .pn.exe { fill: #f4f4f4; stroke: #8a96a3; stroke-dasharray: 8 6; }
.slide.pC svg.pC-d.cap21 .trg { fill: #fff3f3; stroke: var(--bad); stroke-width: 2.5; }
.slide.pC svg.pC-d.cap21 text.ex { font-size: 21px; font-weight: 600; fill: var(--bad); }
.slide.pC svg.pC-d.cap21 text.ex.mono { font-family: var(--mono); font-size: 22px; }
.slide.pC svg.pC-d .xic { fill: var(--bad); }
.slide.pC svg.pC-d .xic2 { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; }
.slide.pC svg.pC-d.cap21 .trg.ok { fill: #f4f4f4; stroke: #8a96a3; }
.slide.pC svg.pC-d.cap21 text.ex.ok { fill: var(--deep); }
.slide.pC svg.pC-d .w.okw { stroke: var(--good); stroke-width: 2.6; }
.slide.pC svg.pC-d .ahg { fill: var(--good); }
.slide.pC svg.pC-d .xic.ok { fill: var(--good); }
.slide.pC .grid.lim { grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.slide.pC .grid.lim .card p { font-size: 30px; line-height: 1.3; color: var(--deep); margin: 6px 0 0; }
.slide.pC .grid.lim .tag .old { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-thickness: .08em; }
.slide.pC .grid.lim .tag .new { color: var(--good); }
.slide.pC .bad4.eq3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slide.pC svg.pC-d.cap21 text.ct2.sm { font-size: 19px; }
.slide.pC .fig.capfig.skillfig { margin: 0 auto; }
.slide.pC .fig.capfig.skillfig img { display: block; margin: 0 auto; max-height: 440px; width: auto; max-width: 100%; border-radius: 8px; }

/* ───── Part C (slides_build/partC/partC1.css) ───── */
/* Part C, segment "Inside a harness" (slides_build/partC/partC1.css). Scoped by .slide.pC. Code blocks come from
   partC/gen_partC1.py (verbatim excerpts of mini-swe-agent, checked against the source). */
.slide.pC pre.code.wr { margin: 0; padding: 10px 16px; }
.slide.pC pre.code.wr code { white-space: normal; letter-spacing: -.02em; }
.slide.pC pre.code.wr .l { display: block; white-space: pre-wrap; overflow-wrap: anywhere; padding-left: calc((var(--i, 0) + 4) * 1ch); text-indent: -4ch; line-height: 1.22; }
.slide.pC pre.code.wr .l.hl { background: #fff1b8; border-radius: 3px; }
.slide.pC pre.code.wr .l.cm { color: var(--muted); }
.slide.pC .hxhead { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 0; }
.slide.pC .hxhead .part { font-size: 27px; font-weight: 700; color: var(--orange-2); }
.slide.pC .hxhead .file { font-size: 24px; font-weight: 500; color: var(--muted); font-family: var(--mono, monospace); }
.slide.pC .slide-body p.hxnote { margin: 0; font-size: 28px; line-height: 1.3; }
.slide.pC .chiprow.hx4 span { font-size: 27px; padding: 10px 14px; text-align: center; font-weight: 500; }
.slide.pC .chiprow.hx4 b { display: block; color: var(--deep); font-weight: 700; }
.slide.pC table.pC-t.hx td:nth-child(2) { width: auto; }

/* Demo slides at the start of the segment (27 Oct 2026) */
.slide.pC .slide-body p.hxintro { margin: 0 0 6px; }
.slide.pC ol.hxtask { margin: 0; padding: 0; list-style: none; counter-reset: hxt; display: flex; flex-direction: column; gap: 10px; }
.slide.pC ol.hxtask li { counter-increment: hxt; position: relative; padding: 8px 0 0 52px; border-top: 2px solid var(--blue-2); font-size: 27px; line-height: 1.25; }
.slide.pC ol.hxtask li::before { content: counter(hxt) "."; position: absolute; left: 0; top: 8px; color: var(--blue-2); font-weight: 600; }
.slide.pC table.pC-t.hxwide td:first-child { width: 66%; }

/* ───── Part C (slides_build/partC/partC2.css) ───── */
/* Part C, fragment 2 — CMU 11-768 lecture 3, pages 3, 4, 44–50 (slides_build/partC/partC2.css).
   Every selector is scoped by .slide.pC and every class starts with c2 (or is a short name inside a c2 block). */

.slide.pC .c2-t { margin: 0; }
.slide.pC .slide-body sub { font-size: inherit; line-height: 0; vertical-align: baseline; position: relative; top: .28em; }

/* shared small labels (supporting tier) */
.slide.pC .tag.c2-ctxlab, .slide.pC .c2-row .tag, .slide.pC .c2-ctx .tag, .slide.pC .c2-below .tag, .slide.pC .c2-comp .tag {
  margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .03em; line-height: 1.25; color: var(--muted);
}

/* p. 3 · five bars */
.slide.pC .slide-body p.c2-formula { margin: 0 0 12px; padding: 14px 22px; background: var(--code); border-radius: 4px; font-family: var(--mono); font-size: 30px; line-height: 1.25; color: var(--deep); }
.slide.pC .c2-bars { display: grid; gap: 16px; }
.slide.pC .c2-bars .r { display: grid; grid-template-columns: 116px minmax(0, 1fr) 232px; column-gap: 20px; align-items: center; }
.slide.pC .c2-bars b { font-size: 27px; color: var(--deep); }
.slide.pC .c2-bars .trk { height: 52px; border-radius: 7px; background: #e6e9ec; overflow: hidden; }
.slide.pC .c2-bars .trk i { display: flex; height: 100%; align-items: center; justify-content: center; border-radius: 7px; background: linear-gradient(90deg, #5b85aa, var(--blue-2)); color: #fff; font-style: normal; font-weight: 700; font-size: 27px; }
.slide.pC .c2-bars .cum { font-size: 27px; font-weight: 650; color: var(--muted); }

/* p. 4 · one stacked bar */
.slide.pC .c2-comp { display: flex; height: 132px; border-radius: 14px; overflow: hidden; }
.slide.pC .c2-comp > div { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; text-align: center; }
.slide.pC .c2-comp b { font-size: 33px; line-height: 1.1; }
.slide.pC .c2-comp .tag { font-size: 20px; letter-spacing: 0; font-weight: 500; color: #fff; white-space: nowrap; }
.slide.pC .c2-comp .s1 { flex: 23 1 0; background: var(--deep); }
.slide.pC .c2-comp .s2 { flex: 9 1 0; background: #6f7f8c; }
.slide.pC .c2-comp .s3 { flex: 9 1 0; background: var(--bad); }
.slide.pC .c2-comp .s4 { flex: 2 1 0; min-width: 76px; background: #8d99a4; }
.slide.pC .c2-comp .s5 { flex: 20 1 0; background: #5b85aa; }
.slide.pC .c2-comp .s6 { flex: 37 1 0; background: var(--blue-2); }
.slide.pC .slide-body p.c2-stat { margin: 0; text-align: center; font-size: 29px; color: var(--muted); }
.slide.pC .c2-stat b { margin-right: 12px; font-size: 54px; color: var(--deep); }

/* p. 44 · four cards */
.slide.pC .c2-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.slide.pC .c2-cards > div { padding: 22px 26px 24px; border-left: 6px solid var(--blue-2); background: var(--panel); }
.slide.pC .c2-cards h4 { margin: 0 0 10px; font-size: 33px; line-height: 1.2; color: var(--deep); }
.slide.pC .slide-body .c2-cards p { margin: 0; font-size: 27px; line-height: 1.3; color: var(--muted); }

/* p. 45 · section title */
.slide.pC.c2sec > h2 { position: relative; margin: auto 0; max-width: none; text-align: center; font-size: 58px; line-height: 1; color: var(--deep); }
.slide.pC.c2sec > h2::before { content: ""; position: absolute; left: 50%; top: -34px; width: 80px; height: 8px; margin-left: -40px; background: var(--bad); }
.slide.pC.c2sec > .slide-body { flex: 0 0 0; }

/* p. 46 · before and after */
.slide.pC .c2-cmp { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1.1fr); align-items: center; }
.slide.pC .c2-col { display: grid; gap: 7px; }
.slide.pC .slide-body p.c2-h { margin: 0 0 4px; font-size: 30px; font-weight: 700; color: var(--deep); }
.slide.pC .c2-row { display: grid; grid-template-columns: 126px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 8px 14px 8px 16px; border-left: 5px solid var(--deep); background: var(--panel); }
.slide.pC .c2-row.act { border-left-color: var(--blue-2); background: #e7edf2; }
.slide.pC .c2-row.obsr { border-left-color: var(--bad); background: #f4e6e3; padding-top: 18px; padding-bottom: 18px; }
.slide.pC .c2-row .tx { font-size: 27px; line-height: 1.22; color: var(--text); }
.slide.pC .c2-row .tx b { color: var(--bad); }
.slide.pC .c2-row .tx code { padding: 0 6px; font-size: 25px; background: #fff; color: var(--blue-2); }
.slide.pC .c2-row .tx code { font-size: 27px; letter-spacing: -.04em; white-space: nowrap; font-variant-ligatures: none; }
.slide.pC .c2-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--bad); }
.slide.pC .c2-mid .arr { font-size: 44px; line-height: 1; }
.slide.pC .c2-mid b { font-size: 27px; }

/* p. 47 · history → compactor → working state */
.slide.pC .c2-flow3 { display: grid; grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr) 50px minmax(0, 1fr); align-items: center; padding: 0 40px; }
.slide.pC .c2-flow3 .bx { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 22px; border: 2.5px solid var(--deep); border-radius: 12px; background: var(--panel); font-size: 29px; font-weight: 650; color: var(--deep); }
.slide.pC .c2-flow3 .bx i { font-style: normal; font-size: 33px; font-weight: 700; color: var(--blue-2); }
.slide.pC .c2-flow3 .comp { border-color: var(--blue-2); background: #e7edf2; }
.slide.pC .c2-flow3 .work { border-color: var(--bad); background: #f4e6e3; }
.slide.pC .c2-flow3 .work i { color: var(--bad); }
.slide.pC .c2-flow3 .ar { text-align: center; font-size: 36px; color: var(--bad); }
.slide.pC .c2-trio { display: grid; grid-template-columns: 442px 392px minmax(0, 1fr); gap: 20px; }
.slide.pC .c2-trio > div { padding: 18px 20px 22px; border-top: 6px solid var(--blue-2); background: var(--panel); }
.slide.pC .c2-trio > .c1 { border-top-color: var(--bad); }
.slide.pC .c2-trio h4 { margin: 0 0 12px; font-size: 30px; line-height: 1.2; color: var(--deep); }
.slide.pC .slide-body .c2-trio p { margin: 0; font-size: 27px; line-height: 1.3; color: var(--muted); }
.slide.pC .slide-body .c2-trio p.eq { text-align: center; font-size: 28px; color: var(--text); }
.slide.pC .slide-body p.c2-note { margin: 0; text-align: center; font-size: 27px; line-height: 1.3; color: var(--muted); }
.slide.pC .c2-note b { color: var(--blue-2); }

/* p. 48 · what survives */
.slide.pC .slide-body > .fit > .c2-ctxlab { display: block; margin-bottom: -14px; }
.slide.pC .c2-ctx { display: grid; grid-template-columns: 26fr 36fr 38fr; border-radius: 14px; overflow: hidden; color: #fff; }
.slide.pC .c2-ctx > div { display: flex; flex-direction: column; gap: 4px; padding: 24px 26px 26px; }
.slide.pC .c2-ctx .k1 { background: var(--deep); }
.slide.pC .c2-ctx .k2 { background: var(--bad); }
.slide.pC .c2-ctx .k3 { background: var(--blue-2); }
.slide.pC .c2-ctx .tag { color: rgba(255, 255, 255, .88); }
.slide.pC .c2-ctx b { font-size: 34px; line-height: 1.15; }
.slide.pC .c2-ctx > div > span:last-child { font-size: 27px; line-height: 1.25; color: #fff; }
.slide.pC .c2-below { display: grid; grid-template-columns: 92px minmax(0, 1fr) 368px; column-gap: 18px; align-items: start; }
.slide.pC .c2-below .dn { align-self: center; justify-self: end; font-size: 46px; line-height: 1; color: var(--bad); }
.slide.pC .c2-below .ext { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px 20px; border: 2.5px solid var(--blue-2); border-radius: 12px; background: #e7edf2; }
.slide.pC .c2-below .ext b { font-size: 32px; line-height: 1.2; color: var(--deep); }
.slide.pC .c2-below .ext > span:last-child { font-size: 27px; line-height: 1.25; color: var(--muted); }
.slide.pC .c2-below .dis { margin-top: 54px; display: flex; flex-direction: column; gap: 4px; padding: 14px 22px 18px; border: 2.5px dashed #8d99a4; border-radius: 14px; }
.slide.pC .c2-below .dis > span:last-child { font-size: 27px; line-height: 1.25; color: var(--muted); }

/* link labels at the foot of a page (supporting tier) */
.slide.pC .tag.c2-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 14px 0 0; text-transform: none; letter-spacing: 0; }
.slide.pC .c2-links .btn { display: inline-block; padding: 0 0 2px; border: 0; border-bottom: 1.5px dashed var(--muted); border-radius: 0; background: none; font-size: 20px; font-weight: 700; color: var(--muted); text-decoration: none; }

/* p. 49 · four decisions */
.slide.pC .c2-pol { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 26px minmax(0, 1fr) 26px minmax(0, 1fr); align-items: stretch; }
.slide.pC .c2-pol .b { display: flex; flex-direction: column; justify-content: flex-start; padding: 16px 14px 18px 18px; border: 2.5px solid var(--deep); border-radius: 12px; background: var(--panel); }
.slide.pC .c2-pol .b.r { border-color: var(--bad); }
.slide.pC .c2-pol h4 { margin: 0 0 10px; font-size: 32px; line-height: 1.15; color: var(--deep); }
.slide.pC .c2-pol ul { margin: 0; padding: 0; list-style: none; }
.slide.pC .c2-pol li { margin: 0 0 6px; font-size: 27px; line-height: 1.2; font-weight: 700; color: var(--deep); }
.slide.pC .c2-pol li:last-child { margin-bottom: 0; }
.slide.pC .slide-body .c2-pol p { margin: 10px 0 0; font-size: 27px; line-height: 1.2; color: var(--blue-2); }
.slide.pC .c2-pol .ar { align-self: center; text-align: center; font-size: 34px; color: var(--bad); }

/* p. 50 · drift */
.slide.pC .c2-drift { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr); align-items: stretch; }
.slide.pC .c2-drift .bx { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 20px 12px 22px 18px; border: 2.5px solid var(--blue-2); border-radius: 12px; background: #fff; }
.slide.pC .c2-drift .bx b { font-size: 33px; line-height: 1.15; color: var(--deep); }
.slide.pC .c2-drift .bx span { font-size: 27px; line-height: 1.2; color: var(--muted); }
.slide.pC .c2-drift .bx.lost { border-color: var(--bad); background: #f4e6e3; }
.slide.pC .c2-drift .ar { align-self: center; text-align: center; font-size: 36px; color: var(--bad); }
.slide.pC .slide-body p.c2-cap { margin: 10px 0 0; text-align: center; font-size: 27px; font-weight: 650; color: var(--muted); }
.slide.pC .slide-body p.c2-eq { margin: 0; text-align: center; font-size: 36px; }
.slide.pC .slide-body p.c2-rules { margin: 0; display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 0 18px; font-size: 28px; font-weight: 700; color: var(--blue-2); }
.slide.pC .c2-rules i { font-style: normal; color: var(--bad); }

/* ───── Part C (slides_build/partC/partC3.css) ───── */
/* Part C, fragment 3 (slides_build/partC/partC3.css): CMU 11-768 lecture 13, pp. 8–12, one page per slide.
   Every selector is scoped by .slide.pC.c3. Shared Part C classes come from partC.css. */

/* p. 8: a title-only page; red bar above a centred title, as on the page */
.slide.pC.c3-open > h2 { position: relative; margin: auto 0; text-align: center; font-size: 52px; line-height: 1.1; }
.slide.pC.c3-open > h2::before { content: ""; position: absolute; left: 50%; top: -30px; width: 74px; height: 5px; margin-left: -37px; background: var(--bad); }

/* page bullets: square markers */
.slide.pC.c3 ul.c3-pts { margin: 0; padding-left: 1.1em; list-style: square; }
.slide.pC.c3 ul.c3-pts > li { margin: 0 0 10px; }
.slide.pC.c3 ul.c3-pts > li:last-child { margin-bottom: 0; }
.slide.pC.c3 ul.c3-pts > li::marker { color: var(--deep); font-size: .8em; }

/* link labels at the bottom of a page */
.slide.pC.c3 .credit a { color: var(--muted); }
.slide.pC.c3 .credit.c3-links { display: flex; gap: 32px; }

/* p. 9: the Payment-card theft card (red rule on the left, grey panel) */
.slide.pC.c3 .c3-card { padding: 20px 30px 22px; background: var(--panel); border-left: 5px solid var(--bad); }
.slide.pC.c3 .c3-card p { margin: 0; }
.slide.pC.c3 .c3-card .c3-ct { margin-bottom: 14px; font-size: 29px; font-weight: 700; line-height: 1.2; color: var(--deep); }
.slide.pC.c3 .c3-rows { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px 24px; align-items: baseline; }
.slide.pC.c3 .c3-rows .c3-k { font-weight: 700; color: var(--bad); }
.slide.pC.c3 .c3-rows .c3-v { color: var(--text); }

/* p. 10: three boxes, red, dark, red, with arrows */
.slide.pC.c3 .c3-flow { display: grid; grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr) 58px minmax(0, 1fr); align-items: center; margin: 14px 0 4px; }
.slide.pC.c3 .c3-box { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 170px; padding: 16px 14px; border-radius: 12px; text-align: center; color: #fff; }
.slide.pC.c3 .c3-box.bad { background: var(--bad); }
.slide.pC.c3 .c3-box.dark { background: var(--blue); }
.slide.pC.c3 .c3-box b { display: block; font-size: 29px; line-height: 1.2; margin-bottom: 6px; }
.slide.pC.c3 .c3-box span { display: block; font-size: 27px; line-height: 1.25; font-weight: 650; }
.slide.pC.c3 .c3-arr { position: relative; display: block; height: 3px; margin: 0 4px; background: var(--blue-2); }
.slide.pC.c3 .c3-arr::after { content: ""; position: absolute; right: -4px; top: -7px; border-left: 14px solid var(--blue-2); border-top: 8.5px solid transparent; border-bottom: 8.5px solid transparent; }

/* pp. 11–12: pictures taken from the page */
.slide.pC.c3 .c3-cap .c3-h { margin: 0 0 4px; font-weight: 700; color: var(--deep); }
.slide.pC.c3 .c3-fig { margin: 0; }
.slide.pC.c3 .c3-fig img { width: 100%; max-height: none; border: 0; background: transparent; }
.slide.pC.c3 .c3-docent img { width: auto; max-width: 100%; max-height: 296px; }

/* ───── Part C (slides_build/partC/partC4.css) ───── */
/* Part C, fragment 4 (slides_build/partC/partC4.css): CMU 11-768 lecture 13, pp. 19, 20, 27, 28, 31, one page per slide.
   Every class here starts with c4 (or is scoped by it) so that it cannot clash with the other fragments. */

/* the page's one-line statement under its title (p. 19) */
.slide.pC .slide-body p.c4-lead { margin: 0; font-size: 28px; line-height: 1.34; }

/* square bullets, as on the pages */
.slide.pC ul.c4-sq { margin: 0; padding-left: 1.2em; list-style: square; }
.slide.pC ul.c4-sq > li { margin: 0 0 14px; font-size: 28px; line-height: 1.34; }
.slide.pC ul.c4-sq > li:last-child { margin-bottom: 0; }
.slide.pC ul.c4-sq > li::marker { color: var(--deep); }

/* the small underlined link labels at the foot of each page */
.slide.pC .tag.credit.c4-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; }
.slide.pC .c4-links a { color: var(--muted); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* p. 19: the sandbox diagram */
.slide.pC svg.pC-d.c4-sbx { max-height: 318px; width: auto; max-width: 100%; margin: 0 auto; }
.slide.pC svg.pC-d.c4-idf { max-height: 112px; }
.slide.pC svg.pC-d .c4ah { fill: var(--blue-2); }
.slide.pC svg.pC-d .c4-out { fill: #f4f7fa; stroke: var(--blue-2); stroke-width: 3; }
.slide.pC svg.pC-d .c4-out2 { fill: var(--panel); stroke: none; }
.slide.pC svg.pC-d .c4-in { fill: #fff; stroke: var(--blue-2); stroke-width: 2.5; }
.slide.pC svg.pC-d .c4-sep { fill: none; stroke: var(--line); stroke-width: 2; }
.slide.pC svg.pC-d .c4-agent { fill: var(--deep); stroke: none; }
.slide.pC svg.pC-d .c4-blue { fill: var(--blue-2); stroke: none; }
.slide.pC svg.pC-d .c4-arr { fill: none; stroke: var(--blue-2); stroke-width: 3.5; }
.slide.pC svg.pC-d .c4-red { fill: none; stroke: var(--bad); stroke-width: 3; }
.slide.pC svg.pC-d .c4-red.c4-dash { stroke-width: 2.5; stroke-dasharray: 7 6; }
.slide.pC svg.pC-d .c4-x { fill: none; stroke: var(--bad); stroke-width: 4; stroke-linecap: round; }
.slide.pC svg.pC-d .c4-robot { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.slide.pC svg.pC-d .c4-robot .f { fill: #fff; stroke: none; }
.slide.pC svg.pC-d .c4-ic { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.slide.pC svg.pC-d .c4-ic.blue { stroke: var(--blue-2); }
.slide.pC svg.pC-d .c4-ic.dark { stroke: var(--deep); }
.slide.pC svg.pC-d text.c4-hb { font-size: 26px; font-weight: 700; fill: var(--blue-2); }
.slide.pC svg.pC-d text.c4-hr { font-size: 26px; font-weight: 700; fill: var(--bad); }
.slide.pC svg.pC-d text.c4-bt { font-size: 25px; font-weight: 700; fill: var(--deep); }
.slide.pC svg.pC-d text.c4-dt { font-size: 23px; font-weight: 700; fill: var(--deep); }
.slide.pC svg.pC-d text.c4-wt { font-size: 28px; font-weight: 700; fill: #fff; }
.slide.pC svg.pC-d text.c4-ws { font-size: 24px; font-weight: 700; fill: #fff; }

/* p. 20: three rows, a blue bar on the left of each */
.slide.pC .c4-bnd { display: flex; flex-direction: column; gap: 22px; }
.slide.pC .c4-bnd .r { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 26px; background: var(--panel); border-left: 5px solid var(--blue-2); }
.slide.pC .c4-bnd .r b { font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--blue-2); }
.slide.pC .c4-bnd .r span { font-size: 29px; line-height: 1.34; color: var(--text); }

/* p. 28: two accounts, three permissions each */
.slide.pC .c4-acct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 60px; padding: 0 20px; }
.slide.pC .c4-acct .col { display: flex; flex-direction: column; gap: 10px; }
.slide.pC .c4-acct .hd { margin-bottom: 4px; text-align: center; font-size: 29px; font-weight: 700; color: var(--deep); }
.slide.pC .c4-acct .p { padding: 6px 18px; text-align: center; font-size: 28px; line-height: 1.3; font-weight: 700; background: var(--panel); border-radius: 8px; }
.slide.pC .c4-acct .p.ok { color: var(--blue-2); }
.slide.pC .c4-acct .p.no { color: var(--bad); }

/* p. 31: the statement in its box */
.slide.pC .slide-body p.callout.c4-def { padding: 16px 24px; font-size: 29px; line-height: 1.34; }

/* a little air between a diagram and the bullets under it, as on pp. 27 and 28 */
.slide.pC ul.c4-sq.c4-below { margin-top: 18px; }
/* p. 31: the box's text breaks after "identify", as on the page */
.slide.pC .slide-body p.callout.c4-def { padding-right: 320px; }

/* ───── Part C (slides_build/partC/partC5.css) ───── */
/* Part C, fragment 5: "Designing the agent loop" (Sarkis 2026), JH 28 Oct 2026. Text pages in the article's own sentences. */
.slide.pC.c5 .slide-body .fit { justify-content: flex-start; gap: 22px; }
.slide.pC.c5 .slide-body p, .slide.pC.c5 .slide-body li { font-size: 30px; line-height: 1.36; margin: 0; }
.slide.pC.c5.c5-big .slide-body p { font-size: 34px; line-height: 1.38; }
.slide.pC.c5 .slide-body ul.pts { padding-left: 1.1em; }
.slide.pC.c5 .slide-body ul.pts > li { margin-bottom: 14px; }
.slide.pC.c5 .slide-body ul.pts ul { margin: 12px 0 0; padding-left: 1.1em; }
.slide.pC.c5 .slide-body ul.pts ul > li { margin-bottom: 10px; }
.slide.pC.c5 .slide-body b { color: var(--orange-2); }
.slide.pC.c5 .fig.c5fig { margin: 0 auto; }
.slide.pC.c5 .fig.c5fig img { display: block; margin: 0 auto; max-height: 470px; width: auto; max-width: 100%; border: 0; border-radius: 8px; }
.slide.pC.c5-titles .pts li { font-size: 38px; line-height: 1.3; margin: 0 0 22px; }
.slide.pC.c5-outline ol.pts { columns: 2; column-gap: 56px; font-size: 28px; line-height: 1.3; }
.slide.pC.c5-outline ol.pts li { break-inside: avoid; margin: 0 0 12px; }
