.tbnw-timeline {
	--tbnw-navy: #092b66;
	--tbnw-gold: #e6a000;
	--tbnw-line: #e6a000;
	--tbnw-card-bg: #fff;
	--tbnw-card-shadow: 0 7px 18px rgba(10, 28, 61, .14);
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1500px;
	margin: 24px auto;
	padding: 18px 20px;
	color: var(--tbnw-navy);
	background:
		radial-gradient(ellipse at 76% 42%, rgba(239, 214, 171, .20), transparent 30%),
		linear-gradient(150deg, transparent 0 37%, rgba(239, 214, 171, .12) 38%, transparent 43%),
		linear-gradient(330deg, transparent 0 76%, rgba(239, 214, 171, .10) 77%, transparent 82%);
}

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

/* Desktop zig-zag timeline. The title and section description are intentionally omitted. */
.tbnw-timeline--horizontal {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
	row-gap: 28px;
	align-items: stretch;
}

.tbnw-timeline--horizontal::before {
	position: absolute;
	top: 124px;
	bottom: 124px;
	left: 50%;
	width: 2px;
	background: var(--tbnw-line);
	transform: translateX(-50%);
	content: "";
}

.tbnw-timeline__event {
	position: relative;
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
	align-items: center;
	min-width: 0;
}

.tbnw-timeline__marker {
	position: relative;
	z-index: 2;
	display: flex;
	grid-column: 2;
	grid-row: 1;
	align-items: center;
	justify-content: center;
}

.tbnw-timeline__marker span {
	display: block;
	width: 22px;
	height: 22px;
	border: 3px solid var(--tbnw-gold);
	border-radius: 50%;
	background: var(--tbnw-navy);
	box-shadow: 0 0 0 3px #fff;
}

.tbnw-timeline__progress-dot {
	position: absolute;
	z-index: 4;
	top: 124px;
	left: 50%;
	display: block;
	width: var(--tbnw-progress-dot-size, 18px);
	height: var(--tbnw-progress-dot-size, 18px);
	border: 3px solid var(--tbnw-gold);
	border-radius: 50%;
	background-color: var(--tbnw-progress-dot-color, var(--tbnw-navy));
	box-shadow: 0 0 0 3px #fff;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.tbnw-timeline__card {
	position: relative;
	z-index: 1;
	display: grid;
	grid-column: 1;
	grid-row: 1;
	grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	min-width: 0;
	min-height: 212px;
	padding: 6px;
	border: 1px solid rgba(9, 43, 102, .09);
	border-radius: 24px;
	background: var(--tbnw-card-bg);
	box-shadow: var(--tbnw-card-shadow);
}

.tbnw-timeline__event:nth-child(even) .tbnw-timeline__card {
	grid-column: 3;
}

.tbnw-timeline__event::after {
	position: absolute;
	top: 50%;
	z-index: 0;
	width: 17px;
	height: 2px;
	background: var(--tbnw-line);
	content: "";
}

.tbnw-timeline__event:nth-child(odd)::after {
	left: calc(50% - 28px);
}

.tbnw-timeline__event:nth-child(even)::after {
	left: calc(50% + 11px);
}

.tbnw-timeline__photo {
	width: 100% !important;
	height: 200px !important;
	min-width: 0;
	min-height: 200px;
	border-radius: 18px;
	background: #eef1f5;
	overflow: hidden;
}

.tbnw-timeline img.tbnw-timeline__image {
	display: block;
	width: 100% !important;
	max-width: none !important;
	height: 200px !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center center !important;
}

.tbnw-timeline__content {
	min-width: 0;
	padding: 10px 16px 10px 0;
	text-align: left !important;
}

.tbnw-timeline__year {
	margin: 0 0 3px;
	color: var(--tbnw-year-color);
	font-family: var(--tbnw-year-font), sans-serif;
	font-size: var(--tbnw-year-size);
	font-weight: var(--tbnw-year-weight, 700);
	letter-spacing: var(--tbnw-year-letter-spacing, 0);
	text-transform: var(--tbnw-year-transform, none);
	line-height: 1.1;
	text-align: left !important;
}

.tbnw-timeline .tbnw-timeline__title {
	margin: 0 0 7px;
	color: var(--tbnw-title-color);
	font-family: var(--tbnw-title-font), sans-serif;
	font-size: var(--tbnw-title-size);
	font-weight: var(--tbnw-title-weight, 700);
	letter-spacing: var(--tbnw-title-letter-spacing, 0);
	text-transform: var(--tbnw-title-transform, none);
	line-height: 1.2;
	text-align: left !important;
}

.tbnw-timeline__description {
	color: var(--tbnw-description-color);
	font-family: var(--tbnw-description-font), sans-serif;
	font-size: var(--tbnw-description-size);
	font-weight: var(--tbnw-description-weight, 400);
	letter-spacing: var(--tbnw-description-letter-spacing, 0);
	text-transform: var(--tbnw-description-transform, none);
	line-height: 1.45;
	overflow-wrap: anywhere;
	text-align: left !important;
}

