/* ==========================================================================
   Site header — RoWASHI-style layout, inverted palette:
   purple top bar, ash-white primary nav.

   ADJUSTABLE SETTINGS — edit these values:
     --jcuh-logo-h    height of the main logo (default 48px)
     --jcuh-primary   brand purple (top bar, accents)
     --jcuh-ash       lower nav bar color
   ========================================================================== */

.jcu-hdr {
	--jcuh-logo-h: 42px;
	--jcuh-primary: #68267e; /* brand purple — matches the logo PNG's purple block */
	--jcuh-ash: #ececef;     /* ash white — nav bar */
	--jcuh-max: 1400px;
	position: sticky;
	top: 0;
	z-index: 100;
	font-family: "Google Sans Flex", -apple-system, sans-serif;
	background: var(--jcuh-primary);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s;
}

.jcu-hdr.is-scrolled {
	box-shadow: 0 10px 30px rgba(30, 5, 40, 0.25);
}

/* Keep clear of the WP admin bar when logged in */
body.admin-bar .jcu-hdr {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .jcu-hdr {
		top: 46px;
	}
}

/* --- Purple top bar ----------------------------------------------------- */

.jcu-hdr__top {
	background: var(--jcuh-primary);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.jcu-hdr__top-inner {
	max-width: var(--jcuh-max);
	margin: 0 auto;
	padding: 0.3rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.jcu-hdr__brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.jcu-hdr__brand .custom-logo-link {
	display: block;
	line-height: 0;
	flex-shrink: 0;
}

.jcu-hdr__brand .custom-logo,
.jcu-hdr__logo img {
	max-height: var(--jcuh-logo-h);
	width: auto;
	display: block;
	border-radius: 6px;
	transition: max-height 0.3s;
}

.jcu-hdr__logo svg {
	height: var(--jcuh-logo-h);
	width: auto;
	display: block;
	transition: height 0.3s;
}

.is-scrolled .jcu-hdr__brand .custom-logo,
.is-scrolled .jcu-hdr__logo img {
	max-height: calc(var(--jcuh-logo-h) * 0.82);
}

.is-scrolled .jcu-hdr__logo svg {
	height: calc(var(--jcuh-logo-h) * 0.82);
}

.jcu-hdr__logo {
	text-decoration: none;
	line-height: 0;
}

.jcu-hdr__logo-text {
	font-size: calc(var(--jcuh-logo-h) * 0.42);
	font-weight: 800;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.jcu-hdr__logo-divider {
	width: 1px;
	height: calc(var(--jcuh-logo-h) * 0.85);
	background: rgba(255, 255, 255, 0.4);
}

.jcu-hdr__logo-secondary {
	max-height: calc(var(--jcuh-logo-h) * 0.92);
	width: auto;
}

/* Search — white field pops on the purple bar */

.jcu-hdr__searchwrap {
	position: relative;
	flex: 1 1 auto;
	max-width: 380px;
	margin-left: 1rem;
}

.jcu-hdr__search {
	display: flex;
	width: 100%;
	align-items: center;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.2s;
}

.jcu-hdr__search:focus-within {
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

/* Live results dropdown */
.jcu-hdr__search-results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 50;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 14px 40px rgba(20, 5, 25, 0.3);
	padding: 0.4rem 0;
	overflow: hidden;
}

.jcu-hdr__search-results a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem 1.1rem;
	color: #222 !important;
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
}

.jcu-hdr__search-results a:hover {
	background: rgba(104, 38, 126, 0.08);
	color: var(--jcuh-primary) !important;
}

.jcu-hdr__search-results a span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jcu-hdr__search-results a small {
	flex-shrink: 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a8a8f;
}

.jcu-hdr__search-none {
	margin: 0;
	padding: 0.7rem 1.1rem;
	color: #666;
	font-size: 0.9rem;
}

.jcu-hdr__search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 0.9rem;
	color: #333;
	padding: 0.35rem 1.1rem;
}

.jcu-hdr__search input[type="search"]::placeholder {
	color: #757575;
	opacity: 1;
}

.jcu-hdr__search button {
	border: 0;
	background: transparent;
	color: #555;
	padding: 0.35rem 0.8rem;
	cursor: pointer;
	line-height: 0;
}

.jcu-hdr__search svg {
	width: 17px;
	height: 17px;
}

.jcu-hdr__search:focus-within {
	border-color: rgba(255, 255, 255, 0.7);
}

/* Right-side actions — white text on purple */

.jcu-hdr__actions {
	display: flex;
	align-items: center;
	gap: 1.3rem;
	margin-left: auto;
	flex-shrink: 0;
}

/* Social icons */
.jcu-hdr__social {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding-left: 1.1rem;
	border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.jcu-hdr__social a {
	display: inline-flex;
	color: #fff !important;
	line-height: 0;
	transition: transform 0.2s, opacity 0.2s;
}

.jcu-hdr__social svg {
	width: 15px;
	height: 15px;
}

.jcu-hdr__social a:hover {
	opacity: 0.75;
	transform: translateY(-2px);
}

/* Utility menu (Appearance → Menus → "Header Utility") renders as a plain list */
.jcu-hdr__utility-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

/* !important: Elementor's kit-wide link color (.elementor-kit-* a) otherwise wins */
.jcu-hdr__action-link,
.jcu-hdr__utility-menu a {
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none;
	white-space: nowrap;
}

.jcu-hdr__action-link:hover,
.jcu-hdr__utility-menu a:hover {
	color: #fff !important;
	text-decoration: underline;
}

.jcu-hdr__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.jcu-hdr__phone svg {
	width: 16px;
	height: 16px;
}

/* CTA — white pill, purple text (inverse of the bar) */

.jcu-hdr__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #fff;
	color: var(--jcuh-primary);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	padding: 0.38rem 1.1rem;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(30, 5, 40, 0.22);
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.jcu-hdr__cta,
.jcu-hdr__cta:hover {
	color: var(--jcuh-primary) !important;
}

.jcu-hdr__cta:hover {
	background: var(--jcuh-ash);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(30, 5, 40, 0.3);
}

.jcu-hdr__cta svg {
	width: 17px;
	height: 17px;
	transition: transform 0.2s;
}

.jcu-hdr__cta:hover svg {
	transform: translateX(3px);
}

/* Mobile toggle */

.jcu-hdr__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
}

.jcu-hdr__toggle span {
	display: block;
	height: 2px;
	background: #fff;
	border-radius: 2px;
}

/* --- Ash-white primary nav ----------------------------------------------- */

.jcu-hdr__nav {
	background: #fff;
	border-bottom: 1px solid #e3e3e6;
}

.jcu-hdr__nav-inner {
	max-width: var(--jcuh-max);
	margin: 0 auto;
	padding: 0 1.25rem;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

/* Mini logo that slides into the white bar once the purple bar scrolls away */
.jcu-hdr__nav-logo {
	display: flex;
	align-items: center;
	align-self: center;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateX(-10px);
	text-decoration: none;
	font-weight: 800;
	color: var(--jcuh-primary);
	white-space: nowrap;
	transition: max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), margin 0.35s;
}

.jcu-hdr__nav-logo-img {
	height: 40px;
	width: auto;
	display: block;
	border-radius: 4px;
}

.is-scrolled .jcu-hdr__nav-logo {
	max-width: 140px;
	opacity: 1;
	transform: translateX(0);
	margin-right: 1rem;
}

.jcu-hdr__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: stretch;
}

