/* Dot Rail — fixed side navigation (ported from temp/demo; amber + font inlined). */
.dot-rail {
	position: fixed;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 70;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dot-rail button {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 11px;
	background: none;
	border: 0;
	padding: 2px;
	cursor: pointer;
}

.dot-rail button:hover,
.dot-rail button:focus {
	background: transparent;
}

.dot-rail button:focus-visible {
	outline: 2px solid #f69e23;
	outline-offset: 3px;
	border-radius: 4px;
}

.dot-rail .rail-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	flex-shrink: 0;
	background: rgba(255, 255, 255, .38);
	border: 2px solid transparent;
	transition: background .3s, transform .3s, border-color .3s;
}

.dot-rail button.is-active .rail-dot {
	background: #f69e23;
	transform: scale(1.35);
}

.dot-rail .rail-label {
	font: 700 12px -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(13, 30, 38, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	padding: 5px 11px;
	border-radius: 999px;
	opacity: 0;
	transform: translateX(6px);
	pointer-events: none;
	transition: opacity .3s, transform .3s;
	white-space: nowrap;
}

.dot-rail button:focus-visible .rail-label,
.dot-rail button.is-active .rail-label {
	opacity: 1;
	transform: none;
}

/* Desktop-only (shown from 1025px up) */
@media (max-width: 1024px) {
	.dot-rail {
		display: none;
	}
}

/* Site nav — mobile variant of the rail: a top bar shown up to 1024px (ported from the demo). */
.site-nav {
	position: fixed;
	inset: var(--header-bar) 0 auto 0;
	z-index: 50;
	background: rgba(251, 247, 240, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid #d8cfc0;
	transform: translateY(-100%);
	transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.site-nav.is-visible {
	transform: translateY(0);
}

html:not(.js) .site-nav {
	position: sticky;
	transform: none;
}

@media (min-width: 1025px) {
	.site-nav {
		display: none;
	}
}

.site-nav .nav-inner {
	max-width: 1152px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 10px 20px;
}

.site-nav .nav-brand {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #47575d;
	font-weight: 700;
}

.site-nav .nav-brand img {
	width: 120px;
	max-width: 120px;
	height: auto;
	display: block;
}

.site-nav .nav-inner nav {
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	overflow-x: auto;
}

.site-nav .nav-links {
	display: flex;
	gap: 20px;
	list-style: none;
	margin: 0 0 0 auto;
	padding: 0;
	min-width: 0; /* allow it to be narrower than its content so it can scroll */
}

.site-nav .nav-links::-webkit-scrollbar {
	display: none;
}

.site-nav .nav-links li {
	flex: 0 0 auto; /* keep items at full width and overflow (scroll) instead of squishing */
}

.site-nav .nav-links a {
	text-decoration: none;
	color: #47575d;
	font-weight: 600;
	font-size: 15px;
	padding: 6px 3px;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}

.site-nav .nav-num {
	font-family: "Newsreader", Georgia, serif;
	font-style: italic;
	color: #846c98;
	margin-right: 2px;
}

.site-nav .nav-progress {
	height: 3px;
	background: transparent;
}

.site-nav .nav-progress-fill {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #007a9a, #d07e3d, #f69e23);
}

@media (max-width: 720px) {
	.site-nav .nav-inner {
		gap: 12px;
		padding: 8px 14px;
	}
	.site-nav .nav-links {
		gap: 13px;
	}
	.site-nav .nav-links a {
		font-size: 13px;
	}
	.site-nav .nav-brand img {
		width: 88px;
	}
}

/* Hover effects — only where a real pointer exists (no sticky hover on touch). */
@media (hover: hover) and (pointer: fine) {
	.dot-rail button:hover .rail-dot {
		background: rgba(255, 255, 255, .75);
		transform: scale(1.2);
	}
	.dot-rail button:hover .rail-label {
		opacity: 1;
		transform: none;
	}
	.site-nav .nav-links a:hover {
		color: #045d75;
		border-bottom-color: #d07e3d;
	}
}

/* Editor-only notice — the live rail sits at the screen edge, so mark it in place. */
.dot-rail-notice {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 672px;
	margin: 0 auto;
	padding: 18px 22px;
	border: 1px dashed rgba(132, 108, 152, .7);
	border-radius: 8px;
	background: linear-gradient(180deg, #0d2e38, #50415c);
	color: rgba(255, 255, 255, .92);
	font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.dot-rail-notice-title {
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #f69e23;
	font-size: 12px;
}
