@font-face {font-family:'Source Sans 3';src:url('assets/fonts/source-sans-3-400.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face {font-family:'Source Sans 3';src:url('assets/fonts/source-sans-3-600.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap;}
@font-face {font-family:'Source Sans 3';src:url('assets/fonts/source-sans-3-700.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap;}
/* A single visual system, shared by all Tooltime lessons. */
#lesson .typography-sample {font-family:'Source Sans 3',Arial,sans-serif;color:#292d30;--paper:#fffdf5;--orange:#f5a039;--charcoal:#30363c;}
#lesson .typography-sample :is(button,select) {font-family:inherit;}
#lesson .typography-sample .teaching-lesson-context {position:relative;flex:0 0 100%;margin:0;padding:10px 16px 10px 100px;border-radius:12px;background:#f5a039;color:#302415;border:1px solid #cf7c20;font-size:17px;font-weight:600;line-height:1.3;}
#lesson .typography-sample .teaching-lesson-context::before {content:'';position:absolute;left:12px;bottom:0;width:80px;height:80px;background:url('assets/homer.png') center / contain no-repeat;}
#lesson .typography-sample.breathing-lesson .teaching-lesson-context::before {background-image:url('assets/tooltime/homer-soup-breathing-soft.png');background-position:left center;background-size:200% 100%;}
#lesson .typography-sample .sample-banner-title {display:block;font-size:34px;line-height:1.15;font-weight:700;letter-spacing:-.015em;margin:0 0 3px;}
#lesson .typography-sample .teaching-view-controls {flex-wrap:wrap;align-content:start;gap:6px 10px;}
#lesson .typography-sample [data-activity='greeting'] {--activity-accent:#b85410;--activity-tint:#fff0d9;}
#lesson .typography-sample :is([data-activity='practice'],[data-activity='breathing']) {--activity-accent:#226643;--activity-tint:#e8f3e0;}
#lesson .typography-sample [data-activity='questions'] {--activity-accent:#67418f;--activity-tint:#f0e8f7;}
#lesson .typography-sample.screen-fit .screen-page-track :is(p,li) {font-size:26px;line-height:1.45;max-width:60ch;margin:0 0 .6em;text-align:left;}
#lesson .typography-sample.screen-fit .screen-page-track .teacher-direction {font-size:23px;color:#4d555c;}
#lesson .typography-sample.screen-fit .screen-page-track :is(h3,h4) {font-size:28px;line-height:1.25;font-weight:600;background:var(--activity-tint,#fff0d9);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 h2 {font-size:34px;line-height:1.2;font-weight:700;letter-spacing:-.015em;}
#lesson .typography-sample .homer-breathing-cards {display:flex;justify-content:center;gap:20px;break-inside:avoid;}
#lesson .typography-sample .homer-breathing-card {flex:1;max-width:320px;margin:0!important;background:#fff1d5;border:2px solid #e5b963;border-radius:18px;padding:12px;break-inside:avoid;}
#lesson .typography-sample .homer-breathing-card:last-child {background:#eaf5e6;border-color:#83b882;}
#lesson .typography-sample .homer-breathing-picture {width:min(100%,260px,calc(var(--screen-height,650px) * .48));height:auto;aspect-ratio:1;margin:auto;background-image:url('assets/tooltime/homer-soup-breathing-soft.png');background-repeat:no-repeat;background-size:200% 100%;}
#lesson .typography-sample .homer-breathing-picture.left {background-position:left center;}
#lesson .typography-sample .homer-breathing-picture.right {background-position:right center;}
#lesson .typography-sample .homer-breathing-card figcaption {font:700 26px/1.25 'Source Sans 3',Arial,sans-serif;color:#292d30;text-align:center;padding-top:10px;}
#lesson .typography-sample .homer-breathing-part .screen-page-track > p {text-align:center;margin-top:14px;}
@media screen {
body.tooltime-page:has(#lesson .typography-sample) {background:#f4ead8;}
#lesson .typography-sample {background:#f4ead8;}
#lesson .typography-sample.screen-fit.focused-teaching {padding:18px!important;gap:14px 18px;grid-template-columns:200px minmax(0,1fr);grid-template-rows:126px minmax(0,1fr) 60px;border:1px solid #d9c9ae;border-radius:20px;box-shadow:0 4px 16px #59422312;}
#lesson .typography-sample.screen-fit.focused-teaching > .tooltime-shortcuts {background:#30363c;border:1px solid #30363c;border-radius:14px;padding:12px;gap:8px;box-shadow:none;}
#lesson .typography-sample.focused-teaching > .tooltime-shortcuts > a {background:#30363c;color:#fffaf1;border:1px solid #60666b;border-radius:9px;font-size:17px;line-height:1.25;font-weight:600;min-height:42px;padding:10px 12px;}
#lesson .typography-sample.focused-teaching > .tooltime-shortcuts > a:hover {background:#454c52;}
#lesson .typography-sample.focused-teaching > .tooltime-shortcuts > a[aria-current='step'] {background:#f5a039;color:#302415;border:1px solid #f5a039;border-left:5px solid #ffe2a9;}
#lesson .typography-sample.screen-fit.focused-teaching > [data-activity] {align-self:stretch;height:100%;max-height:100%;background:#fffdf5;border:1px solid #ddc99f;border-radius:16px;padding:20px 24px!important;box-shadow:0 2px 8px #76552014;}
#lesson .typography-sample .activity-navigation {background:#fffdf5;border-radius:12px;padding:8px!important;gap:10px;}
#lesson .typography-sample .activity-navigation button {font-size:20px;line-height:1.25;font-weight:600;border-radius:9px;min-height:44px;padding:8px 16px;}
#lesson .typography-sample .activity-navigation button:first-child {background:#fffdf5;color:#30363c;border:1px solid #697177;}
#lesson .typography-sample .activity-navigation button:last-child {background:#f5a039;color:#302415;border:1px solid #cf7c20;}
#lesson .typography-sample .activity-progress {font-size:18px;line-height:1.3;background:transparent;border:0;padding:0;text-align:center;color:#434b52;}
body.screen-teaching.tooltime-wrap-up #lesson .typography-sample.screen-fit {grid-template-rows:126px minmax(0,1fr) 60px 140px;}
#lesson .typography-sample.screen-fit.focused-teaching > .teaching-view-controls {grid-column:2;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;align-content:start;gap:10px;}
#lesson .typography-sample .teaching-lesson-context {width:auto;min-width:0;box-sizing:border-box;}
@media(max-width:700px),(max-height:540px){
#lesson .typography-sample.screen-fit.focused-teaching > .teaching-view-controls {grid-column:1;grid-template-columns:minmax(0,1fr) auto;gap:6px;}
#lesson .typography-sample .teaching-lesson-context {grid-column:1 / -1;}

#lesson .typography-sample.screen-fit.focused-teaching {padding:8px!important;gap:8px;grid-template-columns:minmax(0,1fr);grid-template-rows:132px minmax(0,1fr) 64px;}
#lesson .typography-sample.breathing-lesson .teaching-lesson-context::before {background-image:url('assets/tooltime/homer-soup-breathing-soft.png');background-position:left center;background-size:200% 100%;}
#lesson .typography-sample .sample-banner-title {font-size:26px;}
#lesson .typography-sample .teaching-lesson-context {font-size:16px;padding-left:90px;}
#lesson .typography-sample .teaching-lesson-context::before {width:70px;height:70px;}
#lesson .typography-sample.screen-fit .screen-page-track :is(p,li) {font-size:24px;}
#lesson .typography-sample.screen-fit.focused-teaching > [data-activity] {padding:12px!important;}
#lesson .typography-sample .activity-navigation button {font-size:18px;padding:8px;}
#lesson .typography-sample .homer-breathing-cards {gap:10px;}
#lesson .typography-sample .homer-breathing-card {padding:8px;}
#lesson .typography-sample .homer-breathing-picture {width:min(100%,170px,calc(var(--screen-height,500px) * .4));height:auto;}
#lesson .typography-sample .homer-breathing-card figcaption {font-size:22px;}
body.screen-teaching.tooltime-wrap-up #lesson .typography-sample.screen-fit {grid-template-rows:132px minmax(0,1fr) 64px 140px;}
}
}
@media print{#lesson .typography-sample.breathing-lesson .teaching-lesson-context::before {background-image:url('assets/tooltime/homer-soup-breathing-soft.png');background-position:left center;background-size:200% 100%;}
#lesson .typography-sample .sample-banner-title {display:none;}#lesson .typography-sample.screen-fit .screen-page-track p {font-size:12pt;}}

/* A single completion area keeps the class and save action together. */
.completion-dock {display:grid;grid-template-columns:minmax(190px,250px) minmax(0,1fr);gap:16px;align-items:center;}
body.teaching-focus:not(.tooltime-wrap-up) .completion-dock {display:none;}
body.screen-teaching.tooltime-wrap-up .completion-dock {position:fixed;z-index:1001;left:248px;right:30px;bottom:30px;min-height:110px;padding:12px 16px;background:#fffdf5;border:1px solid #ddc99f;border-radius:12px;box-sizing:border-box;font-family:'Source Sans 3',Arial,sans-serif;}
body.screen-teaching.tooltime-wrap-up .completion-dock :is(.logging-controls,.completion-panel) {position:static!important;display:block!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;}
.completion-dock select {width:100%;min-height:44px;font:600 18px 'Source Sans 3',Arial,sans-serif;}
.completion-dock label {font-weight:600;}
.completion-dock .completion-day {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.completion-dock .completion-day button {min-height:44px;font:600 20px 'Source Sans 3',Arial,sans-serif;padding:8px 18px;}
#lesson .typography-sample .wrap-up-visual {break-inside:avoid;}
#lesson .typography-sample .wrap-up .recap-goal {font-weight:600;}
#lesson .typography-sample .wrap-up .homer-breathing-picture {width:min(100%,180px,calc(var(--screen-height,450px) * .4));}
#lesson .typography-sample .wrap-up .homer-breathing-card {max-width:250px;}
@media(max-width:700px),(max-height:540px){body.screen-teaching.tooltime-wrap-up .completion-dock {left:18px;right:18px;bottom:18px;grid-template-columns:minmax(140px,1fr) minmax(0,1.3fr);gap:10px;padding:8px;min-height:110px;} .completion-dock .completion-day {gap:4px;} .completion-dock .completion-day button {font-size:17px;}}

body.screen-teaching.tooltime-wrap-up .completion-dock .tracker {margin:0;padding:0;border:0;background:transparent;}
.completion-dock #days {display:block;}
.completion-dock .completion-day {flex-direction:row;max-width:none;width:100%;padding:0;border:0;}
.completion-dock .completion-day p {flex:0 1 auto;}
.completion-dock #feedback {font-size:16px;margin:4px 0 0;min-height:20px;}
#lesson .typography-sample .wrap-up .wrap-up-visual img {max-height:min(200px,calc(var(--screen-height) * .38));}

/* Keep the recap and its reused picture together above completion controls. */
@media screen {
#lesson .typography-sample.screen-fit .wrap-up .screen-page-track > p,
#lesson .typography-sample.screen-fit .wrap-up .lesson-recap p {margin:0 0 8px;line-height:1.25;}
#lesson .typography-sample.screen-fit .wrap-up .homer-breathing-picture {width:min(100%,140px,calc(var(--screen-height,450px) * .27));}
#lesson .typography-sample.screen-fit .wrap-up .homer-breathing-card {padding:6px;}
#lesson .typography-sample.screen-fit .wrap-up .homer-breathing-card figcaption {font-size:20px;padding-top:4px;}
#lesson .typography-sample.screen-fit .wrap-up .wrap-up-visual {margin:8px 0!important;}
}