.jcu-hdr__menu li {
	position: relative;
}

.jcu-hdr__menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	color: #2e2e33;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	padding: 0.85rem 0.8rem;
	border-bottom: 3px solid transparent;
	transition: background 0.15s, color 0.15s, padding 0.3s;
}

/* A bit taller once pinned, so the sticky bar has more presence */
.is-scrolled .jcu-hdr__menu > li > a {
	padding-top: 1.15rem;
	padding-bottom: 1.15rem;
}

@media (max-width: 1280px) {
	.jcu-hdr__menu > li > a {
		font-size: 0.85rem;
		padding: 0.85rem 0.55rem;
	}
}

/* Underline grows outward from the center on hover */
.jcu-hdr__menu > li > a::after {
	content: "";
	position: absolute;
	left: 50%;
	right: 50%;
	bottom: -3px;
	height: 3px;
	background: var(--jcuh-primary);
	transition: left 0.25s cubic-bezier(0.22, 1, 0.36, 1), right 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.jcu-hdr__menu > li > a:hover::after {
	left: 0;
	right: 0;
}

.jcu-hdr__menu > li.current-menu-item > a::after,
.jcu-hdr__menu > li.current-menu-ancestor > a::after,
.jcu-hdr__menu > li.current_page_item > a::after {
	display: none;
}

.jcu-hdr__menu > li > a:hover {
	background: rgba(103, 6, 107, 0.07);
	color: var(--jcuh-primary) !important;
}

.jcu-hdr__menu > li.current-menu-item > a,
.jcu-hdr__menu > li.current-menu-ancestor > a,
.jcu-hdr__menu > li.current_page_item > a {
	background: rgba(101, 45, 144, 0.07);
	color: var(--jcuh-primary) !important;
	border-bottom-color: var(--jcuh-primary);
}

/* Dropdowns (if the assigned menu has children) */

.jcu-hdr__menu li ul {
	list-style: none;
	margin: 0;
	padding: 0.4rem 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	border-radius: 0 0 4px 4px;
	border-top: 3px solid var(--jcuh-primary);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s;
	z-index: 10;
}

.jcu-hdr__menu li:hover > ul,
.jcu-hdr__menu li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.jcu-hdr__menu li ul a {
	display: block;
	color: #222;
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
	padding: 0.55rem 1.1rem;
}

.jcu-hdr__menu li ul a:hover {
	background: #f7f0f8;
	color: var(--jcuh-primary);
}

/* --- Responsive --------------------------------------------------------- */

/* Right-side priority ladder: drop the phone number first, then JLOS,
   then the socials — Sign in and the CTA survive the longest. */
@media (max-width: 1650px) {
	.jcu-hdr__phone {
		display: none;
	}
}

@media (max-width: 1500px) {
	.jcu-hdr__action-link[href*="jlos"] {
		display: none;
	}
}

@media (max-width: 1350px) {
	.jcu-hdr__social {
		display: none;
	}
}

@media (max-width: 1100px) {
	.jcu-hdr__searchwrap {
		max-width: 260px;
	}

	.jcu-hdr__action-link:not(:last-of-type) {
		display: none;
	}
}

@media (max-width: 820px) {
	.jcu-hdr__top-inner {
		gap: 1rem;
	}

	.jcu-hdr__searchwrap,
	.jcu-hdr__actions {
		display: none;
	}

	.jcu-hdr__toggle {
		display: flex;
		margin-left: auto;
	}

	.jcu-hdr__nav {
		display: none;
	}

	.jcu-hdr__nav.is-open {
		display: block;
	}

	.jcu-hdr__nav-logo {
		display: none;
	}

	.jcu-hdr__menu {
		flex-direction: column;
		width: 100%;
	}

	.jcu-hdr__menu li {
		width: 100%;
	}

	.jcu-hdr__menu a {
		display: block;
		width: 100%;
	}

	/* The desktop hover-underline bar renders as a stray speck here */
	.jcu-hdr__menu a::after {
		display: none !important;
	}

	.jcu-hdr__menu > li > a {
		border-bottom: 0;
		border-left: 3px solid transparent;
		padding: 0.8rem 1.25rem;
	}

	/* Hover / press highlight on every row */
	.jcu-hdr__menu > li > a:hover,
	.jcu-hdr__menu > li > a:active,
	.jcu-hdr__menu li ul a:hover,
	.jcu-hdr__menu li ul a:active {
		background: rgba(101, 45, 144, 0.07);
		color: var(--jcuh-primary);
	}

	.jcu-hdr .jcu-hdr__subtoggle:active {
		background: rgba(101, 45, 144, 0.1);
	}

	/* Current page: strong purple treatment on its row … */
	.jcu-hdr__menu > li.current-menu-item > a,
	.jcu-hdr__menu > li.current_page_item > a {
		background: rgba(101, 45, 144, 0.09);
		border-left-color: var(--jcuh-primary);
		color: var(--jcuh-primary);
		font-weight: 800;
	}

	/* … and on the parent section when a child page is open */
	.jcu-hdr__menu > li.current-menu-ancestor > a,
	.jcu-hdr__menu > li.current-menu-parent > a,
	.jcu-hdr__menu > li.current_page_parent > a {
		border-left-color: var(--jcuh-primary);
		color: var(--jcuh-primary);
		font-weight: 800;
	}

	/* Current item inside an open submenu */
	.jcu-hdr__menu li ul li.current-menu-item > a {
		color: var(--jcuh-primary);
		font-weight: 800;
		box-shadow: inset 3px 0 0 var(--jcuh-primary);
		background: rgba(101, 45, 144, 0.06);
	}

	.jcu-hdr__menu li ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: rgba(0, 0, 0, 0.04);
		box-shadow: none;
		border-radius: 0;
		border-top: 0;
	}

	.jcu-hdr__menu li ul a {
		padding-left: 2.5rem;
	}
}

