/* Live courses and the learning portal (/live-courses, /learn, /teach,
   /admin/live-courses): a denser, console-like layer on top of style.css.
   Square corners, hairline rules, mono labels, numbers before words. */
.lx {
  --lx-line: #222a3c;
  --lx-line-2: #2c364d;
  --lx-panel: #11161f;
  --lx-panel-2: #0d1219;
  --lx-muted: #8b95ab;
  --lx-faint: #5f6981;
  --lx-ok: #37c88a;
  --lx-warn: #f2b44c;
  --lx-bad: #ff6b6b;
  --lx-live: #ff6fa5;
  --lx-r: 6px;
  --lx-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  font-size: 15px;
}
.lx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lx-sec { padding: 40px 0; border-top: 1px solid var(--lx-line); }
.lx-sec:first-of-type { border-top: 0; }
.lx-label { font-family: var(--lx-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lx-faint); }
.lx-h1 { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 10px 0 10px; }
.lx-h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin: 6px 0 18px; }
.lx-h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; margin: 0; }
.lx-sub { color: var(--lx-muted); font-size: 1.05rem; margin: 0; }
.lx-muted { color: var(--lx-muted); }
.lx-small { font-size: 13px; }
.lx-mono { font-family: var(--lx-mono); }
.lx-crumbs { font-family: var(--lx-mono); font-size: 12px; color: var(--lx-faint); }
.lx-crumbs a { color: var(--lx-muted); }

/* Icons (views/partials/lx-icons.ejs) */
.lx-i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.lx-i-lg { width: 20px; height: 20px; }

/* Chips, pills */
.lx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--lx-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lx-muted); border: 1px solid var(--lx-line-2); border-radius: 4px; padding: 4px 8px; white-space: nowrap; }
.lx-chip-accent { color: var(--accent); border-color: rgba(255, 111, 165, 0.45); }
.lx-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--lx-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.05); color: var(--lx-muted); white-space: nowrap; }
.lx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.lx-pill.ok { color: var(--lx-ok); background: rgba(55, 200, 138, 0.1); }
.lx-pill.warn { color: var(--lx-warn); background: rgba(242, 180, 76, 0.1); }
.lx-pill.bad { color: var(--lx-bad); background: rgba(255, 107, 107, 0.1); }
.lx-pill.live { color: var(--lx-live); background: rgba(255, 111, 165, 0.12); }
.lx-pill.live::before { animation: lx-pulse 1.4s ease-in-out infinite; }
.lx-pill.plain::before { display: none; }
@keyframes lx-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .lx-pill.live::before { animation: none; } }
.lx-skill { display: inline-block; font-size: 12.5px; color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--lx-line-2); border-radius: 4px; padding: 5px 9px; margin: 0 6px 6px 0; }

/* Panels */
.lx-panel { background: var(--lx-panel); border: 1px solid var(--lx-line); border-radius: var(--lx-r); }
.lx-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--lx-line); }
.lx-panel-b { padding: 16px; }
.lx-panel + .lx-panel { margin-top: 16px; }
.lx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.lx-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lx-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lx-sticky { position: sticky; top: 88px; }
@media (max-width: 960px) {
  .lx-grid { grid-template-columns: 1fr; }
  .lx-sticky { position: static; }
}
@media (max-width: 720px) {
  .lx-grid-2, .lx-grid-3 { grid-template-columns: 1fr; }
}

/* Key numbers */
.lx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border: 1px solid var(--lx-line); border-radius: var(--lx-r); background: var(--lx-panel-2); }
.lx-fact { padding: 14px 16px; border-right: 1px solid var(--lx-line); }
.lx-fact:last-child { border-right: 0; }
.lx-fact b { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.lx-fact span { font-family: var(--lx-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lx-faint); }
.lx-fact.warn b { color: var(--lx-warn); }
.lx-fact.ok b { color: var(--lx-ok); }

/* Tables */
.lx-table { width: 100%; border-collapse: collapse; }
.lx-table th { font-family: var(--lx-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lx-faint); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--lx-line); white-space: nowrap; }
.lx-table td { padding: 12px; border-bottom: 1px solid var(--lx-line); vertical-align: middle; }
.lx-table tr:last-child td { border-bottom: 0; }
.lx-table tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
.lx-table .num { font-family: var(--lx-mono); color: var(--lx-faint); width: 44px; }
.lx-table .right { text-align: right; }
.lx-scroll { overflow-x: auto; }
.lx-row-dim td { opacity: 0.5; }

/* Progress */
.lx-bar { height: 4px; background: rgba(255, 255, 255, 0.07); border-radius: 2px; overflow: hidden; }
.lx-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.lx-bar.ok > i { background: var(--lx-ok); }
.lx-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(closest-side, var(--lx-panel) 80%, transparent 81% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, 0.07) 0); }
.lx-ring b { font-family: var(--font-display); font-size: 1.35rem; }

