/*
 * LearnPress course landing — Dark Editorial with --mst-lp-landing-* token overrides.
 * Scoped to body.mst-lp-course-landing only.
 */

body.mst-lp-course-landing {
  background: var(--mst-lp-landing-bg, var(--panel-left)) !important;
  color: var(--mst-lp-landing-fg, var(--text-primary));
}

body.mst-lp-course-landing .lp-archive-courses,
body.mst-lp-course-landing .learn-press-breadcrumb,
body.mst-lp-course-landing .course-summary-sidebar,
body.mst-lp-course-landing .course-detail-info,
body.mst-lp-course-landing .course-tabs,
body.mst-lp-course-landing #learn-press-course-tabs,
body.mst-lp-course-landing .lp-content-area,
body.mst-lp-course-landing .course-sidebar-preview,
body.mst-lp-course-landing .media-preview,
body.mst-lp-course-landing #comments,
body.mst-lp-course-landing .comments-area {
  display: none !important;
}

body.mst-lp-course-landing .mst-course-landing {
  background: var(--mst-lp-landing-bg, var(--panel-left));
}

/* MG site header sits above the dark editorial split. */
body.mst-lp-course-landing .mst-course-landing > .universal-nav {
  position: sticky;
  top: 0;
  z-index: 40;
}

body.mst-lp-course-landing .mst-course-landing__split {
  display: flex;
  flex-direction: column;
}

/* ── Hero (left band) ── */

body.mst-lp-course-landing .mst-course-landing__hero {
  background: var(--mst-lp-landing-bg, var(--panel-left));
  border-bottom: 1px solid var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline-strong)));
}

body.mst-lp-course-landing .mst-course-landing__hero-media {
  position: relative;
  min-height: 56vw;
  max-height: 70vw;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 42%, rgba(232, 228, 220, 0.14), transparent 52%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 0, 0, 0.55), transparent 50%),
    var(--mst-lp-landing-bg, var(--panel-left));
}

body.mst-lp-course-landing .mst-course-landing__hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

