/**
 * Final component layer.
 *
 * The original prototype remains the visual foundation and wordpress.css
 * contains Gutenberg adaptations. This file is deliberately loaded last and
 * owns the canonical states and measurements shared by editable page blocks.
 */

/* The legacy prototype imposed a 320px body minimum. Desktop browsers reserve
 * scrollbar width inside a 320px test viewport, so that rule created a real
 * horizontal overflow at the smallest supported breakpoint. */
body { min-width: 0; }

/* Reserve the shared landscape's full 120px travel plus visible clearance.
 * These are content spacers; parallax distances remain identical on all routes. */
:root { --rrbr-page-end-padding: 240px; }
.legal-page,
.rrbr-main.rrbr-news-index,
.rrbr-main .contact-grid { padding-bottom: var(--rrbr-page-end-padding); }
.rrbr-main .help-block,
.data-combined-page > .help-block,
.rail-help-wave + .help-block {
	height: auto;
	min-height: 0;
	display: block;
	padding-bottom: var(--rrbr-page-end-padding);
}

/* Shared staff rhythm, with editor-managed grouping and natural content height. */
.staff-grid .staff-group-heading { font-size: var(--text-base, 16px); font-weight: 700; line-height: 1.5; }
.staff-grid article > p { margin-block: 0 4px; }
.staff-grid article > a { display: inline-block; overflow-wrap: anywhere; }
.about-feature .image-surface:has(.rrbr-team-photo) { width: 100%; height: auto; aspect-ratio: 1; }
.about-feature .image-surface > .rrbr-team-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* Panel clearance belongs to content flow, not a fixed screenshot height. */
#infant-toddler-support .check-panel:not(.boxed-copy),
#high-quality-curricula .check-panel { min-height: 0; }
.check-panel > :last-child { margin-bottom: 0; }
.check-panel .initiative-funding-statement { margin-top: 28px; margin-bottom: 0; }

/* Related posts use the article's neutral variant, not the homepage green wave. */
.news-carousel.news-carousel-related { background: var(--white); }
.news-carousel-related .news-card { background: var(--gray-6, #efefef); }
.news-carousel-related > .wave-divider { display: none; }
.rrbr-article-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rrbr-article-socials .wp-block-social-links { gap: 0; }
.rrbr-article-socials > a { display: grid; place-items: center; width: 44px; height: 44px; }
/* Use the supplied silhouette with exact token colors, not approximate filters. */
:is(.rrbr-article-socials, .mobile-nav-socials) > a:has(img) { color: var(--blue-700); }
:is(.rrbr-article-socials, .mobile-nav-socials) > a:has(img)::before {
	content: ''; display: block; width: var(--rrbr-social-size, 20px); height: var(--rrbr-social-size, 20px);
	background: currentColor;
	-webkit-mask: var(--rrbr-social-art) center / contain no-repeat;
	mask: var(--rrbr-social-art) center / contain no-repeat;
}
:is(.rrbr-article-socials, .mobile-nav-socials) > a:has(img[src$="/facebook.svg"]) { --rrbr-social-art: url('../images/shared/facebook.svg'); }
:is(.rrbr-article-socials, .mobile-nav-socials) > a:has(img[src$="/instagram.svg"]) { --rrbr-social-art: url('../images/shared/instagram.svg'); }
:is(.rrbr-article-socials, .mobile-nav-socials) > a:has(img[src$="/linkedin.svg"]) { --rrbr-social-art: url('../images/shared/linkedin.svg'); }
:is(.rrbr-article-socials, .mobile-nav-socials) > a > img { display: none; }
.social-icon-links.mobile-nav-socials > a:has(img) { --rrbr-social-size: 15px; color: var(--green-400); }
.social-icon-links.mobile-nav-socials > a:has(img):is(:hover, :focus-visible) { color: var(--white); }
.rrbr-article-socials > a:has(img):is(:hover, :focus-visible) { color: var(--blue-800); }
.rrbr-article-socials > button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--blue-700); border-radius: 4px; color: var(--blue-700); background: white; cursor: pointer; font: inherit; }
.rrbr-article-socials > input { width: min(100%,32rem); min-width: 0; }

/* Keep white hero copy legible while its photograph is still downloading. */
.home-hero-media { background-color: var(--blue-900); }

/* Original CLASS artwork extracted from Trello 51, with CSS line connectors. */
.process-steps > div { position: relative; margin-block: 0; }
.process-steps .process-icon { display: block; width: 68px; height: 68px; object-fit: contain; border-radius: 50%; margin-bottom: 14px; }
.process-steps > div:has(.process-icon) h4 { color: var(--black); }
@media (min-width: 1025px) {
	.process-steps > div:has(.process-icon):not(:last-child)::before { content: ''; position: absolute; top: 33px; left: 92px; right: 12px; height: 1px; background: var(--black); }
	.process-steps > div:has(.process-icon):not(:last-child)::after { content: ''; position: absolute; top: 30px; right: 12px; width: 7px; height: 7px; border: solid var(--black); border-width: 1px 1px 0 0; transform: rotate(45deg); }
}

