/* The paid video course (js/course.js): dashboard, lesson page, progress page. Uses the tokens in style.css. */

/* course pages never have the ad column */
@media (min-width: 1200px) { body.course .layout { display: block !important; } }
body.course .sidebar { display: none !important; }

/* ---------- header: log in / account ---------- */
.acct { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 800; color: var(--ink); text-decoration: none; }
.acct:hover { text-decoration: underline; }
.avatar { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 900; }
:root[data-theme="dark"] .avatar { background: var(--gold); color: var(--navy); }
.tabbar:has(a:nth-child(5)) { grid-template-columns: repeat(5, 1fr); }

/* ---------- tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); vertical-align: middle; }
.tag .ic { width: 14px; height: 14px; }
.tag-free { background: var(--good-bg); color: var(--good); border-color: var(--good-line); }
.tag-now { background: var(--gold); color: var(--navy); border-color: transparent; }
.tag-done { background: var(--good-bg); color: var(--good); border-color: var(--good-line); }
.btn-block { width: 100%; }

/* ---------- unlock band ---------- */
.unlock-band {
  display: grid; gap: 18px; align-items: center; margin: 0 0 18px; padding: 24px 22px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 100% 0%, var(--navy-3) 0%, var(--navy) 60%); color: #fff; box-shadow: var(--shadow);
}
.unlock-band h2 { color: #fff; font-size: 1.45rem; margin: 0 0 .3em; }
.unlock-band p { color: #d7deec; margin: 0; max-width: 60ch; }
.unlock-band .eyebrow { color: var(--gold); }
.ub-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.ub-login { color: #fff; font-weight: 800; text-align: center; }
@media (min-width: 760px) { .unlock-band { grid-template-columns: 1fr auto; padding: 28px 32px; } }

/* ---------- continue card ---------- */
.continue-card { display: grid; overflow: hidden; }
.cc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy); }
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.cc-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; background: var(--gold); color: var(--navy); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.cc-play .ic { width: 28px; height: 28px; margin-left: 3px; stroke: none; }
.cc-play .ic use[href="#i-lock"], .cc-play .ic:has(use[href="#i-lock"]) { stroke: currentColor; margin: 0; }
.cc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255, 255, 255, .3); }
.cc-bar span { display: block; height: 100%; background: var(--gold); }
.cc-body { padding: 20px; }
.cc-body h2 { font-size: 1.35rem; margin: 0 0 .25em; }
.cc-body .btn { margin-top: 8px; }
@media (min-width: 700px) { .continue-card { grid-template-columns: minmax(260px, 38%) 1fr; align-items: center; } .cc-thumb { height: 100%; aspect-ratio: auto; min-height: 200px; } .cc-body { padding: 24px 28px; } }