body.mst-lp-course-landing .mst-course-landing__hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--mst-lp-landing-hero-overlay, var(--mst-lp-landing-bg, #111111)) 100%, transparent) 0%,
    color-mix(in srgb, var(--mst-lp-landing-hero-overlay, #111111) calc(var(--mst-lp-landing-hero-overlay-opacity, 0.72) * 100%), transparent) 45%,
    color-mix(in srgb, var(--mst-lp-landing-hero-overlay, #111111) 15%, transparent) 100%
  );
  pointer-events: none;
}

body.mst-lp-course-landing .mst-course-landing__hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.25rem 2rem;
  z-index: 1;
  max-height: 100%;
  overflow: hidden;
}

body.mst-lp-course-landing .mst-course-landing__hero-inner .mst-display {
  font-family: var(--mst-lp-landing-hero-title-ff, var(--font-display));
  font-size: var(--mst-lp-landing-hero-title-fs, clamp(2.2rem, 5vw, 3.4rem));
  font-weight: var(--mst-lp-landing-hero-title-fw, 300);
  line-height: var(--mst-lp-landing-hero-title-lh, 1.08);
  letter-spacing: var(--mst-lp-landing-hero-title-ls, normal);
  text-transform: var(--mst-lp-landing-hero-title-tt, none);
  color: var(--mst-lp-landing-hero-title-fg, var(--mst-lp-landing-fg, #f2eee6));
  margin: 0.65rem 0 1rem;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

body.mst-lp-course-landing .mst-course-landing__hero-inner .mst-lede {
  font-family: var(--mst-lp-landing-hero-lede-ff, var(--font-body, "DM Sans", sans-serif));
  font-size: var(--mst-lp-landing-hero-lede-fs, 0.95rem);
  font-weight: var(--mst-lp-landing-hero-lede-fw, 400);
  line-height: var(--mst-lp-landing-hero-lede-lh, 1.65);
  letter-spacing: var(--mst-lp-landing-hero-lede-ls, normal);
  text-transform: var(--mst-lp-landing-hero-lede-tt, none);
  color: var(--mst-lp-landing-hero-lede-fg, color-mix(in srgb, var(--mst-lp-landing-fg, #f2eee6) 88%, transparent));
  margin: 0 0 1.25rem;
  max-width: 36ch;
}

body.mst-lp-course-landing .mst-course-landing__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline-strong)));
}

body.mst-lp-course-landing .mst-course-landing__stat-value {
  font-family: var(--mst-lp-landing-stats-ff, var(--font-display));
  font-size: var(--mst-lp-landing-stats-fs, 1.85rem);
  font-weight: var(--mst-lp-landing-stats-fw, 300);
  line-height: var(--mst-lp-landing-stats-lh, 1);
  letter-spacing: var(--mst-lp-landing-stats-ls, normal);
  text-transform: var(--mst-lp-landing-stats-tt, none);
  color: var(--mst-lp-landing-stats-fg, var(--mst-lp-landing-fg, #f2eee6));
}

body.mst-lp-course-landing .mst-course-landing__stats .mst-eyebrow {
  font-family: var(--mst-lp-landing-stats-ff, var(--font-mono, "DM Mono", monospace));
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(
    --mst-lp-landing-stats-accent,
    color-mix(in srgb, var(--mst-lp-landing-stats-fg, var(--mst-lp-landing-fg, #f2eee6)) 72%, transparent)
  );
}

body.mst-lp-course-landing .mst-referral-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--mst-lp-landing-accent, var(--mst-lp-accent, #c8a96e)) 40%, transparent);
  background: color-mix(in srgb, var(--mst-lp-landing-accent, var(--mst-lp-accent, #c8a96e)) 8%, transparent);
  color: var(--mst-lp-landing-fg, #f2eee6);
}

body.mst-lp-course-landing .mst-referral-banner p {
  margin: 0;
}

/* CTA + progress */

body.mst-lp-course-landing .mst-course-landing__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.mst-lp-course-landing .mst-course-landing__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

body.mst-lp-course-landing .mst-course-landing__cta a {
  text-decoration: none;
}

body.mst-lp-course-landing .mst-course-landing__cta .lp-button,
body.mst-lp-course-landing .mst-course-landing__cta button,
body.mst-lp-course-landing .mst-course-landing__cta .button,
body.mst-lp-course-landing .mst-course-landing__cta input[type="submit"],
body.mst-lp-course-landing .mst-course-landing__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 16rem;
  background: var(--mst-lp-landing-cta-bg, var(--gold-soft, #c8a96e)) !important;
  color: var(--mst-lp-landing-cta-fg, #0e0e0e) !important;
  font-family: var(--mst-lp-landing-cta-ff, var(--font-body));
  font-weight: var(--mst-lp-landing-cta-fw, 700);
  font-size: var(--mst-lp-landing-cta-fs, 0.92rem);
  letter-spacing: 0.05em;
  padding: 0.85rem 1.75rem !important;
  border: 0 !important;
  border-radius: var(--mst-lp-landing-cta-radius, 2px);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

body.mst-lp-course-landing .mst-course-landing__cta .lp-button:hover,
body.mst-lp-course-landing .mst-course-landing__cta button:hover {
  background: var(--mst-lp-landing-cta-hover-bg, var(--mst-lp-landing-cta-bg, var(--gold-soft, #c8a96e))) !important;
  color: var(--mst-lp-landing-cta-hover-fg, var(--mst-lp-landing-cta-fg, #0e0e0e)) !important;
  opacity: 0.95;
}

body.mst-lp-course-landing .mst-course-landing__cta--secondary .lp-button,
body.mst-lp-course-landing .mst-course-landing__cta--secondary button {
  background: var(--mst-lp-landing-cta-secondary-bg, transparent) !important;
  color: var(--mst-lp-landing-cta-secondary-fg, var(--mst-lp-landing-fg, var(--text-primary))) !important;
  border: 1px solid var(--mst-lp-landing-cta-secondary-border, var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline-strong)))) !important;
  font-family: var(--mst-lp-landing-cta-secondary-ff, var(--mst-lp-landing-cta-ff, var(--font-body)));
  font-weight: var(--mst-lp-landing-cta-secondary-fw, var(--mst-lp-landing-cta-fw, 600));
  font-size: var(--mst-lp-landing-cta-secondary-fs, var(--mst-lp-landing-cta-fs, 0.92rem));
  box-shadow: none;
}

body.mst-lp-course-landing .mst-course-landing__progress {
  margin-top: 0.25rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline-strong)));
}

body.mst-lp-course-landing .mst-course-landing__progress .course-progress__label {
  font-family: var(--mst-lp-landing-progress-ff, var(--font-mono));
  font-size: var(--mst-lp-landing-progress-fs, 0.62rem);
  font-weight: var(--mst-lp-landing-progress-fw, 400);
  line-height: var(--mst-lp-landing-progress-lh, 1.35);
  letter-spacing: var(--mst-lp-landing-progress-ls, 0.14em);
  text-transform: var(--mst-lp-landing-progress-tt, uppercase);
  color: var(--mst-lp-landing-progress-fg, color-mix(in srgb, var(--mst-lp-landing-fg, #f2eee6) 72%, transparent));
  margin-bottom: 0.35rem;
}

body.mst-lp-course-landing .mst-course-landing__progress .course-progress__number,
body.mst-lp-course-landing .mst-course-landing__progress .number {
  color: var(--mst-lp-landing-progress-accent, var(--mst-lp-landing-accent, var(--gold-soft)));
  font-weight: 600;
}

body.mst-lp-course-landing .mst-course-landing__progress .course-progress__line {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0.35rem 0 0.85rem;
}

body.mst-lp-course-landing .mst-course-landing__progress .course-progress__line__active {
  height: 100%;
  background: var(--mst-lp-landing-progress-accent, var(--mst-lp-landing-accent, var(--gold-soft)));
}

/* ── Panel (right band) ── */

body.mst-lp-course-landing .mst-course-landing__panel {
  background: var(--mst-lp-landing-panel-bg, var(--mst-lp-landing-curr-bg, var(--panel-right)));
  min-height: 100vh;
}

body.mst-lp-course-landing .mst-course-landing__panel-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: color-mix(in srgb, var(--mst-lp-landing-panel-bg, var(--mst-lp-landing-curr-bg, #1c1c1c)) 96%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline-strong)));
}

body.mst-lp-course-landing .mst-course-landing__panel-nav .mst-eyebrow {
  font-family: var(--mst-lp-landing-curr-title-ff, var(--font-mono));
  font-size: var(--mst-lp-landing-curr-title-fs, 0.62rem);
  font-weight: var(--mst-lp-landing-curr-title-fw, 600);
  line-height: var(--mst-lp-landing-curr-title-lh, 1.35);
  letter-spacing: var(--mst-lp-landing-curr-title-ls, 0.14em);
  text-transform: var(--mst-lp-landing-curr-title-tt, uppercase);
  color: var(--mst-lp-landing-curr-title-fg, var(--mst-lp-landing-fg, inherit));
}

body.mst-lp-course-landing .mst-course-landing__panel-nav .mst-eyebrow--light {
  font-family: var(--mst-lp-landing-curr-meta-ff, var(--font-mono));
  font-size: var(--mst-lp-landing-curr-meta-fs, 0.62rem);
  font-weight: var(--mst-lp-landing-curr-meta-fw, 400);
  line-height: var(--mst-lp-landing-curr-meta-lh, 1.35);
  letter-spacing: var(--mst-lp-landing-curr-meta-ls, 0.14em);
  text-transform: var(--mst-lp-landing-curr-meta-tt, uppercase);
  color: var(--mst-lp-landing-curr-meta-fg, color-mix(in srgb, var(--mst-lp-landing-fg, #f2eee6) 72%, transparent));
}

/* ── Curriculum (collapsible modules) ── */

body.mst-lp-course-landing .mst-curriculum {
  padding: 0 0 2rem;
}

body.mst-lp-course-landing .mst-curriculum__rows {
  border-top: 1px solid var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline-strong)));
}

body.mst-lp-course-landing .mst-curriculum__module {
  border-bottom: 1px solid var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline-strong)));
  border-radius: var(--mst-lp-landing-curr-radius, 0);
}

body.mst-lp-course-landing .mst-curriculum__module-summary {
  list-style: none;
  cursor: pointer;
}

body.mst-lp-course-landing .mst-curriculum__module-summary::-webkit-details-marker {
  display: none;
}

body.mst-lp-course-landing .mst-curriculum__module-head {
  display: flex;
  align-items: stretch;
  gap: 0;
}

body.mst-lp-course-landing .mst-curriculum__thumb {
  flex: 0 0 clamp(72px, 22vw, 140px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(72px, 22vw, 100px);
  background: var(--mst-lp-landing-bg, var(--panel-left));
  border-right: 1px solid var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline-strong)));
  overflow: hidden;
}

body.mst-lp-course-landing .mst-curriculum__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.mst-lp-course-landing .mst-curriculum__module-num {
  font-family: var(--mst-lp-landing-curr-section-ff, var(--font-display));
  font-size: 2.25rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--mst-lp-landing-curr-section-fg, var(--mst-lp-landing-fg, #f2eee6)) 32%, transparent);
  line-height: 1;
}

body.mst-lp-course-landing .mst-curriculum__module-meta {
  flex: 1;
  padding: 1rem 0.75rem 0.85rem 1rem;
  min-width: 0;
  background: var(--mst-lp-landing-curr-section-bg, transparent);
}

body.mst-lp-course-landing .mst-curriculum__module-meta > .mst-eyebrow {
  font-family: var(--mst-lp-landing-curr-meta-ff, var(--font-mono));
  font-size: var(--mst-lp-landing-curr-meta-fs, 0.62rem);
  font-weight: var(--mst-lp-landing-curr-meta-fw, 400);
  line-height: var(--mst-lp-landing-curr-meta-lh, 1.35);
  letter-spacing: var(--mst-lp-landing-curr-meta-ls, 0.14em);
  text-transform: var(--mst-lp-landing-curr-meta-tt, uppercase);
  color: var(--mst-lp-landing-curr-meta-fg, color-mix(in srgb, var(--mst-lp-landing-fg, #f2eee6) 72%, transparent));
}

body.mst-lp-course-landing .mst-curriculum__module-title {
  font-family: var(--mst-lp-landing-curr-section-ff, var(--font-display));
  font-size: var(--mst-lp-landing-curr-section-fs, clamp(1.05rem, 3.2vw, 1.35rem));
  font-weight: var(--mst-lp-landing-curr-section-fw, 400);
  line-height: var(--mst-lp-landing-curr-section-lh, 1.25);
  letter-spacing: var(--mst-lp-landing-curr-section-ls, normal);
  text-transform: var(--mst-lp-landing-curr-section-tt, none);
  color: var(--mst-lp-landing-curr-section-fg, var(--mst-lp-landing-fg, #f2eee6));
  margin: 0.35rem 0 0;
}

body.mst-lp-course-landing .mst-curriculum__module-excerpt {
  font-family: var(--mst-lp-landing-curr-excerpt-ff, var(--font-body, "DM Sans", sans-serif));
  font-size: var(--mst-lp-landing-curr-excerpt-fs, 0.8125rem);
  font-weight: var(--mst-lp-landing-curr-excerpt-fw, 400);
  line-height: var(--mst-lp-landing-curr-excerpt-lh, 1.5);
  letter-spacing: var(--mst-lp-landing-curr-excerpt-ls, normal);
  text-transform: var(--mst-lp-landing-curr-excerpt-tt, none);
  color: var(--mst-lp-landing-curr-excerpt-fg, color-mix(in srgb, var(--mst-lp-landing-fg, #f2eee6) 72%, transparent));
  background: var(--mst-lp-landing-curr-excerpt-bg, transparent);
  margin: 0.5rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.mst-lp-course-landing .mst-curriculum__chevron {
  flex: 0 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: color-mix(in srgb, var(--mst-lp-landing-fg, #f2eee6) 45%, transparent);
  transition: transform 0.2s ease;
  align-self: center;
  padding-right: 0.5rem;
}

body.mst-lp-course-landing .mst-curriculum__module[open] .mst-curriculum__chevron {
  transform: rotate(90deg);
}

body.mst-lp-course-landing .mst-curriculum__items {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(72px, 22vw, 140px);
  border-top: 1px solid var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline)));
}

body.mst-lp-course-landing .mst-curriculum__item {
  border-top: 1px solid var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline)));
}

body.mst-lp-course-landing .mst-curriculum__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 0.85rem;
  text-decoration: none;
  color: var(--mst-lp-landing-curr-item-fg, color-mix(in srgb, var(--mst-lp-landing-fg, #f2eee6) 82%, transparent));
  background: var(--mst-lp-landing-curr-item-bg, transparent);
  font-family: var(--mst-lp-landing-curr-item-ff, var(--font-body, "DM Sans", sans-serif));
  font-size: var(--mst-lp-landing-curr-item-fs, 0.875rem);
  font-weight: var(--mst-lp-landing-curr-item-fw, 400);
  line-height: var(--mst-lp-landing-curr-item-lh, 1.35);
  letter-spacing: var(--mst-lp-landing-curr-item-ls, normal);
  text-transform: var(--mst-lp-landing-curr-item-tt, none);
  transition: background 0.15s ease, color 0.15s ease;
}

body.mst-lp-course-landing .mst-curriculum__link:hover,
body.mst-lp-course-landing .mst-curriculum__link:focus-visible {
  background: color-mix(in srgb, var(--mst-lp-landing-curr-item-accent, var(--mst-lp-landing-fg, #f2eee6)) 8%, transparent);
  color: var(--mst-lp-landing-curr-item-accent, var(--mst-lp-landing-fg, #f2eee6));
}

body.mst-lp-course-landing button.mst-curriculum__link {
  width: 100%;
  margin: 0;
  border: 0;
  /* Keep themed typography — do not use font: inherit (resets size/family/weight). */
  background: var(--mst-lp-landing-curr-item-bg, transparent);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

body.mst-lp-course-landing .mst-curriculum__link--gated .mst-curriculum__arrow {
  opacity: 0.45;
}

/* ── Access gate overlay ── */
html.mst-access-gate-open {
  overflow: hidden;
}

.mst-access-gate {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.mst-access-gate.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mst-access-gate[hidden] {
  display: none !important;
}

.mst-access-gate.is-open[hidden] {
  display: flex !important;
}

.mst-access-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.mst-access-gate__dialog {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  box-sizing: border-box;
  background: var(--mst-lp-landing-gate-bg, #1c1c1c);
  border: 1px solid var(--mst-lp-landing-gate-accent, rgba(255, 255, 255, 0.1));
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  color: var(--mst-lp-landing-gate-fg, #e8e4dc);
  font-family: var(--mst-lp-landing-gate-ff, inherit);
  font-size: var(--mst-lp-landing-gate-fs, inherit);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}

.mst-access-gate.is-open .mst-access-gate__dialog {
  transform: none;
}

.mst-access-gate__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: color-mix(in srgb, var(--mst-lp-landing-gate-fg, #e8e4dc) 55%, transparent);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.mst-access-gate__close:hover,
.mst-access-gate__close:focus-visible {
  color: var(--mst-lp-landing-gate-fg, #e8e4dc);
  background: rgba(255, 255, 255, 0.06);
}

.mst-access-gate__title {
  margin: 0.45rem 0 0.75rem;
  font-family: var(--mst-lp-landing-gate-title-ff, var(--font-display, "Cormorant Garamond", Georgia, serif));
  font-size: var(--mst-lp-landing-gate-title-fs, clamp(1.55rem, 1.2rem + 1.4vw, 2rem));
  font-weight: var(--mst-lp-landing-gate-title-fw, 400);
  line-height: var(--mst-lp-landing-gate-title-lh, 1.15);
  letter-spacing: var(--mst-lp-landing-gate-title-ls, normal);
  text-transform: var(--mst-lp-landing-gate-title-tt, none);
  color: var(--mst-lp-landing-gate-title-fg, var(--mst-lp-landing-gate-fg, #e8e4dc));
}

.mst-access-gate__body {
  margin: 0 0 1.35rem;
  font-family: var(--mst-lp-landing-gate-body-ff, var(--font-body, "DM Sans", system-ui, sans-serif));
  font-size: var(--mst-lp-landing-gate-body-fs, 0.9rem);
  font-weight: var(--mst-lp-landing-gate-body-fw, 400);
  line-height: var(--mst-lp-landing-gate-body-lh, 1.55);
  letter-spacing: var(--mst-lp-landing-gate-body-ls, normal);
  text-transform: var(--mst-lp-landing-gate-body-tt, none);
  color: var(--mst-lp-landing-gate-body-fg, color-mix(in srgb, var(--mst-lp-landing-gate-fg, #e8e4dc) 72%, transparent));
}

.mst-access-gate__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.mst-access-gate__primary {
  text-decoration: none;
  font-family: var(--mst-lp-landing-gate-btn-ff, inherit);
  font-size: var(--mst-lp-landing-gate-btn-fs, 0.9rem);
  font-weight: var(--mst-lp-landing-gate-btn-fw, 600);
  line-height: var(--mst-lp-landing-gate-btn-lh, 1.35);
  letter-spacing: var(--mst-lp-landing-gate-btn-ls, normal);
  text-transform: var(--mst-lp-landing-gate-btn-tt, none);
  color: var(--mst-lp-landing-gate-btn-fg, inherit);
  background: var(--mst-lp-landing-gate-btn-bg, transparent);
}

.mst-access-gate__secondary {
  cursor: pointer;
}

@media (max-width: 520px) {
  .mst-access-gate__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mst-access-gate__primary,
  .mst-access-gate__secondary {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

body.mst-lp-course-landing .mst-curriculum__type {
  flex: 0 0 4.5rem;
  font-family: var(--mst-lp-landing-curr-item-meta-ff, var(--font-mono));
  font-size: var(--mst-lp-landing-curr-item-meta-fs, 0.58rem);
  font-weight: var(--mst-lp-landing-curr-item-meta-fw, 600);
  line-height: var(--mst-lp-landing-curr-item-meta-lh, 1.35);
  letter-spacing: var(--mst-lp-landing-curr-item-meta-ls, 0.16em);
  text-transform: var(--mst-lp-landing-curr-item-meta-tt, uppercase);
  color: var(--mst-lp-landing-curr-item-meta-fg, var(--mst-lp-landing-accent, var(--gold-soft)));
  background: var(--mst-lp-landing-curr-item-meta-bg, transparent);
}

body.mst-lp-course-landing .mst-curriculum__label {
  flex: 1;
  min-width: 0;
  font-family: var(--mst-lp-landing-curr-item-ff, inherit);
  font-size: var(--mst-lp-landing-curr-item-fs, 0.875rem);
  font-weight: var(--mst-lp-landing-curr-item-fw, inherit);
  line-height: var(--mst-lp-landing-curr-item-lh, 1.35);
  letter-spacing: var(--mst-lp-landing-curr-item-ls, inherit);
  text-transform: var(--mst-lp-landing-curr-item-tt, inherit);
  color: inherit;
}

body.mst-lp-course-landing .mst-curriculum__arrow {
  flex-shrink: 0;
  color: color-mix(in srgb, var(--mst-lp-landing-fg, #f2eee6) 45%, transparent);
  font-size: 0.85rem;
}

body.mst-lp-course-landing .mst-curriculum__note {
  margin: 2rem 1.25rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--mst-lp-landing-accent, #d4a843) 22%, transparent);
  background: color-mix(in srgb, var(--mst-lp-landing-accent, #d4a843) 6%, transparent);
}

body.mst-lp-course-landing .mst-course-landing__empty {
  padding: 2rem 1.25rem;
  color: color-mix(in srgb, var(--mst-lp-landing-fg, #f2eee6) 72%, transparent);
}

body.mst-lp-course-landing .mst-course-landing .mst-footer {
  margin: 0 1.25rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline-strong)));
}

/* ── Desktop split (fixed hero like home) ── */

@media (min-width: 1024px) {
  body.mst-lp-course-landing .mst-course-landing__hero {
    position: fixed;
    inset: 0 auto 0 0;
    width: 42%;
    max-height: 100vh;
    border-bottom: 0;
    border-right: 1px solid var(--mst-lp-landing-curr-border, var(--mst-lp-landing-border, var(--hairline-strong)));
    z-index: 1;
  }

  body.mst-lp-course-landing .mst-course-landing__hero-media {
    min-height: 100vh;
    max-height: 100vh;
    height: 100%;
  }

  body.mst-lp-course-landing .mst-course-landing__hero-inner {
    padding: 2.5rem 2.5rem 2.75rem;
  }

  body.mst-lp-course-landing .mst-course-landing__panel {
    margin-left: 42%;
    width: 58%;
    min-height: 100vh;
  }

  body.mst-lp-course-landing .mst-course-landing__panel-nav {
    padding: 0.85rem 2.5rem;
  }

  body.mst-lp-course-landing .mst-curriculum__module-meta {
    padding: 1.15rem 1rem 1rem 1.25rem;
  }

  body.mst-lp-course-landing .mst-curriculum__items {
    padding-left: 140px;
  }

  body.mst-lp-course-landing .mst-curriculum__link {
    padding: 0.8rem 2rem 0.8rem 1rem;
  }

  body.mst-lp-course-landing .mst-course-landing .mst-footer {
    margin: 0 2.5rem;
  }
}
