/* 06-contrast.css — Dark surfaces declare their own heading colour; Ultimate Member contrast.
   Split out of style.css 2026-11-18. Source order is preserved and the files are
   enqueued in filename order, so the cascade is identical to the single file. */


/* ---------------------------------------------------------------------------
   Dark surfaces declare their own heading colour.

   Avada's global heading colour (--h1..h6_typography-color) shipped as #ffffff
   while body text was the near-black --awb-color8, so every heading on every
   light page was white-on-white and invisible — 47 of them across 24 pages.
   The global colour is now --awb-color8, which is correct for content pages
   but wrong for the dark hero, whose headings then went dark-on-dark.

   A dark section must state its own text colour rather than depend on a global
   default happening to be light. !important is needed because Avada's dynamic
   CSS (.fusion-post-content h1, specificity 0-1-1) both outranks .fb-hero-title
   (0-1-0) and loads after this file — the same ordering problem noted for
   .social-share above.
   --------------------------------------------------------------------------- */
.fb-hero h1,
.fb-hero h2,
.fb-hero h3,
.fb-hero h4,
.fb-hero h5,
.fb-hero h6 {
  color: var(--awb-color1) !important;
}

/* Ultimate Member's muted grey (#888) is 3.54:1 on white — below the 4.5:1
   needed for body text. --awb-color6 is the palette's muted tone and clears it. */
.um a.um-link-alt,
.um .um-form a.um-link-alt,
.um .um-field-checkbox-option,
.um .um-form .um-field-checkbox-option,
.um-form .um-field-checkbox-option {
  color: var(--awb-color6) !important;   /* UM ships a.um-link-alt{color:#888!important} and loads after this file */
}

/* UM's field-block description text inherits #777 (4.48:1 on white — just under
   the 4.5:1 floor). Palette muted tone clears it at ~5.9:1. */
.um .um-field-block,
.um .um-field-block > div {
  color: var(--awb-color6);
}
