/* VTAlgo wireframes — shared design system.
   Single source of truth. Variables mirror docs/design/tokens.json and
   assets/zeus-v5.css (same vocabulary; vendored from the retired ZEUS v5
   master). No hardcoded colors in page markup — reference these vars. */

:root {
  /* surfaces & text */
  --bg-color: #020617;
  --card-bg: #0B1329;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* borders */
  --border-color: rgba(22, 217, 255, 0.18);
  --border-hover: rgba(22, 217, 255, 0.45);

  /* brand accents (= phase colors) */
  --cyan: #16D9FF;    /* Phase I  · ATENEA · signature */
  --green: #39FF88;   /* Phase II · AEGIS · Academy */
  --yellow: #FFD84D;  /* Books Factory */
  --violet: #B86BFF;  /* Phase III · APOLO · invitational */
  --orange: #FF8A3D;  /* Phase IV · ARTEMISA */
  --blue: #3F7BFF;    /* Phase V · ARES */
  --red: #FF3B30;     /* danger / risk */

  /* type */
  --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* layout */
  --container-max: 1200px;
  --container-x: 2.5rem;
  --interest-sidebar: 15.5rem;
  --interest-sidebar-gap: 1.25rem;

  /* motion */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* inline check mark (green) — used by course lists & player progress */
  --check-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2339FF88' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  /* free-preview play (green) & locked padlock (muted) — course curriculum */
  --play-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2339FF88'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  --lock-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

body.site {
  margin: 0;
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
}

/* ---- shared header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--container-x);
  backdrop-filter: blur(6px);
}
.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: nowrap;
}
.site-header__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-header__logo img { height: 80px; display: block; }
/* admin-only control in the public header — reads as a tool, not a nav item */
.site-nav__tools { display: flex; align-items: center; gap: 0.45rem; margin-left: 0.35rem; flex-shrink: 0; }
.site-nav__admin { padding: 0.28rem 0.6rem; border: 1px solid var(--cyan); border-radius: 999px; color: var(--cyan); font-size: 0.72rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav__admin:hover { background: rgba(22, 217, 255, 0.1); }
.site-nav { display: flex; align-items: center; gap: 1.15rem; flex-wrap: nowrap; min-width: 0; }
.site-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text-primary); }
.site-nav a.is-active { color: var(--cyan); }

.site-header__profile {
  flex-shrink: 0;
  margin-left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.lab-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
  border: 1px solid rgba(57, 255, 136, 0.35);
  border-radius: 999px;
  background: rgba(11, 19, 41, 0.72);
  max-width: min(22rem, 38vw);
}
.lab-profile__leave {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  white-space: nowrap;
}
.lab-profile__leave:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.lab-profile__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bg-color);
  background: var(--green);
  flex-shrink: 0;
}
.lab-profile__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.lab-profile__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lab-profile__email {
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lab-profile__status {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg-color);
  background: var(--green);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

/* ---- shared footer ---- */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem var(--container-x);
  text-align: center;
  background: var(--bg-color);
}
.site-footer__copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  display: inline;
}
.site-footer__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
.site-footer__links a {
  font-size: 0.78rem; color: var(--text-secondary); text-decoration: none;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.site-footer__links a:hover { color: var(--cyan); }
.site-footer__admin {
  display: inline-block; margin-top: 0.75rem; font-size: 0.72rem;
  color: var(--text-muted, #475569); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase;
}
.site-footer__admin:hover { color: var(--cyan); }

/* ---- also of interest (public pages; not player / auth / admin) ----
   Editorial widget column, Financial Hacker / Twenty Sixteen pattern:
   titled link lists in the page. Not a toast, not dismissible. */
.site-interest {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem var(--container-x) 3.5rem;
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}
.site-interest__widget { min-width: 0; }
.site-interest__title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}
.site-interest__list { list-style: none; margin: 0; padding: 0; }
.site-interest__list li + li { margin-top: 0.15rem; }
.site-interest__list a {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 0.28rem 0;
}
.site-interest__list a:hover { color: var(--cyan); }
@media (max-width: 800px) {
  .site-interest { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 2rem; }
}
/* Wide screens: sit in the right margin like a WordPress #secondary sidebar.
   Reserve that strip on the page so wide maps (LAB cmap 1480px) do not
   run under the column. */
@media (min-width: 1720px) {
  body.site:has(.site-interest) {
    padding-right: calc(var(--interest-sidebar) + var(--interest-sidebar-gap) + 1rem);
  }
  .site-interest {
    position: fixed;
    top: 7.5rem;
    right: var(--interest-sidebar-gap);
    bottom: 1.25rem;
    z-index: 20;
    width: var(--interest-sidebar);
    max-width: none;
    margin: 0;
    padding: 0 0 0 1.25rem;
    border-top: 0;
    border-left: 1px solid var(--border-color);
    grid-template-columns: 1fr;
    gap: 1.75rem;
    overflow: auto;
    background: var(--bg-color);
  }
}

/* ---- auth screens (register / login / checkout) ----
   Focused task layout: minimal logo-only chrome, single centered card.
   Academy accent = green. No public 5-item nav here (auth is Academy-only). */
.auth-header {
  padding: 2.25rem var(--container-x);
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}
.auth-header__logo img { height: 56px; display: block; }

.auth-wrap {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem var(--container-x) 5rem;
}
.auth-card {
  width: 100%;
  max-width: 30rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 30px rgba(57, 255, 136, 0.06);
  padding: 2.75rem;
}
.auth-card--wide { max-width: 40rem; }

.auth-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--green);
  display: block;
  margin-bottom: 0.85rem;
}
.auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.auth-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 2rem;
}
.lab-google {
  justify-content: center;
  margin: 1.25rem 0 0.5rem;
  min-height: 44px;
}
.lab-google:not([hidden]) { display: flex; }
.lab-google[hidden],
.lab-existing[hidden],
#lab-identity-form[hidden],
#lab-serial-need-account[hidden],
#lab-serial-form[hidden],
#lab-switch-wrap[hidden],
#lab-lead-existing[hidden],
#lab-lead-demo[hidden],
#lab-lead-google[hidden],
#lab-or[hidden],
#lab-start-over-wrap[hidden],
#lab-already-wrap[hidden],
#lab-serial-reset-wrap[hidden] { display: none !important; }
.lab-google > div { width: 100%; max-width: 360px; }
.lab-existing:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.5rem 0 0.25rem;
}
#lab-serial-need-account .auth-btn {
  width: auto;
  display: inline-block;
  padding: 0.75rem 1.35rem;
  text-decoration: none;
  margin-top: 0.35rem;
}
.lab-existing .auth-btn { width: auto; align-self: flex-start; padding: 0.75rem 1.35rem; text-decoration: none; }
.lab-or {
  text-align: center;
  margin: 1.35rem 0 1rem;
  color: var(--text-muted);
}

