/* Milestone Learning — customer training surfaces.
   Idea: progress is drawn as a lit fiber route. Each lesson is a notch on the line; finished
   lessons light up. Everything else stays quiet so the video and that line carry the page. */

:root {
  --ink: #16201C;        /* theater background, deep forest black */
  --ink-2: #1D2A25;      /* raised panels on ink */
  --ink-3: #2B3B35;      /* hairlines on ink */
  --fog: #E4EBE7;        /* primary text on ink */
  --mist: #9DACA5;       /* secondary text on ink */
  --signal: #7FE3B1;     /* lit fiber: progress, focus, primary action on ink */
  --forest: #2D6A4F;     /* brand green: progress on paper */
  --paper: #F4F2EC;      /* library background */
  --card: #FFFFFF;
  --rule: #E3DFD5;
  --text: #17201C;
  --muted: #5F6B66;
  --r-lg: 14px; --r-md: 10px; --r-sm: 6px;
  --wrap: 1180px;
}

/* ---------- base ---------- */
body.th-ink { background: var(--ink); color: var(--fog); }
body.th-paper { background: var(--paper); }
body { font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
.lx-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.lx-wrap-narrow { max-width: 920px; }
.lx-bare { flex: 1; display: block; }
.lx-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--signal); color: var(--ink); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; }
.lx-skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
body.th-paper :focus-visible { outline-color: var(--forest); }
.lx-flash { max-width: var(--wrap); margin: 20px auto 0; }

/* ---------- nav ---------- */
.lx-nav { position: sticky; top: 0; z-index: 60; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 40px; background: var(--ink); border-bottom: 1px solid var(--ink-3); }
.lx-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.lx-brand img { height: 30px; width: auto; display: block; }
.lx-brand span { color: var(--mist); font-size: 15px; padding-left: 14px; border-left: 1px solid var(--ink-3); line-height: 22px; }
.lx-links { display: flex; align-items: center; gap: 26px; }
.lx-links > a { color: var(--mist); text-decoration: none; font-size: 15px; transition: color .15s; }
.lx-links > a:hover, .lx-links > a.on { color: #fff; }
.lx-badge { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--signal); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.lx-me { position: relative; }
.lx-me summary { list-style: none; cursor: pointer; }
.lx-me summary::-webkit-details-marker { display: none; }
.lx-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--fog); font-weight: 600; font-size: 14px; }
.lx-me[open] .lx-avatar, .lx-me summary:hover .lx-avatar { border-color: var(--signal); }
.lx-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: var(--card); color: var(--text); border-radius: var(--r-md); box-shadow: 0 18px 50px rgba(10, 16, 13, .35); padding: 8px; }
.lx-menu p { padding: 10px 12px 12px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; font-size: 14px; }
.lx-menu p span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.lx-menu a, .lx-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: 14px; background: none; border: 0; }
.lx-menu a:hover, .lx-menu button:hover { background: var(--paper); }

