/* =========================================================
Stories Flexible
Design-aligned layouts for story cards and rows
========================================================= */

.c-stories-flex {
	--sf-rule-color: var(--font-color, #000);
	--sf-muted: var(--slate, #5b6670);
	--sf-accent: var(--red, #d73c47);
	--sf-border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
	--sf-rule: 3px solid var(--sf-rule-color);
	--sf-section-gap: 2rem;
	--sf-header-gap: 2rem;
	--sf-col-gap: 2.4rem;
	--sf-row-gap: 2rem;
	--sf-title-size: 2.1rem;
	--sf-title-line: 1.08;
	--sf-meta-size: 1.2rem;
	--sf-meta-line: 1.3;
	margin-block: var(--sf-section-gap);
}

.c-block.c-stories-flex {
	margin-block: var(--sf-section-gap);
}

.c-stories-flex,
.c-stories-flex * {
	box-sizing: border-box;
}

.c-stories-flex__inner {
	width: 100%;
}

.c-stories-flex h1,
.c-stories-flex h2,
.c-stories-flex h3,
.c-stories-flex h4,
.c-stories-flex h5,
.c-stories-flex h6,
.c-stories-flex p,
.c-stories-flex li {
	max-width: none !important;
}

/* Width presets */
.c-stories-flex--width-content {
	max-width: var(--content-max, 830px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-pad, 2rem);
	padding-right: var(--container-pad, 2rem);
}

.c-stories-flex--width-wide {
	max-width: var(--wide-max, 1260px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-pad, 2rem);
	padding-right: var(--container-pad, 2rem);
}

.c-stories-flex--width-full {
	width: 100%;
	max-width: 100%;
}

.c-stories-flex--width-full .c-stories-flex__inner {
	max-width: var(--full-inner-max, 1440px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-pad, 2rem);
	padding-right: var(--container-pad, 2rem);
}

/* Header */
.c-stories-flex__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 2rem;
	/* border-top: var(--sf-rule); */
	padding-top: 1.6rem;
	margin-bottom: var(--sf-header-gap);
}

.c-stories-flex__title {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	/* color: var(--sf-accent); */
}

.c-stories-flex__more {
	font-size: 1.25rem;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	white-space: nowrap;
	color: var(--sf-accent);
}

.c-stories-flex__more:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Core card + row typography mapped to template-part classes */
.c-stories-flex .c-story-card,
.c-stories-flex .c-story-row {
	min-width: 0;
	color: var(--font-color);
}

.c-stories-flex .c-story-card a,
.c-stories-flex .c-story-row a {
	color: inherit;
	text-decoration: none;
}

.c-stories-flex .c-story-card a:hover .c-story-card__headline,
.c-stories-flex .c-story-card__headline a:hover,
.c-stories-flex .c-story-row a:hover .c-story-row__headline,
.c-stories-flex .c-story-row__headline a:hover {
	text-decoration: underline;
	text-underline-offset: 1px;
}

.c-stories-flex .c-story-card__media,
.c-stories-flex .c-story-row__media {
	overflow: hidden;
	background: var(--surface-muted, #f5f7f9);
}

.c-stories-flex .c-story-card__img,
.c-stories-flex .c-story-row__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-stories-flex .c-story-card__media {
	margin-bottom: 0.9rem;
	aspect-ratio: 1.55 / 1;
}

.c-stories-flex .c-story-card__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.5rem;
	font-size: 1rem;
	line-height: 1.15;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--sf-muted);
}

.c-stories-flex .c-story-card__kickerSeparator {
	font-size: 0.9em;
	line-height: 1;
	transform: translateY(-0.02em);
	font-weight: 700;
	color: var(--sf-muted);
}

.c-stories-flex .c-story-card__headline,
.c-stories-flex .c-story-row__headline {
	margin: 0 0 0.75rem;
	font-weight: bold;
	letter-spacing: normal;
	color: var(--font-color);
}

.c-stories-flex .c-story-card__headline {
	font-size: var(--sf-title-size);
	line-height: var(--sf-title-line);
}

.c-stories-flex .c-story-row__headline {
	font-size: 1.9rem;
	line-height: 1.12;
}

.c-stories-flex .c-story-card__excerpt,
.c-stories-flex .c-story-row__excerpt {
	margin: 0 0 0.9rem;
	font-size: 1.45rem;
	line-height: 1.35;
	color: var(--font-color);
}

.c-stories-flex .c-story-card__meta,
.c-stories-flex .c-story-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	font-size: var(--sf-meta-size);
	line-height: var(--sf-meta-line);
	font-weight: 600;
	color: var(--sf-muted);
}

