/* ==========================================================================
   Abler Learning Center — scoped styles built on the real Grit design system
   Tokens lifted verbatim from the Grit colors_and_type.css.
   Everything here is class-scoped (.lc-*) so it never fights host chrome.
   ========================================================================== */

@font-face {
  font-family: 'Roobert';
  src: url('../brand/fonts/Roobert-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('../brand/fonts/Roobert-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roobert';
  src: url('../brand/fonts/Roobert-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --black: #070a0e;
  --white: #ffffff;
  --grey-1:#fcfcfd; --grey-2:#f7f8fa; --grey-3:#f2f4f7; --grey-4:#e5eaef;
  --grey-5:#c8d1dc; --grey-6:#b2bac5; --grey-7:#656f78; --grey-8:#3e4851;
  --grey-9:#2a323a; --grey-10:#161b20;

  --surface-primary:#ffffff;
  --surface-card:#f7f8fa;
  --surface-secondary:#f2f4f7;

  --text-black:#070a0e; --text-strong:#2a323a; --text-default:#3e4851;
  --text-placeholder:#656f78; --text-disabled:#b2bac5;

  --border:#f2f4f7; --border-darker:#e5eaef; --border-translucent:rgba(0,0,0,.08);

  --status-active:#0085fe; --status-active-light:#0a6ef21a;
  --status-positive:#3c825c; --status-positive-light:#3c825c1a;
  --status-warning:#e17a00; --status-negative:#e12d43;

  --groups-blue:#266bd6; --groups-turquoise:#5ed5f0; --groups-mint:#7de3b8;
  --groups-teal:#3c9f99; --groups-green:#4f9848; --groups-yellow:#edc14b;
  --groups-orange:#ed7f2f; --groups-red:#d8405b; --groups-pink:#df76c8;
  --groups-magenta:#a563bd; --groups-purple:#5654b7;

  --shadow-elev1: 0 8px 16px rgba(42,50,58,.06), 0 0 2px rgba(42,50,58,.2);
  --shadow-elev1-lg: 0 18px 48px rgba(42,50,58,.10), 0 0 2px rgba(42,50,58,.18);

  --radius-xs:4px; --radius-sm:8px; --radius-md:16px; --radius-lg:20px;
  --radius-xl:32px; --radius-pill:9999px;

  --font:'Roobert', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---------- Shared primitives (all class-scoped) ---------- */
.lc {
  font-family: var(--font);
  color: var(--text-strong);
  background: var(--surface-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lc *, .lc *::before, .lc *::after { box-sizing: border-box; }
.lc p { margin: 0; }
.lc h1, .lc h2, .lc h3, .lc h4, .lc h5 { margin: 0; font-weight: 600; }

.lc-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- Top bar (matches real Abler product chrome) ---------- */
.lc-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.85); backdrop-filter: saturate(140%) blur(8px);
}
.lc-brand { display: flex; align-items: center; gap: 12px; }
.lc-brand img { width: 28px; height: 28px; display: block; }
.lc-wordmark { font-size: 16px; font-weight: 600; color: var(--text-black); letter-spacing: -0.01em; }
.lc-crumb {
  font-size: 14px; color: var(--text-placeholder); font-weight: 400;
  padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--border-darker);
}
.lc-nav { display: flex; align-items: center; gap: 28px; }
.lc-nav a { font-size: 14px; color: var(--text-default); text-decoration: none; font-weight: 400; transition: color .12s; }
.lc-nav a:hover { color: var(--text-black); }
.lc-lang {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px;
  color: var(--text-placeholder); font-weight: 500;
}
.lc-lang .on { color: var(--text-black); }

/* ---------- Buttons ---------- */
.lc-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font); font-weight: 500; font-size: 14px; line-height: 1;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: opacity .12s, background .12s, color .12s; white-space: nowrap; text-decoration: none;
}
.lc-btn-primary { background: var(--text-black); color: #fff; }
.lc-btn-primary:hover { opacity: .9; }
.lc-btn-secondary { background: var(--surface-card); color: var(--text-strong); }
.lc-btn-secondary:hover { background: var(--border-darker); }
.lc-btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--border-darker); }
.lc-btn-ghost:hover { background: var(--surface-card); }
.lc-btn-lg { padding: 14px 22px; font-size: 15px; }

/* ---------- Eyebrow / labels ---------- */
.lc-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface-card); border: 1px solid var(--border-darker);
  padding: 6px 13px 6px 8px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 500; color: var(--text-strong);
}
.lc-eyebrow .new {
  background: var(--status-active); color: #fff; font-size: 10px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-pill);
}
.lc-overline {
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-placeholder);
}

