/**
 * Resident Center v2 landing sections (used inside Custom Code Editor blocks).
 * Everything is scoped to .rcv2 so it can't affect the rest of the site.
 * Section markup keeps the design's inline styles; this file only resets theme
 * defaults that would otherwise leak in, and adds hover states.
 */

/*
 * Sticky fix: main.css sets `body,html{overflow-x:hidden}`, which turns <body> into a
 * non-scrolling scroll container and breaks position:sticky (features side menu).
 * `clip` hides horizontal overflow the same way without creating a scroll container.
 * Scoped to .rcv2-page (a body class added in functions.php only on pages using the
 * Custom Code Editor block), so it can't affect any other page.
 */
.rcv2-page {
	overflow-x: visible;
	overflow-x: clip;
}

/* Base / reset of theme typography inside the sections */
.rcv2 {
	color: #39404F;
	font-family: proxima-nova, 'Proxima Nova', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	/*
	 * The design leaves line-height at the browser default ("normal"), which it measured
	 * in its stand-in font (~1.22). The theme body sets 1.5, and "normal" in Proxima Nova
	 * is ~1.44, so pin the design's value for anything without an inline line-height.
	 */
	line-height: 1.22;
	overflow-x: clip;
}

/*
 * Desktop / mobile versions. Each block contains both:
 *   .rcv2--d  desktop design (built at 1280px)
 *   .rcv2--m  mobile design (built at 430px, fluid)
 * Under 1024px the mobile version shows. From 1024px to 1279px the desktop design
 * is scaled down to fit instead of being cut off.
 */
.rcv2--d {
	min-width: 1280px;
}

.rcv2--m {
	display: none;
}

@media (max-width: 1279.98px) {
	.rcv2--d { zoom: 0.9; }
}

@media (max-width: 1151.98px) {
	.rcv2--d { zoom: 0.8; }
}

@media (max-width: 1023.98px) {
	.rcv2--d { display: none; }
	.rcv2--m { display: block; }
}

.rcv2 .rc-chip::-webkit-scrollbar {
	display: none;
}

.rcv2 *,
.rcv2 *::before,
.rcv2 *::after {
	box-sizing: border-box;
}

.rcv2 h1,
.rcv2 h2,
.rcv2 h3 {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	line-height: inherit;
}

.rcv2 h1 { margin: 0.67em 0; font-size: 2em; font-weight: 700; }
.rcv2 h2 { margin: 0.83em 0; font-size: 1.5em; font-weight: 700; }
.rcv2 h3 { margin: 1em 0; font-size: 1.17em; font-weight: 700; }

.rcv2 p {
	font-family: ff-tisa-web-pro, 'tisa-pro', 'FF Tisa Web Pro', Georgia, serif;
	font-weight: 400;
	line-height: inherit;
	margin: 1em 0;
}

.rcv2 a {
	color: #39404F;
	text-decoration: none;
}

.rcv2 a:hover {
	color: #73B680;
}

.rcv2 [role="button"] {
	cursor: pointer;
}

.rcv2 [role="button"]:focus-visible,
.rcv2 a:focus-visible {
	outline: 2px solid #73B680;
	outline-offset: 3px;
}

.rcv2 ::selection {
	background: #D8EADC;
}

/* Testimonials: only the current page of 3 cards is shown */
.rcv2 [data-tcard][hidden] {
	display: none !important;
}

@keyframes rcFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
	.rcv2 [data-parallax] { transform: none !important; }
	.rcv2 * { animation: none !important; transition: none !important; }
}

/* Hover states (from the design's style-hover attributes) */
.rcv2 .rcv2-h1:hover { background: #5C9E6A !important; color: #fff !important; }
.rcv2 .rcv2-h2:hover { color: #5C9E6A !important; }
.rcv2 .rcv2-h3:hover { background: #39404F !important; color: #fff !important; }
.rcv2 .rcv2-h4:hover { border-color: #73B680 !important; background: #F4F8F5 !important; }
.rcv2 .rcv2-hu:hover { text-decoration: underline !important; }
