/**
 * Program Related Content — the list wrapper and heading fallback only.
 *
 * The divider, item spacing and heading appearance are Elementor controls;
 * they emit more specific selectors and so override the fallbacks below. No
 * default border is set here — "Divider style" defaults to solid in the
 * panel, so the line an editor sees comes from that control, not this file.
 */

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

.irpp-related-content__item {
	min-width: 0;
}

/*
 * --- Built-in row ---
 *
 * Used when a half has no library template picked. Values match the reference
 * templates the two halves were built from, so a page that drops the template
 * still looks like the rest of the site. Everything here is a fallback: the
 * "Built-in row" style controls emit more specific selectors and win.
 */

.irpp-content-row {
	display: block;
	color: inherit;
	text-decoration: none;
}

.irpp-content-row__category {
	display: block;
	color: #940027;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.031rem;
	line-height: 1.4;
	text-transform: uppercase;
}

.irpp-content-row__title {
	display: block;
	margin-top: 0.25rem;
	color: #231F20;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.25;
}

.irpp-content-row:hover .irpp-content-row__title,
.irpp-content-row:focus-visible .irpp-content-row__title {
	color: #940027;
}

.irpp-content-row__authors {
	display: block;
	margin-top: 0.25rem;
	color: #505158;
	font-size: 0.875rem;
	line-height: 1.4;
}

/* Wraps rather than overflowing: the date and the Centre label are two
 * independent chunks, and a narrow column should stack them. */
.irpp-content-row__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	color: #505158;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.033rem;
	line-height: 1.2;
	text-transform: uppercase;
}

.irpp-content-row__date,
.irpp-content-row__centre {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.irpp-content-row__clock {
	display: inline-flex;
	color: #231F20;
}

.irpp-content-row__clock svg {
	width: 0.875rem;
	height: 0.875rem;
}

.irpp-content-row__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #505158;
}

/* The Centre mark is a fixed 12px square in the reference template, and it is a
 * logo rather than an icon -- it keeps its own red and does not follow the
 * surrounding text colour. */
.irpp-content-row__mark {
	display: inline-flex;
	flex: 0 0 auto;
}

.irpp-content-row__mark svg {
	width: 12px;
	height: 12px;
}

.irpp-content-row__centre {
	letter-spacing: 0.4px;
	text-transform: none;
}

/*
 * --- "See all" button ---
 *
 * Shared class names rather than this widget's BEM prefix: the same button is
 * built by Controls::add_button_field() in several widgets, and one set of
 * names keeps its markup helper free of per-widget arguments. Elementor scopes
 * every selector to the widget instance anyway, so two widgets on a page cannot
 * style each other.
 */

.irpp-button-wrap {
	margin-top: 2rem;
}

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

.irpp-button-icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.irpp-button svg {
	width: 1em;
	height: 1em;
	fill: #940027;
}

.irpp-button--pill {
	padding: 0.85rem 2rem;
	border: 2px solid #940027;
	border-radius: 999px;
	background: transparent;
	transition: background 0.2s ease, color 0.2s ease;
}

.irpp-button--pill:hover,
.irpp-button--pill:focus-visible {
	background: #940027;
	color: #FFFFFF;
}

.irpp-button--pill:hover svg,
.irpp-button--pill:focus-visible svg {
	fill: #FFFFFF;
}

.irpp-button--arrow svg {
	transition: transform 0.2s ease;
}

.irpp-button--arrow:hover svg {
	transform: translateX( 0.25rem );
}

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

	.irpp-button,
	.irpp-button--arrow svg {
		transition: none;
	}
}
