/**
 * Featured Research -- the heading, the grid and the built-in card.
 *
 * Fallback values. The three Style sections (Heading, Grid and Built-in card)
 * emit more specific selectors through Elementor and override these.
 *
 * Every selector starts with the widget's root class, and every text element sets
 * its own font, size, weight, line height, letter spacing, transform, margin and
 * colour. The site kit styles h3 at (0,1,1) and links at (0,1,1) / (0,2,1), and
 * its body font is IBM Plex Serif at 1.25rem / 1.625; without the extra class and
 * the explicit values, card titles take on the kit's h3. One class more than the
 * kit beats all of them. Every Style control emits {{WRAPPER}} plus the same
 * selector, which carries at least one more class than these rules, so the
 * controls still override. No rule here uses the important flag.
 */

/* The optional section heading is not card text: it follows the kit or its own controls. */
.irpp-featured-research .irpp-featured-research__heading {
	margin: 0 0 1.5rem;
}

.irpp-featured-research .irpp-featured-research__grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( min( 100%, 240px ), 1fr ) );
	gap: 32px;
	align-items: start;
}

.irpp-featured-research .irpp-featured-research__item {
	min-width: 0;
}

.irpp-featured-research .irpp-featured-research__card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.irpp-featured-research .irpp-featured-research__media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

/* Scoped, so this also beats Elementor's `.elementor img { height: auto }`, which would flatten the 16:9 cover. */
.irpp-featured-research .irpp-featured-research__media img,
.irpp-featured-research .irpp-featured-research__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.irpp-featured-research .irpp-featured-research__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #DFE3E7;
}

/* More specific than the media img rule above, so the icon is not stretched. */
.irpp-featured-research .irpp-featured-research__media--placeholder .irpp-featured-research__icon {
	width: 40px;
	height: auto;
	opacity: 0.35;
}

/*
 * The status badge. Identical to css/program-status.css in the Program Status
 * widget, apart from the 4px top margin the card layout adds: see the ponytail
 * note there.
 */
.irpp-featured-research .irpp-featured-research__status {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 6px;
	margin: 4px 0 0;
	padding: 0;
	font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 10px;
	font-weight: 700;
	font-style: normal;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #231F20;
}

.irpp-featured-research .irpp-featured-research__status--active {
	color: #231F20;
}

.irpp-featured-research .irpp-featured-research__status--archived {
	color: #505158;
}

.irpp-featured-research .irpp-featured-research__status-mark {
	flex: none;
	width: 11px;
	height: 11px;
	box-sizing: border-box;
	border-radius: 50%;
}

.irpp-featured-research .irpp-featured-research__status--active .irpp-featured-research__status-mark {
	background: #C4122F;
}

/* The hollow ring. */
.irpp-featured-research .irpp-featured-research__status--archived .irpp-featured-research__status-mark {
	background: transparent;
	border: 1.5px solid #505158;
}

.irpp-featured-research .irpp-featured-research__title {
	margin: 0;
	padding: 0;
	font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: #231F20;
	text-wrap: balance;
}

.irpp-featured-research .irpp-featured-research__title a {
	color: inherit;
	text-decoration: none;
}

/* The comp's link hover. */
.irpp-featured-research .irpp-featured-research__title a:hover,
.irpp-featured-research .irpp-featured-research__title a:focus-visible {
	color: #C4122F;
}

/* The comp's focus ring. */
.irpp-featured-research .irpp-featured-research__title a:focus-visible {
	outline: 2px solid #C4122F;
	outline-offset: 3px;
}

.irpp-featured-research .irpp-featured-research__byline {
	margin: 0;
	padding: 0;
	font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	color: #505158;
}