/* Accordion state is drawn once. Markup never contains a second glyph. */
.initiative-page .acc-icon {
	display: inline-grid;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	place-items: center;
	font-size: 0 !important;
	line-height: 1;
}
.initiative-page .acc-icon::before {
	content: "+";
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}
.initiative-page details[open] > summary .acc-icon::before,
.initiative-page .accordion-item.is-open > button .acc-icon::before { content: "−"; }
.initiative-page details.accordion-item,
.initiative-page details.accordion-item:hover,
.has-motion .initiative-page details.accordion-item.motion-card.is-visible:hover {
	background: var(--white);
	box-shadow: none;
	transform: none;
}
.initiative-page details.accordion-item > summary {
	transition: background-color var(--duration-fast) var(--ease-standard);
}
@media (hover: hover) and (pointer: fine) {
	.initiative-page details.accordion-item > summary:hover { background: var(--rrbr-accordion-hover, #BFD7EC); }
}
.initiative-page details.accordion-item > summary:focus-visible { background: var(--rrbr-accordion-hover, #BFD7EC); }

/* Links inside expanded accordion content are navigation, not primary CTAs. */
.initiative-page .accordion-panel .accordion-action {
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--blue-700);
	font-size: inherit;
	font-weight: 700;
	line-height: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-transform: none;
}
.initiative-page .accordion-panel .accordion-action.is-unlinked { text-decoration-style: dashed; }

/* Initiative metric cards use one hierarchy across pages. */
.initiative-page .metric-row > div > strong,
.initiative-page .metric-row > div > span {
	color: var(--blue-700);
	font-weight: 700;
}

.site-footer .legal :is(a, .cookie-settings-link):is(:hover, :focus-visible) {
	color: var(--blue-400);
}

/* Circle-arrow component: consistent geometry across theme and CMS carousels.
 * Keep the existing responsive button sizes/positioning; only the artwork and
 * interaction colors belong to this shared treatment. */
:is(.carousel-prev, .carousel-next, .rrbr-carousel-prev, .rrbr-carousel-next) {
	background: #195594 !important;
	color: #fff;
	border: 0 !important;
	border-radius: 50%;
	font-size: 0 !important;
	box-shadow: none !important;
}
:is(.carousel-prev, .carousel-next, .rrbr-carousel-prev, .rrbr-carousel-next)::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 64%;
	height: 64%;
	background: currentColor;
	transform: translate(-50%, -50%);
	-webkit-mask: url('../images/shared/carousel-arrow.svg') center / contain no-repeat;
	mask: url('../images/shared/carousel-arrow.svg') center / contain no-repeat;
}
:is(.carousel-prev, .carousel-next, .rrbr-carousel-prev, .rrbr-carousel-next)::after {
	content: none;
}
:is(.carousel-prev, .rrbr-carousel-prev)::before { transform: translate(-50%, -50%) scaleX(-1); }
:is(.carousel-prev, .carousel-next, .rrbr-carousel-prev, .rrbr-carousel-next):is(:hover, :focus-visible) {
	background: var(--blue-800) !important;
	color: #fff;
	scale: 1;
}
:is(.rrbr-carousel-prev, .rrbr-carousel-next):is(:hover, :focus-visible, :active) { transform: none; }
:is(.carousel-prev, .carousel-next, .rrbr-carousel-prev, .rrbr-carousel-next):focus-visible {
	outline: 2px solid #195594;
	outline-offset: 4px;
}

/* Reusable home feature rhythm from the approved component notes. */
.video-placeholder button {
	display: grid; place-items: center; background: rgba(255,255,255,.38); color: white;
}
.video-placeholder button > span { font-size: 0; }
.video-placeholder button > span::before {
	content: ''; display: block; width: 0; height: 0; margin-left: 4px;
	border-left: 18px solid currentColor; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.video-placeholder button:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.initiative-page .accordion-panel > .accordion-action { margin-top: 20px; }
.support-grid article:is(:hover, :focus-within) { box-shadow: none; transform: none; }

/* Mobile variants of shared components; desktop spacing remains unchanged. */
@media (max-width: 680px) {
	.rrbr-home .home-hero h1 { width: 46%; max-width: 180px; left: 30px; top: 48px; font-size: clamp(22px, 6vw, 26px); line-height: 1.25; }
	.rrbr-home .home-hero-media > img { object-position: 45% center; }
	/* Shared mobile card sizing, including related news on article pages. */
	.news-carousel .news-card { min-height: 0; }
	/* Keep the curved edge above the solid fill instead of clipping it flat. */
	.rrbr-home .news-carousel > .wave-divider { top: -72px; }
	/* Halve the green lead-in above the carousel title while preserving the
	 * wave itself and the spacing inside the cards. */
	.rrbr-home .news-carousel { padding-top: 62px; min-height: 0; }
	.rrbr-home .news-carousel .news-card > div:last-child { padding-bottom: 12px; }
	.initiative-page #vqb5 .section-heading { margin-bottom: 22px; }
	/* The generic article-column margin, not the heading margin, owns this
	 * visible gap. Halve it from 64px to the requested 32px on phones. */
	.initiative-page #vqb5 .article-columns { margin-top: 32px; }
	.initiative-page #vqb5-important-dates .rrbr-native-accordion > summary { font-size: 17px; }
	.initiative-page .process-steps > .rrbr-process-step { padding-block: 8px; }
	.initiative-page .process-steps > .rrbr-process-step > p:last-child { margin-bottom: 8px; }
	/* Flatten the authored desktop column wrappers so the partner/school list
	 * becomes a true two-up sequence on phones instead of three stacked groups. */
	.building-relationships-page #community-leaders .partner-list.columns-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 18px;
		row-gap: 10px;
	}
	.building-relationships-page #community-leaders .partner-column { display: contents; }
	.initiative-page #infant-toddler-support { padding-top: 88px; }
	/* Keep a visible white pause on both sides of the VBREE section: after the
	 * Shared Governance wave and before the Get Involved wave. */
	.building-relationships-page #vbree { padding-top: 112px; padding-bottom: 80px; }
	.rail-help-wave + .help-block { padding-top: 42px; height: auto; min-height: 267px; }
}

/* The Shared Governance wave reaches 73px back into the preceding section.
 * Preserve a modest white gap below the partner cards throughout the stacked
 * card layout, including the tablet width immediately above the phone rules. */
@media (max-width: 1024px) {
	.building-relationships-page #community-leaders { padding-bottom: 64px; }
}
@media (max-width: 900px) {
	.building-relationships-page #community-leaders { padding-bottom: 88px; }
}

/* The utility audience links remain available when the desktop utility row is
 * replaced by the drawer. Keep the search control on the drawer's own content
 * line and use the standard 48px control height. */
@media (max-width: 1024px) {
	.primary-nav > .search-toggle {
		width: 100% !important;
		min-height: 48px !important;
		height: 48px;
		margin-inline: 0;
		padding-inline: 18px !important;
	}
	.mobile-audience-links {
		display: grid;
		gap: 0;
		margin-top: 26px;
		padding-top: 24px;
		border-top: 1px solid rgba(255, 255, 255, .35);
	}
	.mobile-audience-group > button {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 42px;
		padding: 10px 0;
		border: 0;
		background: transparent;
		color: var(--white);
		font-size: 14px;
		text-align: left;
	}
	.mobile-audience-group > button .icon-chevron { flex: 0 0 auto; }
	.mobile-audience-dropdown { padding-left: 26px; }
	.mobile-audience-links a {
		display: block;
		min-height: 35px;
		padding: 7px 0;
		border: 0;
		color: var(--white);
		font-size: 14px;
		line-height: 1.35;
		text-decoration: none;
	}
	.mobile-audience-links a:is(:hover, :focus-visible) { color: var(--green-400); }
}

/* At tablet widths both adjacent sections contributed their full vertical
 * inset, producing a 184–240px void. The social section already owns the
 * approved 120px desktop gap, so do not stack a second inset beneath it. */
@media (min-width: 681px) and (max-width: 1024px) {
	.rrbr-home .stay-connected + .support-feature { padding-top: 0; }
}

@media (min-width: 1025px) {
	.rrbr-home .resources-feature {
		/* The reviewed side-by-side composition has a 49px boundary gap.
		 * Stacked layouts retain their existing independent section rhythm. */
		--rrbr-feature-top-space: 49px;
		padding-top: calc(2 * var(--rrbr-feature-top-space));
		height: auto;
		/* Original 742px composition plus its additional 49px top clearance. */
		min-height: 791px;
	}
}
.rrbr-home .video-section h2 { color: var(--black); }
@media (min-width: 1025px) {
	/* Trello 23: 50px beyond the authored 132px section inset. */
	.rrbr-home .region-section-summary { padding-top: 182px; }
}
.rrbr-home .feature > div:not(.image-surface) > p {
	/* September re-review: 35px margin + 15px padding = 50px above copy. */
	margin-top: var(--rrbr-feature-paragraph-before, 35px);
	margin-bottom: var(--rrbr-feature-paragraph-after, 0px);
	/* Copy-to-action gap, doubled from the original 25px on request. Kept as
	 * padding so it does not stack with the legacy margin. */
	padding-block: 15px 50px;
}
.rrbr-home .stay-connected {
	height: auto;
	min-height: 0;
	padding-top: 114px;
	/* The feed-to-support boundary owns the additional 60px, not its title. */
	padding-bottom: 120px;
}

/* Initiative accordion content grows from real copy; historical screenshot
 * heights were the source of blank panels and cropped actions. */
.initiative-page details.accordion-item[open] {
	height: auto !important;
	min-height: 0 !important;
}
.increasing-access-page #mixed-delivery-families .section-heading { margin-bottom: 42px; }
/* The previous wave extends 73px below its block: 73 + 90 visible pixels. */
.increasing-access-page #coordinated-enrollment { padding-top: 163px; }
.strengthening-quality-page #military-childcare-programs { padding-bottom: 90px; }
.strengthening-quality-page #military-childcare-programs .section-heading > p:last-child { font-size: 16px; margin-bottom: 0; }
/* Keep the terminal callouts 40px ahead of even the highest moving ridge:
 * 80px scene overlap + 120px maximum travel + 40px visible clearance. */
.increasing-access-page #coordinated-enrollment-providers { padding-bottom: 240px; }
@media (min-width: 1025px) {
	/* Requested increments against the authored 74 / 77 / 78 / 129px insets. */
	.strengthening-quality-page #understanding-quality { padding-top: 104px; }
	/* The two later VQB5 sections opened with no inset of their own, so they
	 * sat tighter than the section they follow. Desktop only: the narrow
	 * layouts already stack these with generous gaps. */
	.strengthening-quality-page #vqb5-important-dates { padding-top: 32px; }
	.strengthening-quality-page #military-childcare-programs { padding-top: 32px; }
	.building-relationships-page #community-leaders { padding-top: 107px; }
	.increasing-access-page #significance-of-quality-ecce { padding-top: 108px; }
	.building-relationships-page #vbree { padding-top: 169px; }
}

/* Mixed Delivery providers use an even vertical centre and preserve the
 * authored hierarchy: blue location name, neutral address and phone. */
.mixed-delivery-provider {
	display: flex;
	min-height: 142px;
	flex-direction: column;
	justify-content: center;
}
.mixed-delivery-provider h4 {
	margin: 0 0 6px !important;
	color: var(--blue-700);
	font-weight: 700;
}
.mixed-delivery-provider address { margin: 0; }

.initiative-page .involvement-panel.uses-bullets,
.initiative-page .involvement-panel.uses-bullets > p { text-align: left; }
.initiative-page .involvement-panel.uses-bullets > p { max-width: none; margin-inline: 0; }

/* The following wave starts 107px above its section on desktop. Reserve its
 * protrusion plus 40px so it cannot cross the resource-card borders. */
.strengthening-quality-page #teacher-child-interactions .initiative-detail-body { padding-bottom: 147px; }
.initiative-page .involvement-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.initiative-page .involvement-list {
	margin: 0;
	padding-left: 1.2em;
}
.initiative-page .involvement-list li + li { margin-top: 5px; }

/* Keep each check and its complete sentence together. Without the copy
 * wrapper, flex treated every strong/text node as a separate column. */
.initiative-page .check-grid p {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: start;
	gap: 16px;
}
.initiative-page .check-grid p > .check-mark {
	display: grid;
	width: 28px;
	height: 28px;
	margin-top: -2px;
	place-items: center;
	border-radius: 50%;
	background: var(--blue-700);
	color: var(--white);
	font-size: 0;
	font-weight: 800;
	background-image: url('../images/shared/check-approved.svg');
	background-size: cover;
}
.initiative-page .check-grid p > .check-copy {
	display: block;
	min-width: 0;
	width: auto;
	height: auto;
	margin: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	border-radius: 0;
}
.initiative-page .check-grid .check-copy strong { display: inline; }
.initiative-page .check-grid > .check-group,
.initiative-page .check-grid > .check-group > p,
.initiative-page .partner-list > .partner-column,
.initiative-page .partner-list > .partner-column > p {
	margin-block-start: 0;
}
.initiative-page .check-grid { align-items: start; }
.initiative-page .partner-list { align-items: start; }
.initiative-page .partner-column { display: grid; align-content: start; gap: 8px; }
.initiative-page .partner-column > p { margin-bottom: 0; }

/* Distinct CLASS card icons; SVG eliminates the opaque square that
 * was visible around the former raster placeholder. */
.initiative-resource-group > .resource-symbol.resource-symbol-image {
	width: 86px;
	height: 86px;
	margin-bottom: 28px;
}
.initiative-page .resource-tiles .resource-symbol.resource-symbol-image {
	width: 86px;
	height: 86px;
}
.initiative-resource-group > .resource-symbol.resource-symbol-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Shared CTA-card contract, used by authored resource tiles and the inserter
 * pattern. Named gaps replace margin:auto and page-specific button offsets.
 * Auto height lets edited/translated copy grow without consuming bottom space. */
.resource-tiles {
	--rrbr-card-icon-gap: 24px;
	--rrbr-card-copy-gap: 12px;
	--rrbr-card-action-gap: 24px;
}
.resource-tiles.count-1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.resource-tiles > article {
	height: auto !important;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.resource-tiles > article > :is(h3, h4, p, .resource-symbol, .resource-action, .wp-block-buttons) {
	margin-block: 0 !important;
	flex-shrink: 0;
}
.resource-tiles > article > .resource-symbol { margin-bottom: var(--rrbr-card-icon-gap) !important; }
.resource-tiles > article > :is(h3, h4) { margin-bottom: var(--rrbr-card-copy-gap) !important; }
.resource-tiles > article > p + p { margin-top: var(--rrbr-card-copy-gap) !important; }
.resource-tiles > article > :is(.resource-action, .wp-block-buttons) { margin-top: var(--rrbr-card-action-gap) !important; }
.resource-tiles > article > .wp-block-buttons { justify-content: center; }

/* Resource-card rhythm: equal paired columns without pushing actions into a
 * large artificial void. */
.initiative-page .initiative-resource-groups { align-items: stretch; }
.initiative-page .initiative-resource-groups > .initiative-resource-group { margin-block: 0; }
.initiative-page .initiative-resource-group-items article > p:last-of-type { margin-bottom: 0; }
.initiative-page .initiative-resource-group {
	height: auto;
	min-height: 0;
}
.initiative-page .initiative-resource-group-items {
	grid-template-rows: auto 1fr;
	align-content: stretch;
}
.initiative-page .initiative-resource-group-items > article {
	min-height: 0;
	justify-content: flex-start;
	padding-block: 24px 32px;
}
.initiative-page .initiative-resource-group-items .resource-action { margin-top: 24px; }
/* The outer card owns the final inset; avoid adding the row's separator gap. */
.initiative-page .initiative-resource-group-items > article:last-child { padding-bottom: 0; }
.initiative-page .initiative-resource-group-items > article:last-child > p:last-of-type { margin-bottom: var(--rrbr-group-action-gap, 24px) !important; }
.initiative-page .initiative-resource-group-items > article:last-child .resource-action { margin-top: auto; }

/* Start with two complete cards and half of the next card on the right.
 * Two gaps plus 2.5 card widths exactly fill the desktop viewport. */
.initiative-page .initiative-news-carousel {
	height: auto;
	min-height: 772px;
	padding-top: 140px;
	/* Dots are controls, so reserve the scene overlap, maximum parallax travel
	 * and 24px of clear space. This is local to the news section, not all footers. */
	padding-bottom: 224px;
}
.initiative-page .initiative-news-carousel .carousel-track { --carousel-peek: 0px; gap: 24px; scroll-padding-inline-start: 0; }
.initiative-page .initiative-news-carousel .carousel-track .news-card {
	flex: 0 0 calc((100% - 48px) / 2.5);
	margin-inline: 0;
}
.initiative-page .initiative-news-carousel .carousel-controls { margin-top: 28px; }
@media (max-width: 800px) {
	.initiative-page .initiative-news-carousel .carousel-track { gap: 12px; }
	.initiative-page .initiative-news-carousel .carousel-track .news-card { flex-basis: calc((100% - 12px) / 1.25); }
}

/* The footer illustration bleeds beyond both viewport edges and is clipped by
 * its scene, preventing fractional white slivers at DPR/zoom boundaries. */
.footer-mountain-scene {
	--rrbr-footer-overlap: 80px;
	--rrbr-forest-lift: 40px;
	/* Parallax can move a ridge up to 120px above its resting scene. Clip
	 * the sides/base, not that legitimate vertical travel (which made flat tops). */
	overflow: visible;
	clip-path: inset(-120px 0 0);
}
.footer-mountain-scene.is-mounted-footer-transition { top: calc(100% - var(--rrbr-footer-overlap)); }
/* Reserve the full 120px shared parallax travel in addition to the approved
 * Home spacing. Move both ends together; never cap Home's animation. */
.rrbr-home .footer-mountain-scene.is-mounted-footer-transition {
	margin-top: calc(80px + 120px);
}
.rrbr-home .wp-site-blocks > footer.wp-block-template-part {
	margin-top: calc(80px + 120px);
}
.footer-mountain-scene .footer-art-layer {
	left: 50%;
	width: max(1736px, calc(120% + 8px));
	max-width: none;
}
.footer-mountain-scene .footer-forest {
	width: max(calc(100% + 8px), 1451px);
	bottom: var(--rrbr-forest-lift);
}
/* Lift only the fixed foreground without stretching its trees. Continue its
 * opaque base to the footer; ridges, page spacing and parallax stay unchanged. */
.footer-mountain-scene::after {
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: calc(var(--rrbr-forest-lift) + 1px);
	z-index: 4;
	background: var(--blue-700);
	pointer-events: none;
}
.footer-mountain-scene.is-mounted-footer-transition .footer-art-layer:not(.footer-forest) {
	/* Match the forest's bottom anchor; footer block gaps must not split layers. */
	top: calc(100% - var(--rrbr-footer-art-height, 360px));
}

@media (max-width: 680px) {
	.strengthening-quality-page #teacher-child-interactions .initiative-detail-body { padding-bottom: 113px; }
	.site-footer address a { display: inline-block; min-height: 24px; line-height: 24px; }
	.footer-mountain-scene { --rrbr-footer-overlap: 48px; }
	.initiative-page .involvement-grid { grid-template-columns: 1fr; gap: 10px; }
	.rrbr-home .feature > div:not(.image-surface) > p {
		--rrbr-feature-paragraph-after: 0px;
		margin-top: 20px;
		padding-block: 0 24px;
	}
	/* One section owns this gap: halve the previous combined 60px + 67px
	 * rather than leaving the following feature's padding stacked beneath it. */
	.rrbr-home .stay-connected { padding-top: 95px; padding-bottom: 64px; }
	.rrbr-home .stay-connected + .support-feature { padding-top: 0; }
	/* Preserve both children's faces when the portrait source is placed in the
	 * short, landscape mobile frame. Desktop keeps the approved centre crop. */
	.rrbr-home .support-feature .image-surface img { object-position: 50% 20%; }
	.increasing-access-page #mixed-delivery-families .section-heading { margin-bottom: 30px; }
	.increasing-access-page #coordinated-enrollment-providers { padding-bottom: 208px; }
	.initiative-page .initiative-resource-group-items > article { min-height: 0; }
	.initiative-page .initiative-news-carousel {
		min-height: 0;
		padding-top: 56px;
		padding-bottom: 192px;
	}
}

@media (prefers-reduced-motion: reduce) {
	/* Keep the structural horizontal centering; suppress only scroll travel. */
	.footer-mountain-scene .footer-art-layer {
		--footer-layer-y: 0px !important;
		transition: none !important;
		animation: none !important;
	}
}

/* "What Is VQB5?" also inherits 165px of padding from the section above it, so
 * its own 56px inset made it read as a far larger break than the sections that
 * follow. Trimmed at every width, since the imbalance is the same on all. */
.strengthening-quality-page #vqb5 { padding-top: 24px; }

/* Trello 48 — one shared external-action arrow.
 * The plugin renderers previously printed the literal ↗ character, whose top
 * arm is lighter than its diagonal in the shipped face; that is the "old
 * arrow" still visible on report, locality-dialog and resource links. This
 * reuses the same single-weight vector already used by .text-action, so the
 * diagonal and both arrowhead arms carry identical stroke weight everywhere. */
.rrbr-ne-arrow {
	display: inline-block;
	box-sizing: border-box;
	width: .8em;
	height: .8em;
	margin-left: .5em;
	vertical-align: -.02em;
	background: currentColor;
	-webkit-mask: url('../images/shared/text-link-arrow.svg') center / contain no-repeat;
	mask: url('../images/shared/text-link-arrow.svg') center / contain no-repeat;
}

/* Dragging the news carousel should feel free rather than magnetic: mandatory
 * snapping fought every partial drag. Proximity still tidies a drag that ends
 * close to a card edge, and the arrows and dots continue to land exactly. */
.news-carousel .carousel-track { scroll-snap-type: x proximity; }

/* The arrows report the ends of the track instead of sitting there live but
 * inert. Disabled is set by the carousel script from the real scroll range. */
.news-carousel :is(.carousel-prev, .carousel-next):disabled,
:is(.rrbr-carousel-prev, .rrbr-carousel-next):disabled {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}
.news-carousel .dots button[hidden] { display: none; }
/* Edge click targets are only relevant where cards intentionally fade beyond
 * the desktop viewport. Keep the generated controls out of narrow layouts. */
.news-carousel .carousel-edge-target { display: none; }

/* Trello 70 / 113 — true viewport-edge peeking.
 *
 * The approved reference is measurable: 473px cards separated by 55px gaps,
 * two complete cards centred in the viewport, and the neighbouring cards cut
 * by the SCREEN edge rather than clipped inside a narrower stage. Clipping a
 * card mid-image inside the stage, with white space beyond it, is what reads
 * as a mistake.
 *
 * The existing --carousel-peek offset already drives the scroll target, so the
 * geometry is expressed once here: the track bleeds to the viewport, and the
 * peek is exactly the space left over once two cards and their gap are centred.
 * The section clips horizontally so the bleed can never become page overflow.
 */
@media (min-width: 1080px) {
	.news-carousel,
	.initiative-page .initiative-news-carousel {
		overflow-x: clip;
		overflow-y: visible;
		/* Declared on the section so the track (which turns them into the
		 * scroll offset) and the viewport (which turns them into the edge
		 * fade) both read the same two numbers. */
		--rrbr-carousel-card: 473px;
		--rrbr-carousel-gap: 55px;
		--rrbr-carousel-pair: calc(2 * var(--rrbr-carousel-card) + var(--rrbr-carousel-gap));
		--rrbr-carousel-fade: min(132px, calc((100vw - var(--rrbr-carousel-pair)) / 2));
	}
	.news-carousel .carousel-stage {
		position: relative;
		display: block;
		margin-inline: 0;
	}
	.news-carousel .carousel-viewport {
		width: 100vw;
		margin-inline: calc(50% - 50vw);
		/* Soften the bleed so the peeking cards dissolve toward the screen
		 * instead of being sliced off. A mask is used rather than a gradient
		 * overlay because these carousels sit on both the green band and the
		 * white article background, and a mask needs no colour to match.
		 * The ramp stays inside the peek, so a full card is never dimmed. */
		-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--rrbr-carousel-fade), #000 calc(100% - var(--rrbr-carousel-fade)), transparent 100%);
		mask-image: linear-gradient(to right, transparent 0, #000 var(--rrbr-carousel-fade), #000 calc(100% - var(--rrbr-carousel-fade)), transparent 100%);
	}
	/* The faded card edges are an intentional affordance, not merely visual
	 * decoration. Invisible pointer targets turn a click on either edge into
	 * the corresponding next/previous action; the visible circle buttons
	 * remain the labelled keyboard controls. */
	.news-carousel .carousel-edge-target {
		display: block;
		position: absolute;
		top: var(--carousel-edge-top, 0);
		z-index: 3;
		width: var(--rrbr-carousel-fade);
		height: var(--carousel-edge-height, 0);
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		cursor: pointer;
	}
	.news-carousel .carousel-edge-target--previous { left: calc(50% - 50vw); }
	.news-carousel .carousel-edge-target--next { right: calc(50% - 50vw); }
	.news-carousel .carousel-edge-target:disabled { cursor: default; pointer-events: auto; }
	.news-carousel .carousel-track,
	.initiative-page .initiative-news-carousel .carousel-track {
		/* Two cards and one gap, centred: everything else is the peek. */
		--carousel-peek: max(0px, calc((100vw - var(--rrbr-carousel-pair)) / 2));
		gap: var(--rrbr-carousel-gap);
		padding-inline: var(--carousel-peek);
		scroll-padding-inline-start: var(--carousel-peek);
	}
	.news-carousel .carousel-track .news-card,
	.initiative-page .initiative-news-carousel .carousel-track .news-card {
		flex: 0 0 var(--rrbr-carousel-card);
		margin-inline: 0;
	}
	/* The arrows stay on the content column instead of riding the screen edge,
	 * and stay above the cards that now run underneath them. */
	.news-carousel :is(.carousel-prev, .carousel-next) {
		position: absolute;
		top: 50%;
		z-index: 4;
		transform: translateY(-50%);
	}
	/* Keep controls inside the content column with at least 16px at the
	 * viewport edge, including intermediate desktop widths. */
	.news-carousel .carousel-prev { left: max(0px, calc(16px - (100vw - 100%) / 2)); }
	.news-carousel .carousel-next { right: max(0px, calc(16px - (100vw - 100%) / 2)); }
}

/* Preserve the shell's 16px gutter at narrower widths. */
@media (max-width: 1079px) {
	.news-carousel .carousel-stage { margin-inline: 0; }
}

@media (max-width: 680px) {
	.news-carousel .carousel-prev { left: 16px; }
	.news-carousel .carousel-next { right: 16px; }
}

/* One external-action treatment for every text action and link button.
 *
 * The green underline and the northeast arrow were both gated on
 * [target="_blank"], so an action that happens to stay on the site — "Contact
 * Us to Learn More About the Family Council" — sat among visually identical
 * links carrying a blue underline and no arrow. The treatment marks a link
 * action, not a new browser tab, so it is applied by role instead.
 *
 * The arrow reuses the single-weight vector shared with .rrbr-ne-arrow, so
 * every arm and diagonal on the site keeps the same stroke weight. Unlinked
 * placeholders are excluded: they are not actions. */
.text-action:not(.button):not(.is-unlinked) {
	text-decoration: underline;
	text-decoration-color: var(--green-500);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
	line-height: 1.8;
}
/* Text CTAs share the filled buttons' darker interaction color. Keep the
 * green underline, layout and currentColor arrow intact; exclude placeholders. */
a.text-action:not(.button):not(.is-unlinked):is(:hover, :focus-visible),
a.accordion-action:not(.is-unlinked):is(:hover, :focus-visible),
.initiative-page .accordion-panel a.accordion-action:not(.is-unlinked):is(:hover, :focus-visible) {
	color: var(--blue-800);
}
a.text-action:not(.button):not(.is-unlinked):focus-visible,
a.accordion-action:not(.is-unlinked):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}
/* .resource-action is always the filled blue pill, in both the resource tiles
 * and the initiative resource groups, and a button already reads as the action
 * — the arrow only added noise inside it. The accordion-panel links are the
 * opposite case: underlined text actions that were missing it. */
a.text-action:not(.button):not(.is-unlinked)::after,
a.accordion-action:not(.is-unlinked)::after {
	content: '';
	display: inline-block;
	box-sizing: border-box;
	width: .8em;
	height: .8em;
	margin-left: .75em;
	vertical-align: -.02em;
	flex: none;
	background: currentColor;
	-webkit-mask: url('../images/shared/text-link-arrow.svg') center / contain no-repeat;
	mask: url('../images/shared/text-link-arrow.svg') center / contain no-repeat;
	text-decoration: none;
}

/* The carousel's "View our blog" button centres itself with auto inline
 * margins. WordPress emits `.wp-block-buttons > .wp-block-button { display:
 * inline-block; margin: 0 }` as part of its core buttons layout stylesheet,
 * but only on pages where some block actually triggers that stylesheet. Where
 * it is emitted it outspecifies the single-class rule and the button drops to
 * the left, so the same carousel is centred on one page and left-aligned on
 * another. Stated here at matching specificity so the result no longer depends
 * on what else happens to be on the page. */
.wp-block-buttons > .wp-block-button.carousel-blog-button {
	display: flex;
	width: max-content;
	margin-block: 36px 0;
	margin-inline: auto;
}
@media (max-width: 540px) {
	.wp-block-buttons > .wp-block-button.carousel-blog-button { margin-block: 30px 0; }
}

/* The shared footer landscape is mounted into whichever element ends the page.
 * On the native archive templates (the News index) that host is `main` itself,
 * which Gutenberg marks `is-layout-constrained`; its layout stylesheet then
 * caps every direct child at the 1152px content width, so the full-bleed scene
 * rendered 1152px wide with white gutters either side of the ridges. Restore
 * the intended viewport-wide bleed wherever the scene happens to be mounted. */
.footer-mountain-scene.is-mounted-footer-transition {
	max-width: none;
	margin-inline: 0;
}

/* News index cards are clickable as a whole and carry the same hover as every
 * other card on the site. The existing Read More anchor is stretched over the
 * card rather than wrapping it in a second link, so the card keeps one
 * keyboard stop per destination and the markup stays native Gutenberg. */
/* Dashboard tabs keep their selected state and use color-only interaction. */
:is(.dashboard-selector, .rrbr-dashboard-selector) button {
	transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
:is(.dashboard-selector, .rrbr-dashboard-selector) button:is(:hover, :focus-visible),
.data-combined-page :is(.dashboard-selector, .rrbr-dashboard-selector) button:is(:hover, :focus-visible) {
	background: var(--blue-800);
	border-color: var(--blue-800);
	color: var(--white);
	transform: none;
	box-shadow: none;
}
:is(.dashboard-selector, .rrbr-dashboard-selector) button:focus-visible {
	outline: 2px solid var(--blue-800);
	outline-offset: 3px;
}

.rrbr-archive-card { position: relative; }
.rrbr-archive-card .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: var(--radius) var(--radius) 0 0;
}
/* ::before, not ::after: ::after now carries the shared link-action arrow, and
 * one pseudo-element cannot be both the arrow and the card-wide hit area. */
.rrbr-archive-card .wp-block-read-more::before {
	content: '';
	position: absolute;
	inset: 0;
}
.rrbr-archive-card:focus-within { border-color: var(--blue-700); }

@media (hover: hover) and (pointer: fine) {
	.rrbr-archive-card {
		transition: transform var(--duration-base) var(--ease-emphasized), border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-emphasized);
	}
	.rrbr-archive-card .wp-block-post-featured-image img {
		transition: transform 760ms var(--ease-emphasized);
	}
	.rrbr-archive-card:hover {
		border-color: var(--blue-700);
		box-shadow: 0 16px 38px rgba(9, 53, 99, .14);
		transform: translateY(-6px);
	}
	.rrbr-archive-card:hover .wp-block-post-featured-image img { transform: scale(1.035); }
}

/* The related-news carousel ends a news article, so — exactly like the
 * initiative variant — it has to reserve the 80px scene overlap, the 120px of
 * parallax travel and a clear margin below its dots and "View our blog"
 * button. At the inherited 57px the ridges began 23px ABOVE the controls. */
.news-carousel.news-carousel-related { padding-bottom: 224px; }

@media (max-width: 680px) {
	.news-carousel.news-carousel-related { padding-bottom: 192px; }
}

/* Strengthening Quality ends on a plain feature section rather than the news
 * carousel, so nothing reserved the footer scene's 80px overlap or its 120px
 * of parallax travel: the ITSN coaching card finished 0-16px above the ridges.
 * The scene mounts on this body above 1024px and on the section below it, and
 * padding here moves both, so one value covers every width. Matched to the
 * 160px clearance Increasing Access already uses for the same situation. */
.strengthening-quality-page #infant-toddler-support .initiative-detail-body {
	padding-bottom: 240px;
}

