.smp-timeline {
	--smp-accent: #2d72db;
	--smp-design-2-accent: #6f951d;
	--smp-border: #d8dde7;
	--smp-muted: #667085;
	--smp-gap: 1rem;
	--smp-item-width: 100%;
	--smp-speed: 300ms;
	box-sizing: border-box;
	clear: both;
	max-width: 100%;
	position: relative;
	width: 100%;
}

.smp-timeline *,
.smp-timeline *::before,
.smp-timeline *::after {
	box-sizing: border-box;
}

.smp-timeline button {
	font: inherit;
}

.smp-timeline__nav-shell {
	align-items: center;
	display: flex;
	gap: 0.35rem;
	min-width: 0;
	position: relative;
}

.smp-timeline__nav-viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	padding: 0.75rem 0 1.25rem;
	position: relative;
	width: auto;
}

.smp-timeline__nav-track {
	column-gap: var(--smp-gap);
	direction: ltr;
	display: grid;
	grid-auto-columns: var(--smp-item-width);
	grid-auto-flow: column;
	transition: transform var(--smp-speed) ease;
	will-change: transform;
}

.smp-timeline__nav-item {
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	direction: inherit;
	margin: 0;
	min-width: 0;
	padding: 0;
	text-align: center;
}

.smp-timeline__nav-item:focus-visible,
.smp-timeline__arrow:focus-visible,
.smp-timeline__dots button:focus-visible,
.smp-timeline__autoplay:focus-visible {
	outline: 3px solid #6aa0e8;
	outline: 3px solid color-mix(in srgb, var(--smp-accent) 65%, white);
	outline-offset: 3px;
}

.smp-timeline .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	white-space: nowrap;
	width: 1px;
}

.smp-timeline__arrow {
	align-items: center;
	appearance: none;
	background: #fff;
	border: 2px solid var(--smp-border);
	border-radius: 50%;
	color: #263238;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 2.25rem;
	font-size: 1.75rem;
	height: 2.25rem;
	justify-content: center;
	line-height: 1;
	padding: 0 0 0.1em;
	transition: border-color 160ms ease, background-color 160ms ease;
	width: 2.25rem;
	z-index: 2;
}

.smp-timeline__arrow:hover {
	border-color: #3d3735;
}

.smp-timeline__arrow:disabled {
	cursor: not-allowed;
	opacity: 0.35;
}

.smp-timeline__panels {
	clear: both;
	min-height: 1px;
	overflow: hidden;
	padding: 1.25rem;
	touch-action: pan-y;
}

.smp-timeline__panel {
	animation: smp-timeline-slide-in var(--smp-speed) ease both;
	margin: 0 auto;
}

.smp-timeline[data-smp-config*='"fade":true'] .smp-timeline__panel {
	animation-name: smp-timeline-fade-in;
}

.smp-timeline__panel[hidden] {
	display: none !important;
}

.smp-timeline__title {
	margin: 0 0 0.75rem !important;
	padding: 0 !important;
	text-align: center;
}

.smp-timeline__content {
	text-align: center;
}

.smp-timeline__content > :first-child {
	margin-top: 0;
}

.smp-timeline__content > :last-child {
	margin-bottom: 0;
}

.smp-timeline__featured-image {
	margin: 1.25rem auto 0;
	text-align: center;
}

.smp-timeline__featured-image img,
.smp-timeline__nav-card img {
	box-shadow: none;
	height: auto;
	max-width: 100%;
}

.smp-timeline__dots {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	justify-content: center;
	margin-top: 0.25rem;
	padding: 0.5rem;
}

.smp-timeline__dots button {
	appearance: none;
	background: #fff;
	border: 1px solid #1f2937;
	border-radius: 50%;
	cursor: pointer;
	height: 0.8125rem;
	margin: 0;
	padding: 0;
	width: 0.8125rem;
}

.smp-timeline__dots button.is-active {
	background: #444;
}

.smp-timeline__autoplay {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--smp-muted);
	cursor: pointer;
	display: block;
	font-size: 0.8125rem;
	margin: 0.25rem auto 0;
	padding: 0.35rem 0.5rem;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Design 1: image/title cards above the content. */
.smp-timeline--design-1 .smp-timeline__nav-card {
	background: #f1f1f1;
	color: #246bb3;
	display: flex;
	flex-direction: column;
	font-size: 1.125rem;
	gap: 0.5rem;
	justify-content: center;
	margin: 0;
	min-height: 4rem;
	padding: 0.75rem;
	position: relative;
	transition: background-color 180ms ease, color 180ms ease;
}

.smp-timeline--design-1 .smp-timeline__nav-card img {
	aspect-ratio: 4 / 3;
	display: block;
	object-fit: cover;
	width: 100%;
}

.smp-timeline--design-1 .smp-timeline__nav-item.is-active .smp-timeline__nav-card {
	background: var(--smp-accent);
	color: #fff;
}

.smp-timeline--design-1 .smp-timeline__nav-item.is-active .smp-timeline__nav-card::after {
	border-left: 0.625rem solid transparent;
	border-right: 0.625rem solid transparent;
	border-top: 0.625rem solid var(--smp-accent);
	content: '';
	left: 50%;
	position: absolute;
	top: 100%;
	transform: translateX(-50%);
}

/* Design 2: a horizontal marker timeline with content and image below. */
.smp-timeline--design-2 .smp-timeline__nav-viewport::before {
	background: var(--smp-border);
	content: '';
	height: 2px;
	left: 0;
	position: absolute;
	right: 0;
	top: 1.45rem;
}

.smp-timeline--design-2 .smp-timeline__nav-track {
	position: relative;
}

.smp-timeline--design-2 .smp-timeline__nav-item {
	color: #8a919e;
	display: flex;
	direction: ltr;
	flex-direction: column;
	gap: 0.45rem;
}

.smp-timeline[dir="rtl"] .smp-timeline__nav-item {
	direction: rtl;
}

.smp-timeline--design-2 .smp-timeline__marker {
	align-items: center;
	display: flex;
	height: 1.5rem;
	justify-content: center;
	position: relative;
}

.smp-timeline--design-2 .smp-timeline__marker span {
	background: #fff;
	border: 2px solid var(--smp-border);
	border-radius: 50%;
	display: block;
	height: 1rem;
	transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
	width: 1rem;
}

.smp-timeline--design-2 .smp-timeline__nav-item:hover .smp-timeline__marker span,
.smp-timeline--design-2 .smp-timeline__nav-item.is-active .smp-timeline__marker span {
	background: var(--smp-design-2-accent);
	border-color: var(--smp-design-2-accent);
}

.smp-timeline--design-2 .smp-timeline__nav-item.is-active {
	color: var(--smp-design-2-accent);
	font-weight: 700;
}

.smp-timeline--design-2 .smp-timeline__nav-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.smp-timeline--design-2 .smp-timeline__panel {
	max-width: 43.75rem;
}

.smp-timeline.alignwide {
	max-width: var(--wp--style--global--wide-size, 1200px);
}

.smp-timeline.alignfull {
	max-width: none;
}

@keyframes smp-timeline-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes smp-timeline-slide-in {
	from { opacity: 0; transform: translateX(1rem); }
	to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 40em) {
	.smp-timeline__panels {
		padding-inline: 0.25rem;
	}

	.smp-timeline__arrow {
		flex-basis: 2rem;
		height: 2rem;
		width: 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.smp-timeline__nav-track,
	.smp-timeline__panel,
	.smp-timeline__marker span,
	.smp-timeline__nav-card {
		animation-duration: 0.001ms !important;
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
	}
}
