/* One heading family across editorial, commercial and engineering routes.
   The existing heading sizes and semantic content remain owned by each component. */
body.everest-redesign {
  --ewerest-heading-font: Manrope, Inter, Arial, sans-serif;
  --ewerest-heading-ink: #132c43;
  --ewerest-heading-accent: #175cd3;
}
body.everest-redesign main :is(h1, h2, h3, h4, h5, h6),
body.everest-redesign main .statement-heading {
  font-family: var(--ewerest-heading-font) !important;
  font-weight: 600 !important;
  font-synthesis: none;
}
body.everest-redesign main :is(h1, h2):not(.precision-hero-eyebrow),
body.everest-redesign main .statement-heading {
  letter-spacing: -.045em;
}
body.everest-redesign main :is(h3, h4, h5, h6) {
  letter-spacing: -.025em;
}
body.everest-redesign main .precision-hero-eyebrow {
  letter-spacing: .08em;
}

/* Only allowlisted editorial headings receive these ranges. Base paint clears
   old arbitrary span accents; it does not affect contact names or functional UI. */
body.everest-redesign main ::highlight(ewerest-heading-base) {
  color: var(--ewerest-heading-ink);
  background-color: transparent;
}
body.everest-redesign main ::highlight(ewerest-heading-base-inverse) {
  color: #f7faff;
  background-color: transparent;
}

/* Native text painting keeps React-owned headings, links and accessible text intact. */
body.everest-redesign main ::highlight(ewerest-heading-accent) {
  color: var(--ewerest-heading-accent);
  background-color: transparent;
}
body.everest-redesign main ::highlight(ewerest-heading-accent-inverse) {
  color: #79aaff;
  background-color: transparent;
}
body.everest-redesign main .statement-heading-main {
  color: var(--statement-main, var(--ewerest-heading-ink));
}
body.everest-redesign main .statement-heading-accent {
  color: var(--statement-accent, var(--ewerest-heading-accent));
}
