/* Story-only book treatment. Lesson wording and other activities are unchanged. */
:is(#lesson,#preview-content,#story-content) .story-book-page{background:#fffaf0!important;background-image:linear-gradient(90deg,#dec8a322,transparent 4%,transparent 96%,#dec8a31a)!important;color:#302c27!important;border:1px solid #e5d8c1!important;border-radius:3px!important;box-shadow:0 4px 15px #4c382010;padding:clamp(20px,3vw,40px);font-family:Georgia,'Times New Roman',serif!important;}
:is(#lesson,#preview-content,#story-content) .story-book-page p{font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(22px,2.1vw,32px)!important;line-height:1.58!important;letter-spacing:normal!important;text-align:left;max-width:58ch;margin:0 auto .7em;orphans:3;widows:3;}
:is(#lesson,#preview-content,#story-content) .story-book-page h4{font:700 clamp(28px,2.8vw,42px)/1.2 Georgia,'Times New Roman',serif!important;color:#473626!important;text-align:center;margin:10px 0 24px;break-after:avoid;}
:is(#lesson,#preview-content,#story-content) .story-book-page h3{font:600 15px/1.4 'Source Sans 3',Arial,sans-serif!important;text-align:center;letter-spacing:.06em;color:#6e604f;margin:0 0 8px;}
:is(#lesson,#preview-content,#story-content) .story-book-page p.story-meta{font:400 15px/1.4 'Source Sans 3',Arial,sans-serif!important;text-align:center;color:#6e604f;}
.story-book-page strong{font-weight:700;color:inherit}.story-book-page::after{content:'';display:block;clear:both}
.story-book-illustration,.story-uploaded-inline{margin:18px auto 24px!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;max-width:700px;break-inside:avoid;}
.story-book-illustration[hidden],.story-uploaded-inline[hidden]{display:none!important}
.story-image-enlarge{display:block;position:relative;color:#493b2b;text-decoration:none;min-height:48px;border:0;background:transparent;}
.story-image-enlarge img,.story-uploaded-inline img{display:block;width:100%;height:auto;object-fit:contain;border-radius:0;mix-blend-mode:multiply;}
.story-image-cue{position:absolute;right:12px;bottom:10px;background:#fffaf0ed;padding:8px 12px;border-radius:6px;font:600 14px/1.4 'Source Sans 3',Arial,sans-serif;}
.story-image-enlarge:focus-visible{outline:3px solid #92511c;outline-offset:4px}
.story-image-dialog{box-sizing:border-box;width:min(96vw,1500px);max-width:96vw;max-height:94dvh;padding:14px;background:#fffaf0;border:1px solid #bba78a;border-radius:8px;}
.story-image-dialog::backdrop{background:#211a13cc}.story-image-dialog img{display:block;width:100%;height:auto;max-height:calc(90dvh - 80px);object-fit:contain}.story-image-dialog button{display:block;margin:0 0 10px auto;min-height:48px;padding:10px 18px;font:600 18px Arial,sans-serif;cursor:pointer}
#lesson .screen-fit .story-book-page .screen-page-track p{break-inside:avoid-column;}
#lesson .screen-fit .story-book-illustration img{max-height:min(280px,calc(var(--screen-height,600px) * .55));}
#lesson .screen-fit .story-book-illustration{float:none;width:100%;}
.story-page .story-reader{background:#fffaf0;border:1px solid #e1d1b9;border-radius:4px;box-shadow:0 8px 30px #4b341315;}
.story-page .story-reader #story-content{border-top:0;padding-top:8px;}
.story-page .story-reader h1{font-family:Georgia,'Times New Roman',serif;}
.story-book-viewport{width:100%;overflow:hidden}.story-book-track{width:100%;column-gap:40px;column-fill:auto;}
.story-book-track>p{break-inside:avoid-column}.story-book-track h4{break-after:avoid;}
.story-book-nav{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding-top:14px;border-top:1px solid #ddceb7;font:16px/1.4 'Source Sans 3',Arial,sans-serif;}
.story-book-nav[hidden]{display:none}.story-book-nav button{min-height:48px;padding:10px 18px;border:1px solid #b9a489;background:#fffaf0;border-radius:6px;font:600 18px/1.3 'Source Sans 3',Arial,sans-serif;color:#493b2b;cursor:pointer}.story-book-nav button:disabled{opacity:.45;cursor:default}.story-book-nav button:focus-visible{outline:3px solid #92511c;outline-offset:3px;}.story-book-nav span{text-align:center;}
.story-book-track .story-book-illustration img{max-height:min(270px,40vh);}
@media(min-width:1100px){#lesson .simple-tooltime:not(.focused-teaching) .story-book-illustration,#preview-content .story-book-illustration{float:right;width:46%;margin:8px 0 20px 28px!important;}}
@media(max-width:700px){:is(#lesson,#preview-content,#story-content) .story-book-page{padding:20px!important}:is(#lesson,#preview-content,#story-content) .story-book-page p{font-size:21px!important;line-height:1.6!important}.story-book-illustration{float:none!important;width:100%!important}.story-book-viewport{overflow:visible}.story-book-track{height:auto!important;column-width:auto!important;transform:none!important}.story-book-track .story-book-illustration img{max-height:none;}}
@media print{.story-image-cue,.story-book-nav{display:none!important}.story-book-viewport{overflow:visible!important}.story-book-track{height:auto!important;column-width:auto!important;transform:none!important}:is(#lesson,#preview-content,#story-content) .story-book-page{box-shadow:none!important;border:0!important;background:white!important}:is(#lesson,#preview-content,#story-content) .story-book-page p{font-size:14pt!important}.story-book-illustration img{max-height:300px!important;}.story-image-dialog{display:none!important}}