/* ---------- buttons ---------- */
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 'DM Sans', sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.lx-btn-signal { background: var(--signal); color: var(--ink); }
.lx-btn-signal:hover { background: #9BEDC4; }
.lx-btn-ink { background: var(--ink); color: #fff; }
.lx-btn-ink:hover { background: var(--forest); }
.lx-btn-line { background: transparent; color: var(--text); border-color: #CBC6BA; }
.lx-btn-line:hover { border-color: var(--text); }
.lx-btn-ghost { background: transparent; color: var(--fog); border-color: var(--ink-3); }
.lx-btn-ghost:hover { border-color: var(--mist); color: #fff; }
.lx-btn-light { background: var(--fog); color: var(--ink); }
.lx-btn-light:hover { background: #fff; }

/* ---------- home hero ---------- */
.lx-hero { padding: 64px 0 72px; background: var(--ink); color: var(--fog); }
.lx-hello { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.015em; color: #fff; max-width: 14ch; }
.lx-lede { margin-top: 14px; font-size: 19px; color: var(--mist); max-width: 62ch; }
.lx-feature { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: center; text-decoration: none; color: inherit; }
.lx-feature-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px var(--ink-3); }
.lx-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.lx-feature:hover .lx-feature-media img { transform: scale(1.02); }
.lx-feature-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22, 32, 28, .55)); }
.lx-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--signal); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s; }
.lx-play svg { width: 30px; height: 30px; fill: var(--ink); margin-left: 4px; }
.lx-feature:hover .lx-play { transform: scale(1.06); }
.lx-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .22); }
.lx-bar i { display: block; height: 100%; background: var(--signal); }
.lx-feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lx-feature-course { color: var(--signal); font-size: 15px; font-weight: 500; }
.lx-feature-title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; color: #fff; font-weight: 700; }
.lx-feature-title b, .lx-lesson-title b, .lx-lesson-head h1 b { font-family: 'DM Sans', sans-serif; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--mist); margin-right: .45em; font-size: .62em; vertical-align: .18em; }
.lx-feature-goal { font-size: 17px; color: var(--mist); max-width: 46ch; }
.lx-feature-body .lx-btn { margin-top: 10px; }

