:root {
	--vs-nav-height: 72px;
}

.vs-site-nav,
.vs-site-nav *,
.vs-site-footer,
.vs-site-footer * {
	box-sizing: border-box;
}

.vs-site-nav {
	position: relative;
	z-index: 100;
	width: 100%;
	min-height: var(--vs-nav-height);
	border-bottom: 1px solid rgba(211, 179, 106, 0.24);
	background: rgba(9, 8, 14, 0.96);
	color: #f0e6d2;
	font-family: "Instrument Sans", InstrumentSans, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vs-site-nav-inner {
	width: min(1280px, 100%);
	min-height: var(--vs-nav-height);
	margin: 0 auto;
	padding: 0 clamp(18px, 2.5vw, 32px);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(14px, 2vw, 28px);
}

.vs-site-brand,
.vs-site-footer-brand {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.vs-site-brand img {
	display: block;
	width: 146px;
	height: auto;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.72));
}

.vs-desktop-links {
	min-width: 0;
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: clamp(4px, 0.65vw, 10px);
	white-space: nowrap;
}

.vs-nav-link,
.vs-footer-link,
.vs-mobile-link,
.vs-mobile-secondary-link,
.vs-nav-action {
	text-decoration: none;
}

.vs-nav-link {
	min-height: 44px;
	padding: 0 clamp(5px, 0.55vw, 9px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-bottom: 2px solid transparent;
	color: #b8adbf;
	font-size: clamp(11px, 1.15vw, 13px);
	font-weight: 600;
	line-height: 1;
	transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.vs-nav-link:hover {
	color: #f0e6d2;
}

.vs-nav-link[aria-current="page"] {
	border-bottom-color: #d3b36a;
	color: #f3d590;
}

.vs-nav-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.vs-nav-status {
	min-height: 32px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 9px;
	border: 1px solid rgba(211, 179, 106, 0.24);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.035);
	color: #b8adbf;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.vs-nav-status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #5fc49d;
	box-shadow: none;
}

.vs-nav-action {
	min-height: 44px;
	padding: 0 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(211, 179, 106, 0.66);
	border-radius: 6px;
	background: rgba(211, 179, 106, 0.1);
	color: #f3d590;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.vs-nav-action:hover {
	border-color: #e3c578;
	background: rgba(211, 179, 106, 0.18);
	color: #fff0bb;
}

.vs-nav-action:active,
.vs-menu-button:active,
.vs-menu-close:active {
	transform: translateY(1px);
}

.vs-menu-button,
.vs-menu-close {
	min-height: 44px;
	border: 1px solid rgba(211, 179, 106, 0.42);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.04);
	color: #f0e6d2;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.vs-menu-button {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 0 11px;
}

