/* Smart Title Search — every visual is a CSS variable so settings / Elementor can override it. */
.sts {
	--sts-accent: #f26f21;
	--sts-radius: 8px;
	--sts-maxw: 780px;
	--sts-height: 54px;
	--sts-bg: #fff;
	--sts-border: #d6d9de;
	--sts-text: #1f2328;
	--sts-ph: #8a8f98;
	--sts-muted: #6b7280;
	--sts-icon-color: var(--sts-accent);
	--sts-icon-hover: var(--sts-icon-color);
	--sts-icon-size: 20px;
	--sts-icon-gap: 16px;
	--sts-icon-bg: transparent;
	--sts-icon-hover-bg: var(--sts-icon-bg);
	--sts-icon-radius: 6px;
	--sts-icon-pad: 0px;
	--sts-popup-w: 380px;
	--sts-overlay: #0f1115;
	--sts-overlay-opacity: .92;
	--sts-close: #fff;
	--sts-panel-bg: #fff;
	--sts-panel-radius: var(--sts-radius);
	--sts-title: var(--sts-text);
	--sts-mark: var(--sts-accent);
	--sts-hover-bg: color-mix(in srgb, var(--sts-accent) 8%, #fff);
	position: relative;
	width: 100%;
	max-width: var(--sts-maxw);
	font-family: inherit;
	box-sizing: border-box;
	text-align: left;
}
.sts *, .sts *::before, .sts *::after { box-sizing: border-box; }

.sts-sr {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sts-box-inner { position: relative; }
.sts-box[hidden] { display: none !important; }

/* ===== Bar ===== */
.sts .sts-form {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
	background: var(--sts-bg);
	border: 1px solid var(--sts-border);
	border-radius: var(--sts-radius);
	transition: border-color .15s, box-shadow .15s;
}
.sts .sts-form:focus-within {
	border-color: var(--sts-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--sts-accent) 18%, transparent);
}
.sts .sts-input,
.sts .sts-input:focus {
	flex: 1;
	order: 1;
	min-width: 0;
	height: var(--sts-height);
	margin: 0;
	padding: 0 12px 0 10px;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	color: var(--sts-text);
	font: inherit;
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}
.sts .sts-input::placeholder { color: var(--sts-ph); opacity: 1; }
.sts-input::-webkit-search-cancel-button,
.sts-input::-webkit-search-decoration { -webkit-appearance: none; }

.sts .sts-clear {
	flex: none;
	order: 2;
	width: 32px; height: 32px;
	margin: 0 10px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sts-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.sts .sts-clear:hover { background: rgba(0,0,0,.06); color: var(--sts-text); }
.sts .sts-clear[hidden] { display: none; }

.sts-spinner {
	display: none;
	order: 2;
	flex: none;
	width: 18px; height: 18px;
	margin-right: 10px;
	border: 2px solid #e5e7eb;
	border-top-color: var(--sts-accent);
	border-radius: 50%;
	animation: sts-spin .7s linear infinite;
}
.sts.is-loading .sts-spinner { display: block; }
@keyframes sts-spin { to { transform: rotate(360deg); } }

/* ===== Icon (inside bar + icon-only trigger) ===== */
.sts .sts-icon {
	flex: none;
	order: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 0 var(--sts-icon-gap);
	padding: var(--sts-icon-pad);
	border: 0;
	border-radius: var(--sts-icon-radius);
	background: var(--sts-icon-bg);
	color: var(--sts-icon-color);
	line-height: 0;
	min-height: 0;
	box-shadow: none;
	text-decoration: none;
	transition: color .15s, background-color .15s, transform .15s;
}
.sts .sts-icon svg,
.sts .sts-icon img {
	display: block;
	width: var(--sts-icon-size);
	height: var(--sts-icon-size);
	max-width: none;
	object-fit: contain;
}
.sts .sts-icon i { font-size: var(--sts-icon-size); line-height: 1; color: inherit; }
.sts .sts-icon .e-font-icon-svg { fill: currentColor; }
.sts .sts-icon.is-button,
.sts .sts-trigger { cursor: pointer; }
.sts .sts-icon.is-button:hover,
.sts .sts-trigger:hover,
.sts.is-open .sts-trigger,
.sts .sts-form:focus-within .sts-icon {
	color: var(--sts-icon-hover);
	background: var(--sts-icon-hover-bg);
}
.sts .sts-icon.is-button:active,
.sts .sts-trigger:active { transform: scale(.94); }
.sts .sts-icon:focus-visible { outline: 2px solid var(--sts-accent); outline-offset: 2px; }

.sts--icon-right .sts-form .sts-icon { order: 3; margin: 0 var(--sts-icon-gap) 0 0; }
.sts--icon-right .sts-input { padding-left: 16px !important; }
.sts--icon-filled.sts--icon-right .sts-form .sts-icon { margin-right: max(4px, calc(var(--sts-icon-gap) / 3)); }
.sts--icon-filled.sts--icon-left .sts-form .sts-icon { margin-left: max(4px, calc(var(--sts-icon-gap) / 3)); }
.sts--no-icon .sts-input { padding-left: 16px !important; }

/* ===== Icon-only layout ===== */
.sts--layout-icon {
	display: block;
	width: fit-content;
	max-width: none;
	vertical-align: middle;
}
.sts--layout-icon .sts-trigger { margin: 0; }

/* dropdown below icon */
.sts--open-dropdown .sts-box {
	position: absolute;
	z-index: 10000;
	top: calc(100% + 10px);
	right: 0;
	width: var(--sts-popup-w);
	max-width: calc(100vw - 24px);
	animation: sts-drop .18s ease-out;
}
.sts--open-dropdown.sts--align-left .sts-box { right: auto; left: 0; }
.sts--open-dropdown .sts-form { box-shadow: 0 12px 32px rgba(17,24,39,.14); }

/* slide out beside icon */
.sts--open-expand .sts-box {
	position: absolute;
	z-index: 10000;
	top: 50%;
	right: calc(100% + 8px);
	width: var(--sts-popup-w);
	max-width: calc(100vw - 80px);
	transform: translateY(-50%);
	transform-origin: right center;
	animation: sts-expand .22s ease-out;
}
.sts--open-expand.sts--align-left .sts-box { right: auto; left: calc(100% + 8px); transform-origin: left center; }

/* full-screen overlay */
.sts--open-fullscreen .sts-box {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 18vh 16px 16px;
	background: color-mix(in srgb, var(--sts-overlay) calc(var(--sts-overlay-opacity) * 100%), transparent);
	animation: sts-fade .2s ease-out;
}
.sts--open-fullscreen .sts-box-inner {
	width: 100%;
	max-width: var(--sts-popup-w);
	animation: sts-drop .25s ease-out;
}
.sts.sts--open-fullscreen .sts-input { height: max(64px, var(--sts-height)); font-size: 20px; }
.sts .sts-close {
	position: absolute;
	top: 20px; right: 24px;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sts-close);
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}
.sts .sts-close:hover { background: rgba(255,255,255,.12); }
html.sts-lock { overflow: hidden; }

@keyframes sts-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes sts-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sts-expand { from { opacity: 0; transform: translateY(-50%) scaleX(.6); } to { opacity: 1; transform: translateY(-50%) scaleX(1); } }

/* ===== Results dropdown ===== */
.sts-panel {
	position: absolute;
	z-index: 10001;
	top: calc(100% + 6px);
	left: 0; right: 0;
	max-height: min(460px, 70vh);
	overflow-y: auto;
	background: var(--sts-panel-bg);
	border: 1px solid var(--sts-border);
	border-radius: var(--sts-panel-radius);
	box-shadow: 0 12px 32px rgba(17, 24, 39, .12);
	text-align: left;
}
.sts-panel[hidden] { display: none; }
.sts--open-fullscreen .sts-panel { max-height: 60vh; }

.sts .sts-item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 14px;
	color: var(--sts-title);
	text-decoration: none;
	border-bottom: 1px solid rgba(0,0,0,.06);
	cursor: pointer;
}
.sts .sts-item:last-of-type { border-bottom: 0; }
.sts .sts-item:hover,
.sts .sts-item.is-active { background: var(--sts-hover-bg); }

