/**
 * Top bar + site header — matched to GEN original design.
 */

/* -------------------------------------------------------------------------
   Shell
------------------------------------------------------------------------- */

.gthl-header {
	position: relative;
	z-index: 100;
	width: 100%;
	overflow: visible;
}

/* Desktop: full header (top bar + main nav) stays fixed */
@media (min-width: 901px) {
	.gthl-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		z-index: 1000;
		background-color: var(--gen-header-bg, #ffffff);
		box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
	}

	body.admin-bar .gthl-header {
		top: 32px;
	}

	body {
		padding-top: var(--gthl-desktop-header-height, 140px);
	}
}

@media (max-width: 900px) {
	/* Only the white main nav sticks — red top bar scrolls away */
	.gthl-site-header.is-stuck {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		z-index: 1000;
		padding: 0;
		background-color: var(--gen-header-bg, #ffffff);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	}

	body.admin-bar .gthl-site-header.is-stuck {
		top: 46px;
	}

	.gthl-site-header-placeholder {
		display: block;
		width: 100%;
		height: 0;
		margin: 0;
		padding: 0;
		border: 0;
		overflow: hidden;
		visibility: hidden;
		pointer-events: none;
	}

	.gthl-site-header-placeholder.is-active {
		height: var(--gthl-stuck-header-height, 64px);
	}
}

@media (max-width: 900px) and (min-width: 783px) {
	body.admin-bar .gthl-site-header.is-stuck {
		top: 32px;
	}
}

/* -------------------------------------------------------------------------
   Top bar — left: socials | right: Members + Register (HCR)
------------------------------------------------------------------------- */

.gthl-top-bar {
	position: relative;
	z-index: 3;
	background-color: var(--gen-topbar-bg);
	color: var(--gen-topbar-text);
	width: 100%;
	overflow: visible;
	padding: 0px 50px;
}

.gthl-top-bar__inner,
.gthl-top-bar .gen-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding-block: 8px;
	/* padding-inline: max(16px, var(--gen-gutter)) !important; */
	width: 100%;
	max-width: var(--gen-container);
	margin-inline: auto;
	box-sizing: border-box;
}

.gthl-top-bar__left {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 30px;
	min-width: 0;
	flex: 1 1 auto;
	overflow: visible;
}

.gthl-top-bar__right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	flex: 0 0 auto;
	min-width: 0;
}

.gthl-top-bar__members {
	position: relative;
	flex: 0 0 auto;
	z-index: 5;
}

.gthl-top-bar__members-toggle {
	appearance: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	font: inherit;
	line-height: inherit;
}

.gthl-top-bar__members-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 20;
	width: max-content;
	max-width: calc(100vw - 24px);
	padding: 22px 24px;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	box-sizing: border-box;
	overflow: visible;
}

/* Hover bridge between label and panel */
.gthl-top-bar__members-panel::before {
	content: '';
	position: absolute;
	top: -14px;
	left: 0;
	right: 0;
	height: 16px;
}

/* Small white arrow pointing up at MEMBERS (with matching panel border) */
.gthl-top-bar__members-panel::after {
	content: '';
	position: absolute;
	top: -8px;
	right: 18px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid #ffffff;
	filter: drop-shadow(0 -1px 0 #cfcfcf);
	pointer-events: none;
	z-index: 1;
}

/* Desktop: show on hover / keyboard focus */
@media (hover: hover) and (pointer: fine) {
	.gthl-top-bar__members:hover .gthl-top-bar__members-panel,
	.gthl-top-bar__members:focus-within .gthl-top-bar__members-panel {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}
}

/* Mobile + click toggle */
.gthl-top-bar__members.is-open .gthl-top-bar__members-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.gthl-top-bar__members-list {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	width: max-content;
}

.gthl-top-bar__members-item {
	margin: 0;
	padding: 0;
}

.gthl-top-bar__members-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 8px;
	border-radius: 50%;
	overflow: hidden;
	background: #ffffff;
	box-sizing: border-box;
	text-decoration: none;
	transform: translateY(0) scale(1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gthl-top-bar__members-link:hover,
.gthl-top-bar__members-link:focus-visible {
	transform: translateY(-2px) scale(1.06);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
	outline: none;
}

.gthl-top-bar__members-link img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.gthl-top-bar__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	flex: 0 1 auto;
	color: var(--gen-topbar-text);
	text-decoration: none;
	font-family: var(--gen-font);
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	opacity: 0.95;
	transition: opacity 0.2s ease;
}

.gthl-top-bar__link-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}