/* ==========================================================================
   Sign-in modal
   ========================================================================== */

.jcu-login {
	position: fixed;
	inset: 0;
	z-index: 4000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.jcu-login[hidden] {
	display: none;
}

.jcu-login__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 8, 24, 0.72);
	backdrop-filter: blur(3px);
}

.jcu-login__dialog {
	position: relative;
	width: 100%;
	max-width: 400px;
	background: #fff;
	border-radius: 16px;
	padding: 2.2rem 2.2rem 2rem;
	box-shadow: 0 24px 70px rgba(10, 4, 14, 0.45);
	animation: jcu-login-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
	font-family: "Google Sans Flex", -apple-system, sans-serif;
}

@keyframes jcu-login-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jcu-login__dialog {
		animation: none;
	}
}

.jcu-login .jcu-login__close,
.jcu-login .jcu-login__close:focus {
	position: absolute;
	top: 0.8rem;
	right: 0.9rem;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	padding: 0;
	font-size: 1.5rem;
	line-height: 1;
	color: #7c6f83;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.jcu-login .jcu-login__close:hover {
	background: rgba(104, 38, 126, 0.08);
	color: #68267e;
}

.jcu-login__kicker {
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #68267e;
	margin-bottom: 0.4rem;
}

.jcu-login__dialog h2 {
	margin: 0 0 1.3rem;
	font-size: 1.45rem;
	font-weight: 800;
	color: #221024;
}