/* ---------- Hero typography ---------- */
.lc-h1 {
  font-size: clamp(40px, 4.6vw, 60px); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.025em; color: var(--text-black);
}
.lc-h1 .accent { color: var(--status-active); }
.lc-lead {
  font-size: 18px; line-height: 1.55; color: var(--text-default); max-width: 30ch;
}

/* ---------- Search ---------- */
.lc-search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--border-darker);
  border-radius: var(--radius-pill); padding: 6px 6px 6px 18px;
  transition: border-color .12s, box-shadow .12s;
}
.lc-search:focus-within { border-color: var(--status-active); box-shadow: 0 0 0 4px var(--status-active-light); }
.lc-search svg { color: var(--text-placeholder); flex-shrink: 0; }
.lc-search input {
  flex: 1; border: 0; outline: 0; background: transparent; font-family: var(--font);
  font-size: 15px; padding: 12px 2px; color: var(--text-black);
}
.lc-search input::placeholder { color: var(--text-placeholder); }
.lc-search .lc-btn { padding: 12px 20px; }

/* ---------- Trust row ---------- */
.lc-trust { display: flex; align-items: center; gap: 22px; color: var(--text-placeholder); font-size: 13.5px; flex-wrap: wrap; }
.lc-trust b { color: var(--text-strong); font-weight: 600; }
.lc-trust .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--grey-5); }

/* ---------- Product-preview card ---------- */
.lc-pcard {
  background: #fff; border: 1px solid var(--border-darker); border-radius: var(--radius-md);
  box-shadow: var(--shadow-elev1-lg); overflow: hidden;
}
.lc-pcard-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); background: var(--surface-card);
}
.lc-pcard-head .ttl { font-size: 13px; font-weight: 500; color: var(--text-strong); }
.lc-pcard-head .pct { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-placeholder); font-family: var(--font-mono); }
.lc-pcard-body { padding: 10px; }
.lc-lesson { display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: var(--radius-sm); }
.lc-lesson.active { background: var(--surface-card); }
.lc-lesson-ico { width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; flex-shrink: 0; }
.lc-lesson-ico.done { background: var(--status-positive-light); color: var(--status-positive); }
.lc-lesson-ico.play { background: var(--status-active-light); color: var(--status-active); }
.lc-lesson-ico.todo { background: var(--surface-secondary); color: var(--text-placeholder); }
.lc-lesson .t { flex: 1; }
.lc-lesson .t b { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-strong); }
.lc-lesson .t span { font-size: 12px; color: var(--text-placeholder); }
.lc-lesson .p { font-size: 12px; font-weight: 500; color: var(--text-placeholder); font-family: var(--font-mono); }
.lc-progress-track { height: 5px; border-radius: 99px; background: var(--surface-secondary); margin: 4px 12px 0; overflow: hidden; }
.lc-progress-fill { height: 100%; background: var(--status-active); border-radius: 99px; }

/* floating badge */
.lc-badge-float {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--border-darker); border-radius: var(--radius-md);
  box-shadow: var(--shadow-elev1-lg); padding: 11px 14px; font-size: 12.5px; font-weight: 500; color: var(--text-strong);
}
.lc-badge-float .ico { width: 28px; height: 28px; border-radius: var(--radius-sm); display: grid; place-items: center; color: #fff; flex-shrink: 0; }

/* ---------- Role cards (variation C + chips) ---------- */
.lc-role-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fff; border: 1px solid var(--border-darker); border-radius: var(--radius-pill);
  padding: 8px 15px; font-size: 13.5px; font-weight: 500; color: var(--text-strong);
  transition: border-color .12s, color .12s;
}
.lc-role-chip:hover { border-color: var(--status-active); color: var(--status-active); }
.lc-role-chip .d { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Track cards: keep rows balanced at every width — 4 across on desktop,
   2x2 on tablet, stacked on phones. auto-fit alone leaves a 3+1 row. */
.lc-trackgrid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1099px) { .lc-trackgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px)  { .lc-trackgrid { grid-template-columns: 1fr; } }