/* step indicator */
.auth-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  list-style: none;
  padding: 0;
}
.auth-steps li {
  flex: 1;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-top: 0.6rem;
  border-top: 2px solid var(--border-color);
}
.auth-steps li.is-active { color: var(--green); border-top-color: var(--green); }
.auth-steps li.is-done { color: var(--text-secondary); border-top-color: var(--green); }

/* fields */
.auth-field { margin-bottom: 1.25rem; }
.auth-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.auth-input {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  padding: 0.75rem 0.9rem;
  transition: var(--transition-smooth);
}
.auth-input:focus { outline: none; border-color: var(--green); }
.auth-input::placeholder { color: var(--text-muted); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* buttons */
.auth-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--green);
  color: var(--bg-color);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.auth-btn:hover { box-shadow: 0 0 20px rgba(57, 255, 136, 0.35); }

/* helper links / meta */
.auth-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 1.5rem 0 0;
  text-align: center;
}
.auth-meta a { color: var(--green); text-decoration: none; font-weight: 600; }
.auth-meta a:hover { text-decoration: underline; }
.auth-forgot { font-size: 0.75rem; color: var(--green); text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }

.auth-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0;
}

/* social sign-in — neutral buttons, brand colour carried by the icon only
   (keeps the surface sober per §12.0; no neon fills). */
.auth-social {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.auth-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  transition: var(--transition-smooth);
}
.auth-social__btn:hover { border-color: var(--border-hover); background: var(--card-bg); }
.auth-social__icon { display: flex; width: 18px; justify-content: center; }

.auth-or {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border-color);
}

/* checkout order summary */
.auth-order {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.auth-order__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}
.auth-order__row--total {
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 0.9rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

/* =====================================================================
   Academy catalog fichas. One card scale for every program — pantheon
   names and abbreviations alike. Future courses reuse these classes;
   pick an accent from the six-color system. Wordmark is 2.75rem.
   ===================================================================== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.program-card {
  --ficha: var(--cyan);
  --ficha-line: rgba(22, 217, 255, 0.4);
  --ficha-glow: rgba(22, 217, 255, 0.10);
  --ficha-chip: rgba(22, 217, 255, 0.3);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--ficha-line);
  box-shadow: 0 0 30px var(--ficha-glow);
  border-radius: 10px;
  overflow: hidden;
}
.program-card--yellow {
  --ficha: var(--yellow);
  --ficha-line: rgba(255, 216, 77, 0.4);
  --ficha-glow: rgba(255, 216, 77, 0.10);
  --ficha-chip: rgba(255, 216, 77, 0.3);
}
.program-card--green {
  --ficha: var(--green);
  --ficha-line: rgba(57, 255, 136, 0.4);
  --ficha-glow: rgba(57, 255, 136, 0.10);
  --ficha-chip: rgba(57, 255, 136, 0.3);
}
.program-card--cyan {
  --ficha: var(--cyan);
  --ficha-line: rgba(22, 217, 255, 0.4);
  --ficha-glow: rgba(22, 217, 255, 0.10);
  --ficha-chip: rgba(22, 217, 255, 0.3);
}
.program-card--violet {
  --ficha: var(--violet);
  --ficha-line: rgba(184, 107, 255, 0.4);
  --ficha-glow: rgba(184, 107, 255, 0.10);
  --ficha-chip: rgba(184, 107, 255, 0.3);
}
.program-card--orange {
  --ficha: var(--orange);
  --ficha-line: rgba(255, 138, 61, 0.4);
  --ficha-glow: rgba(255, 138, 61, 0.10);
  --ficha-chip: rgba(255, 138, 61, 0.3);
}
.program-card--blue {
  --ficha: var(--blue);
  --ficha-line: rgba(63, 123, 255, 0.4);
  --ficha-glow: rgba(63, 123, 255, 0.10);
  --ficha-chip: rgba(63, 123, 255, 0.3);
}
.program-card__bar { height: 6px; background: var(--ficha); }
.program-card__body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.program-card__eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ficha);
  margin-bottom: 0.9rem;
}
.program-card__wordmark {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
  white-space: nowrap;
}
.program-card__lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.program-card__chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.program-card__chip {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--ficha-chip);
  color: var(--text-secondary);
  border-radius: 4px;
  padding: 0.28rem 0.55rem;
}
.program-card__enter {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ficha);
}
.program-card--ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  box-shadow: none;
  min-height: 220px;
}
.program-card--ghost .program-card__plus {
  text-align: center;
  color: var(--text-muted);
}
.program-card--ghost .program-card__plus-mark {
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.program-card--ghost .program-card__plus-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
@media (max-width: 900px) {
  .program-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Course pages — landing (course-detail) + player (course-player).
   LMS anatomy borrowed from Udemy's course-detail/player layers only —
   NOT its marketplace/browse/cart model (decision #19: Academy is
   invitational program fichas, not a course bazaar). Sober per §12.0.
   ===================================================================== */

.course-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-x); }
.course-crumb { font-size: 0.75rem; color: var(--text-secondary); padding: 2.5rem 0 1.25rem; }
.course-crumb a { color: var(--text-secondary); text-decoration: none; }
.course-crumb a:hover { color: var(--text-primary); }
.course-crumb__here { color: var(--green); }

