.zt-timeline {
	--zt-accent: #e5195f;
	--zt-line: #e2e2e2;
	--zt-card-bg: #ffffff;
	--zt-marker-size: 52px;
	--zt-line-width: 3px;
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

.zt-decade {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	margin: 0 0 28px;
}

/* Extra breathing room under the very first decade box (the one that
   appears before the first timeline entry), matching the reference
   screenshot's spacing under "1930". */
.zt-line-progress + .zt-decade {
	margin-bottom: 40px;
}

.zt-decade-spacer {
	flex: 0 0 var(--zt-marker-size);
	width: var(--zt-marker-size);
	display: flex;
	align-items: center;
	justify-content: center;
}

.zt-decade-box {
	background: #fff;
	border: 1px solid var(--zt-line);
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	color: #1a1a1a;
	white-space: nowrap;
}

.zt-items {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Base line: static, muted grey. Left as a CSS fallback that spans the
   full height (top:0; bottom:0) in case JS hasn't run yet; JS then pins
   it to end exactly at the center of the LAST marker (via inline
   height + bottom:auto) so it never trails off past the last card into
   empty space. Centered on the markers via the shared
   --zt-marker-size variable so it never drifts when the marker size is
   changed (globally or per breakpoint). */
.zt-line-base {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(var(--zt-marker-size) / 2 - (var(--zt-line-width) / 2));
	width: var(--zt-line-width);
	background: var(--zt-line);
	z-index: 0;
}

/* Accent progress line: a real element whose height is updated by JS as
   the user scrolls, so it "runs along" with reading progress instead of
   being a static gradient. Its height is clamped by JS to the same
   endpoint as .zt-line-base, so it can never overshoot the last marker
   either. */
.zt-line-progress {
	position: absolute;
	top: 0;
	left: calc(var(--zt-marker-size) / 2 - (var(--zt-line-width) / 2));
	width: var(--zt-line-width);
	height: 0;
	background: var(--zt-accent);
	z-index: 1;
	transition: height 0.1s linear;
}

.zt-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin-bottom: 28px;
}

.zt-item:last-child {
	margin-bottom: 0;
}

.zt-marker {
	position: relative;
	z-index: 2;
	flex: 0 0 var(--zt-marker-size);
	width: var(--zt-marker-size);
	height: var(--zt-marker-size);
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--zt-line);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9a9a9a;
	overflow: hidden;
}

/* Icon is deliberately small relative to the circle (roughly a third of
   the marker size), matching the reference screenshot. */
.zt-marker i {
	font-size: calc(var(--zt-marker-size) * 0.34);
	line-height: 1;
}

.zt-marker svg {
	width: calc(var(--zt-marker-size) * 0.34);
	height: calc(var(--zt-marker-size) * 0.34);
}

.zt-card {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	background: var(--zt-card-bg);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	padding: 26px 30px;
}

/* Small triangular corner on the left edge of the card pointing back at
   the line/marker, vertically aligned with the marker's center. */
.zt-card::before {
	content: "";
	position: absolute;
	top: calc(var(--zt-marker-size) / 2);
	left: -9px;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-right: 9px solid var(--zt-card-bg);
	filter: drop-shadow(-2px 1px 1px rgba(0, 0, 0, 0.04));
}

.zt-year {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	color: #1a1a1a;
}

.zt-content-inner {
	color: #555555;
	line-height: 1.65;
	font-size: 15px;
	word-wrap: break-word;
}

.zt-content-inner p {
	margin: 0 0 10px;
}

.zt-content-inner p:last-child {
	margin-bottom: 0;
}

.zt-content-inner strong,
.zt-content-inner b {
	color: #2c2c2c;
}

.zt-toggle {
	margin-top: 12px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--zt-accent);
}

.zt-toggle:hover {
	text-decoration: underline;
}

.zt-toggle .zt-arrow {
	display: inline-flex;
	transition: transform 0.25s ease;
}

.zt-content.zt-expanded .zt-arrow {
	transform: rotate(180deg);
}

@media (max-width: 640px) {
	.zt-item {
		gap: 14px;
	}

	.zt-card {
		padding: 18px 20px;
	}

	.zt-year {
		font-size: 19px;
	}
}
