.materials-hero{max-width:880px;padding:64px 0 54px}.materials-hero h1{max-width:820px}.materials-hero .lead{max-width:760px}.materials-library{padding-top:44px}.materials-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;margin-top:32px}.material-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white}.material-card img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;display:block;background:#f5f8fc}.material-copy{padding:26px}.material-copy h3{margin:12px 0}.material-copy p{color:var(--muted);font-size:15px}.materials-empty{max-width:800px;padding:34px;margin-top:28px;border:1px solid var(--line);border-radius:10px;background:#f5f8fc}.materials-empty h3{margin:0 0 12px}.materials-empty p{color:var(--muted);margin:0}.materials-contact h2{max-width:780px;font-size:30px}.materials-contact p{max-width:760px;color:var(--muted)}.material-detail{padding:44px 0 65px}.material-detail h1{max-width:850px}.material-viewer{margin-top:28px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#f5f8fc}.material-viewer iframe{display:block;width:100%;height:75vh;min-height:420px;border:0;background:white}.material-viewer:fullscreen{background:white;display:flex;flex-direction:column}.material-viewer:fullscreen iframe{height:100%;flex:1}.viewer-controls{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:14px 20px}.viewer-controls button{padding:10px 14px;border:1px solid #b8cde7;border-radius:6px;background:white;color:var(--accent);font-size:14px}.material-actions{display:flex;gap:20px;flex-wrap:wrap;align-items:center}.material-video{margin-top:36px}.material-video iframe{width:100%;aspect-ratio:16/9;border:0}.materials-filters{margin:24px 0}.material-card[hidden]{display:none}.material-note{font-size:14px;color:var(--muted)}@media(max-width:640px){.materials-hero{padding:40px 0}.materials-grid{grid-template-columns:1fr;gap:22px}.material-copy,.materials-empty{padding:24px}.materials-contact h2{font-size:26px}.material-viewer iframe{min-height:360px;height:65vh}.materials-hero h1{font-size:38px}.material-detail h1{font-size:36px}}
.slide-viewer{outline-offset:4px}.slide-stage figure{margin:0}.slide-stage figure[hidden]{display:none}.slide-stage img{width:100%;height:auto;display:block;object-fit:contain;background:#102f53}.slide-stage figcaption{padding:12px 20px;font-size:14px}.slide-stage details p{white-space:pre-line;max-width:none}.slide-stage summary{cursor:pointer;color:var(--accent)}.slide-viewer:fullscreen .slide-stage{flex:1;min-height:0;overflow:auto}.slide-viewer:fullscreen .slide-stage img{max-height:calc(100vh - 135px)}.viewer-controls button:disabled{opacity:.45;cursor:default}
.material-viewer.viewer-expanded{position:fixed;inset:0;z-index:1000;margin:0;border-radius:0;background:white;display:flex;flex-direction:column}.viewer-expanded .slide-stage{flex:1;min-height:0;overflow:auto}.viewer-expanded .slide-stage img{max-height:calc(100dvh - 135px)}.viewer-expanded iframe{flex:1;height:100%;min-height:0}
/* A single lesson is presented as an editorial feature, not an empty grid. */
.materials-grid:has(>.material-card:only-child){grid-template-columns:1fr}
.material-card:only-child>a{display:grid;grid-template-columns:1.15fr 1fr;align-items:center}
.material-card:only-child .material-copy{padding:32px 36px}
.material-card a:hover .text-link{color:var(--ink);border-color:var(--ink)}
.material-detail>.lead{max-width:780px}.material-detail h1{font-size:clamp(30px,3.5vw,46px);letter-spacing:-1.4px}
.slide-viewer{border-radius:12px;background:#fff}.slide-viewer .viewer-controls{background:#f5f8fc;border-bottom:1px solid var(--line);gap:12px}.viewer-controls [data-slide-count]{font-size:14px;font-variant-numeric:tabular-nums;color:var(--muted);min-width:60px;text-align:center}.viewer-controls [data-fullscreen]{margin-left:auto}.slide-stage img{background:#fff}.slide-stage figcaption{border-top:1px solid var(--line)}
@media(max-width:720px){.material-card:only-child>a{grid-template-columns:1fr}.material-card:only-child .material-copy{padding:24px}.viewer-controls{padding:12px;gap:8px}.viewer-controls button{padding:9px 10px;font-size:12px}.viewer-controls [data-slide-count]{min-width:44px}.home-materials .section-intro .text-link{margin-top:16px}}
/* Size the frame to the available viewport; contain the whole slide in it. */
.slide-viewer .viewer-controls{flex:0 0 auto}
.slide-viewer .slide-stage{position:relative;width:100%;aspect-ratio:16/9;max-height:calc(100svh - 140px);overflow:hidden;background:#102f53}
.slide-viewer .slide-stage figure{position:absolute;inset:0;margin:0;width:100%;height:100%}
.slide-viewer .slide-stage img{display:block;width:100%;height:100%;max-height:none;object-fit:contain;background:#102f53}
.slide-viewer .slide-transcript{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.slide-viewer:fullscreen,.slide-viewer.viewer-expanded{height:100dvh;max-height:100dvh;display:flex;flex-direction:column}
.slide-viewer:fullscreen .slide-stage,.slide-viewer.viewer-expanded .slide-stage{flex:1 1 0;aspect-ratio:auto;min-height:0;max-height:none;overflow:hidden}
/* Compact controls only while presenting, including the expanded-view fallback. */
.slide-viewer:is(:fullscreen,.viewer-expanded) .viewer-controls{padding:2px 8px;gap:5px;flex-wrap:nowrap}
.slide-viewer:is(:fullscreen,.viewer-expanded) .viewer-controls button{min-height:28px;padding:2px 8px;font-size:12px;line-height:1.2;white-space:nowrap}
.slide-viewer:is(:fullscreen,.viewer-expanded) [data-slide-count]{min-width:42px;font-size:12px;line-height:1.2}
.slide-viewer:is(:fullscreen,.viewer-expanded) .viewer-controls [role="status"]:empty{display:none}
@media(pointer:coarse){.slide-viewer:is(:fullscreen,.viewer-expanded) .viewer-controls button{min-height:36px}}
.slide-viewer:is(:fullscreen,.viewer-expanded){border:0;border-radius:0;outline:none}
.slide-viewer:is(:fullscreen,.viewer-expanded) .viewer-controls{display:none;position:absolute;inset:0 0 auto;z-index:2}
.slide-viewer:is(:fullscreen,.viewer-expanded).controls-open .viewer-controls{display:flex}
.slide-viewer .slide-stage figure{background:var(--slide-bg)}
.slide-viewer .slide-stage figure img{background:transparent;object-position:center center}
.slide-viewer:is(:fullscreen,.viewer-expanded) .slide-stage figure img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:50% 50%}
