@font-face{font-family:Schibsted;src:url("./fonts/SchibstedGrotesk.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:Newsreader;src:url("./fonts/Newsreader.woff2") format("woff2");font-style:italic;font-weight:200 800;font-display:swap}
@font-face{font-family:JetBrains;src:url("./fonts/JetBrainsMono.woff2") format("woff2");font-style:normal;font-weight:100 800;font-display:swap}
:root{--paper:#f5f1e5;--cream:#fffaf0;--ink:#183b30;--muted:#687360;--line:#d7dccb;--orange:#ff8b57;--sage:#e4ebd7;--rust:#a45f39;color-scheme:light;font-family:Schibsted,Arial,sans-serif;font-size:15px;line-height:1.6;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,#pdf-scroll:focus-visible{outline:3px solid #af6c3f;outline-offset:4px}[hidden]{display:none!important}svg{display:block;flex:none}h1,h2,h3,p{margin:0}button{color:inherit}img{display:block;max-width:100%}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.skip-link{position:fixed;top:12px;left:18px;z-index:1000;transform:translateY(-150%);padding:11px 18px;border-radius:8px;background:var(--ink);color:var(--cream);text-decoration:none}.skip-link:focus{transform:translateY(0)}
/* Six quiet shelves: two topics across, four books on each shelf. */
.library-shell{width:min(1512px,100%);margin:auto;padding:0 clamp(22px,3.35vw,50px) 32px}
.library-header{min-height:67px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}
.library-brand{display:block;font-size:30px;font-weight:650;line-height:1.2;letter-spacing:-1.7px;text-decoration:none}
.classroom-link{display:inline-flex;align-items:center;gap:9px;min-height:44px;text-decoration:none;font-size:12px;color:#53694b}.classroom-link svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.classroom-link:hover{color:#a15d36}
.library-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 0 20px}.library-intro h1{font-size:34px;font-weight:450;line-height:1.15;letter-spacing:-1.6px}.library-intro h1>span{color:#a5623d}.library-intro>p{font-size:11px;line-height:1.5;color:#7a856c;white-space:nowrap}
#library-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;outline:none}
.library-section{--shelf-tint:#edf0e1;--shelf-line:#c9d5b8;--shelf-accent:#5c764a;min-width:0;padding:19px 19px 16px;border:1px solid color-mix(in srgb,var(--shelf-line) 65%,transparent);border-radius:13px;background:var(--shelf-tint)}
.library-section[data-collection="guides"]{--shelf-tint:#f4eadd;--shelf-line:#dfc8ae;--shelf-accent:#9a6849}.library-section[data-collection="checks"]{--shelf-tint:#e5eee7;--shelf-line:#bcd1c4;--shelf-accent:#52766b}.library-section[data-collection="practice"]{--shelf-tint:#eee8f0;--shelf-line:#d1c3dd;--shelf-accent:#7e658c}.library-section[data-collection="demos"]{--shelf-tint:#f1eddd;--shelf-line:#d8cea8;--shelf-accent:#8f804f}.library-section[data-collection="projects"]{--shelf-tint:#f1e6df;--shelf-line:#d8bfb3;--shelf-accent:#986e59}
.section-heading{display:flex;align-items:center;gap:10px;margin:0 0 17px;padding:0 2px}.section-heading h3{font-size:20px;font-weight:500;line-height:1.3;letter-spacing:-.55px;color:var(--shelf-accent)}.collection-number{display:inline-flex;align-items:center;flex:none;padding-right:10px;border-right:1px solid var(--shelf-line);font:10px/1.3 JetBrains,monospace;letter-spacing:.3px;color:var(--shelf-accent);opacity:.8}
.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:13px}
.book-card{display:flex;flex-direction:column;min-width:0;margin:0;padding:0;background:transparent;border:0;align-self:start}
.book-cover{position:relative;display:flex;align-items:flex-end;justify-content:center;width:100%;height:auto;max-height:232px;aspect-ratio:210/315;flex:none;padding:0 6px 11px;border:0;border-bottom:1px solid var(--shelf-line);border-radius:3px 3px 0 0;background:transparent;box-shadow:0 3px 2px -2px #384f2a11;cursor:pointer}
.book-cover img{display:block;width:auto;max-width:100%;height:auto;max-height:216px;aspect-ratio:210/297;object-fit:contain;border:1px solid #23472f22;border-radius:1px 4px 4px 1px;background:#fffaf0;box-shadow:1px 0 0 #ffffff6b inset,3px 4px 7px #2742341d,0 1px 2px #2742341a;transition:transform .23s ease,box-shadow .23s ease}
.book-cover:hover img,.book-cover:focus-visible img{transform:translateY(-3px);box-shadow:2px 7px 10px #27423424,0 1px 2px #2742341a}.book-cover:focus-visible{outline-offset:3px;border-radius:4px}
.book-number{position:absolute;z-index:1;top:2px;left:0;display:grid;place-items:center;min-width:23px;height:22px;padding:3px 5px;border:1px solid var(--shelf-line);border-radius:5px;background:#fffaf0f0;box-shadow:0 2px 5px #23452a08;color:var(--shelf-accent);font:9px/1 JetBrains,monospace;letter-spacing:.1px;pointer-events:none}
.book-copy{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:5px;min-width:0;padding:10px 1px 0}.book-copy h4{min-width:0;min-height:0;margin:0;font-size:12.5px;font-weight:450;line-height:1.4;letter-spacing:-.2px;text-align:left;text-wrap:pretty;overflow-wrap:break-word;color:#3d5a3e}
.book-download{display:grid;place-items:center;width:30px;height:30px;margin:0;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--shelf-accent);text-decoration:none;transition:background .18s ease,border-color .18s ease}.book-download svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.book-download:hover{border-color:var(--shelf-line);background:#fffaf0a6}
.eyebrow{font-family:JetBrains,monospace;font-size:9px;font-weight:400;line-height:1.6;letter-spacing:1.4px;color:#777d60}
@media(min-width:1600px){.section-heading h3{font-size:21px}.library-section{padding:21px 21px 18px}.book-grid{gap:15px}.book-copy h4{font-size:13px}}
@media(max-width:1179px){.library-shell{padding-inline:28px}.library-section{padding:17px 15px 15px}.book-grid{gap:9px}.book-copy{grid-template-columns:minmax(0,1fr) 26px;gap:3px}.book-copy h4{font-size:12px}.book-download{width:26px;height:28px}.book-download svg{width:15px;height:15px}.section-heading h3{font-size:19px}}
@media(max-width:1100px){#library-content{grid-template-columns:minmax(0,1fr);gap:21px}.library-section{padding:20px 20px 17px}.section-heading{margin-bottom:18px}.section-heading h3{font-size:21px}.book-grid{gap:18px}.book-cover{max-height:228px}.book-cover img{max-height:212px}.book-copy{grid-template-columns:minmax(0,1fr) 30px;gap:6px;padding-top:11px}.book-copy h4{font-size:13px}.book-download{width:30px;height:30px}.book-download svg{width:16px;height:16px}}
@media(max-width:760px){.library-shell{padding-inline:23px}.library-intro h1{font-size:31px}.library-intro>p{font-size:10px}.library-section{padding:18px 17px 16px}.book-grid{gap:12px}.book-cover{padding-inline:5px}.book-copy{grid-template-columns:minmax(0,1fr) 27px;gap:3px}.book-copy h4{font-size:12px}.book-download{width:27px;height:29px}.book-number{min-width:22px;height:21px;font-size:8px}}
@media(max-width:599px){.library-shell{padding:0 21px 25px}.library-header{min-height:65px}.library-brand{font-size:28px}.classroom-link{gap:7px;font-size:11px}.classroom-link svg{width:17px;height:17px}.library-intro{align-items:flex-start;flex-direction:column;gap:7px;padding:22px 0 20px}.library-intro h1{font-size:34px}.library-intro>p{font-size:11px}#library-content{gap:19px}.library-section{padding:20px 20px 18px;border-radius:13px}.section-heading{margin-bottom:17px;padding:0;gap:10px}.section-heading h3{font-size:21px}.collection-number{font-size:10px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}.book-cover{max-height:223px;padding:0 7px 10px}.book-cover img{max-height:208px}.book-number{top:1px;min-width:24px;height:23px;font-size:9px}.book-copy{grid-template-columns:minmax(0,1fr) 30px;gap:5px;padding-top:11px}.book-copy h4{font-size:13px;line-height:1.4;letter-spacing:-.25px}.book-download{width:30px;height:32px}.book-download svg{width:17px;height:17px}}
@media(max-width:370px){.library-shell{padding-inline:18px}.library-intro h1{font-size:32px}.classroom-link{font-size:10px}.library-section{padding:18px 16px 16px}.book-grid{gap:20px 15px}.book-cover{padding-inline:5px}.book-copy{grid-template-columns:minmax(0,1fr) 27px;gap:3px}.book-copy h4{font-size:12px}.book-download{width:27px;height:30px}.section-heading h3{font-size:20px}}
/* A reading room, with the book's real pages and native dialog focus behavior. */
.book-reader{position:fixed;inset:16px;width:min(1500px,calc(100vw - 32px));max-width:none;height:calc(100dvh - 32px);max-height:none;margin:auto;padding:0;border:1px solid #d4dbc6;border-radius:17px;background:var(--cream);color:var(--ink);overflow:hidden;box-shadow:0 28px 100px #061a2766}.book-reader[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr)}.book-reader::backdrop{background:#0d261ecc;backdrop-filter:blur(5px)}
.reader-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 25px 17px;border-bottom:1px solid #d7dfc9;background:#fffaf0}.reader-heading{min-width:0}.reader-heading>.eyebrow{font-size:8px;letter-spacing:1.25px;margin-bottom:5px;color:#8a936f}.reader-heading h2{font-size:22px;line-height:1.3;font-weight:500;letter-spacing:-.7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reader-header-actions{display:flex;align-items:center;gap:15px;flex:none}.reader-download{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:9px 14px;border:1px solid #cdd8bd;border-radius:999px;background:#edf1e2;color:#526b43;text-decoration:none;font-size:11px;white-space:nowrap}.reader-download svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.reader-download:hover{background:#e3ebd5}.reader-icon-button{display:grid;place-items:center;width:40px;min-height:40px;flex:none;border:1px solid transparent;border-radius:8px;background:transparent;color:#5e7650;transition:background .18s ease,border-color .18s ease}.reader-icon-button svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.reader-icon-button:hover:not(:disabled){border-color:#d6dec9;background:#edf1e2}.reader-close{border-color:#d8dfcc;border-radius:50%;width:40px;height:40px}.reader-close svg{width:18px;height:18px}
.reader-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:60px;padding:8px 24px;border-bottom:1px solid #cfd8c1;background:#f7f5ea}.reader-pages-control,.reader-zoom-control{display:flex;align-items:center;gap:7px}.reader-pages-control{color:#899577;font-size:11px}#reader-page{width:42px;height:33px;border:1px solid #d1dac2;border-radius:5px;background:#fffdf6;text-align:center;color:#48613b;font-family:JetBrains,monospace;font-size:11px;appearance:textfield;-moz-appearance:textfield}#reader-page::-webkit-inner-spin-button,#reader-page::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#reader-page-total{min-width:21px;font-family:JetBrains,monospace;font-size:10px}.reader-page-separator{opacity:.6}.reader-tip{font-size:10px;letter-spacing:.15px;color:#8a9679}.reader-zoom-control{gap:3px}#reader-zoom-reset{min-width:54px;min-height:40px;padding:7px 8px;border:0;border-radius:6px;background:transparent;color:#6c7e5b;font-family:JetBrains,monospace;font-size:10px}#reader-zoom-reset:hover{background:#e9eedc}
.reader-body{position:relative;min-height:0;overflow:hidden;background:#e5e7dd}#pdf-scroll{width:100%;height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#adba9d #e5e7dd;scroll-behavior:smooth}#pdf-pages{display:flex;flex-direction:column;align-items:center;gap:25px;width:max-content;min-width:100%;padding:28px 28px 42px}.pdf-page{position:relative;flex:none;background:#fff;box-shadow:0 4px 17px #29462e1c,0 1px 3px #29462e1a;scroll-margin-top:25px;max-width:none;overflow:hidden}.pdf-page canvas{display:block;max-width:none;height:auto}.pdf-page-label{position:absolute;bottom:8px;right:8px;font:9px/1.5 JetBrains,monospace;color:#92a182;background:#fffaf0e6;padding:3px 7px;border-radius:4px}
#reader-status{position:absolute;left:50%;top:17px;transform:translateX(-50%);display:flex;align-items:center;gap:9px;padding:10px 17px;border:1px solid #d6dfc7;border-radius:999px;background:#fffaf0ed;color:#658053;font-size:11px;line-height:1.5;box-shadow:0 3px 15px #29462e0c;white-space:nowrap;pointer-events:none}#reader-status::before{content:"";display:block;width:12px;height:12px;border:1.5px solid #cbd8ba;border-top-color:#708e58;border-radius:50%;animation:reader-spin .9s linear infinite}
#reader-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:25px;background:#e5e7ddf0;overflow:auto}.reader-error-card{width:min(470px,100%);padding:34px 30px;border:1px solid #d3ddc3;border-radius:15px;background:#fffaf0;text-align:center;box-shadow:0 8px 35px #1d3a2810}.reader-error-mark{display:grid;place-items:center;width:47px;height:47px;margin:0 auto 20px;border-radius:50%;background:#e9eeda;color:#7a965e;font-size:28px;line-height:1}.reader-error-card h3{font:400 italic 31px/1.15 Newsreader,Georgia,serif;letter-spacing:-.6px}.reader-error-card p{font-size:12px;line-height:1.8;color:#7b886b;margin-top:13px}.reader-error-card>div{display:flex;align-items:center;justify-content:center;gap:21px;margin-top:23px}#reader-retry{min-height:43px;padding:10px 21px;border:1px solid #234834;border-radius:999px;background:#234834;color:#fff0d4;font-size:12px}#reader-retry:hover{background:#356040}#reader-open-pdf{display:inline-flex;align-items:center;gap:10px;min-height:43px;color:#72855e;font-size:11px;text-decoration:underline;text-decoration-color:#c5d3b7;text-underline-offset:4px}
@keyframes reader-spin{to{transform:rotate(360deg)}}

@media(max-width:650px){.book-reader{inset:7px;width:calc(100vw - 14px);height:calc(100dvh - 14px);border-radius:13px}.reader-header{padding:15px 14px 13px;gap:12px}.reader-heading h2{font-size:17px;line-height:1.35;letter-spacing:-.4px}.reader-heading>.eyebrow{font-size:7px;letter-spacing:.7px;margin-bottom:4px}.reader-header-actions{gap:8px}.reader-download{width:37px;min-height:37px;padding:8px}.reader-download>span{display:none}.reader-download svg{width:16px;height:16px}.reader-close{width:36px;height:36px;min-height:36px}.reader-close svg{width:17px;height:17px}.reader-toolbar{padding:7px 12px;min-height:56px;gap:6px}.reader-pages-control{gap:5px}.reader-icon-button{width:34px;min-height:39px}.reader-icon-button svg{width:18px;height:18px}#reader-page{width:35px;height:32px;font-size:10px}#reader-page-total{min-width:17px;font-size:9px}.reader-zoom-control{gap:1px}#reader-zoom-reset{min-width:47px;font-size:9px;padding-inline:5px}#pdf-pages{padding:17px 13px 25px;gap:18px}.pdf-page{scroll-margin-top:17px}#reader-status{font-size:10px;padding:9px 14px;top:12px}.reader-error-card{padding:27px 23px}.reader-error-card h3{font-size:29px}.reader-error-card p{font-size:11px}.reader-error-card>div{gap:17px}}
@media(max-width:370px){.reader-header{padding-inline:12px}.reader-heading h2{font-size:15px}.reader-header-actions{gap:5px}.reader-download{width:34px;min-height:34px}.reader-close{width:33px;height:34px;min-height:34px}.reader-toolbar{padding-inline:8px}.reader-pages-control{gap:3px}.reader-icon-button{width:30px}#reader-page{width:32px}#reader-zoom-reset{min-width:42px;font-size:8px}.reader-error-card h3{font-size:26px}}
html.reader-open{overflow:hidden}#pdf-scroll{scroll-behavior:auto}
.pdf-placeholder{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:100%;color:#78816d;font:12px/1.7 JetBrains,monospace;background:#faf8f2}.pdf-placeholder button{padding:8px 13px;border:1px solid #ccd5bd;border-radius:6px;background:#edf1e2}
#reader-status{max-width:calc(100% - 28px);white-space:normal;text-align:center}#reader-status:not(.is-busy)::before{display:none}
.library-load-error{grid-column:1/-1;padding:55px 20px;text-align:center}.library-load-error p{margin-top:12px}.library-load-error button{margin-top:20px;padding:11px 20px;border:0;border-radius:30px;background:var(--ink);color:var(--cream)}
/* Stronger collection signposts and a quiet cue to the shelves below. */
.section-heading{gap:12px}.section-heading h3{font-size:24px;font-weight:600;line-height:1.25;letter-spacing:-.65px}
.collection-number{padding-right:12px;font-size:14px;font-weight:500;line-height:1.3;letter-spacing:.15px;opacity:.95}
.library-shell{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
.library-scroll-cue{position:fixed;left:50%;bottom:calc(15px + env(safe-area-inset-bottom,0px));z-index:45;display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:44px;max-width:calc(100vw - 36px);padding:11px 18px;transform:translateX(-50%);border:1px solid #c5d8b72e;border-radius:999px;background:#183b30f2;color:#fff0d8;font-family:Schibsted,Arial,sans-serif;font-size:12px;font-weight:450;line-height:1.45;letter-spacing:.05px;white-space:nowrap;box-shadow:0 5px 22px #17372926,0 1px 0 #f5edcf0e inset;backdrop-filter:blur(8px);transition:background .18s ease,box-shadow .18s ease;cursor:pointer}
.library-scroll-cue svg{display:block;flex:none;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;color:#e2c8a2}
.library-scroll-cue:hover{background:#28503df5;box-shadow:0 7px 24px #1737292b}
.library-scroll-cue[hidden],html.reader-open .library-scroll-cue{display:none!important}
@media(max-width:599px){.section-heading h3{font-size:22px;letter-spacing:-.55px}.collection-number{font-size:14px}.library-scroll-cue{font-size:11px;padding-inline:16px;gap:10px}.library-scroll-cue svg{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}#pdf-scroll{scroll-behavior:auto}.book-cover:hover img,.book-cover:focus-visible img{transform:none}}
/* The classroom supplies the surrounding dialog, navigation, and account controls. */
html.library-embedded{overscroll-behavior-y:contain;background:var(--cream)}
.library-embedded .library-header{display:none}
.library-embedded .library-shell{width:100%;padding-inline:clamp(16px,3vw,38px)}
.library-embedded .library-intro{padding-top:24px}
.library-embedded .book-reader{inset:0;width:100%;height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none}
@media(max-width:599px){.library-embedded .library-intro{gap:6px;padding-block:19px}.library-embedded .library-intro h1{font-size:30px}.library-embedded .library-section{padding:18px 15px 16px}.library-embedded .book-grid{gap:20px 14px}}

/* All collections share the original shelves. Eight books per desktop row. */
.library-section[data-palette="1"]{--shelf-tint:#f4eadd;--shelf-line:#dfc8ae;--shelf-accent:#966345}
.library-section[data-palette="2"]{--shelf-tint:#eee8f0;--shelf-line:#d1c3dd;--shelf-accent:#7e658c}
.library-section[data-palette="3"]{--shelf-tint:#e5eee7;--shelf-line:#bcd1c4;--shelf-accent:#52766b}
@media(min-width:960px) and (max-width:1100px){
 #library-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .library-section{padding:18px 14px 16px}
 .book-grid{gap:10px}
 .book-copy{grid-template-columns:minmax(0,1fr);gap:2px}
 .book-copy h4{font-size:12px}
 .book-download{width:26px;height:28px;justify-self:end}
 .section-heading h3{font-size:22px}
}