.lc-rolecard {
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  background: var(--surface-primary); border: 1px solid transparent; border-radius: var(--radius-md);
  box-shadow: var(--shadow-elev1);
  padding: 24px 22px; transition: border-color .15s, box-shadow .15s, transform .15s; text-decoration: none;
  color: var(--text-default);
}
.lc-rolecard:hover { border-color: var(--status-active); box-shadow: var(--shadow-elev1-lg); transform: translateY(-3px); }
.lc-rolecard .ico { width: 42px; height: 42px; border-radius: var(--radius-sm); display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.lc-rolecard .lab { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-placeholder); }
.lc-rolecard h3 { font-size: 19px; font-weight: 600; color: var(--text-black); margin: 7px 0 6px; letter-spacing: -0.01em; }
.lc-rolecard p { font-size: 13.5px; color: var(--text-default); line-height: 1.5; }
.lc-rolecard .meta {
  display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border-darker); font-size: 12.5px; color: var(--text-placeholder);
}
.lc-rolecard .meta span { display: inline-flex; align-items: center; gap: 6px; }
.lc-rolecard .go {
  position: absolute; top: 22px; right: 22px; color: var(--text-disabled); transition: color .15s, transform .15s;
}
.lc-rolecard:hover .go { color: var(--status-active); transform: translate(2px,-2px); }

/* popular searches */
.lc-pops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-pops .lbl { font-size: 13px; color: var(--text-placeholder); }
.lc-pops a {
  font-size: 13px; color: var(--text-default); text-decoration: none; background: var(--surface-card);
  border: 1px solid var(--border); padding: 5px 12px; border-radius: var(--radius-pill);
  transition: border-color .12s, color .12s; cursor: pointer;
}
.lc-pops a:hover { border-color: var(--border-darker); color: var(--text-black); }

/* ==========================================================================
   FULL PAGE — sections beyond the hero
   ========================================================================== */

.lc-section { padding: 84px 0; }
.lc-section.tight { padding: 64px 0; }
.lc-section.soft { background: var(--surface-card); }

.lc-sechead {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.lc-sechead .h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; color: var(--text-black); max-width: 20ch; }
.lc-sechead .sub { font-size: 15px; color: var(--text-default); margin-top: 8px; max-width: 44ch; }
.lc-seclink {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500;
  color: var(--text-strong); text-decoration: none; transition: gap .12s, color .12s;
}
.lc-seclink:hover { color: var(--status-active); gap: 9px; }

/* format eyebrow (Watch / Read) */
.lc-format {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-placeholder);
}
.lc-format .ic { width: 22px; height: 22px; border-radius: var(--radius-xs); display: grid; place-items: center; color: #fff; }
.lc-format.watch .ic { background: var(--status-active); }
.lc-format.read .ic { background: var(--text-strong); }

/* ---------- Help articles (the "read" track) ---------- */
.lc-kb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lc-kb-col {
  background: var(--surface-primary); border: 1px solid var(--border-darker); border-radius: var(--radius-md);
  padding: 8px 8px 10px; display: flex; flex-direction: column;
}
.lc-kb-col .colhead { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; }
.lc-kb-col .colhead .d { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.lc-kb-col .colhead b { font-size: 14px; font-weight: 600; color: var(--text-black); }
.lc-kb-col .colhead .n { margin-left: auto; font-size: 12px; color: var(--text-placeholder); }
.lc-art-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
  text-decoration: none; transition: background .12s;
}
.lc-art-row:hover { background: var(--surface-card); }
.lc-art-row .ai { color: var(--text-placeholder); flex-shrink: 0; display: grid; place-items: center; }
.lc-art-row .at { flex: 1; min-width: 0; }
.lc-art-row .at b { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-strong); }
.lc-art-row .at .meta { font-size: 12px; color: var(--text-placeholder); display: flex; align-items: center; gap: 7px; }
.lc-art-row .at .meta .both { display: inline-flex; align-items: center; gap: 4px; color: var(--status-active); }
.lc-art-row .chev { color: var(--text-disabled); flex-shrink: 0; transition: transform .12s, color .12s; }
.lc-art-row:hover .chev { color: var(--status-active); transform: translateX(2px); }
.lc-kb-col .colfoot {
  margin-top: auto; padding: 12px 14px 6px; border-top: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-strong); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.lc-kb-col .colfoot:hover { color: var(--status-active); }

/* ==========================================================================
   ROLE HUB — tabbed, role-driven (Watch + Read in one place)
   ========================================================================== */
.lc-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-card); border: 1px solid var(--border-darker); border-radius: var(--radius-pill); }
.lc-tab {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-family: var(--font);
  font-size: 14px; font-weight: 500; color: var(--text-default);
  background: transparent; border: 0; border-radius: var(--radius-pill); padding: 9px 18px;
  transition: background .12s, color .12s, box-shadow .12s;
}
.lc-tab .d { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.lc-tab:hover { color: var(--text-black); }
.lc-tab.on { background: var(--surface-primary); color: var(--text-black); box-shadow: var(--shadow-elev1); }

.lc-hub-head { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin: 30px 0 24px; }
.lc-hub-head .role-lab { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-placeholder); }
.lc-hub-head h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; color: var(--text-black); margin: 8px 0 8px; }
.lc-hub-head p { font-size: 15px; color: var(--text-default); max-width: 52ch; }
.lc-hub-head .stat { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--text-placeholder); }
.lc-hub-head .stat span { display: inline-flex; align-items: center; gap: 6px; }

