/**
 * OPENGRADIENT compact header (see inc/og-header.php).
 */

/* Left group: wordmark · Shop All · Collections · Sale · Search, on the one desktop row. */
@media (min-width: 1025px) {
	.whb-general-header .whb-col-left .wd-header-nav {
		margin-inline-start: 28px;
	}

	.whb-general-header .whb-col-left .wd-header-search {
		margin-inline-start: 2px;
	}
}

/* Collections mega panel: the six categories as columns, subcategories listed under each. */
.wd-nav-header > li.og-collections > .wd-dropdown-menu .wd-sub-menu {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 24px 32px;
}

.wd-nav-header > li.og-collections > .wd-dropdown-menu .wd-sub-menu > li {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

.wd-nav-header > li.og-collections > .wd-dropdown-menu .wd-sub-menu > li > a {
	font-weight: var(--cb-weight-bold);
	color: #111211;
}

/* Grace period after the pointer leaves "Collections" (set by js/og-nav.js) keeps the panel open on the way into it. */
.wd-nav-header.wd-offsets-calculated > li.og-collections.og-grace > .wd-dropdown {
	visibility: visible;
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

/* Escape hides the panel even while the pointer is still over the item (until the pointer leaves). */
.wd-nav-header > li.og-collections.og-suppress > .wd-dropdown {
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Visible keyboard focus in the header, the Collections panel and the mobile drawer. */
.whb-header .wd-nav-header > li > a:focus-visible,
.whb-header .wd-dropdown a:focus-visible,
.whb-header .wd-tools-element > a:focus-visible,
.whb-header .og-text-logo:focus-visible,
.whb-header .wd-header-mobile-nav > a:focus-visible {
	outline: 2px solid #111211;
	outline-offset: 3px;
	border-radius: 4px;
}

/* Mobile drawer links and expand/Back controls: ring drawn inside the row so the drawer edge cannot clip it. */
.mobile-nav a:focus-visible,
.mobile-nav .wd-nav-opener:focus-visible,
.mobile-nav input:focus-visible {
	outline: 2px solid #111211;
	outline-offset: -3px;
}
