/* Trip Stories archive */
.cm-story-archive-hero {
	padding: clamp(3.8rem,7vw,6rem) 0;
	background:
		radial-gradient(circle at 86% 18%, rgba(25,169,229,.2), transparent 28%),
		linear-gradient(135deg, #061d3a, var(--cm-color-primary-700));
	color: var(--cm-color-white);
}

.cm-story-archive-hero__grid {
	display: grid;
	gap: 2rem;
	align-items: end;
}

.cm-story-archive-hero h1 {
	margin: 0;
	color: var(--cm-color-white);
	font-size: clamp(2.8rem,6vw,5.2rem);
	letter-spacing: -.05em;
}

.cm-story-archive-hero p:not(.cm-page-eyebrow) {
	max-width: 720px;
	margin: 1rem 0 0;
	color: rgba(255,255,255,.74);
	font-size: 1.08rem;
	line-height: 1.7;
}

.cm-story-archive-hero__stat {
	display: grid;
	justify-items: start;
	padding: 1.15rem;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: var(--cm-radius-xl);
	background: rgba(255,255,255,.06);
}

.cm-story-archive-hero__stat strong {
	color: var(--cm-color-accent);
	font-family: var(--cm-font-heading);
	font-size: 3rem;
	line-height: 1;
}

.cm-story-archive-hero__stat span {
	margin-top: .3rem;
	color: rgba(255,255,255,.7);
}

.cm-story-archive-hero__stat a {
	margin-top: .9rem;
	color: var(--cm-color-white);
	font-weight: 800;
	text-decoration: none;
}

.cm-featured-story-section {
	padding: clamp(3.5rem,7vw,6rem) 0;
	background: var(--cm-color-white);
}

.cm-featured-story {
	display: grid;
	overflow: hidden;
	border: 1px solid rgba(8,37,74,.08);
	border-radius: var(--cm-radius-xl);
	background: var(--cm-color-surface);
	box-shadow: var(--cm-shadow-md);
}

.cm-featured-story__image {
	position: relative;
	display: block;
	min-height: 360px;
	overflow: hidden;
	background: linear-gradient(135deg,var(--cm-color-primary-700),var(--cm-color-green));
}

.cm-featured-story__image img,
.cm-featured-story__placeholder {
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: cover;
}

.cm-featured-story__placeholder {
	display: block;
	background:
		radial-gradient(circle at 80% 20%, rgba(247,168,27,.5), transparent 20%),
		linear-gradient(135deg,var(--cm-color-primary-700),var(--cm-color-green));
}

.cm-featured-story__badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: .45rem .72rem;
	border-radius: var(--cm-radius-pill);
	background: var(--cm-color-accent);
	color: var(--cm-color-primary-900);
	font-size: .72rem;
	font-weight: 900;
}

.cm-featured-story__content {
	display: grid;
	align-content: center;
	padding: clamp(1.4rem,4vw,3rem);
}

.cm-featured-story__content h2 {
	margin: 0;
	font-size: clamp(2rem,4.2vw,3.65rem);
	letter-spacing: -.04em;
}

.cm-featured-story__content h2 a {
	color: var(--cm-color-primary-900);
	text-decoration: none;
}

.cm-featured-story__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem 1rem;
	margin-top: 1rem;
	color: var(--cm-color-muted);
	font-size: .82rem;
}

.cm-featured-story__meta a {
	color: var(--cm-color-primary-700);
	font-weight: 800;
	text-decoration: none;
}

.cm-featured-story__content > p:not(.cm-section-heading__eyebrow) {
	color: var(--cm-color-muted);
	line-height: 1.7;
}

.cm-featured-story__highlights {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.cm-featured-story__highlights li {
	padding: .42rem .7rem;
	border-radius: var(--cm-radius-pill);
	background: rgba(141,175,78,.14);
	color: #4b7022;
	font-size: .76rem;
	font-weight: 750;
}

.cm-featured-story__content .cm-button {
	justify-self: start;
}

.cm-story-library {
	padding: clamp(4rem,7vw,6.5rem) 0;
	background: var(--cm-color-surface);
}

.cm-story-grid--archive {
	margin-top: 0;
}

.cm-story-coming-soon {
	display: grid;
	gap: 1.25rem;
	align-items: center;
	padding: clamp(1.5rem,4vw,2.8rem);
	border: 1px dashed rgba(8,37,74,.18);
	border-radius: var(--cm-radius-xl);
	background:
		radial-gradient(circle at 88% 20%, rgba(25,169,229,.12), transparent 24%),
		var(--cm-color-white);
}

.cm-story-coming-soon h3 {
	margin: 0;
	font-size: clamp(1.7rem,3.5vw,2.5rem);
}

.cm-story-coming-soon p:not(.cm-section-heading__eyebrow) {
	color: var(--cm-color-muted);
}

.cm-story-coming-soon__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

/* Cinematic single story */
.cm-story-cinematic-hero {
	position: relative;
	display: grid;
	min-height: clamp(600px,78vh,820px);
	align-items: end;
	isolation: isolate;
	color: var(--cm-color-white);
}

.cm-story-cinematic-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--cm-color-primary-900);
}