.gthl-top-bar__link-text--short {
	display: none;
}

.gthl-top-bar__link:hover,
.gthl-top-bar__link:focus {
	opacity: 1;
	color: var(--gen-topbar-text);
	text-decoration: none;
	box-shadow: none !important;
}

.gthl-top-bar__external {
	display: inline-block;
	width: 11px;
	height: 11px;
	flex-shrink: 0;
	background-color: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.5 2H2v12h12V9.5h-1.5V12.5h-9v-9H6.5V2zm3 0V3.5H12L7.25 8.25l1.06 1.06L13.05 4.5H14.5V2H9.5z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.5 2H2v12h12V9.5h-1.5V12.5h-9v-9H6.5V2zm3 0V3.5H12L7.25 8.25l1.06 1.06L13.05 4.5H14.5V2H9.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gthl-top-bar .btn-invert {
	padding: 10px 18px;
	flex-shrink: 0;
	white-space: nowrap;
	font-family: var(--gen-font);
	font-size: 14px;
	font-weight: 700;
}

.gthl-social {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}

.gthl-social li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gthl-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--gen-topbar-text);
	text-decoration: none;
	opacity: 0.95;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.gthl-social__link:hover,
.gthl-social__link:focus {
	opacity: 1;
	transform: translateY(-1px);
	color: var(--gen-topbar-text);
}

.gthl-social__link svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* -------------------------------------------------------------------------
   Main site header
------------------------------------------------------------------------- */

.gthl-site-header {
	position: relative;
	z-index: 2;
	background-color: var(--gen-header-bg);
	color: var(--gen-header-text);
	border-bottom: 1px solid var(--gen-gray-light);
	overflow: visible;
	padding: 0px 50px;
}

@media (max-width: 900px) {
	.gthl-site-header {
		padding: 0;
		z-index: 2;
	}
}

.gthl-site-header__inner,
.gthl-site-header .gen-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 0px;
	min-height: 88px;
	padding-block: 12px;
	/* padding-inline: max(16px, var(--gen-gutter)) !important; */
	width: 100%;
	max-width: var(--gen-container);
	margin-inline: auto;
	box-sizing: border-box;
	overflow: visible;
}

.gthl-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 0 1 auto;
	text-decoration: none;
	color: var(--gen-header-text);
}

.gthl-brand:hover,
.gthl-brand:focus {
	color: var(--gen-header-text);
	text-decoration: none;
}

/* Fixed slot so tall (portrait) and long (landscape) club logos share the same header space. */
.gthl-brand__logo-slot {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex: 0 1 auto;
	height: 64px;
	width: auto;
	max-width: min(280px, 42vw);
	min-width: 0;
}

.gthl-brand--logo-only .gthl-brand__logo-slot {
	max-width: min(320px, 50vw);
}

.gthl-brand__logo {
	display: block;
	max-height: 64px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: left center;
}

