/**
 * Program Latest Research — the row itself only.
 *
 * Card appearance lives in the Elementor template an editor picks, so nothing
 * here styles card internals. Column count and gap are Elementor controls, which
 * emit more specific selectors and so override the fallbacks below.
 */

.irpp-latest-research__heading {
	margin: 0 0 1.25rem;
	padding-top: 0.75rem;
	border-top: 3px solid #231F20;
	font-size: 1.25rem;
}

.irpp-latest-research__grid {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 1.5rem;
	align-items: start;
}

.irpp-latest-research__item {
	min-width: 0;
}

/*
 * --- Built-in "Stay Tuned" card ---
 *
 * Only present when the card's toggle is on and no library template was picked
 * for it. Every value here is also an Elementor control in the '"Stay Tuned"
 * card' style section; those emit more specific selectors and so win.
 *
 * Shaped like the study cards it shares the row with: a tinted panel where their
 * thumbnail goes, and the text below it rather than inside it. Natural height,
 * like those cards -- the grid is align-items: start, so nothing stretches.
 */
/* Flex column so the "Match row height" control can hand the panel the slack. */
.irpp-latest-research__stay-tuned {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/*
 * Stands in for a study card's thumbnail, so it carries the tint and padding.
 * Grid rather than block: align-content keeps the icon centred once the panel is
 * taller than its contents, which is the whole point of the height controls.
 */
.irpp-latest-research__stay-tuned-media {
	display: grid;
	align-content: center;
	justify-items: center;
	margin-bottom: 0.75rem;
	padding: 2rem;
	background: #F2F6F7;
}

.irpp-latest-research__stay-tuned-icon {
	display: block;
	color: #940027;
	line-height: 0;
}

.irpp-latest-research__stay-tuned-icon svg {
	display: block;
	width: 72px;
	height: auto;
}

/* A <p>, not a heading: it is the card's own label, not a document section. */
.irpp-latest-research__stay-tuned-title {
	margin: 0;
	color: #940027;
	font-size: 1rem;
	line-height: 1.35;
}

.irpp-latest-research__stay-tuned-text {
	margin-top: 0.5rem;
	font-size: 0.95rem;
}

.irpp-latest-research__stay-tuned-text p:last-child {
	margin-bottom: 0;
}

.irpp-latest-research__stay-tuned-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	color: #940027;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.irpp-latest-research__stay-tuned-arrow {
	display: inline-flex;
	flex: 0 0 auto;
}

.irpp-latest-research__stay-tuned-arrow svg {
	width: 1em;
	height: 1em;
	transition: transform 0.2s ease;
}

.irpp-latest-research__stay-tuned-link:hover .irpp-latest-research__stay-tuned-arrow svg,
.irpp-latest-research__stay-tuned-link:focus-visible .irpp-latest-research__stay-tuned-arrow svg {
	transform: translateX( 0.25rem );
}

@media ( prefers-reduced-motion: reduce ) {

	.irpp-latest-research__stay-tuned-arrow svg {
		transition: none;
	}
}