@media (max-width: 768px) {
	/* The section already contributes its own bottom inset below 768px, so a
	 * smaller figure here lands on the same painted clearance as desktop. */
	.strengthening-quality-page #infant-toddler-support .initiative-detail-body {
		padding-bottom: 170px;
	}
}

/* "Read More" is a link action, so it carries the same green underline as the
 * site's other link actions (Trello 48). `.read-more` already transitioned
 * text-decoration-color, which until now had nothing to animate. */
.read-more:not(.is-unlinked),
.wp-block-read-more {
	color: var(--blue-700);
	text-decoration: underline;
	text-decoration-color: var(--green-500);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
	line-height: 1.8;
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-read-more {
		transition: color var(--duration-fast), text-decoration-color var(--duration-fast);
	}
	.read-more:not(.is-unlinked):hover,
	.read-more:not(.is-unlinked):focus-visible,
	.wp-block-read-more:hover,
	.wp-block-read-more:focus-visible {
		color: var(--blue-800);
		text-decoration-color: var(--green-700);
	}
	/* On the news index the Read More anchor carries the stretched overlay that
	 * makes the whole card clickable, so hovering anywhere on the card lights
	 * the underline. It must never translate: moving the anchor moves that
	 * overlay and opens a dead strip down the card's left edge. */
	.rrbr-archive-card .wp-block-read-more:hover { transform: none; }
}

