/* Shared editorial accents: pastel on dark scenes, deeper ink on light ones. */
:root {
  --nx-heading-pastel: linear-gradient(110deg, #bfd9ff 0%, #c6b9ee 55%, #f8b89f 100%);
  --nx-heading-ink: linear-gradient(110deg, #253957 0%, #493955 55%, #643b30 100%);
}

.bold,
.compact-hero,
.article-header {
  --nx-heading-gradient: var(--nx-heading-ink);
}

.bold :is(
  .club-opening, .club-atlas, .club-membership-scene,
  .plus-opening, .plus-price-stage,
  .sales-opening, .sales-method, .language-opening, .language-method,
  .difficult-opening, .difficult-close,
  .cmo-opening, .cmo-office-section, .cmo-work-cycle, .cmo-finish,
  .teach-opening, .teach-director,
  .about-opening, .about-live-spread, .about-work-spread,
  .about-forum-spread, .about-mission-close,
  .business-opening, .business-themes, .business-reasons, .business-faculty,
  .uni-opening, .uni-roadmap, .uni-founder-offer,
  .reviews-opening, .reviews-finish,
  .workplace-opening, .workplace-control,
  .collection-journal.fx-archive-scene,
  .v-club
),
.b-language .coach-finish {
  --nx-heading-gradient: var(--nx-heading-pastel);
}

/* Paper panels inside dark scenes keep the darker treatment. */
.bold :is(.uni-license-book, .workplace-window, .teach-class, .collection-cover) {
  --nx-heading-gradient: var(--nx-heading-ink);
}

.nx-course-gradients {
  --nx-heading-gradient: var(--nx-heading-pastel);
}
.nx-course-gradients :is(.perspective, .curriculum, .membership, .questions) {
  --nx-heading-gradient: var(--nx-heading-ink);
}

/* Keep each heading's original color as a fallback and for accessible modes. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) and (-webkit-text-fill-color: transparent) {
  :is(
    .bold h1 em,
    .bold h2 em,
    .bold .plus-opening h1 > span,
    .bold .about-work-title h2,
    .bold .about-community-map h2,
    .bold .about-mission-close h2,
    .bold .teach-audience header h2,
    .compact-hero h1,
    .article-header h1,
    .nx-course-gradients .course-name .growth > span,
    .nx-course-gradients .directory-heading h2 em,
    .nx-course-gradients .perspective .italic-word,
    .nx-course-gradients .curriculum-side h2 em,
    .nx-course-gradients .outcome-heading h2 em,
    .nx-course-gradients .feedback h2 em,
    .nx-course-gradients .membership h2 em,
    .nx-course-gradients .questions h2 em
  ) {
    background-image: var(--nx-heading-gradient, var(--nx-heading-ink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    text-shadow: none;
  }
}

@media print, (forced-colors: active) {
  :is(.bold, .compact-hero, .article-header, .nx-course-gradients) :is(h1, h2, h3),
  :is(.bold, .compact-hero, .article-header, .nx-course-gradients) :is(h1, h2, h3) * {
    background-image: none;
    -webkit-text-fill-color: currentColor;
  }
}
