/* Replication Hub V4. Scoped to the template and its Resources-page additions. */
.rh-page {
	--rh-green: #B3BA35;
	--rh-orange: #CA6627;
	--rh-ink: #3c372f;
	--rh-beige: #f4f2ee;
	color: var(--rh-ink);
	background: #fff;
	font-family: "ainslie-sans", Calibri, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	margin-bottom: 0;
}
.rh-page *, .rh-newsletter *, .rh-publications * { box-sizing: border-box; }
.rh-container { width: min(1200px, 100%); padding-inline: 30px; margin-inline: auto; }
.rh-page .rh-section { padding-block: 76px; margin: 0; }
.rh-page h1, .rh-page h2, .rh-page h3, .rh-page h4 { margin: 0; font-family: inherit; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.rh-page h2 { color: var(--rh-green); font-size: clamp(28px, 2.7vw, 38px); margin-bottom: 22px; }
.rh-page h2 span, .rh-page .rh-posters h3, .rh-page .rh-tile h3, .rh-page .rh-webinars > h3 { color: var(--rh-orange); }
.rh-page h3 { font-size: 24px; }
.rh-page p { font-size: inherit; line-height: inherit; margin: 0 0 22px; }
.rh-page strong { font-weight: 700; }
.rh-page a { text-underline-offset: .2em; }
.rh-page a:focus-visible, .rh-publications a:focus-visible { outline: 3px solid #CA6627; outline-offset: 5px; }
.rh-page [id], .rh-anchor, .rh-publications { scroll-margin-top: 120px; }
.rh-page .rh-hero { position: relative; isolation: isolate; min-height: 430px; height: clamp(430px, 36vw, 610px); display: flex; align-items: end; padding: 0; margin: 0; overflow: hidden; }
.rh-page .rh-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -1; }
.rh-page .rh-hero__band { width: 100%; background: rgb(0 0 0 / 50%); padding-block: 30px 34px; }
.rh-page .rh-hero h1 { font-size: clamp(42px, 4.5vw, 66px); color: #fff; margin-bottom: 12px; }
.rh-page .rh-hero p { font-size: clamp(18px, 1.8vw, 24px); color: #fff; margin: 0; max-width: 850px; line-height: 1.45; }
.rh-intro { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.rh-page .rh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.rh-page .rh-button, .rh-publications .rh-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 46px; padding: 11px 20px; border: 1px solid #B3BA35; border-radius: 2px;
	background: #B3BA35; color: #fff; text-decoration: none; font-family: inherit;
	font-size: 16px; font-weight: 700; line-height: 1.3; transition: background-color .18s, color .18s;
}
.rh-page .rh-button:hover, .rh-publications .rh-button:hover { background: #77883C; border-color: #77883C; color: #fff; }
.rh-page .rh-button--outline { color: var(--rh-green); background: transparent; }
.rh-page .rh-button--outline:hover { color: #fff; background: var(--rh-green); }
.rh-page .rh-text-link { color: var(--rh-orange); font-size: 16px; font-weight: 700; text-decoration: underline; }
.rh-page .rh-text-link:hover { color: #4E3C33; }
.rh-page .rh-eyebrow { color: #686358; font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.rh-featured { width: 100%; max-width: 280px; justify-self: end; }
.rh-featured__cover { display: block; width: 100%; }
.rh-page .rh-featured img { display: block; width: 100%; height: auto; box-shadow: 0 8px 24px rgb(60 55 47 / 12%); }
.rh-page .rh-featured h3 { font-size: 17px; line-height: 1.45; color: var(--rh-ink); margin-block: 18px 8px; letter-spacing: 0; }
.rh-page .rh-cases { background: var(--rh-beige); }
/* The seven existing cards keep their original theme partial and visual rules. */
.rh-page .resources-section { margin-block: 30px; }
.rh-page .resources-section h3 { color: #4e3c33; letter-spacing: var(--heading--letter-spacing-h3); }
.rh-page .resources-section a,
.rh-page .resources-section .vc_btn3 { font-size: 16px; }
.rh-page .rh-infosheets { margin: 30px 0 0; }
.rh-page .rh-posters { margin-top: 36px; padding-top: 30px; border-top: 1px solid #dedad2; }
.rh-posters__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 22px; }
.rh-page .rh-posters__heading h3 { flex-shrink: 0; }
.rh-page .rh-posters__heading p { font-size: 16px; margin: 0; }
.rh-poster-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; }
.rh-poster { min-width: 0; }
.rh-poster__link { display: block; text-decoration: none; }
.rh-page .rh-poster img, .rh-poster__placeholder { display: flex; width: 100%; aspect-ratio: 600 / 850; height: auto; object-fit: contain; background: #fff; border: 1px solid #e1ded8; border-radius: 2px; }
.rh-poster__placeholder { align-items: center; justify-content: center; text-align: center; color: #8b877c; font-size: 16px; line-height: 1.4; }
.rh-poster__country { display: block; font-size: 16px; font-weight: 700; color: #3c372f; line-height: 1.4; margin-top: 12px; }
.rh-poster__status { display: block; font-size: 16px; line-height: 1.5; color: var(--rh-orange); margin-top: 3px; }
.rh-page .rh-muted { color: #736d63; font-weight: 400; }
.rh-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.rh-page .rh-tile { display: flex; flex-direction: column; align-items: start; width: auto; max-width: none; margin: 0; padding: 26px; background: var(--rh-beige); border-radius: 3px; }
.rh-page .rh-tile h3 { font-size: 22px; margin-bottom: 14px; }
.rh-page .rh-tile p { font-size: 16px; margin-bottom: 22px; }
.rh-tile .rh-button { margin-top: auto; }
.rh-webinars { background: var(--rh-beige); border-radius: 3px; padding: 26px; margin-top: 24px; }
.rh-page .rh-webinars > h3 { font-size: 22px; margin-bottom: 22px; }
.rh-webinar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rh-page .rh-webinar { width: auto; max-width: none; margin: 0; padding: 20px; background: #fff; display: flex; flex-direction: column; align-items: start; min-width: 0; }
.rh-page .rh-webinar .rh-eyebrow { font-size: 16px; margin-bottom: 10px; }
.rh-page .rh-webinar h4 { font-size: 17px; letter-spacing: 0; color: #3c372f; margin-bottom: 12px; }
.rh-page .rh-webinar p { font-size: 16px; line-height: 1.5; margin-bottom: 12px; }
.rh-page .rh-webinar > :last-child { margin-top: auto; margin-bottom: 0; font-size: 16px; }
.rh-newsletter { background: #4e3c30; padding-block: 70px; }
.rh-newsletter h2 { max-width: 680px; margin-bottom: 30px; }
/* Full-width registration band; keep the existing form content centered. */
.site-main > article.rh-original-newsletter {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
	background: #4e3c33;
	font-size: 16px;
	border-bottom: 1px solid #F4F2ED;
}
.rh-original-newsletter > .entry-content {
	width: min(1200px, 100%);
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 30px;
	box-sizing: border-box;
}
.rh-original-newsletter .rh-newsletter > .rh-container { padding-inline: 0; }
/* The existing WPBakery section places its heading and CF7 in one column. */
.rh-original-newsletter .vc_section > .vc_row > .wpb_column:has(.wpcf7) {
	width: 100%;
	float: none;
}
.rh-original-newsletter .vc_section > .vc_row > .wpb_column:has(> .vc_column-inner > .wpb_wrapper:empty) {
	display: none;
}
.rh-original-newsletter .wpb_wrapper:has(> .wpcf7),
.rh-original-newsletter .rh-newsletter > .rh-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	align-items: start;
	gap: 60px;
}
.rh-original-newsletter .wpb_wrapper:has(> .wpcf7) > h2,
.rh-original-newsletter .rh-newsletter h2 {
	max-width: none;
	margin: 0;
}
.rh-original-newsletter .wpcf7 { min-width: 0; }
@media (max-width: 800px) {
	.rh-original-newsletter .wpb_wrapper:has(> .wpcf7),
	.rh-original-newsletter .rh-newsletter > .rh-container {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}
}
.rh-publications { margin-block: 50px; }
.rh-publications > h2 { margin-bottom: 20px; }
.rh-publications .list-content { font-size: 16px; text-transform: uppercase; }
.rh-anchor { display: block; height: 0; }
@media (max-width: 1000px) {
	.rh-intro { gap: 40px; }
	.rh-posters__heading { display: block; }
	.rh-page .rh-posters__heading p { margin-top: 12px; }
	.rh-poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.rh-page .rh-tile, .rh-webinars { padding: 22px; }
	.rh-webinar-grid { gap: 12px; }
	.rh-page .rh-webinar { padding: 16px; }
}
@media (max-width: 700px) {
	.rh-container { padding-inline: 22px; }
	.rh-original-newsletter > .entry-content { padding-inline: 22px; }
	.rh-page { font-size: 16px; }
	.rh-page .rh-section { padding-block: 48px; }
	.rh-page .rh-hero { min-height: 420px; height: 65svh; max-height: 550px; }
	.rh-page .rh-hero__image { object-position: 52% top; }
	.rh-page .rh-hero__band { padding-block: 25px; }
	.rh-intro { grid-template-columns: 1fr; gap: 40px; }
	.rh-featured { justify-self: start; max-width: 250px; }
	.rh-page .rh-featured h3 { font-size: 17px; }
	.rh-poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
	.rh-resource-grid, .rh-webinar-grid { grid-template-columns: 1fr; }
	.rh-resource-grid { gap: 16px; }
	.rh-page .rh-webinar { padding: 20px; }
	.rh-page .rh-webinar > :last-child { margin-top: 4px; }
	.rh-publications li.resources-table .list-title, .rh-publications li.resources-table .list-content, .rh-publications li.resources-table .list-link { display: block; width: 100%; padding: 0; margin-block: 10px; }
}
@media (max-width: 380px) {
	.rh-poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rh-page .rh-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
	.rh-page .rh-button { transition: none; }
}
