/* Shared Journeys chapter navigation. */

/* Clip decorative edges without making the page a sticky scroll container. */
.clt-site main.clt-new-journey-page { overflow: clip; }

.clt-site .clt-journey-chapters {
	z-index: 42;
	border-top: 0;
	border-bottom: 1px solid rgba(221, 166, 110, .24);
	background: rgba(16, 33, 29, .98);
	box-shadow: 0 8px 26px rgba(0, 0, 0, .09);
	backdrop-filter: blur(12px);
}

.clt-site .clt-journey-chapters-track {
	display: grid;
	min-height: 76px;
	grid-template-columns: 205px minmax(0, 1fr);
	align-items: stretch;
	gap: 0;
	overflow: visible;
}

.clt-site .clt-journey-chapters .clt-journey-chapters-home {
	display: flex;
	min-height: 76px;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 9px 26px 9px 0;
	border: 0;
	background: transparent;
	color: #fffaf3;
	font: 400 20px/1.18 "Cinzel CLT", "Cinzel", Georgia, serif;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
}

.clt-site .clt-journey-chapters-home small {
	margin-bottom: 2px;
	color: #dda66e;
	font: 400 9px/1.4 "Cinzel CLT", "Cinzel", Georgia, serif;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.clt-site .clt-journey-chapters-home strong { font: inherit; }
.clt-site .clt-journey-chapters .clt-journey-chapters-home:hover,
.clt-site .clt-journey-chapters .clt-journey-chapters-home:focus-visible {
	border: 0;
	background: transparent;
	color: #f1be84;
}

.clt-site .clt-journey-chapters-links {
	display: grid;
	min-width: 0;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	overflow-x: auto;
	scrollbar-color: rgba(221, 166, 110, .58) transparent;
	scrollbar-width: thin;
	scroll-snap-type: x proximity;
}

.clt-site .clt-journey-chapters-links > a {
	position: relative;
	display: flex;
	min-width: 108px;
	min-height: 76px;
	flex: 1 0 116px;
	align-items: center;
	justify-content: center;
	padding: 10px 12px;
	border-bottom: 2px solid transparent;
	color: #fffaf3;
	font: 400 12px/1.35 "Cinzel CLT", "Cinzel", Georgia, serif;
	letter-spacing: .01em;
	text-align: center;
	text-transform: none;
	white-space: normal;
	scroll-snap-align: start;
}

.clt-site .clt-journey-chapters-links > a + a::before {
	position: absolute;
	top: 50%;
	left: 0;
	width: 1px;
	height: 25px;
	background: rgba(223, 235, 229, .15);
	content: "";
	transform: translateY(-50%);
}

.clt-site .clt-journey-chapters-links > a:hover,
.clt-site .clt-journey-chapters-links > a:focus-visible,
.clt-site .clt-journey-chapters-links > a[aria-current="page"] {
	border-bottom-color: #dda66e;
	background: rgba(255, 255, 255, .045);
	color: #dda66e;
}

.clt-site .clt-journey-chapters-links > a:focus-visible {
	outline: 2px solid #dda66e;
	outline-offset: -5px;
}

@media (max-width: 1240px) {
	.clt-site .clt-journey-chapters-track {
		grid-template-columns: 168px minmax(0, 1fr);
	}
	.clt-site .clt-journey-chapters .clt-journey-chapters-home {
		padding-right: 18px;
		font-size: 18px;
	}
	.clt-site .clt-journey-chapters-links {
		grid-template-columns: repeat(9, minmax(116px, 1fr));
	}
}

@media (max-width: 900px) {
	.clt-site .clt-journey-chapters-track {
		grid-template-columns: 140px minmax(0, 1fr);
	}
	.clt-site .clt-journey-chapters-links {
		grid-template-columns: repeat(9, minmax(126px, 1fr));
	}
}

@media (max-width: 782px) {
	.clt-site .clt-journey-chapters-track {
		width: 100%;
		min-height: 62px;
		grid-template-columns: 1fr;
		padding-inline: 10px;
	}
	.clt-site .clt-journey-chapters .clt-journey-chapters-home { display: none; }
	.clt-site .clt-journey-chapters-links {
		grid-template-columns: repeat(9, minmax(136px, 1fr));
		scrollbar-width: none;
		scroll-snap-type: x mandatory;
	}
	.clt-site .clt-journey-chapters-links > a {
		min-width: 136px;
		min-height: 62px;
		flex: 0 0 auto;
		padding: 9px 14px;
	}
	.clt-site .clt-journey-chapters-links > a + a::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.clt-site .clt-journey-chapters-links {
		scroll-behavior: auto;
		scroll-snap-type: none;
	}
}
