.digs-timeline {
	font-family: inherit;
	width: 100%;
}

.digs-timeline .digs-timeline__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---- Timeline track (line + dots), full width, matching the stage below ---- */

.digs-timeline .digs-timeline__nav {
	width: 100%;
	margin-bottom: 40px;
}

.digs-timeline .digs-timeline__track {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.digs-timeline .digs-timeline__line {
	position: absolute;
	top: 10px; /* vertically centred on the 20px dots */
	left: 0;
	right: 0;
	height: 2px;
	background: var(--digs-line-color, #CFE3DC);
	z-index: 1;
}

.digs-timeline .digs-timeline__dots {
	position: relative;
	z-index: 2;
	display: flex !important;
	justify-content: space-between;
	padding: 0 28px;
	list-style: none;
	margin: 0;
}

.digs-timeline .digs-timeline__dot-wrap {
	display: flex !important;
	flex-direction: column !important;
	align-items: center;
	gap: 10px;
}

.digs-timeline .digs-timeline__dot {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px;
	border-radius: 50% !important;
	padding: 0 !important;
	margin: 0;
	border: none !important;
	background: var(--digs-dot-color, #0F6E56) !important;
	cursor: pointer;
	flex-shrink: 0;
	appearance: none;
	-webkit-appearance: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.digs-timeline .digs-timeline__dot:hover {
	background: var(--digs-dot-hover-color, #E0218A) !important;
	transform: scale(1.15);
}

.digs-timeline .digs-timeline__dot[aria-current="true"] {
	background: var(--digs-active-dot-color, #E5007D) !important;
}

.digs-timeline .digs-timeline__dot[aria-current="true"]:hover {
	background: var(--digs-dot-hover-color, #E0218A) !important;
}

.digs-timeline .digs-timeline__year-label {
	font-size: 12px;
	color: #6b6b6b;
	white-space: nowrap;
}

/* ---- Stage: arrow / panels / arrow — same total width as the track above ---- */

.digs-timeline .digs-timeline__stage {
	display: flex !important;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.digs-timeline .digs-timeline__arrow {
	flex-shrink: 0;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px;
	border-radius: 50% !important;
	border: none !important;
	background: transparent !important;
	color: var(--digs-arrow-color, #0F6E56);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	appearance: none;
	-webkit-appearance: none;
	transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.digs-timeline .digs-timeline__arrow:hover {
	background: var(--digs-arrow-hover-bg, #0F6E56) !important;
	color: #fff;
}

.digs-timeline .digs-timeline__arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.digs-timeline .digs-timeline__panels {
	flex: 1 1 0%;
	min-width: 0;
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	border-radius: 4px;
	overflow: hidden;
	height: 480px;
}

.digs-timeline .digs-timeline__images,
.digs-timeline .digs-timeline__content {
	position: relative;
	overflow: hidden; /* the stationary viewport — this element itself never moves */
	height: 100%;
	min-width: 0;
}

.digs-timeline .digs-timeline__images {
	background: #f4f4f4;
}

.digs-timeline .digs-timeline__images-track,
.digs-timeline .digs-timeline__content-track {
	display: flex !important; /* the actual sliding row — this is what transform moves, never the viewport */
	height: 100%;
	transition: transform 0.35s ease;
}

.digs-timeline .digs-timeline__image-slide,
.digs-timeline .digs-timeline__content-slide {
	flex: 0 0 100% !important;
	min-width: 0;
	height: 100%;
	box-sizing: border-box;
}

.digs-timeline .digs-timeline__content-slide {
	display: flex !important;
	flex-direction: column !important;
	padding: 48px;
	box-sizing: border-box;
	overflow-y: auto; /* lets a viewer scroll to read anything taller than the box, rather than it being clipped */
}

.digs-timeline .digs-timeline__panel-inner {
	width: 100%;
	/* auto top/bottom margins centre this block when it's shorter than the box, and gracefully
	   collapse to 0 (falling back to top-aligned, never clipped) when it's taller than the box —
	   unlike justify-content:center, this can never hide content at either end */
	margin-top: auto;
	margin-bottom: auto;
}

.digs-timeline .digs-timeline__image-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.digs-timeline .digs-timeline__content {
	background: var(--digs-panel-bg-color, #0F6E56);
}

.digs-timeline .digs-timeline__panel-year {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #fff;
}

.digs-timeline .digs-timeline__panel-heading {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #fff;
	opacity: 0.95;
}

.digs-timeline .digs-timeline__panel-body {
	font-size: 15px;
	line-height: 1.7;
	color: #fff;
	opacity: 0.9;
	overflow-wrap: break-word;
}

.digs-timeline .digs-timeline__panel-body p {
	margin: 0 0 1em;
}

.digs-timeline .digs-timeline__panel-body p:last-child {
	margin-bottom: 0;
}

/* ================================================================
   Responsive overrides. Kept at the END of the file on purpose —
   a media query placed earlier can be silently cancelled by a later
   unconditional rule targeting the same selector, even if the media
   query's own condition is still matching. Keeping every override
   here, last, guarantees it wins.
   ================================================================ */

@media (max-width: 767px) {
	.digs-timeline .digs-timeline__panels {
		grid-template-columns: 1fr !important;
		height: auto !important;
	}

	.digs-timeline .digs-timeline__images {
		height: 240px !important;
	}

	.digs-timeline .digs-timeline__content {
		height: auto !important;
	}

	.digs-timeline .digs-timeline__images-track,
	.digs-timeline .digs-timeline__content-track {
		height: auto !important;
	}

	.digs-timeline .digs-timeline__image-slide,
	.digs-timeline .digs-timeline__content-slide {
		height: auto !important;
	}

	.digs-timeline .digs-timeline__image-slide {
		height: 240px !important;
	}

	/* less padding so there's real width left to read on a small screen */
	.digs-timeline .digs-timeline__content-slide {
		padding: 24px !important;
	}

	/* arrows take up less of the limited width on a phone; dots remain the primary navigation */
	.digs-timeline .digs-timeline__stage {
		gap: 4px !important;
	}

	.digs-timeline .digs-timeline__arrow {
		width: 32px !important;
		height: 32px !important;
		min-width: 32px !important;
		font-size: 22px !important;
	}

	.digs-timeline .digs-timeline__dots {
		padding: 0 16px;
	}
}
