/* Site header. Split from style.css 2026-09-03; loads on every page
via the launchpad-header handle in functions.php. Header option colours
arrive as inline custom properties attached to this handle. */

/* Header
--------------------------------------------- */
/*TODO: add native support for mobile menu*/
/*TODO: make sure nav can support logos that are long (horizontal)*/

.site-header{
	position: sticky;
	top: 0;
	z-index: 99;
	padding-inline: 4vw;
	background: #fff;
	box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px;

	font-family: var(--font-family-heading);
	font-size: var(--font-size-body);
	font-weight: 400;
}

.lp-header__inner{
	display: flex;
	align-items: center;
	gap: 24px;
	height: 80px;
	max-width: var(--content-max-width);
	margin: 0 auto;
}

.site-branding{
	display: flex;
	align-items: center;
	margin-right: auto;
}

p.site-title{
	margin: 0;
}

.lp-header__nav{
	display: flex;
	align-items: center;
}

.lp-header__menu{
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lp-header__item{
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
}

.lp-header__link{
	display: block;
	text-decoration: none;
	color: var(--neutral-400);
}

.lp-header__link:hover{
	color: var(--accent-300);
}

.lp-header__submenu{
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 200px;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: 4px;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}

.lp-header__nav .lp-header__item--has-children:hover .lp-header__submenu,
.lp-header__nav .lp-header__item--has-children:focus-within .lp-header__submenu,
.lp-header__nav .lp-header__item.is-expanded .lp-header__submenu{
	display: flex;
}

.lp-header__subitem{
	background: #fff;
	border-bottom: 1px solid #e2e2e2;
}

.lp-header__subitem:first-child{
	border-radius: 4px 4px 0 0;
}

.lp-header__subitem:last-child{
	border-bottom: 0;
	border-radius: 0 0 4px 4px;
}

.lp-header__sublink{
	display: block;
	padding: 8px 16px;
	text-decoration: none;
	color: var(--neutral-400);
}

.lp-header__sublink:hover{
	color: var(--accent-300);
}

.lp-header__submenu-toggle{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	color: currentColor;
	font-size: 10px;
	line-height: 1;
	cursor: pointer;
}

.lp-header__icon{
	display: block;
	width: 1em;
	height: 1em;
	transition: transform 0.2s ease;
}

.lp-header__icon-stem{
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.2s ease;
}

.lp-header__submenu-toggle[aria-expanded="true"] .lp-header__icon--triangle,
.lp-header__nav .lp-header__item--has-children:hover .lp-header__icon--triangle{
	transform: rotate(-90deg);
}

.lp-header__submenu-toggle[aria-expanded="true"] .lp-header__icon-stem,
.lp-header__nav .lp-header__item--has-children:hover .lp-header__icon-stem{
	transform: scaleY(0);
}

.lp-header__toggle:focus-visible,
.lp-header__close:focus-visible,
.lp-header__submenu-toggle:focus-visible{
	outline: 2px solid var(--accent-300);
	outline-offset: 2px;
}

a.lp-header__cta{
	align-self: center;
}

.lp-header__toggle{
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.lp-header__toggle-bar{
	display: block;
	width: 24px;
	height: 3px;
	margin-inline: auto;
	border-radius: 2px;
	background: var(--lp-header-toggle, var(--accent-300));
}

.lp-header__overlay{
	position: fixed;
	inset: 0;
	z-index: 100;
	visibility: hidden;
	opacity: 0;
	background: rgba(0, 0, 0, 0.5);
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lp-header.is-open .lp-header__overlay{
	visibility: visible;
	opacity: 1;
}

.lp-header__panel{
	position: fixed;
	top: 0;
	right: 0;
	z-index: 101;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: min(320px, 80vw);
	height: 100%;
	padding: 16px 24px 32px;
	overflow-y: auto;
	overscroll-behavior: contain;
	visibility: hidden;
	transform: translateX(100%);
	background: var(--lp-header-panel-bg, var(--neutral-400));
	transition: transform 0.25s ease, visibility 0.25s ease;
}

.lp-header.is-open .lp-header__panel{
	visibility: visible;
	transform: translateX(0);
}

.lp-header__close{
	align-self: flex-end;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--lp-header-toggle, var(--accent-300));
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.lp-header__close::before{
	content: "\00d7";
}

.lp-header__panel-nav .lp-header__menu{
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.lp-header__panel-nav .lp-header__item{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.lp-header__panel-nav .lp-header__link{
	flex: 1;
	padding-block: 12px;
	font-family: var(--font-family-heading);
	font-weight: 700;
	color: var(--lp-header-panel-link, var(--white));
}

.lp-header__panel-nav .lp-header__link:hover{
	color: var(--lp-header-panel-link-hover, var(--accent-200));
}

.lp-header__panel-nav .lp-header__submenu-toggle{
	width: 44px;
	height: 44px;
	color: var(--lp-header-submenu-icon, var(--accent-300));
	font-size: 20px;
}

.lp-header__panel-nav .lp-header__submenu{
	position: static;
	width: 100%;
	min-width: 0;
	border-radius: 0;
	box-shadow: none;
}

.lp-header__panel-nav .lp-header__item.is-expanded .lp-header__submenu{
	display: flex;
}

.lp-header__panel-nav .lp-header__subitem{
	background: none;
	border-bottom: 0;
}

.lp-header__panel-nav .lp-header__sublink{
	padding: 10px 0 10px 16px;
	color: var(--lp-header-panel-link, var(--white));
}

.lp-header__panel-nav .lp-header__sublink:hover{
	color: var(--lp-header-panel-link-hover, var(--accent-200));
}

a.lp-header__panel-cta{
	align-self: stretch;
	margin-top: auto;
	text-align: center;
}

body.lp-menu-open{
	overflow: hidden;
}

.custom-logo-link img{
	max-height: 80px;
	width: auto;
}

.entry-content{
	margin-top: 0;
}

.site-title a{
	font-family: var(--font-family-heading);
	font-size: var(--font-size-h5);
	color: var(--neutral-400);
	font-weight: 800;
}
