/* ebd/navigation */
.ebd-nav {
	--nav-ink: var(--wp--preset--color--ink);
	--nav-soft: var(--wp--preset--color--ink-soft);
	--nav-bg: var(--wp--preset--color--base);
	--nav-line: var(--wp--preset--color--line);
	--nav-primary: var(--wp--preset--color--primary);
	--ease: cubic-bezier(.16, 1, .3, 1);
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	justify-content: flex-end;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
}
.ebd-nav ul { list-style: none; margin: 0; padding: 0; }
.ebd-nav a { text-decoration: none; color: inherit; }

/* Burger (mobile) */
.ebd-nav__burger {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 999px;
	border: 1px solid var(--nav-line); background: var(--nav-bg); color: var(--nav-ink);
	cursor: pointer; position: relative; z-index: 3;
}
.ebd-nav__burger-lines { position: relative; width: 18px; height: 12px; display: block; }
.ebd-nav__burger-lines span {
	position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
	transition: transform .35s var(--ease), opacity .2s;
}
.ebd-nav__burger-lines span:nth-child(1) { top: 0; }
.ebd-nav__burger-lines span:nth-child(2) { top: 5px; }
.ebd-nav__burger-lines span:nth-child(3) { top: 10px; }
.ebd-nav.is-drawer-open .ebd-nav__burger-lines span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.ebd-nav.is-drawer-open .ebd-nav__burger-lines span:nth-child(2) { opacity: 0; }
.ebd-nav.is-drawer-open .ebd-nav__burger-lines span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.ebd-nav__link {
	display: inline-flex; align-items: center; padding: .55rem .85rem; border-radius: 999px;
	color: var(--nav-ink); font-weight: 550; position: relative; z-index: 1;
	transition: color .2s;
}
.ebd-nav__item.is-active > .ebd-nav__link,
.ebd-nav__link[aria-current="page"] { color: var(--nav-primary); }
.ebd-nav__toggle {
	display: inline-flex; align-items: center; justify-content: center; border: 0; background: none;
	color: var(--nav-soft); cursor: pointer; padding: .35rem; margin-left: -.55rem; border-radius: 999px; position: relative; z-index: 1;
}
.ebd-nav__toggle .ebd-icon { transition: transform .3s var(--ease); }
.ebd-nav__item.is-open > .ebd-nav__toggle .ebd-icon { transform: rotate(180deg); }

.ebd-nav__actions { display: flex; align-items: center; gap: .5rem; }
.ebd-nav__phone {
	display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem .5rem .5rem; border-radius: 999px;
	font-weight: 600; color: var(--nav-ink); white-space: nowrap;
}
.ebd-nav__phone-icon {
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
	background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-strong);
}
.ebd-nav__cta {
	display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 999px;
	background: var(--nav-ink); color: var(--nav-bg) !important; font-weight: 600; white-space: nowrap;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s;
}
.ebd-nav__cta:hover { background: var(--wp--preset--color--primary-strong); color: var(--wp--preset--color--on-primary) !important; transform: translateY(-1px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--nav-primary) 70%, transparent); }
.ebd-nav__cta .ebd-icon { transition: transform .3s var(--ease); }
.ebd-nav__cta:hover .ebd-icon { transform: translateX(3px); }

/* Shared panel content */
.ebd-mega__title { display: block; font-weight: 600; color: var(--nav-ink); }
.ebd-mega__desc { display: block; font-family: var(--wp--preset--font-family--body); font-size: .8125rem; line-height: 1.45; color: var(--nav-soft); margin-top: .15rem; font-weight: 400; }