.lc-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.lc-panel { background: var(--surface-primary); border: 1px solid var(--border-darker); border-radius: var(--radius-md); padding: 8px; }
.lc-panel .panelhead { display: flex; align-items: center; gap: 9px; padding: 14px 14px 12px; }
.lc-panel .panelhead .pic { width: 26px; height: 26px; border-radius: var(--radius-xs); display: grid; place-items: center; color: #fff; }
.lc-panel.watch .panelhead .pic { background: var(--status-active); }
.lc-panel.read .panelhead .pic { background: var(--text-strong); }
.lc-panel .panelhead b { font-size: 14px; font-weight: 600; color: var(--text-black); }
.lc-panel .panelhead .n { margin-left: auto; font-size: 12px; color: var(--text-placeholder); }

.lc-lrow { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: var(--radius-sm); text-decoration: none; transition: background .12s; }
.lc-lrow:hover { background: var(--surface-card); }
.lc-lrow .num { width: 20px; flex-shrink: 0; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-placeholder); font-family: var(--font-mono); }
.lc-lrow .lic { width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; flex-shrink: 0; background: var(--surface-secondary); color: var(--text-default); }
.lc-panel.watch .lc-lrow .lic { background: var(--status-active-light); color: var(--status-active); }
.lc-lrow .lt { flex: 1; min-width: 0; }
.lc-lrow .lt b { display: block; font-size: 14px; font-weight: 500; color: var(--text-strong); line-height: 1.3; }
.lc-lrow .lt span { font-size: 12px; color: var(--text-placeholder); display: inline-flex; align-items: center; gap: 6px; }
.lc-lrow .lt .both { display: inline-flex; align-items: center; gap: 4px; color: var(--status-active); }
.lc-lrow .chev { color: var(--text-disabled); flex-shrink: 0; transition: transform .12s, color .12s; }
.lc-lrow:hover .chev { color: var(--status-active); transform: translateX(2px); }
.lc-panel .panelfoot { padding: 13px 14px 7px; margin-top: 4px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-strong); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.lc-panel .panelfoot:hover { color: var(--status-active); }
.lc-catlabel {
  display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-placeholder);
}
.lc-catlabel:first-of-type { padding-top: 6px; }
.lc-catlabel .cn { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--text-disabled); }
.lc-panel.read.scroll { max-height: 560px; overflow: auto; }
.lc-panel.read.scroll::-webkit-scrollbar { width: 8px; }
.lc-panel.read.scroll::-webkit-scrollbar-thumb { background: var(--border-darker); border-radius: 99px; }

