/* ============================================================
   search.css — search overlay + results page
   ============================================================ */
html.so-lock, html.so-lock body { overflow: hidden; }
.so { position: fixed; inset: 0; z-index: 1100; display: flex; justify-content: center; align-items: flex-start; padding: 11vh 20px 20px; font-family: Inter, system-ui, sans-serif; color: #0b0f2a; }
.so[hidden] { display: none; }
.so__backdrop { position: absolute; inset: 0; background: rgba(8,10,32,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .18s; cursor: pointer; }
.so__panel { position: relative; width: min(720px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; opacity: 0; transform: translateY(-12px) scale(.98); transition: opacity .18s, transform .25s cubic-bezier(.2,.8,.2,1); }
.so.is-open .so__backdrop { opacity: 1; }
.so.is-open .so__panel { opacity: 1; transform: none; }
.so__form { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 22px; border-bottom: 1px solid #ECEDF4; }
.so__icon { color: #FF7753; flex: none; }
.so__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 20px/1.3 Inter, sans-serif; color: #0b0f2a; padding: 8px 0; -webkit-appearance: none; }
.so__form input::placeholder { color: #A0A4BC; }
.so__form input::-webkit-search-cancel-button { display: none; }
.so__spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #ECEDF4; border-top-color: #FF7753; animation: soSpin .7s linear infinite; flex: none; }
.so__spinner[hidden] { display: none; }
@keyframes soSpin { to { transform: rotate(360deg); } }
.so__close { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 10px; border: 0; border-radius: 12px; background: #F2F3F8; color: #4B5070; font: 600 22px/1 Inter, sans-serif; cursor: pointer; flex: none; }
.so__close span { font: 700 11px/1 Inter, sans-serif; letter-spacing: .04em; padding: 4px 6px; border-radius: 6px; background: #fff; border: 1px solid #E2E4EE; }
.so__close:hover { background: #FF7753; color: #fff; }
.so__body { overflow-y: auto; padding: 10px; -webkit-overflow-scrolling: touch; }
.so__label { font: 700 11.5px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8B90AA; margin: 10px 10px 12px; }
.so__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px 12px; }
.so__chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #F4F5FA; color: #0b0f2a; font: 600 14px/1 Inter, sans-serif; text-decoration: none; }
.so__chips a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #FF7753); }
.so__chips a:hover { background: #FFF0EA; }
.so__chips a.is-cta { background: #FF7753; color: #fff; }
.so__chips a.is-cta::before { display: none; }
.so__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.so__empty { text-align: center; color: #6B7090; padding: 34px 16px; font-size: 15.5px; }
.so__empty--hint { padding: 22px 16px; font-size: 14px; }
.so__all { display: block; text-align: center; margin: 8px 6px 4px; padding: 12px; border-radius: 14px; background: #F4F5FA; color: #0b0f2a; font: 700 14px/1 Inter, sans-serif; text-decoration: none; }
.so__all:hover { background: #FFF0EA; color: #E8603C; }
.so__foot { display: flex; gap: 18px; padding: 11px 20px; border-top: 1px solid #ECEDF4; font-size: 12.5px; color: #8B90AA; }
.so__foot kbd { font: 700 11px/1 Inter, sans-serif; padding: 3px 6px; border-radius: 6px; background: #F2F3F8; border: 1px solid #E2E4EE; color: #4B5070; margin-right: 2px; }

/* Result row (overlay + results page) */
.sr-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 16px; color: #0b0f2a; text-decoration: none; transition: background .12s; }
.sr-item:hover, .sr-item.is-active { background: #FFF4F0; }
.sr-item__icon { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; overflow: hidden; background: #F1EEFF; }
.sr-item__icon i { display: block; width: 20px; height: 20px; background: #664CDF; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.sr-item__icon--speaker { background: #FFF0EA; } .sr-item__icon--speaker i { background: #E8603C; }
.sr-item__icon--partner { background: #fff; border: 1px solid #ECEDF4; } .sr-item__icon--partner i { background: #3F7A64; }
.sr-item__icon img { width: 100%; height: 100%; object-fit: cover; }
.sr-item__icon--partner img { object-fit: contain; padding: 4px; }
.sr-item__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sr-item__body small { font: 700 11px/1.2 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8B90AA; }
.sr-item__body strong { font: 700 16px/1.3 Inter, sans-serif; }
.sr-item__snip { font: 400 14px/1.5 Figtree, Inter, sans-serif; color: #4B5070; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-item mark { background: #FFE7A3; color: inherit; border-radius: 3px; padding: 0 2px; }

/* Results page */
.srp { background: #F6F7FB; min-height: 60vh; padding-bottom: 80px; font-family: Inter, system-ui, sans-serif; color: #0b0f2a; }
.srp__hero { padding: calc(8.34vw + 50px) 20px 40px; color: #fff; background: linear-gradient(140deg, #2E1F96, #664CDF 60%, #8A4BCB); }
.srp__inner { max-width: 860px; margin: 0 auto; }
.srp__title { font: 800 clamp(34px, 5vw, 56px)/1 Inter, sans-serif; letter-spacing: -.03em; margin: 0 0 20px; }
.srp__form { display: flex; align-items: center; gap: 10px; background: #fff; color: #0b0f2a; border-radius: 18px; padding: 8px 8px 8px 18px; }
.srp__form svg { color: #FF7753; flex: none; }
.srp__form input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 18px Inter, sans-serif; padding: 10px 0; background: none; }
.srp__form button { border: 0; border-radius: 12px; padding: 13px 20px; background: #FF7753; color: #fff; font: 700 15px/1 Inter, sans-serif; cursor: pointer; }
.srp__body { padding: 28px 20px 0; }
.srp__count { color: #6B7090; font-weight: 600; margin: 0 0 14px; }
.srp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.srp__list .sr-item { background: #fff; border: 1px solid #ECEDF4; padding: 16px; }
.srp__list .sr-item:hover { border-color: #FF7753; background: #fff; }
.srp__empty { background: #fff; border-radius: 18px; padding: 30px; text-align: center; border: 1px solid #ECEDF4; }
.srp__hint { color: #8B90AA; }

@media (max-width: 700px) {
  .so { padding: 0; align-items: stretch; }
  .so__panel { width: 100%; max-height: none; height: 100%; border-radius: 0; }
  .so__form { padding: 12px 12px 12px 16px; }
  .so__form input { font-size: 18px; }
  .so__close span, .so__foot { display: none; }
  .srp__hero { padding: 96px 16px 28px; }
  .srp__form button { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .so__panel, .so__backdrop { transition: none; } }
