/* V1218 scoped global-search dropdown on /search landing ONLY */
.f1216-trends-search-wrap{position:relative;z-index:8}
.f1216-trends-search{margin:0}
.f1216-trends-search input{appearance:none;-webkit-appearance:none}
.f1218-search-popup[hidden],.f1218-popup-footer button[hidden]{display:none!important}
.f1218-search-popup{position:absolute;left:5px;right:5px;top:calc(100% - 5px);z-index:48;background:var(--surface,#fff);color:var(--text-primary,var(--text,#19202d));border:1px solid var(--border-color,#e1e5eb);border-radius:16px;overflow:hidden;box-shadow:0 10px 26px rgba(0,0,0,.13);display:flex;flex-direction:column;max-height:min(64dvh,550px)}
.f1218-popup-head{display:flex;align-items:center;justify-content:space-between;flex:none;padding:12px 14px;border-bottom:1px solid var(--border-color,#e5e7eb)}
.f1218-popup-head strong{font-size:13px;font-weight:800}
.f1218-popup-head button{background:transparent;border:0;color:inherit;display:grid;place-items:center;width:28px;height:28px;padding:4px}
.f1218-popup-head button svg{width:17px;height:17px}
.f1218-popup-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:60px;flex:1;scrollbar-width:thin}
.f1218-group h3{margin:0;padding:9px 13px 5px;color:var(--text-muted,#747b87);font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:750}
.f1218-result{display:flex;align-items:center;gap:11px;padding:9px 13px;color:inherit;text-decoration:none;min-height:58px}
.f1218-result:focus-visible,.f1218-result:hover{background:var(--surface-soft,#f3f5f8);outline:none}
.f1218-result-icon{display:grid;place-items:center;background:var(--surface-soft,#f2f3f6);width:36px;height:36px;flex:0 0 36px;border-radius:10px;color:var(--text-muted,#636b78)}
.f1218-result-icon svg{width:19px;height:19px}
.f1218-result-body{min-width:0;display:flex;flex-direction:column;gap:3px}
.f1218-result-body strong{font-size:13px;line-height:1.3;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.f1218-result-body small{font-size:11px;color:var(--text-muted,#707782);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.f1218-popup-message{padding:18px 15px;text-align:center;color:var(--text-muted,#777f89);font-size:12px}
.f1218-popup-footer{flex:none;position:sticky;bottom:0;display:grid;grid-template-columns:1fr;gap:7px;padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--border-color,#e5e7eb);background:var(--surface,#fff)}
.f1218-popup-footer button,.f1218-popup-footer a{font:inherit;font-size:13px;font-weight:750;display:flex;align-items:center;justify-content:center;text-decoration:none;border-radius:12px;min-height:37px}
.f1218-more{color:white;border:0;background:var(--primary,#1877f2)}
.f1218-more:disabled{opacity:.65}
.f1218-all{color:var(--primary,#1877f2);background:var(--surface-soft,#f4f6f8);border:1px solid var(--border-color,#e5e7eb)}
html[data-theme="dark"] .f1218-search-popup{background:var(--surface,#1d2026);color:var(--text-primary,#eff1f4);border-color:#414650}
html[data-theme="dark"] .f1218-popup-footer{background:var(--surface,#1d2026)}
html[data-theme="dark"] .f1218-result-icon,html[data-theme="dark"] .f1218-all{background:#30343d}
@media(max-width:700px){.f1218-search-popup{left:4px;right:4px;max-height:min(58dvh,510px);border-radius:14px}}

/* V1228: protected thumbnails in live search; fallback icon until loaded. */
.f1218-result-icon{position:relative;overflow:hidden;isolation:isolate}
.f1228-result-fallback{position:absolute;inset:0;display:grid;place-items:center}
.f1228-result-fallback svg{width:19px;height:19px}
.f1228-search-photo{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .12s ease}
.f1228-has-photo .f1228-search-photo{opacity:1}
.f1218-group[data-f1218-group="people"] .f1218-result-icon{border-radius:50%}
@media(prefers-reduced-motion:reduce){.f1228-search-photo{transition:none}}