/* Trello 107 — the pagination arrows were the "←" / "→" text glyphs: thin,
 * font-dependent, and nothing like the drawn arrow in the Figma frame. They now
 * use the same vector as the carousel arrows (long shaft, mitred chevron head),
 * masked so each control paints it in its own colour — blue-700 when live,
 * gray-5 for the disabled end placeholders. 18px inside the 30px control keeps
 * the Figma's arrow-to-circle proportion of roughly 0.6. */
.rrbr-news-index .wp-block-query-pagination-previous::before,
.rrbr-news-index .wp-block-query-pagination-next::before,
.rrbr-news-index .wp-block-query-pagination:not(:has(.wp-block-query-pagination-previous))::before,
.rrbr-news-index .wp-block-query-pagination:not(:has(.wp-block-query-pagination-next))::after {
	content: '';
	display: block;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url('../images/shared/carousel-arrow.svg') center / contain no-repeat;
	mask: url('../images/shared/carousel-arrow.svg') center / contain no-repeat;
}
.rrbr-news-index .wp-block-query-pagination-previous::before,
.rrbr-news-index .wp-block-query-pagination:not(:has(.wp-block-query-pagination-previous))::before {
	transform: scaleX(-1);
}
/* The arrow controls are not circles, so the number treatment must not bleed
 * onto them when they are hovered or focused. */
