/* Site search: icon in the top bar + pop-up search box (js/qba-search.js) */
.header-nav-top .qs-nav a { cursor: pointer; }
.header-nav-top .qs-nav i { font-size: 13px; }
html.qs-lock, html.qs-lock body { overflow: hidden; }
.qs-modal { position: fixed; inset: 0; z-index: 100000; display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px; }
.qs-modal[hidden] { display: none; }
.qs-backdrop { position: absolute; inset: 0; background: rgba(0, 25, 60, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: qsFade .2s ease; }
.qs-panel { position: relative; width: 100%; max-width: 680px; max-height: 80vh; display: flex; flex-direction: column; background: #fff; border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 20, 50, .35); overflow: hidden; animation: qsIn .22s ease; }
.qs-form { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 20px; border-bottom: 1px solid #e6ebf1; margin: 0; }
html[dir=rtl] .qs-form { padding: 0 20px 0 14px; }
.qs-form > i { color: #3A6892; font-size: 18px; }
.qs-form input { flex: 1; min-width: 0; height: 62px; border: 0; outline: none; font-size: 18px; color: #1d2733; background: transparent; box-shadow: none; }
.qs-form input::-webkit-search-cancel-button { display: none; }
.qs-close { border: 0; background: #eef2f7; color: #4a5866; width: 34px; height: 34px; border-radius: 8px; font-size: 22px; line-height: 34px; padding: 0; }
.qs-close:hover { background: #dde5ee; }
.qs-results { overflow-y: auto; padding: 8px; }
.qs-msg { padding: 22px 14px; color: #6b7785; text-align: center; font-size: 14px; }
.qs-item { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; color: #1d2733; text-decoration: none !important; }
.qs-item:hover, .qs-item.on { background: #f0f4f9; }
.qs-pic { flex: 0 0 52px; width: 52px; height: 44px; border-radius: 8px; overflow: hidden; background: #eef2f7; display: flex; align-items: center; justify-content: center; color: #8a98a8; }
.qs-pic img { width: 100%; height: 100%; object-fit: cover; }
.qs-item.k-members .qs-pic { flex-basis: 44px; width: 44px; border-radius: 50%; background: linear-gradient(160deg, #3A6892, #002D6A); }
.qs-item.k-members .qs-pic img { object-position: 50% 10%; }
.qs-txt { min-width: 0; display: flex; flex-direction: column; }
.qs-txt small { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #3A6892; font-weight: 600; }
html[dir=rtl] .qs-txt small { text-transform: none; letter-spacing: 0; }
.qs-txt b { font-size: 15px; font-weight: 600; color: #002D6A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-txt em { font-style: normal; font-size: 13px; color: #5d6a78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-txt mark { background: #fff1b8; color: inherit; padding: 0; }
.qs-all { display: block; margin: 6px 4px 4px; padding: 12px; text-align: center; border-radius: 10px; background: #002D6A; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.qs-all:hover { background: #3A6892; }
@keyframes qsFade { from { opacity: 0; } }
@keyframes qsIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@media (max-width: 575px) {
    .qs-modal { padding: 0; }
    .qs-panel { max-width: none; max-height: 100%; height: 100%; border-radius: 0; }
    .qs-form input { height: 58px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .qs-backdrop, .qs-panel { animation: none; } }
