/* Tooltime refinements. Retain the existing cream, charcoal and orange system. */
body.lesson-home .tooltime-home-layout{display:block!important;max-width:760px;margin-inline:auto}
body.lesson-home .home-date-choices{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
body.lesson-home .tooltime-story-about{margin:16px 0;padding:16px 20px;border-top:1px solid #e4d9c4;background:#fffdf8;font-size:16px;order:2}
body.lesson-home .tooltime-story-about :is(h2,h3){font-size:20px}
body.lesson-home :is(.schoolwide-participation,.classroom-spotlight){order:3;margin-top:20px}
body.lesson-home .tooltime-home-resources{order:4}
body.lesson-home .teaching-picker :is(select,button){min-height:48px}
body.lesson-home .teaching-picker button[aria-pressed=true]{box-shadow:inset 0 -3px #a84c12}
body.lesson-home .home-grade-buttons button[aria-pressed=true]::after{content:' ✓'}
body.lesson-home .home-day-buttons button{overflow-wrap:normal;font-size:16px}
#lesson .typography-sample .lesson-shortcut-controls :is(button,summary){min-height:44px;font-size:16px;white-space:normal}
#lesson .typography-sample .teaching-lesson-context{overflow-wrap:anywhere;min-width:0;padding-left:100px}
#lesson .typography-sample .activity-navigation{grid-template-columns:minmax(0,1fr) minmax(0,.8fr) minmax(0,1fr);height:auto;min-height:60px}
#lesson .typography-sample .activity-navigation button{max-width:100%;min-width:0;min-height:48px;font-size:17px;white-space:normal;overflow-wrap:anywhere}
#lesson .typography-sample .activity-progress{font-size:16px}
#lesson .typography-sample.screen-fit.focused-teaching{grid-template-rows:auto minmax(0,1fr) auto}
body.screen-teaching.tooltime-wrap-up #lesson .typography-sample.screen-fit{bottom:180px;grid-template-rows:auto minmax(0,1fr) auto}
#lesson .typography-sample.screen-fit .screen-page-track :is(p,li){max-width:62ch}
#lesson .typography-sample .script-say,#lesson .typography-sample .script-do{break-inside:avoid;gap:12px}
#lesson .typography-sample .script-line-label{flex-basis:3.2rem;font-size:15px;line-height:1.35;white-space:normal}
#lesson .typography-sample .script-line-text{min-width:0}
#lesson .typography-sample :is(.say-this,.do-this){border-left:3px solid #d9b381;padding-left:14px}
#lesson .typography-sample .do-this{border-color:#b6c2b5;color:#4d555c}
#lesson .typography-sample .say-this::before{content:'SAY THIS';display:block;font-size:14px;letter-spacing:.04em;font-weight:700;color:#8b3c10;margin-bottom:6px}
#lesson .typography-sample .do-this::before{content:'DO THIS';display:block;font-size:14px;letter-spacing:.04em;font-weight:700;margin-bottom:6px}
#lesson .typography-sample .ask-this ol::before{content:'ASK THIS';display:block;font-size:14px;font-weight:700;color:#67418f;margin:0 0 12px}
#lesson .typography-sample .tooltime-learning-citation{font-size:14px;line-height:1.45;color:#625b51;margin-top:24px;break-inside:avoid}
#lesson .typography-sample .tooltime-day-navigation{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:20px;padding-top:14px;border-top:1px solid #e4d9c4;break-inside:avoid}
.tooltime-day-navigation a,.story-reading-link,.story-return{display:inline-flex;align-items:center;box-sizing:border-box;min-height:48px;padding:10px 16px;border:1px solid #cbbba2;border-radius:9px;background:#fff6e9;color:#713b12;font:600 17px/1.35 'Source Sans 3',Arial,sans-serif;text-decoration:none}
.story-reading-link{margin-bottom:16px}
.story-return{margin-bottom:10px}
.story-page .story-upload-panel{margin-top:32px}
.story-page .story-image-card:has(img[hidden]){display:none}
.story-page .story-reader{box-sizing:border-box;max-width:min(940px,calc(100% - 20px))}
.story-page .story-reader-controls :is(select,a){overflow-wrap:anywhere}
.teaching-reference{font-size:16px;color:#625b51}
body.screen-teaching.tooltime-wrap-up .completion-dock{bottom:12px;max-height:156px;overflow:auto;box-sizing:border-box}
body.screen-teaching.tooltime-wrap-up :is(.logging-controls,.completion-panel){position:static!important;inset:auto!important;width:auto!important;min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:700px){
 body.lesson-home .home-date-choices{grid-template-columns:1fr}
 body.lesson-home .home-day-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}
 #lesson .typography-sample .lesson-shortcut-controls{justify-content:flex-start;justify-self:stretch;gap:8px}
 #lesson .typography-sample .lesson-shortcut-controls :is(button,summary){font-size:15px;padding:10px}
 #lesson .typography-sample .activity-navigation{position:static;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;box-shadow:none}
 #lesson .typography-sample .activity-navigation .activity-progress{grid-column:1/-1;grid-row:1;font-size:15px}
 #lesson .typography-sample .activity-navigation button{font-size:16px}
 #lesson .typography-sample .activity-navigation button:last-child{grid-column:2}
 body.screen-teaching.tooltime-wrap-up #lesson .typography-sample.screen-fit{bottom:auto;grid-template-rows:auto minmax(0,1fr) auto}
 body.screen-teaching.tooltime-wrap-up .completion-dock{position:static;display:flex;flex-direction:column;max-height:none;gap:12px;margin:16px 0}
 body.screen-teaching.tooltime-wrap-up .completion-dock :is(select,button){min-height:48px;max-width:100%}
 #lesson .typography-sample.screen-fit .screen-page-track :is(p,li){font-size:20px;line-height:1.5;overflow-wrap:anywhere}
 #lesson .typography-sample .script-say,#lesson .typography-sample .script-do{display:block}
 #lesson .typography-sample .script-line-label{display:block;margin-bottom:4px;font-size:14px}
}
@media print{.tooltime-day-navigation,.story-reading-link,.story-return{display:none}.say-this::before,.do-this::before,.ask-this ol::before{display:none}}
@media screen and (max-height:540px) and (min-width:701px){
 body.screen-teaching:has(#lesson .typography-sample){overflow:auto}
 #lesson .typography-sample.screen-fit.focused-teaching{position:relative;inset:auto;min-height:540px;height:auto;overflow:visible}
 #lesson .typography-sample.screen-fit.focused-teaching>[data-activity]{height:auto!important;max-height:none!important}
 #lesson .typography-sample.screen-fit .screen-page-viewport{height:auto;overflow:visible}
 #lesson .typography-sample.screen-fit .screen-page-track{height:auto!important;columns:auto!important;transform:none!important}
 body.screen-teaching.tooltime-wrap-up #lesson .typography-sample.screen-fit{bottom:auto}
 body.screen-teaching.tooltime-wrap-up .completion-dock{position:static;max-height:none;margin:16px 0}
}
#lesson .typography-sample .week-two-more{position:relative}
#lesson .typography-sample .week-two-more>summary{display:flex;align-items:center;list-style:none;padding:10px 12px;border:1px solid #d6cfbf;border-radius:9px;background:#fffdf7;cursor:pointer}
#lesson .typography-sample .week-two-more>summary::-webkit-details-marker{display:none}
#lesson .typography-sample .week-two-more:not([open]) .lesson-site-navigation{display:none}
#lesson .typography-sample .week-two-more[open] .lesson-site-navigation{position:absolute;right:0;top:100%;z-index:20;display:flex;flex-direction:column;align-items:stretch;min-width:190px;max-width:calc(100vw - 40px);padding:8px;background:#fffdf7;border:1px solid #d6cfbf;border-radius:10px;box-shadow:0 8px 24px #302a2026}

/* The same ordered picker applies on the launch page and inside a lesson. */
@media screen {
 body.tooltime-page:not(.lesson-home) .teaching-picker{display:flex;flex-direction:column;align-items:stretch;gap:12px;max-width:620px;margin:20px auto}
 body.tooltime-page:not(.lesson-home) .teaching-picker label{width:100%;min-width:0;flex:none}
 body.tooltime-page:not(.lesson-home) .home-date-choices{display:contents}
 body.tooltime-page:not(.lesson-home) .home-week-choice{display:grid}
 body.tooltime-page:not(.lesson-home) .teaching-picker select{width:100%;min-width:0;max-width:100%;min-height:48px}
 body.tooltime-page #weeks{display:none!important}
 #lesson .typography-sample .teaching-lesson-context{padding:14px 16px 14px 100px;min-height:100px}
 #lesson .typography-sample .teaching-lesson-context::before{left:12px;top:50%;bottom:auto;width:76px;height:86px;transform:translateY(-50%)}
}
@media screen and (max-width:700px){
 #lesson .typography-sample .teaching-lesson-context{padding:12px 14px 12px 84px;min-height:92px}
 #lesson .typography-sample .teaching-lesson-context::before{left:10px;width:62px;height:76px}
 #lesson .typography-sample .sample-banner-title{font-size:24px;line-height:1.25}
}
