/*
 * Mobile and tablet side-panel menu (volt-drawer.php). Loaded with media="(max-width: 1024px)".
 *
 * The open animation is one sequence: the panel slides in, a blue signal trace draws down its left
 * edge, and each item's pad lights up and its label slides in as the trace reaches it. Closing is
 * a quick slide out with no stagger.
 */

.vd {
	--vd-ink: #0c1a24;
	--vd-ink-2: #13232f;
	--vd-line: #2a3c49;
	--vd-text: #e6eef3;
	--vd-muted: #8fa3b1;
	--vd-soft: #b9c7d1;
	--vd-blue: #00adef;
	--vd-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--vd-step: 70ms;
	--vd-gutter: 24px;
	--vd-pad: 14px;

	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--vd-text);
	font-family: "Inter", system-ui, sans-serif;
	overflow: hidden;
}
.vd[open] {
	display: block;
}
.vd::backdrop {
	background: transparent;
}
.vd *,
.vd *::before,
.vd *::after {
	box-sizing: border-box;
}
html.vd-lock {
	overflow: hidden;
}

/* JKit's own off-canvas menu is replaced by this panel at these widths. */
.jkit-nav-menu .jkit-menu-wrapper {
	display: none !important;
}

/* ---------- Scrim and panel ---------- */
.vd-scrim {
	position: absolute;
	inset: 0;
	background: rgba(12, 26, 36, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.vd-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(100%, 440px);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	background:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 24px 24px,
		var(--vd-ink);
	box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
	transform: translateX(100%);
	transition: transform 0.34s cubic-bezier(0.4, 0, 1, 1);
}
.vd.is-open .vd-scrim {
	opacity: 1;
}
.vd.is-open .vd-panel {
	transform: none;
	transition: transform 0.55s var(--vd-ease);
}

/* ---------- Top bar ---------- */
.vd-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px var(--vd-gutter);
	border-bottom: 1px solid var(--vd-line);
}
.vd .vd-home {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: "Instrument Sans", "Instrument Sans Fallback", "Inter", sans-serif;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--vd-text);
	text-decoration: none;
}
.vd-home img {
	display: block;
	width: auto;
	height: 44px;
}
.vd .vd-x {
	position: relative;
	flex: none;
	width: 48px;
	height: 48px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--vd-line);
	border-radius: 0;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}
.vd .vd-x:is(:hover, :focus-visible) {
	background: var(--vd-ink-2);
	border-color: var(--vd-blue);
}
.vd-x span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 2px;
	margin: -1px 0 0 -10px;
	background: var(--vd-text);
	transition: transform 0.4s var(--vd-ease) 0.15s;
}
.vd-x span:first-child {
	transform: translateY(-4px);
}
.vd-x span:last-child {
	transform: translateY(4px);
}
.vd.is-open .vd-x span:first-child {
	transform: rotate(45deg);
}
.vd.is-open .vd-x span:last-child {
	transform: rotate(-45deg);
}

/* ---------- Navigation and signal trace ---------- */
.vd-nav {
	position: relative;
	padding: 20px var(--vd-gutter) 24px;
}
/* dim board track the signal runs along */
.vd-nav::before,
.vd-trace {
	content: "";
	position: absolute;
	top: 36px;
	bottom: 56px;
	left: calc(var(--vd-gutter) + var(--vd-pad) / 2 - 1px);
	width: 2px;
}
.vd-nav::before {
	background: var(--vd-line);
}
.vd-trace {
	background: var(--vd-blue);
	box-shadow: 0 0 10px rgba(0, 173, 239, 0.55);
	transform: scaleY(0);
	transform-origin: top;
}
.vd.is-open .vd-trace {
	transform: scaleY(1);
	transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}

.vd-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.vd-item {
	position: relative;
	padding-left: calc(var(--vd-pad) + 20px);
}
.vd-pad {
	position: absolute;
	top: 25px;
	left: 0;
	width: var(--vd-pad);
	height: var(--vd-pad);
	background: var(--vd-ink);
	border: 2px solid var(--vd-line);
	transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.vd.is-open .vd-pad {
	border-color: var(--vd-blue);
	box-shadow: 0 0 0 4px rgba(0, 173, 239, 0.12);
	transition-delay: calc(0.28s + var(--i) * var(--vd-step));
}
.vd-item.is-here .vd-pad {
	background: var(--vd-blue);
}

.vd-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
}
.vd .vd-link {
	padding: 4px 0;
	font-family: "Instrument Sans", "Instrument Sans Fallback", "Inter", sans-serif;
	font-size: clamp(1.75rem, 1.45rem + 1.4vw, 2.125rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--vd-text);
	text-decoration: none;
	opacity: 0;
	transform: translateX(20px);
	transition: opacity 0.2s, transform 0.2s, color 0.2s;
}
.vd.is-open .vd-link {
	opacity: 1;
	transform: none;
	transition: opacity 0.45s ease calc(0.26s + var(--i) * var(--vd-step)), transform 0.6s var(--vd-ease) calc(0.26s + var(--i) * var(--vd-step)), color 0.2s;
}
.vd .vd-link:is(:hover, :focus-visible),
.vd .vd-link[aria-current] {
	color: var(--vd-blue);
}

