/* Pixel header and footer (brand book homepage design, with the AA fixes in REGISTER.md section 14). */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Header ---------- */

.elementor-location-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}
.pxhead {
	position: relative;
	background: #0B0E17;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-family: "Space Grotesk", sans-serif;
}
.pxhead__bar {
	max-width: 1400px;
	margin: 0 auto;
	padding: 16px 7vw;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.pxhead__logo {
	display: flex;
	flex: 0 0 auto;
	color: #fff;
}
.pxhead__logo-img {
	display: block;
	width: 130px;
	height: auto;
}
.pxhead__burger {
	display: none;
}
/* The kit's button style targets every <button>; these two are icon buttons, not CTAs. */
.pxhead button.pxnav__toggle,
.pxhead button.pxnav__toggle:hover,
.pxhead button.pxnav__toggle:focus,
.pxhead button.pxhead__burger,
.pxhead button.pxhead__burger:hover,
.pxhead button.pxhead__burger:focus {
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	color: #fff;
	font: inherit;
	letter-spacing: normal;
}
.pxhead button.pxnav__toggle:hover,
.pxhead button.pxhead__burger:hover {
	color: #50B4C3;
}

.pxnav__list,
.pxnav__grid,
.pxfoot__links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pxnav__list {
	display: flex;
	align-items: center;
	gap: 40px;
}
.pxnav__item {
	display: flex;
	align-items: center;
	gap: 4px;
}
/* .pxhead prefix: the kit's ".elementor-kit-4 a" link colour would otherwise win. */
.pxhead a.pxnav__link,
.pxhead a.pxhead__logo {
	color: #fff;
}
.pxhead a.pxnav__link:hover,
.pxhead a.pxnav__link[aria-current] {
	color: #50B4C3;
}
.pxnav__link {
	font-weight: 500;
	font-size: 15px;
	line-height: 1.2;
	color: #fff;
	padding: 10px 0;
	text-decoration: none;
}
.pxnav__link:hover,
.pxnav__link[aria-current] {
	color: #50B4C3;
}
.pxnav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
}
.pxnav__chev {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.15s;
}
.pxnav__item.is-open .pxnav__chev {
	transform: translateY(2px) rotate(225deg);
}

/* Desktop panels: full width under the bar. */
.pxnav__panel {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-top: 3px solid #E63241;
	box-shadow: 0 30px 60px -24px rgba(11, 14, 23, 0.35);
}
.pxnav__item.is-open > .pxnav__panel,
.pxhead:not(.is-js) .pxnav__item--panel:hover > .pxnav__panel,
.pxhead:not(.is-js) .pxnav__item--panel:focus-within > .pxnav__panel {
	display: block;
}
.pxnav__grid {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 7vw;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 28px;
}
.pxnav__grid--5 { grid-template-columns: repeat(5, 1fr); }
.pxnav__grid--3 { grid-template-columns: repeat(3, 1fr); }
.pxnav__sub {
	display: block;
	text-decoration: none;
}
.pxnav__num {
	display: block;
	font-family: "Space Mono", monospace;
	font-size: 11px;
	color: #C22530;
	margin-bottom: 8px;
}
.pxnav__title {
	display: block;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.3;
	color: #14171F;
}
.pxnav__desc {
	display: block;
	margin-top: 8px;
	font-family: "Hanken Grotesk", sans-serif;
	font-size: 13px;
	line-height: 1.55;
	color: #5A6270;
}
.pxnav__sub:hover .pxnav__title,
.pxnav__sub[aria-current] .pxnav__title {
	color: #C22530;
}
.pxnav__grid--cards .pxnav__sub {
	padding: 20px;
	border-radius: 12px;
	background: #F4F5F7;
	height: 100%;
}
.pxnav__grid--cards .pxnav__sub:hover {
	background: #EBEDF1;
}

