/* Mobile Academy concept v1. Desktop styles are intentionally untouched. */
.nav-icon,.mobile-chapters-toggle{display:none}
.chapter-panel-heading{display:contents}
@media(max-width:600px){
 :root{--mobile-nav-space:94px}
 body{padding-bottom:calc(var(--mobile-nav-space) + env(safe-area-inset-bottom))}
 html{scroll-padding-top:125px}
 .site-header{background:linear-gradient(120deg,#20211f,#111212 65%);border:0;box-shadow:0 3px 15px #1111110c}
 .header-inner{min-height:108px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;gap:10px;flex-wrap:wrap}
 .brand{flex:1 0 100%;gap:7px;min-height:31px;width:max-content}
 .brand img{width:31px;height:31px}
 .brand span{font-size:24px;letter-spacing:-1.1px}
 .brand b{font-size:17px;margin-left:0}
 .header-form{order:2;flex:1 0 100%;width:100%;height:44px;min-width:0;border-radius:14px;border-color:#ffffff22;background:#fff}
 .header-form .header-search{min-height:42px;min-width:42px;padding:10px 8px 10px 13px}
 .header-form svg{width:20px;height:20px}
 .header-form input{font-size:16px;padding:9px 12px 9px 3px}
 .top-nav{position:fixed;z-index:45;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));width:auto;max-width:576px;margin:0 auto;min-height:68px;height:68px;flex-basis:auto;display:flex;align-items:center;justify-content:space-evenly;gap:4px;padding:5px 7px;background:linear-gradient(120deg,#202220,#111313);border:1px solid #ffffff14;border-radius:21px;overflow:visible;box-shadow:0 9px 28px #10151227}
 .top-nav a,.top-nav .nav-help{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;flex:1;min-width:0;min-height:56px;padding:5px 7px;color:#e8e9e8;font-size:11px;font-weight:650;line-height:1.4;border-radius:15px;background:transparent}
 .top-nav a.active{color:#ffe061;background:#ffffff08}
 .top-nav a.active:after{display:none}
 .nav-icon{display:block;width:23px;height:23px;stroke-width:1.8}
 .top-nav .nav-help:hover{color:#ffe061}
 .top-nav .nav-label{display:block;white-space:nowrap}
 .container.browse-home,.container.library-page{padding-left:16px;padding-right:16px}
 .browse-home{padding-top:14px;padding-bottom:12px}
 .hero-feature{display:flex;flex-direction:column;min-height:0;height:auto;border-radius:19px;box-shadow:0 6px 20px #52452b0b}
 .hero-media{position:relative;inset:auto;order:0;width:100%;height:auto;aspect-ratio:2.2;flex:none}
 .hero-media img{object-fit:cover;object-position:center 40%}
 .hero-dark{display:none}
 .hero-copy{position:static;order:1;width:100%;min-height:0;padding:15px 18px 17px;background:radial-gradient(ellipse at 10% 0,#30302d,#151716 90%);color:#fff}
 .hero-badge{position:absolute;z-index:2;top:12px;left:12px;min-height:28px;padding:5px 12px;font-size:11px;font-weight:750;box-shadow:0 2px 10px #6652100c}
 .hero-copy h1{font-size:24px;line-height:1.35;letter-spacing:-.04em;margin:0}
 .hero-copy h1 span{display:inline;white-space:nowrap}
 .hero-copy p{font-size:14px;line-height:1.6;color:#c7cbd0;margin-top:4px;max-width:none}
 .hero-actions{gap:12px;margin-top:13px}
 .hero-cta{flex:1;min-height:46px;padding:9px 19px;gap:10px;font-size:18px;border-radius:13px}
 .hero-cta svg{width:18px;height:18px}
 .hero-duration{min-width:57px;min-height:44px;font-size:15px;padding:10px;border-radius:11px}
 .browse-filters{margin:14px 0 10px;gap:8px;padding:1px 1px 5px}
 .browse-filters .filter{min-height:44px;padding:9px 17px;font-size:13px;border-radius:99px}
 .lesson-shelf{margin-top:17px}
 .shelf-heading{align-items:center;margin-bottom:10px;gap:8px}
 .shelf-heading h2{font-size:21px;line-height:1.4;letter-spacing:-.045em}
 .view-all{min-height:42px;font-size:11px;padding:8px 0 8px 4px;gap:4px}
 .view-all svg{width:14px;height:14px}
 .shelf-grid.cols-3,.shelf-grid.cols-4{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -16px;padding:0 16px 8px;scroll-padding-left:16px}
 .shelf-grid.cols-3 .cover-card,.shelf-grid.cols-4 .cover-card{flex:0 0 72%;scroll-snap-align:start;border-radius:14px}
 .shelf-grid .cover-image,.shelf-grid.cols-3 .cover-image,.shelf-grid.cols-4 .cover-image{aspect-ratio:2.1}
 .cover-card.lesson-card{box-shadow:0 3px 12px #52452b06}
 .shelf-grid .cover-caption,.shelf-grid.cols-4 .cover-caption{padding:10px 12px 12px}
 .shelf-grid .cover-caption h3,.shelf-grid.cols-4 .cover-caption h3{font-size:16px;line-height:1.4;letter-spacing:-.02em}
 .cover-image .thumb-duration{font-size:11px;padding:3px 6px;bottom:7px;right:7px;border-radius:6px}
 .cover-play{display:none}
 .home-bottom{margin-top:18px}
 .all-lessons-cta{font-size:14px;min-height:46px;max-width:100%;padding:10px 21px}
 .home-bottom p{font-size:11px;line-height:1.7}
 .site-footer{padding:20px 16px 12px;gap:10px}
 .site-footer>span{font-size:18px}
 .site-footer b{font-size:12px}
 .site-footer .text-button{font-size:11px;min-height:44px}
 .library-page{padding-top:21px;padding-bottom:12px}
 .library-back,.library-page>.search-form,.library-intro .eyebrow{display:none}
 .library-title-row{margin-bottom:15px;align-items:center;gap:12px}
 .library-title-row h1{font-size:29px;margin:0;line-height:1.4}
 .library-total{font-size:12px;white-space:nowrap}
 .library-page .browse-filters{margin-bottom:13px}
 .library-page .library-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;margin-bottom:0}
 .library-page .library-heading h2{font-size:17px;line-height:1.5;flex:1;min-width:0}
 .library-page .sort-label{display:flex;flex-shrink:0}
 .library-page .sort-label select{font-size:11px;min-height:42px;max-width:124px;padding:8px;border-radius:11px}
 .library-page .result-count{font-size:12px;margin:6px 0 12px;line-height:1.6}
 .library-cover-grid.lesson-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:11px}
 .library-cover-grid .cover-card.lesson-card{display:flex;flex-direction:row;align-items:center;gap:0;position:relative;min-height:107px;border-radius:15px;padding:8px;background:#fff}
 .library-cover-grid .cover-image{width:118px;height:82px;aspect-ratio:auto;flex:0 0 118px;align-self:center;border-radius:10px}
 .library-cover-grid .cover-image>img{object-fit:cover}
 .library-cover-grid .cover-caption{position:relative;flex:1;min-width:0;padding:6px 19px 6px 12px}
 .library-cover-grid .cover-caption:after{content:'';position:absolute;right:4px;top:calc(50% - 3px);width:6px;height:6px;border-right:1.5px solid #737c88;border-top:1.5px solid #737c88;transform:rotate(45deg)}
 .library-cover-grid .cover-caption h3{font-size:15px;line-height:1.45;letter-spacing:-.02em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .library-cover-grid .cover-description{font-size:12px;line-height:1.7;margin-top:4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#737f91}
 .library-page .empty-state{padding:25px 15px}
 .library-page .empty-state h3{font-size:21px}
 .library-page .empty-state p{font-size:13px}
 .lesson-stage{padding-top:15px;padding-bottom:20px}
 .lesson-stage .container{padding-left:14px;padding-right:14px}
 .breadcrumbs{font-size:11px;gap:6px;line-height:1.7;margin-bottom:10px;flex-wrap:wrap}
 .breadcrumbs>span:last-child{display:none}
 .lesson-title-row{gap:10px;margin-bottom:13px;align-items:center}
 .lesson-title-row h1{font-size:23px;line-height:1.45;letter-spacing:-.04em}
 .share-button{width:42px;height:42px;padding:10px;flex-shrink:0;font-size:0;border-radius:11px}
 .share-button svg{width:19px;height:19px}
 .lesson-layout{gap:16px}
 .player{border-radius:15px}
 .video-play-overlay{width:62px;height:62px}
 .video-play-overlay svg{width:25px;height:25px}
 .controls{display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding:8px 9px 10px;min-height:92px}
 .controls button{width:44px;height:44px;min-height:44px;border-radius:10px}
 .controls svg{width:21px;height:21px}
 .controls .play-toggle{background:#ffe061;color:#111a17;border-radius:50%}
 .controls .play-toggle:hover,.controls .play-toggle:focus-visible{color:#111a17}
 .controls .play-toggle svg{fill:#111a17;stroke:0}
 .controls .rewind{display:flex}
 .controls .volume-button,.controls .volume{display:none}
 .controls .time-display{flex:1;min-width:70px;font-size:11px;text-align:center}
 .controls .speed{max-width:55px;min-width:49px;height:44px;font-size:12px;padding:5px;border-radius:10px}
 .controls .seek{order:10;flex:1 0 100%;width:100%;max-width:100%;min-width:0;height:22px;margin-top:3px;touch-action:pan-x}
 .chapter-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
 .mobile-chapters-toggle{display:flex;align-items:center;justify-content:center;gap:5px;background:#ffffff0b;color:#dedfd9;border:1px solid #ffffff17;border-radius:10px;min-height:44px;padding:8px 10px;font-size:11px;flex-shrink:0}
 .mobile-chapters-toggle svg{width:15px;height:15px;transform:rotate(-90deg);transition:transform .22s}
 .chapters-panel.is-collapsed .mobile-chapters-toggle svg{transform:rotate(90deg)}
 .chapters-panel{padding:15px 10px 12px;border-radius:16px;max-height:none}
 .chapters-panel h2{font-size:20px;margin:0}
 .chapter-meta{font-size:12px;margin:5px 7px 10px}
 .chapter-list{display:block;max-height:260px;overflow:auto;overscroll-behavior:contain;transition:max-height .24s cubic-bezier(.16,1,.3,1),opacity .2s}
 .chapter-button{padding:10px 9px;min-height:52px;gap:10px;border-radius:11px;align-items:center}
 .chapter-number{width:29px;height:29px;font-size:12px;flex-shrink:0}
 .chapter-copy{display:flex;align-items:center;justify-content:space-between;gap:8px}
 .chapter-copy b{font-size:13px;line-height:1.6}
 .chapter-copy small{font-size:11px;white-space:nowrap;margin:0}
 .chapters-back{font-size:12px;min-height:44px;padding:11px 7px 0;margin-top:8px}
 .chapters-panel.is-collapsed .chapter-list{max-height:0;opacity:0}
 .lesson-reading .container{padding:0 16px}
 .tabs{gap:10px;justify-content:space-between}
 .tab{min-height:54px;flex:1;padding:15px 2px;font-size:12px;text-align:center}
 .tab-panel{padding:22px 0;min-height:0}
 .tab-panel h2{font-size:25px;line-height:1.5}
 .panel-description{font-size:14px;line-height:1.9}
 .outcomes{grid-template-columns:1fr;gap:10px}
 .outcome{display:flex;align-items:center;gap:12px;padding:15px}
 .outcome span{margin:0;width:38px;height:38px}
 .outcome h3{font-size:14px;line-height:1.7}
 .step{padding:16px 13px;gap:11px}
 .step h3{font-size:16px;line-height:1.6}
 .step p{font-size:14px;line-height:1.9}
 .timestamp-button{min-height:40px;font-size:12px;margin-top:12px;padding:10px 12px}
 .file-card{padding:16px;flex-wrap:wrap}
 .file-card h3{font-size:16px;line-height:1.6;overflow-wrap:anywhere}
 .file-card p{font-size:13px;line-height:1.8}
 .file-card .button{width:100%;margin-left:0;min-height:46px}
 .lesson-pagination{gap:10px;align-items:stretch}
 .lesson-pagination .button{font-size:12px;min-height:48px;padding:11px;line-height:1.6}
 dialog{border-radius:20px;padding:24px;max-height:calc(100dvh - 34px);overflow:auto}
 dialog h2{font-size:25px;line-height:1.5}
 .dialog-top .icon-button{width:44px;min-height:44px}
 .help-steps b{font-size:16px}
 .help-steps p{font-size:14px;line-height:1.8}
 dialog>.button{min-height:48px}
 #toast{bottom:calc(96px + env(safe-area-inset-bottom));font-size:13px}
}
@media(max-width:360px){
 .brand span{font-size:23px}.brand b{font-size:16px}
 .hero-copy{padding:14px 15px 16px}.hero-copy h1{font-size:21px}.hero-copy p{font-size:13px}
 .hero-cta{font-size:17px}
 .shelf-heading h2{font-size:19px}
 .shelf-grid.cols-3 .cover-card,.shelf-grid.cols-4 .cover-card{flex-basis:78%}
 .library-cover-grid .cover-image{width:100px;height:77px;flex-basis:100px}
 .library-cover-grid .cover-caption{padding-left:10px;padding-right:13px}
 .library-cover-grid .cover-caption h3{font-size:14px}
 .library-cover-grid .cover-description{font-size:11px}
 .library-page .library-heading h2{font-size:15px}.library-page .sort-label select{max-width:115px;font-size:10px}
 .lesson-title-row h1{font-size:21px}.controls{gap:3px;padding-left:6px;padding-right:6px}
 .controls button{width:44px}.controls .speed{min-width:45px;font-size:11px}
 .chapter-panel-heading h2{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.chapter-list,.mobile-chapters-toggle svg{transition:none}}