/* ---------- overview tiles ---------- */
.ov-grid { display: grid; gap: 12px; margin: 0 0 26px; }
.ov { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.ov:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ov .ring { width: 58px; height: 58px; flex: none; }
.ov .ring text { font-size: 24px; }
.ov b { display: block; font-size: 1.1rem; }
.ov small { color: var(--muted); font-weight: 700; font-size: .9rem; }
@media (min-width: 700px) { .ov-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- chapter blocks + lesson rows ---------- */
.course-ch { overflow: hidden; }
.cch-head { position: relative; display: grid; grid-template-columns: 1fr; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cch-img { display: none; }
.cch-num { font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.cch-head h2 { font-size: 1.25rem; margin: 2px 0 4px; }
.cch-meta { color: var(--muted); font-weight: 700; font-size: .9rem; }
.cch-bar { margin-top: 10px; }
.cch-bar .bar { height: 6px; }
@media (min-width: 700px) {
  .cch-head { grid-template-columns: 88px 1fr 200px; gap: 18px; align-items: center; }
  .cch-img { display: block; width: 88px; height: 64px; object-fit: cover; border-radius: 12px; }
  .cch-bar { margin: 0; }
}
.crows { list-style: none; margin: 0; padding: 6px; }
.crow { display: grid; grid-template-columns: 112px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .15s; }
.crow:hover { background: var(--surface-2); }
.crow.is-current { background: var(--chosen-bg); box-shadow: inset 0 0 0 2px var(--gold); }
.crow-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--navy); }
.crow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.crow-badge { position: absolute; left: 6px; top: 6px; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: rgba(15, 27, 51, .78); color: #fff; }
.crow-badge .ic { width: 15px; height: 15px; }
.crow.is-done .crow-badge { background: var(--good); }
.crow:not(.is-locked):not(.is-done) .crow-badge .ic { stroke: none; margin-left: 1px; }
.crow.is-locked .crow-thumb img { filter: grayscale(.6) brightness(.75); }
.crow-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.crow-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.crow-meta { font-size: .8rem; font-weight: 900; color: var(--muted); letter-spacing: .02em; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.crow-title { font-size: 1.02rem; line-height: 1.3; }
.crow-main .bar { height: 5px; max-width: 240px; margin-top: 4px; }
.crow-st { font-size: .84rem; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.crow-st.good { color: var(--good); }
.crow-side { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.crow-side .chip { font-size: .78rem; padding: 3px 9px; }
.crow-go { width: 20px; height: 20px; }
@media (max-width: 559px) {
  .crow { grid-template-columns: 96px 1fr; gap: 12px; }
  .crow-side { grid-column: 2; justify-content: flex-start; }
  .crow-side:not(:has(.chip)) { display: none; }
  .crow-go { display: none; }
}

/* ---------- lesson page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; font-weight: 800; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.crumbs a:hover { text-decoration: underline; }
.lesson-grid { display: grid; gap: 20px; }
.lesson-grid { grid-template-areas: "top" "side" "marks"; }
.lesson-top { grid-area: top; } .lesson-side { grid-area: side; } .lesson-marks { grid-area: marks; }
@media (min-width: 980px) {
  .lesson-grid { grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "top side" "marks side"; grid-template-rows: auto 1fr; column-gap: 28px; row-gap: 0; align-items: start; }
  .lesson-side { position: sticky; top: 84px; }
}
.lesson-grid { row-gap: 0; }
.lesson-title { margin: 18px 0 16px; }
.lesson-title h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.lesson-title .eyebrow { margin-bottom: 4px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.marks-card h2, .side-card h2 { font-size: 1.15rem; margin: 0 0 12px; }
.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.marks li > button, .marks li > span { width: 100%; display: flex; gap: 14px; align-items: center; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.marks li > span { cursor: default; }
.marks li > button:hover { background: var(--surface-2); }
.mk-t { font-variant-numeric: tabular-nums; font-weight: 900; color: var(--accent); min-width: 48px; }
.mk-n { flex: 1; }
.marks li.seen .mk-n { color: var(--muted); }
.marks li.seen .ic { color: var(--good); }
.marks li.now > button { background: var(--chosen-bg); box-shadow: inset 3px 0 0 var(--gold); }
.mk-now { font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; background: var(--gold); color: var(--navy); padding: 2px 8px; border-radius: 999px; }
.side-card { margin-bottom: 16px; }
.sp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0 6px; font-size: .95rem; }
.sp-row span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 700; }
.sp-row .ic { width: 18px; height: 18px; }
.side-card .bar { height: 7px; }
.practice-card { background: linear-gradient(160deg, var(--surface) 40%, var(--chosen-bg)); }
.practice-card p { color: var(--ink-2); font-size: .95rem; }
.pc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: var(--navy); margin-bottom: 10px; }
.nav-cards { display: grid; gap: 10px; }
.nav-card { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; padding: 10px; margin: 0; text-decoration: none; color: var(--ink); }
.nav-card:hover { box-shadow: var(--shadow); }
.nav-card small { display: block; color: var(--muted); font-weight: 800; font-size: .78rem; }
.nav-card b { font-size: .95rem; line-height: 1.3; }
.nc-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--navy); }
.nc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nav-card.is-locked img { filter: grayscale(.6) brightness(.75); }

/* ---------- progress page ---------- */
.ready-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 20px 22px; }
.ready-card > div { flex: 1 1 260px; }
.ready-card h2 { font-size: 1.25rem; margin: 0 0 .2em; }
.ready-card p { margin: 0; color: var(--ink-2); }
.rc-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--chosen-bg); color: var(--ink); flex: none; }
.ready-card.is-ready { border-color: var(--good-line); background: var(--good-bg); }
.ready-card.is-ready .rc-ic { background: var(--good); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 18px; }
.st { margin: 0; padding: 16px; }
.st small { display: block; color: var(--muted); font-weight: 800; font-size: .84rem; }
.st b { display: block; font: 800 2rem/1.2 var(--serif); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.st b span { font: 700 1rem var(--sans); color: var(--muted); }
.st .bar { height: 6px; }
.st-sub { color: var(--muted); font-size: .84rem; font-weight: 700; }
@media (min-width: 860px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.card-head h2 { font-size: 1.2rem; margin: 0; }
.chart-wrap { position: relative; }
.score-chart { width: 100%; height: auto; display: block; overflow: visible; }
.score-chart .grid { stroke: var(--line); stroke-width: 1; }
.score-chart .pass-line { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.score-chart .pass-label { font: 800 12px var(--sans); fill: var(--ink-2); }
.score-chart .axis { font: 700 11px var(--sans); fill: var(--muted); }
.score-chart .hit { fill: transparent; }
.score-chart .bar-g path { transition: opacity .15s; }
.score-chart .bar-g.ok path { fill: var(--good); }
.score-chart .bar-g.no path { fill: var(--bad); }
.score-chart .bar-g:hover path { opacity: .8; }
.score-chart .bar-g:hover .hit { fill: var(--surface-2); }
.chart-tip { position: absolute; pointer-events: none; width: 150px; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: .8rem; font-weight: 800; line-height: 1.35; box-shadow: var(--shadow); }
.table-view { margin-top: 10px; font-size: .92rem; }
.table-view summary { cursor: pointer; color: var(--ink-2); font-weight: 800; }
.table-view table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.table-view th, .table-view td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ch-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ch-rows li { display: grid; grid-template-columns: 1fr 80px; grid-template-areas: "name val" "bar bar"; gap: 6px 12px; align-items: center; padding: 10px; border-radius: 12px; }
.ch-rows li.weak { background: var(--bad-bg); }
.chr-name { grid-area: name; font-weight: 800; line-height: 1.3; }
.chr-name small { display: block; color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.chr-bar { grid-area: bar; }
.chr-bar .bar { height: 8px; }
.chr-val { grid-area: val; text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }
.chr-val small { display: block; color: var(--muted); font-weight: 700; font-size: .76rem; }
@media (min-width: 700px) { .ch-rows li { grid-template-columns: minmax(200px, 1.2fr) 2fr 90px; grid-template-areas: "name bar val"; } }
.weak-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.weak-tip p { margin: 0; flex: 1 1 240px; }
.weak-tip > .ic { color: var(--bad); }
.legend { display: inline-flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; font-size: .84rem; font-weight: 700; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line-2); margin-right: -6px; vertical-align: -1px; }
.legend i.ok { background: var(--good); border-color: var(--good); }
.legend i.no { background: var(--bad-bg); border-color: var(--bad-line); }
.legend i.line { width: 18px; height: 0; border: 0; border-top: 2px dashed var(--ink-2); border-radius: 0; background: none; margin-right: 0; vertical-align: 3px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.mcell { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-weight: 900; line-height: 1.1; transition: transform .15s; }
.mcell:hover { transform: scale(1.06); }
.mcell small { font-size: .7rem; font-weight: 800; opacity: .9; }
.mcell.ok { background: var(--good); border-color: var(--good); color: #fff; }
.mcell.no { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
:root[data-theme="dark"] .mcell.ok { color: #06281b; }

/* ---------- sales page ---------- */
.sales-hero { display: grid; gap: 22px; align-items: start; margin: 8px 0 10px; }
.sales-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; margin: 0 0 .35em; }
.sales-hero .gold { color: var(--gold-ink); }
.sales-hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 56ch; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.ticks .ic { color: var(--good); flex: none; margin-top: 2px; }
.price-card { padding: 26px 24px; text-align: center; border: 2px solid var(--gold); box-shadow: var(--shadow-lg); margin: 0; }
.pc-label { font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pc-price { font: 800 3.6rem/1 var(--serif); margin: 6px 0 4px; }
.pc-sub { color: var(--ink-2); font-weight: 700; margin: 0 0 16px; }
.price-card .btn { width: 100%; }
.pc-list { list-style: none; padding: 0; margin: 18px 0 12px; display: grid; gap: 10px; text-align: left; font-size: .95rem; }
.pc-list li { display: flex; gap: 10px; align-items: flex-start; }
.pc-list .ic { width: 20px; height: 20px; color: var(--gold-ink); flex: none; }
.pc-free { font-weight: 800; }
@media (min-width: 900px) { .sales-hero { grid-template-columns: 1fr 380px; gap: 40px; margin-top: 24px; } }
.sales-why .step { text-align: left; }
.sales-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.sl-ch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sl-ch summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 14px 18px; font-weight: 800; }
.sl-ch summary::-webkit-details-marker { display: none; }
.sl-ch summary > span:first-child { flex: 1; }
.sl-ch summary small { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.sl-ch summary .ic { color: var(--muted); transition: transform .25s; }
.sl-ch[open] summary .ic { transform: rotate(180deg); }
.sl-ch ol { list-style: none; margin: 0; padding: 0 18px 12px; }
.sl-ch li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.final-cta .fine { font-size: .85rem; opacity: .8; margin-top: 14px; }

/* ---------- login, account, thanks ---------- */
.auth-page { max-width: 520px; }
.auth-page h1, .thanks h1 { font-size: 1.8rem; }
.lbl { display: block; font-weight: 800; margin: 14px 0 6px; }
.auth-page input[type="email"] { width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; margin-bottom: 14px; }
.auth-page input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 79, 209, .15); }
.form-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 700; }
.form-msg.bad { color: var(--bad); }
.auth-notes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .93rem; }
.auth-notes li { display: flex; gap: 8px; align-items: flex-start; }
.auth-notes .ic { margin-top: 3px; color: var(--muted); }
.auth-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--chosen-bg); color: var(--ink); margin: 0 auto 12px; }
.auth-ic.good { background: var(--good); color: #fff; }
.center .auth-ic, .card .auth-ic { margin-left: 0; }
.thanks .auth-ic { margin: 0 auto 12px; }
.acct-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.acct-row b { display: inline-flex; gap: 6px; align-items: center; }
.acct-row .good { color: var(--good); }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--surface); font-weight: 700; box-shadow: var(--shadow-lg);
  transition: opacity .25s, transform .25s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* course cards under the video player (#/watch) */
.watch-extras { display: grid; gap: 16px; margin-top: 20px; }
.watch-extras .side-card { margin: 0; }
@media (min-width: 900px) { .watch-extras { grid-template-columns: 1fr 1fr 1fr; align-items: start; } }
.buy-msg a { color: var(--gold); font-weight: 800; }

/* ================= Redesign (2026-11): course page + lesson page with the lesson list ================= */
/* ---------- course page ---------- */
.course-page { max-width: 860px; margin: 0 auto; }
.page-head.slim { margin-bottom: 16px; }
.cp-progress { display: flex; align-items: center; gap: 12px; max-width: 420px; }
.cp-progress .bar { flex: 1; }
.cp-progress span { font-weight: 800; color: var(--muted); font-size: .92rem; white-space: nowrap; }
.unlock-band { grid-template-columns: 1fr; padding: 16px 18px; }
.unlock-band .ub-text { color: #e7ecf6; }
.unlock-band .ub-text b { color: #fff; }
@media (min-width: 700px) { .unlock-band { grid-template-columns: 1fr auto; } .ub-cta { flex-direction: row; align-items: center; } }
.outline { padding: 6px 0; overflow: hidden; }

/* ---------- the lesson list (course page + lesson page) ---------- */
.lch { border-bottom: 1px solid var(--line); }
.lch:last-child { border-bottom: 0; }
.lch summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; align-items: center; padding: 14px 16px; }
.lch summary::-webkit-details-marker { display: none; }
.lch-n { grid-column: 1; font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.lch-t { grid-column: 1; font-weight: 800; color: var(--ink); line-height: 1.25; }
.lch-c { grid-column: 2; grid-row: 1 / 3; font-size: .82rem; font-weight: 800; color: var(--muted); }
.lch-arrow { grid-column: 3; grid-row: 1 / 3; width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.lch[open] .lch-arrow { transform: rotate(180deg); }
.lch ol { list-style: none; margin: 0; padding: 0 8px 10px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; min-height: 52px; }
.lrow:hover { background: var(--surface-2); }
.lrow-ic { flex: none; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: .82rem; font-weight: 900;
  border: 2px solid var(--line-2); color: var(--muted); background: var(--surface); }
.lrow-ic .ic { width: 16px; height: 16px; }
.lrow-t { display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; min-width: 0; }
.lrow-t small { font-size: .78rem; font-weight: 700; color: var(--muted); }
.lrow-t em { font-style: normal; color: var(--good); font-weight: 900; }
.lrow.is-done .lrow-ic { background: var(--good); border-color: var(--good); color: #fff; }
.lrow.is-started .lrow-ic { border-color: var(--gold); color: var(--gold-ink); }
.lrow.is-locked { color: var(--muted); }
.lrow.is-locked .lrow-ic { border-style: dashed; }
.lrow.is-here { background: var(--chosen-bg); box-shadow: inset 3px 0 0 var(--gold); }
.lrow.is-here .lrow-ic { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lsteps { display: flex; gap: 6px; padding: 2px 10px 8px 52px; }
.lstep { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: .84rem; font-weight: 800;
  color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.lstep b { color: var(--muted); font-weight: 800; }
.lstep.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.lstep.on b { color: var(--gold); }
:root[data-theme="dark"] .lstep.on { background: var(--gold); color: var(--navy); border-color: var(--gold); }
:root[data-theme="dark"] .lstep.on b { color: var(--navy); }

/* ---------- lesson page frame ---------- */
body.learn .layout { max-width: 1400px; padding-top: 16px; }
body.learn .sidebar { display: none !important; }
@media (min-width: 1200px) { body.learn .layout { display: block !important; } }
.lframe { display: block; }
.lmain { min-width: 0; }
.lhead { margin: 4px 0 14px; }
.lhead .eyebrow { margin-bottom: 4px; }
.lhead h1 { font-size: clamp(1.6rem, 4.6vw, 2.2rem); margin: 0 0 14px; }
.ltabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.ltab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 12px; margin-bottom: -1px; font-weight: 800; color: var(--muted);
  text-decoration: none; border-bottom: 3px solid transparent; min-height: 44px; }
.ltab:hover { color: var(--ink); }
.ltab.on { color: var(--ink); border-bottom-color: var(--gold); }
.ltab-n { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line); }
.ltab.on .ltab-n { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.ltab-ok { color: var(--good); }
.ltab-score { font-size: .8rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.lbody { padding-top: 16px; }
.lbody .player { border-radius: var(--radius); }
.lbody .qwrap { max-width: none; margin: 0; padding: 0; }
.lbody .qtop .qtitle { font-weight: 800; color: var(--muted); font-size: .95rem; }
.lesson-end { text-align: center; }
.lesson-end .msg { font-size: 1.2rem; margin: 10px 0 4px; }
.vparts { margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.vparts summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 800; min-height: 48px; }
.vparts summary::-webkit-details-marker { display: none; }
.vparts-arrow { margin-left: auto; width: 18px; height: 18px; transition: transform .2s; }
.vparts[open] .vparts-arrow { transform: rotate(180deg); }
.vparts .vchapters { padding: 0 8px 10px; margin: 0; max-height: none; }
.lnext { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.lnext-go { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lnext-label { color: var(--muted); font-weight: 700; font-size: .92rem; text-align: right; }
@media (max-width: 640px) { .lnext-label { display: none; } .lnext .btn { flex: 1 1 auto; } .lnext-go { flex: 1 1 60%; } .lnext-go .btn { width: 100%; } }

/* the lesson list: a column on wide screens, a drawer on phones and tablets */
.lside { background: var(--surface); display: flex; flex-direction: column; }
.lside-head { display: grid; grid-template-columns: 1fr auto; gap: 10px 8px; align-items: center; padding: 16px 16px 14px; border-bottom: 1px solid var(--line); }
.lside-head > div { display: flex; align-items: baseline; gap: 10px; }
.lside-head b { font: 800 1.1rem/1.2 var(--serif); }
.lside-head span { color: var(--muted); font-weight: 700; font-size: .88rem; }
.lside-head .bar { grid-column: 1 / -1; height: 8px; }
.lside-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.lside-list .lch summary { padding: 12px 14px; }
.lside-foot { padding: 12px 14px; border-top: 1px solid var(--line); }
.lside-open { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 14px; min-height: 44px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.lside-open .ic { width: 18px; height: 18px; }
.lside-open b { color: var(--muted); font-weight: 800; }
.lside-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(5, 10, 22, .55); }
.lside-scrim[hidden] { display: none; }
@media (max-width: 1023px) {
  .lside { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); box-shadow: var(--shadow-lg);
    transform: translateX(-105%); transition: transform .25s cubic-bezier(.2, .7, .2, 1); visibility: hidden; }
  .lside.open { transform: none; visibility: visible; }
  body.drawer-open { overflow: hidden; }
}
@media (min-width: 1024px) {
  .lframe { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; align-items: start; }
  .lside { position: sticky; top: 80px; max-height: calc(100vh - 96px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
  .lside-close, .lside-open, .lside-scrim { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .lside { transition: none; } }

/* ---------- home page (shorter) ---------- */
.home-body .section { padding-top: 40px; }
.section-head.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; max-width: none; margin-bottom: 16px; }
.section-head.row h2 { margin: 0; font-size: clamp(1.3rem, 3.4vw, 1.7rem); }
.path { display: grid; gap: 12px; padding-top: 28px !important; }
@media (min-width: 760px) { .path { grid-template-columns: repeat(3, 1fr); } }
.path-step { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.path-step:hover { border-color: var(--gold); transform: translateY(-2px); }
.path-step b { display: block; font-size: 1.08rem; }
.path-step small { color: var(--muted); font-weight: 700; }
.path-step .step-n { position: static; flex: none; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-weight: 900; }
.hrows { padding: 6px; }
.hrow { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.hrow + .hrow { border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.hrow:hover { background: var(--surface-2); }
.hrow-img { flex: none; width: 64px; height: 48px; border-radius: 10px; object-fit: cover; }
.hrow-t { flex: 1; display: flex; flex-direction: column; font-weight: 800; line-height: 1.25; }
.hrow-t small { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.hrow-go { flex: none; width: 20px; height: 20px; color: var(--muted); }
/* inside a lesson, the answer box does not need "watch the lesson video" (the video is one tab away) */
.lbody .feedback .lesson-tag, .lbody .feedback .btn-row { display: none; }
/* the page fade-in uses transform, which would trap the fixed drawer inside the page: none on lesson pages */
body.learn .page-in > * { animation: none; }
/* five tabs on phones (course on): keep each label on one line */
.tabbar a span { white-space: nowrap; }
.tabbar:has(a:nth-child(5)) a { font-size: .7rem; }