/* hero: title/meta + sticky buy card */
.course-hero { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 2.5rem; align-items: start; padding-bottom: 3rem; }

/* AQUILES 5-module strip: five cards + arrows must fit the 1200px hero
   column; flex + min-width:104px let module 5 overflow and clip. */
.course-modstrip {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);
  gap: 0.28rem;
  align-items: stretch;
}
.course-modstrip__card {
  min-width: 0;
  text-align: center;
  padding: 0.85rem 0.3rem;
  border-radius: 8px;
}
.course-modstrip__card .course-modstrip__name {
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #F8FAFC;
  overflow-wrap: break-word;
}
.course-modstrip__arrow {
  align-self: center;
  font-size: 1rem;
  line-height: 1;
}
.course-eyebrow {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--green); display: block; margin-bottom: 0.9rem;
}
.course-title { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 1rem; line-height: 1.15; }

/* ZEUS v5 wordmark scale (hero-main-title 5.5rem / subtitle 1.125rem). Optional
   `wordmark:` in course YAML; body.course-page--monumental also enlarges body copy. */
.course-wordmark {
  font-size: 5.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}
/* Two-word marks (ZEUS Engine, SWAP ARB, ARB EST) stay one line. */
.course-wordmark--compound {
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.course-title--sub {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  line-height: 1.4;
}
.course-page--monumental .course-eyebrow { font-size: 0.875rem; letter-spacing: 0.3em; }
.course-page--monumental .course-tagline { font-size: 1.25rem; max-width: 52ch; line-height: 1.55; }
.course-page--monumental .course-meta { font-size: 1rem; }
.course-page--monumental .course-section__title { font-size: 2.5rem; letter-spacing: -0.02em; }
.course-page--monumental .course-learn__list li { font-size: 1.1rem; }
.course-page--monumental .course-acc > summary { font-size: 1.15rem; }
.course-page--monumental .course-acc__meta { font-size: 0.9rem; }
.course-page--monumental .course-lecture { font-size: 1.05rem; }
.course-page--monumental .course-prose { font-size: 1.125rem; }
.course-page--monumental .course-includes li { font-size: 1rem; }
.course-page--monumental .course-buycard__note { font-size: 0.95rem; }
.course-page--monumental .course-buycard__price { font-size: 2.5rem; color: var(--green); }
.course-hero-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2.5rem; font-weight: 700; color: var(--green);
  letter-spacing: 0.02em; margin: 0 0 1.25rem; line-height: 1;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.65rem 0.85rem;
}
.course-hero-price__was {
  font-size: 2.5rem; font-weight: 700; color: var(--text-muted);
  text-decoration: line-through; letter-spacing: 0.02em;
}
.course-hero-price__now { color: var(--green); }
.course-hero-price__until {
  flex-basis: 100%; font-family: var(--font-family);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-secondary);
}
.course-page--monumental .course-instructor__name { font-size: 1.35rem; }
.course-page--monumental .course-instructor__role { font-size: 1rem; }
.course-mv__label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.25em; color: var(--green); margin: 1.5rem 0 0.6rem;
}
.course-mv__label:first-of-type { margin-top: 0; }
.course-prose-h {
  font-size: 1.35rem; font-weight: 700; color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}
.course-page--monumental .course-prose-h { font-size: 1.75rem; }
.course-tagline { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.6; margin: 0 0 1.5rem; max-width: 46ch; }
.course-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.8125rem; color: var(--text-secondary); }
.course-meta strong { color: var(--text-primary); font-weight: 600; }
.course-meta .course-rating { color: var(--yellow); font-weight: 700; }

.course-buycard {
  position: sticky; top: 6.5rem; background: var(--card-bg);
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 0 30px rgba(57, 255, 136, 0.06);
}
.course-buycard__thumb {
  position: relative;
  aspect-ratio: 16 / 9; background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
}
.course-buycard__previewlabel {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.85rem 0.75rem 0.55rem;
  background: linear-gradient(transparent, rgba(2, 6, 23, 0.9));
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-primary); text-align: center;
}
.course-buycard__play {
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 1px solid var(--border-hover); display: flex; align-items: center; justify-content: center;
}
/* preview video fills the 16:9 thumb (VideoAsset access:preview, §6.6) */
.course-buycard__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; background: var(--bg-color);
  display: block; border: 0;
}
.course-buycard__previewlabel--top {
  top: 0; bottom: auto;
  background: linear-gradient(rgba(2, 6, 23, 0.9), transparent);
}
.course-buycard__body { padding: 1.5rem; }
/* enrolled ("owned") buy-card state — entitlement-aware CTA */
.course-owned__badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--green);
  border: 1px solid var(--green); border-radius: 999px; padding: 0.25rem 0.7rem;
}
.course-owned__link { display: block; text-align: center; font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.6rem; text-decoration: underline; }
.course-owned__link:hover { color: var(--text-primary); }
.course-owned__reset { display: block; text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: 0.9rem; text-decoration: underline; }
.course-buycard__price {
  font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem;
  text-align: center; color: var(--text-primary);
  font-family: 'IBM Plex Mono', monospace;
}
.course-buycard__note { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.course-includes { list-style: none; margin: 1.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--border-color); }
.course-includes li { display: flex; gap: 0.6rem; font-size: 0.8125rem; color: var(--text-secondary); padding: 0.4rem 0; }
.course-includes li::before { content: ""; width: 1rem; height: 1rem; flex: none; margin-top: 0.1rem; background: var(--check-svg) center/contain no-repeat; }

/* content sections */
.course-section { border-top: 1px solid var(--border-color); padding: 3rem 0; }
.course-figure { margin: 0; }
.course-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #0B1329;
}
.course-figure__cap {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.85rem 0 0;
  line-height: 1.5;
}