/* ---------- route strip (the signature element) ---------- */
.lx-route { display: flex; gap: 14px; margin-top: 28px; align-items: flex-start; }
.lx-route-mod { flex-basis: auto; min-width: 0; }
.lx-route-line { display: flex; gap: 3px; height: 14px; align-items: center; }
.lx-notch { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .16); transition: height .15s, background .15s; }
.lx-notch:hover { height: 10px; }
.lx-notch.done { background: var(--signal); box-shadow: 0 0 10px rgba(127, 227, 177, .45); }
.lx-notch.part { background: linear-gradient(90deg, var(--signal) 50%, rgba(255, 255, 255, .16) 50%); }
.lx-notch.here { height: 12px; background: #fff; box-shadow: 0 0 0 3px rgba(127, 227, 177, .35); }
.lx-route-label { display: block; margin-top: 8px; font-size: 13px; color: var(--mist); white-space: nowrap; }
.lx-route-label.done { color: var(--signal); }
/* on paper */
.lx-paper .lx-notch { background: #DDD8CC; }
.lx-paper .lx-notch.done { background: var(--forest); box-shadow: none; }
.lx-paper .lx-notch.part { background: linear-gradient(90deg, var(--forest) 50%, #DDD8CC 50%); }
.lx-route-bare { margin-top: 18px; gap: 8px; }

/* ---------- paper sections ---------- */
.lx-paper { background: var(--paper); color: var(--text); padding: 64px 0 88px; flex: 1; }
.lx-h2 { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--text); margin-bottom: 26px; letter-spacing: -.005em; }

/* course list on home */
.lx-courses { display: grid; gap: 22px; }
.lx-course { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; align-items: center; background: var(--card); border-radius: var(--r-lg); padding: 18px; border: 1px solid var(--rule); }
.lx-course-media { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--ink); }
.lx-course-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-course-mono { display: grid; place-items: center; height: 100%; font-family: 'Playfair Display', serif; font-size: 96px; color: var(--signal); }
.lx-course-body { padding-right: 18px; }
.lx-course-body h3 { font-family: 'Playfair Display', serif; font-size: 32px; line-height: 1.1; font-weight: 700; }
.lx-course-body h3 a { color: var(--text); text-decoration: none; }
.lx-course-body h3 a:hover { color: var(--forest); }
.lx-course-tag { margin-top: 6px; color: var(--muted); font-size: 17px; }
.lx-course-facts { margin-top: 14px; font-size: 15px; color: var(--text); }
.lx-course-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.lx-course-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- course page ---------- */
.lx-hero-course { padding-top: 40px; }
.lx-back { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); text-decoration: none; font-size: 15px; margin-bottom: 26px; }
.lx-back::before { content: ''; width: 8px; height: 8px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.lx-back:hover { color: #fff; }
.lx-course-title { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(44px, 6.5vw, 84px); line-height: 1; letter-spacing: -.02em; color: #fff; }
.lx-hero-course .lx-route { margin-top: 40px; }
.lx-hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.lx-hero-count { color: var(--mist); font-size: 15px; font-variant-numeric: tabular-nums; }

.lx-mod + .lx-mod { margin-top: 52px; }
.lx-mod-head { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: center; margin-bottom: 14px; }
.lx-mod-n { font-variant-numeric: lining-nums; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1.5px solid #CFC9BC; font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--text); position: relative; z-index: 1; }
.lx-mod.is-done .lx-mod-n { background: var(--forest); border-color: var(--forest); color: #fff; }
.lx-mod-head h2 { font-family: 'Playfair Display', serif; font-size: 28px; line-height: 1.15; font-weight: 700; }
.lx-mod-head p { color: var(--muted); font-size: 15px; margin-top: 2px; }

.lx-lessons { list-style: none; position: relative; }
.lx-lessons::before { content: ''; position: absolute; left: 21px; top: -14px; bottom: 18px; width: 2px; background: #DDD8CC; }
.lx-lesson a { position: relative; display: grid; grid-template-columns: 44px 192px minmax(0, 1fr); gap: 18px; align-items: center; padding: 10px 14px 10px 0; border-radius: var(--r-md); text-decoration: none; color: var(--text); }
.lx-lesson a:hover { background: var(--card); }
.lx-node { justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid #BDB6A7; position: relative; z-index: 1; }
.lx-lesson.is-done .lx-node { background: var(--forest); border-color: var(--forest); }
.lx-lesson.is-done .lx-node::after, .lx-mini .is-done .lx-node::after { content: ''; position: absolute; left: 3px; top: 0; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lx-lesson.is-part .lx-node { background: linear-gradient(90deg, var(--forest) 50%, var(--paper) 50%); border-color: var(--forest); }
.lx-lesson.is-next .lx-node { border-color: var(--forest); box-shadow: 0 0 0 5px rgba(45, 106, 79, .16); }
.lx-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px rgba(23, 32, 28, .08); }
.lx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(22, 32, 28, .86); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.lx-lesson-text { display: grid; gap: 4px; min-width: 0; }
.lx-lesson-title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.lx-lesson-title b { color: var(--muted); font-size: 15px; vertical-align: 0; }
.lx-lesson-goal { color: var(--muted); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lx-lesson.is-done .lx-lesson-title { color: var(--muted); }

.lx-docs { margin-top: 64px; }
.lx-docs ul { list-style: none; display: grid; gap: 10px; }
.lx-docs a { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px; text-decoration: none; color: var(--text); }
.lx-docs a:hover { border-color: var(--forest); }
.lx-docs a > span:last-child span { display: block; color: var(--muted); font-size: 14px; }
.lx-doc-ext { display: grid; place-items: center; height: 64px; border-radius: 8px; background: var(--paper); font-weight: 700; font-size: 13px; color: var(--forest); }

/* ---------- lesson theater ---------- */
.lx-theater { max-width: 1480px; margin: 0 auto; padding: 28px 40px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.lx-player { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--ink-3), 0 40px 90px rgba(0, 0, 0, .5); }
.lx-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.lx-player video::cue { font-family: 'DM Sans', sans-serif; font-size: 20px; background: rgba(10, 14, 12, .82); }
.lx-lesson-head { padding: 26px 4px 0; }
.lx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0; font-size: 14px; color: var(--mist); }
.lx-crumbs a { color: var(--signal); text-decoration: none; }
.lx-crumbs a:hover { text-decoration: underline; }
.lx-crumbs > span::before { content: ''; display: inline-block; width: 1px; height: 12px; background: var(--ink-3); margin: 0 12px; vertical-align: -1px; }
.lx-crumbs-dark { color: var(--muted); }
.lx-crumbs-dark a { color: var(--forest); }
.lx-crumbs-dark > span::before { background: #CFC9BC; }
.lx-lesson-head h1 { margin-top: 10px; font-family: 'Playfair Display', serif; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.lx-goal { margin-top: 10px; font-size: 18px; color: var(--mist); max-width: 64ch; }
.lx-lesson-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.lx-spacer { flex: 1; }
.lx-check { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--fog); font: 500 15px 'DM Sans', sans-serif; cursor: pointer; padding: 8px 4px; }
.lx-check span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--mist); position: relative; transition: background .15s, border-color .15s; }
.lx-check em { font-style: normal; }
.lx-check.on span { background: var(--signal); border-color: var(--signal); }
.lx-check.on span::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lx-check.on em { color: var(--signal); }

.lx-recap { margin-top: 34px; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r-lg); padding: 26px 28px; }
.lx-recap h2 { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; font-weight: 700; margin-bottom: 14px; }
.lx-recap ul { list-style: none; display: grid; gap: 10px; }
.lx-recap li { position: relative; padding-left: 24px; color: var(--fog); }
.lx-recap li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--signal); }
.lx-recap code, .lx-steps code { font-size: .92em; background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 4px; }

/* rail */
.lx-rail { position: sticky; top: 88px; max-height: calc(100vh - 108px); display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r-lg); overflow: hidden; }
.lx-tabs { display: flex; border-bottom: 1px solid var(--ink-3); padding: 0 8px; flex-shrink: 0; }
.lx-tabs button { flex: 1; background: none; border: 0; color: var(--mist); font: 600 14px 'DM Sans', sans-serif; padding: 16px 8px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.lx-tabs button[aria-selected=true] { color: #fff; border-bottom-color: var(--signal); }
.lx-steps, .lx-mini { overflow-y: auto; overscroll-behavior: contain; padding: 10px; }
.lx-steps { list-style: none; counter-reset: none; }
.lx-steps li { border-radius: var(--r-md); transition: background .2s; }
.lx-step { width: 100%; display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: baseline; text-align: left; background: none; border: 0; color: var(--fog); font: 500 15px/1.4 'DM Sans', sans-serif; padding: 11px 12px; border-radius: var(--r-md); cursor: pointer; }
.lx-step:hover { background: rgba(255, 255, 255, .04); }
.lx-step-t { color: var(--mist); font-size: 13px; font-variant-numeric: tabular-nums; }
.lx-step-body { display: none; padding: 0 14px 14px 70px; color: var(--mist); font-size: 14.5px; line-height: 1.55; }
.lx-steps li.is-past .lx-step-title { color: var(--mist); }
.lx-steps li.is-active { background: rgba(127, 227, 177, .08); box-shadow: inset 2px 0 0 var(--signal); }
.lx-steps li.is-active .lx-step-t { color: var(--signal); }
.lx-steps li.is-active .lx-step-title { color: #fff; }
.lx-steps li.is-active .lx-step-body { display: block; }

.lx-mini-count { color: var(--mist); font-size: 14px; padding: 6px 12px 2px; }
.lx-mini h3 { font-size: 13px; font-weight: 600; color: var(--mist); padding: 16px 12px 6px; }
.lx-mini ol { list-style: none; position: relative; }
.lx-mini ol::before { content: ''; position: absolute; left: 22px; top: 14px; bottom: 14px; width: 2px; background: var(--ink-3); }
.lx-mini a { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px 8px 15px; border-radius: var(--r-sm); text-decoration: none; color: var(--fog); font-size: 14.5px; line-height: 1.35; }
.lx-mini a:hover { background: rgba(255, 255, 255, .04); }
.lx-mini .lx-node { width: 12px; height: 12px; background: var(--ink-2); border-color: #4A5C55; }
.lx-mini .is-done .lx-node { background: var(--signal); border-color: var(--signal); }
.lx-mini .is-done .lx-node::after { left: 2px; top: -1px; border-color: var(--ink); }
.lx-mini .is-part .lx-node { background: linear-gradient(90deg, var(--signal) 50%, var(--ink-2) 50%); border-color: var(--signal); }
.lx-mini .is-here a { background: rgba(127, 227, 177, .1); color: #fff; font-weight: 600; }
.lx-mini .is-here .lx-node { border-color: #fff; box-shadow: 0 0 0 3px rgba(127, 227, 177, .3); }
.lx-mini .is-done .lx-mini-title { color: var(--mist); }
.lx-mini-d { color: var(--mist); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* up next overlay */
.lx-upnext { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(13, 19, 17, .78); backdrop-filter: blur(6px); }
.lx-upnext-card { width: min(440px, 88%); text-align: left; }
.lx-upnext-card > p { color: var(--signal); font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.lx-upnext-card h2 { font-family: 'Playfair Display', serif; color: #fff; font-size: 30px; line-height: 1.15; }
.lx-upnext-link { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; color: #fff; text-decoration: none; font-size: 19px; font-weight: 600; line-height: 1.3; }
.lx-upnext-link img { width: 150px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.lx-upnext-link b { color: var(--mist); font-weight: 500; margin-right: 4px; }
.lx-upnext-actions { display: flex; gap: 10px; margin-top: 22px; }

.lx-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 16px; background: var(--fog); color: var(--ink); padding: 12px 14px 12px 20px; border-radius: 999px; font-size: 15px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.lx-toast button { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: 600 14px 'DM Sans', sans-serif; cursor: pointer; }

/* ---------- documents ---------- */
.lx-doc { background: var(--paper); color: var(--text); padding: 44px 0 80px; flex: 1; }
.lx-doc-title { font-family: 'Playfair Display', serif; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; margin-top: 12px; font-weight: 700; }
.lx-doc-lede { margin-top: 10px; font-size: 18px; color: var(--muted); max-width: 64ch; }
.lx-doc-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 16px; }
.lx-doc-bar span { color: var(--muted); font-size: 14px; }
.lx-pdf { width: 100%; height: 80vh; border: 1px solid var(--rule); border-radius: var(--r-lg); background: #fff; }
.lx-docimg { max-width: 100%; border-radius: var(--r-lg); margin-top: 24px; }
.lx-notes-paper { background: var(--card); border-color: var(--rule); color: var(--text); }

/* ---------- empty + footer ---------- */
.lx-empty { max-width: 560px; margin: 12vh auto; text-align: center; padding: 0 24px; }
.lx-empty h1 { font-family: 'Playfair Display', serif; font-size: 36px; line-height: 1.15; color: inherit; }
.lx-empty p { margin-top: 12px; color: var(--muted); }
.th-ink .lx-empty p { color: var(--mist); }
.lx-empty .lx-btn { margin-top: 12px; }
.lx-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 40px 26px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); background: var(--paper); }
.th-ink .lx-foot { background: var(--ink); color: var(--mist); border-top-color: var(--ink-3); }
body.th-ink:has(.lx-paper) .lx-foot { background: var(--paper); color: var(--muted); border-top-color: var(--rule); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lx-notch.here { animation: lx-glow 2.4s ease-in-out infinite; }
  @keyframes lx-glow { 50% { box-shadow: 0 0 0 6px rgba(127, 227, 177, .12); } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .lx-theater { grid-template-columns: 1fr; }
  .lx-rail { position: static; max-height: 70vh; }
  .lx-feature { grid-template-columns: 1fr; gap: 24px; }
  .lx-course { grid-template-columns: 1fr; gap: 20px; }
  .lx-course-body { padding: 0 6px 6px; }
}
@media (max-width: 720px) {
  .lx-nav { padding: 0 16px; height: 58px; }
  .lx-brand img { height: 24px; }
  .lx-brand span { display: none; }
  .lx-links { gap: 16px; }
  .lx-links > a { font-size: 14px; }
  .lx-wrap { padding: 0 18px; }
  .lx-hero { padding: 40px 0 48px; }
  .lx-paper { padding: 44px 0 64px; }
  .lx-route { gap: 6px; }
  .lx-route-label { display: none; }
  .lx-theater { padding: 0 0 48px; gap: 20px; }
  .lx-player { border-radius: 0; box-shadow: none; }
  .lx-lesson-head, .lx-recap, .lx-rail { margin-left: 16px; margin-right: 16px; }
  .lx-lesson-head { padding: 18px 0 0; }
  .lx-lesson-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .lx-lesson-actions .lx-check { grid-column: 1 / -1; justify-self: start; }
  .lx-lesson-actions .lx-spacer { display: none; }
  .lx-lesson-actions .lx-btn:only-of-type { grid-column: 1 / -1; }
  .lx-lesson a { grid-template-columns: 30px 112px minmax(0, 1fr); gap: 12px; }
  .lx-lessons::before { left: 14px; }
  .lx-mod-head { grid-template-columns: 30px 1fr; gap: 12px; }
  .lx-mod-n { width: 30px; height: 30px; font-size: 15px; }
  .lx-lesson-title { font-size: 16px; }
  .lx-lesson-goal { display: none; }
  .lx-course-foot { flex-direction: column; align-items: stretch; }
  .lx-upnext-link { grid-template-columns: 96px 1fr; font-size: 16px; }
  .lx-upnext-link img { width: 96px; }
  .lx-foot { padding: 18px; }
}

/* ---------- sign-in ---------- */
.lx-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100vh - 64px - 64px); }
.lx-auth-art { background: var(--ink); padding: 9vh 6vw 8vh; display: flex; flex-direction: column; justify-content: center; gap: 36px; border-right: 1px solid var(--ink-3); }
.lx-auth-line { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.06; letter-spacing: -.015em; color: #fff; max-width: 13ch; }
.lx-auth-route { display: flex; gap: 12px; max-width: 520px; }
.lx-auth-route .lx-notch { height: 5px; }
.lx-auth-route .lx-notch.here { height: 12px; }
.lx-auth-sub { color: var(--mist); font-size: 17px; max-width: 42ch; }
.lx-auth-panel { background: var(--paper); color: var(--text); display: grid; place-items: center; padding: 48px 28px; }
.lx-auth-panel .pt-auth { margin: 0; width: 100%; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 38px 36px; box-shadow: 0 24px 60px rgba(23, 32, 28, .07); }
.lx-auth-panel .pt-auth-wide { max-width: 600px; }
.lx-auth-panel .pt-tag { display: none; }
.lx-auth-panel .pt-h1 { font-weight: 700; font-size: 34px; }
.lx-auth-panel .pt-sub { color: var(--muted); }
.lx-auth-panel .pt-btn { height: 48px; border-radius: 999px; background: var(--ink); border-color: var(--ink); font-size: 15px; }
.lx-auth-panel .pt-btn:hover { background: var(--forest); border-color: var(--forest); }
.lx-auth-panel input:focus { border-color: var(--forest); }
.lx-auth-panel .pt-alt a { color: var(--forest); font-weight: 600; }
body.th-ink:has(.lx-auth) .lx-foot { background: var(--paper); color: var(--muted); border-top-color: var(--rule); }
@media (max-width: 900px) {
  .lx-auth { grid-template-columns: 1fr; }
  .lx-auth-art { padding: 40px 22px 36px; gap: 22px; border-right: 0; }
  .lx-auth-line { font-size: 34px; }
  .lx-auth-sub { display: none; }
  .lx-auth-panel { padding: 28px 16px 48px; }
  .lx-auth-panel .pt-auth { padding: 28px 22px; }
}
body { font-variant-numeric: lining-nums; }

/* before you start */
.lx-before { margin-top: 30px; padding: 4px 0 0 22px; border-left: 2px solid var(--signal); }
.lx-before h2 { font-size: 15px; font-weight: 600; color: var(--signal); margin-bottom: 8px; }
.lx-before ul { list-style: none; display: grid; gap: 6px; }
.lx-before li { color: var(--fog); }
.lx-before a { color: #fff; text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.lx-before a:hover { color: var(--signal); }
.lx-before + .lx-recap { margin-top: 26px; }
@media (max-width: 720px) { .lx-before { margin-left: 16px; margin-right: 16px; } }
