/* 1.0.6: discussion prompt has no reserved blank height; questions follow in sequence. */
.app-shell { height: 100dvh; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; }
.topbar, :root[data-theme="light"] .topbar { position: relative; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; }
main { align-items: flex-start; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(1rem, 2.3vw, 2rem); }
.slide, :root[data-theme="light"] .slide {
  box-sizing: border-box;
  align-self: flex-start;
  flex: 0 0 auto;
  height: auto;
  max-height: none;
  min-height: min(650px, max(450px, calc(100dvh - 190px)));
  justify-content: flex-start;
  overflow: visible;
}
.slide h2 { max-width: 28ch; font-size: clamp(2.2rem, 4vw, 4.25rem); line-height: 1.05; }
.presentation-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem, 3.5vw, 3rem) max(3rem, calc(env(safe-area-inset-bottom) + 2.25rem)); background: var(--bg); border-top: 1px solid var(--line); }
.presentation-footer .nav-button { background: transparent; border: 1px solid var(--line); color: var(--text); min-height: 44px; padding: .65rem 1.1rem; }
.presentation-footer .nav-button.primary { background: var(--text); color: var(--bg); }
.presentation-footer .nav-button:disabled { opacity: .4; }
.presentation-footer .progress-wrap { display: flex; grid-area: auto; justify-content: center; flex-wrap: wrap; }
.presentation-footer .progress-track { width: clamp(3rem, 18vw, 18rem); }
.seminar-route { align-items: start; margin-top: 2.5rem; }
.route-step, :root[data-theme="light"] .route-step { display: grid; align-content: start; justify-content: start; grid-template-rows: auto 1fr; text-align: left; }
.route-step span { align-self: start; }
.route-step strong { align-self: start; min-height: 3.5em; }
.framing-line { max-width: none; margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--surface-2); border-left: 4px solid var(--mint); font-size: clamp(1.1rem, 1.65vw, 1.45rem); line-height: 1.5; color: var(--text); }
.reading-grid { margin-top: 1.6rem; align-items: start; }
.reading-card { min-height: 0; }
.reading-author { font-size: clamp(1rem, 1.45vw, 1.3rem); min-height: 3em; }
.reading-meta { font-style: italic; }
.reading-job { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; }
.reading-title { font-size: clamp(1.8rem, 3vw, 3rem); }
.comparison-purpose { max-width: 58ch; margin: .9rem 0 0; color: var(--text); font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.5; }
.network { align-items: start; }
.network .layer { min-height: 0; }
.node, :root[data-theme="light"] .node { display: block; min-height: 0; padding: 0; border: 1px solid var(--line); }
summary { cursor: pointer; min-height: 44px; padding: .7rem .8rem; font-weight: 600; line-height: 1.4; }
summary::marker { color: var(--mint); }
summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.node p { margin: .1rem .8rem 1rem; font-size: 1rem; line-height: 1.5; }
.arena-label { color: var(--muted); font-size: 1rem; }
.answer { margin-top: .9rem; border-top: 1px solid var(--line); }
.answer summary { color: var(--mint); padding-left: 0; }
.answer p { font-size: clamp(1.04rem, 1.4vw, 1.23rem); line-height: 1.55; color: var(--text); margin: .6rem 0 1rem; }
.answer[open] { animation: explanation-enter .18s ease-out; }
@keyframes explanation-enter { from { opacity: .5; } to { opacity: 1; } }
.group-instruction { font-size: clamp(1.1rem, 1.7vw, 1.5rem); letter-spacing: .02em; }
.weak-point-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(15rem, .65fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-top: .75rem; flex: 1; }
.weak-point-main { display: grid; align-content: center; min-width: 0; }
.weak-point-main h2 { max-width: 16ch; }
.weak-point-main .lead { max-width: 56ch; }
.weak-point-main .timer { margin: .4rem 0 .65rem; text-align: left; font-size: clamp(5rem, 11vw, 9rem); line-height: 1; }
.weak-point-actions { justify-content: flex-start; }
.weak-point-reference { align-self: center; border-left: 1px solid var(--line); padding: .8rem 0 .8rem clamp(1rem, 2vw, 1.75rem); color: var(--muted); }
.weak-point-reference h3 { margin: 0 0 1.1rem; color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.weak-point-reference dl { display: grid; gap: 1.2rem; margin: 0; }
.weak-point-reference dl > div { display: grid; gap: .25rem; }
.weak-point-reference dt { color: var(--text); font-weight: 650; }
.weak-point-reference dd { margin: 0; max-width: 28ch; font-size: .96rem; line-height: 1.5; }
.debrief-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.debrief-item h3 { font-size: 1.25rem; margin: 0; min-height: 3em; }
.question-list { align-items: start; }
.question > div > p { font-size: 1.25rem; min-height: 4.2em; }
.research-credit { margin-top: 2rem; font-size: 1.2rem; color: var(--mint); }
.dataset-heading { font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: .02em; text-transform: none; }
.caveat { font-size: 1.05rem; line-height: 1.5; }
.flow { margin: 1.8rem 0 1rem; }
.flow-node h3 { font-size: 1.15rem; overflow-wrap: anywhere; }
.arrow { display: grid; justify-items: center; gap: .2rem; }
.arrow span { font-size: 1.25rem; }
.arrow small { font-size: .8rem; }
.funding-example { border: 1px solid var(--line); padding: .5rem 1rem; margin: 1rem 0 .25rem; }
.example-label { color: var(--mint); font-weight: 600; font-size: 1.05rem; }
.pooling-example { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 1.5rem; font-size: 1.1rem; }
.black-box { margin: 2rem 0 .5rem; align-items: stretch; }
.black-box > div, :root[data-theme="light"] .black-box > div { padding: 1.4rem; border-radius: 0; background: var(--surface-2); color: var(--text); }
.black-box p { font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.debate-shell { display: block; margin-top: 1.5rem; }
.debate-main { display: block; max-width: 32ch; min-height: 0; margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.2; transition: font-size .2s ease, padding .2s ease; }
.debate-shell.has-question .debate-main { max-width: 68ch; font-size: 1.15rem; color: var(--muted); padding: .7rem 0; }
.guide-grid { display: block; }
.debate-reveal-action { margin-top: 1.25rem; }
.debate-shell.has-question .debate-reveal-action { margin-top: .75rem; }
.guide h3 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.25; max-width: 52ch; }
.guide .answer { max-width: 78ch; }
.guide[hidden] { display: none !important; }
.closing-line h3 { margin: .4rem 0; font-size: clamp(1.5rem, 2.2vw, 2.3rem); }
.closing-line p { font-family: "Segoe UI", sans-serif; font-size: 1.2rem; margin: .7rem 0; }
.farewell-slide { justify-content: center; min-height: 65vh; }
.farewell-slide h2 { font-size: clamp(4rem, 9vw, 8rem); }
@media (min-width: 901px) and (max-height: 850px) {
  main { padding-block: .6rem; }
}
@media (max-width: 900px) {
  .debrief-grid, .question-list { grid-template-columns: 1fr; }
  .debrief-item h3, .question > div > p { min-height: 0; }
  .topbar, :root[data-theme="light"] .topbar { grid-template-columns: 1fr auto; }
  .pooling-example { grid-template-columns: 1fr; gap: .5rem; }
  .arrow { transform: none; }
}
@media (max-width: 560px) {
  .topbar, :root[data-theme="light"] .topbar { grid-template-columns: 1fr; gap: .65rem; }
  .top-actions { justify-self: start; }
  .presentation-footer { gap: .5rem; padding: .6rem .8rem; }
  .presentation-footer .nav-button { font-size: .9rem; padding: .5rem .7rem; }
  .presentation-footer .progress-track { display: none; }
  .seminar-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weak-point-layout { grid-template-columns: 1fr; gap: 1.4rem; margin-top: .25rem; }
  .weak-point-main .timer { font-size: clamp(4.5rem, 20vw, 6.5rem); }
  .weak-point-reference { border-left: 0; border-top: 1px solid var(--line); padding: .8rem 0 0; }
  .weak-point-reference h3 { margin-bottom: .65rem; }
  .weak-point-reference dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-author, .route-step strong { min-height: 0; }
  .flow { grid-template-columns: 1fr; }
  .arrow { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .answer[open] { animation: none; }
  .debate-main { transition: none; }
}
