/* ============================================================================
   Global nav — fixed hamburger button + full-screen overlay panel.
   Loaded on every page via functions.php.
   ============================================================================ */

:root {
	--monash-nav-bg: #FFFFEF;
	--monash-nav-fg: #006DAE;
	--monash-nav-accent: #5198C1;
}

/* ── Hamburger button ───────────────────────────────────────────────────── */
.monash-nav-toggle {
	position: fixed;
	top: 1.25rem;
	right: 1.25rem;
	z-index: 9999;
	width: 3.25rem;
	height: 3.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--monash-nav-bg);
	color: var(--monash-nav-fg);
	border: 0;
	border-radius: 999px;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.15);
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
	font: inherit;
}
.monash-nav-toggle:hover { transform: scale(1.05); box-shadow: 0 0.25rem 0.875rem rgba(0,0,0,0.2); }
.monash-nav-toggle:focus-visible { outline: 2px solid var(--monash-nav-accent); outline-offset: 3px; }

.monash-nav-toggle__bars {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	width: 1.375rem;
}
.monash-nav-toggle__bars span {
	display: block;
	height: 2px;
	width: 100%;
	background-color: currentColor;
	border-radius: 2px;
}

/* Hide the hamburger while the panel is open. */
body.monash-nav-open .monash-nav-toggle { opacity: 0; pointer-events: none; }

/* ── Overlay panel ──────────────────────────────────────────────────────── */
.monash-nav-panel {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: var(--monash-nav-bg);
	color: var(--monash-nav-fg);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity 0.22s ease-out, transform 0.22s ease-out;
	pointer-events: none;
	font-family: 'Albert Sans', system-ui, sans-serif;
}
.monash-nav-panel[hidden] { display: none; }
.monash-nav-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

body.monash-nav-open { overflow: hidden; }

/* ── Close button ───────────────────────────────────────────────────────── */
.monash-nav-close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	width: 3.25rem;
	height: 3.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: var(--monash-nav-fg);
	border: 0;
	cursor: pointer;
	padding: 0;
	border-radius: 999px;
}
.monash-nav-close:hover { background: rgba(0,109,174,0.08); }
.monash-nav-close:focus-visible { outline: 2px solid var(--monash-nav-accent); outline-offset: 3px; }

/* ── Menu list ──────────────────────────────────────────────────────────── */
.monash-nav-menu { width: 100%; padding: 4rem 1.5rem; }

.monash-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	text-align: center;
}
.monash-nav-list li { display: block; }
.monash-nav-list a {
	display: inline-block;
	font-size: clamp(1.75rem, 4vw + 1rem, 3.25rem);
	font-weight: 600;
	color: var(--monash-nav-fg);
	text-decoration: none;
	letter-spacing: -0.01em;
	line-height: 1.1;
	padding: 0.25rem 0.5rem;
	transition: color 0.15s ease-out;
}
.monash-nav-list a:hover,
.monash-nav-list a:focus-visible {
	color: var(--monash-nav-accent);
	outline: none;
}
.monash-nav-list .current-menu-item > a,
.monash-nav-list .current_page_item > a {
	color: var(--monash-nav-accent);
}

.monash-nav-empty-hint {
	margin-top: 2rem;
	font-size: 0.95rem;
	color: var(--monash-nav-accent);
	max-width: 28rem;
	line-height: 1.5;
}
