/* ---------- reset any Divi leakage on our own elements ---------- */
.site-header,
.site-header * {
	box-sizing: border-box;
}

/* ---------- utility ---------- */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- header shell ---------- */
.site-header {
	container-type: inline-size;
	container-name: header-row;

	display: flex;
	align-items: center;
	flex-wrap: wrap;							/* lets rows stack if truly out of room */
	gap: 0.5rem 1rem;
	padding: 0.5rem 1rem;
	position: relative;
}

/* ---------- logo ---------- */
.site-header__logo {
	flex: 0 0 auto;
	line-height: 0;							 /* kills descender gap under inline img */
}

.site-header__logo a{
	background-image: none;
}


.site-header__logo img {
	display: block;
	height: 64px;
	max-width: unset !important;
}

/* ---------- app slot ---------- */
.app-widget {
	flex: 0 0 auto;       /* was 0 1 auto — now fixed, doesn't grow or shrink */
/* 
	width: 80px;
	height: 40px;
	background: #f93;
 */
	border-radius: 4px;
}

/* ---------- nav ---------- */
.site-nav {
	flex: 1 1 auto;
	min-width: 0;									/* REQUIRED — without this flex children refuse to shrink below content width, and the container query has nothing to react to */
	display: flex;
	align-items: center;
	justify-content: flex-end;
	position: relative;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;							 /* natural 2-row fallback before hamburger threshold */
	justify-content: flex-end;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.5rem 1.25rem;
}

.site-nav__list li {
	margin: 0;
}

.site-nav__list a {
	text-decoration: none;
	white-space: nowrap;
	display: inline-block;
	padding: 0.25rem 0;
	background-image: none;
	font-family: IntegralCFBold;
	font-size: 1.2rem;
	color: rgba(255,255,255,0.9) !important;
}

.site-nav__list a:hover {
	text-shadow: 0 0 3px #ffffff;
}

/* ---------- hamburger toggle (hidden until container query fires) ---------- */
.nav-toggle-label {
	display: none;
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	padding: 0.25rem 0.5rem;
	color: rgb(var(--rgbRed));
}

/* ---------- container query: react to NAV's available space ---------- */
@container header-row (max-width: 700px) {
	.site-nav__list {
		display: none;
	}

	.nav-toggle-label {
		display: inline-flex;
	}

	#nav-toggle:checked ~ .site-nav__list {
		display: flex;
		flex-direction: column;
		align-items: flex-end;

		position: absolute;
		top: 100%;
		right: 0;
		background: #000;
		box-shadow: 0 4px 12px rgba(0,0,0,0.12);
		padding: 0.75rem 1rem;
		z-index: 100;
		min-width: 180px;
	}

	.site-nav__list .sub-menu {
		display: block !important;
		position: static !important;
		box-shadow: none !important;
		padding-left: 0.5rem !important;
	}

	.site-nav__list > li {
		position: relative;
		width: 100%;
	}
}


/* anchor point for absolutely-positioned dropdowns */
.site-nav__list > li {
	position: relative;
}

/* all submenus hidden by default */
.site-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	background: #000;							/* match your actual site background */
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	border-top: 3px solid rgb(var(--rgbRed));
	z-index: 100;
}

.site-nav__list .sub-menu li {
	width: 100%;
}

.site-nav__list .sub-menu a {
	display: block;
	padding: 0.5rem;
	white-space: nowrap;
}

/* reveal on hover or keyboard focus */
.site-nav__list > li:hover > .sub-menu,
.site-nav__list > li:focus-within > .sub-menu {
	display: block;
}

/* grandchild menus open sideways rather than stacking further down */
.sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