.cm-story-cinematic-hero__media img,
.cm-story-cinematic-hero__placeholder,
.cm-story-cinematic-hero__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.cm-story-cinematic-hero__media img {
	object-fit: cover;
}

.cm-story-cinematic-hero__placeholder {
	background:
		radial-gradient(circle at 80% 20%, rgba(247,168,27,.45), transparent 22%),
		linear-gradient(135deg,var(--cm-color-primary-700),var(--cm-color-green));
}

.cm-story-cinematic-hero__overlay {
	background:
		linear-gradient(0deg, rgba(3,18,38,.98) 0%, rgba(3,18,38,.58) 52%, rgba(3,18,38,.24) 100%),
		linear-gradient(90deg, rgba(3,18,38,.78), transparent 72%);
}

.cm-story-cinematic-hero__inner {
	padding-top: 7rem;
	padding-bottom: clamp(3.5rem,7vw,6rem);
}

.cm-story-cinematic-hero h1 {
	max-width: 13ch;
	margin: .5rem 0 0;
	color: var(--cm-color-white);
	font-size: clamp(3rem,7.2vw,6.4rem);
	line-height: .96;
	letter-spacing: -.055em;
}

.cm-story-cinematic-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	margin-top: 1.2rem;
	color: rgba(255,255,255,.76);
	font-size: .84rem;
}

.cm-story-cinematic-hero__meta a {
	color: var(--cm-color-accent);
	font-weight: 850;
	text-decoration: none;
}

.cm-story-cinematic-hero__summary {
	max-width: 720px;
	margin: 1.2rem 0 0;
	color: rgba(255,255,255,.82);
	font-size: clamp(1rem,2vw,1.18rem);
	line-height: 1.72;
}

.cm-story-snapshot {
	position: relative;
	z-index: 2;
	padding: 0 0 1.5rem;
	background: var(--cm-color-surface);
}

.cm-story-snapshot__grid {
	display: grid;
	overflow: hidden;
	margin-top: -1.5rem;
	border: 1px solid rgba(8,37,74,.08);
	border-radius: var(--cm-radius-xl);
	background: var(--cm-color-white);
	box-shadow: var(--cm-shadow-md);
}

.cm-story-snapshot article {
	padding: 1rem 1.1rem;
}

.cm-story-snapshot article + article {
	border-top: 1px solid var(--cm-color-border);
}

.cm-story-snapshot small,
.cm-story-snapshot strong {
	display: block;
}

.cm-story-snapshot small {
	color: var(--cm-color-muted);
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.cm-story-snapshot strong {
	margin-top: .25rem;
	color: var(--cm-color-primary-900);
	font-family: var(--cm-font-heading);
	font-size: .96rem;
}

.cm-story-reading-section {
	padding: clamp(3.5rem,7vw,6.5rem) 0;
	background: var(--cm-color-surface);
}

.cm-story-reading-layout {
	display: grid;
	gap: 2rem;
	align-items: start;
}

.cm-story-article {
	min-width: 0;
}

.cm-story-article__intro {
	margin-bottom: 1rem;
}

.cm-story-article__intro h2 {
	margin: 0;
	font-size: clamp(2rem,4vw,3.2rem);
	letter-spacing: -.04em;
}

.cm-story-prose-v2 {
	padding: clamp(1.2rem,3vw,2.4rem);
}

.cm-story-prose-v2 p,
.cm-story-prose-v2 li {
	font-size: 1.02rem;
	line-height: 1.82;
}

.cm-story-prose-v2 h2 {
	font-size: clamp(1.8rem,3.5vw,2.6rem);
}

.cm-story-prose-v2 h3 {
	font-size: clamp(1.35rem,2.5vw,1.8rem);
}

.cm-story-prose-v2 .wp-block-gallery {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.cm-story-prose-v2 .wp-block-gallery img {
	border-radius: var(--cm-radius-lg);
	box-shadow: var(--cm-shadow-sm);
}

.cm-story-share-note {
	display: flex;
	gap: .75rem;
	margin-top: 1rem;
	padding: 1rem;
	border-radius: var(--cm-radius-lg);
	background: rgba(25,169,229,.08);
	color: var(--cm-color-primary-800);
}

.cm-story-share-note > span {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 50%;
	background: var(--cm-color-white);
	color: var(--cm-color-accent-hover);
}

.cm-story-share-note svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.cm-story-share-note p {
	margin: .2rem 0 0;
	font-size: .86rem;
	font-weight: 650;
}

.cm-story-sidebar-v2 {
	display: grid;
	gap: 1rem;
}

.cm-story-highlights-v2,
.cm-story-destination-card,
.cm-related-package-box--story {
	overflow: hidden;
	border-radius: var(--cm-radius-xl);
	background: var(--cm-color-white);
	box-shadow: var(--cm-shadow-sm);
}

.cm-story-highlights-v2 {
	padding: 1.25rem;
}

.cm-story-highlights-v2 h2 {
	margin: 0;
	font-size: 1.25rem;
}

.cm-story-highlights-v2 ul {
	display: grid;
	gap: .65rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.cm-story-highlights-v2 li {
	position: relative;
	padding-left: 1.45rem;
	color: var(--cm-color-muted);
	font-size: .86rem;
}

.cm-story-highlights-v2 li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--cm-color-green);
	font-weight: 900;
}

.cm-story-destination-card > a {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg,var(--cm-color-primary-700),var(--cm-color-green));
}

