/* Shared lesson format. Reference: October 4K/Kindergarten Tooltime Week 2. */
@media screen {
#lesson .typography-sample {font-family:'Source Sans 3',Arial,sans-serif;color:#292d30;background:#f4ead8;}
#lesson .typography-sample :is(button,select,input) {font-family:inherit;}
#lesson .typography-sample :is(p,li) {font-size:26px;line-height:1.45;font-weight:400;text-align:left;}
#lesson .typography-sample :is(.script,.lesson-script,.teacher-speech) {white-space:pre-wrap;}
#lesson .typography-sample :is([data-activity='greeting'],[data-activity-style='greeting']) {--activity-accent:#b85410;--activity-tint:#fff0d9;}
#lesson .typography-sample :is([data-activity='practice'],[data-activity='breathing'],[data-activity-style='practice']) {--activity-accent:#226643;--activity-tint:#e8f3e0;}
#lesson .typography-sample :is([data-activity='questions'],[data-activity-style='questions']) {--activity-accent:#67418f;--activity-tint:#f0e8f7;}
#lesson .typography-sample [data-activity] {background:#fffdf5;border:1px solid #ddc99f;border-radius:16px;}
#lesson .typography-sample [data-activity] :is(h2,h3,h4):not(.tooltime-day-title):not(.tooltime-week-title) {font-size:28px;line-height:1.25;font-weight:600;background:var(--activity-tint,#fff0d9);border:0;border-left:5px solid var(--activity-accent,#a5651d);border-radius:0 9px 9px 0;padding:8px 14px;margin:0 0 16px;color:#292d30;}
#lesson .typography-sample.screen-fit .screen-page-track :is(p,li) {font-size:26px;line-height:1.45;margin:0 0 .6em;max-width:60ch;color:#292d30;}
#lesson .typography-sample.screen-fit .screen-page-track .teacher-direction {font-size:23px;color:#4d555c;}
#lesson .typography-sample.screen-fit .screen-page-track :is(h2,h3,h4):not(.tooltime-day-title):not(.tooltime-week-title) {font-size:28px;line-height:1.25;font-weight:600;letter-spacing:normal;background:var(--activity-tint,#fff0d9);border:0;border-left:5px solid var(--activity-accent,#a5651d);border-radius:0 9px 9px 0;padding:8px 14px!important;margin:0 0 16px!important;color:#292d30;}
#lesson .typography-sample.screen-fit .screen-page-track :is(h1,.tooltime-day-title) {font-size:34px;line-height:1.2;font-weight:700;letter-spacing:-.015em;border:0;background:transparent;color:#292d30;}
#lesson .typography-sample .target {font-size:26px;line-height:1.45;color:#292d30;}
#lesson .typography-sample.screen-fit.focused-teaching {grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) 60px;}
#lesson .typography-sample > .teaching-view-controls,
#lesson .typography-sample.screen-fit.focused-teaching > .teaching-view-controls {grid-column:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;align-content:start;gap:8px;width:100%;}
#lesson .typography-sample .lesson-shortcut-controls {display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;align-self:start;margin-top:24px;gap:8px;}
#lesson .typography-sample .lesson-shortcut-controls button {font-size:14px;line-height:1.25;min-height:38px;padding:8px 12px;white-space:nowrap;}
#lesson .typography-sample .screen-activity-picker {display:none!important;}
#lesson .typography-sample > .teaching-view-controls .teaching-lesson-context {grid-column:auto;width:100%;max-width:470px;min-width:0;justify-self:end;box-sizing:border-box;}
#lesson .typography-sample .teaching-lesson-context {flex:0 0 100%;width:100%;padding:10px 16px 10px 100px;font-size:17px;font-weight:600;line-height:1.3;margin:0;}
#lesson .typography-sample .sample-banner-title {font-size:34px;line-height:1.15;font-weight:700;letter-spacing:-.015em;}
#lesson .typography-sample.screen-fit.focused-teaching > [data-activity],
#lesson .typography-sample.screen-fit.focused-teaching > .activity-navigation {grid-column:1;}
#lesson .typography-sample.screen-fit.focused-teaching > .tooltime-shortcuts {display:none;}
#lesson .typography-sample {position:relative;container:hornet-lesson / inline-size;}
#lesson .typography-sample:not(.focused-teaching) > .tooltime-shortcuts {display:none;}
#lesson .typography-sample.activity-menu-open > .tooltime-shortcuts,
#lesson .typography-sample.screen-fit.focused-teaching.activity-menu-open > .tooltime-shortcuts {display:flex;flex-direction:column;position:absolute;top:var(--activity-menu-top,126px);left:auto;right:var(--activity-menu-right,18px);width:min(340px,calc(100% - 36px));max-height:var(--activity-menu-height,65vh);overflow:auto;z-index:10;margin:0;padding:12px;box-sizing:border-box;background:#30363c;border:1px solid #30363c;border-radius:14px;}
#lesson .typography-sample .tooltime-shortcuts a {text-decoration:none;}
#lesson .typography-sample:not(.focused-teaching) > .tooltime-shortcuts a {display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border:1px solid #697582;border-radius:9px;font-size:17px;font-weight:600;line-height:1.25;}
#lesson .typography-sample .activity-navigation button {font-size:20px;line-height:1.25;font-weight:600;min-height:44px;border-radius:9px;}
#lesson .typography-sample .activity-navigation {display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr) minmax(100px,1fr);align-items:center;}
#lesson .typography-sample .activity-navigation button {max-width:none;}
#lesson .typography-sample .activity-navigation button:first-child {justify-self:start;}
#lesson .typography-sample .activity-navigation button:last-child {justify-self:end;}
#lesson .typography-sample .activity-progress {font-size:18px;font-weight:400;line-height:1.3;margin:0;color:#434b52;justify-self:center;max-width:none;text-align:center;}
#lesson .typography-sample .note {font-size:18px;line-height:1.4;color:#4d555c;}
body.screen-teaching.tooltime-wrap-up #lesson .typography-sample.screen-fit {grid-template-rows:auto minmax(0,1fr) 60px 140px;}
body.screen-teaching.tooltime-wrap-up .completion-dock {left:30px;right:30px;}
@media(max-width:700px),(max-height:540px){
#lesson .typography-sample.screen-fit.focused-teaching {grid-template-rows:auto minmax(0,1fr) 64px;}
#lesson .typography-sample .sample-banner-title {font-size:26px;}
#lesson .typography-sample .teaching-lesson-context {font-size:16px;padding-left:90px;}
#lesson .typography-sample.screen-fit .screen-page-track :is(p,li),#lesson .typography-sample .target {font-size:24px;}
#lesson .typography-sample.screen-fit .screen-page-track :is(h2,h3,h4):not(.tooltime-day-title):not(.tooltime-week-title) {font-size:26px;}
#lesson .typography-sample > .teaching-view-controls,
#lesson .typography-sample.screen-fit.focused-teaching > .teaching-view-controls {grid-template-columns:minmax(0,1fr);}
#lesson .typography-sample > .teaching-view-controls .teaching-lesson-context {grid-column:1;max-width:none;}
#lesson .typography-sample .lesson-shortcut-controls {justify-self:end;margin-top:0;gap:6px;max-width:100%;}
#lesson .typography-sample .lesson-shortcut-controls button {white-space:normal;font-size:13px;padding:8px;}
#lesson .typography-sample.activity-menu-open > .tooltime-shortcuts,
#lesson .typography-sample.screen-fit.focused-teaching.activity-menu-open > .tooltime-shortcuts {left:auto;right:var(--activity-menu-right,8px);width:min(340px,calc(100% - 16px));}
body.screen-teaching.tooltime-wrap-up #lesson .typography-sample.screen-fit {grid-template-rows:auto minmax(0,1fr) 64px 140px;}
body.screen-teaching.tooltime-wrap-up .completion-dock {left:18px;right:18px;}
}
}
@media screen {
@container hornet-lesson (max-width:900px) {
#lesson .typography-sample > .teaching-view-controls,
#lesson .typography-sample.screen-fit.focused-teaching > .teaching-view-controls {grid-template-columns:minmax(0,1fr);}
#lesson .typography-sample > .teaching-view-controls .teaching-lesson-context {grid-column:1;max-width:none;}
#lesson .typography-sample .lesson-shortcut-controls {justify-self:end;margin-top:0;max-width:100%;}
}
}
@media print {#lesson .typography-sample {font-family:'Source Sans 3',Arial,sans-serif;}#lesson .typography-sample :is(p,li) {font-size:12pt;line-height:1.4;}}

/* The same site navigation accompanies both teaching surfaces. */
#lesson .lesson-shortcut-controls {flex-wrap:wrap;}
#lesson .lesson-site-navigation {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;max-width:100%;margin:0;padding:0;border:0;background:transparent;}
#lesson .lesson-site-navigation :is(a,button) {display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border:1px solid #d4c5ab;border-radius:8px;background:#fffaf0;color:#2b2e30;font:600 16px/1.25 'Source Sans 3',Arial,sans-serif;text-decoration:none;white-space:normal;text-align:center;cursor:pointer;}
#lesson .lesson-site-navigation :is(a,button):hover {background:#f7edda;}
#lesson .lesson-site-navigation :is(a,button):focus-visible {outline:3px solid #a84c12;outline-offset:3px;}
@media(max-width:700px) {
 #lesson .lesson-site-navigation {flex-basis:100%;justify-content:flex-start;}
 #lesson .lesson-site-navigation :is(a,button) {font-size:15px;min-height:44px;padding:8px 10px;}
}
@media print {#lesson .lesson-site-navigation {display:none!important;}}

/* Phone lessons use page scrolling. Avoid a tiny nested reading window. */
@media screen and (max-width:700px) {
body.screen-teaching:has(#lesson .typography-sample) {overflow:auto;}
body.screen-teaching #lesson {overflow:visible;}
body.screen-teaching > .site-header {display:none;}
#lesson .typography-sample.screen-fit.focused-teaching {
 position:relative;inset:auto;min-height:calc(100dvh - 24px);height:auto;
 grid-template-rows:auto minmax(0,1fr) auto;padding:10px!important;gap:12px;
 overflow:visible;box-sizing:border-box;
}
#lesson .typography-sample.screen-fit.focused-teaching > [data-activity] {height:auto!important;max-height:none!important;overflow:visible;min-height:0;}
#lesson .typography-sample.screen-fit .screen-page-viewport,
#lesson .typography-sample.screen-fit .screen-page-viewport.continuous-reading {height:auto;overflow:visible;scrollbar-gutter:auto;}
#lesson .typography-sample.screen-fit .screen-page-track {height:auto!important;columns:auto!important;transform:none!important;}
#lesson .typography-sample.screen-fit .screen-page-track :is(p,li) {font-size:20px;line-height:1.5;}
#lesson .typography-sample.screen-fit .screen-page-track :is(h1,h2,h3,h4) {font-size:24px;line-height:1.25;}
#lesson .typography-sample .activity-navigation {position:sticky;bottom:8px;z-index:5;box-shadow:0 4px 20px #3c321822;}
body.screen-teaching.tooltime-wrap-up #lesson .typography-sample.screen-fit {grid-template-rows:auto minmax(0,1fr) auto;}
body.screen-teaching.tooltime-wrap-up .completion-dock {position:static;margin:14px 0;min-height:0;}
}
