/* Mobile-first lesson-library treatment based on the supplied navigation reference. */
:root {
  --ink:#f7f7f4;
  --muted:#a5a5a5;
  --paper:#1a1a1a;
  --bg:#090909;
  --line:#303030;
  --lime:#ad8aff;
  --lavender:#222222;
  --peach:#252525;
  --blue:#202020;
  --yellow:#242424;
  --mint:#202020;
  color-scheme:dark;
}
body{background:var(--bg);color:var(--ink)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:var(--lime)}
.sidebar{background:#121212;border-color:var(--line)}
.brand-symbol{background:var(--lime);color:#111;border:0}
.brand,.mobile-brand{color:var(--lime)}
.brand-logo{display:block;width:108px;height:auto}
.mobile-brand .brand-logo{width:94px}
.topbar-label,.side-caption,.module-nav button,.quiet-button{color:#aaa}
.stage-pill{background:#202020;border-color:#303030;color:#d6d6d6}
.stage-pill i{background:var(--lime)}
.main-nav button.active,.module-nav button.active{background:#2b223a;color:var(--lime)}
.hero{background:#181818;border:1px solid #2d2d2d}
.hero .eyebrow{color:var(--lime)}
.hero p{color:#d1d1d1}
.art-orbit{border-color:#4c4d2e}
.art-note{background:var(--lime);color:#111}
.selection-note{background:#1b1b1b;border:1px solid #313131;border-radius:14px;padding:13px 15px;color:#d9d9d9}
.selection-note b{color:#fff}
.selection-note .icon{background:#33371a;color:var(--lime)}
.note-action{border-color:#535539;color:var(--lime)}
.search-box{background:#1d1d1d;border-color:#303030;color:#fff}
.search-box input{color:#fff}
.search-box input::placeholder{color:#8e8e8e}
.module-chips button{background:#1c1c1c;border-color:#313131;color:#d3d3d3}
.module-chips button.active{background:var(--lime);border-color:var(--lime);color:#111}
.ready-filter,.small-muted,.section-header p,.section-label,.page-footer{color:#aaa}
.section-header h2,.module-intro h2,.chapter-heading h2{color:#f7f7f4}
.section-label,.chapter-kicker{color:var(--lime)}
.module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.module-card,.module-card:last-child{display:block;position:relative;min-height:220px;background:#1d1d1d;border:1px solid #333;border-radius:18px;overflow:hidden;isolation:isolate;grid-column:auto}
.module-card:last-child:nth-child(odd){grid-column:1/-1}
.module-card:hover{border-color:var(--lime)}
.module-cover,.module-card:last-child .module-cover{position:absolute;inset:0;min-height:0;width:100%;height:100%;display:block;padding:0;background:#222}
.module-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#08080800 5%,#08080830 48%,#080808ed 100%)}
.module-cover-image{width:100%;height:100%;object-fit:cover;display:block}
.module-number{position:absolute;top:12px;left:12px;z-index:1;padding:4px 7px;border-radius:5px;background:var(--lime);font-size:9px;font-weight:800;letter-spacing:.6px;color:#101010}
.module-cover>.icon{position:absolute;top:13px;right:12px;z-index:1;color:var(--lime)}
.module-body,.module-card:last-child .module-body{position:absolute;z-index:1;inset:auto 0 0;padding:18px 15px;text-align:left;background:transparent}
.module-body h3{font-size:19px;line-height:1.13;color:#fff;text-transform:uppercase;font-weight:800}
.module-body p{font-size:10px;line-height:1.4;color:#d1d1d1;margin-top:7px}
.module-meta,.module-card:last-child .module-meta{font-size:10px;color:var(--lime);margin-top:11px}
.module-meta .icon{color:var(--lime)}
.module-intro{background:#1c1c1c;border-color:#343434}
.module-intro-icon{background:#363920!important;color:var(--lime)}
.module-intro p{color:#aaa}
.chapter-jump{background:#202020;border-color:#444;color:#e4e4e4}
.chapter-jump:hover{border-color:var(--lime);color:var(--lime)}
.chapter-heading{border-color:#3a3a3a}
.chapter-heading p{color:#aaa}
.lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.lesson-card{background:#e9e9e9;border:0;border-radius:20px;padding:19px;min-height:0;color:#171717;overflow:hidden;display:flex;flex-direction:column}
.lesson-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:17px}
.lesson-head-copy{flex:1;min-width:0}
.lesson-number{display:block;margin-bottom:6px;color:#646464;font-size:10px;font-weight:700;letter-spacing:.3px}
.lesson-link{display:block;width:100%;color:#171717}
.lesson-card h3{font-size:18px;font-weight:700;line-height:1.3;letter-spacing:-.3px;margin:0;padding:0}
.bookmark-button{flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#1b1b1b;color:var(--lime);padding:0}
.bookmark-button .icon svg{width:22px;height:22px;stroke-width:1.8}
.bookmark-button.saved{background:#1b1b1b;color:var(--lime)}
.bookmark-button.saved .icon svg{fill:var(--lime)}
.lesson-thumb{margin:0;border:0;border-radius:12px;aspect-ratio:16/9;background:#121212;position:relative;overflow:hidden;width:100%;padding:0}
.lesson-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.lesson-thumb>.icon{position:absolute;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);background:var(--lime);border:0;width:48px;height:48px;border-radius:50%;color:#111;box-shadow:0 4px 20px #0006}
.lesson-thumb>.icon svg{width:24px;height:24px;stroke-width:2}
.lesson-bottom{padding-top:14px;margin-top:auto;color:#545454}
.lesson-category{background:#d7d7d7;color:#444;font-size:10px;border-radius:6px}
.lesson-status{color:#666;font-size:10px}
.lesson-status.ready{color:#3d4900}
.lesson-watch,.lesson-upcoming{display:flex;align-items:center;justify-content:center;gap:10px;aspect-ratio:16/9;background:#161616;color:var(--lime);border:0;border-radius:12px;font-weight:700}
.lesson-watch .icon svg{width:27px;height:27px}
.lesson-upcoming{color:#aaa;padding:15px;text-align:center;font-size:12px}
.back-button{color:var(--lime)}
.breadcrumb,.detail-chapter,.detail-summary,.detail-meta{color:#aaa}
.detail-heading h1{color:#fff}
.detail-heading .bookmark-button{border:1px solid #333;background:#1d1d1d}
.video-frame video,.video-placeholder{border-radius:15px;background:#1c1c1c}
.video-placeholder{color:#f5f5f5}
.detail-section h2,.questions-section h2{color:#fff}
.topics li,.outcome p{color:#d4d4d4}
.outcome,.external-recording{background:#1d1d1d;border-color:#353535}
.material-item{background:#1c1c1c;border-color:#383838}
.material-copy b{color:#f0f0f0}
.material-copy small{color:#aaa}
.material-item.linked:hover{border-color:var(--lime)}
.primary-button{background:var(--lime);color:#111}
.secondary-button{background:#202020;border-color:#424242;color:#eee}
.secondary-button:hover{border-color:var(--lime);color:var(--lime)}
.empty-state,.selection-stat,.selection-row,.dialog{background:#1c1c1c;border-color:#383838;color:#f1f1f1}
.empty-state p,.selection-copy p,.dialog>p{color:#aaa}
.selection-help{background:#242411;color:#e8e8c5}
.dialog-close{color:#ccc}
.edit-dialog input:not([type=hidden]),.edit-dialog select{background:#111;border-color:#444;color:#f7f7f4}
.dialog::backdrop{background:#000b}
.toast{background:var(--lime);color:#111}
.document-paragraph,.document-mapping dd{color:#ccc}
@media(max-width:760px){
  .main-content{padding:17px 16px 112px;max-width:620px}
  .topbar{margin-bottom:18px}
  .mobile-brand{font-size:22px;font-weight:900}
  .mobile-brand .brand-symbol{color:#111;background:var(--lime)}
  .stage-pill{font-size:9px}
  .hero{min-height:0;padding:25px 22px;border-radius:18px}
  .hero h1{font-size:31px}
  .hero .eyebrow{color:var(--lime)}
  .hero p{color:#d4d4d4}
  .hero-art{opacity:.16}
  .selection-note{margin:16px 0 20px}
  .search-area{margin:18px 0}
  .search-box{border-radius:16px}
  .module-grid{gap:11px}
  .module-card,.module-card:last-child{min-height:195px;grid-template-columns:none}
  .module-card:last-child .module-body{padding:18px 15px}
  .module-body h3{font-size:16px}
  .module-body p{font-size:9px}
  .module-meta{font-size:9px}
  .lesson-grid{grid-template-columns:1fr;gap:14px}
  .lesson-card{padding:18px;border-radius:19px}
  .lesson-card h3{font-size:16px}
  .lesson-head{margin-bottom:15px}
  .lesson-thumb{margin:0;border-radius:11px}
  .lesson-thumb>.icon{width:46px;height:46px}
  .bookmark-button{width:37px;height:37px;flex-basis:37px}
  .lesson-bottom{padding-top:12px}
  .bottom-nav{display:flex;position:fixed;left:16px;right:16px;bottom:max(14px,env(safe-area-inset-bottom));padding:8px 8px;background:#1c1c1c;border:1px solid #303030;border-radius:24px;box-shadow:0 15px 35px #0009;z-index:10;justify-content:space-around;backdrop-filter:none}
  .bottom-nav button{width:30%;padding:8px 2px;color:#9b9b9b;font-size:10px;gap:5px;border-radius:17px}
  .bottom-nav button.active{background:#2b223a;color:var(--lime)}
  .bottom-nav .icon svg{width:24px;height:24px}
  .page-footer{color:#777}
}
@media(max-width:360px){.module-card,.module-card:last-child{min-height:178px}.module-body h3{font-size:14px}.module-body{padding:15px 12px}.lesson-card{padding:15px}}

/* Keep the study path visible; move operational copy out of the way. */
#home-hero,#selection-note,.stage-pill,.module-chips,.filter-row,.page-footer,
.sidebar .side-caption,.sidebar .module-nav,.sidebar .side-bottom,
.breadcrumb,.detail-chapter,.detail-summary,.detail-meta,.questions-section,.outcome{display:none!important}
.topbar{margin-bottom:22px}
.search-area{margin:0 0 25px}
.search-box{border-radius:14px}
.section-header{margin:0 0 14px}
.section-header h2{font-size:24px}
.module-grid{gap:12px}
.module-card,.module-card:last-child{min-height:195px}
.module-cover:after{background:linear-gradient(180deg,#08080800 0%,#08080822 42%,#080808ec 100%)}
.module-body,.module-card:last-child .module-body{padding:17px}
.module-body h3{font-size:19px}
.module-meta{margin-top:8px;color:#e7e7e7;font-size:11px}
.module-intro.simple{display:block;margin:0 0 20px;padding:0;background:none;border:0;border-radius:0}
.module-intro.simple h2{font-size:25px;line-height:1.2}
.module-intro.simple .back-button{display:flex;flex-direction:row-reverse;justify-content:flex-end;margin:0 0 16px;font-size:12px}
.course-chapter{margin-top:26px}
.chapter-heading{margin-bottom:14px;padding-bottom:12px}
.chapter-heading h2{font-size:20px;margin:0}
.lesson-card{padding:17px}
.lesson-head{margin-bottom:14px}
.lesson-card h3{margin:0}
.lesson-bottom{display:none}
.detail-heading{margin:0 0 16px}
.detail-heading h1{font-size:29px}
.detail-columns{margin-top:24px}
.detail-section:empty{display:none}
.detail-bottom{border:0;padding-top:0;margin-top:18px;justify-content:flex-end}
.detail-bottom .secondary-button{background:none;border:0;padding:6px 0;color:var(--lime);font-size:12px}
.detail-bottom .secondary-button:hover{color:#fff}
@media(max-width:760px){
  .topbar{margin-bottom:25px}
  .search-area{margin:0 0 23px}
  .module-card,.module-card:last-child{min-height:195px}
  .module-body,.module-card:last-child .module-body{padding:15px}
  .module-body h3{font-size:16px}
  .module-meta{font-size:10px}
  .module-intro.simple h2{font-size:23px}
  .chapter-heading h2{font-size:18px}
  .lesson-card{padding:17px}
  .lesson-card h3{font-size:16px}
}
