#calendar {
	min-height: calc(100svh - 104px);
	display: flex;
	align-items: center;
}

#calendar > .wrap {
	width: 100%;
}

.timeline-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: clamp(32px,5vh,56px) clamp(20px,3vw,48px);
}

.timeline {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(5, minmax(0,1fr));
}

.timeline li {
	position: relative;
	padding: 68px 14px 0;
	text-align: center;
}

.timeline li::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--line);
}

.timeline li:first-child::before {
	left: 50%;
}

.timeline li:last-child::before {
	right: 50%;
}

.timeline li.is-past::before {
	background: var(--ink);
}

.timeline li.is-current::before {
	background: linear-gradient(90deg, var(--ink) 50%, var(--line) 50%);
}

.timeline li.is-current:first-child::before {
	background: var(--line);
}

.timeline li.is-current:last-child::before {
	background: var(--ink);
	right: 50%;
}

.timeline-dot {
	position: absolute;
	top: 0;
	left: 50%;
	width: 16px;
	height: 16px;
	margin-left: -8px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--gray);
	z-index: 1;
}

.timeline li.is-past .timeline-dot {
	background: var(--ink);
	border-color: var(--ink);
}

.timeline li.is-current .timeline-dot {
	background: var(--red);
	border-color: var(--red);
	box-shadow: 0 0 0 6px rgba(238,53,36,.18);
	animation: timeline-pulse 2.2s ease-out infinite;
}

.timeline-date {
	display: block;
	font-size: clamp(18px,1.5vw,22px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
}

.timeline li.is-current .timeline-date {
	color: var(--red);
}

.timeline p {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.45;
	color: var(--dark);
}

.timeline a {
	color: var(--red);
	text-underline-offset: 3px;
}

@keyframes timeline-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(238,53,36,.45);
	}

	70% {
		box-shadow: 0 0 0 12px rgba(238,53,36,0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(238,53,36,0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.timeline li.is-current .timeline-dot {
		animation: none;
	}
}

@media (max-width: 900px) {
	.timeline {
		grid-template-columns: 1fr;
	}

	.timeline li {
		padding: 0 0 28px 44px;
		text-align: left;
	}

	.timeline li:last-child {
		padding-bottom: 0;
	}

	.timeline li::before {
		top: 0;
		bottom: 0;
		left: 7px;
		right: auto;
		width: 2px;
		height: auto;
	}

	.timeline li:first-child::before {
		top: 8px;
		left: 7px;
	}

	.timeline li:last-child::before {
		bottom: auto;
		height: 8px;
		right: auto;
	}

	.timeline li.is-current::before {
		background: linear-gradient(180deg, var(--ink) 50%, var(--line) 50%);
	}

	.timeline li.is-current:first-child::before {
		background: var(--line);
	}

	.timeline li.is-current:last-child::before {
		background: var(--ink);
	}

	.timeline-dot {
		left: 0;
		margin-left: 0;
	}

	.timeline-date {
		display: inline;
	}
}