/* quiet topic strip */
.lc-tstrip { display: flex; flex-wrap: wrap; gap: 10px; }
.lc-tchip {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; cursor: pointer;
  background: var(--surface-primary); border: 1px solid var(--border-darker); border-radius: var(--radius-pill);
  padding: 9px 15px 9px 11px; transition: border-color .12s, box-shadow .12s;
}
.lc-tchip:hover { border-color: var(--status-active); box-shadow: var(--shadow-elev1); }
.lc-tchip .td { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.lc-tchip .tn { font-size: 13.5px; font-weight: 500; color: var(--text-strong); }
.lc-tchip .tc { font-size: 12px; color: var(--text-placeholder); }

@media (max-width: 860px) {
  .lc-hub { grid-template-columns: 1fr; }
  .lc-hub-head { grid-template-columns: 1fr; }
  .lc-tabs { width: 100%; justify-content: space-between; }
  .lc-tab { padding: 9px 10px; }
}

/* ---------- Popular courses ---------- */
.lc-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lc-course {
  display: flex; flex-direction: column; text-decoration: none; cursor: pointer;
  background: var(--surface-primary); border: 1px solid var(--border-darker);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lc-course:hover { box-shadow: var(--shadow-elev1); transform: translateY(-3px); border-color: var(--border-darker); }
.lc-course .thumb {
  position: relative; aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden;
  background: var(--grey-9);
}
.lc-course .thumb svg.art { color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.lc-course .thumb::after {
  content: ""; position: absolute; right: -30px; bottom: -50px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.lc-course .thumb .corner-line {
  position: absolute; left: -40px; top: -40px; width: 130px; height: 130px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 50%;
}
.lc-course .play-chip {
  position: absolute; z-index: 2; bottom: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(7,10,14,.55); color: #fff; font-size: 12px; font-weight: 500;
  padding: 5px 10px; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
}
.lc-course .badge {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  background: var(--surface-primary); color: var(--text-strong);
  font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-darker);
}
.lc-course .body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.lc-course h4 { font-size: 16px; font-weight: 600; color: var(--text-black); letter-spacing: -0.01em; margin-bottom: 7px; line-height: 1.3; }
.lc-course p { font-size: 13.5px; color: var(--text-default); line-height: 1.5; flex: 1; }
.lc-course .meta {
  display: flex; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-placeholder);
}
.lc-course .meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Browse by topic ---------- */
.lc-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lc-topic {
  display: flex; flex-direction: column; gap: 11px; text-decoration: none; cursor: pointer;
  background: var(--surface-primary); border: 1px solid var(--border-darker);
  border-radius: var(--radius-md); padding: 22px 20px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lc-topic:hover { box-shadow: var(--shadow-elev1); transform: translateY(-2px); }
.lc-topic .ico { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; }
.lc-topic h5 { font-size: 15px; font-weight: 600; color: var(--text-black); }
.lc-topic p { font-size: 13px; color: var(--text-default); line-height: 1.45; }
.lc-topic .count { margin-top: auto; padding-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-placeholder); }

/* ---------- Testimonial ---------- */
.lc-quote {
  background: var(--black); color: #fff; border-radius: var(--radius-xl);
  padding: 56px 56px; position: relative; overflow: hidden;
}
.lc-quote .mark {
  position: absolute; top: -10px; left: 36px; font-family: Georgia, serif; font-size: 220px;
  line-height: 1; color: var(--status-active); opacity: .22; pointer-events: none;
}
.lc-quote blockquote {
  position: relative; z-index: 1; margin: 0 0 28px; max-width: 34ch;
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em;
}
.lc-quote .author { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.lc-quote .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; font-size: 15px; }
.lc-quote .author b { display: block; font-weight: 600; font-size: 15px; }
.lc-quote .author span { color: rgba(255,255,255,.6); font-size: 13.5px; }

/* ---------- CTA ---------- */
.lc-cta {
  background: var(--surface-card); border: 1px solid var(--border-darker);
  border-radius: var(--radius-xl); padding: 48px 48px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.lc-cta h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; color: var(--text-black); margin-bottom: 10px; }
.lc-cta p { font-size: 15px; color: var(--text-default); line-height: 1.6; }
.lc-cta .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.lc-cta-mail { color: var(--status-active); font-weight: 500; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--status-active) 40%, transparent); }
.lc-cta-mail:hover { border-bottom-color: var(--status-active); }
.lc-inline-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; vertical-align: -6px;
  border: 1px solid var(--text-placeholder); background: var(--surface-primary);
  color: var(--text-black);
}

/* ---------- Footer ---------- */
.lc-footer { background: var(--surface-primary); border-top: 1px solid var(--border-darker); padding: 56px 0 32px; }
.lc-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.lc-foot-brand p { font-size: 13.5px; color: var(--text-default); line-height: 1.6; max-width: 320px; margin-top: 14px; }
.lc-foot-col h6 { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-placeholder); margin: 0 0 14px; }
.lc-foot-col a { display: block; font-size: 13.5px; color: var(--text-default); text-decoration: none; padding: 4px 0; transition: color .12s; }
.lc-foot-col a:hover { color: var(--text-black); }
.lc-foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-placeholder);
}
.lc-foot-bottom .lang a { color: var(--text-strong); text-decoration: none; }
.lc-foot-bottom .lang a:hover { color: var(--status-active); }

/* ---------- Search dropdown ---------- */
.lc-search-wrap { position: relative; }
.lc-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 40;
  background: var(--surface-primary); border: 1px solid var(--border-darker);
  border-radius: var(--radius-md); box-shadow: var(--shadow-elev1-lg); overflow: hidden;
  text-align: left;
}
.lc-results .grp { padding: 9px 16px 5px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-placeholder); }
.lc-result {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; text-decoration: none;
}
.lc-result:hover, .lc-result.act { background: var(--surface-card); }
.lc-result .ri { width: 30px; height: 30px; border-radius: var(--radius-xs); display: grid; place-items: center; flex-shrink: 0; background: var(--surface-secondary); color: var(--text-placeholder); }
.lc-result .rt b { display: block; font-size: 14px; font-weight: 500; color: var(--text-black); }
.lc-result .rt span { font-size: 12px; color: var(--text-placeholder); }
.lc-result mark { background: var(--status-active-light); color: var(--status-active); border-radius: 3px; padding: 0 1px; }
.lc-result .role-tag { margin-left: auto; font-size: 11px; color: var(--text-placeholder); white-space: nowrap; }
.lc-result .typ {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 11px; font-weight: 500; color: var(--text-placeholder);
  border: 1px solid var(--border-darker); border-radius: var(--radius-pill); padding: 3px 9px;
}
.lc-result .typ.course { color: var(--status-active); border-color: var(--status-active-light); }
.lc-results .empty { padding: 22px 16px; text-align: center; font-size: 13.5px; color: var(--text-placeholder); }
.lc-results .empty b { color: var(--text-strong); font-weight: 500; }
.lc-results .recent-clear { float: right; font-size: 11px; color: var(--status-active); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 500; }

