/* ============ GTR Side Menu ============ */

/* Fixed hamburger (auto-inject). Remove/override if you place it in header.php yourself. */
.gtr-hamburger-fixed {
	position: fixed;
	top: 74px;
	inset-inline-start: 16px;
	z-index: 9998;
}

/* Hamburger button */
.gtr-hamburger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.gtr-hamburger span {
	display: block;
	height: 2.5px;
	width: 24px;
	border-radius: 2px;
	background: #0d1b2a;
	transition: transform .3s ease, opacity .2s ease;
}

/* Backdrop */
.gtr-menu-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .35);
	opacity: 0;
	z-index: 9999;
	transition: opacity .3s ease;
}
.gtr-menu-backdrop.is-open { opacity: 1; }

/* Panel */
.gtr-side-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	inset-inline-end: 0; /* right by default; JS/inline var can flip */
	width: min(88vw, 420px);
	background: #ffffff;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	box-shadow: -18px 0 48px rgba(15, 23, 42, .12);
	transform: translateX(100%);
	transition: transform .32s cubic-bezier(.22, .61, .36, 1);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
/* Slide-from-left variant */
:root[style*="left"] .gtr-side-panel,
.gtr-side-panel[data-side="left"] {
	inset-inline-end: auto;
	inset-inline-start: 0;
	transform: translateX(-100%);
	box-shadow: 18px 0 48px rgba(15, 23, 42, .12);
}
.gtr-side-panel.is-open { transform: translateX(0); }

/* Header row */
.gtr-menu-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px 20px;
	border-bottom: 1px solid #f0f1f3;
}
.gtr-menu-logo { display: inline-flex; align-items: center; text-decoration: none; color: #0d1b2a; font-weight: 800; font-size: 22px; }
.gtr-menu-logo img { max-height: 40px; width: auto; }
.gtr-menu-logo-img { max-height: 44px; width: auto; display: block; }
.gtr-menu-close {
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	color: #5b6472;
	cursor: pointer;
	padding: 4px 8px;
}

/* Nav */
.gtr-menu-nav { padding: 14px 24px 8px; }
.gtr-menu-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0;
	text-decoration: none;
	color: #0d1b2a;
	font-size: 21px;
	font-weight: 700;
	border-bottom: 1px solid #f4f5f6;
	transition: color .15s ease, padding-inline-start .18s ease;
}
.gtr-menu-link:last-child { border-bottom: 0; }
.gtr-menu-link:hover { padding-inline-start: 6px; }
.gtr-menu-link--muted { color: #9aa2ad; font-weight: 600; }

.gtr-menu-label { display: inline-flex; align-items: center; gap: 12px; }
.gtr-menu-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .05em;
	color: #2f7d4f;
	background: #e6f6ec;
	padding: 4px 10px;
	border-radius: 999px;
}
.gtr-menu-caret { color: #c3c9d1; font-size: 22px; }

.gtr-menu-divider { height: 1px; background: #eef0f2; margin: 12px 0; }

/* Footer */
.gtr-menu-foot {
	margin-top: auto;
	padding: 26px 24px 34px;
	text-align: center;
	color: #b7bec7;
	font-size: 14px;
}

/* Open state: animate hamburger into an X */
body.gtr-menu-open .gtr-hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.gtr-menu-open .gtr-hamburger span:nth-child(2) { opacity: 0; }
body.gtr-menu-open .gtr-hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

body.gtr-menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.gtr-side-panel, .gtr-menu-backdrop, .gtr-hamburger span { transition: none; }
}
