
:root{--foldi-content:1240px;--foldi-gutter:24px;--foldi-line:#dcded0;--foldi-ink:#293c32;--foldi-muted:#58695d;--foldi-green:#355c48;--foldi-paper:#faf7ee;--foldi-soft:#edf0e4}
@media(max-width:600px){:root{--foldi-gutter:16px}}

/* Whole-page alignment: text measure is independent from section width. */
body .page.wrap,body #homeView,body #libraryView,body #workbookView{box-sizing:border-box;max-width:calc(var(--foldi-content) + var(--foldi-gutter)*2);width:100%;margin-inline:auto;padding-inline:var(--foldi-gutter)}
.foldi-browse-header.site-header{padding-inline:max(var(--foldi-gutter),calc((100% - var(--foldi-content))/2))!important}
body .site-footer.wrap{box-sizing:border-box;max-width:var(--foldi-content);width:calc(100% - var(--foldi-gutter)*2);margin:0 auto;padding:24px 0 32px;border-top:1px solid var(--foldi-line)}
.site-footer>div{padding-inline:0}.site-footer .quiet{font-size:14px;min-height:44px}.site-footer .quiet-note{font-size:13px}
.launch-deeper{border-top:0;padding:0 0 40px}.launch-deeper-grid{gap:24px}.launch-deeper article{grid-template-columns:minmax(80px,28%) minmax(0,1fr);gap:20px;padding:24px;background:#f0eee2;border:0;border-radius:16px;box-shadow:none}.launch-deeper .launch-capability{font-size:14px}
.launch-parent{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:32px;max-width:none;padding:12px 0 40px}.launch-parent h2{font-size:26px;line-height:1.2;margin:0}.launch-parent p{max-width:64ch;font-size:15px;line-height:1.6;margin:0 0 10px}.launch-parent p:last-child{margin:0}
#filterPanel{background:var(--foldi-soft);border:0;box-shadow:none;padding:20px;border-radius:14px}.filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#filterAdvanced{margin:12px 0}#filterAdvanced>summary{font-size:14px;font-weight:800;min-height:44px}#filterAdvanced .filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 0}.filter-extras{border:0;padding-top:8px}.filter-extras #filterDone{margin-left:auto}#stageGuide{font-size:14px;line-height:1.5}.filter-fields label{font-size:14px}.filter-fields select{min-height:44px}
@media(max-width:700px){.launch-deeper-grid{grid-template-columns:1fr}.launch-deeper article{padding:18px;gap:18px;grid-template-columns:90px minmax(0,1fr)}.launch-deeper h3{font-size:24px}.launch-deeper .launch-capability{font-size:13px}.launch-parent{grid-template-columns:1fr;gap:12px;padding-bottom:32px}.launch-parent h2{font-size:24px}.launch-section-heading h2{font-size:28px}.filter-fields,#filterAdvanced .filter-fields{grid-template-columns:1fr}#filterPanel{padding:16px}.filter-extras #filterDone{width:100%;margin-left:0}}
@media(max-width:360px){.launch-deeper article{grid-template-columns:72px minmax(0,1fr);padding:14px;gap:14px}.launch-deeper h3{font-size:21px}.launch-deeper p{font-size:14px}}


/* Reserve the first screen while the activity modules load; the footer must not flash above the collection. */
.launch-loading{box-sizing:border-box;min-height:calc(100svh - 92px);padding-bottom:48px}.launch-loading>p{max-width:42rem;color:var(--foldi-muted)}
@media(max-width:850px){.launch-loading{min-height:calc(100svh - 76px)}}

/* Keep the active navigation label readable when the pointer is over it. */
.foldi-browse-header #play-site-nav [aria-current=page]:hover{background:var(--foldi-hover,#294c3a);color:#fffdf5}
