/*
 * feature-section block (PublicContentFeatureSectionBlock): full-bleed tinted section; heading, intro, up to 3 cards and
 * buttons left, photo card right (fixed aspect ratio, caption over the bottom of the photo); stacked on phones.
 * Tones: neutral, blue, awareness (the magenta tokens are used only by the awareness tone).
 */
.public-content .content-block.content-block--feature-section {
	width: 100%;
}
.public-content .content-feature-section {
	--feature-bg: var(--content-surface);
	--feature-text: var(--content-text);
	--feature-accent: var(--content-primary);
	--feature-accent-hover: var(--content-primary-hover);
	--feature-accent-soft: var(--content-primary-soft);
	--feature-frame: var(--content-border);
	background: var(--feature-bg);
	color: var(--feature-text);
	border-top: 1px solid var(--content-border);
	border-bottom: 1px solid var(--content-border);
}
.public-content .content-feature-section--awareness {
	--feature-bg: var(--content-awareness-soft);
	--feature-accent: var(--content-awareness);
	--feature-accent-hover: var(--content-awareness-hover);
	--feature-accent-soft: var(--content-awareness-soft);
	--feature-frame: var(--content-awareness-border);
	border-color: var(--content-awareness-border);
}
.public-content .content-feature-section--blue {
	--feature-bg: var(--content-primary);
	--feature-text: #fff;
	--feature-frame: rgba(255, 255, 255, .45);
	border-color: transparent;
}
.public-content .content-feature-section-inner {
	width: min(var(--content-width), 100% - 2rem);
	margin: 0 auto;
	padding: var(--content-band-padding) 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}
.public-content .content-feature-section-copy { min-width: 0; }
.public-content .content-feature-section .content-feature-section-heading { color: var(--feature-text); }
.public-content .content-feature-section-intro { font-size: 1.1rem; line-height: 1.6; max-width: 42rem; }
.public-content .content-feature-section-intro p:last-child { margin-bottom: 0; }
.public-content .content-feature-section--blue .content-feature-section-intro a { color: #fff; }
.public-content .content-feature-section--blue .content-feature-section-intro a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.public-content .content-feature-section-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin-top: 1.75rem;
}
.public-content .content-feature-section-card {
	min-width: 0;
	background: var(--content-card);
	color: var(--content-text);
	border: 1px solid var(--content-border);
	border-radius: var(--content-radius);
	box-shadow: var(--content-shadow);
	padding: 1.25rem;
}
.public-content .content-feature-section-card .content-feature-section-card-title { font-size: 1.2rem; line-height: 1.25; margin: 0 0 .6rem; color: var(--content-text); }
.public-content .content-feature-section-card-text { font-size: .9rem; line-height: 1.55; color: var(--content-muted); }
.public-content .content-feature-section-card-text p:last-child { margin-bottom: 0; }

.public-content .content-feature-section-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.75rem;
}
/* Shape, label and size: the shared button (.btn, olmun-bootstrap-theme.css); here only the tone's colours. */
.public-content a.content-feature-section-button {
	border: 1px solid var(--feature-accent);
	white-space: normal;
	overflow-wrap: anywhere;
}
.public-content a.content-feature-section-button--primary { background: var(--feature-accent); color: #fff; }
.public-content a.content-feature-section-button--primary:hover,
.public-content a.content-feature-section-button--primary:focus { background: var(--feature-accent-hover); border-color: var(--feature-accent-hover); color: #fff; }
.public-content a.content-feature-section-button--secondary { background: var(--content-card); color: var(--feature-accent); }
.public-content a.content-feature-section-button--secondary:hover,
.public-content a.content-feature-section-button--secondary:focus { background: var(--feature-accent-soft); color: var(--feature-accent-hover); }
.public-content a.content-feature-section-button:focus-visible { outline: 3px solid var(--feature-accent); outline-offset: 2px; }
/* Blue tone: white primary, white outline secondary. */
.public-content .content-feature-section--blue a.content-feature-section-button--primary { background: #fff; border-color: #fff; color: var(--content-primary); }
.public-content .content-feature-section--blue a.content-feature-section-button--primary:hover,
.public-content .content-feature-section--blue a.content-feature-section-button--primary:focus { background: var(--content-primary-soft); border-color: var(--content-primary-soft); color: var(--content-primary); }
.public-content .content-feature-section--blue a.content-feature-section-button--secondary { background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff; }
.public-content .content-feature-section--blue a.content-feature-section-button--secondary:hover,
.public-content .content-feature-section--blue a.content-feature-section-button--secondary:focus { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.public-content .content-feature-section--blue a.content-feature-section-button:focus-visible { outline-color: #fff; }

/* Photo card: framed, fixed aspect ratio (no layout shift while the photo loads), caption over the bottom of the photo. */
.public-content .content-feature-section-media {
	position: relative;
	margin: 0;
	min-width: 0;
	padding: .5rem;
	background: var(--content-card);
	border: 2px solid var(--feature-frame);
	border-radius: calc(var(--content-radius) * 2);
	box-shadow: var(--content-shadow);
}
.public-content .content-feature-section-photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--content-radius);
	background: var(--feature-accent-soft);
}
.public-content .content-feature-section-caption {
	position: absolute;
	left: .5rem;
	right: .5rem;
	bottom: .5rem;
	padding: 2.5rem 1.25rem 1rem;
	border-radius: 0 0 var(--content-radius) var(--content-radius);
	background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .45) 60%, rgba(0, 0, 0, 0));
	color: #fff;
}
.public-content .content-feature-section-caption-title {
	display: block;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	font-size: 1rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.public-content .content-feature-section-caption-text { display: block; margin-top: .25rem; font-size: .85rem; line-height: 1.45; }

@media (min-width: 36rem) {
	.public-content .content-feature-section-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.public-content .content-feature-section-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
	.public-content .content-feature-section-inner { gap: 3.5rem; }
	.public-content .content-feature-section--with-image .content-feature-section-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
	.public-content .content-feature-section-photo { aspect-ratio: 9 / 8; }
}
