/* Mobile top menu + live search (bpo, 2026-10-08) — markup from js/bpo-menu-search.js. Phones/tablets only (< 1000px). */
.bpo-ms {
	--ms-navy: #0B1F3B; --ms-navy-2: #12305a; --ms-sky: #1BAFEB; --ms-text: #fff; --ms-muted: rgba(255, 255, 255, .72); --ms-line: rgba(255, 255, 255, .12);
	position: fixed; inset: 0; z-index: 100000; font-family: "Inter Tight", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased;
}
.bpo-ms[hidden] { display: none; }
html.bpo-ms-lock, html.bpo-ms-lock body { overflow: hidden !important; }
html.bpo-ms-lock { scrollbar-gutter: stable; } /* desktop: the page does not jump sideways when its scrollbar goes */

.bpo-ms-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s ease; }
.bpo-ms.is-open .bpo-ms-scrim { opacity: 1; transition-duration: .32s; }

.bpo-ms-panel {
	position: absolute; top: 0; left: 0; right: 0; display: flex; flex-direction: column;
	max-height: 100vh; max-height: 100dvh; background: var(--ms-navy); color: var(--ms-text);
	border-radius: 0 0 20px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); outline: none;
	padding-top: env(safe-area-inset-top);
	transform: translateY(-100%); transition: transform .2s cubic-bezier(.3, 0, .8, .15);
}
.bpo-ms.is-open .bpo-ms-panel { transform: none; transition: transform .32s cubic-bezier(.2, 0, 0, 1); }
@media (max-height: 700px) { .bpo-ms:not(.is-desktop) .bpo-ms-panel { height: 100vh; height: 100dvh; border-radius: 0; } }