/* plus / minus for the sub-lists */
.vd .vd-more {
	position: relative;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--vd-line);
	border-radius: 0;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s, border-color 0.2s, background-color 0.2s;
}
.vd.is-open .vd-more {
	opacity: 1;
	transition: opacity 0.4s ease calc(0.36s + var(--i) * var(--vd-step)), border-color 0.2s, background-color 0.2s;
}
.vd .vd-more:is(:hover, :focus-visible) {
	border-color: var(--vd-blue);
}
.vd .vd-more[aria-expanded="true"] {
	background: var(--vd-blue);
	border-color: var(--vd-blue);
}
.vd-more span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	margin: -1px 0 0 -7px;
	background: var(--vd-text);
	transition: transform 0.35s var(--vd-ease), background-color 0.2s;
}
.vd-more span:last-child {
	transform: rotate(90deg);
}
.vd-more[aria-expanded="true"] span {
	background: var(--vd-ink);
}
.vd-more[aria-expanded="true"] span:last-child {
	transform: rotate(0deg);
}

/* sub-list: branches off the trace */
.vd-sub {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 0.4s var(--vd-ease), visibility 0s linear 0.4s;
}
.vd-item.is-expanded .vd-sub {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows 0.45s var(--vd-ease), visibility 0s;
}
.vd-sub > ul {
	min-height: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vd-sub li {
	position: relative;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.2s, transform 0.2s;
}
.vd-item.is-expanded .vd-sub li {
	opacity: 1;
	transform: none;
	transition: opacity 0.35s ease calc(0.05s + var(--j, 0) * 35ms), transform 0.45s var(--vd-ease) calc(0.05s + var(--j, 0) * 35ms);
}
.vd-sub li:first-child {
	margin-top: 2px;
}
.vd-sub li:last-child {
	margin-bottom: 14px;
}
/* stub from the trace to the label, ending in a via */
.vd-sub li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(-20px - var(--vd-pad) / 2);
	width: calc(20px + var(--vd-pad) / 2 - 6px);
	height: 1px;
	background: var(--vd-line);
	transition: background-color 0.2s;
}
.vd-sub li::after {
	content: "";
	position: absolute;
	top: calc(50% - 3px);
	left: -7px;
	width: 7px;
	height: 7px;
	border: 1px solid var(--vd-line);
	border-radius: 50%;
	transition: border-color 0.2s, background-color 0.2s;
}
.vd .vd-sub a {
	display: block;
	padding: 10px 0 10px 12px;
	font-size: 1rem;
	line-height: 1.35;
	color: var(--vd-soft);
	text-decoration: none;
	transition: color 0.2s;
}
.vd .vd-sub a:is(:hover, :focus-visible),
.vd .vd-sub a[aria-current] {
	color: var(--vd-text);
}
.vd-sub li:is(:hover, :focus-within)::before,
.vd-sub li:has(a[aria-current])::before {
	background: var(--vd-blue);
}
.vd-sub li:is(:hover, :focus-within)::after,
.vd-sub li:has(a[aria-current])::after {
	border-color: var(--vd-blue);
	background: var(--vd-blue);
}
.vd .vd-all a {
	font-weight: 600;
	color: var(--vd-blue);
}

/* ---------- Footer actions ---------- */
.vd-foot {
	margin-top: auto;
	padding: 20px var(--vd-gutter) calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--vd-line);
	background: rgba(12, 26, 36, 0.92);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.2s, transform 0.2s;
}
.vd.is-open .vd-foot {
	opacity: 1;
	transform: none;
	transition: opacity 0.45s ease calc(0.32s + var(--i) * var(--vd-step)), transform 0.6s var(--vd-ease) calc(0.32s + var(--i) * var(--vd-step));
}
.vd .vd-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 14px 20px;
	background: var(--vd-blue);
	font-family: "Instrument Sans", "Instrument Sans Fallback", "Inter", sans-serif;
	font-size: 1.0625rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s;
}
.vd .vd-cta:is(:hover, :focus-visible) {
	background: #fff;
	color: var(--vd-ink);
}
.vd-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 10px;
}
.vd .vd-pair a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	border: 1px solid var(--vd-line);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--vd-text);
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s;
}
.vd .vd-pair a:is(:hover, :focus-visible) {
	border-color: var(--vd-blue);
	background: var(--vd-ink-2);
	color: var(--vd-text);
}
.vd-pair svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--vd-blue);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.vd-hours {
	display: flex;
	gap: 10px;
	margin: 16px 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--vd-muted);
}
.vd-dot {
	flex: none;
	width: 8px;
	height: 8px;
	margin-top: 6px;
	background: var(--vd-blue);
}

.vd :focus-visible {
	outline: 2px solid var(--vd-blue);
	outline-offset: 3px;
}

/* ---------- Reduced motion: fade only ---------- */
@media (prefers-reduced-motion: reduce) {
	.vd *,
	.vd.is-open * {
		transition-duration: 0.01s !important;
		transition-delay: 0s !important;
	}
	.vd-panel,
	.vd.is-open .vd-panel {
		transform: none;
		opacity: 0;
		transition: opacity 0.15s !important;
	}
	.vd.is-open .vd-panel {
		opacity: 1;
	}
}
