/* ===========================================================================
   MyUniDesk — HEADER stylesheet (independent from footer on purpose).
   Covers: top bar, logo, primary nav, dropdowns, mega menus, Explore/
   Universities/Tools panels, account menu, search overlay, desktop drawer,
   and the mobile slide-in menu (all triggered from the header).
   Colours come from --mud-* CSS vars set per-site in Admin > Styling.
   =========================================================================== */

.mud-hf-header, .mud-hf-header * { box-sizing: border-box; }
.mud-hf-container { max-width: var(--mud-container-width, 1280px); margin: 0 auto; padding: 0 20px; }

/* Header container: constrained + centered on desktop so the bar doesn't
   run edge-to-edge on very wide screens. Written defensively (explicit
   width + !important) because something outside this stylesheet was
   overriding one side of the margin and pushing the bar off-centre. */
.mud-hf-header .mud-hf-container {
	width: 100% !important;
	max-width: 1400px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0 24px !important;
	float: none !important;
}
body.mud-hf-scroll-lock { overflow: hidden; }

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

.mud-hf-header {
	background: var(--mud-header-bg, #fff);
	color: var(--mud-header-text, #111);
	font-family: var(--mud-font, inherit);
	border-bottom: 1px solid rgba(0,0,0,.06);
	position: relative;
	z-index: 100;
	display: flex !important;
	justify-content: center !important;
	width: 100% !important;
}
.mud-hf-header.mud-hf-sticky { position: sticky; top: 0; }

.mud-hf-header .mud-hf-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 56px;
}

.mud-hf-header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.mud-hf-hamburger {
	background: none; border: none; cursor: pointer; padding: 8px;
	display: flex; flex-direction: column; gap: 5px; justify-content: center;
	flex-shrink: 0;
}
.mud-hf-hamburger span { width: 22px; height: 2px; background: currentColor; display: block; border-radius: 2px; }

.mud-hf-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; flex-shrink: 0; min-width: 0; }
.mud-hf-logo-text { font-weight: 800; font-size: 18px; color: var(--mud-primary, #1450F5); white-space: nowrap; }
.mud-hf-logo-img { display: block; height: auto; width: auto !important; max-height: 32px; max-width: 100%; flex-shrink: 0; }

/* Primary nav */
.mud-hf-nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mud-hf-nav-item { position: relative; }
.mud-hf-nav-link {
	display: flex; align-items: center; gap: 5px;
	padding: 8px 9px; text-decoration: none; color: inherit; font-weight: 600; font-size: 13.5px;
	border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.mud-hf-nav-link:hover, .mud-hf-nav-item.is-open .mud-hf-nav-link { background: rgba(0,0,0,.04); }
.mud-hf-caret { font-size: 11px; transition: transform .15s ease; }
.mud-hf-nav-item.is-open .mud-hf-caret { transform: rotate(180deg); }

.mud-hf-badge {
	background: var(--mud-primary, #1450F5); color: #fff; font-size: 10px; font-weight: 700;
	padding: 1px 6px; border-radius: 999px; line-height: 1.6; text-transform: uppercase;
}
.mud-hf-icon { line-height: 1; }

/* Dropdown */
.mud-hf-dropdown {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
	list-style: none; margin: 8px 0 0; padding: 8px; opacity: 0; visibility: hidden;
	transform: translateY(6px); transition: all .15s ease; z-index: 50;
}
.mud-hf-nav-item.is-open .mud-hf-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mud-hf-dropdown li a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; text-decoration: none; color: #111; font-size: 14px; }
.mud-hf-dropdown li a:hover { background: #f4f5f7; }

/* Mega menu */
.mud-hf-mega {
	position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
	width: min(920px, 90vw); background: #fff; border-radius: 14px; box-shadow: 0 20px 48px rgba(0,0,0,.14);
	opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; z-index: 50; padding: 24px;
}
.mud-hf-nav-item.is-open .mud-hf-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* Portaled to <body> by JS (mud-hf-frontend.js, initMegaPortal) so page-
   builder ancestor wrappers (Elementor sections etc.) with their own
   "overflow: hidden" or transform-based stacking context can't clip or bury
   it. Once portaled, JS sets exact top/left inline and toggles ".is-open"
   on the panel itself instead of relying on the ".mud-hf-nav-item.is-open"
   ancestor selector above (which no longer applies once it's moved out). */
/* Generic portal base — used by mega panels, simple nav dropdowns, and the
   account dropdown once JS moves them to a direct child of <body> (see
   mud-hf-frontend.js, portalize()/positionPortal()). Escapes any ancestor
   "overflow: hidden" that would otherwise clip them, and any ancestor (or
   body/html) "transform" that would otherwise hijack "position: fixed" —
   JS adds .mud-hf-portal-absolute and switches to scroll-aware absolute
   coordinates automatically when that's detected. */
.mud-hf-portal {
	position: fixed !important; top: 0; left: 0;
	right: auto !important; margin: 0 !important; transform: none !important;
	z-index: 999999; max-width: calc(100vw - 16px);
}
.mud-hf-portal.mud-hf-portal-absolute { position: absolute !important; }
.mud-hf-portal.is-open { opacity: 1; visibility: visible; }
.mud-hf-mega-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.mud-hf-mega-col h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.mud-hf-mega-col ul { list-style: none; margin: 0; padding: 0; }
.mud-hf-mega-col-image { width: 100%; border-radius: 8px; margin-bottom: 10px; }
.mud-hf-mega-col li a { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; text-decoration: none; color: #111; font-size: 14px; font-weight: 600; }
.mud-hf-mega-col li a small { display: block; font-weight: 400; color: #6b7280; font-size: 12.5px; }
.mud-hf-mega-cta {
	display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 8px;
	background: var(--mud-primary, #1450F5); color: #fff !important; text-decoration: none; font-size: 13px; font-weight: 700;
}

/* ---------------- Explore Programs / Universities / Tools panel sizing ---------------- */

.mud-hf-mega-explore { width: min(1120px, 94vw); padding: 0; overflow: hidden; }
.mud-hf-mega-universities { width: min(400px, 92vw); padding: 18px; }
.mud-hf-mega-tools { width: min(640px, 92vw); padding: 26px 30px; }

/* Close (×) button, top-right of the Explore Programs panel */
.mud-hf-explore-close {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
	background: none; border: none; border-radius: 999px; cursor: pointer;
	font-size: 20px; line-height: 1; color: #6b7280;
}
.mud-hf-explore-close:hover { background: #f4f5f7; color: #111; }

/* Standalone in-page version, via [mud_explore_programs] — same panel,
   but a normal static block (no absolute positioning, no close button)
   with its own card chrome since it's no longer inside the floating mega. */
.mud-hf-explore-standalone {
	max-width: 1120px; margin: 0 auto; background: #fff; border: 1px solid #eef0f3;
	border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.06); overflow: hidden;
}
@media (max-width: 700px) {
	.mud-hf-explore-standalone .mud-hf-explore-panel { flex-direction: column; }
	.mud-hf-explore-standalone .mud-hf-explore-topics {
		width: 100%; max-height: none; overflow-x: auto; overflow-y: visible;
		display: flex; align-items: center; border-right: none; border-bottom: 1px solid #eef0f3;
	}
	.mud-hf-explore-standalone .mud-hf-explore-topics-heading { display: none; }
	.mud-hf-explore-standalone .mud-hf-explore-topic {
		width: auto; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent;
	}
	.mud-hf-explore-standalone .mud-hf-explore-topic:hover,
	.mud-hf-explore-standalone .mud-hf-explore-topic.is-active { border-left-color: transparent; border-bottom-color: var(--mud-primary, #1450F5); }
	.mud-hf-explore-standalone .mud-hf-program-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.mud-hf-explore-standalone .mud-hf-program-grid { grid-template-columns: 1fr; }
}

/* ---- Explore Programs: fixed left topics, independently scrollable right programs ---- */

.mud-hf-explore-panel { display: flex; align-items: stretch; }

.mud-hf-explore-topics {
	width: 260px; flex-shrink: 0; background: #f7f8fb; border-right: 1px solid #eef0f3;
	padding: 10px 0; overflow-y: auto; max-height: 500px;
}
.mud-hf-explore-topics-heading {
	padding: 8px 18px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
	color: var(--mud-primary, #1450F5);
}
.mud-hf-explore-topic {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
	background: none; border: none; border-left: 3px solid transparent; text-align: left; cursor: pointer;
	padding: 11px 18px; font-size: 14px; font-weight: 600; color: #333; font-family: inherit;
}
.mud-hf-explore-topic-text { display: flex; flex-direction: column; gap: 2px; }
.mud-hf-explore-topic-sub { font-weight: 400; font-size: 11.5px; color: #8a8f9c; }
.mud-hf-explore-topic-arrow { font-size: 16px; color: #c2c6cf; transition: transform .15s ease, color .15s ease; flex-shrink: 0; }
.mud-hf-explore-topic:hover,
.mud-hf-explore-topic.is-active { background: #fff; color: var(--mud-primary, #1450F5); border-left-color: var(--mud-primary, #1450F5); }
.mud-hf-explore-topic.is-active .mud-hf-explore-topic-arrow { color: var(--mud-primary, #1450F5); transform: translateX(2px); }

.mud-hf-explore-programs { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.mud-hf-explore-search {
	display: flex; align-items: center; gap: 8px; margin: 18px 22px 0;
	border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 14px; flex-shrink: 0;
}
.mud-hf-explore-search .dashicons { color: #9ca3af; }
.mud-hf-explore-search-input { border: none; outline: none; flex: 1; font-size: 14px; font-family: inherit; background: transparent; color: inherit; }

.mud-hf-explore-groups { flex: 1; min-width: 0; }
.mud-hf-explore-program-group { display: none; max-height: 500px; overflow-y: auto; padding: 18px 22px 22px; }
.mud-hf-explore-program-group.is-active { display: block; }
.mud-hf-explore-empty { color: #9ca3af; font-size: 13.5px; text-align: center; padding: 30px 0; margin: 0; }

.mud-hf-explore-search-results { max-height: 500px; overflow-y: auto; padding: 14px 22px 22px; }
.mud-hf-explore-search-empty { color: #9ca3af; font-size: 13.5px; text-align: center; padding: 30px 0; margin: 0; }

.mud-hf-program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mud-hf-program-card {
	display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid #eef0f3; border-radius: 12px;
	text-decoration: none; color: #1f2430; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.mud-hf-program-card:hover { border-color: var(--mud-primary, #1450F5); box-shadow: 0 10px 24px rgba(20,80,245,.12); transform: translateY(-1px); }
.mud-hf-program-card-head { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.mud-hf-program-card-icon {
	width: 30px; height: 30px; border-radius: 8px; background: #eef2ff; color: var(--mud-primary, #1450F5);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mud-hf-program-card-icon svg { width: 16px; height: 16px; }
.mud-hf-badge-soft { background: #ecfdf3; color: #16a34a; }
.mud-hf-program-card-title { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.mud-hf-program-card-spec {
	display: inline-block; width: fit-content; font-size: 11.5px; font-weight: 600; color: var(--mud-primary, #1450F5);
	background: #eef2ff; padding: 2px 9px; border-radius: 999px;
}
.mud-hf-program-card-compare { font-size: 12.5px; color: #6b7280; display: flex; align-items: center; gap: 6px; }
.mud-hf-program-card-compare::before { content: ''; width: 5px; height: 5px; border-radius: 999px; background: #22c55e; flex-shrink: 0; }
.mud-hf-program-card-link { margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--mud-primary, #1450F5); display: flex; align-items: center; gap: 4px; }

/* ---- Top Universities: search + scrollable card list ---- */

.mud-hf-uni-panel { display: flex; flex-direction: column; gap: 12px; }
.mud-hf-uni-search { display: flex; align-items: center; gap: 8px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 12px; }
.mud-hf-uni-search .dashicons { color: #9ca3af; }
.mud-hf-uni-search input { border: none; outline: none; flex: 1; font-size: 14px; font-family: inherit; background: transparent; color: inherit; }
.mud-hf-uni-grid { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.mud-hf-uni-card { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: #1f2430; border: 1px solid transparent; }
.mud-hf-uni-card:hover { background: #f7f8fb; border-color: #eef0f3; }
.mud-hf-uni-card-logo {
	width: 42px; height: 42px; border-radius: 8px; background: #eef2ff; color: var(--mud-primary, #1450F5);
	flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 800; font-size: 15px;
}
.mud-hf-uni-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.mud-hf-uni-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mud-hf-uni-card-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mud-hf-uni-card-approval { font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mud-hf-uni-card-specs { font-size: 11px; font-weight: 600; color: var(--mud-primary, #1450F5); }
.mud-hf-uni-empty { text-align: center; color: #9ca3af; font-size: 13px; padding: 20px 0; margin: 0; }

/* ---- Tools: grouped, two-column icon list ---- */

.mud-hf-tools-panel { display: flex; flex-direction: column; gap: 22px; }
.mud-hf-tools-group h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #9199a8; font-weight: 700; }
.mud-hf-tools-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 30px; }
.mud-hf-tools-list li { break-inside: avoid; }
.mud-hf-tools-list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: #1f2430; font-size: 13.5px; font-weight: 600; }
.mud-hf-tools-list a:hover { color: var(--mud-primary, #1450F5); }
.mud-hf-tool-icon {
	width: 27px; height: 27px; border-radius: 7px; background: #eef2ff; color: var(--mud-primary, #1450F5);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mud-hf-tool-icon svg { width: 15px; height: 15px; }

/* Header right */
.mud-hf-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mud-hf-icon-btn { background: none; border: none; cursor: pointer; padding: 7px; border-radius: 8px; color: inherit; display: flex; flex-shrink: 0; }
.mud-hf-icon-btn:hover { background: rgba(0,0,0,.05); }

/* Inline (in-flow) variant of the promo badge — e.g. next to a nav label */
.mud-hf-promo-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; line-height: 1.4; }

/* Wraps the "Compare" CTA so the floating corner badge (below) can be
   positioned relative to it, instead of relative to the whole header —
   that's what lets the badge sit pinned to the CTA's top edge at any
   viewport width instead of drifting toward the header's right edge. */
.mud-hf-compare-wrap { position: relative; display: inline-flex; flex-shrink: 0; }

/* Corner variant: a small pinned "flag" above the CTA, not a full pill —
   kept visually distinct from the pill-shaped buttons around it. */
.mud-hf-promo-badge-corner {
	position: absolute; top: -14px; left: 14px; right: auto;
	border-radius: 6px; padding: 4px 9px; font-size: 11px; gap: 4px;
	box-shadow: 0 2px 6px rgba(0,0,0,.15); z-index: 1;
}

.mud-hf-compare-cta {
	display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 999px;
	text-decoration: none; font-weight: 700; font-size: 12.5px; white-space: nowrap; flex-shrink: 0;
	border: 1px solid rgba(0,0,0,.05);
}

.mud-hf-login-btn {
	display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px; border-radius: 999px;
	text-decoration: none; font-weight: 700; font-size: 12.5px; white-space: nowrap; flex-shrink: 0;
	background: var(--mud-primary, #1450F5); color: #fff !important;
	transition: opacity .15s ease;
}
.mud-hf-login-btn:hover { opacity: .88; }

/* "Search" pill is now an icon-only button, matching the other icon buttons
   in the header (compact, no label/divider — saves width so the right
   side of the header stops overflowing on narrower desktop screens). */
.mud-hf-search-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	background: var(--mud-search-bg, #eef2ff); color: var(--mud-primary, #1450F5);
	border: 1px solid rgba(0,0,0,.05); border-radius: 999px; cursor: pointer; font-family: inherit;
	flex-shrink: 0; padding: 0; transition: opacity .15s ease;
}
.mud-hf-search-btn:hover { opacity: .85; }
.mud-hf-search-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* Account */
.mud-hf-account { position: relative; }
.mud-hf-account-toggle { display: flex; align-items: center; gap: 5px; }
.mud-hf-account-link { display: flex; align-items: center; gap: 5px; text-decoration: none; }
.mud-hf-account-name { font-weight: 600; font-size: 12.5px; }
.mud-hf-account-dropdown {
	position: absolute; top: 100%; right: 0; min-width: 200px; list-style: none; margin: 8px 0 0; padding: 8px;
	background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
	display: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease; z-index: 50;
}
.mud-hf-account.is-open .mud-hf-account-dropdown { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
.mud-hf-account-dropdown.mud-hf-portal { z-index: 2147483000; }
.mud-hf-account-dropdown.mud-hf-portal.is-open { display: block; opacity: 1; visibility: visible; }
.mud-hf-account-toggle .mud-hf-caret { font-size: 11px; opacity: .7; }
.mud-hf-account-dropdown li a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; text-decoration: none; color: #111; font-size: 14px; }
.mud-hf-account-dropdown li a:hover { background: #f4f5f7; }

/* Search overlay */
.mud-hf-search-overlay {
	position: fixed; inset: 0; background: rgba(15,17,23,.55); z-index: 300;
	display: flex; align-items: flex-start; justify-content: center; padding: 10vh 20px;
	opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.mud-hf-search-overlay.is-open { opacity: 1; pointer-events: auto; }
.mud-hf-search-box {
	background: #fff; width: min(640px, 100%); border-radius: 14px; padding: 14px 18px;
	display: flex; align-items: center; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.mud-hf-search-box input { flex: 1; border: none; outline: none; font-size: 16px; }
.mud-hf-search-results { background: #fff; width: min(640px, 100%); margin-top: 8px; border-radius: 14px; max-height: 50vh; overflow: auto; }
.mud-hf-search-results ul { list-style: none; margin: 0; padding: 8px; }
.mud-hf-search-results li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 8px; text-decoration: none; color: #111; }
.mud-hf-search-results li a:hover { background: #f4f5f7; }
.mud-hf-search-results small { color: #9ca3af; }
.mud-hf-search-loading, .mud-hf-search-empty { padding: 16px; color: #6b7280; text-align: center; margin: 0; }

/* ---------------- Desktop Drawer ---------------- */

.mud-hf-drawer {
	position: fixed; inset: 0 auto 0 0; width: min(720px, 92vw); background: var(--mud-drawer-bg, #fff);
	z-index: 400; transform: translateX(-100%); transition: transform .28s ease; overflow-y: auto;
	box-shadow: 20px 0 60px rgba(0,0,0,.2);
}
.mud-hf-drawer.is-open { transform: translateX(0); }
.mud-hf-drawer-close { position: absolute; top: 16px; right: 16px; background: #f4f5f7; border: none; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; }
.mud-hf-drawer-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; min-height: 100%; }
.mud-hf-drawer-col { padding: 56px 32px 32px; }
.mud-hf-drawer-right { background: #eef2ff; }
.mud-hf-drawer-col h3 { font-size: 16px; color: var(--mud-primary, #1450F5); margin: 0 0 14px; }
.mud-hf-drawer-col ul { list-style: none; margin: 0 0 22px; padding: 0; }
.mud-hf-drawer-col li a { display: flex; align-items: center; gap: 8px; padding: 9px 0; text-decoration: none; color: #1f2430; font-size: 14.5px; }
.mud-hf-drawer-section { margin-bottom: 26px; }
.mud-hf-drawer-contact li { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14.5px; color: #1f2430; }
.mud-hf-drawer-contact a { color: inherit; text-decoration: none; }

.mud-hf-drawer-backdrop { position: fixed; inset: 0; background: rgba(15,17,23,.5); z-index: 390; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.mud-hf-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------------- Mobile Menu ---------------- */

.mud-hf-mobile-menu {
	position: fixed; inset: 0; width: 100%; height: 100%; background: var(--mud-drawer-bg, #fff);
	z-index: 400; transform: translateY(100%); transition: transform .28s ease;
	display: flex; flex-direction: column;
}
.mud-hf-mobile-menu.is-open { transform: translateY(0); }
.mud-hf-mobile-menu-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; border-bottom: 1px solid #eee; }
.mud-hf-mobile-logo { display: flex; align-items: center; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.mud-hf-mobile-logo-img { display: block; height: auto; max-height: 28px; max-width: 100%; }
.mud-hf-mobile-tagline { font-weight: 800; color: var(--mud-primary, #1450F5); white-space: nowrap; }
.mud-hf-mobile-close { background: #f4f5f7; border: none; border-radius: 999px; width: 34px; height: 34px; cursor: pointer; }
.mud-hf-mobile-menu-body { flex: 1; overflow-y: auto; padding: 8px 20px 40px; -webkit-overflow-scrolling: touch; }

.mud-hf-mobile-section { border-bottom: 1px solid #eee; padding: 16px 0; }
.mud-hf-mobile-section h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--mud-primary, #1450F5); }
.mud-hf-mobile-list, .mud-hf-mobile-submenu { list-style: none; margin: 0; padding: 0; }
.mud-hf-mobile-submenu { padding-left: 14px; display: none; }
.mud-hf-mobile-item.is-expanded > .mud-hf-mobile-submenu { display: block; }

.mud-hf-mobile-item-row { display: flex; align-items: center; justify-content: space-between; }
.mud-hf-mobile-item-link { flex: 1; display: flex; align-items: center; gap: 8px; padding: 11px 0; text-decoration: none; color: #1f2430; font-size: 15px; }
.mud-hf-mobile-item-toggle { background: none; border: none; padding: 10px; cursor: pointer; color: #6b7280; }
.mud-hf-mobile-item.is-expanded > .mud-hf-mobile-item-row .mud-hf-caret { transform: rotate(90deg); display: inline-block; }
.mud-hf-mobile-item-toggle .mud-hf-caret { transition: transform .15s ease; display: inline-block; }

.mud-hf-contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.mud-hf-contact-card {
	display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
	padding: 14px 10px; border: 1px solid #eee; border-radius: 12px; text-decoration: none; color: #1f2430;
}
.mud-hf-contact-card-label { font-weight: 700; font-size: 13.5px; }
.mud-hf-contact-card-desc { font-size: 11.5px; color: #6b7280; }

.mud-hf-mobile-greeting { margin: 8px 0 14px; }
.mud-hf-mobile-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mud-hf-mobile-account-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
	background: #f4f5f7; text-decoration: none; color: #1f2430; font-size: 13.5px; font-weight: 600;
}

.mud-hf-mobile-backdrop { position: fixed; inset: 0; background: rgba(15,17,23,.5); z-index: 390; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.mud-hf-mobile-backdrop.is-open { opacity: 1; pointer-events: auto; }

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

@media (max-width: 1100px) {
	.mud-hf-nav-list { gap: 0; }
	.mud-hf-nav-link { padding: 8px 6px; font-size: 13px; }
	.mud-hf-mega-explore { width: min(760px, 92vw); }
	.mud-hf-explore-topics { width: 210px; }
	.mud-hf-program-grid { grid-template-columns: repeat(2, 1fr); }
	.mud-hf-account-name { display: none; }
}

@media (max-width: 1300px) and (min-width: 1101px) {
	.mud-hf-mega-explore { width: min(900px, 92vw); }
	.mud-hf-program-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 782px) {
	.mud-hf-container { padding: 0 14px; }
	.mud-hf-header .mud-hf-container { padding: 0 14px; gap: 10px; min-height: 58px; }

	/* The full desktop menu was never hidden on mobile — it was fighting the
	   logo and right-side icons for space in the same row, which is what
	   squeezed the logo out and made the bar look crowded/misaligned.
	   Mobile uses the hamburger drawer / mobile menu instead. */
	.mud-hf-nav { display: none; }

	.mud-hf-header-left { gap: 6px; flex-shrink: 0; }
	.mud-hf-header-right { gap: 8px; flex-shrink: 0; align-items: center; }

	/* Hamburger sits flush against the logo — no extra click-padding on its
	   right side, since that padding was reading as a big visual gap. */
	.mud-hf-hamburger { padding: 4px 2px 4px 0; margin: 0; }
	.mud-hf-hamburger span { width: 18px; }
	.mud-hf-logo { gap: 6px; margin-left: 0; }

	/* Logo: give it real height so it doesn't look squashed next to the
	   hamburger, and let the width follow naturally. */
	.mud-hf-logo-img { max-height: 38px; width: auto; object-fit: contain; }
	.mud-hf-logo-text { font-size: 18px; }

	.mud-hf-account-name { display: none; }

	/* AI-Powered badge: on mobile it drops the floating "flag over the
	   Compare button" treatment and sits inline, right before Compare —
	   "Logo ... space ... AI-Powered | Compare". */
	.mud-hf-compare-wrap { align-items: center; gap: 6px; }
	.mud-hf-promo-badge,
	.mud-hf-promo-badge-corner { font-size: 10px; padding: 4px 8px; gap: 3px; line-height: 1.4; }
	.mud-hf-promo-badge-corner {
		position: static; top: auto; left: auto; box-shadow: none;
	}

	.mud-hf-icon-btn { padding: 5px; }
	.mud-hf-icon-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
	.mud-hf-compare-cta { font-size: 11.5px; padding: 7px 12px; gap: 4px; border-radius: 7px; }
	.mud-hf-login-btn { font-size: 11px; padding: 6px 11px; gap: 4px; }

	/* Mobile header shows the hamburger, logo, the AI-Powered badge, and the
	   Compare button. Search and account/login stay tucked behind the
	   hamburger — they're already available inside the mobile slide-in menu
	   (#mud-hf-mobile-menu) via its Account/Contact sections. */
	.mud-hf-search-btn,
	.mud-hf-account,
	.mud-hf-login-btn { display: none !important; }

	.mud-hf-drawer-inner { grid-template-columns: 1fr; }
	.mud-hf-drawer-col { padding: 56px 20px 24px; }
	.mud-hf-contact-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
	.mud-hf-header .mud-hf-container { min-height: 50px; gap: 8px; }
	.mud-hf-header-left { gap: 2px; }
	.mud-hf-header-right { gap: 6px; }
	.mud-hf-logo-img { max-height: 32px; }
	.mud-hf-logo-text { font-size: 16px; }
	.mud-hf-promo-badge { font-size: 9px; padding: 3px 7px; }
	.mud-hf-promo-badge span.mud-hf-icon { margin-right: -2px; }
	.mud-hf-compare-cta span.mud-hf-icon { display: none; }
	.mud-hf-compare-cta { padding: 6px 10px; font-size: 11px; }
	.mud-hf-login-btn { padding: 5px 9px; font-size: 10.5px; }
	.mud-hf-contact-cards { grid-template-columns: 1fr 1fr; }
	.mud-hf-drawer { width: 100vw; }
	.mud-hf-mobile-logo-img { max-height: 28px; }
	.mud-hf-mobile-tagline { display: none; }
}

@media (max-width: 360px) {
	.mud-hf-header .mud-hf-container { padding: 0 10px; }
	.mud-hf-header-left { gap: 2px; }
	.mud-hf-header-right { gap: 5px; }
	.mud-hf-promo-badge { padding: 3px 6px; font-size: 8.5px; }
	.mud-hf-compare-cta, .mud-hf-login-btn { font-size: 10px; padding: 5px 8px; }
	.mud-hf-logo-img { max-height: 28px; }
	.mud-hf-logo-text { font-size: 14px; }
}

/* prevent any horizontal overflow */
.mud-hf-header, .mud-hf-drawer, .mud-hf-mobile-menu { max-width: 100%; overflow-x: hidden; }
