/*
 * Dark Editorial Split — ported from the MetFix Medical Nutrition prototype.
 * Close, not pixel-identical. Always dark.
 */

:root {
  --panel-left: #111111;
  --panel-right: #1c1c1c;
  --text-primary: #e8e4dc;
  --text-secondary: rgba(232, 228, 220, 0.78);
  --text-tertiary: rgba(232, 228, 220, 0.55);
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.12);
  --gold: #d4a843;
  --gold-soft: #c8a96e;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
}

html,
body.mst-editorial {
  background: var(--panel-left) !important;
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.mst-editorial #masthead,
body.mst-editorial .site-header,
body.mst-editorial header.ast-primary-header-bar,
body.mst-editorial .ast-mobile-header-wrap,
body.mst-editorial #colophon,
body.mst-editorial .site-footer,
body.mst-editorial .ast-footer-copyright,
body.mst-editorial .ast-builder-footer-grid,
body.mst-editorial .ast-breadcrumbs-wrapper,
body.mst-editorial .ast-above-header,
body.mst-editorial .ast-below-header,
body.mst-editorial .ast-header-break-point,
body.mst-editorial .entry-header,
body.mst-editorial .ast-archive-description,
body.mst-editorial .skip-link {
  display: none !important;
}

body.mst-editorial .site,
body.mst-editorial #page,
body.mst-editorial #content,
body.mst-editorial .site-content,
body.mst-editorial .ast-container,
body.mst-editorial #primary,
body.mst-editorial #main,
body.mst-editorial .content-area,
body.mst-editorial .ast-article-single,
body.mst-editorial.ast-separate-container .site-content,
body.mst-editorial.ast-separate-container .ast-article-single,
body.mst-editorial.ast-plain-container .site-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.mst-editorial.ast-separate-container {
  background: var(--panel-left) !important;
}

.mst-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.4);
  margin: 0;
}

.mst-eyebrow--light {
  color: rgba(232, 228, 220, 0.72);
}

.mst-eyebrow--gold {
  color: var(--gold-soft);
}

.mst-eyebrow--link {
  color: rgba(232, 228, 220, 0.72);
  text-decoration: none;
}

.mst-eyebrow--link:hover {
  color: var(--text-primary);
}

/* ── Home split ── */

.mst-home-split {
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  flex-direction: column;
  background: var(--panel-left);
}

.mst-home-hero {
  background: var(--panel-left);
  border-bottom: 1px solid var(--hairline);
}

.mst-home-hero__media {
  position: relative;
  min-height: 56vw;
  max-height: 70vw;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 42%, rgba(232, 228, 220, 0.12), transparent 52%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 0, 0, 0.55), transparent 50%),
    #111111;
}

.mst-home-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.75;
}

.mst-home-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #111111 0%, rgba(17, 17, 17, 0.6) 40%, rgba(17, 17, 17, 0.1) 100%);
}

.mst-home-hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.mst-display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 1rem 0 1.5rem;
}

.mst-display em {
  font-style: italic;
  font-weight: 400;
}

.mst-lede {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 34ch;
  margin: 0;
}

.mst-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.mst-stats__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-primary);
}

.mst-home-panel {
  background: var(--panel-right);
  min-height: 100vh;
}

.mst-home-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.mst-home-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mst-home-hero__body.is-switching {
  opacity: 0.72;
  transition: opacity 0.18s ease;
}

.mst-home-hero__body {
  transition: opacity 0.22s ease;
}

.mst-home-hero__image {
  transition: opacity 0.35s ease;
}

.mst-urgency {
  margin: 1.5rem 1.25rem 0.5rem;
  padding: 1.25rem;
  background: rgba(212, 168, 67, 0.06);
  border: 1px solid rgba(212, 168, 67, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mst-urgency__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.25rem;
}

.mst-urgency__copy {
  font-size: 0.875rem;
  line-height: 1.35;
  color: rgba(232, 228, 220, 0.85);
  margin: 0;
}

.mst-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mst-price-card {
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  min-width: 7.5rem;
}

.mst-price-card--gold {
  background: rgba(212, 168, 67, 0.15);
  border-color: rgba(212, 168, 67, 0.35);
}

.mst-price-card--gold:hover {
  background: rgba(212, 168, 67, 0.25);
}

.mst-price-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.45);
  margin: 0;
}

