.nordemo-timeline {
	display: flex;
	flex-direction: column;
	gap: 80px;
	width: 100%;
}

.nordemo-timeline__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.nordemo-timeline__eyebrow-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.nordemo-timeline__eyebrow {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	letter-spacing: 0.075em;
	text-transform: uppercase;
	color: var(--nordemo-text);
}

.nordemo-timeline__intro {
	max-width: 940px;
	margin: 0;
	font-size: 32px;
	font-weight: 600;
	line-height: 40px;
	letter-spacing: -0.00625em;
	color: var(--nordemo-primary);
	text-align: center;
}

.nordemo-timeline .nordemo-section-divider {
	width: 147px;
}

.nordemo-timeline__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nordemo-timeline__entry {
	display: grid;
	grid-template-columns: minmax(0, 3fr) 32px minmax(0, 12fr);
	column-gap: 42px;
}

.nordemo-timeline__year {
	margin: 0;
	font-size: 34px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: -0.0059em;
	color: var(--nordemo-primary);
	text-align: right;
}

.nordemo-timeline__rail {
	position: relative;
	width: 32px;
}

.nordemo-timeline__rail::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 15.5px;
	width: 1px;
	background: var(--nordemo-sky);
}

/* The rail starts at the first dot and stops at the last one. */
.nordemo-timeline__entry:first-child .nordemo-timeline__rail::before {
	top: 19px;
}

.nordemo-timeline__entry:last-child .nordemo-timeline__rail::before {
	bottom: calc(100% - 35px);
}

.nordemo-timeline__dot {
	position: absolute;
	top: 19px;
	left: 8px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px var(--nordemo-sky);
}

.nordemo-timeline__dot::after {
	content: '';
	position: absolute;
	inset: 3.24px;
	border-radius: 50%;
	background: var(--nordemo-primary);
}

.nordemo-timeline__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 10px 0 56px;
}

.nordemo-timeline__title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: -0.0083em;
	color: var(--nordemo-text);
}

.nordemo-timeline__text {
	margin: 0;
	font-size: 17px;
	line-height: 25px;
	color: var(--nordemo-text);
}

.nordemo-timeline__figure {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.nordemo-timeline__figure img {
	display: block;
	width: 100%;
	max-width: 402px;
	height: auto;
	border-radius: 6px;
}

.nordemo-timeline__figure figcaption {
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	color: var(--nordemo-text-caption);
	text-align: left;
}

@media (max-width: 991px) {
	.nordemo-timeline {
		margin-block: 0 16px;
		gap: 48px;
	}

	.nordemo-timeline__intro {
		font-size: 22px;
		line-height: 30px;
	}

	/* Stacked: the rail keeps its own column and the year becomes the entry heading. */
	.nordemo-timeline__entry {
		grid-template-columns: 32px minmax(0, 1fr);
		column-gap: 16px;
	}

	.nordemo-timeline__year {
		grid-column: 2;
		grid-row: 1;
		padding-top: 10px;
		text-align: left;
	}

	/* span 2, not 1 / -1: the rows here are implicit, so -1 would resolve back to line 1. */
	.nordemo-timeline__rail {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.nordemo-timeline__content {
		grid-column: 2;
		grid-row: 2;
		padding-top: 8px;
		padding-bottom: 40px;
	}

	.nordemo-timeline__dot {
		top: 29px;
	}

	.nordemo-timeline__entry:first-child .nordemo-timeline__rail::before {
		top: 29px;
	}

	.nordemo-timeline__entry:last-child .nordemo-timeline__rail::before {
		bottom: calc(100% - 45px);
	}
}
