/**
 * Kent Greenhouse - the Gravity Forms HTML field inside a pale accent-1 card keeps the
 * light text colour the surrounding section sets, while every other control in the same
 * form is black.
 *
 * Measured 2026-09-12, axe-core 4.13.0, /request-a-consultation/ at 1366x900:
 *   #field_1_11                       #ffffff on #ced8c8   1.47 to 1   needs 4.5
 *   #field_1_11 > .imt-business-name  #ffffff on #ced8c8   1.47 to 1   needs 4.5
 *
 * Scoped to a Gravity Forms HTML field inside an accent-1 card and to nothing else. A
 * blanket .gfield_html { color: #000 } would be wrong: the same field on a genuinely
 * dark section is correctly white today.
 */
.imt-card-color-override-accent-1 .gform_wrapper .gfield_html,
.imt-card-color-override-accent-1 .gform_wrapper .gfield_html *:not(a) {
	color: var(--wp--custom--imt--color--text--default, #000);
}

/**
 * ADA-107 / #962. The two legal links inside that same HTML field are the brand green
 * #008045 on the same pale panel. #962 option 1, chosen by Brett 2026-09-12: darken the
 * link colour on THIS background only and leave the brand green alone everywhere else.
 *
 * Measured on the live page 2026-09-12, both viewports, cache-busted:
 *   BEFORE  #008045 on #ced8c8   3.42 to 1   FAIL (needs 4.5, WCAG 2.2 AA 1.4.3)
 *   AFTER   #005a30 on #ced8c8   5.70 to 1   PASS
 *
 * The backdrop is NOT painted by an ancestor. The Intrigue Me card fills itself from an
 * absolutely positioned sibling, div.imt-card-bg-color, so an ancestor-only walk reads
 * the page white and the pairing passes at 5.03 to 1 that way. It is the sibling's
 * #ced8c8 that the text actually sits on, which is what axe-core measures and what the
 * 3.42 above is. Scope this by the card colour class for that reason, never by the form.
 *
 * #962 records the ratio for #005a30 as "about 5.1 to 1". Recomputed from the two
 * measured colours it is 5.70 to 1; 5.10 is the ratio for #006236. Either passes. The
 * colour named in the ticket is the one deployed.
 *
 * The same #008045 on the site's white background measures 5.03 to 1 and passes, and is
 * left untouched: a colour census of all three pinned pages at 390 and 1366 before and
 * after this rule shows exactly two elements moving from rgb(0,128,69) to rgb(0,90,48)
 * and no other computed colour changing anywhere.
 *
 * WHY !important. The first deploy of this rule without it was live in the served
 * stylesheet and changed nothing, confirmed by CDP CSS.getMatchedStylesForNode: the
 * parent theme's
 *   .imt-section .imt-card-group .imt-card.imt-card-color-override-accent-1
 *     a:not(.imt-btn):not(.imt-menu-link)
 * is specificity (0,6,1) against this rule's (0,3,1) and its stylesheet also loads
 * later, so a tie would lose too. Matching it on specificity means binding this rule to
 * .imt-section .imt-card-group .imt-card, and if the theme restructures those wrappers
 * the selector stops matching and the contrast failure returns with nothing to announce
 * it. The site's own child stylesheet already carries 113 !important declarations,
 * including one for Gravity Forms input colour, so this is the idiom here, not a
 * departure from it.
 *
 * TO REVERT: restore
 * remediation/kentgreenhouse/backups/kentgreenhouse-mpg-a11y-form-html-contrast-2026-09-12.css
 * then `wp page-cache flush && wp cdn-cache flush`.
 */
.imt-card-color-override-accent-1 .gform_wrapper .gfield_html a {
	color: #005a30 !important;
}
