/* Harth Learn. The dashboard's navy and Figtree; light only, like the dashboard. */
:root {
  --navy: #1b3980; --navy-dk: #142b61; --navy-tint: #e8ecf8; --navy-deep: #0f2250;
  --canvas: #f7f8fa; --card: #ffffff; --ink: #111827; --body: #3b4250; --muted: #59616f;
  --line: #e7e9ee; --line-soft: #eef0f4; --done: #15803d; --on-navy: #c7d2ee;
  --r: 14px; --shadow: 0 12px 30px -20px rgba(16, 24, 40, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.5 Figtree, ui-sans-serif, system-ui, sans-serif; }
a { color: var(--navy); }
img, video { display: block; max-width: 100%; }
h1, h2 { letter-spacing: -.02em; }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 16px 64px; }
@media (min-width: 700px) { .wrap { padding: 36px 24px 72px; } }

/* header */
.top { background: var(--navy); color: #fff; }
.top-in { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { border-radius: 8px; }
.pill { font-weight: 600; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.top nav { display: flex; gap: 4px; }
.top nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 0 12px; height: 40px; display: inline-flex; align-items: center; border-radius: 10px; }
.top nav a:hover, .top nav a[aria-current] { background: rgba(255, 255, 255, .14); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; }
.btn:hover { background: var(--navy-dk); }
.btn.light { background: #fff; color: var(--navy); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }

/* start page */
.hero { background: var(--navy); color: #fff; padding-bottom: 72px; }
.hero-in { max-width: 1200px; margin: 0 auto; padding: 32px 16px 0; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
@media (min-width: 700px) { .hero-in { padding: 44px 24px 0; } }
.hero-copy, .hero-media { flex: 1 1 380px; min-width: 0; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy); }
.hero h1 { margin: 0 0 14px; font-size: clamp(34px, 6vw, 48px); line-height: 1.08; font-weight: 800; }
.lede { margin: 0 0 24px; font-size: 18px; color: #e4e9f7; max-width: 560px; }
.lede.dark { color: var(--body); max-width: 760px; font-size: 17px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media img, .hero-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--navy-deep); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .5); }
.lift { margin-top: -48px; padding-top: 0; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.role { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.role img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; background: #eef2f8; width: 100%; }
.role-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.role-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.role-body .muted { flex: 1; }
.meta { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.go { margin-top: 8px; font-weight: 700; color: var(--navy); }
.progress { font-size: 14px; color: var(--done); font-weight: 600; }
.progress:empty { display: none; }
.block { margin-top: 48px; }
.block h2 { margin: 0 0 4px; font-size: 24px; }
.block > .muted { margin: 0 0 18px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.step { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.step > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.num { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #eef2f8; color: var(--navy); font-weight: 800; }
.soon { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--line-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.support { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.support div { display: flex; flex-direction: column; gap: 2px; }
.support strong { font-size: 19px; }
.support span { color: var(--muted); }

/* role page */
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumb a { text-decoration: none; }
.h1 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 38px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.card { display: flex; flex-wrap: wrap; gap: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: #cdd3df; }
.thumb { position: relative; flex: 0 0 260px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #eef2f8; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.len { position: absolute; right: 8px; bottom: 8px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(10, 20, 45, .78); padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.done-badge { display: none; position: absolute; left: 8px; top: 8px; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--done); padding: 3px 9px; border-radius: 999px; }
.card.done .done-badge { display: inline-flex; }
.card-body { flex: 1 1 300px; display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 4px 0; }
.card-title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }

/* video page */
.split { display: flex; flex-direction: column; }
@media (min-width: 960px) { .split { flex-direction: row; align-items: flex-start; } }
.lib { background: var(--card); border-bottom: 1px solid var(--line); }
.lib > summary { list-style: none; cursor: pointer; display: flex; align-items: center; height: 48px; padding: 0 16px; font-weight: 700; color: var(--navy); }
.lib > summary::-webkit-details-marker { display: none; }
.lib > summary::before { content: ""; width: 18px; height: 2px; margin-right: 10px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
@media (min-width: 960px) {
  .lib { flex: 0 0 330px; border-bottom: 0; border-right: 1px solid var(--line); min-height: calc(100vh - 64px); position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 18px 14px 28px; }
  .lib > summary { display: none; }
}
.lib-search { padding: 0 12px; }
@media (min-width: 960px) { .lib-search { padding: 0; } }
.lib-search input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.lib-group { margin-top: 18px; padding: 0 4px; }
.lib-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 8px 6px; font-size: 12.5px; color: var(--muted); }
.lib-head span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lib-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.3; }
.lib-row:hover { background: var(--canvas); }
.lib-row.on { background: var(--navy-tint); color: var(--navy); font-weight: 700; }
.lib-title { flex: 1; min-width: 0; }
.lib-len { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dot { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 999px; border: 1.5px solid #c9ced8; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.dot svg { display: none; }
.lib-row.on .dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.lib-row.done .dot { background: var(--done); border-color: var(--done); color: #fff; }
.lib-row.done .dot .n { display: none; }
.lib-row.done .dot svg { display: block; }
.lib-none { padding: 12px; color: var(--muted); }
.lib[open] { padding-bottom: 16px; }
@media (min-width: 960px) { .lib[open] { padding-bottom: 28px; } }

.watch { flex: 1; min-width: 0; padding: 22px 16px 64px; }
@media (min-width: 700px) { .watch { padding: 28px 40px 72px; } }
.watch > * { max-width: 980px; }
.player { margin-top: 18px; border-radius: var(--r); overflow: hidden; background: var(--navy-deep); box-shadow: 0 24px 48px -28px rgba(16, 24, 40, .55); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: var(--navy-deep); }
.below { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 26px; }
.chapters { flex: 3 1 420px; min-width: 0; }
.chapters h2, .side h2 { margin: 0 0 10px; font-size: 20px; }
.chapters ol { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.chapters li + li { border-top: 1px solid var(--line-soft); }
.chapters a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 16px; text-decoration: none; color: var(--ink); font-size: 15.5px; }
.chapters a:hover { background: var(--canvas); }
.chapters .t { width: 46px; flex: none; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.chapters a > span:nth-child(2) { flex: 1; }
.now { display: none; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--navy-tint); padding: 3px 9px; border-radius: 999px; }
.chapters a.cur { background: #f4f6fb; font-weight: 700; }
.chapters a.cur .now { display: inline; }
.side { flex: 2 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.side .btn { width: 100%; height: 48px; }
.side .btn.done-already { background: var(--done); }
.words { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; }
.words summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--navy); }
.words p { margin: 0 0 12px; color: var(--body); font-size: 15px; }
.words p a { font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; margin-right: 4px; }
.pn { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 30px; }
.pn-card { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; text-decoration: none; color: var(--ink); }
.pn-card.r { text-align: right; }
.pn-card strong { font-size: 17px; }

.foot { border-top: 1px solid var(--line); padding: 22px 16px; text-align: center; font-size: 14px; color: var(--muted); }