/* ================= Desktop ================= */
@media (min-width: 1024px) {
	.ebd-nav__burger, .ebd-nav__scrim { display: none; }
	.ebd-nav__panel { display: flex; align-items: center; gap: 1rem; flex: 1 1 auto; justify-content: space-between; }
	/* Not positioned on purpose: mega panels must use the header as their containing block. */
	.ebd-nav__rail { margin-inline: auto; }
	.ebd-nav__list { display: flex; align-items: center; gap: .15rem; }
	.ebd-nav__item { display: flex; align-items: center; }
	.ebd-nav__item.has-dropdown { position: relative; }

	.ebd-nav__indicator {
		position: absolute; top: 0; left: 0; height: 38px; width: var(--w, 0); border-radius: 999px;
		transform: translate(var(--x, 0), calc(var(--y, 0px) - 50%)); background: var(--wp--preset--color--surface-2);
		opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s; pointer-events: none;
	}
	.ebd-nav__indicator.is-visible { opacity: 1; }

	/* Panels: hidden until open, animate in */
	.ebd-mega, .ebd-dropdown {
		position: absolute; top: 100%; z-index: 50;
		opacity: 0; visibility: hidden; pointer-events: none;
		transform: translateY(-6px) scale(.985); transform-origin: top center;
		transition: opacity .22s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
	}
	.ebd-nav__item.is-open > .ebd-mega,
	.ebd-nav__item.is-open > .ebd-dropdown {
		opacity: 1; visibility: visible; pointer-events: auto; transform: none;
		transition: opacity .22s var(--ease), transform .35s var(--ease), visibility 0s;
	}
	/* Hover bridge so the pointer can travel from link to panel */
	.ebd-mega::before, .ebd-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }

	.ebd-dropdown {
		left: 50%; translate: -50% 0; min-width: 280px; padding: .5rem; margin-top: 10px;
		background: var(--nav-bg); border: 1px solid var(--nav-line); border-radius: 18px;
		box-shadow: 0 30px 60px -20px rgba(11, 22, 34, .25), 0 2px 6px rgba(11, 22, 34, .05);
	}
	.ebd-dropdown__link { display: block; padding: .7rem .9rem; border-radius: 12px; transition: background .2s; }
	.ebd-dropdown__link:hover, .ebd-dropdown__link:focus-visible { background: var(--wp--preset--color--surface); }

	/* Mega: full width of the header */
	.ebd-mega { left: 0; right: 0; padding: 10px clamp(1rem, 4vw, 2.5rem) 0; }
	.ebd-mega__inner {
		max-width: var(--wp--style--global--wide-size, 1920px); margin: 0 auto;
		display: grid; grid-template-columns: 1fr 300px; gap: 0; overflow: hidden;
		background: var(--nav-bg); border: 1px solid var(--nav-line); border-radius: 24px;
		box-shadow: 0 40px 80px -30px rgba(11, 22, 34, .35), 0 2px 6px rgba(11, 22, 34, .05);
	}
	.ebd-mega__inner:has(> .ebd-mega__part) { display: block; }
	.ebd-mega__part { padding: 1.5rem; }
	.ebd-mega__main { padding: 1.5rem; display: grid; gap: 1.25rem; }
	.ebd-mega__cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1.5rem; }
	.ebd-mega__heading {
		display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
		color: var(--nav-soft) !important; padding: 0 .75rem .5rem;
	}
	.ebd-mega__link { display: block; padding: .6rem .75rem; border-radius: 12px; transition: background .2s; }
	.ebd-mega__link:hover, .ebd-mega__link:focus-visible { background: var(--wp--preset--color--surface); }
	.ebd-mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; }
	.ebd-mega__card { display: flex; gap: .85rem; align-items: flex-start; padding: .8rem; border-radius: 14px; transition: background .2s, transform .3s var(--ease); }
	.ebd-mega__card:hover, .ebd-mega__card:focus-visible { background: var(--wp--preset--color--surface); }
	.ebd-mega__card:hover .ebd-mega__badge { background: var(--nav-primary); color: var(--wp--preset--color--on-primary); transform: rotate(-6deg) scale(1.05); }
	.ebd-mega__badge {
		flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
		background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-strong);
		font-weight: 700; transition: all .35s var(--ease);
	}
	.ebd-mega__feature {
		padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; justify-content: flex-end;
		background:
			radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent) 0%, transparent 60%),
			radial-gradient(100% 80% at 0% 100%, color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent) 0%, transparent 60%),
			#0B1622;
		color: #fff;
	}
	.ebd-mega__eyebrow { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
	.ebd-mega__feature-text { margin: 0; font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
	.ebd-mega__cta { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; padding: .65rem 1rem; border-radius: 999px; background: #fff; color: #0B1622 !important; font-weight: 600; }
	.ebd-mega__phone { display: inline-flex; align-items: center; gap: .4rem; color: #fff !important; opacity: .85; }

	/* Stagger the panel's links in */
	.ebd-nav__item.is-open .ebd-mega__link,
	.ebd-nav__item.is-open .ebd-mega__card { animation: ebd-nav-rise .45s var(--ease) both; }
	.ebd-nav__item.is-open li:nth-child(2) > a { animation-delay: .03s; }
	.ebd-nav__item.is-open li:nth-child(3) > a { animation-delay: .06s; }
	.ebd-nav__item.is-open li:nth-child(4) > a { animation-delay: .09s; }
	.ebd-nav__item.is-open li:nth-child(5) > a { animation-delay: .12s; }
	.ebd-nav__item.is-open li:nth-child(n+6) > a { animation-delay: .15s; }
}
@keyframes ebd-nav-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Dim the page while a mega panel is open */
html.ebd-mega-open main, html.ebd-mega-open .wp-site-blocks > footer { filter: blur(2px); opacity: .55; transition: filter .3s, opacity .3s; }
main, .wp-site-blocks > footer { transition: filter .3s, opacity .3s; }

/* ================= Mobile drawer ================= */
@media (max-width: 1023.98px) {
	.ebd-nav { flex: 0 0 auto; }
	.ebd-nav__panel {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 2; box-sizing: border-box;
		display: flex; flex-direction: column; gap: 1.25rem; overflow-y: auto; overscroll-behavior: contain;
		padding: 5.5rem 1.25rem 2rem; background: var(--nav-bg);
		box-shadow: -30px 0 60px -30px rgba(11, 22, 34, .3);
		/* Wipe in with clip-path rather than translating off-screen: an off-screen
		   fixed panel widens the mobile layout viewport and causes sideways scroll. */
		clip-path: inset(0 0 0 100%); visibility: hidden;
		transition: clip-path .55s var(--ease), visibility 0s linear .55s;
	}
	.ebd-nav.is-drawer-open .ebd-nav__panel { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease), visibility 0s; }
	.ebd-nav__scrim {
		position: fixed; inset: 0; z-index: 1; background: rgba(11, 22, 34, .35); backdrop-filter: blur(4px);
		opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s;
	}
	.ebd-nav.is-drawer-open .ebd-nav__scrim { opacity: 1; visibility: visible; transition: opacity .3s; }
	.ebd-nav__indicator { display: none; }
	.ebd-nav__item { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--nav-line); }
	.ebd-nav__link { font-size: 1.25rem; padding: 1rem .25rem; border-radius: 0; font-weight: 650; letter-spacing: -.01em; }
	.ebd-nav__toggle { margin: 0; width: 40px; height: 40px; background: var(--wp--preset--color--surface); }
	.ebd-mega, .ebd-dropdown {
		grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease);
	}
	.ebd-mega > *, .ebd-dropdown > * { overflow: hidden; min-height: 0; }
	.ebd-nav__item.is-open > .ebd-mega, .ebd-nav__item.is-open > .ebd-dropdown { grid-template-rows: 1fr; }
	.ebd-mega__inner, .ebd-dropdown > ul { padding-bottom: .75rem; }
	.ebd-mega__feature { display: none; }
	.ebd-mega__heading { display: block; margin: .75rem 0 .25rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--nav-soft) !important; }
	.ebd-mega__link, .ebd-mega__card, .ebd-dropdown__link { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .25rem; }
	.ebd-mega__badge { display: none; }
	.ebd-nav__actions { flex-direction: column; align-items: stretch; margin-top: auto; }
	.ebd-nav__cta, .ebd-nav__phone { justify-content: center; padding: 1rem; font-size: 1rem; }
	.ebd-nav__phone { border: 1px solid var(--nav-line); }
	.ebd-nav.is-drawer-open .ebd-nav__item { animation: ebd-nav-rise .5s var(--ease) both; }
	.ebd-nav.is-drawer-open .ebd-nav__item:nth-child(2) { animation-delay: .04s; }
	.ebd-nav.is-drawer-open .ebd-nav__item:nth-child(3) { animation-delay: .08s; }
	.ebd-nav.is-drawer-open .ebd-nav__item:nth-child(4) { animation-delay: .12s; }
	.ebd-nav.is-drawer-open .ebd-nav__item:nth-child(5) { animation-delay: .16s; }
	.ebd-nav.is-drawer-open .ebd-nav__item:nth-child(n+6) { animation-delay: .2s; }
}
html.ebd-lock { overflow: hidden; }

