/* Search window of the site: blurred page behind, search bar in the middle, results by section. */
html.sh-search-on { overflow: hidden; }

.sh-search {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12vh 16px 24px;
    background: rgba(6, 6, 10, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    backdrop-filter: blur(18px) saturate(120%);
}
.sh-search[hidden] { display: none; }

.sh-search__box {
    width: min(720px, 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 22px;
    border-radius: 999px;
    background: rgba(22, 22, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.35rem;
}
[dir="rtl"] .sh-search__box { padding: 12px 22px 12px 12px; }
.sh-search__box:focus-within { border-color: rgba(255, 255, 255, 0.35); }

.sh-search__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-size: 1.1rem;
}
.sh-search__input:focus,
.sh-search__input:focus-visible { outline: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
.sh-search__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.sh-search__input::-webkit-search-cancel-button { display: none; }

.sh-search__close {
    flex: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.15rem;
}
.sh-search__close:hover { background: rgba(255, 255, 255, 0.16); }

.sh-search__results {
    width: min(720px, 100%);
    margin-top: 14px;
    max-height: calc(100vh - 12vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.sh-search__results:empty { display: none; }

.sh-search__section h6 {
    margin: 16px 10px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.sh-search__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
}
.sh-search__item:hover,
.sh-search__item:focus-visible { background: rgba(255, 255, 255, 0.09); color: #fff; outline: 0; }

.sh-search__thumb {
    flex: none;
    width: 46px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
}
.sh-search__thumb.is-wide { width: 82px; height: 46px; }
.sh-search__thumb.is-logo { width: 46px; height: 46px; }
.sh-search__thumb.is-logo.has-img { background: #fff; }
.sh-search__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-search__thumb.is-logo img { object-fit: contain; padding: 4px; }

.sh-search__text { display: flex; flex-direction: column; min-width: 0; }
.sh-search__text strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-search__text small { color: rgba(255, 255, 255, 0.55); }

.sh-search__empty { margin: 22px 0; text-align: center; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 575.98px) {
    .sh-search { padding-top: 8vh; }
    .sh-search__box { font-size: 1.15rem; }
    .sh-search__results { max-height: calc(100vh - 8vh - 100px); }
}
