/**
 * V10 corrective family contracts.
 * Only deterministic defects found in rendered mechanical QA are corrected
 * here; the recovered family compositions remain owned by their exact sheets.
 */

/* April: retain the plum/rose family action, but own every state and nested
 * foreground without the shared faux-3D repaint or duplicate arrow. */
:is([data-sales-test-variant="april_home_v1"], [data-sb4-fallback-renderer="april_home_v1"]) :is([data-sales-test-placement], [data-sb4-fallback-placement]).sbh2020-download,
:is([data-sales-test-variant="april_home_v1"], [data-sb4-fallback-renderer="april_home_v1"]) :is([data-sales-test-placement], [data-sb4-fallback-placement]).sbh2020-download:visited {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: linear-gradient(135deg, #4c3558 0%, #72527d 56%, #416f68 100%) !important;
	border-color: rgba(255, 255, 255, .72) !important;
}

:is([data-sales-test-variant="april_home_v1"], [data-sb4-fallback-renderer="april_home_v1"]) :is([data-sales-test-placement], [data-sb4-fallback-placement]).sbh2020-download:hover {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: linear-gradient(135deg, #3f2b4b 0%, #684773 54%, #35635d 100%) !important;
}

:is([data-sales-test-variant="april_home_v1"], [data-sb4-fallback-renderer="april_home_v1"]) :is([data-sales-test-placement], [data-sb4-fallback-placement]).sbh2020-download:active {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: #44304f !important;
}

/* July: replace the retired image button/provider collage with a readable,
 * truthful decision card that still belongs to the blue historical family. */
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor :is(
	[data-css="tve-u-16c086145b2"],
	[data-css="tve-u-169bdf3fb29"],
	[data-css="tve-u-16c0861a2c9"],
	[data-css="tve-u-16c0861e2bc"],
	[data-css="tve-u-16c08621edd"]
) {
	color: #fffaf2 !important;
	-webkit-text-fill-color: #fffaf2 !important;
	background: linear-gradient(145deg, #172653 0%, #263a72 58%, #126b72 100%) !important;
	border: 1px solid rgba(255, 255, 255, .36) !important;
	border-radius: 18px !important;
	box-shadow: 0 18px 42px rgba(16, 27, 70, .24) !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor :is(
	[data-css="tve-u-16c086145b2"],
	[data-css="tve-u-169bdf3fb29"],
	[data-css="tve-u-16c0861a2c9"],
	[data-css="tve-u-16c0861e2bc"],
	[data-css="tve-u-16c08621edd"]
) :is(p, strong, em, span, h2, h3) {
	color: inherit !important;
	-webkit-text-fill-color: currentColor !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .sb-cro-upgraded-cta,
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .tve_image_caption:has(.sb-cro-cta--legacy-upgraded) {
	inline-size: min(100%, 520px) !important;
	margin: 24px auto 12px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .sb-cro-upgraded-cta .tve_image_frame,
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .tve_image_caption:has(.sb-cro-cta--legacy-upgraded) .tve_image_frame {
	display: block !important;
	inline-size: 100% !important;
	max-inline-size: 100% !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .sb-cro-cta--legacy-upgraded,
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .sb-cro-cta--legacy-upgraded:visited {
	display: inline-flex !important;
	inline-size: 100% !important;
	min-block-size: 58px !important;
	align-items: center !important;
	justify-content: center !important;
	gap: .65em !important;
	padding: 14px 24px !important;
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: linear-gradient(135deg, #4d315f 0%, #704780 53%, #17727a 100%) !important;
	border: 2px solid rgba(255, 255, 255, .78) !important;
	border-radius: 999px !important;
	box-shadow: 0 10px 24px rgba(22, 28, 70, .26) !important;
	font-size: clamp(20px, 4.5vw, 28px) !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	text-align: center !important;
	text-decoration: none !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .sb-cro-cta--legacy-upgraded:hover {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: linear-gradient(135deg, #3e274e 0%, #603b70 53%, #105f66 100%) !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .sb-cro-cta--legacy-upgraded:active {
	color: #fffdf8 !important;
	-webkit-text-fill-color: #fffdf8 !important;
	background: #3f2b4e !important;
	box-shadow: 0 4px 12px rgba(22, 28, 70, .22) !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .sb-cro-cta--legacy-upgraded .sb-cro-cta__arrow {
	display: inline-block !important;
	margin-inline-start: .45em !important;
	font-size: 1.22em !important;
	line-height: 1 !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .sb4-secure-checkout-note {
	display: flex !important;
	inline-size: min(100%, 480px) !important;
	min-block-size: 72px !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px 14px !important;
	margin: 12px auto 28px !important;
	padding: 14px 20px !important;
	color: #292039 !important;
	-webkit-text-fill-color: #292039 !important;
	background: #fffaf2 !important;
	border: 1px solid rgba(69, 50, 83, .26) !important;
	border-radius: 14px !important;
	box-shadow: 0 10px 24px rgba(27, 31, 67, .15) !important;
	font-size: 18px !important;
	line-height: 1.25 !important;
	text-align: center !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .sb4-secure-checkout-note :is(strong, span) {
	color: #4c3558 !important;
	-webkit-text-fill-color: #4c3558 !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor :is(.tve-post-grid-title a, a.tve_pg_more),
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor [data-css="tve-u-169044b17e6"] a {
	display: inline-flex !important;
	min-block-size: 44px !important;
	align-items: center !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor a.tve_pg_more {
	padding-block: 10px !important;
}

:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor [data-css="tve-u-169044b17e6"] a {
	padding-inline: 8px !important;
}

/* The recovered mobile review heading used a bright cyan that fell below the
 * 3:1 large-text threshold on its white canvas. Keep the historical cyan
 * accent, but darken it enough to remain readable in assigned and retained
 * fallback renderers. */
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor [data-css="tve-u-16c083e2880"],
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor [data-css="tve-u-16c083e2880"] * {
	color: #006f8f !important;
	-webkit-text-fill-color: #006f8f !important;
}

/* Every recovered guarantee card sits on a pale confetti canvas. Its source
 * declared the large heading almost white, which made the decision prompt
 * disappear. Own the heading and its direct emphasis while preserving the
 * already-readable red "No Risk" accent nested inside its span. */
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor :is(
	[data-css="tve-u-16c098505a2"],
	[data-css="tve-u-16c09855556"],
	[data-css="tve-u-16c09859d6a"],
	[data-css="tve-u-16c0985ee3e"],
	[data-css="tve-u-16c09863d55"]
),
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor :is(
	[data-css="tve-u-16c098505a2"],
	[data-css="tve-u-16c09855556"],
	[data-css="tve-u-16c09859d6a"],
	[data-css="tve-u-16c0985ee3e"],
	[data-css="tve-u-16c09863d55"]
) > strong {
	color: #302b47 !important;
	-webkit-text-fill-color: #302b47 !important;
}

/* The nested historical "No Risk" accent is intentionally distinct from the
 * guarantee heading. Its inline red was being overwritten by the inherited
 * white text contract, making the words disappear on the pale confetti cards.
 * Own both the span and nested strong with an accessible berry value. */
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor [data-css="tve-u-16914e5b8ce"],
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor [data-css="tve-u-16914e5b8ce"] strong {
	color: #8b1e3f !important;
	-webkit-text-fill-color: #8b1e3f !important;
}

/* Two recovered reviewer-name accents used fluorescent green on white. Keep
 * the green identity with an accessible deep-teal value. */
:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor :is(
	[data-css="tve-u-16c08392ad8"],
	[data-css="tve-u-169beefdb12"]
) {
	color: #0b6652 !important;
	-webkit-text-fill-color: #0b6652 !important;
}

/* Thrive: retain its recovered gradient/art composition while enforcing the
 * durable Times contract and a single markup-owned arrow. */
:is([data-sales-test-variant^="thrive_"], [data-sb4-fallback-renderer^="thrive_"]) .sbte__presentation {
	inline-size: 100% !important;
	max-inline-size: 100% !important;
}

:is([data-sales-test-variant^="thrive_"], [data-sb4-fallback-renderer^="thrive_"]) :is([data-sales-test-placement], [data-sb4-fallback-placement]),
:is([data-sales-test-variant^="thrive_"], [data-sb4-fallback-renderer^="thrive_"]) :is([data-sales-test-placement], [data-sb4-fallback-placement]):visited {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

/* Navy: remove the accidental captured-editor highlight and separate the
 * decision label from its supporting line at every width. */
:is([data-sales-test-variant^="darkblue_"], [data-sb4-fallback-renderer^="darkblue_"]) [data-css] {
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

:is([data-sales-test-variant^="darkblue_"], [data-sb4-fallback-renderer^="darkblue_"]) [data-css="tve-u-169e5f2ae67"] {
	color: inherit !important;
	-webkit-text-fill-color: currentColor !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* The captured navy guarantee used dark red emphasis directly on its deep
 * blue canvas. Preserve the historical coral warning accent, but lift it to
 * an accessible value and own the nested strong element so inline source
 * color cannot reintroduce the low-contrast state in either surface. */
:is([data-sales-test-variant^="darkblue_"], [data-sb4-fallback-renderer^="darkblue_"]) [data-css="tve-u-16914e5b8ce"],
:is([data-sales-test-variant^="darkblue_"], [data-sb4-fallback-renderer^="darkblue_"]) [data-css="tve-u-16914e5b8ce"] strong {
	color: #ffaaa8 !important;
	-webkit-text-fill-color: #ffaaa8 !important;
}

:is([data-sales-test-variant^="darkblue_"], [data-sb4-fallback-renderer^="darkblue_"]) .kacey-final__purchase > div {
	display: grid !important;
	gap: 4px !important;
}

:is([data-sales-test-variant^="darkblue_"], [data-sb4-fallback-renderer^="darkblue_"]) .kacey-final__purchase > div > :is(span, strong) {
	display: block !important;
	margin: 0 !important;
}

:is([data-sales-test-variant^="darkblue_"], [data-sb4-fallback-renderer^="darkblue_"]) :is([data-sales-test-placement], [data-sb4-fallback-placement]),
:is([data-sales-test-variant^="darkblue_"], [data-sb4-fallback-renderer^="darkblue_"]) :is([data-sales-test-placement], [data-sb4-fallback-placement]):visited {
	color: #071637 !important;
	-webkit-text-fill-color: #071637 !important;
}

@media (max-width: 430px) {
	:is([data-sales-test-variant="july_footer_v1"], [data-sb4-fallback-renderer="july_footer_v1"]).sb4j #tve_editor .sb4-secure-checkout-note {
		flex-direction: column !important;
		gap: 2px !important;
	}

	:is([data-sales-test-variant^="thrive_"], [data-sb4-fallback-renderer^="thrive_"]) .sbte__presentation {
		margin-inline: 0 !important;
	}
}