/* VTAlgo LAB — cohort map (EN/ES) */
.lab-auth { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin: 0 0 1.25rem; }
.lab-auth[hidden] { display: none !important; }
.lab-auth a {
  font-family: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.45rem 0.9rem; border-radius: 4px;
  text-decoration: none; background: transparent;
}
.lab-auth__primary { color: var(--text-primary); border: 1px solid var(--cyan); }
.lab-auth__primary:hover { background: var(--card-bg); }
.lab-auth__secondary { color: var(--text-secondary); border: 1px solid #334155; }
.lab-auth__secondary:hover { color: var(--text-primary); border-color: var(--border-hover); }
.lab-auth--in span { font-size: 0.85rem; color: var(--text-secondary); }
.lab-toggle { display: flex; gap: 0.4rem; margin: 0 0 1.5rem; }
.lab-toggle button {
  font-family: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.45rem 0.8rem; border-radius: 4px;
  background: transparent; color: var(--text-secondary); border: 1px solid #334155; cursor: pointer;
}
.lab-toggle button.is-on { color: var(--text-primary); border-color: var(--cyan); }
.cmap { max-width: 1480px; margin: 0 auto; padding: 0 0 4rem; }
.cmap-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }
.cmap-page-title { font-size: 3rem; letter-spacing: -0.03em; margin: 0.7rem 0 0.6rem; }
.cmap-lead { font-size: 1.25rem; color: var(--text-secondary); max-width: 62ch; line-height: 1.5; margin: 0 0 1.25rem; }
.cmap-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.cmap-nav a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; }
.cmap-nav a:hover { color: var(--text-primary); }
.cmap-spine { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr 1fr; gap: 0.75rem; align-items: stretch; margin-bottom: 3rem; }
.cmap-office { border-radius: 10px; padding: 1.25rem 1.35rem; background: var(--card-bg); }
a.cmap-office { text-decoration: none; color: inherit; display: block; cursor: pointer; }
a.cmap-office:hover { background: rgba(248,250,252,0.03); }
.cmap-office h2 { font-size: 1.85rem; margin: 0.2rem 0 0.35rem; letter-spacing: 0.04em; }
.cmap-office p { margin: 0; color: var(--text-secondary); font-size: 1rem; line-height: 1.45; }
.cmap-arrow { color: var(--text-muted); font-size: 1.6rem; align-self: center; }
.cmap-band { border-radius: 12px; padding: 1.75rem 1.5rem 1.6rem; background: var(--card-bg); margin-bottom: 2rem; }
.cmap-band__head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1.4rem; }
.cmap-preview {
  max-width: 22rem;
  margin: 0 0 1.4rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
}
.cmap-preview .course-buycard__thumb { border-bottom: 0; }
.program-preview {
  max-width: 43.75rem;
  margin: 0 0 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
}
.program-preview .course-buycard__thumb { border-bottom: 0; }
.cmap-band__name { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 0.35rem; }
.cmap-band h3 { font-size: 2rem; margin: 0; }
.cmap-times { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; }
.cmap-chip { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; font-weight: 500; border-radius: 4px; padding: 0.35rem 0.55rem; color: var(--text-secondary); }
.cmap-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.cmap-stages--5 { grid-template-columns: repeat(5, 1fr); }
.cmap-stages--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cmap-stage { padding: 0.7rem 0.8rem; border-radius: 6px; background: #020617; }
.cmap-stage b { display: block; font-size: 0.72rem; letter-spacing: 0.08em; margin-bottom: 0.2rem; overflow-wrap: break-word; }
.cmap-stage span { color: var(--text-muted); font-size: 0.88rem; }
.cmap-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.cmap-cards--5 { grid-template-columns: repeat(5, 1fr); }
.cmap-layer {
  display: flex; flex-wrap: wrap; gap: 0.55rem 1.1rem; align-items: baseline;
  margin: 0 0 1rem; padding: 0.85rem 1rem; border-radius: 6px; background: #020617;
}
.cmap-layer b { font-size: 0.72rem; letter-spacing: 0.16em; }
.cmap-layer span { color: var(--text-muted); font-size: 0.88rem; }
.cmap-card { background: #020617; border-radius: 8px; padding: 1rem 0.95rem 0.95rem; min-height: 148px; border: 1px solid #334155; }
.cmap-n { font-family: 'IBM Plex Mono', monospace; font-size: 0.9rem; font-weight: 600; }
.cmap-card h4 { font-size: 1.15rem; margin: 0.15rem 0 0.45rem; font-weight: 600; }
.cmap-card p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.4; }
.cmap-lab { display: inline-block; margin-top: 0.65rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; border-radius: 3px; padding: 0.2rem 0.45rem; }
.cmap-row2 { margin-top: 0.75rem; }
.cmap-foot { color: var(--text-muted); font-size: 0.92rem; margin: 0.35rem 0 0; }
@media (max-width: 980px) {
  .cmap-spine, .cmap-stages, .cmap-cards { grid-template-columns: 1fr 1fr; }
  .cmap-spine { grid-template-columns: 1fr; }
  .cmap-arrow { display: none; }
  .cmap-page-title { font-size: 2.2rem; }
}
.course-page--monumental .course-figure__cap { font-size: 1rem; }
.course-section__title { font-size: 1.35rem; font-weight: 700; margin: 0 0 1.5rem; }

.course-learn__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 2rem; }
.course-learn__list li { display: flex; gap: 0.7rem; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.course-learn__list li::before { content: ""; width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.15rem; background: var(--check-svg) center/contain no-repeat; }

/* curriculum accordion (native <details>, no JS) */
.course-acc { border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 0.75rem; overflow: hidden; background: var(--card-bg); }
.course-acc > summary {
  list-style: none; cursor: pointer; padding: 1rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.9375rem; font-weight: 600;
}
.course-acc > summary::-webkit-details-marker { display: none; }
.course-acc > summary::after { content: "+"; color: var(--green); font-size: 1.25rem; font-weight: 400; line-height: 1; }
.course-acc[open] > summary::after { content: "\2212"; }
.course-acc__meta { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; margin-left: auto; }
.course-lecture {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--border-color); font-size: 0.85rem; color: var(--text-secondary);
}
.course-lecture__icon { width: 1.05rem; height: 1.05rem; flex: none; background-position: center; background-repeat: no-repeat; background-size: contain; }
.course-lecture__icon--play { background-image: var(--play-svg); }
.course-lecture__icon--lock { background-image: var(--lock-svg); }
.course-lecture--locked { color: var(--text-muted); }
.course-lecture__dur { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }
.course-lecture__preview { margin-left: auto; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); text-decoration: none; }
.course-lecture__preview::after { content: " · " attr(data-dur); color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.course-legend { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-secondary); margin: -0.5rem 0 1.5rem; }
.course-legend span { display: flex; align-items: center; gap: 0.45rem; }
.course-legend i { width: 1rem; height: 1rem; background-position: center; background-repeat: no-repeat; background-size: contain; }
.course-legend .i-play { background-image: var(--play-svg); }
.course-legend .i-lock { background-image: var(--lock-svg); }