.vs-menu-button > span,
.vs-menu-button > span::before,
.vs-menu-button > span::after {
	display: block;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.vs-menu-button > span {
	position: relative;
}

.vs-menu-button > span::before,
.vs-menu-button > span::after {
	content: "";
	position: absolute;
	left: 0;
}

.vs-menu-button > span::before { top: -5px; }
.vs-menu-button > span::after { top: 5px; }

.vs-nav-drawer[hidden] {
	display: none !important;
}

.vs-nav-drawer {
	position: fixed;
	inset: 0;
	z-index: 110;
	display: grid;
	grid-template-columns: minmax(0, 1fr) min(390px, calc(100vw - 44px));
}

.vs-nav-backdrop {
	grid-column: 1 / -1;
	grid-row: 1;
	background: rgba(5, 4, 8, 0.74);
}

.vs-nav-panel {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	height: 100dvh;
	padding: 18px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-left: 1px solid rgba(211, 179, 106, 0.34);
	background: #0d0b12;
	box-shadow: -18px 0 48px rgba(0, 0, 0, 0.42);
	color: #f0e6d2;
}

.vs-nav-panel-head {
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(211, 179, 106, 0.22);
}

.vs-nav-panel-head h2 {
	margin: 0;
	color: #f0e6d2;
	font-family: Alagard, "Cinzel", Georgia, serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.1;
}

.vs-menu-close {
	padding: 0 12px;
}

.vs-mobile-links,
.vs-mobile-secondary {
	display: grid;
}

.vs-mobile-links {
	padding: 14px 0;
	gap: 4px;
}

.vs-mobile-link {
	min-height: 48px;
	padding: 0 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-left: 3px solid transparent;
	border-radius: 4px;
	color: #ded4e3;
	font-size: 16px;
	font-weight: 600;
}

.vs-mobile-link:hover {
	background: rgba(255, 255, 255, 0.04);
	color: #fff0bb;
}

.vs-mobile-link[aria-current="page"] {
	border-left-color: #d3b36a;
	background: rgba(211, 179, 106, 0.09);
	color: #f3d590;
}

.vs-mobile-secondary {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 12px;
	padding: 14px 0;
	border-top: 1px solid rgba(211, 179, 106, 0.16);
}

.vs-mobile-secondary-link {
	min-height: 44px;
	display: flex;
	align-items: center;
	color: #aaa0b1;
	font-size: 13px;
	font-weight: 600;
}

.vs-mobile-secondary-link[aria-current="page"] {
	color: #f3d590;
}

.vs-nav-action-mobile {
	width: 100%;
	min-height: 48px;
	margin-top: 10px;
}

.vs-site-nav a:focus-visible,
.vs-site-nav button:focus-visible,
.vs-site-footer a:focus-visible {
	outline: 3px solid #f3d590;
	outline-offset: 3px;
}

.vs-site-footer {
	position: relative;
	z-index: 1;
	width: min(1280px, calc(100% - 36px));
	margin: 52px auto 0;
	padding: 24px 0 30px;
	border-top: 1px solid rgba(211, 179, 106, 0.2);
	color: #b8adbf;
	font-family: "Instrument Sans", InstrumentSans, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vs-site-footer-inner {
	display: grid;
	grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
	align-items: start;
	gap: 28px;
}

.vs-site-footer-identity {
	display: grid;
	gap: 8px;
}

.vs-site-footer-brand img {
	display: block;
	width: 132px;
	height: auto;
	opacity: 0.84;
}

.vs-site-footer-note {
	margin: 0;
	max-width: 34ch;
	color: #958b9c;
	font-size: 12px;
	line-height: 1.5;
}

.vs-site-footer-links {
	display: grid;
	gap: 10px;
}

.vs-site-footer-links nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 4px 18px;
}

.vs-footer-link {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	color: #b8adbf;
	font-size: 12px;
	font-weight: 600;
}

.vs-footer-link:hover,
.vs-footer-link[aria-current="page"] {
	color: #f3d590;
}

.vs-footer-link-secondary {
	color: #8e8495;
}

@media (max-width: 1239px) {
	.vs-nav-status { display: none; }
}

@media (max-width: 1040px) and (min-width: 960px) {
	.vs-site-nav-inner {
		padding-inline: 18px;
		gap: 12px;
	}

	.vs-site-brand img { width: 130px; }
	.vs-desktop-links { gap: 2px; }
	.vs-nav-link { padding-inline: 5px; font-size: 12px; }
	.vs-nav-action { padding-inline: 10px; }
}

@media (max-width: 959px) {
	:root { --vs-nav-height: 64px; }

	.vs-site-nav-inner {
		grid-template-columns: auto 1fr;
		padding-inline: 16px;
		gap: 12px;
	}

	.vs-site-brand img { width: 132px; }
	.vs-desktop-links,
	.vs-nav-action-desktop { display: none; }
	.vs-nav-status { display: inline-flex; }
	.vs-menu-button { display: inline-flex; }

	.vs-site-footer-inner {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.vs-site-footer-links nav {
		justify-content: flex-start;
	}
}

@media (max-width: 520px) {
	.vs-site-nav-inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-rows: var(--vs-nav-height) auto;
		column-gap: 12px;
		row-gap: 0;
		padding-bottom: 8px;
	}

	.vs-site-brand {
		grid-column: 1;
		grid-row: 1;
	}

	.vs-nav-tools { display: contents; }

	.vs-nav-status {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: 100%;
		justify-self: center;
	}

	.vs-menu-button {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}
}

@media (max-width: 420px) {
	.vs-nav-panel { padding: 14px; }
	.vs-mobile-secondary { grid-template-columns: 1fr; }
	.vs-site-footer { width: min(100% - 28px, 1280px); }
}

@media (prefers-reduced-motion: no-preference) {
	.vs-nav-panel {
		animation: vs-nav-enter 180ms cubic-bezier(0.16, 1, 0.3, 1);
	}

	@keyframes vs-nav-enter {
		from { opacity: 0; transform: translateX(18px); }
		to { opacity: 1; transform: translateX(0); }
	}
}

@media (prefers-reduced-motion: reduce) {
	.vs-site-nav *,
	.vs-site-footer * {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
