/* Hamburger Nav Overlay — defaults mirror the widget's control defaults. */

.hno { display: flex; justify-content: flex-end; }

/* ── Hamburger button ───────────────────────── */
.hno .hno-toggle,
.hno .hno-toggle:hover,
.hno .hno-toggle:focus,
.hno .hno-toggle:active {
	background: #fff;
	border: 0;
	box-shadow: none;
	color: inherit;
}

.hno .hno-toggle {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
	margin: 0;
	padding: 8px;
	border-radius: 0;
	line-height: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.hno .hno-toggle:focus-visible { outline: 2px solid #0D95A5; outline-offset: 2px; }

.hno-bar {
	display: block;
	width: 22px;
	height: 1.5px;
	background: #14373D;
	border-radius: 2px;
	transition: width 0.3s ease;
}
.hno-bar-2 { width: 16px; }
.hno-toggle:hover .hno-bar-2 { width: 22px; }

/* ── Overlay ────────────────────────────────── */
.hno-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding-top: 56px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: rgba(20, 55, 61, 0.9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);

	/* visibility keeps closed links out of tab order and screen readers */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.38s;
}

.hno-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

/* ── Close button ───────────────────────────── */
.hno-overlay .hno-close,
.hno-overlay .hno-close:hover,
.hno-overlay .hno-close:focus,
.hno-overlay .hno-close:active {
	background: none;
	border: 0;
	box-shadow: none;
}

.hno-overlay .hno-close {
	position: absolute;
	top: 12px;
	right: 16px;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.18s;
	-webkit-tap-highlight-color: transparent;
}
.hno-overlay .hno-close:hover { opacity: 1; }
.hno-overlay .hno-close:focus-visible { opacity: 1; outline: 2px solid rgba(255, 255, 255, 0.5); }
.hno-close svg { display: block; width: 24px; height: 24px; }

/* ── Links ──────────────────────────────────── */
.hno-list { flex: 1; margin: 0; padding: 1.5rem 0 0; list-style: none; }

.hno-item {
	margin: 0;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Stagger works for any number of items (index set inline as --hno-i) */
.hno-overlay.is-open .hno-item {
	opacity: 1;
	transform: none;
	transition-delay: calc(0.08s + var(--hno-i, 0) * 0.06s);
}

.hno-overlay .hno-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 24px;
	font-family: Mulish, system-ui, sans-serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #fff;
	text-decoration: none;
	border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
	transition: color 0.18s;
}

.hno-overlay .hno-link:hover,
.hno-overlay .hno-link:focus-visible,
.hno-overlay .hno-link[aria-current="page"] {
	color: #C3C5C8;
	text-decoration: none;
}

.hno-overlay .hno-link:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: -2px; }

.hno-arrow {
	flex-shrink: 0;
	font-size: 18px;
	color: rgba(255, 255, 255, 0.3);
	transition: transform 0.2s, color 0.18s;
}
.hno-link:hover .hno-arrow,
.hno-link:focus-visible .hno-arrow { transform: translateX(4px); color: #C3C5C8; }

/* ── Scroll lock ────────────────────────────── */
body.hno-lock { overflow: hidden; }

/* ── Reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.hno-overlay, .hno-item, .hno-arrow, .hno-bar { transition: none !important; }
	.hno-item { transform: none; }
}

/* ── Editor placeholder ─────────────────────── */
.hno-empty { padding: 12px; font-size: 13px; text-align: center; border: 1px dashed #c3c5c8; }