.course-notice {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--text-muted);
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 68ch;
}
.course-notice strong { color: var(--text-primary); font-weight: 700; }
.course-acc__stamp,
.player-side__stamp {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.course-req { list-style: none; margin: 0; padding: 0; }
.course-req li { position: relative; padding: 0.35rem 0 0.35rem 1.25rem; font-size: 0.9rem; color: var(--text-secondary); }
.course-req li::before { content: ""; position: absolute; left: 0; top: 0.85rem; width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); }
.course-prose { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; max-width: 68ch; }
.course-prose p { margin: 0 0 1rem; }
.course-prose h3 { color: var(--text-primary); font-size: 1.05rem; margin: 1.5rem 0 0.6rem; }
.course-prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.course-prose li { margin: 0.25rem 0; }
.course-prose blockquote {
  margin: 0 0 1.25rem; padding: 0.75rem 1rem;
  border-left: 3px solid var(--green); color: var(--text-secondary);
  background: rgba(57, 255, 136, 0.04);
}
.course-prose pre {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 1rem 1.1rem; overflow-x: auto;
  margin: 0 0 1.25rem; font-size: 0.82rem; line-height: 1.5;
}
.course-prose code { font-family: 'IBM Plex Mono', monospace; font-size: 0.86em; }
.course-prose pre code { font-size: 0.82rem; color: var(--text-primary); }
.course-table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
.course-prose table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.course-prose th, .course-prose td {
  border: 1px solid var(--border-color); padding: 0.45rem 0.65rem;
  text-align: left; vertical-align: top;
}
.course-prose th { color: var(--text-primary); font-weight: 600; background: rgba(57, 255, 136, 0.06); }
.course-prose--read { max-width: 78ch; padding: 1rem 0 4rem; }
.course-prose--read h1 { color: var(--text-primary); font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.course-read-nav {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 0.5rem 0 1.75rem; font-size: 0.85rem;
}
.course-read-nav a { color: var(--green); text-decoration: none; font-weight: 600; }
.course-read-nav a:hover { text-decoration: underline; }

/* instructor block */
.course-instructor { display: flex; gap: 1.5rem; align-items: flex-start; }
.course-instructor__photo { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-color); flex: none; }
.course-instructor__name { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.25rem; }
.course-instructor__role { font-size: 0.8125rem; color: var(--green); font-weight: 600; margin: 0 0 1rem; }

/* =====================================================================
   Course player (course-player) — authenticated learning surface.
   ===================================================================== */
/* shared authenticated header (portal & post-login surfaces; not the public nav) */
.app-header {
  position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 1rem;
  background: rgba(2, 6, 23, 0.9); border-bottom: 1px solid var(--border-color);
  padding: 0.75rem var(--container-x); backdrop-filter: blur(6px);
}
.app-header__logo img { height: 28px; display: block; }
.app-header__title { font-weight: 700; letter-spacing: 0.01em; }
.app-header__spacer { flex: 1; }

.player-top {
  position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 1.25rem;
  background: rgba(2, 6, 23, 0.95); border-bottom: 1px solid var(--border-color);
  padding: 0.9rem var(--container-x); backdrop-filter: blur(6px);
}
.player-top__logo img { height: 30px; display: block; }
.player-top__back {
  display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; transition: var(--transition-smooth);
}
.player-top__back:hover { color: var(--cyan); }
.player-top__title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.player-top__progress { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--text-secondary); }
.player-top__action { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.player-top__action:hover { color: var(--text-primary); }

/* logged-in user chip + dropdown (top-right of the learning surface) */
.player-top__user { position: relative; }
.player-user {
  display: flex; align-items: center; gap: 0.55rem;
  background: none; border: 1px solid var(--border-color); border-radius: 999px;
  padding: 0.3rem 0.7rem 0.3rem 0.35rem; color: var(--text-primary);
  font-family: var(--font-family); font-size: 0.8rem; cursor: pointer;
  transition: var(--transition-smooth);
}
.player-user:hover { border-color: var(--border-hover); }
.player-user__avatar {
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--card-bg); border: 1px solid var(--border-hover); color: var(--cyan);
  display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700;
}
.player-user__name { font-weight: 600; }
.player-user__caret { color: var(--text-secondary); transition: var(--transition-smooth); }
.player-top__user.is-open .player-user__caret { transform: rotate(180deg); }
.player-user__menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 12rem;
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 0.4rem; box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6); display: none; z-index: 200;
}
.player-top__user.is-open .player-user__menu { display: block; }
.player-user__id {
  display: block; font-size: 0.72rem; color: var(--text-secondary);
  padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border-color); margin-bottom: 0.3rem;
}
.player-user__id strong { color: var(--text-primary); }
.player-user__menu a {
  display: block; padding: 0.5rem 0.6rem; font-size: 0.82rem;
  color: var(--text-secondary); text-decoration: none; border-radius: var(--radius-sm);
}
.player-user__menu a:hover { background: var(--bg-color); color: var(--text-primary); }
.player-user__signout { color: var(--red) !important; border-top: 1px solid var(--border-color); margin-top: 0.3rem; }
.player-bar { width: 8rem; height: 5px; border-radius: 3px; background: var(--bg-color); border: 1px solid var(--border-color); overflow: hidden; }
.player-bar__fill { height: 100%; background: var(--green); }

