/* Educational library and a single-page PDF canvas: only the current page is rendered. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.learning-feature{display:grid;grid-template-columns:minmax(0,1fr) 9rem;gap:2rem;align-items:center;background:#e7ede1;border:1px solid #d6e0cf;border-radius:1.25rem;padding:clamp(1.25rem,2.5vw,2rem);margin-block:1.5rem}
.learning-feature h2{font-size:var(--text-xl);line-height:1.6;margin-block:.5rem}
.learning-feature p{max-width:44rem;color:#52675b;line-height:1.95;font-size:var(--text-sm)}
.learning-feature img{width:8rem;height:auto;justify-self:center;border:1px solid #d9dfd1;border-radius:.375rem;box-shadow:0 12px 25px #173f3d16;transform:none}
.learning-feature-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-block-start:1.25rem}
.learning-catalog-tools{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-block:1rem 1.5rem;color:#53665b;font-size:var(--text-sm)}
.learning-toggle{display:flex;align-items:center;gap:.625rem;min-height:44px;cursor:pointer}
.learning-toggle input{width:1.1rem;height:1.1rem;accent-color:var(--teal)}
.course-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,17rem),1fr));gap:1rem}
.course-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:1.5rem;background:#fff;border:1px solid var(--line);border-radius:1rem}
.course-card-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;margin-bottom:1.25rem}
.course-symbol{display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:.75rem;background:#f0f3ea;color:var(--teal);font-size:var(--text-xl)}
.file-available{color:#27634e;background:#eaf4eb}
.course-card h3{font-size:var(--text-lg);line-height:1.8;margin-top:.25rem}
.course-card p{color:#627165;font-size:var(--text-sm);margin-block:.5rem 1rem}
.course-card-meta{display:flex;flex-wrap:wrap;gap:.5rem 1rem;color:#68776c;font-size:var(--text-xs);margin-top:auto;padding-top:.75rem}
.course-card>.btn{margin-block-start:1.25rem;width:100%}
.learning-breadcrumb{display:flex;align-items:center;gap:.625rem;flex-wrap:wrap;font-size:var(--text-sm);color:#6a776b;margin-bottom:1.25rem}
.learning-breadcrumb a{color:var(--teal);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.learning-breadcrumb a:hover{text-decoration:underline}
.course-hero{display:flex;justify-content:space-between;align-items:center;gap:2rem;background:#e7ede1;border:1px solid #d9e1d2;border-radius:1.25rem;padding:clamp(1.5rem,3vw,2.75rem);margin-bottom:2rem}
.course-hero h1{font-size:var(--text-2xl);line-height:1.6;max-width:50rem}
.course-hero p{max-width:44rem;margin-block:.875rem 1.25rem;font-size:var(--text-base);color:#55695a}
.course-overview{display:flex;flex-wrap:wrap;gap:.625rem 1.5rem;font-size:var(--text-sm);color:#44614f}
.course-emblem{flex:none;display:grid;place-items:center;border:1px solid #b5c4ad;border-radius:6rem 6rem 1rem 1rem;width:8rem;height:10rem;font-size:var(--text-2xl);color:#3f6252;background:#f5f7ef}
.course-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(15rem,.42fr);gap:1.5rem;align-items:start}
.course-resources,.course-practice{min-width:0}
.resource-card{display:grid;grid-template-columns:7rem minmax(0,1fr);align-items:start;gap:1.5rem;border:1px solid var(--line);border-radius:1rem;padding:1.5rem;background:#fff}
.resource-card>img{width:7rem;height:auto;flex:none;border:1px solid #e3e7de;border-radius:.375rem}
.resource-copy{min-width:0;flex:1}
.resource-type{font-size:var(--text-xs);color:#64806b}
.resource-copy h3{font-size:var(--text-lg);line-height:1.8;margin-block:.375rem}
.resource-copy p{font-size:var(--text-sm);color:#5d6f61}
.resource-meta{display:flex;flex-wrap:wrap;gap:.25rem .875rem;font-size:var(--text-xs);color:#68766b;margin-block:.875rem}
.reading-progress{margin-block:1rem 1.25rem}
.reading-progress progress{display:block;height:.5rem}
.reading-progress small{font-size:var(--text-xs);color:#627366}
.course-practice{background:#fff;border:1px solid var(--line);border-radius:1rem;padding:1.5rem;position:sticky;top:6rem}
.course-practice h2{font-size:var(--text-lg);margin-block:.75rem}
.course-practice p{font-size:var(--text-sm);color:#5e7064}
.course-practice>.btn{display:flex;width:100%;margin-block-start:1rem}
.course-practice>.text-button{display:flex;justify-content:center;align-items:center;margin-block:1rem;text-decoration:none}
.course-practice .course-footnote{font-size:var(--text-xs);border-block-start:1px solid var(--line);padding-block-start:1rem}
.learning-empty{grid-column:1/-1;background:#fff;border:1px dashed #c8d3c2;border-radius:1rem;text-align:center;padding:2.5rem 1.25rem}
.learning-empty>span{font-size:var(--text-2xl);color:#789273}
.learning-empty h3{font-size:var(--text-lg);margin-bottom:.75rem}
.learning-empty p{font-size:var(--text-sm);color:#667568;max-width:42rem;margin-inline:auto}
.learning-empty .btn{margin-top:1.5rem}
.book-page-header{margin-bottom:1.5rem}
.book-heading{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;flex-wrap:wrap}
.book-heading>div{min-width:0;flex:1 1 22rem}
.book-heading h1{font-size:var(--text-xl);line-height:1.7}
.book-heading p{font-size:var(--text-sm);color:#617165;margin-top:.375rem}
.book-layout{display:grid;grid-template-columns:15rem minmax(0,1fr);gap:1.25rem;align-items:start}
.book-sidebar{min-width:0;display:grid;gap:.75rem;position:sticky;top:6rem}
.book-sidebar details{border:1px solid #dce3d6;border-radius:.875rem;background:#fff;overflow:hidden;min-width:0}
.book-sidebar summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:var(--text-sm);font-weight:600;padding:.875rem 1rem;min-height:48px;list-style:none}
.book-sidebar summary::-webkit-details-marker{display:none}
.book-sidebar summary::after{content:'+';font-weight:400;margin-inline-start:auto}
.book-sidebar details[open]>summary::after{content:'−'}
.book-sidebar summary>span{font-size:var(--text-xs);color:#69816c}
.book-outline-body{padding:.25rem .625rem .875rem}
.book-toc-search input{width:100%;min-width:0;border:1px solid var(--line);border-radius:.5rem;padding:.625rem .75rem;background:#fafbf7;font-size:max(1rem,var(--text-sm));margin-bottom:.625rem}
#book-toc{max-height:52dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.outline-item{display:flex;flex-direction:column;align-items:stretch;gap:.125rem;width:100%;border:0;border-radius:.5rem;text-align:start;background:transparent;color:#344e41;padding:.75rem;font-size:var(--text-sm);line-height:1.8;cursor:pointer;min-height:48px}
.outline-item small{font-size:var(--text-xs);color:#74816e}
.outline-item:hover{background:#f1f5eb}
.outline-item[aria-current=location]{background:#e8efe2;border-inline-start:3px solid var(--teal)}
#book-bookmarks-list{max-height:16rem;overflow:auto;padding:0 .625rem .625rem}
.book-empty-bookmarks,.toc-no-results{padding:.75rem;font-size:var(--text-xs);color:#687c68}
.book-sidebar-note>p,.book-sidebar-note>strong{display:block;font-size:var(--text-xs);color:#647660;margin:1rem}
.book-sidebar-note>.btn{display:flex;margin:1rem;font-size:var(--text-xs)}
.book-content{min-width:0;border:1px solid #dbe1d5;border-radius:1rem;background:#fff}
.book-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.625rem;padding:.75rem;background:#fff;border-block-end:1px solid var(--line);border-radius:1rem 1rem 0 0;position:sticky;top:var(--app-header-height,75px);z-index:7}
.book-pager{display:flex;align-items:center;gap:.25rem}
#book-page-form{display:flex;flex-direction:column;align-items:center;gap:.125rem}
#book-page-form>label{font-size:var(--text-xs);color:#66765f;line-height:1.3}
#book-page-form>div{display:flex;align-items:center;gap:.375rem;font-size:var(--text-xs)}
#book-page-form input{width:3.75rem;border:1px solid #d5dfce;border-radius:.375rem;background:#fafbf7;text-align:center;padding:.375rem .25rem;min-height:36px;color:var(--ink);font-size:max(1rem,var(--text-sm))}
#book-page-form .text-button{padding:.25rem;min-height:36px;font-size:var(--text-xs)}
.book-view-tools{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap}
.book-view-tools select{max-width:10.5rem;min-width:0;border:1px solid #dce3d6;background:#fafbf7;color:#3e5746;border-radius:.5rem;padding:.5rem;min-height:44px;font-size:max(1rem,var(--text-sm))}
.book-view-tools .icon-button{font-size:var(--text-lg);flex:none;display:grid;place-items:center;text-decoration:none}
#book-save-page[aria-pressed=true],#book-focus[aria-pressed=true]{background:#dfeadd;color:var(--teal)}
.book-status-row{padding:.625rem 1rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.25rem 1rem;font-size:var(--text-xs);color:#60745f;line-height:1.8}
.book-progress{height:4px}
.book-progress progress{display:block;height:4px;border-radius:0}
.book-viewport{background:#dfe4dc;padding:1rem;overflow:auto;overscroll-behavior:contain;direction:ltr;max-height:80dvh;min-height:20rem;scrollbar-width:thin;touch-action:pan-x pan-y pinch-zoom}
.book-stage{position:relative;background:#fff;margin-inline:auto;min-height:12rem;box-shadow:0 2px 16px #173f3d12;flex:none}
.book-stage canvas{display:block;max-width:none}
.book-loading{text-align:center;padding:4rem 1rem;font-size:var(--text-sm);direction:rtl}
.book-loading .loader{display:block;margin:0 auto 1rem}
.book-error{margin:.75rem;padding:1.25rem;background:#fff2e7;border:1px solid #ebd7c4;border-radius:.75rem;font-size:var(--text-sm)}
.book-error .btn{margin-top:.75rem}
.book-accessible{padding:1rem;border-block-end:1px solid var(--line);font-size:var(--text-sm)}
.book-accessible summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#49664e}
#book-page-text{white-space:pre-wrap;line-height:2.2;padding-block-start:1rem;font-size:var(--text-base);overflow-wrap:anywhere}
.book-reading-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.75rem;padding:1rem;font-size:var(--text-xs);color:#6c7b67}
.book-reading-footer a{color:var(--teal);min-height:44px;display:inline-flex;align-items:center}
.book-layout.focus-reading{grid-template-columns:minmax(0,1fr)}
.book-layout.focus-reading .book-sidebar{display:none}
@media(min-width:2000px){.course-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1279px){.book-layout{grid-template-columns:minmax(0,1fr)}.book-sidebar{position:static;grid-template-columns:repeat(3,minmax(0,1fr));gap:.625rem}.book-sidebar details[open]{grid-column:1/-1}.book-sidebar summary{padding:.75rem;font-size:var(--text-xs)}#book-toc{max-height:45dvh;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.125rem}.book-toolbar{top:var(--app-header-height,75px)}.course-layout{grid-template-columns:minmax(0,1fr)}.course-practice{position:static}.course-practice>.btn{max-width:30rem}}
@media(max-width:600px){.learning-feature{grid-template-columns:minmax(0,1fr);gap:1.25rem}.learning-feature>img{display:none}.learning-feature-actions>.btn{flex:1 1 100%}.course-hero{padding:1.5rem 1.125rem}.course-emblem{display:none}.resource-card{grid-template-columns:5rem minmax(0,1fr);gap:1rem;padding:1.25rem}.resource-card>img{width:5rem}.resource-copy>.btn{grid-column:1/-1}.resource-copy>.btn{width:100%}.course-grid{gap:.75rem}.course-card{padding:1.25rem}.book-heading>.btn{width:100%}.book-sidebar{gap:.375rem}.book-sidebar summary{padding:.625rem;line-height:1.7;min-height:60px}.book-sidebar summary>span{display:none}.book-toolbar{gap:.5rem;padding:.5rem}.book-pager{flex:1 1 auto;justify-content:center}.book-view-tools{flex:1 1 auto;justify-content:center}.book-view-tools select{flex:1;max-width:none;min-width:7rem}.book-toolbar .icon-button{min-width:44px}.book-status-row{padding:.625rem .75rem}.book-viewport{padding:1rem;min-height:15rem;max-height:75dvh}#book-toc{grid-template-columns:minmax(0,1fr)}.book-reading-footer{padding:.875rem}.book-reading-footer a{width:100%}.learning-catalog .section-heading{align-items:stretch}.learning-catalog .search-wrap{width:100%}.course-practice{padding:1.25rem}}
@media(orientation:landscape) and (max-height:500px){.book-toolbar{position:static}.book-viewport{max-height:none}.book-sidebar{position:static}}

/* Reader uses the same shell heights and touch targets as the study workspace. */
@media(max-width:899px){.book-toolbar{position:static}.book-sidebar{position:static}.book-viewport{max-height:70dvh}.book-heading>div{flex-basis:100%}.course-practice{position:static}}
@media(max-width:599px){.resource-card{grid-template-columns:minmax(0,1fr)}.resource-card>img{width:5rem;justify-self:start}.resource-copy{width:100%}.book-sidebar{grid-template-columns:minmax(0,1fr)}.book-sidebar details[open]{grid-column:auto}.book-sidebar summary{min-height:48px;padding:.875rem 1rem;font-size:var(--text-sm)}.book-sidebar summary>span{display:inline}.book-pager{width:100%}.book-view-tools{width:100%;justify-content:space-between}.book-view-tools select{max-width:12rem;flex:1}.book-toolbar{padding:.75rem}.book-viewport{padding:.625rem}.course-hero{padding:1.5rem}.course-card h3{font-size:var(--text-base)}}
