/* Promo section widgets (mn_promo_*): shared tokens, typography and helpers.
   Every widget's root carries .mn-promo plus its own block class. */

.mn-promo {
  --mn-promo-bg: #0a0a0a;
  --mn-promo-text: #f5f1e8;
  --mn-promo-card: #161618;
  --mn-promo-border: #2a2a2c;
  --mn-promo-muted: #d9d5cc;
  --mn-promo-dim: #4a4a4c;
  --mn-promo-lime: #c8ff3a;
  --mn-promo-black: #000000;
  /* theme .row adds -15px side margins, so above 1024px a full-width section bleeds 15px past the viewport */
  --mn-promo-bleed: 15px;
  --mn-promo-gutter: calc(max(81px, (100% - 2 * var(--mn-promo-bleed) - 1330px) / 2) + var(--mn-promo-bleed));

  box-sizing: border-box;
  background-color: var(--mn-promo-bg);
  color: var(--mn-promo-text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  line-height: normal;
}

/* custom.css sets roc-grotesk on body * */
.mn-promo * {
  font-family: inherit;
}

/* neutralise theme styles on bare headings, paragraphs and links */
.mn-promo :where(h1, h2, h3, p) {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.mn-promo :where(a) {
  color: inherit;
  text-decoration: none;
}

.mn-promo :where(a, summary):focus-visible {
  outline: 2px solid var(--mn-promo-lime);
  outline-offset: 3px;
}

/* Headings: the Elementor kit styles bare hN as `.elementor-kit-N hN` (one class + element),
   so every heading class in the promo widgets is scoped under .mn-promo to outrank it. */

/* Section heading: optional muted lead-in, then the main words */
.mn-promo .mn-promo__heading {
  font-family: inherit;
  font-size: 52px;
  line-height: 1.02;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
}

.mn-promo .mn-promo__heading--sm {
  font-size: 44px;
}

.mn-promo__muted {
  color: var(--mn-promo-dim);
}

.mn-promo__eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* WYSIWYG content: paragraphs inherit the element's type; links stay visible as links */
.mn-promo__rich :where(ul, ol) {
  margin: 0;
  padding-left: 1.25em;
}

.mn-promo__rich > * + * {
  margin-top: 0.75em;
}

.mn-promo__rich a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mn-promo__rich a:hover {
  text-decoration-thickness: 2px;
}

/* Copy variants: the mobile one is only rendered when it differs */
.mn-promo__mobile {
  display: none;
}

/* Announcement bar (plugin markup) uses the promo font where these widgets load */
.wpfront-message,
.wpfront-message * {
  font-family: "Archivo", system-ui, sans-serif;
}

@media (max-width: 1024px) {
  .mn-promo {
    /* theme pads #pxl-main > .elementor-container by 15px here, cancelling the bleed */
    --mn-promo-bleed: 0px;
    --mn-promo-gutter: 40px;
  }
}

@media (max-width: 767px) {
  .mn-promo {
    --mn-promo-gutter: 20px;
  }

  .mn-promo .mn-promo__heading {
    font-size: 30px;
  }

  .mn-promo .mn-promo__heading--sm {
    font-size: 26px;
    line-height: normal;
  }

  .mn-promo__eyebrow {
    font-size: 11px;
  }

  .mn-promo__desktop {
    display: none;
  }

  /* span or div: back to the element's default display */
  .mn-promo__mobile {
    display: revert;
  }
}