/* density */
.lc[data-density="compact"] .lc-section { padding: 60px 0; }
.lc[data-density="comfy"] .lc-section { padding: 104px 0; }

/* dark mode (manual, via [data-theme="dark"] on .lc) */
.lc[data-theme="dark"] {
  --surface-primary:#070a0e; --surface-card:#161b20; --surface-secondary:#0f141a;
  --text-black:#ffffff; --text-strong:#f7f8fa; --text-default:#aeb6c0; --text-placeholder:#7e8893; --text-disabled:#3e4851;
  --border:#1c232b; --border-darker:#2a323a; --border-translucent:rgba(255,255,255,.14);
  --status-positive-light:#3c825c33; --status-active-light:#0a6ef233;
  --shadow-elev1: 0 8px 16px rgba(0,0,0,.4), 0 0 2px rgba(0,0,0,.6);
  --shadow-elev1-lg: 0 18px 48px rgba(0,0,0,.5), 0 0 2px rgba(0,0,0,.5);
}
.lc[data-theme="dark"] .lc-topbar { background: rgba(7,10,14,.8); }
.lc[data-theme="dark"] .lc-search { background: var(--surface-card); }
.lc[data-theme="dark"] .lc-quote { background: #000; border: 1px solid var(--border-darker); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .lc-courses { grid-template-columns: 1fr 1fr; }
  .lc-topics { grid-template-columns: 1fr 1fr; }
  .lc-cta { grid-template-columns: 1fr; }
  .lc-cta .actions { justify-content: flex-start; }
  .lc-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .lc-container { padding: 0 20px; }
  .lc-nav > a:not(.lc-btn) { display: none; }
  .lc-courses, .lc-topics { grid-template-columns: 1fr; }
  .lc-foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .lc-section { padding: 56px 0; }
}

.lc-hub-head .note{margin-top:8px;font-size:13px;color:var(--text-placeholder);max-width:52ch}

