/**
 * Mobile bar: black bar with smaller logo + hamburger. Visible only below 768px.
 * Desktop pill nav (.qd-nav) is hidden on the same breakpoint.
 */
/* Mobile bar: hidden on desktop */
.qd-mobile-bar {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10000;
	background: #1C1C1E;
	color: #F5F5F7;
	box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.25);
}
.qd-mobile-bar__inner {
	position: relative;
	z-index: 10002;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
	min-height: 40px;
	padding: 0 1rem 0 0.75rem;
	padding-left: max(0.75rem, env(safe-area-inset-left));
	padding-right: max(1rem, env(safe-area-inset-right));
	padding-top: max(0, env(safe-area-inset-top));
	box-sizing: border-box;
}
.qd-mobile-bar__logo {
	flex: 0 0 auto;
}
.qd-mobile-bar__logo-link {
	display: block;
	line-height: 0;
	-webkit-tap-highlight-color: transparent;
}
.qd-mobile-bar__logo-link:focus,
.qd-mobile-bar__logo-link:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}
.qd-mobile-bar__logo-svg {
	display: block;
	width: 167px;
	height: 17.09px;
}
/* Hamburger: two-line SVG icon (button sized to match 40px bar) */
.qd-mobile-bar__hamburger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	margin: 0 -8px 0 0;
	border: none;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}
.qd-mobile-bar__hamburger:focus,
.qd-mobile-bar__hamburger:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}
.qd-mobile-bar__hamburger .qd-mobile-bar__burger-icon {
	display: block;
	width: 20px;
	height: 10px;
	margin: 0 auto;
}
.qd-mobile-bar__hamburger .qd-mobile-bar__close-icon {
	display: none;
	width: 15px;
	height: 15px;
	margin: 0 auto;
}
.qd-mobile-bar__hamburger[aria-expanded="true"] .qd-mobile-bar__burger-icon {
	display: none;
}
.qd-mobile-bar__hamburger[aria-expanded="true"] .qd-mobile-bar__close-icon {
	display: block;
}
/* Drawer overlay */
.qd-mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 10001;
	pointer-events: none;
	visibility: hidden;
}
.qd-mobile-drawer[hidden] {
	display: block !important;
}
.qd-mobile-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}
.qd-mobile-drawer.is-open .qd-mobile-drawer__backdrop {
	opacity: 1;
}
.qd-mobile-drawer.is-open .qd-mobile-drawer__panel {
	opacity: 1;
	transform: translateY(0);
}
.qd-mobile-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.2s ease;
}
/* Panel: 94% content width (3% each side), same as theme content */
.qd-mobile-drawer__panel {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #1C1C1E;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	overflow-y: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr auto;
	gap: 0 1rem;
	align-content: start;
	padding: 15vh 3% 40px;
	padding-left: max(3%, env(safe-area-inset-left));
	padding-right: max(3%, env(safe-area-inset-right));
	padding-bottom: max(10px, env(safe-area-inset-bottom));
	box-sizing: border-box;
}
.qd-mobile-drawer__content {
	grid-column: 1 / -1;
	position: relative;
}
.qd-mobile-drawer__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1rem;
	font-family: neue-haas-unica, sans-serif;
	color: #F5F5F7;
	font-size: 15px;
	letter-spacing: 0.15px;
}
.qd-mobile-drawer__col {
	position: relative;
	display: flex;
	flex-direction: column;
}
.qd-mobile-drawer__group {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.qd-mobile-drawer__group a {
	margin-top: -10px;
}
.qd-mobile-drawer__group a:first-of-type {
	margin-top: 0;
}
.qd-mobile-drawer__group .qd-mobile-drawer__heading {
	margin-bottom: 2px;
}
/* Job portal: same gap below Careers as About us below Holding (override -10px so gap = 2px) */
.qd-mobile-drawer__link--first {
	margin-top: 0 !important;
}
.qd-mobile-drawer__heading {
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.15px;
	color: #F5F5F7;
}
.qd-mobile-drawer__group a,
.qd-mobile-drawer__link {
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.15px;
	color: #F5F5F7;
	text-decoration: none;
}
.qd-mobile-drawer__link.qd-mobile-drawer__heading {
	font-weight: 700;
}
.qd-mobile-drawer__group a:hover,
.qd-mobile-drawer__link:hover {
	text-decoration: none;
	color: #F5F5F7;
	opacity: 0.85;
}
/* Contact and DE: independent placement at 35vh from viewport (class-based, not child-based) */
.qd-mobile-drawer__link--50vh {
	position: absolute;
	top: 35vh;
	left: 0;
	display: inline-block;
}
/* Address: smallest typographic style (theme preset), left-aligned with right column */
.qd-mobile-drawer__footer {
	margin: 0;
	margin-top: auto;
	padding-top: 1rem;
	font-family: neue-haas-unica, sans-serif;
	font-size: var(--wp--preset--font-size--smallest, 12px);
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0.02em;
	font-style: normal;
	color: #868686;
	text-align: left;
	grid-column: 2;
	align-self: end;
}
.qd-mobile-drawer__footer {
	grid-column: 2;
	justify-self: start;
	padding-bottom: 0;
}
/* Show mobile bar and hide pill nav on small viewports; hide cover logo so it doesn’t show under the bar when scrolling */
@media (max-width: 768px) {
	.qd-mobile-bar {
		display: block;
	}
	.qd-nav {
		display: none !important;
	}
	.wp-block-cover .qd-cover-logo,
	.wp-block-cover-image .qd-cover-logo {
		display: none !important;
	}
}