.cm-story-destination-card img,
.cm-story-destination-card__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cm-story-destination-card__placeholder {
	display: block;
	background:
		radial-gradient(circle at 75% 20%, rgba(247,168,27,.5), transparent 20%),
		linear-gradient(135deg,var(--cm-color-primary-700),var(--cm-color-green));
}

.cm-story-destination-card > div {
	padding: 1rem;
}

.cm-story-destination-card p,
.cm-story-destination-card h2 {
	margin: 0;
}

.cm-story-destination-card p {
	color: var(--cm-color-accent-hover);
	font-size: .72rem;
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.cm-story-destination-card h2 {
	margin-top: .25rem;
	font-size: 1.25rem;
}

.cm-story-destination-card > div > a {
	display: inline-block;
	margin-top: .75rem;
	color: var(--cm-color-primary-700);
	font-size: .84rem;
	font-weight: 850;
	text-decoration: none;
}

.cm-related-package-box--story {
	padding: 1.25rem;
}

.cm-story-navigation {
	padding: 1rem 0 3rem;
	background: var(--cm-color-surface);
}

.cm-story-navigation__grid {
	display: grid;
	gap: .75rem;
}

.cm-story-navigation a {
	display: grid;
	padding: 1rem;
	border: 1px solid var(--cm-color-border);
	border-radius: var(--cm-radius-lg);
	background: var(--cm-color-white);
	text-decoration: none;
	box-shadow: var(--cm-shadow-sm);
}

.cm-story-navigation small {
	color: var(--cm-color-muted);
}

.cm-story-navigation strong {
	margin-top: .25rem;
	color: var(--cm-color-primary-900);
}

.cm-story-conversion {
	padding: clamp(4rem,7vw,6rem) 0;
	background:
		radial-gradient(circle at 88% 18%, rgba(25,169,229,.2), transparent 26%),
		linear-gradient(135deg,#061d3a,var(--cm-color-primary-700));
	color: var(--cm-color-white);
}

.cm-story-conversion__inner {
	display: grid;
	gap: 1.25rem;
	align-items: center;
}

.cm-story-conversion h2 {
	margin: 0;
	color: var(--cm-color-white);
	font-size: clamp(2rem,4.4vw,3.6rem);
	letter-spacing: -.04em;
}

.cm-story-conversion p:not(.cm-section-heading__eyebrow) {
	color: rgba(255,255,255,.72);
}

.cm-story-conversion__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

@media (min-width: 600px) {
	.cm-story-snapshot__grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}

	.cm-story-snapshot article:nth-child(2) {
		border-top: 0;
	}

	.cm-story-snapshot article:nth-child(even) {
		border-left: 1px solid var(--cm-color-border);
	}

	.cm-story-navigation__grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}

	.cm-story-navigation__next {
		text-align: right;
	}
}

@media (min-width: 900px) {
	.cm-story-archive-hero__grid {
		grid-template-columns: minmax(0,1fr) 260px;
	}

	.cm-featured-story {
		grid-template-columns: minmax(0,1.12fr) minmax(380px,.88fr);
	}

	.cm-featured-story__image,
	.cm-featured-story__image img,
	.cm-featured-story__placeholder {
		min-height: 560px;
	}

	.cm-story-coming-soon {
		grid-template-columns: minmax(0,1fr) auto;
	}

	.cm-story-snapshot__grid {
		grid-template-columns: repeat(4,minmax(0,1fr));
	}

	.cm-story-snapshot article {
		border-top: 0 !important;
	}

	.cm-story-snapshot article + article {
		border-left: 1px solid var(--cm-color-border);
	}

	.cm-story-reading-layout {
		grid-template-columns: minmax(0,1fr) minmax(270px,340px);
	}

	.cm-story-article {
		max-width: 820px;
	}

	.cm-story-sidebar-v2 {
		position: sticky;
		top: calc(var(--cm-header-height) + 1.5rem);
	}

	.admin-bar .cm-story-sidebar-v2 {
		top: calc(var(--cm-header-height) + 3.5rem);
	}

	.cm-story-conversion__inner {
		grid-template-columns: minmax(0,1fr) auto;
	}
}
