/**
 * _surfaces.css — the kit's three surfaces: white (the page), the teal tint, and navy, plus what turns light on navy.
 * Owns: .rl-on-tint and .rl-on-navy (on a Spectra container) and their descendants' colors; .rl-swatch (Style Test only).
 * Doesn't own: the other modules' components — this loads last and only recolors them inside navy.
 * Depends on: global/_tokens.css. Spectra prints each container's own background in its block CSS (one class + one
 * block class); the doubled class out-ranks it (module wins). Alternate white and tint between sections; navy for
 * emphasis bands, the page hero, pull quotes and the footer (STYLE.md → Overall feel).
 */
:is(.site, .editor-styles-wrapper) .rl-on-tint.rl-on-tint {
	background-color: var(--rl-color-tint);
}

/* background-color, not the shorthand: a navy section over a photo (Home's reviews and Why Choose) keeps its image
   (the shorthand reset it — Markup #8, #20, 2026-10-28). */
:is(.site, .editor-styles-wrapper) .rl-on-navy.rl-on-navy {
	background-color: var(--rl-color-brand);
	color: var(--rl-color-on-dark-muted);
}

:is(.site, .editor-styles-wrapper) .rl-on-navy :is(h1, h2, h3, h4, h5, h6) {
	color: var(--rl-white);
}

/* Body on navy: the kit's reversed body is white (CS3 / CS6); muted text uses --text-on-dark-muted. */
:is(.site, .editor-styles-wrapper) .rl-on-navy :is(p, li, td) {
	color: var(--rl-white);
}

:is(.site, .editor-styles-wrapper) .rl-on-navy :is(p, li, td) > :is(strong, b) {
	color: var(--rl-white);
}

/* Teal carries text only on navy: eyebrows, the list markers stay teal. */
:is(.site, .editor-styles-wrapper) .rl-on-navy .is-style-rl-eyebrow {
	color: var(--rl-color-alt-brand);
}

:is(.site, .editor-styles-wrapper) .rl-on-navy :is(.is-style-rl-small, .rl-card-meta, cite) {
	color: var(--rl-color-on-dark-muted);
}

:is(.site, .editor-styles-wrapper) .rl-on-navy a:not([class]):is(:link, :visited, :hover, :focus-visible),
:is(.site, .editor-styles-wrapper) .rl-on-navy .is-style-rl-learn-more a:is(:link, :visited, [href]) {
	color: var(--rl-white);
}

/* Nested list dashes are navy — white on navy. */
:is(.site, .editor-styles-wrapper) .rl-on-navy :is(ul, ol).wp-block-list :is(ul, ol).wp-block-list > li::before {
	background: var(--rl-white);
}

/* The navy outline is invisible on navy: white inside navy (the kit's on-dark button focus). */
body:not(.wp-admin) .rl-on-navy :focus-visible {
	outline-color: var(--rl-white);
}

/* Secondary buttons turn white; hover fills white with navy text. The tertiary keeps its own look, in white. */
:is(.site, .editor-styles-wrapper) .rl-on-navy .wp-block-uagb-buttons-child:not(.rl-btn-tertiary) .ast-outline-button {
	border-color: var(--rl-white);
	background: transparent;
	color: var(--rl-white);
}

:is(.site, .editor-styles-wrapper) .rl-on-navy .wp-block-uagb-buttons-child:not(.rl-btn-tertiary) .ast-outline-button:is(:hover, :focus-visible) {
	border-color: var(--rl-white);
	background: var(--rl-white);
	color: var(--rl-color-brand);
}

/* The primary's hover fills navy — invisible on navy: white with a navy label instead. */
:is(.site, .editor-styles-wrapper) .rl-on-navy .wp-block-uagb-buttons-child:not(.rl-btn-tertiary) .wp-block-button__link:is(:hover, :focus-visible) {
	border-color: var(--rl-white);
	background: var(--rl-white);
	color: var(--rl-color-brand);
}

:is(.site, .editor-styles-wrapper) .rl-on-navy .rl-btn-tertiary.rl-btn-tertiary .uagb-buttons-repeater.uagb-buttons-repeater {
	color: var(--rl-white);
}

/* Cards stay white inside navy, so their text returns to the light-surface colors. */
:is(.site, .editor-styles-wrapper) .rl-on-navy :is(.rl-card-image, .rl-card-icon, .rl-card-text) :is(h2, h3, h4) {
	color: var(--rl-color-headings);
}

:is(.site, .editor-styles-wrapper) .rl-on-navy :is(.rl-card-image, .rl-card-icon, .rl-card-text) :is(p, li) {
	color: var(--rl-color-body);
}

/* Style Test swatches: an 88px chip with a hairline, so white shows. */
:is(.site, .editor-styles-wrapper) .rl-swatch.rl-swatch {
	min-height: 88px;
	border: 1px solid var(--rl-color-border);
}