/* Grid preset */
.c-stories-flex__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.32fr) minmax(0, 1.02fr) minmax(0, 0.74fr);
	column-gap: var(--sf-col-gap);
	row-gap: var(--sf-row-gap);
	align-items: start;
}

.c-stories-flex--full-row-layout .c-stories-flex__grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 1.4rem;
	row-gap: 2.4rem;
}

.c-stories-flex__grid > * {
	min-width: 0;
}

@media (min-width: 901px) {
	.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(1) {
		grid-column: 1;
		grid-row: 1 / span 2;
		padding-right: var(--sf-col-gap);
		border-right: var(--sf-border);
	}

	.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(2) {
		grid-column: 2;
		grid-row: 1;
		padding-right: var(--sf-col-gap);
		padding-bottom: var(--sf-row-gap);
		border-right: var(--sf-border);
		border-bottom: var(--sf-border);
	}

	.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(3) {
		grid-column: 2;
		grid-row: 2;
		padding-right: var(--sf-col-gap);
		border-right: var(--sf-border);
	}

	.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) {
		grid-column: 3;
		grid-row: 1;
		padding-bottom: var(--sf-row-gap);
		border-bottom: var(--sf-border);
	}

	.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(5) {
		grid-column: 3;
		grid-row: 2;
	}

	.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(n+6) {
		grid-column: 1 / -1;
		grid-row: auto;
		padding-top: var(--sf-row-gap);
		border-top: var(--sf-border);
	}
}

.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(1) .c-story-card__headline {
	font-size: 2.6rem;
	line-height: 1.05;
}

.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card__headline,
.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(5) .c-story-card__headline {
	font-size: 2rem;
	line-height: 1.06;
}

