/*
 * Cover Story (homepage) block: the Cover Story's picture with "Cover Story", the month and
 * year, and a Read the Story button over it (client request, 11/11).
 */

.rr-cover-feature {
	--rr-cf-height: clamp(380px, 46vw, 560px);
	position: relative;
	display: flex;
	align-items: flex-end;
	/* The same width as the other homepage sections (1200px, with a margin on each side). */
	width: calc(100% - 64px);
	max-width: 1200px;
	min-height: var(--rr-cf-height);
	margin: 48px auto;
	overflow: hidden;
	color: #fff;
	background: var(--rr-cf-bg, #101b2c);
	border-radius: 12px;
	isolation: isolate;
	box-sizing: border-box;
}

.rr-cover-feature.alignfull {
	width: 100%;
	max-width: none;
	border-radius: 0;
}

.rr-cover-feature__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.rr-cover-feature__media img,
.rr-cover-feature .rr-cover-feature__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: center;
}

/* A dark fade at the bottom keeps the white text readable on any picture. */
.rr-cover-feature__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 75%);
}

.rr-cover-feature--no-image .rr-cover-feature__shade {
	display: none;
}

.rr-cover-feature__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	width: 100%;
	padding: 40px 48px;
	box-sizing: border-box;
}

.rr-cover-feature__kicker {
	margin: 0;
	color: #fdbf56;
	font-family: "Montserrat", "Lato", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1.4;
	text-transform: uppercase;
}

.rr-cover-feature__title {
	max-width: 820px;
	margin: 0;
	color: #fff;
	font-size: clamp(30px, 4vw, 52px);
	line-height: 1.1;
}

/* The theme's blue button, only as wide as its text. */
.rr-cover-feature .rr-cover-feature__cta {
	display: inline-block;
	width: auto;
	padding: 6px 28px;
	white-space: nowrap;
}

.rr-cover-feature .rr-cover-feature__cta:focus-visible {
	outline: 3px solid #fdbf56;
	outline-offset: 3px;
}

/* Visually hidden, still read by screen readers (the story's name, for the button). */
.rr-cover-feature__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rr-cover-feature__empty {
	padding: 24px;
	text-align: center;
	background: #f3f3f3;
	border: 1px dashed #bbb;
}

@media (max-width: 767px) {
	.rr-cover-feature {
		--rr-cf-height: 420px;
		width: calc(100% - 32px);
		margin: 32px auto;
		border-radius: 8px;
	}

	.rr-cover-feature__inner {
		padding: 28px 22px;
	}

	.rr-cover-feature__kicker {
		font-size: 12px;
		letter-spacing: 0.18em;
	}
}