.player { position: relative; display: grid; grid-template-columns: 1fr 22rem; height: calc(100vh - 3.7rem); overflow: hidden; }
.player-main { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border-color); overflow-y: auto; }
.player-video {
  position: relative;
  flex: 0 0 auto; width: 100%;
  aspect-ratio: 16 / 9; min-height: 12rem;
  background: #000; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border-color);
}
.player-video__play {
  position: relative; z-index: 1;
  width: 4rem; height: 4rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  background: transparent; cursor: pointer;
}
.player-video.is-locked {
  background: #020617; flex: 0 0 7.5rem; min-height: 7.5rem;
  aspect-ratio: auto; height: 7.5rem;
}
.player-video__msg {
  max-width: 28rem; margin: 0; padding: 0 1.5rem; text-align: center;
  font-size: 0.9rem; line-height: 1.5; color: #94A3B8;
}
.player-video__cap {
  position: absolute; left: 1rem; right: 1rem; bottom: 2.85rem;
  margin: 0; text-align: center;
  font-size: 0.75rem; line-height: 1.4; color: #94A3B8;
  pointer-events: none;
}
.player-video__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 0.55rem;
  padding: 1.35rem 0.9rem 0.7rem;
  background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0));
}
.player-video__time {
  flex: 0 0 auto;
  min-width: 2.25rem;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: #94A3B8;
}
.player-video__track {
  flex: 1 1 auto; display: flex; align-items: center; margin: 0;
}
.player-video__seek {
  width: 100%; height: 1.15rem; margin: 0; padding: 0;
  cursor: pointer; background: transparent;
  accent-color: #F8FAFC;
  -webkit-appearance: none; appearance: none;
}
.player-video__seek::-webkit-slider-runnable-track {
  height: 4px; background: rgba(248,250,252,0.28); border-radius: 2px;
}
.player-video__seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; margin-top: -4px;
  border-radius: 50%; background: #F8FAFC; border: 0; cursor: grab;
}
.player-video__seek::-moz-range-track {
  height: 4px; background: rgba(248,250,252,0.28); border-radius: 2px; border: 0;
}
.player-video__seek::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: #F8FAFC; border: 0; cursor: grab;
}
.player-gate {
  margin: 0 0 1.25rem; padding: 1rem 0 0;
  border-top: 1px solid var(--border-color);
}
.player-gate__title { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.4rem; }
.player-gate__hint { font-size: 0.82rem; color: var(--text-secondary); margin: 0 0 1rem; line-height: 1.5; }
.player-gate__fail { color: #F87171; font-size: 0.85rem; margin: 0.85rem 0 0; }
.player-gate__ok { color: var(--green); font-size: 0.9rem; font-weight: 600; margin: 0 0 0.5rem; }
.player-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-top: 1.25rem; padding: 0.9rem 0 0.15rem;
  border-top: 1px solid var(--border-color);
  position: sticky; bottom: 0;
  background: var(--bg-color);
}
.player-nav__link {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-decoration: none;
}
.player-nav__link:hover { color: var(--text-primary); }
.player-nav .auth-btn { width: auto; display: inline-block; min-width: 7.5rem; text-align: center; }
.player-nav__enter, .player-nav__next {
  width: auto; display: inline-block; min-width: 7.5rem; text-align: center;
}
.player-nav__wait { font-size: 0.78rem; color: var(--text-muted); }
.player-eval-cta {
  width: auto; display: inline-block; min-width: 12rem; margin: 0.35rem 0 0;
  text-align: center;
}
.eval-main {
  max-width: 42rem; margin: 0 auto;
  padding: 2rem var(--container-x) 4rem;
}
.eval-eyebrow {
  margin: 0 0 0.5rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary);
}
.eval-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 0.75rem; }
.eval-hint { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; margin: 0 0 1.5rem; }
.eval-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-top: 1.5rem;
}
.eval-actions .player-eval-cta { margin: 0; }
.eval-main .player-quiz__q { margin-bottom: 1.35rem; }
.player-quiz__q { border: 0; margin: 0 0 1rem; padding: 0; }
.player-quiz__q legend { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.45rem; }
.player-quiz__opt {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.45;
  margin: 0.35rem 0; cursor: pointer;
}
.player-side__lec.is-locked { color: var(--text-muted); cursor: default; }
.player-side__lec.is-locked:hover { background: transparent; }
.player-body { flex: 0 0 auto; padding: 1.25rem var(--container-x) 1.5rem; }
.player-lecture-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; }
.player-tabs { display: flex; gap: 1.75rem; flex-wrap: wrap; border-bottom: 1px solid var(--border-color); }
.player-tab {
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary); text-decoration: none; padding: 0 0 0.9rem; border-bottom: 2px solid transparent;
}
.player-tab.is-active { color: var(--green); border-bottom-color: var(--green); }
.player-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.player-meta strong { color: var(--text-primary); font-weight: 600; }
.player-meta .course-rating { color: var(--yellow); font-weight: 700; }

