/**
 * Edge Drawer Menu — enqueued by inc/edge-menu-settings.php.
 * Brand tokens mirror the gps-diagency-v4 theme. The accent color is
 * overridden per-instance via inline custom properties on .edrw-wrap so it
 * can be changed from Appearance → Edge Menu without editing this file.
 */

.edrw-wrap {
	--edrw-rail-bg: #161320;
	--edrw-rail-text: #FBF8F3;
	--edrw-rail-accent: #7C3AED;
	--edrw-rail-w: 36px;
	--edrw-tab-gap: 3px;

	--edrw-drawer-w: 340px;
	--edrw-drawer-bg: #FBF8F3;
	--edrw-drawer-text: #161320;
	--edrw-drawer-hover-color: #7C3AED;
	--edrw-logo-color: #7C3AED;
	--edrw-gold: #FFC857;

	--edrw-radius: 10px;
	--edrw-header-offset: 0px;
	--edrw-font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
	--edrw-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

	font-family: var(--edrw-font-body);
}

.edrw-wrap *, .edrw-wrap *::before, .edrw-wrap *::after { box-sizing: border-box; }
.edrw-wrap ul { list-style: none; margin: 0; padding: 0; }
.edrw-wrap a { text-decoration: none; }

/* ---------- Left edge rail ---------- */
.edrw-rail {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: var(--edrw-rail-w);
	z-index: 9050;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding-top: 220px;
	gap: var(--edrw-tab-gap);
	pointer-events: none;
}

.edrw-tab {
	pointer-events: auto;
	background: var(--edrw-rail-bg);
	color: var(--edrw-rail-text);
	border: none;
	cursor: pointer;
	font-family: var(--edrw-font-display);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 16px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .15s ease, color .15s ease;
}
.edrw-tab:hover { background: var(--edrw-rail-accent); }

.edrw-tab-menu { background: var(--edrw-gold); color: var(--edrw-rail-bg); }
.edrw-tab-menu:hover { background: var(--edrw-rail-accent); color: var(--edrw-rail-text); }

.edrw-tab span {
	display: inline-block;
	transform: rotate(180deg);
	writing-mode: vertical-rl;
	white-space: nowrap;
}

/* ---------- Outside-click catcher (transparent, no dimming) ---------- */
.edrw-overlay {
	position: fixed;
	inset: 0;
	background: transparent;
	opacity: 0;
	pointer-events: none;
	z-index: 9055;
}
.edrw-wrap.is-open .edrw-overlay { pointer-events: auto; }

/* ---------- Drawer ---------- */
.edrw-drawer {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: var(--edrw-drawer-w);
	max-width: 90vw;
	background: var(--edrw-drawer-bg);
	border-right: 2px solid var(--edrw-rail-bg);
	box-shadow: 8px 0 0 rgba(124, 58, 237, .18);
	transform: translateX(-100%);
	transition: transform .28s ease;
	z-index: 9065;
	overflow-y: auto;
	padding: 26px 30px 34px;
}
.edrw-wrap.is-open .edrw-drawer { transform: translateX(0); }

.edrw-close {
	position: absolute;
	top: 18px;
	right: 18px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #9a96a8;
	cursor: pointer;
	padding: 4px 8px;
}
.edrw-close:hover { color: var(--edrw-rail-bg); }

.edrw-logo {
	font-family: var(--edrw-font-display);
	font-weight: 800;
	font-size: 21px;
	color: var(--edrw-logo-color);
	margin: 4px 0 30px;
	line-height: 1.15;
}
.edrw-logo img { max-width: 170px; height: auto; display: block; }

.edrw-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 26px; }
.edrw-link {
	display: block;
	padding: 10px 0;
	color: var(--edrw-drawer-text);
	font-family: var(--edrw-font-display);
	font-size: 16px;
	font-weight: 600;
	border-bottom: 1px solid rgba(22, 19, 32, .08);
	transition: color .15s ease, padding-left .15s ease;
}
.edrw-link:hover { color: var(--edrw-drawer-hover-color); padding-left: 6px; }

.edrw-blurb {
	font-size: 14px;
	line-height: 1.6;
	color: var(--edrw-drawer-text);
	opacity: .7;
	margin: 0 0 14px;
}
.edrw-email {
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	color: var(--edrw-drawer-hover-color);
	margin-bottom: 22px;
	word-break: break-all;
}
.edrw-email:hover { text-decoration: underline; }

.edrw-social { display: flex; gap: 12px; }
.edrw-social a {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--edrw-rail-bg);
	background: #ffffff;
	border: 2px solid var(--edrw-rail-bg);
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.edrw-social a:hover {
	background: var(--edrw-drawer-hover-color);
	color: #fff;
	transform: translate(-2px, -2px);
}

@media (max-width: 480px) {
	.edrw-rail { padding-top: 140px; }
	.edrw-drawer { width: 86vw; padding: 22px 22px 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.edrw-drawer, .edrw-overlay, .edrw-tab, .edrw-link, .edrw-social a { transition: none !important; }
}
