/* ABOUTME: Defensive CSS against EveryAction's unscoped embed stylesheet. */
/* ABOUTME: Reclaims heading typography and body color; fixes FastAction link contrast. */

/*
 * EveryAction's generated CustomStylesheet ships `h1,…,h9 { color:#212529;
 * font-family:Arial }` with NO scoping. 0-0-2 here beats their 0-0-1 element
 * selectors regardless of load order, while still losing to every class-based
 * rule (0-1-0+) — so block/theme heading classes keep full control and their
 * `.at *` rule keeps EveryAction's own forms styled.
 */
body :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
	font-family: var(--yak-secondary-font, inherit);
}

/*
 * Their `html>body { color:#212529 }` (0-0-2) beats the theme's `body` rule
 * (0-0-1). Pinning at 0-1-2 puts the value back under our control and makes
 * pages with and without the EveryAction embed consistent. Deliberately pinned
 * to the long-standing rendered value (#212529), not the theme token (#000) —
 * changing site-wide body color is a design decision, not a bug fix.
 */
html body[class] {
	color: #212529;
}

/*
 * FastAction profile widget: 11px brand-orange links on white (3.15:1).
 * Same hue darkened to the AA-safe text variant (see Color_Contrast).
 */
body .fastAction a,
body .fastAction a:visited {
	color: #cf4b0c;
}
