/*
 * Theme-owned presentation additions. The V8.1.2 parity layers remain separate
 * so rollback comparisons stay measurable.
 */

.cpsk-logo,
.cpsk-logo picture,
.cpsk-logo img {
	overflow: visible;
}

.cpsk-logo img {
	width: 100%;
	height: auto;
	clip-path: none;
	object-fit: contain;
	transform: none;
}

.cpsk-v7-section--timeline {
	overflow: clip;
	background:
		linear-gradient(90deg, rgba(7, 95, 145, 0.035) 1px, transparent 1px),
		linear-gradient(rgba(7, 95, 145, 0.035) 1px, transparent 1px),
		var(--cpsk-v7-paper);
	background-size: 72px 72px;
}

.cpsk-v7-section--timeline .cpsk-v7-section-heading {
	margin-bottom: 48px !important;
}

.cpt-timeline {
	--cpt-timeline-line: var(--cpsk-v7-navy-800);
	--cpt-timeline-progress: 1;
	--cpt-timeline-line-top: 29px;
	--cpt-timeline-line-height: calc(100% - 58px);
	position: relative;
	display: grid;
	gap: 18px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.cpt-timeline::before,
.cpt-timeline::after {
	position: absolute;
	z-index: 0;
	top: var(--cpt-timeline-line-top);
	left: 50%;
	width: 2px;
	height: var(--cpt-timeline-line-height);
	content: "";
	transform: translateX(-1px);
	transform-origin: top center;
}

.cpt-timeline::before {
	background: rgba(11, 53, 74, 0.14);
}

.cpt-timeline::after {
	background: linear-gradient(
		to bottom,
		var(--cpt-timeline-line) 0%,
		var(--cpt-timeline-line) 82%,
		var(--cpsk-v7-yellow) 100%
	);
	transform: translateX(-1px) scaleY(var(--cpt-timeline-progress));
}

.cpt-timeline__item {
	position: relative;
	z-index: 1;
	display: grid;
	min-height: 310px;
	grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
	align-items: center;
}

.cpt-timeline__marker {
	position: relative;
	z-index: 1;
	display: grid;
	width: 58px;
	height: 58px;
	grid-column: 2;
	grid-row: 1;
	place-items: center;
	justify-self: center;
	border: 1px solid rgba(11, 53, 74, 0.24);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 24px rgba(3, 23, 34, 0.08);
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease;
}

.cpt-timeline__item:first-child.is-active .cpt-timeline__marker::after {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	width: 2px;
	height: calc(50% + 3px);
	background: var(--cpsk-v7-navy-800);
	content: "";
	transform: translateX(-1px);
	transform-origin: top center;
}

.cpt-timeline__marker-core {
	position: relative;
	z-index: 2;
	display: block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(244, 180, 0, 0.42);
	box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.08);
	transition:
		background-color 0.3s ease,
		box-shadow 0.3s ease;
}

.cpt-timeline__item.is-active .cpt-timeline__marker {
	border-color: var(--cpsk-v7-navy-800);
	box-shadow: 0 8px 26px rgba(3, 23, 34, 0.12);
}

.cpt-timeline__item.is-active .cpt-timeline__marker-core {
	background: var(--cpsk-v7-yellow);
	box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.14);
}

.cpt-timeline__item.is-pulsing .cpt-timeline__marker {
	animation: cpt-timeline-marker-arrival 0.42s ease-out both;
}

@keyframes cpt-timeline-marker-arrival {
	0%,
	100% {
		transform: scale(1);
	}

	52% {
		transform: scale(1.08);
	}
}

.cpt-timeline__card {
	position: relative;
	display: grid;
	min-width: 0;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	padding: clamp(28px, 3.4vw, 44px);
	border: 1px solid rgba(11, 53, 74, 0.11);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 22px 54px rgba(3, 23, 34, 0.09);
}

.cpt-timeline__item:nth-child(odd) .cpt-timeline__card {
	grid-column: 1;
	margin-right: 18px;
}

.cpt-timeline__item:nth-child(even) .cpt-timeline__card {
	grid-column: 3;
	margin-left: 18px;
}

.cpt-timeline__card::before {
	position: absolute;
	top: 40px;
	width: 36px;
	height: 1px;
	background: var(--cpsk-v7-yellow);
	content: "";
}

.cpt-timeline__item:nth-child(odd) .cpt-timeline__card::before {
	right: -36px;
}

.cpt-timeline__item:nth-child(even) .cpt-timeline__card::before {
	left: -36px;
}

