/*
 * Cancel YOOtheme's heading COLOUR on the three ACF microsites — and nothing else.
 *
 * THE BUG
 *
 * theme.1.css carries `color: #212c34` on a selector list that includes the BARE elements:
 *
 *     h1, .uk-h1, h2, .uk-h2, h3, .uk-h3, ... { color: #212c34 }
 *
 * The microsite markup uses plain <h2>. Their originals have NO colour rule on most of those
 * headings at all — they inherit white from the dark section wrapping them. Any declaration beats
 * inheritance, so under YOOtheme every such heading renders #212c34 on black: "DMX Smoothing",
 * "Color matching made easy.", "You are in control." and most of the Spectrum OS feature copy.
 *
 * WHY THIS FILE, AND WHY IT LOADS EARLY
 *
 * The obvious fix — `.lg-microsite :is(h1,…h6) { color: inherit }` in lg-layout.css — makes things
 * worse, and measurably so: 84 headings differed from the original before it and 165 after. It is
 * too strong and loads too late, so it also overrides the microsite CSS's OWN colour rules
 * (`.spectrum-heading h2 { color: #fff }` and friends), repainting headings that were already
 * correct.
 *
 * The reset has to sit in the narrow gap between the two: strong enough to beat YOOtheme's bare
 * `h2` (0,0,1), weak enough to lose to the microsite's `.something h2` (0,1,1). Specificity alone
 * cannot express that — 0,1,1 TIES with the microsite rules — so LOAD ORDER decides it. This file
 * is enqueued after lg-vendor and before lg-<site> (see lg_enqueue_microsite_assets), so on a tie
 * the microsite rule wins because it comes later.
 *
 * That is the whole reason this is a separate stylesheet rather than a few lines appended to one
 * of the existing ones: it is the only rule in the microsite bundle that must be beatable.
 *
 * NO :not() GUARDS. `:not(.lg-flatsome):not(.lg-litetile)` reads like harmless scoping but each
 * one contributes a class to the specificity, taking the selector to 0,3,1 — comfortably above the
 * 0,1,1 microsite rules it is supposed to lose to. That version measured WORSE than no rule at all
 * (175 headings differing against a baseline of 84) while looking like it was doing the right
 * thing. The exclusion is unnecessary anyway: this file is enqueued only by
 * lg_enqueue_microsite_assets(), which runs on pages carrying `_lg_microsite`, and the Flatsome
 * rebuilds carry `_lg_flatsome_page` instead and never load it.
 *
 * The selector must stay at exactly 0,1,1 for the load-order tie-break above to work.
 */

.lg-microsite :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}
