/* A review sheet opens immediately, including in script-free browsers. */
@view-transition { navigation: none; }
.sprint { max-width:880px; margin:0 auto; color:#253d37; font-family:system-ui,sans-serif; }
.sprint header { padding:clamp(30px,6vw,85px) 0 25px; border-bottom:1px solid #a9ad9d; }
.sprint a { color:#185b4d; text-underline-offset:4px; }
.sprint h1,.sprint h2,.sprint h3 { font-family:"Songti SC",STSong,Georgia,serif; line-height:1.23; margin:.4em 0; }
.sprint h1 { font-size:clamp(34px,5.3vw,72px); }
.sprint h2 { font-size:clamp(27px,4vw,44px); }
.sprint h3 { font-size:clamp(21px,3vw,29px); }
.sprint header p { max-width:40em; font-size:clamp(16px,2vw,21px); }
.sprint small { color:#4e5b51; }
.sprint-index { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:20px 0; }
.sprint-index a { display:grid; padding:10px 8px; border-inline-start:2px solid #bd9b67; text-decoration:none; }
.sprint-index a:hover,.sprint a:focus-visible { text-decoration:underline; }
.sprint-hour { scroll-margin-top:20px; padding:24px 0; }
.sprint-hour>p,.sprint-time { font-weight:600; color:#805534; }
.sprint-item { display:grid; grid-template-columns:70px minmax(0,1fr); gap:18px; border-top:1px solid #b6bbac; padding:20px 0; }
.sprint-time { padding-top:.7em; font-size:14px; }
.sprint-item p { margin:.5em 0; line-height:1.68; }
.sprint-item a { display:inline-block; margin-top:8px; }
.sprint-math { display:flex; flex-wrap:wrap; gap:12px 30px; background:#e8eee4; padding:15px; margin:15px 0; font-size:clamp(15px,2vw,21px); }
.sprint-math>span { max-width:100%; overflow:auto; }
.sprint-quiz { padding:18px; background:#eee6d8; }
.sprint-quiz summary { font-weight:650; cursor:pointer; padding:8px 0; color:#614624; }
.sprint footer { padding:30px 0; }
@media(max-width:600px) {
  .sprint-index { grid-template-columns:1fr 1fr; }
  .sprint-item { grid-template-columns:minmax(0,1fr); gap:0; }
  .sprint-time { padding:0; }
  .sprint-quiz { padding:14px; }
}
.sprint-doors,.section-tabs,.hour-chapters{display:flex;align-items:center;flex-wrap:wrap;gap:4px 21px;margin:15px 0 0}
.sprint-doors a,.section-tabs a,.hour-chapters a,.review-list a{display:inline-flex;align-items:center;min-height:44px}
.sprint-doors a:first-child{padding:0 16px;color:#fff;background:#174a3e;text-decoration:none}
.sprint a:focus-visible,.review summary:focus-visible{outline:2px solid #9a4c22;outline-offset:2px}
.review-index,.review section{padding:24px 0;scroll-margin-top:12px}
.chapter-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px}
.chapter-shelf a{display:flex;align-items:baseline;gap:.8em;min-height:44px;padding:11px 0;border-bottom:1px solid #c5c9b8;text-decoration:none}
.chapter-shelf small,.review summary small,.review .folio{color:#845332;font-variant-numeric:tabular-nums;white-space:nowrap}
.chapter-shelf a:hover span{text-decoration:underline}
.review{line-height:1.7;overflow-wrap:break-word}
.review .folio{margin:22px 0 0;font-size:.9rem}
.review h1,.review h2,.review h3{letter-spacing:0}
.review section>h2{font-size:clamp(24px,3.5vw,36px)}
.review details,.review .claim,.review-list li{border-bottom:1px solid #b7bead}
.review details>summary{display:list-item;min-height:44px;padding:12px 0;cursor:pointer;color:#204c40}
.review details>summary small{display:inline-block;margin-right:1em}
.review .review-inside{padding:8px 0 22px}
.review .claim{padding:16px 0}
.review .claim h3,.review-inside h3,.hw-paper h3{font-size:clamp(19px,2.3vw,25px)}
.review .claim a,.review .guided-answer-note a{font-size:.9rem}
.review p{margin:.55em 0}
.review .given-box,.review .claim-cue,.review .margin-note{padding:10px 14px;background:#eaeee3;border-left:3px solid #809980;margin:10px 0}
.review .guided-answer-row,.review .answer-line{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:20px;padding:15px 0;border-bottom:1px dotted #c6c9b9}
.review .guided-answer-note,.review .aside{font-size:.93rem;color:#694927;align-self:start;margin:0;padding-left:12px;border-left:2px solid #cbb58e}
.review .section-line{padding:8px 0}
.review table{border-collapse:collapse;font-variant-numeric:tabular-nums}
.review th,.review td{border:1px solid #ccd0c0;padding:5px 9px;text-align:left}
.review .guided-answer-text,.review .table-wrap,.review .guided-equation,.review .hw-equation,.review .equations{min-width:0;max-width:100%;overflow-x:auto}
.sprint .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sprint .math-flow{display:inline-flex;flex-wrap:wrap;gap:.12em .2em;max-width:100%;vertical-align:middle}
.sprint .math-piece,.hw-paper .katex,.review .manuscript .katex{display:inline-block;max-width:100%;overflow-x:auto;vertical-align:middle}
.review .guided-equation,.review .hw-equation{margin:9px 0;padding:8px 0}
.review-list{padding:0;list-style:none}.review-list li{display:flex;justify-content:space-between;align-items:baseline;gap:.3em 1em;flex-wrap:wrap;padding:6px 0}
.hw-paper figure{margin:20px 0}.hw-paper figure img{width:auto;max-width:100%;height:auto}.hw-paper figcaption{font-size:.9rem;color:#526356}
@media(max-width:680px){.chapter-shelf{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}.review .guided-answer-row,.review .answer-line{grid-template-columns:minmax(0,1fr);gap:6px}.review-list li{display:block}.review-list small{display:block}.review .review-inside{padding-top:0}.sprint-doors{gap:0 14px}}
/* Formal review: conditions and notation stay next to the reasoning. */
.formal-reading{padding:18px 0;border-bottom:1px solid #b7bead;line-height:1.7}
.formal-reading ol{padding-left:1.4em}.formal-reading p,.formal-count{font-size:.9rem;color:#5c6b60}
.formal-jump{display:flex;flex-wrap:wrap;gap:0 20px;padding-top:18px}.formal-jump a{padding:9px 0;font-size:.92rem}
.formal-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0;font-size:.85rem}
.formal-tools button{border:1px solid #9da995;background:transparent;border-radius:4px;color:#204c40;min-height:44px;padding:8px 12px;cursor:pointer}
.formal-tools span{color:#536457}.formal-section{scroll-margin-top:12px}.formal-source{font-size:.82rem;color:#647165;margin:8px 0 20px}
.review h4{font-family:system-ui,sans-serif;font-size:.94rem;color:#526547;letter-spacing:.05em;margin:23px 0 8px}
.formal-assumptions{border-left:3px solid #a0ad8f;padding:2px 16px;background:#edf0e7;margin:16px 0}.formal-assumptions h4{margin:12px 0 5px}
.formal-conditions,.formal-steps{padding-left:1.5em;margin:8px 0 15px}.formal-conditions li,.formal-steps li{padding:3px 0 6px 3px}
.formal-symbols dl{margin:6px 0 18px;border-top:1px solid #c8cebf}.formal-symbols dl>div{display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,3fr);gap:12px;border-bottom:1px solid #d9ddcf;padding:9px 5px}
.formal-symbols dt{min-width:0;overflow-x:auto}.formal-symbols dd{margin:0;min-width:0}.formal-lead{font-size:1.05rem}
.formal-equation{margin:14px 0 20px;padding:14px 18px;background:#e8eee4;border-radius:3px;min-width:0}.formal-equation .equation-index{font-size:.77rem;color:#64735c;display:block}.formal-equation p{font-size:.94rem}.formal-equation .guided-equation{padding:7px 0;margin:4px 0}
.formal-claim{scroll-margin-top:20px}.formal-result{padding:14px 0;border-block:1px solid #c6ccb9;font-size:1.05rem}.formal-claim+.formal-claim{margin-top:22px}
.formal-crosslink{display:inline-block;margin-top:16px;color:#637261!important;font-size:.85rem!important}
.formal-figure{margin:24px 0;padding:15px;border:1px solid #c4cbbb;border-radius:4px}.formal-figure svg{width:100%;height:auto;display:block;max-height:360px}.formal-figure figcaption{font-size:.9rem;line-height:1.7;margin-top:12px}.formal-figure figcaption small{display:block}.formal-figure text{font-family:Georgia,'Songti SC',serif}
@media(max-width:450px){.formal-symbols dl>div{grid-template-columns:minmax(65px,1fr) minmax(0,2fr);gap:8px}.formal-equation{padding:11px}.formal-assumptions{padding-inline:12px}.formal-figure{padding:8px}.formal-jump{gap:0 14px}.formal-steps{padding-left:1.25em}}
@media(prefers-reduced-motion:reduce){.formal-section,.formal-claim{scroll-behavior:auto}}

.formal-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:28px;align-items:start}.formal-layout>div{min-width:0}.formal-layout .formal-symbols{font-size:.9rem}.formal-layout .formal-symbols dl>div{grid-template-columns:minmax(65px,1fr) minmax(0,2.4fr);gap:10px}.formal-layout .formal-symbols dt{font-size:.98rem}.claim-notation>summary{font-size:.9rem}
@media(max-width:760px){.formal-layout{grid-template-columns:minmax(0,1fr);gap:0}.formal-layout .formal-symbols dl>div{grid-template-columns:minmax(70px,1fr) minmax(0,3fr)}}

/* UX05-UX08/UX11: actionable sprint tracker, search, crosslinks & formula-scoped symbols */
.study-resume-banner{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:14px 0;padding:10px 14px;background:#ebf2e8;border:1px solid #bdd0bc;border-left:4px solid #174a3e;border-radius:5px;font-size:.93rem}
.resume-tag{font-size:.75rem;font-weight:700;padding:2px 7px;border-radius:99px;background:#174a3e;color:#fff}
.sprint-toolbar{padding:14px 0 18px;border-bottom:1px solid #b7bead;display:grid;gap:12px}
.sprint-progress-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:10px 14px;background:#f4f0e1;border:1px solid #d2cbb3;border-radius:5px;font-size:.92rem}
.sprint-next-link{font-weight:650;color:#185b4d}
.sprint-filter-row{display:flex;flex-wrap:wrap;gap:8px}
.sprint-filter-row button,.sprint-check{min-height:36px;padding:4px 12px;font-size:.84rem;border:1px solid #96a494;background:#faf8f0;color:#1c453a;border-radius:99px;cursor:pointer}
.sprint-filter-row button[aria-pressed="true"],.sprint-check[aria-pressed="true"]{background:#174a3e;border-color:#174a3e;color:#fff;font-weight:650}
.sprint-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sprint-tasks{padding-left:1.4em;margin:14px 0;display:grid;gap:12px}
.sprint-tasks li{padding:0 0 10px;border-bottom:1px solid #dad8c9}
.sprint-tasks a{font-weight:600;overflow-wrap:anywhere}
.sprint-tasks button{display:block;margin-top:6px;min-height:36px;padding:5px 12px;border:1px solid #8b9f91;background:#fffdf7;color:#174a3e;border-radius:4px;cursor:pointer}
.sprint-tasks button[aria-pressed="true"]{background:#174a3e;color:#fff}
.sprint-tasks p,.sprint-plan-note{font-size:.88rem;line-height:1.6;color:#47584b}
.sprint-next-chapter{display:inline-block;margin:4px 0 14px}
.sprint-item.is-sprint-done{background:#f4f8f2;padding-inline:10px;border-radius:4px}
.sprint-search .search-box{display:grid;gap:6px}
.sprint-search label{font-size:.9rem;font-weight:650;color:#394c42}
.sprint-search input[type="search"]{width:100%;max-width:34rem;min-height:42px;padding:8px 12px;border:1px solid #9ea695;border-radius:5px;font:inherit;background:#fffdf7}
.atlas-result-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.atlas-result-item{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;padding:7px 10px;background:#fffdf7;border:1px solid #d5d0be;border-radius:4px;font-size:.92rem}
.atlas-result-kind{font-size:.74rem;font-weight:700;padding:1px 7px;border-radius:99px;background:#e4ede0;color:#174a3e;flex:none}
.atlas-result-alt{margin-inline-start:auto;font-size:.82rem;color:#7a4e2f}
.study-backup{font-size:.88rem;color:#4a5a4e}
.study-backup summary{cursor:pointer;min-height:36px;display:inline-flex;align-items:center}
.study-backup-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:8px}
.study-backup-actions button{min-height:36px;padding:4px 12px;font-size:.83rem;border:1px solid #9da995;background:#fffdf7;color:#1c453a;border-radius:4px;cursor:pointer}
.review-top-links,.formal-crosslinks{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center}
.review-action-row{margin:10px 0 4px}
.equation-aids{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:6px 14px;margin-top:8px;padding-top:6px;border-top:1px dotted #c6d0be}
.formula-symbols{font-size:.88rem;color:#2c483d}
.formula-symbols summary{cursor:pointer;min-height:32px;display:inline-flex;align-items:center;font-weight:600;color:#1d5142}
.formula-symbols dl{margin:6px 0 0;border-top:1px solid #cbd3c4}
.formula-symbols dl>div{display:grid;grid-template-columns:minmax(56px,auto) minmax(0,1fr);gap:8px;padding:5px 2px;border-bottom:1px solid #dde3d7}
.formula-symbols dt{font-weight:600}
.formula-symbols dd{margin:0}
.premise-back{font-size:.82rem!important;color:#754a2c!important;text-decoration:underline;text-underline-offset:.2em;min-height:28px;display:inline-flex;align-items:center}
.review h4 .premise-back{margin-inline-start:10px;font-weight:500;letter-spacing:0}