.cpt-timeline__year {
	display: block;
	margin: 0;
	color: var(--cpsk-v7-navy-900);
	font-size: clamp(40px, 4.2vw, 58px);
	font-weight: 680;
	line-height: 0.95;
}

.cpt-timeline__copy {
	max-width: 550px;
	margin: 0;
	color: var(--cpsk-v7-ink-800);
	font-size: 17px;
	line-height: 1.68;
}

.cpt-timeline__media {
	position: relative;
	width: 100%;
	aspect-ratio: 14 / 7.5;
	margin: 2px 0 0;
	overflow: hidden;
	border-top: 1px solid var(--cpsk-v7-line);
	background: var(--cpsk-v7-mist);
}

.cpt-timeline__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cpt-timeline__media.is-fallback img {
	object-fit: contain;
}

.cpt-timeline.is-enhanced .cpt-timeline__card {
	transition:
		opacity 0.44s var(--cpsk-v7-ease-standard),
		transform 0.44s var(--cpsk-v7-ease-standard);
}

.cpt-timeline.is-initializing .cpt-timeline__card {
	transition: none !important;
}

.cpt-timeline.is-enhanced .cpt-timeline__item:not(.is-revealed) .cpt-timeline__card {
	opacity: 0;
	transform: translateX(-18px);
}

.cpt-timeline.is-enhanced .cpt-timeline__item:nth-child(even):not(.is-revealed) .cpt-timeline__card {
	transform: translateX(18px);
}

@media (max-width: 800px) {
	.cpsk-v7-section--timeline {
		background-size: 56px 56px;
	}

	.cpsk-v7-section--timeline .cpsk-v7-section-heading {
		margin-bottom: 28px !important;
	}

	.cpt-timeline {
		gap: 32px;
	}

	.cpt-timeline::before,
	.cpt-timeline::after {
		left: 28px;
		transform: translateX(-1px);
	}

	.cpt-timeline::after {
		transform: translateX(-1px) scaleY(var(--cpt-timeline-progress));
	}

	.cpt-timeline__item {
		min-height: 0;
		grid-template-columns: 56px minmax(0, 1fr);
		align-items: start;
	}

	.cpt-timeline__marker {
		width: 48px;
		height: 48px;
		grid-column: 1;
		justify-self: start;
	}

	.cpt-timeline__marker-core {
		width: 8px;
		height: 8px;
	}

	.cpt-timeline__item:nth-child(odd) .cpt-timeline__card,
	.cpt-timeline__item:nth-child(even) .cpt-timeline__card {
		grid-column: 2;
		margin-right: 0;
		margin-left: 14px;
	}

	.cpt-timeline__item:nth-child(odd) .cpt-timeline__card::before,
	.cpt-timeline__item:nth-child(even) .cpt-timeline__card::before {
		top: 24px;
		right: auto;
		left: -29px;
		width: 29px;
	}

	.cpt-timeline__year {
		font-size: clamp(36px, 11vw, 48px);
	}

	.cpt-timeline.is-enhanced .cpt-timeline__item:not(.is-revealed) .cpt-timeline__card,
	.cpt-timeline.is-enhanced .cpt-timeline__item:nth-child(even):not(.is-revealed) .cpt-timeline__card {
		transform: translateY(18px);
	}
}

@media (max-width: 420px) {
	.cpt-timeline::before,
	.cpt-timeline::after {
		left: 21px;
	}

	.cpt-timeline__item {
		grid-template-columns: 42px minmax(0, 1fr);
	}

	.cpt-timeline__marker {
		width: 42px;
		height: 42px;
	}

	.cpt-timeline__item:nth-child(odd) .cpt-timeline__card,
	.cpt-timeline__item:nth-child(even) .cpt-timeline__card {
		gap: 17px;
		padding: 24px 20px;
		margin-left: 10px;
	}

	.cpt-timeline__item:nth-child(odd) .cpt-timeline__card::before,
	.cpt-timeline__item:nth-child(even) .cpt-timeline__card::before {
		left: -21px;
		width: 21px;
	}

	.cpt-timeline__copy {
		font-size: 15px;
		line-height: 1.62;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cpt-timeline,
	.cpt-timeline *,
	.cpt-timeline *::before,
	.cpt-timeline *::after {
		animation: none !important;
		scroll-behavior: auto !important;
		transition: none !important;
	}

	.cpt-timeline__card {
		opacity: 1 !important;
		transform: none !important;
	}

	.cpt-timeline {
		--cpt-timeline-progress: 1 !important;
	}

	.cpt-timeline__marker {
		border-color: var(--cpsk-v7-navy-800);
	}

	.cpt-timeline__marker-core {
		background: var(--cpsk-v7-yellow);
		box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.14);
	}
}
