/* ── Timeline Page ─────────────────────────────────── */

.dsm-timeline-page {
	padding: var(--dsm-space-3xl) 0;
}

.dsm-timeline-page .dsm-container {
	position: relative;
	z-index: 1;
}

.dsm-timeline-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--dsm-space-sm);
	margin-bottom: var(--dsm-space-md);
	color: var(--dsm-primary);
	font-size: 0.9rem;
	font-weight: var(--dsm-fw-semibold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Hero */
.dsm-timeline-hero {
	background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 55%, #e0f2fe 100%);
	padding-top: clamp(var(--dsm-space-2xl), 5vw, var(--dsm-space-4xl));
	overflow: clip;
	text-align: center;
}

.dsm-timeline-hero__content {
	max-width: 720px;
	margin: 0 auto;
	background: var(--dsm-glass-bg);
	backdrop-filter: var(--dsm-glass-blur);
	-webkit-backdrop-filter: var(--dsm-glass-blur);
	border: 1px solid var(--dsm-border-subtle);
	border-radius: var(--dsm-radius-card);
	box-shadow: var(--dsm-shadow-sm), var(--dsm-glass-inset);
	padding: var(--dsm-space-xl);
}

.dsm-timeline-hero__title {
	margin: 0 0 var(--dsm-space-md);
}

.dsm-timeline-hero__text {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--dsm-muted);
}

/* Spine section */
.dsm-timeline-spine-section {
	background-color: var(--dsm-white);
	padding-top: var(--dsm-space-3xl);
	padding-bottom: var(--dsm-space-3xl);
}

/* Spine container */
.dsm-timeline-spine {
	position: relative;
	max-width: 960px;
	margin: 0 auto;
	padding: var(--dsm-space-lg) 0;
}

/* Vertical line */
.dsm-timeline-spine::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(to bottom, var(--dsm-primary), var(--dsm-secondary));
	transform: translateX(-50%);
	border-radius: 2px;
}

/* Year marker */
.dsm-timeline-year-marker {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	margin: var(--dsm-space-xl) 0 var(--dsm-space-lg);
}

.dsm-timeline-year-marker span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 20px;
	background-color: var(--dsm-primary);
	color: var(--dsm-footer-bg);
	font-size: 1rem;
	font-weight: var(--dsm-fw-bold);
	border-radius: 999px;
	box-shadow: var(--dsm-shadow-md);
	min-width: 80px;
}

/* Entry */
.dsm-timeline-entry {
	position: relative;
	display: flex;
	margin-bottom: var(--dsm-space-lg);
	width: 50%;
}

.dsm-timeline-entry--left {
	padding-right: calc(var(--dsm-space-xl) + 12px);
	justify-content: flex-end;
	align-self: flex-start;
}

.dsm-timeline-entry--right {
	padding-left: calc(var(--dsm-space-xl) + 12px);
	margin-left: 50%;
	justify-content: flex-start;
}

/* Dot on the spine */
.dsm-timeline-entry__dot {
	position: absolute;
	top: var(--dsm-space-lg);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: var(--dsm-white);
	border: 3px solid var(--dsm-primary);
	z-index: 2;
}

.dsm-timeline-entry--left .dsm-timeline-entry__dot {
	right: -8px;
}

.dsm-timeline-entry--right .dsm-timeline-entry__dot {
	left: -8px;
}

/* Entry card */
.dsm-timeline-entry__card {
	background: var(--dsm-glass-bg);
	backdrop-filter: var(--dsm-glass-blur);
	-webkit-backdrop-filter: var(--dsm-glass-blur);
	border: 1px solid var(--dsm-border-subtle);
	border-radius: var(--dsm-radius-card);
	box-shadow: var(--dsm-shadow-sm), var(--dsm-glass-inset);
	padding: var(--dsm-space-lg);
	transition: box-shadow 200ms ease, transform 200ms ease;
	width: 100%;
}

.dsm-timeline-entry__card:hover {
	box-shadow: var(--dsm-shadow-md), var(--dsm-glass-inset);
	transform: translateY(-2px);
}

.dsm-timeline-entry__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--dsm-space-sm);
	margin-bottom: var(--dsm-space-sm);
}

.dsm-timeline-entry__badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: var(--dsm-fw-semibold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.dsm-timeline-entry__badge--milestone {
	background-color: rgba(118, 197, 240, 0.12);
	color: var(--dsm-primary);
}

.dsm-timeline-entry__badge--clinical {
	background-color: rgba(118, 197, 240, 0.18);
	color: #0369a1;
}

.dsm-timeline-entry__badge--policy {
	background-color: rgba(245, 158, 11, 0.12);
	color: #b45309;
}

.dsm-timeline-entry__badge--partnership {
	background-color: rgba(59, 130, 246, 0.12);
	color: #2563eb;
}

.dsm-timeline-entry__year {
	font-size: 0.85rem;
	font-weight: var(--dsm-fw-medium);
	color: var(--dsm-muted);
}

.dsm-timeline-entry__title {
	margin: 0 0 var(--dsm-space-xs);
	font-size: 1.15rem;
	line-height: 1.3;
}

.dsm-timeline-entry__excerpt {
	margin: 0;
	color: var(--dsm-muted);
	line-height: 1.7;
	font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1023px) {
	.dsm-timeline-spine::before {
		left: 24px;
	}

	.dsm-timeline-year-marker {
		justify-content: flex-start;
		padding-left: 0;
	}

	.dsm-timeline-year-marker span {
		margin-left: 0;
	}

	.dsm-timeline-entry {
		width: 100%;
		padding-left: calc(48px + var(--dsm-space-md));
		padding-right: 0;
		margin-left: 0;
		justify-content: flex-start;
	}

	.dsm-timeline-entry--left {
		padding-right: 0;
	}

	.dsm-timeline-entry__dot {
		left: 16px !important;
		right: auto !important;
	}
}

@media (max-width: 767px) {
	.dsm-timeline-page {
		padding: var(--dsm-space-2xl) 0;
	}

	.dsm-timeline-hero__content {
		padding: var(--dsm-space-lg);
		text-align: left;
	}

	.dsm-timeline-hero__title {
		text-wrap: balance;
	}

	.dsm-timeline-entry__card {
		padding: var(--dsm-space-md);
	}

	.dsm-timeline-spine::before {
		left: 16px;
	}

	.dsm-timeline-entry {
		padding-left: calc(32px + var(--dsm-space-md));
	}

	.dsm-timeline-entry__dot {
		left: 8px !important;
	}
}