.jcu-login__form label {
	display: block;
	margin-bottom: 1rem;
}

.jcu-login__form label > span {
	display: block;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7c6f83;
	margin-bottom: 0.35rem;
}

.jcu-login__form input[type="text"],
.jcu-login__form input[type="password"] {
	width: 100%;
	border: 1px solid #d9cfe0;
	border-radius: 10px;
	padding: 0.7rem 0.9rem;
	font-family: inherit;
	font-size: 0.95rem;
	color: #221024;
	background: #fff;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}

.jcu-login__form input[type="text"]:focus,
.jcu-login__form input[type="password"]:focus {
	border-color: #68267e;
	box-shadow: 0 0 0 3px rgba(104, 38, 126, 0.12);
}

.jcu-login__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0.2rem 0 1.2rem;
}

.jcu-login__remember {
	display: inline-flex !important;
	align-items: center;
	gap: 0.45rem;
	margin: 0 !important;
	font-size: 0.86rem;
	color: #46374d;
	cursor: pointer;
}

.jcu-login__remember input {
	accent-color: #68267e;
}

.jcu-login a.jcu-login__lost,
.jcu-login a.jcu-login__lost:visited {
	font-size: 0.84rem;
	font-weight: 700;
	color: #68267e;
	text-decoration: none;
}

.jcu-login a.jcu-login__lost:hover {
	text-decoration: underline;
}

.jcu-login .jcu-login__submit,
.jcu-login .jcu-login__submit:focus {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #68267e;
	border: 0;
	border-radius: 999px;
	padding: 0.8rem 1.5rem;
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: none;
	color: #fff;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.15s;
}

.jcu-login .jcu-login__submit:hover {
	background: #4f1d60;
	color: #fff;
}

.jcu-login .jcu-login__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.jcu-login__error {
	margin: 0 0 1rem;
	padding: 0.7rem 0.9rem;
	background: #fdf0f3;
	border-left: 3px solid #c0392b;
	color: #8e2c20;
	font-size: 0.86rem;
	line-height: 1.5;
	border-radius: 0 8px 8px 0;
}

/* ==========================================================================
   Live search dropdown v2 — grouped command-palette style
   ========================================================================== */

.jcu-hdr__search-results {
	width: min(520px, 92vw);
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	border-radius: 16px;
	padding: 0.5rem 0 0;
	max-height: min(62vh, 520px);
	overflow-y: auto;
	scrollbar-width: thin;
	box-shadow: 0 24px 60px rgba(20, 5, 25, 0.35);
	animation: jcu-sr-in 0.18s ease;
}