.lc-panel .panelnote{margin:0;padding:12px 18px 14px;font-size:13px;line-height:1.5;color:var(--text-placeholder);border-bottom:1px solid var(--border)}
.lc-chap{border-bottom:1px solid var(--border)}
.lc-chap:last-of-type{border-bottom:none}
.lc-chap .chaphead{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;width:100%;padding:14px 18px;background:none;border:none;cursor:pointer;text-align:left;font:inherit;color:inherit;transition:background 120ms}
.lc-chap .chaphead:hover{background:var(--surface-card)}
.lc-chap .num{display:grid;place-items:center;width:24px;height:24px;border-radius:9999px;background:var(--border-darker);color:var(--text-strong);font-size:12px;font-weight:600}
.lc-chap.on .num{background:var(--status-active);color:#fff}
.lc-chap .ct{display:flex;flex-direction:column;gap:3px;min-width:0}
.lc-chap .ct b{font-size:14px;font-weight:500;color:var(--text-strong)}
.lc-chap .ct span{font-size:12px;color:var(--text-placeholder)}
.lc-chap .tog{display:grid;place-items:center;color:var(--text-placeholder);transform:rotate(90deg);transition:transform 120ms}
.lc-chap.on .tog{transform:rotate(-90deg);color:var(--status-active)}
.lc-chap .chapbody{padding:0 18px 18px 56px}
.lc-chap .chapbody .lead{margin:0 0 10px;font-size:13px;line-height:1.55;color:var(--text-default)}
.lc-chap .chapbody ul{margin:0;padding:0;list-style:none;display:grid;gap:7px}
.lc-chap .chapbody li{position:relative;padding-left:14px;font-size:13px;line-height:1.5;color:var(--text-default)}
.lc-chap .chapbody li::before{content:"";position:absolute;left:0;top:7px;width:5px;height:5px;border-radius:9999px;background:var(--border-darker)}

/* ---- e-learning: player stage + curriculum ---- */
.lc-elearn{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:18px;align-items:start}
.lc-stage{background:var(--surface-card);border:1px solid var(--border);border-radius:16px;overflow:hidden}
.lc-stage .screen{position:relative;aspect-ratio:16/9;background:var(--text-black);display:grid;place-items:center}
.lc-stage .screen .wm{position:absolute;left:16px;top:16px;width:26px;height:26px;border-radius:6px;opacity:.55;mix-blend-mode:screen}
.lc-stage .screen .play{position:absolute;display:grid;place-items:center;width:64px;height:64px;border-radius:9999px;background:rgba(255,255,255,.14);color:#fff;padding-left:4px;cursor:pointer;transition:background 120ms}
.lc-stage .screen .play:hover{background:var(--status-active)}
.lc-stage .screen .dur{position:absolute;right:14px;bottom:26px;font-family:var(--font-mono,ui-monospace,monospace);font-size:12px;color:rgba(255,255,255,.7)}
.lc-stage .screen .chapters{position:absolute;left:14px;right:14px;bottom:14px;display:flex;gap:3px;height:4px}
.lc-stage .screen .tick{background:rgba(255,255,255,.22);border-radius:9999px;cursor:pointer;transition:background 120ms}
.lc-stage .screen .tick:hover{background:rgba(255,255,255,.45)}
.lc-stage .screen .tick.on{background:var(--status-active)}
.lc-stage .stagebody{padding:22px 24px 24px}
.lc-stage .crumb{font-size:11px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--text-placeholder)}
.lc-stage h3{margin:8px 0 8px;font-size:22px;font-weight:600;letter-spacing:-.02em;color:var(--text-black)}
.lc-stage .lead{margin:0;font-size:14px;line-height:1.55;color:var(--text-default);max-width:56ch}
.lc-stage .inthis{margin:20px 0 10px;font-size:11px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--text-placeholder)}
.lc-stage .points{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}
.lc-stage .points li{display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:start;font-size:13px;line-height:1.45;color:var(--text-default)}
.lc-stage .points .b{display:grid;place-items:center;width:16px;height:16px;margin-top:1px;border-radius:9999px;background:var(--border-darker);color:var(--text-strong)}
.lc-stage .stagenav{display:flex;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}
.lc-stage .stagenav button{font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.lc-stage .stagenav button:disabled{opacity:.4;cursor:default}
.lc-stage .stagenav button:last-child{margin-left:auto}
.lc-curric{background:var(--surface-primary);border:1px solid var(--border-darker);border-radius:16px;overflow:hidden;max-height:none}
.lc-curric .cpart+.cpart{border-top:1px solid var(--border-darker)}
.lc-curric .chead{display:flex;align-items:baseline;gap:10px;padding:16px 18px 6px}
.lc-curric .chead b{font-size:13px;font-weight:600;color:var(--text-black)}
.lc-curric .chead .n{margin-left:auto;font-size:11px;color:var(--text-placeholder);white-space:nowrap}
.lc-curric .cnote{margin:0;padding:0 18px 12px;font-size:12px;line-height:1.5;color:var(--text-placeholder)}
.lc-curric .crow{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:100%;padding:10px 18px;background:none;border:none;border-top:1px solid var(--border);text-align:left;font:inherit;color:inherit;cursor:pointer;transition:background 120ms}
.lc-curric .crow:hover{background:var(--surface-card)}
.lc-curric .crow.on{background:var(--surface-card)}
.lc-curric .crow .num{display:grid;place-items:center;width:22px;height:22px;border-radius:9999px;background:var(--border-darker);color:var(--text-strong);font-size:11px;font-weight:600}
.lc-curric .crow.on .num{background:var(--status-active);color:#fff;padding-left:2px}
.lc-curric .crow .ct{display:flex;flex-direction:column;gap:2px;min-width:0}
.lc-curric .crow .ct b{font-size:13px;font-weight:500;color:var(--text-strong)}
.lc-curric .crow.on .ct b{color:var(--text-black);font-weight:600}
.lc-curric .crow .ct span{font-size:11px;color:var(--text-placeholder)}
.lc-curric .crow .min{font-size:11px;color:var(--text-placeholder);white-space:nowrap}
@media (max-width:980px){.lc-elearn{grid-template-columns:1fr}.lc-stage .points{grid-template-columns:1fr}}

.lc-stage .screen .frame{position:absolute;inset:0;width:100%;height:100%;border:none;background:var(--text-black)}
.lc-stage .screen .play.off{opacity:.35;cursor:default}
.lc-stage .screen .play.off:hover{background:rgba(255,255,255,.14)}
.lc-stage .screen .nolink{position:absolute;bottom:34px;font-size:12px;color:rgba(255,255,255,.5)}

.lc-brand img{border-radius:8px}
.lc-stage .screen .play.off{opacity:1;background:rgba(255,255,255,.1);color:rgba(255,255,255,.55)}
.lc-stage .screen .play.off:hover{background:rgba(255,255,255,.1)}

.lc-overlink{display:inline-flex;align-items:center;gap:9px;margin-top:18px;padding:8px 14px 8px 10px;background:none;border:1px solid var(--border-darker);border-radius:9999px;font:inherit;font-size:13px;font-weight:500;color:var(--text-strong);cursor:pointer;transition:background 120ms,border-color 120ms}
.lc-overlink:hover{background:var(--surface-primary);border-color:var(--text-placeholder)}
.lc-overlink .p{display:grid;place-items:center;width:20px;height:20px;border-radius:9999px;background:var(--status-active);color:#fff;padding-left:2px}

/* ---------- key concept marker ---------- */
.crow .keypill{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:2px 8px 2px 6px;
  border-radius:var(--radius-pill);font-size:11px;font-weight:600;letter-spacing:.01em;
  white-space:nowrap;vertical-align:1px}
.crow .keypill.key{background:#fdf3d4;color:#6b5200}
.crow .keypill.note{background:#e7effb;color:#2a4f86}
.crow .keypill.qa{background:#e4f3ee;color:#1f6a52}
.lc-stage .keynote{display:flex;align-items:flex-start;gap:10px;margin:10px 0 2px;padding:11px 13px;
  border-radius:var(--radius-sm);font-size:13.5px;line-height:1.5;color:var(--text-strong);border:1px solid}
.lc-stage .keynote.key{border-color:#e3c969;background:#fdf7e3}
.lc-stage .keynote.note{border-color:#c6d8f2;background:#f1f6fd}
.lc-stage .keynote b{display:block;font-size:12px;font-weight:600;letter-spacing:.06em;
  text-transform:uppercase;margin-bottom:3px}
.lc-stage .keynote.key b{color:#6b5200}
.lc-stage .keynote.note b{color:#2a4f86}
.lc-stage .keynote .ki{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;
  flex-shrink:0;margin-top:1px}
.lc-stage .keynote.key .ki{background:var(--groups-yellow);color:#4a3a00}
.lc-stage .keynote.note .ki{background:#2f6fd0;color:#fff}


/* Small screens: let the track tabs scroll rather than widen the page, and
   stop a long "Next · <lesson>" label from pushing past the viewport. */
@media (max-width: 620px){
  .lc-tabs{max-width:100%;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;justify-content:flex-start}
  .lc-tabs::-webkit-scrollbar{display:none}
  .lc-tab{flex:0 0 auto;white-space:nowrap}
  .lc-stage .nav .lc-btn{max-width:60vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lc-stage .lc-btn{max-width:62vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* language switcher */
.lc-lang{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:var(--radius-pill);
  background:var(--surface-card);border:1px solid var(--border-darker);font-size:12.5px;font-weight:500}
.lc-lang a,.lc-lang span{display:inline-grid;place-items:center;min-width:30px;height:24px;padding:0 7px;
  border-radius:var(--radius-pill);text-decoration:none;color:var(--text-placeholder);letter-spacing:.02em}
.lc-lang a:hover{color:var(--text-black);background:var(--surface-primary)}
.lc-lang .on{background:var(--surface-primary);color:var(--text-black);box-shadow:var(--shadow-elev1)}
@media (max-width:620px){ .lc-lang{font-size:12px} .lc-lang a,.lc-lang span{min-width:26px;height:22px;padding:0 6px} }

/* progress: watched ticks and the per-track bar */
.crow .num.done{background:var(--status-positive-light);color:var(--status-positive)}
.lc-prog{display:inline-flex;align-items:center;gap:8px}
.lc-prog .bar{display:inline-block;width:64px;height:5px;border-radius:9999px;background:var(--border-darker);overflow:hidden}
.lc-prog .bar > span{display:block;height:100%;background:var(--status-positive);border-radius:9999px;transition:width .25s}

/* ── questions about a chapter ─────────────────────────────────────── */
.lc-qa { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-darker); }
.lc-qa .qhead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  color: var(--text-strong); }
.lc-qa .qhead b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.lc-qa .qempty { margin: 0 0 14px; font-size: 13.5px; color: var(--text-placeholder); }
.lc-qa .qlist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.lc-qa .qlist li { display: grid; gap: 4px; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--surface-secondary); }
.lc-qa .qlist li b { font-size: 13.5px; font-weight: 600; color: var(--text-black); }
.lc-qa .qlist li span { font-size: 13.5px; color: var(--text-default); line-height: 1.55; }
@media (max-width: 720px) { .lc-qa .lc-btn { width: 100%; justify-content: center; } }
