/* Palette copied from tools/explaination-page/orbit-closures/assets/style.css so the two subpages read as one site. */
:root {
  --bg: #fbfaf7; --surface: #ffffff; --ink: #1d1d1f; --muted: #5d5d66; --rule: #e3e0d8;
  --accent: #4a90d9; --accent-ink: #2667a8; --accent-soft: #edf5fd; --accent-fill: #d4e8fb;
  --top: #c8642f; --top-soft: #fbe9df; --heur: #8a6100; --heur-bg: #fbf1d9;
  --prov: #1f7a4d; --prov-bg: #e3f4ea; --shade: #f1efe9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16171a; --surface: #1f2024; --ink: #ececef; --muted: #a3a3ad; --rule: #34353b;
    --accent: #8ab4f0; --accent-ink: #a9cbf7; --accent-soft: #1f2c3d; --accent-fill: #2a4466;
    --top: #f0a07a; --top-soft: #4a2a1c; --heur: #e9c46a; --heur-bg: #3a3120;
    --prov: #7fd3a6; --prov-bg: #1d3328; --shade: #1b1c20;
  }
}
:root[data-theme="dark"] {
  --bg: #16171a; --surface: #1f2024; --ink: #ececef; --muted: #a3a3ad; --rule: #34353b;
  --accent: #8ab4f0; --accent-ink: #a9cbf7; --accent-soft: #1f2c3d; --accent-fill: #2a4466;
  --top: #f0a07a; --top-soft: #4a2a1c; --heur: #e9c46a; --heur-bg: #3a3120;
  --prov: #7fd3a6; --prov-bg: #1d3328; --shade: #1b1c20;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--shade); color: var(--ink); font: 24px/1.5 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; overflow: hidden; }
.sans, .kicker, .foot, .num, .pill, table, .hint, .lab { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-ink); }

/* ---------- stage: one 1280×720 slide, scaled to the window ---------- */
#stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: 0 0; }
.slide { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--bg); padding: 56px 80px 64px; overflow: hidden; }
.slide.on { display: flex; }
body.all { overflow: auto; }
body.all #stage { position: static; transform: none !important; width: auto; height: auto; padding: 24px 16px; }
body.all .slide { display: flex; position: relative; width: 1280px; height: 720px; margin: 0 auto 24px; box-shadow: 0 0 0 1px var(--rule); }
body.export { background: var(--bg); }

.kicker { font-size: 15px; text-transform: uppercase; letter-spacing: .09em; color: var(--accent-ink); margin-bottom: 6px; }
h1 { font-size: 58px; line-height: 1.12; margin: 0 0 18px; font-weight: 600; }
h2 { font-size: 40px; line-height: 1.2; margin: 0 0 26px; font-weight: 600; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.foot { position: absolute; left: 80px; right: 140px; bottom: 22px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.num { position: absolute; right: 40px; bottom: 22px; font-size: 13px; color: var(--muted); }

.quote { border-left: 4px solid var(--accent); padding: 4px 0 4px 24px; font-style: italic; font-size: 25px; line-height: 1.5; }
.quote .src { display: block; font-style: normal; font-size: 15px; color: var(--muted); margin-top: 10px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.quote.big { font-size: 30px; }
.quote b { font-style: normal; background: var(--accent-soft); padding: 0 4px; border-radius: 3px; font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 26px; }
.card.hi { border-color: var(--accent); background: var(--accent-soft); }
.card h3 { margin: 0 0 10px; font-size: 25px; }
.card ul { margin: 0; padding-left: 22px; } .card li { margin: 6px 0; }
.pill { display: inline-block; font-size: 14px; font-weight: 600; padding: 2px 12px; border-radius: 999px; background: var(--accent-fill); color: var(--ink); vertical-align: 4px; }
.pill.warm { background: var(--top-soft); color: var(--top); }
.pill.gold { background: var(--heur-bg); color: var(--heur); }
img.fig { display: block; max-width: 100%; border-radius: 6px; }
.figframe { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 10px; }
.lab { font-size: 14px; color: var(--muted); margin-top: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 20px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
td.n { font-variant-numeric: tabular-nums; text-align: right; }
.hint { position: fixed; right: 12px; bottom: 8px; font-size: 12px; color: var(--muted); opacity: .7; }
body.export .hint, body.all .hint { display: none; }
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.triad .card { padding: 20px 22px; }
.triad .k, .card .k { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 15px; color: var(--accent-ink); font-weight: 700; letter-spacing: .05em; }
.triad h3 { font-size: 27px; margin: 4px 0 10px; }
.triad .to { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: 19px; color: var(--muted); }
.title-slide .body { justify-content: center; }
.title-slide .rule { width: 80px; height: 3px; background: var(--accent); margin: 26px 0; }
svg text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* ---------- added for the 30-slide version ---------- */
.foot a, .src a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 2px; }
.foot a:hover, .src a:hover { color: var(--accent-ink); }
.question { font-size: 40px; line-height: 1.32; font-weight: 600; max-width: 1000px; }
.question.small { font-size: 32px; }
.big-claim { font-size: 34px; line-height: 1.35; }
.pill.green { background: var(--prov-bg); color: var(--prov); }
.tag { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.math { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-style: italic; }
.display { font-size: 30px; text-align: center; margin: 18px 0; }
.chain { display: flex; gap: 14px; align-items: center; justify-content: center; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 22px; }
.chain .card { padding: 14px 18px; text-align: center; }
.chain .arr { color: var(--muted); font-size: 26px; }
.figframe.plain { background: transparent; border: 0; padding: 0; }
/* Speaker notes: hidden; press N to show (or ?notes). */
.notes { display: none; }
body.notes-on .slide .notes { display: block; position: absolute; left: 0; right: 0; bottom: 0; max-height: 46%; overflow: auto; z-index: 5;
  background: var(--surface); border-top: 2px solid var(--accent); padding: 14px 80px 18px; font: 17px/1.45 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--ink); }
body.notes-on .slide .notes::before { content: "Speaker notes"; display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--accent-ink); margin-bottom: 4px; }
body.all.notes-on .slide .notes { position: static; max-height: none; margin: 16px -80px -64px; }
body.all.notes-on .slide { height: auto; min-height: 720px; }

/* roadmap table (slide 6) */
table.roadmap { font-size: 17px; line-height: 1.35; }
table.roadmap th { font-size: 13px; padding: 6px 12px; }
table.roadmap td { padding: 9px 12px; }
table.roadmap td:first-child { font-weight: 600; color: var(--accent-ink); }
table.roadmap .pill { font-size: 12px; padding: 1px 9px; vertical-align: 1px; white-space: nowrap; }
.summary { margin: 18px 0 0; padding-left: 16px; border-left: 3px solid var(--accent); font-size: 20px; }
/* Build steps: .step elements appear one at a time on → (all shown in ?all and ?export). */
.step { opacity: 0; transition: opacity .25s; }
.step.shown, body.all .step, body.export .step { opacity: 1; }
/* Section titles: "A reflection on learning —" leads at full title size (slides 1, 9, 11, 12). */
h1 .lead { display: block; font-weight: 400; color: var(--muted); }

/* Visible numbered table captions. */
table caption { text-align: left; font-size: 14px; line-height: 1.4; color: var(--muted); padding: 0 0 8px; }
