.nw-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--wp--preset--color--nightweeds-background, #080808);
	border-bottom: 1px solid var(--wp--preset--color--nightweeds-border, #2a2a2a);
	color: var(--wp--preset--color--nightweeds-foreground, #f1f0e8);
}

.admin-bar .nw-site-header {
	top: 32px;
}

.nw-header-inner {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	width: min(calc(100% - 36px), 1280px);
	min-height: 78px;
	margin-inline: auto;
	gap: 24px;
	padding-block: 14px;
}

.nw-header-brand {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	gap: 12px;
	min-width: 0;
}

.nw-header-brand .wp-block-site-logo {
	flex: 0 0 auto;
	line-height: 0;
}

.nw-header-brand .wp-block-site-logo img {
	width: auto;
	max-width: 160px;
	max-height: 38px;
	object-fit: contain;
}

.nw-site-title-fallback {
	margin: 0;
	overflow-wrap: anywhere;
}

.nw-site-title-fallback a {
	color: var(--wp--preset--color--nightweeds-foreground, #f1f0e8);
	text-decoration: none;
}

.nw-header-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}

.nw-header-navigation .wp-block-navigation__container,
.nw-header-navigation .wp-block-page-list,
.nw-header-navigation .wp-block-navigation__responsive-container-content {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 16px 20px;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: 100%;
}

.nw-header-navigation .wp-block-navigation-item {
	width: auto;
	max-width: 100%;
}

.nw-header-navigation .wp-block-navigation-item__content,
.nw-header-navigation .wp-block-navigation__responsive-container-open,
.nw-header-navigation .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--nightweeds-foreground, #f1f0e8);
}

.nw-header-navigation .wp-block-navigation-item__content:hover,
.nw-header-navigation .wp-block-navigation-item__content:focus-visible,
.nw-header-navigation .current-menu-item > .wp-block-navigation-item__content,
.nw-header-navigation .current-menu-ancestor > .wp-block-navigation-item__content,
.nw-header-navigation .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--nightweeds-accent, #c8ff2e);
}

.nw-header-navigation .wp-block-navigation__responsive-container-open,
.nw-header-navigation .wp-block-navigation__responsive-container-close,
.nw-header-search .wp-block-search__button {
	box-sizing: border-box;
	min-width: 44px;
	min-height: 44px;
}

.nw-header-navigation .wp-block-navigation__responsive-container-open,
.nw-header-navigation .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	padding: 8px;
}

.nw-header-navigation .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--nightweeds-background, #080808);
	color: var(--wp--preset--color--nightweeds-foreground, #f1f0e8);
}

.nw-header-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 24px;
}

.nw-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 1 280px;
	min-width: 0;
	max-width: 100%;
	gap: 10px;
}

.nw-header-search {
	flex: 1 1 220px;
	max-width: 280px;
	min-width: 180px;
}

.nw-header-search .wp-block-search__inside-wrapper {
	box-sizing: border-box;
	display: flex;
	gap: 8px;
	max-width: 100%;
}

.nw-header-search .wp-block-search__input {
	min-width: 0;
	color: var(--wp--preset--color--nightweeds-foreground, #f1f0e8);
	background: #111;
	border: 1px solid var(--wp--preset--color--nightweeds-border, #2a2a2a);
	border-radius: 4px;
}

.nw-header-search .wp-block-search__button {
	color: var(--wp--preset--color--nightweeds-background, #080808);
	background: var(--wp--preset--color--nightweeds-accent, #c8ff2e);
	border: 1px solid var(--wp--preset--color--nightweeds-accent, #c8ff2e);
	border-radius: 4px;
}

.nw-site-header :focus-visible {
	outline: 2px solid var(--wp--preset--color--nightweeds-accent, #c8ff2e);
	outline-offset: 3px;
}

@media (max-width: 782px) {
	.admin-bar .nw-site-header {
		top: 46px;
	}
}

@media (max-width: 720px) {
	.nw-header-inner {
		width: min(calc(100% - 24px), 1280px);
		gap: 12px;
	}

	.nw-header-navigation {
		flex: 0 0 auto;
		order: 3;
	}

	.nw-header-actions {
		flex: 1 1 140px;
	}

	.nw-header-search {
		flex: 1 1 140px;
		min-width: 0;
		max-width: none;
	}
}

@media (max-width: 480px) {
	.nw-header-inner {
		flex-wrap: wrap;
		min-height: 78px;
		padding-block: 10px;
	}

	.nw-header-brand {
		flex: 1 1 calc(100% - 56px);
	}

	.nw-header-search {
		flex: 1 1 100%;
		order: 4;
	}

	.nw-header-actions {
		flex: 1 1 100%;
		order: 4;
	}
}

@media (max-width: 900px) {
	.nw-header-inner {
		width: 100%;
		min-height: 64px;
		gap: 10px;
		padding: 10px 16px;
		flex-wrap: nowrap;
	}

	.nw-header-brand {
		flex: 1 1 auto;
		gap: 8px;
		min-width: 0;
		max-width: 100%;
		overflow: visible;
	}

	.nw-site-title-fallback {
		min-width: 0;
		max-width: 100%;
		margin: 0;
		padding-inline-end: 2px;
		font-size: clamp(1.52rem, 7.35vw, 2.15rem);
		line-height: 1;
		white-space: nowrap;
		word-break: normal;
		overflow-wrap: normal;
		overflow: visible;
	}

	.nw-site-title-fallback a {
		display: block;
		max-width: none;
		white-space: nowrap;
		word-break: normal;
		overflow-wrap: normal;
		overflow: visible;
	}

	.nw-header-brand .wp-block-site-logo img {
		max-width: 132px;
		max-height: 34px;
	}

	.nw-header-navigation {
		flex: 0 0 auto;
		order: initial;
		max-width: 44px;
	}

	.nw-site-header .nw-header-navigation .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.nw-header-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content {
		display: none;
	}

	.nw-header-actions {
		flex: 0 0 auto;
		order: initial;
		width: 0;
		min-width: 0;
		max-width: 0;
		gap: 0;
		overflow: hidden;
	}

	.nw-header-search {
		display: none;
	}

	.nw-header-navigation .wp-block-navigation__responsive-container-open,
	.nw-header-navigation .wp-block-navigation__responsive-container-close,
	.nw-site-header .wc-block-mini-cart__button {
		box-sizing: border-box;
		width: 42px;
		min-width: 42px;
		height: 42px;
		min-height: 42px;
		padding: 8px;
	}

	.nw-site-header .wc-block-mini-cart {
		flex: 0 0 auto;
		margin: 0;
	}

	.nw-site-header .wc-block-mini-cart__icon {
		width: 24px;
		height: 24px;
	}

	.nw-site-header .wc-block-mini-cart__badge {
		min-width: 1.2em;
		font-size: 0.68rem;
	}

}