.tbnw-timeline .tbnw-timeline__description > * {
	font-family: inherit !important;
	font-weight: inherit !important;
	font-size: inherit !important;
	letter-spacing: inherit !important;
	color: inherit !important;
	text-transform: inherit !important;
	line-height: inherit !important;
	text-align: inherit !important;
}

.tbnw-timeline__description p {
	margin: 0 0 .6em;
	text-align: left !important;
}

.tbnw-timeline__description p:last-child {
	margin-bottom: 0;
}

/* Optional vertical layout remains a single-side card list. */
.tbnw-timeline--vertical {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 18px 0;
	padding-left: 4px;
}

.tbnw-timeline--vertical::before {
	position: absolute;
	top: 18px;
	bottom: 18px;
	left: 20px;
	width: 2px;
	background: var(--tbnw-line);
	content: "";
}

.tbnw-timeline--vertical .tbnw-timeline__progress-dot {
	top: 18px;
	left: 20px;
}

.tbnw-timeline--vertical .tbnw-timeline__event {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: center;
}

.tbnw-timeline--vertical .tbnw-timeline__marker {
	grid-column: 1;
}

.tbnw-timeline--vertical .tbnw-timeline__card,
.tbnw-timeline--vertical .tbnw-timeline__event:nth-child(even) .tbnw-timeline__card {
	grid-column: 2;
}

.tbnw-timeline--vertical .tbnw-timeline__event::after,
.tbnw-timeline--vertical .tbnw-timeline__event:nth-child(even)::after {
	left: 17px;
}

@media (max-width: 760px) {
	.tbnw-timeline--horizontal,
	.tbnw-timeline--vertical {
		display: block;
		padding: 8px 0 8px 30px;
		background: none;
	}

	.tbnw-timeline--horizontal::before,
	.tbnw-timeline--vertical::before {
		top: 8px;
		bottom: 8px;
		left: 12px;
		right: auto;
		width: 2px;
		transform: none;
	}

	.tbnw-timeline--horizontal .tbnw-timeline__progress-dot,
	.tbnw-timeline--vertical .tbnw-timeline__progress-dot {
		top: 8px;
		left: 12px;
	}

	.tbnw-timeline--horizontal .tbnw-timeline__event,
	.tbnw-timeline--vertical .tbnw-timeline__event {
		display: block;
		margin-bottom: 18px;
	}

	.tbnw-timeline--horizontal .tbnw-timeline__event::after,
	.tbnw-timeline--vertical .tbnw-timeline__event::after {
		display: none;
	}

	.tbnw-timeline--horizontal .tbnw-timeline__marker,
	.tbnw-timeline--vertical .tbnw-timeline__marker {
		position: absolute;
		top: 14px;
		left: -29px;
		width: 22px;
		height: 22px;
	}

	.tbnw-timeline--horizontal .tbnw-timeline__card,
	.tbnw-timeline--vertical .tbnw-timeline__card,
	.tbnw-timeline--horizontal .tbnw-timeline__event:nth-child(even) .tbnw-timeline__card,
	.tbnw-timeline--vertical .tbnw-timeline__event:nth-child(even) .tbnw-timeline__card {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		min-height: 0;
		padding: 6px;
	}

	.tbnw-timeline--horizontal .tbnw-timeline__photo,
	.tbnw-timeline--vertical .tbnw-timeline__photo {
		height: 200px !important;
		min-height: 200px;
	}

	.tbnw-timeline--horizontal .tbnw-timeline__content,
	.tbnw-timeline--vertical .tbnw-timeline__content {
		padding: 14px 12px;
	}

	.tbnw-timeline__year {
		font-size: min(var(--tbnw-year-size), 30px);
	}
}

@media (max-width: 420px) {
	.tbnw-timeline {
		padding-right: 8px;
		padding-left: 8px;
	}

	.tbnw-timeline--horizontal,
	.tbnw-timeline--vertical {
		padding-left: 28px;
	}

	.tbnw-timeline--horizontal .tbnw-timeline__photo,
	.tbnw-timeline--vertical .tbnw-timeline__photo {
		height: 200px !important;
		min-height: 200px;
	}
}

/* Cards reveal with a gentle zoom only after the animation script initializes. */
.tbnw-timeline.tbnw-zoom-init .tbnw-timeline__card {
	opacity: 0;
	transform: scale(.94);
	transition: opacity var(--tbnw-zoom-duration, 3s) ease-in-out var(--tbnw-zoom-delay, 0ms), transform var(--tbnw-zoom-duration, 3s) ease-in-out var(--tbnw-zoom-delay, 0ms);
}

.tbnw-timeline.tbnw-zoom-init .tbnw-timeline__card.tbnw-zoom-in-view {
	opacity: 1;
	transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.tbnw-timeline.tbnw-zoom-init .tbnw-timeline__card,
	.tbnw-timeline.tbnw-zoom-init .tbnw-timeline__card.tbnw-zoom-in-view {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