@keyframes jcu-sr-in {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jcu-hdr__search-results {
		animation: none;
	}
}

.jcu-hdr__sr-group {
	display: block;
	padding: 0.65rem 1.2rem 0.3rem;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #9c8fa3;
}

.jcu-hdr__search-results a.jcu-hdr__sr-item {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.55rem 1.2rem;
	color: #221024 !important;
	font-size: 0.93rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.12s;
}

.jcu-hdr__search-results a.jcu-hdr__sr-item:hover,
.jcu-hdr__search-results a.is-active {
	background: rgba(104, 38, 126, 0.08);
}

.jcu-hdr__sr-chip {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: rgba(104, 38, 126, 0.1);
	color: #68267e;
}

.jcu-hdr__sr-chip svg {
	width: 16px;
	height: 16px;
}

.jcu-hdr__sr-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.jcu-hdr__sr-title mark {
	background: rgba(104, 38, 126, 0.16);
	color: inherit;
	border-radius: 3px;
	padding: 0 2px;
}

.jcu-hdr__sr-go {
	flex-shrink: 0;
	color: #c9b3d4;
	font-weight: 800;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.15s, transform 0.15s;
}

.jcu-hdr__search-results a.jcu-hdr__sr-item:hover .jcu-hdr__sr-go,
.jcu-hdr__search-results a.is-active .jcu-hdr__sr-go {
	opacity: 1;
	transform: translateX(0);
	color: #68267e;
}

/* Footer "see all" bar */

.jcu-hdr__search-results a.jcu-hdr__sr-all {
	display: block;
	margin-top: 0.4rem;
	padding: 0.8rem 1.2rem;
	border-top: 1px solid #f1eaf5;
	background: #fdfbfe;
	color: #68267e !important;
	font-size: 0.85rem;
	font-weight: 800;
	text-decoration: none;
	position: sticky;
	bottom: 0;
}

.jcu-hdr__search-results a.jcu-hdr__sr-all:hover,
.jcu-hdr__search-results a.jcu-hdr__sr-all.is-active {
	background: rgba(104, 38, 126, 0.08);
}

/* Empty state */

.jcu-hdr__sr-empty {
	padding: 1.3rem 1.2rem 1rem;
	text-align: left;
}

.jcu-hdr__sr-empty strong {
	display: block;
	color: #221024;
	font-size: 0.95rem;
	margin-bottom: 0.2rem;
}

.jcu-hdr__sr-empty span {
	color: #7c6f83;
	font-size: 0.85rem;
}

/* Loading shimmer */

.jcu-hdr__sr-loading {
	padding: 0.9rem 1.2rem 1.1rem;
}