.player-side { background: var(--card-bg); overflow-y: auto; }
.player-side__head { padding: 1.25rem 1.25rem 0.75rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-secondary); }
.player-side__mod { border-top: 1px solid var(--border-color); }
.player-side__section {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
  font-size: 0.8rem; font-weight: 700; padding: 0.9rem 1.25rem; color: var(--text-primary);
}
.player-side__section::-webkit-details-marker { display: none; }
.player-side__section::after { content: "+"; color: var(--green); font-size: 1.05rem; font-weight: 400; line-height: 1; flex: none; }
.player-side__mod[open] > .player-side__section::after { content: "\2212"; }
.player-side__section:hover { background: rgba(255, 255, 255, 0.03); }
.player-side__lec {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1.25rem;
  font-size: 0.8125rem; color: var(--text-secondary); text-decoration: none;
}
.player-side__lec:hover { background: rgba(57, 255, 136, 0.05); }
.player-side__lec.is-current { color: var(--text-primary); background: rgba(57, 255, 136, 0.08); border-left: 2px solid var(--green); }
.player-side__lec.is-done { color: var(--text-muted); }
.player-side__check { width: 1rem; height: 1rem; flex: none; border-radius: 3px; border: 1px solid var(--border-color); }
.player-side__check.is-done { background: var(--check-svg) center/0.75rem no-repeat, var(--card-bg); border-color: var(--green); }
.player-side__dur { margin-left: auto; font-size: 0.72rem; color: var(--text-muted); }

/* side drawer — tab content slides in over the sidebar; the video never moves */
.player-drawer {
  position: absolute; top: 0; right: 0; height: 100%; width: 22rem;
  background: var(--card-bg); border-left: 1px solid var(--border-color);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}
.player-drawer.is-open { transform: translateX(0); box-shadow: -14px 0 34px rgba(0, 0, 0, 0.4); }
.player-drawer__head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color);
}
.player-drawer__title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-primary); }
.player-drawer__close {
  background: none; border: none; color: var(--text-secondary); font-size: 1.1rem;
  line-height: 1; cursor: pointer; padding: 0.15rem 0.45rem; border-radius: var(--radius-sm);
}
.player-drawer__close:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
.player-drawer__body { flex: 1; overflow-y: auto; padding: 1.5rem 1.25rem; }

/* player tab panels — the interaction surfaces (Q&A, Notes, Announcements,
   Learning tools, Reviews). Switched by the [data-tabs] controller in site.js. */
.player-panel { display: none; }
.player-panel > :first-child { margin-top: 0; }
.player-panel__title { font-size: 1rem; font-weight: 700; margin: 0 0 1.25rem; }

/* compose bar (ask a question / add a note) */
.player-compose { display: flex; gap: 0.75rem; margin-bottom: 1.75rem; }
.player-compose input {
  flex: 1; background: var(--bg-color); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-family: var(--font-family); font-size: 0.875rem; padding: 0.7rem 0.9rem;
}
.player-compose input:focus { outline: none; border-color: var(--green); }
.player-compose button {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--green); color: var(--bg-color); border: none;
  border-radius: var(--radius-md); padding: 0 1.2rem; cursor: pointer; white-space: nowrap;
}

/* threaded posts (Q&A, Announcements) */
.player-post { display: flex; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--border-color); }
.player-post--reply { margin-left: 3.25rem; }
.player-post__avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; flex: none;
  background: var(--card-bg); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--text-secondary);
}
.player-post__main { flex: 1; }
.player-post__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; }
.player-post__name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.player-post__badge {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--bg-color); background: var(--green); border-radius: 3px; padding: 0.1rem 0.4rem;
}
.player-post__time { color: var(--text-muted); font-size: 0.72rem; }
.player-post__body { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; }

/* notes */
.player-note { display: flex; gap: 0.9rem; padding: 1rem 0; border-top: 1px solid var(--border-color); }
.player-note__ts {
  flex: none; height: fit-content; font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; font-weight: 600; color: var(--bg-color); background: var(--green);
  border-radius: 3px; padding: 0.15rem 0.45rem;
}
.player-note__body { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; }

/* learning tools */
.player-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.player-tools a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--text-primary); text-decoration: none;
  font-size: 0.9rem; font-weight: 600; transition: var(--transition-smooth);
}
.player-tools a:hover { border-color: var(--border-hover); }
.player-tools a span { color: var(--green); font-size: 0.8rem; }

/* reviews */
.player-reviews { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; margin-bottom: 1.75rem; }
.player-ratingbig { text-align: center; }
.player-ratingbig strong { display: block; font-size: 2.5rem; font-weight: 700; color: var(--yellow); line-height: 1; }
.player-ratingbig span { font-size: 0.72rem; color: var(--text-muted); }
.player-bars { display: grid; gap: 0.4rem; }
.player-bar-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.72rem; color: var(--text-secondary); }
.player-bar-row .track { flex: 1; height: 6px; border-radius: 3px; background: var(--card-bg); border: 1px solid var(--border-color); overflow: hidden; }
.player-bar-row .track i { display: block; height: 100%; background: var(--yellow); }