.rrbr-news-index .wp-block-query-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next):is(:hover, :focus-visible) {
	background: transparent;
	color: var(--blue-800);
}

/* Read More sits in the same place on every news card regardless of how many
 * lines the title runs to, so the row reads as one baseline rather than a
 * ragged one. The card becomes the flex column and the action takes the slack. */
.rrbr-archive-card {
	display: flex;
	flex-direction: column;
}
.rrbr-archive-card .wp-block-post-title { margin-bottom: 0; }
/* Match the article title's semibold hierarchy rather than heavy card bold. */
.rrbr-archive-card .wp-block-post-title,
.news-card h3 { font-weight: 600; }
.rrbr-archive-card .wp-block-read-more {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 1rem;
}

/* The arrow controls inherit `display: grid` from the shared pagination box,
 * and each one holds two grid items: the arrow ::before and the anonymous
 * "Next Page" / "Previous Page" text run that the block outputs at font-size 0.
 * Auto-placement gives those a row each, so the arrow was pushed into the top
 * row while the disabled end placeholder — a flex item of the nav itself — sat
 * correctly on the centre line. Flex puts both on one line and lands the arrow
 * on the same axis as the number circles. */
.rrbr-news-index .wp-block-query-pagination :is(.wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Read More is a link action, so it also takes the shared 45-degree arrow —
 * the same single-weight vector as .text-action and .resource-action, drawn
 * from currentColor so it follows the link's own state. The literal "→" glyph
 * that the carousel renderers used to emit has been removed from the markup so
 * only one arrow is drawn. Unlinked placeholders are excluded: not actions. */
a.read-more:not(.is-unlinked)::after,
.wp-block-read-more::after {
	content: '';
	display: inline-block;
	box-sizing: border-box;
	width: .8em;
	height: .8em;
	margin-left: .35em;
	vertical-align: -.02em;
	flex: none;
	background: currentColor;
	-webkit-mask: url('../images/shared/text-link-arrow.svg') center / contain no-repeat;
	mask: url('../images/shared/text-link-arrow.svg') center / contain no-repeat;
	text-decoration: none;
}