.sts-thumb {
	flex: none;
	width: 48px; height: 48px;
	border-radius: 6px;
	object-fit: cover;
	background: #f1f2f4;
}
.sts-body { min-width: 0; flex: 1; }
.sts .sts-title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--sts-title);
}
.sts .sts-title mark { background: none; color: var(--sts-mark); padding: 0; }
.sts-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 3px;
	font-size: 12px;
	color: var(--sts-muted);
}
.sts-badge {
	padding: 1px 7px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--sts-accent) 12%, #fff);
	color: var(--sts-accent);
	font-weight: 600;
}
.sts-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 3px;
	font-size: 13px;
	color: var(--sts-muted);
}
.sts-empty { padding: 16px; font-size: 14px; color: var(--sts-muted); }
.sts .sts-all {
	display: block;
	padding: 12px 14px;
	border-top: 1px solid rgba(0,0,0,.06);
	font-size: 14px;
	font-weight: 600;
	color: var(--sts-accent);
	text-decoration: none;
}
.sts .sts-all:hover,
.sts .sts-all.is-active { background: var(--sts-hover-bg); }

/* ===== Mobile ===== */
@media (max-width: 600px) {
	.sts .sts-input { height: min(var(--sts-height), 50px); font-size: 16px; }
	.sts-thumb { width: 40px; height: 40px; }
	.sts-excerpt { display: none; }
	/* icon-only popups become full-width under the header */
	.sts--open-dropdown .sts-box,
	.sts--open-expand .sts-box {
		position: fixed;
		left: 12px !important;
		right: 12px !important;
		width: auto;
		max-width: none;
		transform: none;
		animation: sts-drop .18s ease-out;
	}
	.sts--open-fullscreen .sts-box { padding-top: 12vh; }
	.sts.sts--open-fullscreen .sts-input { height: 56px; font-size: 17px; }
}