.gthl-brand__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.gthl-brand__name {
	font-family: var(--gen-font);
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--gen-header-text);
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gthl-brand__tagline {
	font-family: var(--gen-font);
	font-size: var(--gen-body-small);
	font-weight: 500;
	color: var(--gen-header-text);
	opacity: 0.85;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Nav — desktop inline, all items visible */
.gthl-nav {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	margin-left: auto;
	overflow: visible;
}

.gthl-nav__list,
.gthl-nav ul.gthl-nav__list {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto;
	max-height: none !important;
	overflow: visible !important;
}

.gthl-nav__list > li,
.gthl-nav ul.gthl-nav__list > li {
	display: list-item !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
	float: none !important;
	width: auto !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

.gthl-nav__list > li > a,
.gthl-nav ul.gthl-nav__list > li > a {
	display: inline-flex !important;
	align-items: center;
	font-family: var(--gen-font) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	color: var(--gen-header-link) !important;
	padding: 10px 14px !important;
	line-height: 1.2 !important;
	background: transparent !important;
	border: 0 !important;
	transition: color 0.2s ease;
}

.gthl-nav__list > li > a:hover,
.gthl-nav__list > li > a:focus,
.gthl-nav__list > li > a:focus-visible,
.gthl-nav ul.gthl-nav__list > li > a:hover,
.gthl-nav ul.gthl-nav__list > li > a:focus,
.gthl-nav__list > li.current-menu-item > a,
.gthl-nav__list > li.current-menu-ancestor > a {
	color: var(--gen-header-link-hover) !important;
}

.gthl-nav__list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 275px;
	margin: 0;
	padding: 20px 28px 16px;
	list-style: none;
	background: #ffffff;
	border: 1px solid var(--gen-gray-light) !important;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 52, 128, 0.1);
	overflow: hidden;
	z-index: 40;
}

/* Wider dropdown: last top-level items open shifted left so they stay on-screen. */
.gthl-nav__list > li:nth-last-child(1):not(.mega-menu) > .sub-menu,
.gthl-nav__list > li:nth-last-child(2):not(.mega-menu) > .sub-menu,
.gthl-nav__list > li:nth-last-child(3):not(.mega-menu) > .sub-menu {
	left: -200px;
	right: auto;
}

/* Nested flyout under a simple dropdown (same chrome as Players & Parents). */
.gthl-nav__list .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	margin-left: 0;
	background: #ffffff;
	border: 1px solid var(--gen-gray-light) !important;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 52, 128, 0.1);
	overflow: hidden;
}

/* Nested flyouts under last nav items open to the left. */
.gthl-nav__list > li:nth-last-child(1) .sub-menu .sub-menu,
.gthl-nav__list > li:nth-last-child(2) .sub-menu .sub-menu,
.gthl-nav__list > li:nth-last-child(3) .sub-menu .sub-menu {
	left: auto;
	right: 100%;
}

.gthl-nav__list > li:hover > .sub-menu,
.gthl-nav__list > li:focus-within > .sub-menu {
	display: block;
}

