/* =====================================================
   Mobile HeaderX Widget — self-contained styles
   Prefix: .mhx-  (no overlap with HeaderX .hx- classes)
   ===================================================== */

/* --------------------------------------------------
   Root wrapper — fixed bar at top
   -------------------------------------------------- */
.mhx-wrap {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99998;
	background-color: var(--mhx-bg, #000000);
	transition: transform var(--mhx-duration, 350ms) ease;
	will-change: transform;
}

/* Safe-area notch fill */
.mhx-wrap::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: env(safe-area-inset-top, 0px);
	background-color: var(--mhx-bg, #000000);
	pointer-events: none;
	z-index: 99999;
}

/* Scroll-hide behaviour */
.mhx-wrap.mhx-hidden {
	transform: translateY(-100%);
}

/* Keep visible while panel is open */
.mhx-wrap.mhx-open {
	transform: translateY(0) !important;
}

/* --------------------------------------------------
   Inner bar — flex column, auto height (NOT fullscreen)
   -------------------------------------------------- */
.mhx-inner {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	width: 100%;
	background-color: var(--mhx-bg, #000000);
	padding: 3% 5%;
	box-sizing: border-box;
	overflow: visible;
}

/* --------------------------------------------------
   Row / col layout (two-column, space-between)
   -------------------------------------------------- */
.mhx-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
}

.mhx-col {
	box-sizing: border-box;
}

.mhx-col-left {
	flex: 0 0 20%;
	max-width: 20%;
}

.mhx-col-right {
	flex: 0 0 70%;
	max-width: 70%;
	text-align: right;
}

/* --------------------------------------------------
   Menu trigger button
   -------------------------------------------------- */
.mhx-menu-btn {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.mhx-menu-label {
	display: inline-block;
	font-size: 22px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* --------------------------------------------------
   Logo — background bar (text fallback + image)
   -------------------------------------------------- */
.mhx-logo-text {
	display: inline-block;
	font-size: clamp(56px, 11vw, 130px);
	font-weight: 700;
	line-height: 0.9;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.mhx-logo-img {
	display: inline-block;
	width: 100%;
	height: auto;
	vertical-align: top;
}

.mhx-logo-placeholder {
	display: inline-block;
	font-size: 14px;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.55);
	border: 1px dashed rgba(255, 255, 255, 0.45);
	padding: 6px 10px;
}

/* --------------------------------------------------
   Offcanvas panel — fullscreen overlay
   -------------------------------------------------- */
.mhx-panel {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100dvh;
	z-index: 2147483000;
	padding-left: 5%;
	padding-right: 5%;
	padding-top: max(16px, env(safe-area-inset-top, 0px));
	padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
	background-color: var(--mhx-panel-bg, var(--mhx-bg, #000000));
	opacity: 0;
	pointer-events: none;
	transform: translateY(-100%);
	transition:
		transform var(--mhx-duration, 350ms) ease,
		opacity   var(--mhx-duration, 350ms) ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}

.mhx-wrap.mhx-open .mhx-panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

/* --------------------------------------------------
   Panel inner layout
   -------------------------------------------------- */
.mhx-panel-inner {
	display: block;
	min-height: 100%;
}

/* Top row inside panel: close btn left, logos right */
.mhx-panel-top {
	margin-bottom: 48px;
}

/* Close button */
.mhx-close-btn {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	text-transform: uppercase;
	line-height: 1;
}

/* Logo wrap inside panel */
.mhx-panel-logo-wrap {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
}

/* --------------------------------------------------
   Panel navigation
   -------------------------------------------------- */
.mhx-panel-nav {
	margin-top: 12px;
}

.mhx-panel-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
}

.mhx-panel-item {
	display: block;
	margin: 0 0 14px;
}

.mhx-panel-item:last-child {
	margin-bottom: 0;
}

.mhx-panel-link {
	display: inline-block;
	text-decoration: none;
	font-size: clamp(18px, 5.8vw, 40px);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.mhx-panel-link:focus-visible {
	outline: 1px solid rgba(255, 255, 255, 0.6);
	outline-offset: 4px;
}

/* --------------------------------------------------
   Body lock — prevent scroll while panel is open
   -------------------------------------------------- */
body.mhx-lock {
	overflow: hidden;
}