@media (max-width: 900px) {
  .course-hero { grid-template-columns: 1fr; }
  .course-buycard { position: static; max-width: 24rem; }
  .course-wordmark { font-size: 3.25rem; letter-spacing: 0.1em; }
  .course-wordmark--compound { font-size: 2.75rem; letter-spacing: 0.06em; }
  .player { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .player-main { border-right: none; height: auto; display: block; }
  .player-video { flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .player-body { overflow: visible; }
  .player-side { border-top: 1px solid var(--border-color); }
  .player-drawer { position: fixed; top: 3.7rem; right: 0; width: 100%; height: calc(100vh - 3.7rem); }
}
@media (max-width: 560px) {
  .auth-row { grid-template-columns: 1fr; }
  .auth-card { padding: 2rem 1.5rem; }
  .course-learn__list { grid-template-columns: 1fr; }
  .player-reviews { grid-template-columns: 1fr; }
  .player-tabs { gap: 1rem; overflow-x: auto; }
  .player-user__name { display: none; }
  .enr-plan-grid { grid-template-columns: 1fr; }
  .enr-methods { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Invitational enrollment — gated 6-step flow (memory #26).
   Frontend REFLECTS the flow only; all validation is server-side on the
   billing spine (invitation single-use, payment, signed contract).
   ===================================================================== */

/* numbered step block */
.enr-step { border-top: 1px solid var(--border-color); padding: 2.25rem 0; }
.enr-step:first-of-type { border-top: none; }
.enr-step--locked { opacity: 0.45; }
.enr-step__head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem; }
.enr-step__num {
  flex: none; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  background: var(--card-bg); border: 1px solid var(--border-hover); color: var(--cyan);
}
.enr-step--locked .enr-step__num { border-color: var(--border-color); color: var(--text-muted); }
.enr-step__title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.enr-step__req { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); }
.enr-step__opt { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.enr-step__hint { font-size: 0.85rem; color: var(--text-secondary); margin: -0.5rem 0 1.25rem; line-height: 1.55; }

/* server-side security banner */
.enr-note {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: rgba(22, 217, 255, 0.05); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 0.9rem 1.1rem;
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 2rem;
}
.enr-note strong { color: var(--text-primary); }

/* invitation code entry */
.enr-code { display: flex; gap: 0.75rem; }
.enr-code .auth-input { font-family: var(--font-mono, monospace); letter-spacing: 0.15em; text-transform: uppercase; }
.enr-code .auth-btn { width: auto; padding-left: 1.6rem; padding-right: 1.6rem; }

/* plan radio-cards */
.enr-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.enr-plan { position: relative; display: block; cursor: pointer; }
.enr-plan input { position: absolute; opacity: 0; pointer-events: none; }
.enr-plan__card {
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 1.4rem; height: 100%; transition: var(--transition-smooth); background: var(--card-bg);
}
.enr-plan input:checked + .enr-plan__card { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.enr-plan__name { font-weight: 700; font-size: 1rem; margin: 0 0 0.35rem; }
.enr-plan__price { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); }
.enr-plan__terms { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.6rem; line-height: 1.5; }
.enr-plan__tag {
  display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--yellow); border: 1px solid var(--yellow);
  border-radius: 999px; padding: 0.15rem 0.6rem; margin-bottom: 0.6rem;
}

/* payment-method chips (owner allowlist) */
.enr-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.enr-method { cursor: pointer; }
.enr-method input { position: absolute; opacity: 0; pointer-events: none; }
.enr-method__box {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3.25rem; padding: 0.6rem 0.5rem; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  background: var(--card-bg); color: var(--text-secondary); transition: var(--transition-smooth);
}
.enr-method input:checked + .enr-method__box { border-color: var(--green); color: var(--text-primary); }
.enr-method__box:hover { border-color: var(--border-hover); }

/* per-method payment instructions (revealed by enroll.js) */
.enr-payinfo {
  margin-top: 1.25rem; background: var(--bg-color);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}
.enr-payinfo__warn { font-size: 0.78rem; color: var(--yellow); line-height: 1.55; margin-bottom: 0.9rem; }
.enr-payinfo__meta { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 1rem; }
.enr-payinfo__meta strong { color: var(--text-primary); }
.enr-payinfo__meta code { color: var(--cyan); font-family: 'IBM Plex Mono', monospace; }
.enr-pay__row {
  display: flex; justify-content: space-between; gap: 1.5rem;
  font-size: 0.85rem; padding: 0.45rem 0; border-top: 1px solid var(--border-color);
}
.enr-pay__row:first-child { border-top: 0; }
.enr-pay__row span { color: var(--text-secondary); flex: none; }
.enr-pay__row b { color: var(--text-primary); font-weight: 600; text-align: right; word-break: break-word; }
.enr-pay__mono { font-family: 'IBM Plex Mono', monospace; }

/* exclusivity contract */
.enr-contract {
  height: 12rem; overflow-y: auto; background: var(--bg-color);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6;
}
.enr-contract h4 { color: var(--text-primary); font-size: 0.85rem; margin: 1rem 0 0.4rem; }
.enr-contract h4:first-child { margin-top: 0; }
.enr-agree { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; font-size: 0.85rem; color: var(--text-secondary); }
.enr-agree input { margin-top: 0.15rem; accent-color: var(--green); }

/* final summary */
.enr-summary { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.4rem; }
.enr-summary__row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); padding: 0.4rem 0; }
.enr-summary__row--total { border-top: 1px solid var(--border-color); margin-top: 0.5rem; padding-top: 0.85rem; color: var(--text-primary); font-weight: 700; font-size: 1.05rem; }

/* inline validation messages */
.enr-msg { font-size: 0.82rem; margin: 0.6rem 0 0; min-height: 1rem; }
.enr-msg--ok { color: var(--green); }
.enr-msg--err { color: var(--red); }

/* disabled primary button (confirm gate) */
.auth-btn:disabled, .auth-btn.is-disabled {
  background: var(--card-bg); color: var(--text-muted);
  border: 1px solid var(--border-color); box-shadow: none; cursor: not-allowed;
}

/* simulator demo-credentials hint */
.enr-demo {
  border: 1px dashed var(--border-hover); border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem; font-size: 0.8rem; color: var(--text-secondary);
  line-height: 1.5; margin-bottom: 1.5rem;
}
.enr-demo code { color: var(--cyan); font-family: 'IBM Plex Mono', monospace; }
.enr-success code, .enr-success__row code { color: var(--cyan); font-family: 'IBM Plex Mono', monospace; }

/* presentation video on the enroll page */
.enr-hero-video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-color); margin-bottom: 2rem;
}
.enr-hero-video__el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }

/* success state (revealed by enroll.js after simulated payment) */
.enr-success { display: none; text-align: center; padding: 1rem 0 0.5rem; }
.enr-success__badge {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: rgba(57, 255, 136, 0.12); border: 1px solid var(--green); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 1.6rem; font-weight: 700;
}

/* legal pages — body copy from docs/legal/*.md */
.legal-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem var(--container-x) 0;
}
.legal-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cyan);
  display: inline-block;
  margin-bottom: 1rem;
}
.legal-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.legal-hero__date {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 0;
}
.legal-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem var(--container-x) 5rem;
}
.legal-doc h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.legal-doc li { margin: 0.25rem 0; }
.legal-doc a { color: var(--cyan); text-decoration: none; }