/* Below 960px: burger and drawer, with Method and Proof as accordions. */
@media (max-width: 959px) {
	.pxhead__burger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-right: -10px;
		padding: 0;
		background: none;
		border: 0;
		color: #fff;
		cursor: pointer;
	}
	.pxhead__burger-bars,
	.pxhead__burger-bars::before,
	.pxhead__burger-bars::after {
		display: block;
		width: 22px;
		height: 2px;
		background: currentColor;
		transition: transform 0.15s, opacity 0.15s;
	}
	.pxhead__burger-bars { position: relative; }
	.pxhead__burger-bars::before,
	.pxhead__burger-bars::after {
		content: "";
		position: absolute;
		left: 0;
	}
	.pxhead__burger-bars::before { top: -7px; }
	.pxhead__burger-bars::after { top: 7px; }
	.is-drawer-open .pxhead__burger-bars { background: transparent; }
	.is-drawer-open .pxhead__burger-bars::before { transform: translateY(7px) rotate(45deg); }
	.is-drawer-open .pxhead__burger-bars::after { transform: translateY(-7px) rotate(-45deg); }

	.pxnav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
	}
	.pxhead.is-js .pxnav__list { display: none; }
	.pxhead.is-js.is-drawer-open .pxnav__list,
	.pxhead:not(.is-js) .pxnav__list { display: flex; }
	.pxnav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100vh - 72px);
		overflow-y: auto;
		padding: 8px 7vw 28px;
		background: #0B0E17;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}
	.pxnav__item {
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
	.pxnav__item:last-child { border-bottom: 0; }
	.pxnav__link {
		flex: 1;
		font-size: 16px;
		padding: 16px 0;
	}
	.pxnav__toggle,
	.pxhead button.pxnav__toggle,
	.pxhead button.pxnav__toggle:focus {
		width: 44px;
		height: 44px;
		margin-right: -10px;
		color: #E63241;
	}
	.pxnav__panel {
		position: static;
		flex-basis: 100%;
		background: none;
		border: 0;
		box-shadow: none;
	}
	.pxnav__grid,
	.pxnav__grid--5,
	.pxnav__grid--3 {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 0 0 10px 12px;
	}
	.pxnav__num,
	.pxnav__desc { display: none; }
	.pxnav__grid--cards .pxnav__sub,
	.pxnav__sub {
		padding: 8px 0;
		background: none;
		border-radius: 0;
	}
	.pxnav__title {
		font-family: "Hanken Grotesk", sans-serif;
		font-weight: 400;
		font-size: 14px;
		color: #AEB4C0;
	}
	.pxnav__sub:hover .pxnav__title,
	.pxnav__sub[aria-current] .pxnav__title { color: #fff; }
	.pxhead a.pxnav__link[aria-current] { color: #50B4C3; }
}

/* ---------- Footer ---------- */

.pxfoot.e-con {
	background: #080A11;
	color: #8A91A0;
	padding: 80px 7vw 40px;
}
body .pxfoot .e-con {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
}
body .pxfoot .pxfoot__inner.e-con {
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
}
body .pxfoot .pxfoot__cols.e-con {
	--display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 32px;
	margin-bottom: 56px;
}
body .pxfoot .pxfoot__col.e-con {
	--gap: 16px;
	--row-gap: 16px;
	--flex-direction: column;
	width: auto;
}
.pxfoot .elementor-widget { margin: 0; }
.pxfoot p { margin: 0; }
.pxfoot .pxfoot__kicker .elementor-heading-title {
	font-family: "Space Mono", monospace;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: #8A91A0;
}
.pxfoot__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pxfoot a {
	color: #AEB4C0;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
}
.pxfoot a:hover,
.pxfoot a[aria-current] { color: #fff; }
.pxfoot a.pxfoot__system { color: #50B4C3; }
.pxfoot a.pxfoot__system:hover { color: #fff; }
.pxfoot .pxfoot__family {
	font-size: 12px;
	line-height: 1.7;
	color: #8A91A0;
}
.pxfoot .pxfoot__family a {
	font-size: inherit;
	color: inherit;
	text-decoration: underline;
}
body .pxfoot .pxfoot__bottom.e-con {
	--flex-direction: row;
	--flex-wrap: wrap;
	--justify-content: space-between;
	--align-items: center;
	--gap: 10px 20px;
	--row-gap: 10px;
	--column-gap: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 28px;
}
.pxfoot .pxfoot__logo img {
	width: 112px;
	height: auto;
}
.pxfoot .pxfoot__legal,
.pxfoot .pxfoot__legal a {
	font-family: "Space Mono", monospace;
	font-size: 11.5px;
	line-height: 1.6;
	color: #8A91A0;
}