/* Buttons */
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 4px; border: 1px solid var(--lx-line-2); background: transparent; color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.lx-btn:hover { border-color: var(--accent); }
.lx-btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #061018; border: 0; }
.lx-btn-primary:hover { box-shadow: var(--shadow-glow); }
.lx-btn-block { width: 100%; }
.lx-btn-sm { padding: 6px 10px; font-size: 13px; }
.lx-btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.lx-ib { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--lx-line-2); border-radius: 4px; color: var(--lx-muted); }
.lx-ib:hover { color: var(--text); border-color: var(--accent); }
.lx-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* Lists */
.lx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lx-checks li { display: flex; gap: 10px; align-items: flex-start; }
.lx-checks .lx-i { color: var(--lx-ok); margin-top: 3px; }
.lx-checks-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .lx-checks-2 { grid-template-columns: 1fr; } }
.lx-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.lx-kv dt { font-family: var(--lx-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lx-faint); padding-top: 2px; }
.lx-kv dd { margin: 0; }
.lx-rule { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--lx-line); font-size: 14px; }
.lx-rule:last-child { border-bottom: 0; }
.lx-rule .lx-i { color: var(--lx-faint); }
.lx-rule.done .lx-i { color: var(--lx-ok); }

/* Accordions (details) */
.lx-acc { border-bottom: 1px solid var(--lx-line); }
.lx-acc:last-child { border-bottom: 0; }
.lx-acc > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 20px; gap: 12px; align-items: center; padding: 14px 16px; }
.lx-acc > summary::-webkit-details-marker { display: none; }
.lx-acc > summary .chev { transition: transform 0.15s; color: var(--lx-faint); }
.lx-acc[open] > summary .chev { transform: rotate(90deg); }
.lx-acc-b { padding: 0 16px 16px 72px; color: var(--lx-muted); font-size: 14px; }
.lx-acc-b ul { margin: 0; padding-left: 18px; }
@media (max-width: 720px) { .lx-acc > summary { grid-template-columns: 32px minmax(0, 1fr) 20px; } .lx-acc > summary .lx-hide-sm { display: none; } .lx-acc-b { padding-left: 16px; } }
.lx-faq > summary { grid-template-columns: minmax(0, 1fr) 20px; }
.lx-faq .lx-acc-b { padding-left: 16px; }

/* Hero */
.lx-hero { padding: 36px 0 32px; border-bottom: 1px solid var(--lx-line); background:
  linear-gradient(180deg, rgba(255, 111, 165, 0.05), transparent 70%),
  repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.025) 79px 80px); }
.lx-price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.lx-price s { font-size: 1rem; font-weight: 400; color: var(--lx-faint); margin-left: 6px; }
.lx-enrol .lx-panel-b { display: grid; gap: 14px; }

/* Forms inside panels */
.lx input[type=text], .lx input[type=url], .lx input[type=tel], .lx input[type=number], .lx input[type=date], .lx input[type=time], .lx input[type=datetime-local], .lx select, .lx textarea {
  width: 100%; background: var(--lx-panel-2); border: 1px solid var(--lx-line-2); border-radius: 4px; color: var(--text); padding: 8px 10px; font: inherit; font-size: 14px; }
.lx label.lx-f { display: grid; gap: 6px; font-size: 13px; color: var(--lx-muted); }
.lx-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.lx select.lx-cell { padding: 4px 6px; font-size: 12px; width: auto; min-width: 58px; font-family: var(--lx-mono); }
.lx-note { font-size: 12.5px; color: var(--lx-faint); margin: 0; }
.lx-notice { border: 1px solid rgba(55, 200, 138, 0.35); background: rgba(55, 200, 138, 0.08); color: var(--text); border-radius: 4px; padding: 10px 14px; font-size: 14px; margin: 16px 0 0; }
.lx-error { border: 1px solid rgba(255, 107, 107, 0.4); background: rgba(255, 107, 107, 0.08); border-radius: 4px; padding: 10px 14px; font-size: 14px; }

/* Sub-navigation (trainer view) */
.lx-tabs { position: sticky; top: 64px; z-index: 5; display: flex; gap: 2px; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--lx-line); margin: 24px 0 0; }
.lx-tabs a { font-family: var(--lx-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lx-muted); padding: 12px 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.lx-tabs a:hover { color: var(--text); border-bottom-color: var(--accent); }
.lx-badge-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--accent); color: #061018; font-size: 11px; text-align: center; }

/* Cards (catalogue) */
.lx-card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; border: 1px solid var(--lx-line); border-radius: var(--lx-r); background: var(--lx-panel); overflow: hidden; }
.lx-card > div { padding: 22px 24px; }
.lx-card > div + div { border-left: 1px solid var(--lx-line); background: var(--lx-panel-2); display: grid; gap: 12px; align-content: start; }
@media (max-width: 760px) { .lx-card { grid-template-columns: 1fr; } .lx-card > div + div { border-left: 0; border-top: 1px solid var(--lx-line); } }

/* The credential mock */
.lx-cred { display: flex; gap: 16px; align-items: center; }
.lx-cred img { width: 64px; height: 64px; }
.lx-mono-av { width: 48px; height: 48px; border-radius: 4px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #061018; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }
.lx-legal { font-size: 12px; color: var(--lx-faint); margin-top: 24px; }
.lx-acc-5 > summary { grid-template-columns: 44px minmax(0, 1fr) auto auto 20px; }
@media (max-width: 720px) { .lx-acc-5 > summary { grid-template-columns: 32px minmax(0, 1fr) auto 20px; } }
.lx-matrix td, .lx-matrix th { text-align: center; padding: 8px 6px; }
.lx-matrix td:first-child, .lx-matrix th:first-child { text-align: left; padding-left: 12px; }
.lx [hidden] { display: none !important; }
.lx-grid > .lx-panel, .lx-grid-2 > .lx-panel, .lx-grid-3 > .lx-panel { margin-top: 0; }
