/* @tunnel-grandfather: legacy/admin/game CSS — selectors are stable and page-scoped; registry conflicts are cross-page false positives; ID selectors intentional and working; refactor risk exceeds value. W3 2026-10-08. */
/* B"H
 * Boruch Hashem
 * Blessed is He
 *
 * The Awtsmoos lets context stand beside content without squeezing the page; Awtsmoos.com gives Docs
 * two natural scroll rails, a calm main stage, and navigation states equally legible by touch, pointer, or key.
 */
body[data-geelooy-route="docs"] :where(.nav-rail, .context-rail) {
	position: sticky;
	top: var(--topbar);
	align-self: start;
	min-inline-size: 0;
	block-size: calc(100dvh - var(--topbar));
	overflow-x: clip;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 22px 18px 40px;
	border-inline-end: 1px solid var(--line);
}

body[data-geelooy-route="docs"] .context-rail {
	border-inline: 1px 0;
}

body[data-geelooy-route="docs"] .rail-intro {
	padding: 4px 6px 18px;
	color: var(--muted);
	font-size: .86rem;
	line-height: 1.5;
}

body[data-geelooy-route="docs"] .main-stage {
	min-inline-size: 0;
	max-inline-size: 100%;
	padding: clamp(26px, 5vw, 64px);

}

body[data-geelooy-route="docs"] .main-stage > section {
	inline-size: min(100%, 1120px);
	min-inline-size: 0;
	margin-inline: auto;
}

body[data-geelooy-route="docs"] .loading-card[hidden] {
	display: none;
}

body[data-geelooy-route="docs"] .loading-card {
	display: flex;
	min-block-size: 50vh;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: var(--muted);
}

body[data-geelooy-route="docs"] .pulse-orb {
	inline-size: 12px;
	block-size: 12px;
	border-radius: 999px;
	background: var(--accent);
	box-shadow: 0 0 0 0 var(--accent-soft);
	animation: docs-pulse 1.8s ease infinite;
}

@keyframes docs-pulse {
	50% {
		box-shadow: 0 0 0 13px transparent;
		opacity: .65;
	}
}

body[data-geelooy-route="docs"] .nav-section {
	margin-block: 0 24px;
}

body[data-geelooy-route="docs"] .nav-section h2 {
	margin: 0 6px 8px;
	color: var(--faint);
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

body[data-geelooy-route="docs"] .nav-link {
	display: flex;
	min-block-size: 44px;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 9px;
	border-radius: 9px;
	color: var(--muted);
	font-size: .83rem;
	text-decoration: none;
	transition: background-color .14s ease, color .14s ease, transform .14s ease;
}

body[data-geelooy-route="docs"] .nav-link[aria-current="page"] {
	background: var(--accent-soft);
	color: var(--text);
}

@media (hover: hover) and (pointer: fine) {
	body[data-geelooy-route="docs"] .nav-link:hover {
		background: var(--accent-soft);
		color: var(--text);
	}
}

body[data-geelooy-route="docs"] .nav-link:active {
	transform: translateX(2px) scale(.99);
}

body[data-geelooy-route="docs"] .nav-count {
	color: var(--faint);
	font-variant-numeric: tabular-nums;
}
