/**
 * Primary header (#Header) + category row (.PageMenu).
 * Scoped under .header so utilities do not leak across the admin or legacy pages.
 */

.header #Header.header-shell {
	background: rgba(2, 6, 23, 0.98);
	color: #e2e8f0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header .header-inner {
	box-sizing: border-box;
	max-width: 1536px;
	margin-left: auto;
	margin-right: auto;
	padding: 1.25rem 1rem;
}

@media (min-width: 1024px) {
	.header .header-inner {
		padding-top: 1.75rem;
		padding-bottom: 1.75rem;
	}
}

.header .header-grid {
	display: grid;
	align-items: center;
	gap: 1.25rem;
}

@media (min-width: 1024px) {
	.header .header-grid.header-grid-3col {
		grid-template-columns: 1fr auto 1fr;
	}
}

@media (max-width: 1023px) {
	.header .header-grid.header-grid-3col {
		grid-template-columns: 1fr;
	}
}

.header .header-social-column,
.header .header-logo-column,
.header .header-search-column {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.header .header-social-column {
	order: 2;
}

.header .header-logo-column {
	order: 1;
}

.header .header-search-column {
	order: 3;
}

@media (min-width: 1024px) {
	.header .header-social-column {
		order: 1;
		justify-content: flex-start;
	}

	.header .header-logo-column {
		order: 2;
		justify-content: center;
	}

	.header .header-search-column {
		order: 3;
		justify-content: flex-end;
	}
}

.header .header-logo {
	width: 100%;
	max-width: 22.5rem;
}

@media (min-width: 1024px) {
	.header .header-logo {
		max-width: 26.25rem;
	}
}

.header .header-logo .wrapper {
	display: block;
}

.header .header-logo-img {
	display: block;
	width: 100%;
	max-width: 26.25rem;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

/* Secondary category strip */
.header .page-menu-shell {
	background: #f1f5f9;
	color: #334155;
	border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header .page-menu-shell.page-menu-pending {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.header .page-menu-shell:not(.page-menu-pending) {
	opacity: 1;
	pointer-events: auto;
}

.header .page-menu-inner {
	box-sizing: border-box;
	max-width: 1536px;
	margin-left: auto;
	margin-right: auto;
	padding: 0.5rem 1rem;
}

.header .page-menu-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
}

.header .page-menu-content {
	flex: 1 1 auto;
	min-width: 0;
}
