/* Shared chrome for Lesson 1 task pages: reset, nav, sidebar, progress, tabs, buttons.
   Each task page still defines its own local :root block (--navy/--purple/--yellow/--bg/
   --ink/--muted/--border/--correct/--wrong/--radius plus any phase-specific accent vars)
   and its own page-unique widget CSS (video player, slide player, quiz, retina diagram, etc). */

*{margin:0;padding:0;box-sizing:border-box;}

/* ── TOP NAV ── */
.back-btn{color:rgba(255,255,255,.7);text-decoration:none;font-size:13px;font-weight:700;display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:20px;border:1px solid rgba(255,255,255,.2);transition:.2s;}
.back-btn:hover{background:rgba(255,255,255,.1);color:#fff;}
.nav-title{color:#fff;font-family:'Nunito',sans-serif;font-size:15px;font-weight:800;text-decoration:none;}
.phase-badge{background:rgba(255,255,255,.15);color:#fff;font-size:11px;font-weight:800;padding:4px 12px;border-radius:20px;}
.progress-bar{background:rgba(255,255,255,.2);height:3px;width:80px;border-radius:3px;overflow:hidden;}
.progress-fill{height:100%;background:var(--yellow);border-radius:3px;transition:width .5s;width:0%;}
.progress-bar-nav{background:rgba(255,255,255,.2);height:3px;width:80px;border-radius:3px;overflow:hidden;}
.progress-fill-nav{height:100%;background:var(--yellow);border-radius:3px;transition:width .5s;width:0%;}
.timer-badge{background:rgba(245,200,0,.2);border:1px solid rgba(245,200,0,.4);color:var(--yellow);font-size:11px;font-weight:800;padding:4px 12px;border-radius:20px;display:flex;align-items:center;gap:5px;}

/* ── LAYOUT ── */
.lesson-layout{display:grid;grid-template-columns:1fr 300px;gap:0;max-width:1200px;margin:0 auto;padding:28px 20px;align-items:start;}
@media(max-width:860px){.lesson-layout{grid-template-columns:1fr;}.sidebar{display:none;}}
.main-col{min-width:0;}

/* ── SIDEBAR ── */
.sidebar{position:sticky;top:72px;display:flex;flex-direction:column;gap:14px; margin-left:10px;}
.sidebar-card{background:#fff;border-radius:var(--radius);border:1.5px solid var(--border);padding:16px;}
.sidebar-task-title{font-family:'Nunito',sans-serif;font-size:14px;font-weight:900;color:var(--ink);margin-bottom:12px;}

.progress-card{background:#fff;border-radius:var(--radius);border:1.5px solid var(--border);padding:16px;}
.progress-title{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);margin-bottom:10px;display:flex;justify-content:space-between;}
.progress-track{height:7px;background:#eee;border-radius:4px;overflow:hidden;margin-bottom:12px;}
.steps{display:flex;flex-direction:column;gap:8px;}
.step-item{display:flex;align-items:center;gap:8px;font-size:12px;}
.step-dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:var(--muted);flex-shrink:0;transition:.3s;}
.step-dot.done{background:var(--correct);border-color:var(--correct);color:#fff;}
.step-text{color:var(--muted);font-size:12px;}
.step-text.active{color:var(--ink);font-weight:600;}
.step-text.done{text-decoration:line-through;color:#bbb;}

.curr-card{background:#fff;border-radius:var(--radius);border:1.5px solid var(--border);padding:14px;}
.curr-title{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);margin-bottom:10px;}
.curr-item{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border);cursor:pointer;transition:.15s;}
.curr-item:last-child{border-bottom:none;}
.curr-num{width:22px;height:22px;border-radius:5px;background:var(--bg);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:800;color:var(--muted);flex-shrink:0;}
.curr-name{font-size:11px;color:var(--ink);flex:1;transition:.15s;}
.curr-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;}
.ph1{background:#1B3A8C;}
.ph2{background:#7055B5;}
.ph3{background:#7A5F00;}
.ph4{background:#A03800;}
.ph5{background:#166534;}

/* ── HERO ── */
.hero-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;}
.hero-chip{padding:4px 11px;border-radius:20px;font-size:11px;font-weight:700;}
.chip-phase{background:rgba(255,255,255,.15);color:rgba(255,255,255,.85);}
.chip-type{background:rgba(255,255,255,.1);color:rgba(255,255,255,.6);}
.hero-title{font-family:'Nunito',sans-serif;font-size:24px;font-weight:900;color:#fff;margin-bottom:6px;}

/* ── TABS ── */
.tabs{display:flex;border-bottom:2px solid var(--border);margin-bottom:24px;}
.tab{padding:10px 16px;font-size:13px;font-weight:700;color:var(--muted);background:none;border:none;cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-2px;transition:.2s;font-family:'Nunito Sans',sans-serif;}
.tab-panel{display:none;}
.tab-panel.active{display:block;}

/* ── SECTION LABEL ── */
.sec-label{font-size:10px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);margin-bottom:12px;display:flex;align-items:center;gap:8px;}
.sec-label::after{content:'';flex:1;height:1px;background:var(--border);}

/* ── BRIDGE / NEXT NAV ── */
.next-nav{display:flex;justify-content:space-between;align-items:center;margin-top:8px;}
.prev-btn{display:inline-flex;align-items:center;gap:6px;padding:12px 22px;background:#fff;color:var(--muted);border:1.5px solid var(--border);border-radius:30px;font-family:'Nunito',sans-serif;font-size:14px;font-weight:800;text-decoration:none;transition:.2s;}