/* 3-col Story Block with images */
@media (min-width: 901px) {
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid {
		grid-template-columns: minmax(0, 1.58fr) minmax(0, 0.75fr) minmax(0, 0.75fr);
		column-gap: 1.8rem;
		row-gap: 2.4rem;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(1) {
		padding-right: 1.8rem;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(2) {
		grid-column: 2;
		grid-row: 1 / span 2;
		padding-right: 1.8rem;
		padding-bottom: 0;
		border-right: var(--sf-border);
		border-bottom: 0;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(3) {
		grid-column: 3;
		grid-row: 1;
		padding-right: 0;
		padding-bottom: 1.2rem;
		border-right: 0;
		border-bottom: var(--sf-border);
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) {
		grid-column: 3;
		grid-row: 2;
		padding-right: 0;
		border-right: 0;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(n+5) {
		display: none;
	}

	/*
	 * Wrapped 3-col grid structure:
	 * lead story / secondary story / all remaining compact stacked stories.
	 */
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__gridLead {
		grid-column: 1;
		grid-row: 1;
		padding-right: 1.8rem;
		border-right: var(--sf-border);
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__gridSecondary {
		grid-column: 2;
		grid-row: 1;
		padding-right: 1.8rem;
		border-right: var(--sf-border);
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__gridStack {
		grid-column: 3;
		grid-row: 1;
		display: flex;
		flex-direction: column;
		gap: 1.2rem;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__gridStackItem {
		padding-bottom: 2.2rem;
		border-bottom: var(--sf-border);
		margin-bottom: 1.2rem;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__gridStackItem:last-child {
		padding-bottom: 0;
		border-bottom: 0;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__gridExtras {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--sf-row-gap) var(--sf-col-gap);
		padding-top: var(--sf-row-gap);
		border-top: var(--sf-border);
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(1) .c-story-card__media {
		aspect-ratio: 1.78 / 1;
		margin-bottom: 1.4rem;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(2) .c-story-card__media {
		aspect-ratio: 0.93 / 1;
		margin-bottom: 1.2rem;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(3) .c-story-card,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card {
		display: flex;
		flex-direction: row-reverse;
		gap: 1.2rem;
		align-items: flex-start;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(3) .c-story-card__media,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card__media {
		flex: 0 0 7.8rem;
		width: 7.8rem;
		max-width: 7.8rem;
		margin: 0.2rem 0 0;
		aspect-ratio: 1 / 0.72;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(3) .c-story-card__body,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card__body {
		flex: 1 1 auto;
		min-width: 0;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(1) .c-story-card__headline {
		font-size: 2.7rem;
		line-height: 1.05;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(2) .c-story-card__headline,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(3) .c-story-card__headline,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card__headline {
		font-size: 2.45rem;
		line-height: 1.05;
	}

	/* .c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(3) .c-story-card__headline,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card__headline {
		font-size: 1.85rem;
		line-height: 1.05;
		margin-bottom: 0.35rem;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(3) .c-story-card__excerpt,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card__excerpt {
		font-size: 1.2rem;
		line-height: 1.22;
		margin-bottom: 0.45rem;
	} */

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-story-card__meta {
		font-size: 1rem;
		font-weight: bold;
	}

	/*
	 * Hard override for the compact right-column cards.
	 * Some story-card markup renders media/body wrappers in a way that can ignore
	 * grid/flex child placement, so float the media to the right inside the card.
	 */
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(3) .c-story-card,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__gridStackItem .c-story-card {
		display: block !important;
		overflow: hidden;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(3) .c-story-card__media,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card__media,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__gridStackItem .c-story-card__media {
		float: right !important;
		display: block !important;
		width: 10rem !important;
		max-width: 10rem !important;
		margin: 0.2rem 0 0.35rem 1.2rem !important;
		aspect-ratio: 1 / 0.72;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(3) .c-story-card__body,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card__body,
	.c-stories-flex--preset-grid.c-stories-flex--cols-three .c-stories-flex__gridStackItem .c-story-card__body {
		display: block !important;
		min-width: 0;
	}

}

@media (max-width: 900px) {
	.c-stories-flex__gridStack {
		display: flex;
		flex-direction: column;
		gap: 2rem;
	}
}

.c-stories-flex--cols-two .c-stories-flex__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c-stories-flex--cols-one .c-stories-flex__grid {
	grid-template-columns: 1fr;
}

.c-stories-flex--full-row-layout .c-stories-flex__grid > * {
	padding: 0;
	border: 0;
	grid-column: auto !important;
	grid-row: auto !important;
}

.c-stories-flex--full-row-layout .c-story-card__media {
	margin-bottom: 0.7rem;
	aspect-ratio: 1.45 / 1;
}

.c-stories-flex--full-row-layout .c-story-card__headline {
	font-size: 1.15rem;
	line-height: 1.12;
}

.c-stories-flex--full-row-layout .c-story-card__kicker {
	gap: 0.4rem;
	margin-bottom: 0.4rem;
	font-size: 0.95rem;
	line-height: 1.15;
	font-weight: bold;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sf-muted);
}

.c-stories-flex--full-row-layout .c-story-card__kickerSeparator {
	font-size: 0.95em;
	line-height: 1;
	transform: translateY(-0.02em);
}

.c-stories-flex--full-row-layout.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(1) .c-story-card__headline,
.c-stories-flex--full-row-layout.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card__headline,
.c-stories-flex--full-row-layout.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(5) .c-story-card__headline,
.c-stories-flex--full-row-layout.c-stories-flex--cols-three .c-stories-flex__grid > * .c-story-card__headline {
	font-size: 1.15rem !important;
	line-height: 1.12 !important;
	max-width: none;
}

.c-stories-flex--full-row-layout .c-stories-flex__grid > * .c-story-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.c-stories-flex--full-row-layout .c-stories-flex__grid > * .c-story-card__body > *:last-child {
	margin-bottom: 0;
}

.c-stories-flex--full-row-layout .c-stories-flex__grid > * .c-story-card__media {
	margin-bottom: 0.75rem;
}

.c-stories-flex--full-row-layout .c-story-card__excerpt {
	display: none;
}

.c-stories-flex--full-row-layout .c-story-card__meta {
	display: none;
}

.c-stories-flex--cols-one .c-stories-flex__grid > * {
	padding-block: 2.4rem;
	border-top: var(--sf-border);
}

.c-stories-flex--cols-one .c-stories-flex__grid > :first-child {
	padding-top: 0;
	border-top: 0;
}

/* Full-page 1-col story block treatment: alternating media/body rows. */
.c-stories-flex--preset-grid.c-stories-flex--cols-one.c-stories-flex--width-full .c-stories-flex__grid > * .c-story-card {
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
	column-gap: 2.4rem;
	align-items: start;
}

.c-stories-flex--preset-grid.c-stories-flex--cols-one.c-stories-flex--width-full .c-stories-flex__grid > *:nth-child(even) .c-story-card {
	grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
}

.c-stories-flex--preset-grid.c-stories-flex--cols-one.c-stories-flex--width-full .c-stories-flex__grid > *:nth-child(even) .c-story-card__body {
	order: 1;
}

.c-stories-flex--preset-grid.c-stories-flex--cols-one.c-stories-flex--width-full .c-stories-flex__grid > *:nth-child(even) .c-story-card__media {
	order: 2;
}

.c-stories-flex--preset-grid.c-stories-flex--cols-one.c-stories-flex--width-full .c-story-card__media {
	margin-bottom: 0;
	aspect-ratio: 1.9 / 1;
}

.c-stories-flex--preset-grid.c-stories-flex--cols-one.c-stories-flex--width-full .c-story-card__headline {
	font-size: 2.8rem;
	line-height: 1.04;
}

.c-stories-flex--cols-two .c-stories-flex__grid > * {
	padding: 0;
	border: 0;
}

/* Feature rail + popular */
.c-stories-flex__featureRail {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 0.75fr);
	column-gap: var(--sf-col-gap);
	align-items: start;
}

.c-stories-flex__featureRail--noRightRail {
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.9fr);
}

.c-stories-flex__featureRail--noRightRail .c-stories-flex__featureRailCenter {
	padding-right: 0;
	border-right: 0;
}

/* .c-stories-flex:not(.c-stories-flex--has-header) .c-stories-flex__featureRail {
	border-top: var(--sf-rule);
	padding-top: 1.6rem;
} */

.c-stories-flex__featureRailLeft {
	padding-right: var(--sf-col-gap);
}

.c-stories-flex__featureRailCenter {
	padding-right: var(--sf-col-gap);
	border-right: var(--sf-border);
}

.c-stories-flex__railLabel {
	margin-bottom: 1.6rem;
	font-size: 1.15rem;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--sf-muted);
}

.c-stories-flex__featureRailLeft .c-story-row,
.c-stories-flex__featureRailRight .c-story-row {
	display: block;
	padding-bottom: 1.8rem;
	margin-bottom: 1.8rem;
	border-bottom: var(--sf-border);
}

.c-stories-flex__featureRailLeft .c-story-row:last-child,
.c-stories-flex__featureRailRight .c-story-row:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}

.c-stories-flex__featureRailLeft .c-story-row__media,
.c-stories-flex__featureRailRight .c-story-row__media {
	display: none;
}

.c-stories-flex__featureRailLeft .c-story-row__headline {
	font-size: 1.85rem;
	line-height: 1.12;
}

.c-stories-flex__featureRailRight .c-story-row__headline {
	font-size: 1.6rem;
	line-height: 1.12;
	margin-bottom: 0;
}

.c-stories-flex__featureRailCenter .c-story-card__headline {
	font-size: 2.2rem;
	line-height: 1.08;
}

.c-stories-flex__featureRail--popular .c-stories-flex__featureRailRight .c-story-row {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 1.2rem;
	align-items: start;
}

.c-stories-flex__featureRail--popular .c-stories-flex__featureRailRight .c-story-row.c-story-row--no-media {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.c-stories-flex__featureRail--popular .c-stories-flex__featureRailRight .c-story-row__media {
	display: block;
	width: 72px;
	aspect-ratio: 1 / 0.72;
}

.c-stories-flex__featureRail--popular .c-stories-flex__featureRailRight .c-story-row.c-story-row--no-media .c-story-row__headline {
	font-size: 1.6rem;
	line-height: 1.12;
}

.c-stories-flex__featureRail--popular .c-stories-flex__featureRailRight .c-story-row__excerpt,
.c-stories-flex__featureRail--popular .c-stories-flex__featureRailRight .c-story-row__meta {
	display: none;
}

/* Hero + list preset */
.c-stories-flex__heroPlusList {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
	column-gap: var(--sf-col-gap);
	align-items: start;
}

.c-stories-flex__hero {
	padding-right: var(--sf-col-gap);
	border-right: var(--sf-border);
}

.c-stories-flex__hero .c-story-card__headline {
	font-size: 2.8rem;
	line-height: 1.04;
}

.c-stories-flex__heroPlusList .c-stories-flex__list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.c-stories-flex__heroPlusList .c-stories-flex__list > * {
	padding-bottom: 1.8rem;
	margin-bottom: 1.8rem;
	border-bottom: var(--sf-border);
}

.c-stories-flex__heroPlusList .c-stories-flex__list > *:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}

.c-stories-flex__heroPlusList .c-story-row {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 1.4rem;
	align-items: start;
}

.c-stories-flex__heroPlusList .c-story-row.c-story-row--no-media {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.c-stories-flex__heroPlusList .c-story-row__media {
	display: block;
	width: 140px;
	aspect-ratio: 1.25 / 1;
}

.c-stories-flex__heroPlusList .c-story-row.c-story-row--no-media .c-story-row__media {
	display: none;
}

.c-stories-flex__heroPlusList .c-story-row__headline {
	font-size: 1.85rem;
	line-height: 1.12;
}

/* List preset */
.c-stories-flex__list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.c-stories-flex--preset-list .c-stories-flex__list > * {
	padding-block: 2.8rem;
	border-bottom: var(--sf-border);
}

.c-stories-flex--preset-list .c-stories-flex__list > *:first-child {
	padding-top: 0;
}

.c-stories-flex--preset-list .c-stories-flex__list > *:last-child {
	border-bottom: 0;
}

.c-stories-flex--preset-list .c-story-row {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 3rem;
	align-items: center;
}

.c-stories-flex--preset-list .c-story-row.c-story-row--no-media {
	grid-template-columns: 1fr;
}

.c-stories-flex--preset-list .c-story-row__media {
	aspect-ratio: 1.25 / 1;
}

.c-stories-flex--preset-list .c-story-row__headline {
	font-size: 2.3rem;
	line-height: 1.1;
}

.c-stories-flex--cols-two.c-stories-flex--preset-list .c-story-row__body,
.c-stories-flex--cols-three.c-stories-flex--preset-list .c-story-row__body {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-around;
}

.wp-block-column .c-stories-flex--preset-list.c-stories-flex--cols-one {
	.c-story-row.c-story-row--has-media {
		display: flex;
		gap: 1rem;
		align-items: flex-start;
	}
	.c-story-row__media {
		max-width: 115px;
	}
	.c-story-row__headline {
		font-size: var(--sm);
		line-height: 1.2;
	}
}

/* Scroller preset */
.c-stories-flex__scroller {
	overflow: visible;
	padding-top: 2.8rem;
}

.c-stories-flex__scrollerSlide {
	width: auto;
	height: auto;
}

.c-stories-flex__scrollerSlide .c-story-card {
	width: 18rem;
}

.c-stories-flex__scroller[data-card-width="12"] .c-story-card { width: 12rem; }
.c-stories-flex__scroller[data-card-width="14"] .c-story-card { width: 14rem; }
.c-stories-flex__scroller[data-card-width="16"] .c-story-card { width: 16rem; }
.c-stories-flex__scroller[data-card-width="18"] .c-story-card { width: 18rem; }
.c-stories-flex__scroller[data-card-width="20"] .c-story-card { width: 20rem; }
.c-stories-flex__scroller[data-card-width="22"] .c-story-card { width: 22rem; }
.c-stories-flex__scroller[data-card-width="24"] .c-story-card { width: 24rem; }
.c-stories-flex__scroller[data-card-width="26"] .c-story-card { width: 26rem; }
.c-stories-flex__scroller[data-card-width="28"] .c-story-card { width: 28rem; }
.c-stories-flex__scroller[data-card-width="30"] .c-story-card { width: 30rem; }

.c-stories-flex .swiper-button-prev,
.c-stories-flex .swiper-button-next {
	position: absolute;
	top: 0;
	left: auto;
	right: 0;
	margin: 0;
	transform: none;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	border: 1px solid var(--border-color, rgba(0, 0, 0, 0.28));
	background: var(--white, #fff);
	color: var(--font-color, #000);
	box-shadow: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.c-stories-flex .swiper-button-prev {
	right: 7.5rem;
}

.c-stories-flex .swiper-button-prev:after,
.c-stories-flex .swiper-button-next:after {
	font-size: 0.9rem;
	font-weight: 700;
}

.c-stories-flex .swiper-button-prev:hover,
.c-stories-flex .swiper-button-next:hover {
	background: var(--surface-muted, #f5f7f9);
	border-color: var(--sf-accent);
	color: var(--sf-accent);
}

/* Story Block Row presets */
.c-stories-flex__fullStoryGrid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 1.4rem;
	row-gap: 2.2rem;
	align-items: start;
	/* border-top: var(--sf-rule); */
	padding-top: 1.6rem;
}

.c-stories-flex--has-header .c-stories-flex__fullStoryGrid {
	border-top: 0;
	padding-top: 0;
}

.c-stories-flex__fullStoryGridItem {
	min-width: 0;
}

.c-stories-flex__fullStoryGrid .c-story-card__media {
	margin-bottom: 0.75rem;
	aspect-ratio: 1.45 / 1;
}

.c-stories-flex__fullStoryGrid .c-story-card__headline {
	font-size: 1.4rem !important;
	line-height: 1.2 !important;
	max-width: none;
}

.c-stories-flex__fullStoryGrid .c-story-card__excerpt,
.c-stories-flex__fullStoryGrid .c-story-card__meta,
.c-stories-flex__fullStoryGrid .c-story-card__kicker {
	display: none;
}

/* Multi-story taxonomy columns */
.c-stories-flex__multiStoryColumns {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 1.4rem;
	row-gap: 2.2rem;
	align-items: start;
	/* border-top: var(--sf-rule); */
	padding-top: 1.6rem;
}

.c-stories-flex--has-header .c-stories-flex__multiStoryColumns {
	border-top: 0;
	padding-top: 0;
}

.c-stories-flex__multiStoryColumn {
	min-width: 0;
}

.c-stories-flex__multiStoryColumnLabel {
	margin-bottom: 0.9rem;
	font-size: 1.4rem;
	line-height: 1.2;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--sf-muted);
}

.c-stories-flex__multiStoryColumnPost {
	padding-top: 0.85rem;
	margin-top: 0.85rem;
	border-top: var(--sf-border);
}

.c-stories-flex__multiStoryColumnPost:first-of-type,
.c-stories-flex__multiStoryColumnPost.is-featured {
	padding-top: 0;
	margin-top: 0;
	border-top: 0;
}

.c-stories-flex__multiStoryColumnPost.is-featured {
	margin-bottom: 1rem;
}

.c-stories-flex__multiStoryColumnPost.is-featured .c-story-card__media {
	margin-bottom: 1rem;
	aspect-ratio: 1.45 / 1;
}

.c-stories-flex__multiStoryColumnPost .c-story-card__headline {
	font-size: 1.4rem !important;
	line-height: 1.2 !important;
	max-width: none;
}

.c-stories-flex__multiStoryColumnPost.is-featured .c-story-card__headline {
	font-size: 1.4rem !important;
}

.c-stories-flex__multiStoryColumnPost .c-story-card__excerpt,
.c-stories-flex__multiStoryColumnPost .c-story-card__meta,
.c-stories-flex__multiStoryColumnPost .c-story-card__kicker {
	display: none;
}

/* Responsive */
@media (max-width: 1024px) {
	.c-stories-flex__featureRail {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		row-gap: 2.8rem;
	}

	.c-stories-flex__featureRailLeft,
	.c-stories-flex__featureRailCenter {
		padding-right: 0;
		border-right: 0;
	}

	.c-stories-flex__featureRailRight {
		grid-column: 1 / -1;
		padding-top: 2.4rem;
		border-top: var(--sf-border);
	}
}

@media (max-width: 900px) {
	.c-stories-flex__fullStoryRow .c-story-card {
		grid-template-columns: 1fr;
	}

	.c-stories-flex__fullStoryRow .c-story-card__media {
		margin-bottom: 0.9rem;
	}

	.c-stories-flex__multiStoryColumns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.c-stories-flex__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 2rem;
		row-gap: 2.4rem;
	}

	.c-stories-flex--full-row-layout .c-stories-flex__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.c-stories-flex__grid > * {
		grid-column: auto !important;
		grid-row: auto !important;
		padding: 0 !important;
		border: 0 !important;
	}

	.c-stories-flex__heroPlusList {
		grid-template-columns: 1fr;
		row-gap: 2.4rem;
	}

	.c-stories-flex__hero {
		padding-right: 0;
		border-right: 0;
	}

	.c-stories-flex__heroPlusList .c-story-row {
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 1.2rem;
	}

	.c-stories-flex__heroPlusList .c-story-row__media {
		width: 120px;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-one.c-stories-flex--width-full .c-stories-flex__grid > * .c-story-card,
	.c-stories-flex--preset-grid.c-stories-flex--cols-one.c-stories-flex--width-full .c-stories-flex__grid > *:nth-child(even) .c-story-card {
		grid-template-columns: 1fr;
	}

	.c-stories-flex--preset-grid.c-stories-flex--cols-one.c-stories-flex--width-full .c-story-card__media {
		margin-bottom: 0.9rem;
	}
}

@media (max-width: 700px) {
	.c-stories-flex__fullStoryRow .c-story-card__headline {
		font-size: 2.2rem;
		line-height: 1.08;
	}

	.c-stories-flex__multiStoryColumns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.c-stories-flex {
		--sf-section-gap: 4rem;
		--sf-col-gap: 1.6rem;
		--sf-row-gap: 1.8rem;
	}

	.c-stories-flex__header {
		padding-top: 1.2rem;
		margin-bottom: 1.6rem;
	}

	.c-stories-flex__featureRail {
		grid-template-columns: 1fr;
		row-gap: 2.4rem;
	}

	.c-stories-flex__featureRailRight {
		grid-column: auto;
		padding-top: 0;
		border-top: 0;
	}

	.c-stories-flex--preset-list .c-story-row {
		display: flex;
		flex-direction: column;
		/* grid-template-columns: 110px minmax(0, 1fr); */
		gap: 1.6rem;
	}

	.c-stories-flex--preset-list .c-story-row__headline {
		font-size: 1.9rem;
	}

	.c-stories-flex .c-story-card__headline,
	.c-stories-flex .c-story-row__headline,
	.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(1) .c-story-card__headline,
	.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(4) .c-story-card__headline,
	.c-stories-flex--cols-three .c-stories-flex__grid > :nth-child(5) .c-story-card__headline {
		font-size: 2rem;
		line-height: 1.12;
	}

	.c-stories-flex--full-row-layout .c-stories-flex__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.c-stories-flex__grid {
		grid-template-columns: 1fr;
	}

	.c-stories-flex__heroPlusList .c-story-row {
		grid-template-columns: 100px minmax(0, 1fr);
		gap: 1rem;
	}

	.c-stories-flex__heroPlusList .c-story-row__media {
		width: 100px;
	}

	.c-stories-flex__fullStoryGrid {
		grid-template-columns: 1fr;
	}
}