.mst-price-card--gold .mst-price-card__label {
  color: var(--gold);
}

.mst-price-card__value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.15rem 0;
}

.mst-price-card--gold .mst-price-card__value {
  color: var(--gold);
}

.mst-price-card__meta {
  font-size: 10px;
  color: rgba(232, 228, 220, 0.45);
  margin: 0;
}

.mst-price-card--gold .mst-price-card__meta {
  color: rgba(212, 168, 67, 0.7);
}

.mst-module-list {
  padding: 1.5rem 1.25rem 2.5rem;
}

.mst-module-list > .mst-eyebrow {
  margin-bottom: 2rem;
}

.mst-module-list__rows {
  border-top: 1px solid var(--hairline);
}

.mst-module {
  display: flex;
  border-bottom: 1px solid var(--hairline);
}

.mst-module:hover {
  background: rgba(255, 255, 255, 0.02);
}

.mst-module__thumb {
  position: relative;
  flex: 0 0 auto;
  width: clamp(72px, 22vw, 140px);
  height: clamp(72px, 22vw, 100px);
  background: var(--panel-left);
  border-right: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mst-module__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(232, 228, 220, 0.28);
  line-height: 1;
}

.mst-module__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 1rem 0.75rem;
}

.mst-module__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0.35rem 0 0.5rem;
}

.mst-module__desc {
  font-size: 0.8125rem;
  color: rgba(232, 228, 220, 0.72);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mst-module__arrow {
  color: rgba(232, 228, 220, 0.62);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.mst-note {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--hairline);
}

.mst-note p:last-child {
  font-size: 0.8125rem;
  color: rgba(232, 228, 220, 0.72);
  line-height: 1.65;
  margin: 0.75rem 0 0;
}

/* Brand hub — program list */
.mst-programs {
  padding: 2rem 1.25rem 0;
}

.mst-program-list {
  border-top: 1px solid var(--hairline);
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.mst-program-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  transition: background-color 0.18s ease;
  cursor: pointer;
  outline: none;
}

.mst-program-item--live,
.mst-program-item--external {
  cursor: pointer;
}

.mst-program-item:hover,
.mst-program-item.is-active,
.mst-program-item:focus-visible {
  background: rgba(255, 255, 255, 0.02);
}

.mst-program-item.is-active {
  box-shadow: inset 3px 0 0 var(--gold-soft);
  padding-left: 0.75rem;
  margin-left: -0.75rem;
}

.mst-program-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  margin: 0.35rem 0 0.65rem;
  color: var(--fg);
  line-height: 1.15;
}

.mst-program-item__desc,
.mst-program-item__meta {
  font-size: 0.875rem;
  color: rgba(232, 228, 220, 0.72);
  line-height: 1.55;
  margin: 0 0 0.75rem;
  max-width: 42rem;
}

.mst-program-item__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(232, 228, 220, 0.55);
}

.mst-program-item--stub {
  opacity: 0.72;
}

.mst-program-item--stub .mst-btn-primary,
.mst-program-item--stub .mst-btn-secondary {
  display: none;
}

.mst-program-card {
  border: 1px solid var(--hairline);
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.mst-program-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin: 0.35rem 0 0.75rem;
  color: var(--fg);
}

.mst-program-card__desc,
.mst-program-card__meta {
  font-size: 0.875rem;
  color: rgba(232, 228, 220, 0.72);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.mst-program-stubs {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.mst-program-stub {
  opacity: 0.45;
  border: 1px solid var(--hairline);
  padding: 1rem 1.25rem;
  pointer-events: none;
}

.mst-program-stub__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0.25rem 0;
  color: var(--fg);
}

.mst-program-stub__desc {
  font-size: 0.8125rem;
  color: rgba(232, 228, 220, 0.62);
  margin: 0;
}

.mst-urgency--compact {
  margin-top: 0;
}

.mst-home-nav .mst-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
}