.jcu-hdr__sr-loading span {
	display: block;
	height: 12px;
	border-radius: 6px;
	margin: 10px 0;
	background: linear-gradient(90deg, #f1eaf5 25%, #faf7fb 50%, #f1eaf5 75%);
	background-size: 200% 100%;
	animation: jcu-sr-shimmer 1.1s infinite linear;
}

.jcu-hdr__sr-loading span:nth-child(2) { width: 75%; }
.jcu-hdr__sr-loading span:nth-child(3) { width: 55%; }

@keyframes jcu-sr-shimmer {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

/* ==========================================================================
   Mobile accordion submenus
   ========================================================================== */

.jcu-hdr__subtoggle {
	display: none;
}

@media (max-width: 820px) {
	.jcu-hdr__menu li {
		position: relative;
	}

	.jcu-hdr .jcu-hdr__subtoggle,
	.jcu-hdr .jcu-hdr__subtoggle:focus {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0;
		right: 0.4rem;
		width: 46px;
		height: 46px;
		background: transparent;
		border: 0;
		border-radius: 10px;
		box-shadow: none;
		padding: 0;
		color: var(--jcuh-primary, #68267e);
		cursor: pointer;
	}

	.jcu-hdr .jcu-hdr__subtoggle svg {
		width: 18px;
		height: 18px;
		transition: transform 0.25s;
	}

	.jcu-hdr__menu li.is-sub-open > .jcu-hdr__subtoggle svg {
		transform: rotate(180deg);
	}

	/* Collapsed by default; the chevron opens them */
	.jcu-hdr__menu li ul {
		display: none;
	}

	.jcu-hdr__menu li.is-sub-open > ul {
		display: block;
	}

	/* Leave room for the chevron so long labels don't sit under it */
	.jcu-hdr__menu > li.menu-item-has-children > a {
		padding-right: 3.4rem;
	}
}

/* ==========================================================================
   Mobile drawer v2 — full-height menu with search, staggered reveal
   ========================================================================== */

body.jcu-nav-open {
	overflow: hidden;
}

/* Kit-proof the toggle: Elementor's global button styles otherwise
   repaint it on hover/focus */
.jcu-hdr .jcu-hdr__toggle,
.jcu-hdr .jcu-hdr__toggle:hover,
.jcu-hdr .jcu-hdr__toggle:focus,
.jcu-hdr .jcu-hdr__toggle:active {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 10px;
	box-shadow: none;
	padding: 8px;
	color: #fff;
}

/* Hamburger morphs into a close cross */
.jcu-hdr__toggle span {
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
}

.jcu-hdr__toggle.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.jcu-hdr__toggle.is-active span:nth-child(2) {
	opacity: 0;
}

.jcu-hdr__toggle.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.jcu-hdr__drawer-extras {
	display: none;
}

@media (max-width: 820px) {

	/* The open nav becomes a white sheet filling the viewport below the
	   purple bar (exact height set by JS); its own scroll, page locked. */
	.jcu-hdr__nav.is-open {
		display: flex;
		flex-direction: column;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		background: #fff;
		animation: jcu-drawer-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	}

	@keyframes jcu-drawer-in {
		from {
			opacity: 0;
			transform: translateY(-10px);
		}
	}

	.jcu-hdr__nav-inner {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		flex: 1;
		width: 100%;
		padding: 0;
	}

	/* Items cascade in one after another */
	.jcu-hdr__nav.is-open .jcu-hdr__menu > li,
	.jcu-hdr__nav.is-open .jcu-hdr__searchwrap,
	.jcu-hdr__nav.is-open .jcu-hdr__drawer-extras {
		animation: jcu-drawer-item 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
		animation-delay: calc(50ms + var(--i, 0) * 26ms);
	}

	@keyframes jcu-drawer-item {
		from {
			opacity: 0;
			transform: translateY(10px);
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.jcu-hdr__nav.is-open,
		.jcu-hdr__nav.is-open .jcu-hdr__menu > li,
		.jcu-hdr__nav.is-open .jcu-hdr__searchwrap,
		.jcu-hdr__nav.is-open .jcu-hdr__drawer-extras {
			animation: none;
		}
	}

	/* --- Search docked at the top of the drawer --- */

	.jcu-hdr__nav .jcu-hdr__searchwrap {
		display: block;
		max-width: none;
		margin: 0;
		padding: 0.75rem 1.25rem 0.7rem;
		border-bottom: 1px solid #f2eef4;
	}

	.jcu-hdr__nav .jcu-hdr__search {
		background: #f5f1f7;
		border: 1px solid #e6dcec;
		border-radius: 12px;
	}

	.jcu-hdr__nav .jcu-hdr__search input[type="search"] {
		/* 16px floor stops iOS zooming the page on focus */
		font-size: 1rem;
		padding: 0.68rem 1rem;
		color: #221024;
	}

	.jcu-hdr__nav .jcu-hdr__search button {
		color: var(--jcuh-primary);
		padding: 0.68rem 0.95rem;
	}

	.jcu-hdr__nav .jcu-hdr__search:focus-within {
		border-color: var(--jcuh-primary);
		box-shadow: 0 0 0 3px rgba(104, 38, 126, 0.14);
	}

	/* An empty results box must never hold space in the drawer */
	.jcu-hdr__nav .jcu-hdr__search-results:empty {
		display: none;
	}

	/* Results flow inline instead of floating */
	.jcu-hdr__nav .jcu-hdr__search-results {
		position: static;
		transform: none;
		width: auto;
		margin-top: 0.6rem;
		border: 1px solid #eee5f1;
		box-shadow: 0 12px 30px rgba(20, 5, 25, 0.12);
		max-height: 46vh;
		animation: none;
	}

	/* --- Menu typography: bigger, ruled, modern --- */

	.jcu-hdr__menu {
		padding-top: 0.35rem;
	}

	.jcu-hdr__menu > li {
		border-bottom: 1px solid #f2eef4;
	}

	.jcu-hdr__menu > li:last-child {
		border-bottom: 0;
	}

	.jcu-hdr__menu > li > a {
		font-size: 1.05rem;
		font-weight: 700;
		color: #221024;
		padding: 0.72rem 1.4rem;
	}

	.jcu-hdr__menu > li.menu-item-has-children > a {
		padding-right: 3.6rem;
	}

	.jcu-hdr__menu li ul {
		background: #faf8fb;
	}

	.jcu-hdr__menu li ul a {
		padding: 0.55rem 1.4rem 0.55rem 2.6rem;
		font-size: 0.95rem;
	}

	/* Chevron centered on the taller rows */
	.jcu-hdr .jcu-hdr__subtoggle,
	.jcu-hdr .jcu-hdr__subtoggle:focus {
		top: 0;
		right: 0.55rem;
		height: 44px;
		width: 48px;
	}

	/* --- Drawer footer: helpline, CTA, socials --- */

	.jcu-hdr__drawer-extras {
		display: block;
		margin-top: auto;
		padding: 1rem 1.4rem 1.3rem;
		border-top: 1px solid #f2eef4;
		background: #faf8fb;
	}

	.jcu-hdr .jcu-hdr__drawer-call,
	.jcu-hdr .jcu-hdr__drawer-call:visited {
		display: flex;
		align-items: center;
		gap: 0.9rem;
		color: #221024 !important;
		text-decoration: none;
		margin-bottom: 0.8rem;
	}

	.jcu-hdr__drawer-ic {
		flex-shrink: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 12px;
		background: rgba(104, 38, 126, 0.1);
		color: var(--jcuh-primary);
	}

	.jcu-hdr__drawer-ic svg {
		width: 20px;
		height: 20px;
	}

	.jcu-hdr__drawer-call small {
		display: block;
		font-size: 0.7rem;
		font-weight: 800;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: #7c6f83;
	}

	.jcu-hdr__drawer-call strong {
		font-size: 1.08rem;
		font-weight: 800;
	}

	.jcu-hdr .jcu-hdr__drawer-cta,
	.jcu-hdr .jcu-hdr__drawer-cta:visited {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		background: var(--jcuh-primary);
		color: #fff !important;
		font-size: 0.98rem;
		font-weight: 800;
		text-decoration: none;
		padding: 0.78rem 1.5rem;
		border-radius: 999px;
		margin-bottom: 1rem;
	}

	.jcu-hdr__drawer-cta svg {
		width: 17px;
		height: 17px;
	}

	.jcu-hdr__drawer-extras .jcu-hdr__social {
		display: flex;
		justify-content: center;
		gap: 1.6rem;
		padding-left: 0;
		border-left: 0;
	}

	.jcu-hdr__drawer-extras .jcu-hdr__social a {
		color: var(--jcuh-primary) !important;
	}

	.jcu-hdr__drawer-extras .jcu-hdr__social svg {
		width: 19px;
		height: 19px;
	}
}

/* ==========================================================================
   Accessibility: skip link + visible keyboard focus
   ========================================================================== */

/* Hidden until it receives keyboard focus, then drops in top-left */
.jcu-skip-link,
.jcu-skip-link:visited {
	position: fixed;
	top: 0;
	left: -9999px;
	z-index: 10000;
	background: #221024;
	color: #fff !important;
	font-family: "Google Sans Flex", -apple-system, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	padding: 0.85rem 1.5rem;
	border-radius: 0 0 12px 0;
	box-shadow: 0 8px 24px rgba(10, 4, 14, 0.4);
}

.jcu-skip-link:focus {
	left: 0;
	outline: 3px solid #fff;
	outline-offset: -6px;
}

/* Keyboard users always see where they are; mouse clicks stay clean.
   :where() keeps specificity at zero so component styles can refine it. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid #68267e;
	outline-offset: 2px;
	border-radius: 2px;
}

/* On dark/purple surfaces a purple ring is invisible — use white there */
.jcu-hdr__top :focus-visible,
.jcu-footer__main :focus-visible,
.jcu-hb--help :focus-visible {
	outline-color: #fff;
}

/* The skipped-to main must not show a ring itself */
main:focus {
	outline: none;
}
