.pn-global-header-shell,
.pn-global-header-shell * {
	box-sizing: border-box;
}

.pn-global-header-shell {
	background: transparent;
	padding: 10px 16px 8px;
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 99990;
}

body.admin-bar .pn-global-header-shell {
	top: 32px;
}

.pn-global-header {
	background:
		linear-gradient(105deg, rgba(18, 42, 113, .97), rgba(7, 23, 67, .98)),
		#071743;
	border: 1px solid rgba(103, 144, 255, .48);
	border-radius: 20px;
	box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
	margin: 0 auto;
	max-width: 1200px;
	overflow: visible;
	position: relative;
}

.pn-global-header__inner {
	align-items: center;
	display: flex;
	gap: 34px;
	justify-content: space-between;
	min-height: 70px;
	padding: 0 20px 0 24px;
}

.pn-global-header__logo {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
}

.pn-global-header__logo img {
	display: block;
	height: 58px;
	object-fit: contain;
	object-position: left center;
	width: 142px;
}

.pn-global-header__nav {
	align-items: center;
	display: flex;
	gap: clamp(15px, 1.8vw, 27px);
}

.pn-global-header__nav > a {
	color: #f2f6ff;
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 750;
	line-height: 1;
	position: relative;
	text-decoration: none;
	transition: color .2s ease, transform .2s ease;
	white-space: nowrap;
}

.pn-global-header__nav > a:not(.pn-global-header__join)::after {
	background: linear-gradient(90deg, #4b83ff, #7b63ff);
	border-radius: 999px;
	bottom: -10px;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
	width: 100%;
}

.pn-global-header__nav > a:hover,
.pn-global-header__nav > a[aria-current="page"] {
	color: #a9c2ff;
}

.pn-global-header__nav > a:hover::after,
.pn-global-header__nav > a[aria-current="page"]::after {
	transform: scaleX(1);
}

.pn-global-header__nav > .pn-global-header__join {
	align-items: center;
	background: linear-gradient(115deg, #2f6ef4, #5f6df6);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(39, 107, 242, .3);
	color: #fff;
	display: inline-flex;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	transition: box-shadow .2s ease, transform .2s ease;
}

.pn-global-header__nav > .pn-global-header__join:hover {
	box-shadow: 0 15px 34px rgba(39, 107, 242, .42);
	color: #fff;
	transform: translateY(-2px);
}

.pn-global-header__toggle,
.pn-global-header__menu-button {
	display: none;
}

/* Hide the old per-page headers now replaced by the global component. */
#pod-network > .pn-topbar,
#pod-network > .pn-header,
#podpage > .phead,
#pod > .head,
body > #site-header,
body > .site-header {
	display: none !important;
}

/* Inner pages previously reserved space for a fixed header. */
#podpage .phero {
	padding-top: 105px !important;
}

@media (max-width: 900px) {
	.pn-global-header-shell {
		padding: 8px 10px 7px;
	}

	.pn-global-header {
		border-radius: 17px;
	}

	.pn-global-header__inner {
		min-height: 66px;
		padding: 0 15px 0 18px;
	}

	.pn-global-header__logo img {
		height: 54px;
		width: 132px;
	}

	.pn-global-header__menu-button {
		align-items: center;
		background: rgba(39, 107, 242, .2);
		border: 1px solid rgba(117, 155, 255, .3);
		border-radius: 11px;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		gap: 4px;
		height: 42px;
		justify-content: center;
		width: 42px;
	}

	.pn-global-header__menu-button span {
		background: #fff;
		border-radius: 999px;
		display: block;
		height: 2px;
		width: 18px;
	}

	.pn-global-header__nav {
		align-items: stretch;
		background: rgba(5, 18, 54, .98);
		border: 1px solid rgba(103, 144, 255, .35);
		border-radius: 16px;
		box-shadow: 0 24px 55px rgba(0, 0, 0, .36);
		display: none;
		gap: 0;
		left: 0;
		padding: 10px;
		position: absolute;
		right: 0;
		top: calc(100% + 8px);
	}

	.pn-global-header__nav > a {
		border-bottom: 1px solid rgba(124, 158, 231, .15);
		padding: 14px 13px;
	}

	.pn-global-header__nav > a::after {
		display: none;
	}

	.pn-global-header__nav > .pn-global-header__join {
		margin-top: 9px;
	}

	.pn-global-header__toggle:checked + .pn-global-header .pn-global-header__nav {
		display: grid;
	}

	#podpage .phero {
		padding-top: 78px !important;
	}
}

@media (max-width: 782px) {
	body.admin-bar .pn-global-header-shell {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pn-global-header-shell *,
	.pn-global-header-shell *::before,
	.pn-global-header-shell *::after {
		transition-duration: .01ms !important;
	}
}