.bpo-ms svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* header row: logo + close (where the hamburger was) */
.bpo-ms-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 6% 8px; min-height: 64px; box-sizing: border-box; }
.bpo-ms-logo { display: inline-flex; color: #fff; font-weight: 700; font-size: 20px; text-decoration: none; }
.bpo-ms-logo img { display: block; height: 34px; width: auto; max-width: 180px; object-fit: contain; }
.bpo-ms-close, .bpo-ms-clear {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.bpo-ms-close svg { width: 26px; height: 26px; }
.bpo-ms-close:hover, .bpo-ms-close:focus-visible { background: rgba(255, 255, 255, .1); }

/* search box */
.bpo-ms-search {
	position: relative; display: flex; align-items: center; gap: 10px; margin: 4px 6% 12px; padding: 0 4px 0 16px; min-height: 52px;
	border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; background: rgba(255, 255, 255, .07); color: var(--ms-muted);
	transition: border-color .15s, background .15s;
}
.bpo-ms-search:focus-within { border-color: var(--ms-sky); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 3px rgba(27, 175, 235, .25); }
.bpo-ms-search input {
	flex: 1; min-width: 0; height: 50px; margin: 0; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
	color: #fff !important; font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.2; outline: none; -webkit-appearance: none; appearance: none;
}
.bpo-ms-search input::placeholder { color: rgba(255, 255, 255, .55); opacity: 1; }
.bpo-ms-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.bpo-ms-clear { width: 40px; height: 40px; margin: 0; color: var(--ms-muted); }
.bpo-ms-clear svg { width: 18px; height: 18px; }
.bpo-ms-clear[hidden] { display: none; }

.bpo-ms-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* scrolling body */
.bpo-ms-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 6% calc(20px + env(safe-area-inset-bottom)); }
.bpo-ms-label { margin: 4px 0 10px; padding: 0; color: var(--ms-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.bpo-ms-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.bpo-ms-chip {
	min-height: 36px; padding: 6px 14px; border: 1px solid rgba(27, 175, 235, .45); border-radius: 999px; background: rgba(27, 175, 235, .1);
	color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer;
}
.bpo-ms-chip:hover, .bpo-ms-chip:focus-visible { background: rgba(27, 175, 235, .25); }

/* nav links */
.bpo-ms-nav ul { list-style: none; margin: 12px 0 0; padding: 0; }
.bpo-ms-nav li { margin: 0; padding: 0; border-bottom: 1px solid var(--ms-line); list-style: none; }
.bpo-ms-nav li::before { content: none; }
.bpo-ms-nav a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 0;
	color: #fff !important; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; text-decoration: none;
}
.bpo-ms-nav a svg { color: var(--ms-sky); opacity: .7; transition: transform .2s, opacity .2s; }
.bpo-ms-nav a:hover svg, .bpo-ms-nav a:focus-visible svg { opacity: 1; transform: translateX(3px); }
.bpo-ms-nav .current-menu-item > a { color: var(--ms-sky) !important; }
.bpo-ms-nav .current-menu-item > a svg { opacity: 1; }

/* CTA + contact */
.bpo-ms-cta {
	display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin: 22px 0 6px; padding: 12px 20px;
	border-radius: 12px; background: var(--ms-sky); color: var(--ms-navy) !important; font-size: 16px; font-weight: 700; text-decoration: none;
}
.bpo-ms-cta:hover, .bpo-ms-cta:focus-visible { background: #4cc2f0; }
.bpo-ms-contact { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.bpo-ms-contact a { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ms-muted) !important; font-size: 15px; text-decoration: none; }
.bpo-ms-contact svg { width: 18px; height: 18px; color: var(--ms-sky); }

/* results */
.bpo-ms-results { list-style: none; margin: 0; padding: 0; }
.bpo-ms-results li { list-style: none; margin: 0; padding: 0; }
.bpo-ms-results li::before { content: none; }
.bpo-ms-group { margin: 14px 0 6px !important; color: var(--ms-sky); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bpo-ms-group:first-child { margin-top: 2px !important; }
.bpo-ms-results [role="option"] > a {
	display: block; margin-bottom: 6px; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px;
	background: rgba(255, 255, 255, .05); color: #fff !important; text-decoration: none;
}
.bpo-ms-results [role="option"] > a:hover, .bpo-ms-results [aria-selected="true"] > a { background: rgba(27, 175, 235, .16); border-color: rgba(27, 175, 235, .5); }
.bpo-ms-kicker { display: block; margin-bottom: 2px; color: var(--ms-sky); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bpo-ms-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.bpo-ms-snip {
	display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--ms-muted); font-size: 14px; line-height: 1.45;
	-webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
}
.bpo-ms mark { padding: 0 1px; border-radius: 3px; background: rgba(27, 175, 235, .32); color: #fff; }
.bpo-ms-empty { padding: 8px 0; }
.bpo-ms-empty-title { margin: 0 0 4px; padding: 0; color: #fff; font-size: 18px; font-weight: 600; }
.bpo-ms-muted { margin: 0 0 12px; padding: 0; color: var(--ms-muted); font-size: 14px; }

.bpo-ms a:focus-visible, .bpo-ms button:focus-visible { outline: 2px solid var(--ms-sky); outline-offset: 2px; }

/* desktop: a centred search drop-down (no nav links, CTA or contact — the header has them) */
.bpo-ms.is-desktop .bpo-ms-panel { padding-left: max(40px, calc((100% - 760px) / 2)); padding-right: max(40px, calc((100% - 760px) / 2)); max-height: min(80vh, 760px); }
.bpo-ms.is-desktop .bpo-ms-head { padding: 20px 0 8px; }
.bpo-ms.is-desktop .bpo-ms-search { margin: 4px 0 14px; }
.bpo-ms.is-desktop .bpo-ms-body { padding: 0 0 28px; }
.bpo-ms.is-desktop :is(.bpo-ms-nav, .bpo-ms-home > .bpo-ms-cta, .bpo-ms-contact) { display: none; }

/* desktop header icon (last menu item); never in Salient's own mobile menus */
#header-outer .sf-menu > li.bpo-ms-search-item > a { display: flex; align-items: center; height: 100%; padding-left: 14px; padding-right: 4px; }
#header-outer .sf-menu > li.bpo-ms-search-item svg { display: block; width: 20px; height: 20px; transition: color .15s; }
#header-outer .sf-menu > li.bpo-ms-search-item > a:hover svg { color: #1BAFEB; }
#slide-out-widget-area .bpo-ms-search-item, #mobile-menu .bpo-ms-search-item { display: none !important; }

/* the section a search result points to */
.bpo-ms-target { scroll-margin-top: 110px; }
.bpo-ms-flash { animation: bpo-ms-flash 2.4s ease-out; border-radius: 6px; }
@keyframes bpo-ms-flash { 0%, 35% { background-color: rgba(27, 175, 235, .28); box-shadow: 0 0 0 8px rgba(27, 175, 235, .28); } 100% { background-color: transparent; box-shadow: 0 0 0 8px transparent; } }

@media (prefers-reduced-motion: reduce) {
	.bpo-ms-panel, .bpo-ms.is-open .bpo-ms-panel { transform: none; transition: none; }
	.bpo-ms-scrim, .bpo-ms.is-open .bpo-ms-scrim { transition: none; }
	.bpo-ms-flash { animation: none; outline: 3px solid var(--ms-sky, #1BAFEB); outline-offset: 6px; }
}