/* Dashboard + certificate */
.mst-dashboard,
.mst-certificate-page,
.mst-cme-page .mst-landing-main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem;
  color: var(--fg);
}

.mst-dashboard__cards {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.mst-dashboard-card .mst-btn-primary,
.mst-dashboard-buy .mst-btn-primary {
  margin-top: 0.75rem;
}

.mst-dashboard__links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.mst-dashboard__links a {
  color: var(--gold-soft);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mst-certificate {
  border: 2px solid var(--gold-soft);
  padding: 2.5rem;
  margin: 2rem 0;
  background: #f2efe9;
  color: #1a1a1a;
}

.mst-certificate__name {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
}

.mst-certificate__body,
.mst-certificate__date {
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media print {
  .mst-landing-nav,
  .mst-footer,
  .mst-btn-primary {
    display: none !important;
  }
  .mst-certificate {
    border-color: #000;
  }
}

.mst-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mst-footer__links {
  display: flex;
  gap: 1.25rem;
}

.mst-footer a {
  text-decoration: none;
  color: rgba(232, 228, 220, 0.62);
}

.mst-footer a:hover {
  color: var(--text-primary);
}

@media (min-width: 1024px) {
  .mst-home-split {
    flex-direction: row;
  }

  .mst-home-hero {
    position: fixed;
    inset: 0 auto 0 0;
    width: 42%;
    border-bottom: 0;
    border-right: 1px solid var(--hairline);
  }

  .mst-home-hero__media {
    min-height: 100vh;
    max-height: none;
    height: 100%;
  }

  .mst-home-hero__inner {
    padding: 3rem;
  }

  .mst-home-panel {
    margin-left: 42%;
    width: 58%;
  }

  .mst-home-nav {
    padding: 1.25rem 2.5rem;
  }

  .mst-programs {
    padding: 2.5rem 2.5rem 0;
  }

  .mst-urgency {
    margin: 2rem 2.5rem 0.5rem;
    padding: 1.25rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .mst-module-list {
    padding: 2.5rem;
  }

  .mst-module__body {
    padding: 1.25rem 1.5rem;
  }

  .mst-stats {
    gap: 2rem;
  }
}

/* ── Landings ── */

.mst-landing-page {
  min-height: 100vh;
  background: #0e0e0e;
  color: var(--text-primary);
}

.mst-landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.mst-wordmark {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--gold-soft);
  text-decoration: none;
  text-transform: uppercase;
}

.mst-landing-nav__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.mst-landing-nav__links a {
  font-size: 0.85rem;
  color: rgba(232, 228, 220, 0.5);
  text-decoration: none;
}

.mst-landing-nav__links a:hover,
.mst-landing-nav__links a.is-current {
  color: var(--text-primary);
}

.mst-landing-main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.mst-landing-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 1.25rem;
}

.mst-landing-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1.5rem;
}

.mst-landing-title em {
  display: block;
  font-style: italic;
  color: var(--gold-soft);
}

.mst-landing-lede {
  font-size: 1.05rem;
  color: rgba(232, 228, 220, 0.7);
  line-height: 1.75;
  margin: 0 0 2rem;
}

.mst-btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--gold-soft);
  color: #0e0e0e !important;
  font-weight: 700;
  padding: 0.85rem 2.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
}

.mst-btn-primary:hover {
  opacity: 0.88;
}

.mst-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary) !important;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mst-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.mst-btn-secondary--nav {
  padding: 0.45rem 0.75rem;
}

.mst-landing-points {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.mst-landing-points li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.mst-landing-main .mst-footer {
  margin-top: 3rem;
}

@media (min-width: 700px) {
  .mst-landing-nav {
    padding: 1rem 2rem;
  }

  .mst-landing-main {
    padding: 5rem 2rem 4rem;
  }
}
