.nc-masthead {
	--nc-masthead-tint: rgb(79 91 73 / 36%);
	position: sticky;
	z-index: 10;
	top: var(--nc-space-1);
	height: 0;
	color: var(--nc-color-light);
	font-family: var(--nc-font-sans);
	text-shadow: 0 1px 2px #202c2175;
}

.admin-bar .nc-masthead {
	top: calc(32px + var(--nc-space-1));
}

.nc-masthead__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nc-space-3);
	padding-inline: var(--nc-gutter);
}

.nc-masthead__cluster {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(0.5rem, 1.2vw, 1.25rem);
	min-height: 3.5rem;
	padding: 0.25rem clamp(0.875rem, 1.55vw, 1.75rem);
}

.nc-masthead__cluster::before,
.nc-nav__account {
	border: 1px solid #f9f8ef1a;
	border-radius: var(--nc-radius-pill);
	background-color: var(--nc-color-deep);
}

.nc-masthead__cluster::before {
	position: absolute;
	inset: 0;
	content: "";
	pointer-events: none;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.nc-masthead__cluster::before,
	.nc-nav__account {
		background-color: var(--nc-masthead-tint);
		-webkit-backdrop-filter: blur(19px) brightness(0.89);
		backdrop-filter: blur(19px) brightness(0.89);
	}
}

.nc-masthead__brand,
.nc-masthead__toggle,
.nc-nav {
	position: relative;
}

.nc-masthead__brand {
	flex: none;
}

.nc-masthead__wordmark {
	font-size: 1.375rem;
	font-weight: 650;
	line-height: 1;
	letter-spacing: -0.045em;
}

.nc-masthead a,
.nc-masthead a:visited {
	color: inherit;
}

.nc-masthead a {
	text-decoration: none;
}

.nc-masthead a:focus-visible,
.nc-masthead summary:focus-visible,
.nc-masthead button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.nc-masthead__brand img {
	display: block;
	width: auto;
	max-width: 11rem;
	max-height: 2.5rem;
}

.nc-masthead__toggle[hidden],
.nc-nav[hidden] {
	display: none;
}

.nc-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nc-space-2);
	flex: 1;
	font-size: var(--nc-font-small);
	font-weight: 600;
}

.nc-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nc-nav__links {
	display: flex;
	gap: var(--nc-space-1);
}

.nc-nav__links > li {
	position: relative;
}

.nc-nav__links a,
.nc-nav__group summary {
	display: block;
	padding: 0.625rem var(--nc-space-2);
	border-radius: var(--nc-radius-small);
	transition: background-color var(--nc-duration) var(--nc-ease);
}

.nc-nav__account {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	min-height: 2.625rem;
	padding-inline: 1rem;
	font-size: var(--nc-font-small);
	font-weight: 600;
	transition: background-color var(--nc-duration) var(--nc-ease);
}

.nc-nav__group summary {
	cursor: pointer;
	list-style: none;
}

.nc-nav__group summary::-webkit-details-marker {
	display: none;
}

.nc-nav__links a:hover,
.nc-nav__group summary:hover,
.nc-nav__group[open] summary {
	background: var(--nc-color-highlight);
}

.nc-nav__account:hover {
	background-color: var(--nc-color-deep);
}

.nc-nav .nc-nav__submenu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 13rem;
	padding: var(--nc-space-1);
	border: 1px solid var(--nc-color-highlight);
	border-radius: var(--nc-radius-small);
	background: var(--nc-color-deep);
}

@media (max-width: 782px) {
	.admin-bar .nc-masthead {
		top: calc(46px + var(--nc-space-1));
	}
}

@media (max-width: 600px) {
	.admin-bar .nc-masthead {
		top: var(--nc-space-1);
	}
}

@media (max-width: 55rem) {
	.nc-masthead:not([data-enhanced]) {
		height: auto;
		background: var(--nc-color-deep);
	}

	.nc-masthead__bar {
		gap: var(--nc-space-1);
	}

	.nc-masthead__cluster {
		min-height: 3.25rem;
		padding-inline: 0.875rem 0.25rem;
	}

	.nc-masthead:not([data-enhanced]) .nc-masthead__cluster {
		flex-wrap: wrap;
	}

	.nc-masthead__wordmark {
		font-size: 1.25rem;
	}

	.nc-masthead__toggle {
		display: grid;
		place-items: center;
		min-width: 44px;
		min-height: 44px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: inherit;
		cursor: pointer;
	}

	.nc-masthead__toggle-icon::before,
	.nc-masthead__toggle-icon::after {
		content: "";
		display: block;
		width: 1rem;
		height: 2px;
		background: currentColor;
		transition: transform var(--nc-duration) var(--nc-ease);
	}

	.nc-masthead__toggle-icon::before {
		transform: translateY(-2px);
	}

	.nc-masthead__toggle-icon::after {
		transform: translateY(2px);
	}

	.nc-masthead__toggle[aria-expanded="true"] .nc-masthead__toggle-icon::before {
		transform: translateY(1px) rotate(45deg);
	}

	.nc-masthead__toggle[aria-expanded="true"] .nc-masthead__toggle-icon::after {
		transform: translateY(-1px) rotate(-45deg);
	}

	.nc-nav,
	.nc-nav__links {
		flex-direction: column;
		align-items: stretch;
	}

	.nc-nav {
		flex-basis: 100%;
		padding-block: var(--nc-space-1) var(--nc-space-2);
	}

	.nc-masthead[data-enhanced] .nc-nav {
		position: absolute;
		inset: calc(100% + 0.5rem) auto auto 0;
		width: min(26rem, calc(100vw - 2 * var(--nc-gutter) - 1rem));
		max-height: calc(100dvh - 8rem);
		overflow: auto;
		padding: var(--nc-space-2);
		border: 1px solid var(--nc-color-highlight);
		border-radius: var(--nc-radius-panel);
		background: var(--nc-color-deep);
	}

	.nc-nav .nc-nav__submenu {
		position: static;
		min-width: 0;
		border: 0;
		padding-inline-start: var(--nc-space-2);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nc-masthead *,
	.nc-masthead *::before,
	.nc-masthead *::after {
		transition: none;
	}
}
