/**
 * Header search — the tab hanging from the top of the header.
 *
 * At rest it is a shade darker than the header purple with a translucent
 * field, so it reads as part of the header rather than a white box stuck on
 * it. In use it lights up: white field, orange ring, wider. Below 1025px —
 * the point where the menu collapses — it runs the full width.
 */

.bpg-hs {
	position: relative;
	z-index: 60;
	display: flex;
	justify-content: flex-end;
	width: 100%;
	font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/*
 * The rail: a dark purple strip along the top of the header that the tab
 * hangs from. It is drawn on the header row the tab sits in, so it runs the
 * full width whatever the page. The row clips sideways only — `clip` rather
 * than `hidden` — so the right-hand curve can never push the page into a
 * horizontal scroll, while the results dropdown still falls freely below.
 */
.bpg-hs-row {
	position: relative;
	overflow-x: clip;
	--bpg-rail: 20px;
	--bpg-curve: 18px;
}

/* Painted as a background band rather than a ::before: the page builder
   claims ::before on its containers for background overlays, and its rule
   quietly switches ours off. */
.bpg-hs-row.e-con,
.bpg-hs-row {
	background-image: linear-gradient(#5A1F4A, #5A1F4A) !important;
	background-size: 100% var(--bpg-rail) !important;
	background-repeat: no-repeat !important;
	background-position: 0 0 !important;
}

.bpg-hs__tab {
	position: relative;
	margin: 0;
	padding: calc(var(--bpg-rail, 0px) + 4px) 10px 10px 12px;
	background: #5A1F4A;
	border-radius: 0 0 16px 16px;
}

/* Where the rail meets the tab it curves down into it, rather than meeting
   at a right angle: a square either side, plum except for a quarter circle
   of header purple. The tab stays plum when in use — only the field lights —
   because a white tab would visually detach from the rail it hangs from. */
.bpg-hs-row .bpg-hs__tab::before,
.bpg-hs-row .bpg-hs__tab::after {
	content: "";
	position: absolute;
	top: var(--bpg-rail);
	width: var(--bpg-curve);
	height: var(--bpg-curve);
	pointer-events: none;
}

.bpg-hs-row .bpg-hs__tab::before {
	left: calc(-1 * var(--bpg-curve));
	background: radial-gradient(circle at 0 100%, transparent calc(var(--bpg-curve) - 0.5px), #5A1F4A var(--bpg-curve));
}

.bpg-hs-row .bpg-hs__tab::after {
	right: calc(-1 * var(--bpg-curve));
	background: radial-gradient(circle at 100% 100%, transparent calc(var(--bpg-curve) - 0.5px), #5A1F4A var(--bpg-curve));
}

.bpg-hs__field {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 300px;
	height: 44px;
	padding: 0 10px 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	transition: width 0.24s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bpg-hs__tab:hover .bpg-hs__field {
	background: rgba(255, 255, 255, 0.15);
}

.bpg-hs.is-active .bpg-hs__field {
	width: 460px;
	background: #FFFFFF;
	border-color: #772D61;
	box-shadow: 0 0 0 3px #DF8D22;
}

.bpg-hs__ico {
	flex: 0 0 auto;
	color: #E8DDE4;
	transition: color 0.2s ease;
}

.bpg-hs.is-active .bpg-hs__ico {
	color: #772D61;
}

.bpg-hs input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
	color: #FFFFFF;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	-webkit-appearance: none;
	appearance: none;
}

.bpg-hs input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.bpg-hs input[type="search"]::placeholder {
	color: #E8DDE4;
	opacity: 0.95;
}

.bpg-hs.is-active input[type="search"] {
	color: #2E1B29;
}

.bpg-hs.is-active input[type="search"]::placeholder {
	color: #5A4553;
	opacity: 1;
}

.bpg-hs__key {
	flex: 0 0 auto;
	padding: 4px 7px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 5px;
	background: transparent;
	color: #E8DDE4;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.bpg-hs.is-active .bpg-hs__key {
	display: none;
}

.bpg-hs__clear {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 -4px 0 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #5A4553;
	cursor: pointer;
}

.bpg-hs__clear[hidden] {
	display: none;
}

.bpg-hs__clear:hover {
	background: #F4ECF1;
	color: #2E1B29;
}

.bpg-hs__clear:focus-visible {
	outline: 3px solid #772D61;
	outline-offset: 1px;
}

/* Results */
.bpg-hs__panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 560px;
	max-height: min(70vh, 640px);
	overflow-y: auto;
	padding: 8px;
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: 0 22px 50px rgba(46, 27, 41, 0.28);
	color: #2E1B29;
	text-align: left;
}

.bpg-hs__panel[hidden] {
	display: none;
}

.bpg-hs__grp {
	margin: 8px 0 4px;
	padding: 7px 12px;
	border-radius: 6px;
	background: #FBF7F2;
	color: #772D61;
	font-family: 'Barlow Condensed', 'Barlow', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bpg-hs__grp:first-child {
	margin-top: 0;
}

.bpg-hs__grp span {
	color: #5A4553;
	font-weight: 600;
}

.bpg-hs__hit {
	display: block;
	padding: 11px 12px;
	border-radius: 8px;
	color: #2E1B29;
	text-decoration: none;
}

.bpg-hs__hit:hover,
.bpg-hs__hit.is-cursor {
	background: #F4ECF1;
	color: #2E1B29;
}

.bpg-hs__hit.is-cursor {
	box-shadow: inset 3px 0 0 #772D61;
}

.bpg-hs__t {
	display: block;
	font-weight: 700;
	line-height: 1.35;
}

.bpg-hs__m {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 3px;
	color: #5A4553;
	font-size: 14px;
	font-weight: 600;
}

.bpg-hs__chip {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #2E1B29;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.bpg-hs__s {
	display: block;
	margin-top: 4px;
	color: #5A4553;
	font-size: 15px;
	line-height: 1.5;
}

.bpg-hs mark,
.bpg-sr mark {
	padding: 0 2px;
	border-radius: 2px;
	background: #FBF3C9;
	color: inherit;
	font-weight: 700;
}

.bpg-hs__empty {
	margin: 0;
	padding: 16px 14px;
	color: #5A4553;
}

.bpg-hs__all {
	display: block;
	margin-top: 8px;
	padding: 12px;
	border-top: 1px solid #E6DCD6;
	color: #772D61;
	font-weight: 700;
	text-decoration: none;
}

.bpg-hs__all:hover,
.bpg-hs__all.is-cursor {
	background: #F4ECF1;
	border-radius: 8px;
}

.bpg-hs__try {
	padding: 10px 12px 12px;
}

.bpg-hs__try p {
	margin: 0 0 10px;
	color: #5A4553;
	font-size: 14px;
	font-weight: 600;
}

.bpg-hs__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bpg-hs__chips button {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #F4ECF1;
	color: #772D61;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.bpg-hs__chips button:hover {
	border-color: #772D61;
	background: #F4ECF1;
	color: #772D61;
}

.bpg-hs__chips button:focus-visible {
	outline: 3px solid #772D61;
	outline-offset: 2px;
}

/* While search is open, keep the menu's hover dropdowns from appearing over
   it — the two would otherwise stack on top of each other. */
body.bpg-hs-open .elementor-nav-menu--main .sub-menu {
	display: none !important;
}

/* ---------- Search results page ---------- */
.bpg-sr {
	padding: 48px 20px 80px;
	background: #FBF7F2;
	color: #2E1B29;
	font-family: 'Barlow', system-ui, sans-serif;
}

.bpg-sr__inner {
	max-width: 880px;
	margin: 0 auto;
}

.bpg-sr h1 {
	margin: 0 0 8px;
	color: #2E1B29;
	font-size: clamp(30px, 4vw, 42px);
	line-height: 1.1;
}

.bpg-sr__lead {
	margin: 0 0 32px;
	color: #5A4553;
	font-size: 18px;
}

.bpg-sr__group {
	margin: 0 0 36px;
}

.bpg-sr__group h2 {
	margin: 0 0 8px;
	padding-bottom: 8px;
	border-bottom: 3px solid #772D61;
	color: #772D61;
	font-size: 22px;
}

.bpg-sr__group h2 span {
	color: #5A4553;
	font-weight: 600;
}

.bpg-sr__hit {
	display: block;
	padding: 16px 4px;
	border-bottom: 1px solid #E6DCD6;
	color: #2E1B29;
	text-decoration: none;
}

.bpg-sr__hit:hover .bpg-sr__t {
	color: #772D61;
	text-decoration: underline;
}

.bpg-sr__hit:focus-visible {
	outline: 3px solid #772D61;
	outline-offset: 2px;
	border-radius: 4px;
}

.bpg-sr__t {
	display: block;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
}

.bpg-sr__m {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-top: 4px;
	color: #5A4553;
	font-size: 15px;
	font-weight: 600;
}

.bpg-sr__s {
	display: block;
	margin-top: 6px;
	color: #5A4553;
	line-height: 1.55;
}

.bpg-sr__none {
	padding: 24px;
	border-radius: 12px;
	background: #FFFFFF;
	color: #5A4553;
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 1024px) {
	.bpg-hs {
		display: block;
	}

	.bpg-hs__tab {
		border-radius: 0 0 14px 14px;
		padding: 10px 10px 12px;
	}

	/* The tab already spans the full width here, so the rail and its curves
	   have nothing to join. */
	.bpg-hs-row.e-con,
	.bpg-hs-row {
		background-image: none !important;
	}

	.bpg-hs-row .bpg-hs__tab::before,
	.bpg-hs-row .bpg-hs__tab::after {
		display: none;
	}

	.bpg-hs__field,
	.bpg-hs.is-active .bpg-hs__field {
		width: 100%;
	}

	.bpg-hs__key {
		display: none;
	}

	.bpg-hs__panel {
		left: 0;
		right: 0;
		width: auto;
		max-height: 65vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bpg-hs__field,
	.bpg-hs__ico {
		transition: none;
	}
}
