/*
 * IN Focus sidebar banner. `.widget a.cch-infocus-banner` beats the theme's
 * `.widget a` (bold, underline on hover); `.widget .cch-infocus-banner__img`
 * beats `.widget img` (max-width 97.5%).
 */

.cch-infocus-widget {
	container-type: inline-size;
}

/*
 * Compact by default: the Main Sidebar is about 207px wide. The roomier layout the design assumes
 * (about 275px) is opted into with @container below, so browsers without container queries get
 * the version that fits the narrow column.
 */
.widget a.cch-infocus-banner {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 12px 10px;
	background: linear-gradient(#fdf3e6, #f6c685);
	color: #5a3a1e;
	font-weight: normal;
	line-height: 1.3;
	text-decoration: none;
	-webkit-hyphens: manual;
	hyphens: manual;
}

.widget a.cch-infocus-banner:hover,
.widget a.cch-infocus-banner:focus {
	background: linear-gradient(#f6c685, #efae5c);
	color: #5a3a1e;
	text-decoration: none;
}

/* The theme sets :focus { outline: 0 }. Browsers without :focus-visible ignore the second rule. */
.widget a.cch-infocus-banner:focus {
	outline: 2px solid #a8242a;
	outline-offset: -4px;
}

.widget a.cch-infocus-banner:focus:not(:focus-visible) {
	outline: none;
}

.cch-infocus-banner__cover,
.cch-infocus-banner__text,
.cch-infocus-banner__name,
.cch-infocus-banner__kicker,
.cch-infocus-banner__edition {
	display: block;
}

.widget .cch-infocus-banner__img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 8.5 / 11;
	object-fit: cover;
	margin: 0;
	padding: 0;
	border: 1px solid #d9b98e;
	background: #fff;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, .2);
}

.cch-infocus-banner__name {
	color: #a8242a;
	font-family: Optima, Segoe, "Segoe UI", Candara, Calibri, Arial, sans-serif;
	font-size: 19px;
	font-variant: small-caps;
	font-weight: 700;
	line-height: 1;
}

.cch-infocus-banner__kicker {
	margin-top: 3px;
	font-size: 10px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.cch-infocus-banner__edition {
	margin: 6px 0 8px;
	font-family: Georgia, "Bitstream Charter", serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

/* Mirrors the Rave Alert widget's .rave_cta exactly (it sits in the same sidebar). */
.cch-infocus-banner__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: #fff;
	color: #8b1a1a;
	font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.625; /* .rave_cta inherits the theme body line-height; the banner sets 1.3 */
	text-transform: uppercase;
}

.cch-infocus-banner__chev {
	display: inline-block;
	width: 10px;
	height: 10px;
}

/* Wider sidebars (e.g. #secondary at 275px under the theme's 800px breakpoint). */
@container (min-width: 251px) {
	.widget a.cch-infocus-banner {
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 14px;
		padding: 16px 14px;
	}

	.cch-infocus-banner__name {
		font-size: 22px;
	}

	.cch-infocus-banner__kicker {
		font-size: 11px;
		letter-spacing: .12em;
	}

	.cch-infocus-banner__edition {
		margin: 8px 0 10px;
		font-size: 14px;
	}
}