.gthl-nav__list .sub-menu a {
	display: block !important;
	padding: 10px 0 !important;
	font-family: var(--gen-font) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	line-height: 1.3 !important;
	color: var(--gen-header-submenu-link, #003a80) !important;
	text-decoration: none !important;
	background: transparent !important;
	border-bottom: 1px solid #cfcfcf !important;
}

.gthl-nav__list .sub-menu .sub-menu a {
	font-weight: 400 !important;
}

/*
 * Remove WP / parent-theme dropdown arrows (› → > dashicons)
 * on every level — desktop + mobile. Mega caret is restored below.
 */
.gthl-nav__list .menu-item-has-children > a::after,
.gthl-nav__list .page_item_has_children > a::after,
.gthl-nav__list .sub-menu .menu-item-has-children > a::after,
.gthl-nav__list .sub-menu a::after,
.gthl-nav .menu-item-has-children > a::after,
.gthl-nav .sub-menu .menu-item-has-children > a::after {
	content: none !important;
	display: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	float: none !important;
}

.gthl-nav__list .sub-menu a:hover,
.gthl-nav__list .sub-menu a:focus {
	color: var(--gen-header-submenu-hover, #e02826) !important;
	background: transparent !important;
}

/* Programs dropdown — same white + radius chrome as Players & Parents */
.gthl-nav__list > li.gthl-programs-nav > .sub-menu {
	left: 0;
	right: auto;
	min-width: 275px;
	width: max-content;
	max-width: min(26rem, calc(100vw - 2 * var(--gen-gutter, 24px)));
	padding: 20px 28px 16px !important;
	background: #ffffff !important;
	border: 1px solid var(--gen-gray-light) !important;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 52, 128, 0.1);
	overflow: hidden;
}

.gthl-nav__list > li.gthl-programs-nav > .sub-menu > li {
	display: block !important;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gthl-nav__list > li.gthl-programs-nav > .sub-menu > li > a {
	display: block !important;
	padding: 10px 0 !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
	letter-spacing: 0.02em !important;
	text-transform: uppercase !important;
	white-space: nowrap;
	color: var(--gen-header-submenu-link, #003a80) !important;
	background: transparent !important;
	border-bottom: 1px solid #cfcfcf !important;
}

.gthl-nav__list > li.gthl-programs-nav > .sub-menu > li > a:hover,
.gthl-nav__list > li.gthl-programs-nav > .sub-menu > li > a:focus,
.gthl-nav__list > li.gthl-programs-nav > .sub-menu > li.current-menu-item > a {
	color: var(--gen-header-submenu-hover, #e02826) !important;
	background: transparent !important;
}

/* -------------------------------------------------------------------------
   Mega menu — DESKTOP ONLY (min-width: 901px)
   Class "mega-menu" on a top-level item (e.g. Teams).
------------------------------------------------------------------------- */

@media (min-width: 901px) {
	.gthl-site-header {
		position: relative;
	}
}

.gthl-site-header__accent {
	pointer-events: none;
}

@media (min-width: 901px) {
	.gthl-nav__list > li.mega-menu,
	.gthl-nav ul.gthl-nav__list > li.mega-menu {
		position: relative !important;
		z-index: 1;
	}

	.gthl-nav__list > li.mega-menu:hover,
	.gthl-nav__list > li.mega-menu:focus-within,
	.gthl-nav ul.gthl-nav__list > li.mega-menu:hover,
	.gthl-nav ul.gthl-nav__list > li.mega-menu:focus-within {
		z-index: 70;
	}

	.gthl-nav__list > li.mega-menu > a {
		position: relative !important;
	}

	.gthl-nav__list > li.mega-menu:hover > a::after,
	.gthl-nav__list > li.mega-menu:focus-within > a::after {
		content: '' !important;
		display: block !important;
		position: absolute;
		left: 50%;
		bottom: 0;
		width: 0 !important;
		height: 0 !important;
		margin: 0;
		padding: 0;
		border-left: 7px solid transparent;
		border-right: 7px solid transparent;
		border-bottom: 7px solid #d0d0d0;
		border-top: 0;
		font-size: 0;
		line-height: 0;
		background: none;
		transform: translateX(-50%);
		z-index: 71;
		pointer-events: none;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu,
	.gthl-nav ul.gthl-nav__list > li.mega-menu > .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: auto;
		right: 0;
		width: min(650px, calc(100vw - (2 * var(--gen-gutter))));
		margin: 0;
		padding: 20px 28px 16px;
		background: #ffffff;
		border: 1px solid var(--gen-gray-light);
		border-radius: 8px;
		box-shadow: 0 8px 24px rgba(0, 52, 128, 0.1);
		overflow: hidden;
		z-index: 60;
		flex-wrap: nowrap;
		align-items: flex-start;
		gap: 0;
		transform: none;
	}

	/* Teams mega only — shrink/grow with age-group columns */
	.gthl-nav__list > li.mega-menu.gthl-teams-mega > .sub-menu,
	.gthl-nav ul.gthl-nav__list > li.mega-menu.gthl-teams-mega > .sub-menu {
		width: max-content;
		max-width: min(1200px, calc(100vw - (2 * var(--gen-gutter, 24px))));
		flex-wrap: wrap;
		row-gap: 24px;
		column-gap: 0;
		align-items: stretch;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu::before,
	.gthl-nav ul.gthl-nav__list > li.mega-menu > .sub-menu::before {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: 12px;
		background: transparent;
	}

	.gthl-nav__list > li.mega-menu:hover > .sub-menu,
	.gthl-nav__list > li.mega-menu:focus-within > .sub-menu,
	.gthl-nav ul.gthl-nav__list > li.mega-menu:hover > .sub-menu,
	.gthl-nav ul.gthl-nav__list > li.mega-menu:focus-within > .sub-menu {
		display: flex !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu > li {
		flex: 1 1 0;
		min-width: 0;
		margin: 0 !important;
		padding: 0 14px !important;
		position: static;
		list-style: none;
	}

	.gthl-nav__list > li.mega-menu.gthl-teams-mega > .sub-menu > li {
		flex: 0 0 auto;
		width: 96px;
		min-width: 96px;
		max-width: 110px;
		padding: 0 10px !important;
		box-sizing: border-box;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu > li:first-child {
		padding-left: 0 !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu > li:last-child {
		padding-right: 0 !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu > li > a {
		display: block !important;
		padding: 10px 0 !important;
		font-family: var(--gen-font) !important;
		font-size: 14px !important;
		font-weight: 700 !important;
		text-transform: none !important;
		letter-spacing: 0 !important;
		line-height: 1.3 !important;
		color: var(--gen-header-submenu-link, #1a1a1a) !important;
		background: transparent !important;
		border: 0 !important;
		border-bottom: 1px solid #cfcfcf !important;
		border-radius: 0 !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu > li > a:hover,
	.gthl-nav__list > li.mega-menu > .sub-menu > li > a:focus {
		color: var(--gen-header-submenu-hover, #e02826) !important;
		background: transparent !important;
		border-bottom-color: #cfcfcf !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu .sub-menu {
		display: block !important;
		position: static !important;
		min-width: 0;
		width: auto;
		margin: 0 !important;
		padding: 0 !important;
		background: transparent !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu .sub-menu li {
		margin: 0 !important;
		padding: 0 !important;
		list-style: none;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu .sub-menu a {
		display: block !important;
		padding: 10px 0 !important;
		font-family: var(--gen-font) !important;
		font-size: 14px !important;
		font-weight: 400 !important;
		text-transform: none !important;
		letter-spacing: 0 !important;
		line-height: 1.3 !important;
		color: var(--gen-header-submenu-link, #1a1a1a) !important;
		background: transparent !important;
		border: 0 !important;
		border-bottom: 1px solid #cfcfcf !important;
		border-radius: 0 !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu .sub-menu a:hover,
	.gthl-nav__list > li.mega-menu > .sub-menu .sub-menu a:focus {
		color: var(--gen-header-submenu-hover, #e02826) !important;
		background: transparent !important;
		border-bottom-color: #cfcfcf !important;
	}
}

.gthl-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	flex: 0 0 auto;
}

/* Search */
.gthl-header-search {
	position: relative;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.gthl-header-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--gen-header-link);
	cursor: pointer;
	transition: color 0.2s ease;
}

.gthl-header-search__toggle:hover,
.gthl-header-search__toggle:focus,
.gthl-header-search.is-open .gthl-header-search__toggle {
	color: var(--gen-header-link-hover);
}

.gthl-header-search__icon {
	display: block;
	width: 30px;
	height: 30px;
}

.gthl-header-search__form {
	display: none;
	align-items: center;
	gap: 8px;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: min(360px, calc(100vw - 32px));
	padding: 12px;
	background: var(--gen-header-bg);
	border: 1px solid var(--gen-gray-light);
	box-shadow: 0 8px 24px rgba(0, 52, 128, 0.12);
	z-index: 50;
}

.gthl-header-search.is-open .gthl-header-search__form {
	display: flex;
}

.gthl-header-search__input {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--gen-gray-light);
	background: var(--gen-white);
	color: var(--gen-black);
	font-family: var(--gen-font);
	font-size: 15px;
}

.gthl-header-search__input:focus {
	outline: 2px solid var(--gen-header-link-hover);
	outline-offset: 1px;
	border-color: var(--gen-header-link-hover);
}

.gthl-header-search__submit {
	padding: 10px 14px;
	flex-shrink: 0;
	font-family: var(--gen-font);
	font-size: 14px;
}

.gthl-header-search__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--gen-header-link);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.gthl-header-search__close:hover,
.gthl-header-search__close:focus {
	color: var(--gen-header-link-hover);
}

.gthl-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 2px solid var(--gen-header-link);
	border-radius: 2px;
	background: transparent;
	color: var(--gen-header-link);
	cursor: pointer;
	flex-shrink: 0;
	line-height: 0;
}

.gthl-nav-toggle:hover,
.gthl-nav-toggle:focus,
.gthl-nav-toggle[aria-expanded='true'] {
	color: var(--gen-header-link-hover);
	border-color: var(--gen-header-link-hover);
}

.gthl-nav-toggle__icon {
	display: block;
	width: 22px;
	height: 22px;
}

.gthl-nav-toggle__icon--close {
	display: none;
}

.gthl-nav-toggle[aria-expanded='true'] .gthl-nav-toggle__icon--open {
	display: none;
}

.gthl-nav-toggle[aria-expanded='true'] .gthl-nav-toggle__icon--close {
	display: block;
}

/* -------------------------------------------------------------------------
   Tablet / mobile
------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.gthl-top-bar__inner,
	.gthl-top-bar .gen-container {
		gap: 10px;
		min-height: 48px;
		padding-block: 8px;
		padding-inline: 16px !important;
	}

	.gthl-top-bar__left {
		flex: 0 1 auto;
		gap: 8px;
		overflow: visible;
	}

	.gthl-top-bar__right {
		flex: 0 1 auto;
		gap: 8px;
	}

	.gthl-social {
		flex-shrink: 0;
		gap: 4px;
	}

	.gthl-top-bar__members-panel {
		right: 0;
		left: auto;
		width: max-content;
		max-width: calc(100vw - 28px);
		padding: 18px 20px;
		top: calc(100% + 8px);
	}

	.gthl-top-bar__members-panel::after {
		right: 14px;
		top: -7px;
		border-left-width: 7px;
		border-right-width: 7px;
		border-bottom-width: 7px;
	}

	.gthl-top-bar__members-list {
		gap: 14px;
		flex-wrap: wrap;
		max-width: calc(100vw - 48px);
	}

	.gthl-top-bar__members-link {
		width: 52px;
		height: 52px;
		padding: 6px;
	}

	.gthl-social {
		gap: 8px;
	}

	.gthl-top-bar, .gthl-site-header {
		padding: 0px;
	}

	/* Avoid cut-off long label on mobile */
	.gthl-top-bar__link-text--full {
		display: none;
	}

	.gthl-top-bar__link-text--short {
		display: inline;
	}

	.gthl-top-bar__link {
		flex: 0 0 auto;
		font-size: 13px;
	}

	.gthl-top-bar .btn-invert {
		padding: 8px 10px;
		font-size: 12px;
		flex-shrink: 1;
		min-width: 0;
	}

	.gthl-site-header__inner,
	.gthl-site-header .gen-container {
		min-height: 64px;
		padding-block: 8px;
		padding-inline: 16px !important;
		gap: 8px 10px;
		box-sizing: border-box;
	}

	.gthl-brand {
		order: 1;
		flex: 1 1 auto;
	}

	.gthl-header-actions {
		order: 2;
		flex: 0 0 auto;
		margin-left: 0;
	}

	.gthl-brand__logo-slot {
		height: 48px;
		max-width: min(200px, 46vw);
	}

	.gthl-brand--logo-only .gthl-brand__logo-slot {
		max-width: min(240px, 58vw);
	}

	.gthl-brand__logo {
		max-height: 48px;
	}

	.gthl-brand__name {
		font-size: 16px;
	}

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

	/*
	 * Mobile menu panel in normal document flow (not absolute),
	 * so every menu item is visible and not clipped.
	 */
	.gthl-nav {
		order: 3;
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		display: none;
		overflow: visible !important;
		max-height: none !important;
	}

	.gthl-nav.is-open {
		display: block !important;
	}

	.gthl-nav__list,
	.gthl-nav ul.gthl-nav__list {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		flex-wrap: nowrap !important;
		justify-content: flex-start !important;
		width: 100% !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.gthl-nav__list > li,
	.gthl-nav ul.gthl-nav__list > li {
		display: block !important;
		width: 100% !important;
		visibility: visible !important;
		opacity: 1 !important;
		float: none !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.gthl-nav__list > li > a,
	.gthl-nav ul.gthl-nav__list > li > a {
		display: block !important;
		width: 100%;
		padding: 14px 4px !important;
		border-bottom: 1px solid var(--gen-gray-light);
		font-size: 15px !important;
		font-family: var(--gen-font) !important;
		font-weight: 700 !important;
		color: var(--gen-header-link) !important;
		box-sizing: border-box;
	}

	.gthl-nav__list .sub-menu {
		position: static !important;
		display: none !important;
		float: none !important;
		box-shadow: none !important;
		border: 0 !important;
		border-radius: 0 !important;
		padding: 0 0 8px 12px !important;
		background: transparent !important;
		width: 100% !important;
		max-width: 100% !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		margin: 0 !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
	}

	.gthl-nav__list .sub-menu a {
		font-size: 14px !important;
		font-weight: 500 !important;
		text-transform: none !important;
	}

	.gthl-nav__list > li.gthl-programs-nav > .sub-menu {
		min-width: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.gthl-nav__list > li.gthl-programs-nav > .sub-menu > li > a {
		white-space: normal;
		text-transform: uppercase !important;
		font-weight: 700 !important;
	}

	/*
	 * Mobile accordion: ONLY .is-open shows submenu.
	 * Never hide via :focus-within / sticky :hover — that blocked TEAMS tap.
	 */
	.gthl-nav__list > li:hover:not(.is-open) > .sub-menu,
	.gthl-nav__list > li:focus-within:not(.is-open) > .sub-menu,
	.gthl-nav__list > li.mega-menu:hover:not(.is-open) > .sub-menu,
	.gthl-nav__list > li.mega-menu:focus-within:not(.is-open) > .sub-menu {
		display: none !important;
	}

	.gthl-nav.is-open .gthl-nav__list > li.is-open > .sub-menu,
	.gthl-nav.is-open .gthl-nav__list > li.mega-menu.is-open > .sub-menu,
	.gthl-nav.is-open .gthl-nav__list > li.mega-menu.is-open:hover > .sub-menu,
	.gthl-nav.is-open .gthl-nav__list > li.mega-menu.is-open:focus-within > .sub-menu,
	.gthl-nav.is-open .gthl-nav__list li.is-open > ul.sub-menu,
	.gthl-nav.is-open .gthl-nav__list li.is-open > ul {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	/* Mega menu = normal vertical list on mobile */
	.gthl-nav__list > li.mega-menu,
	.gthl-nav ul.gthl-nav__list > li.mega-menu {
		position: relative !important;
		z-index: auto !important;
	}

	.gthl-nav__list > li.mega-menu > a::after {
		display: none !important;
		content: none !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu,
	.gthl-nav ul.gthl-nav__list > li.mega-menu > .sub-menu {
		position: static !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 0 8px 12px !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		gap: 0 !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu::before {
		display: none !important;
		content: none !important;
	}

	.gthl-nav__list > li.mega-menu:not(.is-open) > .sub-menu {
		display: none !important;
	}

	.gthl-nav.is-open .gthl-nav__list > li.mega-menu.is-open > .sub-menu,
	.gthl-nav.is-open ul.gthl-nav__list > li.mega-menu.is-open > .sub-menu {
		display: block !important;
		visibility: visible !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu > li {
		display: block !important;
		float: none !important;
		flex: none !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu > li > a,
	.gthl-nav__list > li.mega-menu > .sub-menu .sub-menu a {
		display: block !important;
		width: 100% !important;
		padding: 12px 28px 12px 4px !important;
		border-bottom: 1px solid #cfcfcf !important;
		color: var(--gen-header-submenu-link, #003a80) !important;
		font-weight: 500 !important;
		text-align: left !important;
	}

	.gthl-nav__list > li.mega-menu > .sub-menu .sub-menu {
		position: static !important;
		width: 100% !important;
		padding: 0 0 0 12px !important;
		box-shadow: none !important;
		background: transparent !important;
	}

	.gthl-nav__list > li.mega-menu li:not(.is-open) > .sub-menu {
		display: none !important;
	}

	.gthl-nav__list > li.mega-menu li.is-open > .sub-menu {
		display: block !important;
	}

	/* + / − on every parent with children (TEAMS, U7, U8, etc.) */
	.gthl-nav__list li.menu-item-has-children > a,
	.gthl-nav__list li.mega-menu > a {
		position: relative !important;
		padding-right: 28px !important;
	}

	.gthl-nav__list li.menu-item-has-children > a::before,
	.gthl-nav__list li.mega-menu > a::before {
		content: '+' !important;
		display: block !important;
		position: absolute;
		right: 6px;
		top: 50%;
		transform: translateY(-50%);
		font-size: 18px;
		font-weight: 700;
		line-height: 1;
		color: var(--gen-header-link);
		width: auto !important;
		height: auto !important;
		border: 0 !important;
		background: none !important;
	}

	.gthl-nav__list li.menu-item-has-children.is-open > a::before,
	.gthl-nav__list li.mega-menu.is-open > a::before {
		content: '−' !important;
	}

	/*
	 * Fixed panel under the search icon. Base `top: calc(100% + 8px)` is wrong
	 * for fixed (100% = viewport height) — JS sets --gthl-search-panel-top.
	 */
	.gthl-header-search__form {
		position: fixed;
		top: var(--gthl-search-panel-top, 120px);
		left: var(--gen-gutter, 16px);
		right: var(--gen-gutter, 16px);
		width: auto;
		max-width: none;
		z-index: 200;
	}
}

@media (max-width: 600px) {
	.gthl-top-bar__inner,
	.gthl-top-bar .gen-container,
	.gthl-site-header__inner,
	.gthl-site-header .gen-container {
		padding-inline: 14px !important;
	}

	.gthl-top-bar, .gthl-site-header {
		padding: 0px;
	}

	.gthl-brand__name,
	.gthl-brand__tagline {
		white-space: normal;
	}

	.gthl-brand__tagline {
		display: block;
		font-size: 11px;
		line-height: 1.25;
	}

	.gthl-social {
		gap: 6px;
	}

	.gthl-social__link {
		width: 26px;
		height: 26px;
	}

	.gthl-social__link svg {
		width: 15px;
		height: 15px;
	}

	.gthl-top-bar .btn-invert {
		padding: 7px 10px;
		font-size: 11px;
	}
}

@media (max-width: 380px) {
	.gthl-top-bar__external {
		display: none;
	}

	.gthl-social__link {
		width: 24px;
		height: 24px;
	}
}