/* Footer variant */
.ebd-footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ebd-footer-nav__link { text-decoration: none; color: inherit; opacity: .8; transition: opacity .2s; }
.ebd-footer-nav__link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.ebd-nav *, .ebd-nav *::before { animation: none !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   English Bay Dental header + mega menu
   ===================================================================== */
html.ebd-mega-open main, html.ebd-mega-open .wp-site-blocks > footer { filter: none; opacity: 1; }
.ebd-nav__scrim { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.ebd-nav { --nav-accent: #5AAFC9; font-family: var(--wp--preset--font-family--button); }
.ebd-nav__link { text-transform: uppercase; font-weight: 500; letter-spacing: .02em; font-size: 1rem; }
.ebd-nav__phone-icon { display: grid !important; place-items: center; width: 52px; height: 52px; border-radius: 100px; background: transparent; color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.ebd-nav__phone-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ebd-nav__phone { padding: 0; }
.ebd-nav__cta { gap: 22px; padding: 5px 5px 5px 28px !important; border-radius: 100px !important; background: #fff !important; color: var(--wp--preset--color--ink) !important; text-transform: uppercase; font-weight: 500; font-size: 1rem; letter-spacing: .02em; box-shadow: none !important; }
.ebd-nav__cta:hover { transform: none; }
.ebd-nav__cta .ebd-icon { width: 50px; height: 50px; padding: 14px; box-sizing: border-box; border-radius: 100px; background: var(--nav-accent); color: #fff; transform: rotate(-45deg); }
.ebd-nav__cta:hover .ebd-icon { transform: rotate(0); }

@media (min-width: 1024px) {
	/* Floating glass bar */
	.ebd-header--overlay .ebd-header__bar { margin: 16px auto 0 !important; width: min(1920px, calc(100% - 2 * clamp(1.25rem, 5vw, 5.5rem))); border-radius: 60px; padding: 0 16px 0 24px; box-sizing: border-box; background: rgba(22, 38, 50, .45); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background .35s, margin .35s; }
	.ebd-header--overlay .ebd-header__bar > .wp-block-group { max-width: none !important; padding-top: 10px !important; padding-bottom: 10px !important; }
	.ebd-header--overlay.is-scrolled .ebd-header__bar { margin-top: 10px !important; background: rgba(22, 38, 50, .82); }
	.ebd-header--overlay::before { display: none !important; }
	.ebd-header--overlay, .ebd-header--overlay.is-scrolled { color: #fff; }
	.ebd-header--overlay :is(.wp-block-site-title a, .ebd-nav__link, .ebd-nav__toggle, .ebd-nav__phone) { color: #fff !important; }

	/* Underline for hover / open / current instead of a pill */
	.ebd-nav__indicator { display: none !important; }
	.ebd-nav__list { gap: 1.6rem; }
	.ebd-nav__item { position: static; }
	.ebd-nav__link { padding: 12px 0; border-radius: 0; }
	.ebd-nav__link::after { content: ""; position: absolute; left: 0; right: -22px; bottom: 0; height: 2px; background: var(--nav-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
	.ebd-nav__item:not(.has-mega):not(.has-dropdown) > .ebd-nav__link::after { right: 0; }
	.ebd-nav__item:hover > .ebd-nav__link::after, .ebd-nav__item.is-open > .ebd-nav__link::after, .ebd-nav__link[aria-current="page"]::after { transform: scaleX(1); }
	.ebd-nav__item.is-active > .ebd-nav__link, .ebd-nav__link[aria-current="page"] { color: inherit; }
	/* Filled caret */
	.ebd-nav__toggle { margin-left: 6px; padding: 4px; color: inherit !important; }
	.ebd-nav__toggle .ebd-icon { display: none; }
	.ebd-nav__toggle::before { content: ""; border: 5px solid transparent; border-top: 6px solid currentColor; border-bottom: 0; transition: transform .3s var(--ease); }
	.ebd-nav__item.is-open > .ebd-nav__toggle::before { transform: rotate(180deg); }

	/* Panel */
	/* The glass bar is the containing block (backdrop-filter), so the panel matches its width. */
	.ebd-mega { padding: 14px 0 0; left: 0; right: 0; width: auto; translate: none; }
	.ebd-mega::before { top: -4px; height: 18px; }
	.ebd-mega__inner { max-width: none; grid-template-columns: 1fr minmax(320px, 28%); gap: 24px; padding: 22px; background: #fff; border: 0; border-radius: 40px !important; box-shadow: 0 40px 90px -30px rgba(10, 25, 35, .45) !important; }
	.ebd-mega__main { padding: 32px 24px 24px 30px; }
	.ebd-mega__cols { gap: 0; }
	.ebd-mega__col { padding: 0 34px; border-left: 1px solid #E3E8EB; }
	.ebd-mega__col:first-child { padding-left: 0; border-left: 0; }
	.ebd-mega__col:last-child { padding-right: 0; }
	.ebd-mega__heading { display: flex !important; align-items: baseline; gap: 28px; padding: 0 0 20px !important; margin: 0 0 18px 0; border-bottom: 1px solid #E3E8EB; font-family: var(--wp--preset--font-family--button) !important; font-size: .9375rem !important; font-weight: 500 !important; letter-spacing: .08em !important; color: var(--wp--preset--color--ink) !important; text-transform: uppercase; white-space: nowrap; }
	.ebd-mega__num { color: #A9B8BF; font-weight: 400; letter-spacing: .06em; margin-left: -14px; min-width: 22px; }
	.ebd-mega__col ul { display: grid; gap: 4px; }
	.ebd-mega__link { display: flex !important; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px 0 !important; border-radius: 0 !important; background: none !important; }
	.ebd-mega__link .ebd-mega__title { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.3rem; line-height: 1.25; color: var(--wp--preset--color--ink); transition: color .2s, transform .35s var(--ease); }
	.ebd-mega__link .ebd-icon { flex: none; transform: rotate(-90deg); color: #6B7A82; transition: transform .35s var(--ease), color .2s; }
	.ebd-mega__link:hover .ebd-mega__title, .ebd-mega__link:focus-visible .ebd-mega__title { color: var(--wp--preset--color--primary); transform: translateX(4px); }
	.ebd-mega__link:hover .ebd-icon { color: var(--wp--preset--color--primary); transform: rotate(-90deg) translateY(3px); }
	.ebd-mega__desc { font-size: .8125rem; }

	/* Featured treatment card */
	.ebd-mega__feature { padding: 0; background: none !important; border-radius: 0 !important; display: block; }
	.ebd-mega__fcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, #CFE6F1, #EAF3F8); color: var(--wp--preset--color--ink) !important; isolation: isolate; }
	.ebd-mega__fimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
	.ebd-mega__fcard:hover .ebd-mega__fimg { transform: scale(1.04); }
	.ebd-mega__fcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(234, 243, 248, 0) 35%, rgba(234, 243, 248, .82) 55%, rgba(234, 243, 248, .95) 100%); }
	.ebd-mega__fbody { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 26px; }
	.ebd-mega__eyebrow { font-family: var(--wp--preset--font-family--button); font-size: .8125rem !important; letter-spacing: .1em !important; text-transform: uppercase; color: #55646C; opacity: 1 !important; margin: 0; }
	.ebd-mega__ftitle { font-family: var(--wp--preset--font-family--display); font-size: 2.25rem; line-height: 1.05; font-weight: 400; color: #1E2A31; }
	.ebd-mega__feature-text { font-family: var(--wp--preset--font-family--body) !important; font-size: 1rem !important; line-height: 1.45 !important; font-weight: 400 !important; color: #2C3A42; margin: 0; }
	.ebd-mega__cta { margin-top: 14px; align-self: flex-start; display: inline-flex; align-items: center; gap: 28px; padding: 14px 24px !important; border-radius: 100px !important; background: transparent !important; box-shadow: inset 0 0 0 1.5px #1E2A31; color: #1E2A31 !important; font-family: var(--wp--preset--font-family--button); text-transform: uppercase; font-size: .9375rem; font-weight: 500; letter-spacing: .04em; transition: background .25s, color .25s; }
	.ebd-mega__fcard:hover .ebd-mega__cta { background: #1E2A31 !important; color: #fff !important; }

	/* Simple dropdowns match the panel */
	.ebd-dropdown { border-radius: 24px !important; border: 0; padding: 12px; box-shadow: 0 30px 70px -25px rgba(10, 25, 35, .45); }
	.ebd-nav__item.has-dropdown { position: relative; }
	.ebd-dropdown__link { border-radius: 14px !important; font-family: var(--wp--preset--font-family--display); }
	.ebd-dropdown__link .ebd-mega__title { font-weight: 400; font-size: 1.0625rem; }
}
@media (min-width: 1024px) and (max-width: 1800px) {
	.ebd-nav__list { gap: 1rem; }
	.ebd-nav__link, .ebd-nav__cta { font-size: .875rem; }
	.ebd-mega__col { padding: 0 22px; }
	.ebd-mega__inner { grid-template-columns: 1fr minmax(290px, 27%); }
	.ebd-mega__main { padding: 26px 10px 18px 24px; }
	.ebd-mega__heading { gap: 16px; font-size: .8125rem !important; letter-spacing: .05em !important; white-space: nowrap; }
	.ebd-mega__num { margin-left: 0; min-width: 0; }
	.ebd-mega__link .ebd-mega__title { font-size: 1.1rem; }
	.ebd-mega__ftitle { font-size: 1.75rem; }
}
/* Mobile drawer: hide chevrons on leaf links, keep feature hidden */
@media (max-width: 1023px) {
	.ebd-mega__link > .ebd-icon, .ebd-mega__num { display: none; }
	.ebd-nav__phone-icon { width: 44px; height: 44px; }
	.ebd-nav__link { font-size: .9375rem; }
}

/* =====================================================================
   v1.5 Header: two-tier glass card (utility row + main row)
   ===================================================================== */
.ebd-utility { display: none !important; }
.ebd-nav__phone-text { display: none; }
@media (min-width: 1024px) {
	.ebd-header--overlay .ebd-header__bar { border-radius: 22px; padding: 0 12px 0 26px; background: linear-gradient(180deg, rgba(18, 33, 44, .62), rgba(18, 33, 44, .42)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 24px 60px -30px rgba(5, 15, 22, .55); }
	.ebd-header--overlay .ebd-utility { display: flex !important; max-width: none !important; gap: 24px; margin: 0 -12px 0 -26px !important; padding: 0 22px 0 26px; height: 42px; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .09); font-size: .8125rem; color: rgba(255, 255, 255, .78); transition: height .4s var(--ebd-ease, ease), opacity .3s, border-color .3s; }
	.ebd-utility__group { gap: 0 !important; align-items: center; }
	.ebd-utility__group > * { margin: 0 !important; display: flex; align-items: center; gap: 8px; }
	.ebd-utility__group > * + * { padding-left: 18px; margin-left: 18px !important; border-left: 1px solid rgba(255, 255, 255, .14); }
	.ebd-utility .ebd-info { font-size: inherit; color: inherit; }
	.ebd-utility .ebd-info__icon { display: inline-grid; place-items: center; width: auto; height: auto; background: none !important; padding: 0; color: var(--nav-accent, #5AAFC9); }
	.ebd-utility .ebd-info__icon .ebd-icon { width: 15px; height: 15px; }
	.ebd-utility a { color: inherit !important; text-decoration: none; transition: color .2s; }
	.ebd-utility a:hover { color: #fff !important; }
	.ebd-utility .ebd-status { font-size: inherit; padding: 0; background: none !important; color: rgba(255, 255, 255, .78); gap: 8px; }
	.ebd-utility .ebd-status strong { color: #fff; font-weight: 600; }
	.ebd-utility .ebd-status__dot { box-shadow: 0 0 0 4px rgba(90, 175, 201, .18); }
	.ebd-utility__note { letter-spacing: .02em; }
	.ebd-utility__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--nav-accent, #5AAFC9); }
	.ebd-utility .ebd-social { gap: 4px; }
	.ebd-utility .ebd-social a { width: 28px !important; height: 28px !important; background: transparent !important; box-shadow: none !important; color: rgba(255, 255, 255, .7) !important; }
	.ebd-utility .ebd-social a:hover { background: rgba(255, 255, 255, .1) !important; color: #fff !important; }
	.ebd-utility .ebd-social svg { width: 15px; height: 15px; }

	/* Main row */
	.ebd-header--overlay .ebd-header__bar > .wp-block-group:not(.ebd-utility) { padding-top: 12px !important; padding-bottom: 12px !important; }
	.ebd-header--overlay .ebd-nav__list { padding: 6px 22px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
	.ebd-header--overlay .ebd-nav__link { padding: 8px 0; }
	.ebd-nav__actions { gap: 14px; }
	.ebd-nav__phone { display: inline-flex !important; align-items: center; gap: 12px; text-decoration: none; }
	.ebd-nav__phone-icon { width: 44px !important; height: 44px !important; background: rgba(255, 255, 255, .06) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22) !important; transition: background .25s; }
	.ebd-nav__phone:hover .ebd-nav__phone-icon { background: rgba(255, 255, 255, .16) !important; }
	.ebd-nav__cta { gap: 16px; padding: 4px 4px 4px 22px !important; font-size: .875rem; }
	.ebd-nav__cta .ebd-icon { width: 40px; height: 40px; padding: 12px; }

	/* Scrolled: utility row folds away, bar goes solid */
	.ebd-header--overlay.is-scrolled .ebd-utility { height: 0; opacity: 0; border-color: transparent; }
	.ebd-header--overlay.is-scrolled .ebd-header__bar { background: rgba(16, 30, 41, .9); }
	.ebd-header--overlay.is-scrolled .ebd-header__bar > .wp-block-group:not(.ebd-utility) { padding-top: 8px !important; padding-bottom: 8px !important; }
}
@media (min-width: 1280px) {
	.ebd-nav__phone-text { display: flex; flex-direction: column; line-height: 1.15; }
	.ebd-nav__phone-label { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
	.ebd-nav__phone-text .ebd-nav__phone-num { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: .9375rem; font-weight: 500; letter-spacing: .01em; }
}
@media (min-width: 1024px) and (max-width: 1500px) {
	.ebd-header--overlay .ebd-nav__list { padding: 6px 16px; }
	.ebd-utility__note, .ebd-utility .ebd-info--email-link { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1360px) {
	.ebd-nav__phone-text { display: none; }
}
@media (min-width: 1024px) {
	.ebd-header--overlay .ebd-header__bar { min-height: 0 !important; }
	.ebd-header--overlay .ebd-header__bar > * { margin-block: 0 !important; }
	.ebd-utility .ebd-status span:not(.ebd-status__dot) { color: rgba(255, 255, 255, .6); }
}
@media (min-width: 1024px) {
	.ebd-header--overlay .ebd-header__bar > .ebd-utility { padding-top: 0 !important; padding-bottom: 0 !important; align-items: center; }
	.ebd-utility .ebd-info__icon { line-height: 0; }
	.ebd-nav__link { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1240px) {
	.ebd-header--overlay .ebd-nav__list { padding: 0; background: none; box-shadow: none; }
	.ebd-nav__cta { padding-left: 18px !important; }
}

/* Inner pages: same card header, sitting on a navy band instead of over a hero */
.wp-site-blocks > header.wp-block-template-part:has(.ebd-header--inner) { position: sticky; background: var(--wp--preset--color--navy, #1f3a4d); }
.wp-site-blocks:has(> header .ebd-header--inner) > main .wp-block-post-content > .alignfull:first-child,
.wp-site-blocks:has(> header .ebd-header--inner) > main > .alignfull:not(.wp-block-post-content):first-child { padding-top: revert-layer !important; }
.ebd-header--inner { color: #fff; }
.ebd-header--inner :is(.ebd-nav__link, .ebd-nav__toggle, .ebd-nav__phone, .ebd-nav__burger) { color: #fff !important; }
.ebd-header--inner .ebd-nav__burger { background: transparent; border-color: rgba(255,255,255,.4); }
@media (max-width: 1023px) { .ebd-header--inner .ebd-header__bar > .wp-block-group { padding-top: 12px !important; padding-bottom: 12px !important; } }
@media (min-width: 1024px) { .ebd-header--inner .ebd-header__bar { margin-bottom: 16px !important; } .ebd-header--inner.is-scrolled .ebd-header__bar { margin-bottom: 10px !important; } }
