e.stopPropagation()} style={{
width: "min(640px, 100%)",
background: "var(--surface)",
border: "1px solid var(--border)",
borderRadius: 16,
boxShadow: "var(--shadow-lg)",
overflow: "hidden",
}}>
setQ(e.target.value)}
placeholder={T("searchPlaceholder", "Search articles, banks, tools...")}
style={{ flex: 1, background: "none", border: "none", outline: "none", color: "var(--text)", fontSize: 16, fontFamily: "inherit" }} />
{!ql && (
{T("startTyping", "Start typing to search articles, banks and sections.")}
)}
{ql && navHits.length > 0 && (
{navHits.map(([r, l]) => (
))}
)}
{ql && articleHits.length > 0 && (
{articleHits.map(a => (
))}
)}
{ql && bankHits.length > 0 && (
{bankHits.map(b => {
const c = window.COUNTRIES.find(c => c.code === b.country);
return (
);
})}
)}
{ql && navHits.length + articleHits.length + bankHits.length === 0 && (
{T("noResults", "No results for")} "{q}"
)}