/* ==========================================================================================
   global-search.css — the search bar under the blue menu, its drop-down, and the
   Google-style results page (Pages/Search).                              (Nov 7, 2026)
   ========================================================================================== */

/* ---------- The bar (white strip under the blue menu, on every page) ---------- */
.gs-bar {
    background: #f8f9fb;
    border-bottom: 1px solid #e3e6ea;
    padding: .6rem 0;
    margin-bottom: 1rem;
}

.gs-form {
    position: relative;
    max-width: 46rem;
    margin: 0 auto;
}

.gs-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 0 .35rem 0 1rem;
    height: 2.75rem;
    transition: box-shadow .15s, border-color .15s;
}

    .gs-box:hover,
    .gs-box:focus-within {
        border-color: transparent;
        box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
    }

.gs-glass {
    width: 1.25rem;
    height: 1.25rem;
    fill: #9aa0a6;
    flex: none;
}

.gs-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 .75rem;
    font-size: 1rem;
    color: #202124;
}

    .gs-input::-webkit-search-cancel-button { cursor: pointer; }

.gs-kbd {
    flex: none;
    font-size: .75rem;
    color: #5f6368;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: .05rem .4rem;
    margin-right: .5rem;
    box-shadow: none;
}

.gs-box:focus-within .gs-kbd { display: none; }

.gs-btn {
    flex: none;
    border: 0;
    border-radius: 20px;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    font-weight: 500;
    padding: .4rem 1.1rem;
}

    .gs-btn:hover { filter: brightness(.92); }

@media (max-width: 575.98px) {
    .gs-kbd { display: none; }
    .gs-btn { padding: .4rem .8rem; }
}

/* ---------- The drop-down while typing ---------- */
.gs-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1060;                       /* above Bootstrap menus and the smart dropdowns */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(32, 33, 36, .28);
    max-height: 70vh;
    overflow-y: auto;
    padding: .35rem 0;
}

.gs-s-group + .gs-s-group { border-top: 1px solid #f1f3f4; }

.gs-s-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 1.1rem .15rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #5f6368;
}

.gs-s-count {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    text-transform: none;
}

.gs-s-link {
    display: block;
    padding: .4rem 1.1rem;
    color: #202124;
    text-decoration: none;
}

    .gs-s-link.active,
    .gs-s-link:hover { background: #f1f3f4; color: #202124; }

.gs-s-title { display: block; color: #1a0dab; }
.gs-s-meta { display: block; font-size: .8rem; color: #5f6368; }

.gs-s-shortcut {
    display: flex;
    align-items: center;
    gap: .6rem;
    border-bottom: 1px solid #f1f3f4;
}

.gs-s-arrow { margin-left: auto; color: #5f6368; }

.gs-s-all {
    border-top: 1px solid #e8eaed;
    margin-top: .25rem;
    padding-top: .6rem;
    color: #1a73e8;
    font-weight: 500;
}

.gs-s-empty { padding: .75rem 1.1rem; color: #5f6368; }

.gs-suggest mark,
.gs-results mark {
    background: transparent;
    color: inherit;
    font-weight: 700;
    padding: 0;
}

/* ---------- The results page ---------- */
.gs-results { max-width: 52rem; }

.gs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: .5rem;
    margin-bottom: .5rem;
}

.gs-tab {
    padding: .3rem .8rem;
    border-radius: 18px;
    border: 1px solid #dadce0;
    color: #3c4043;
    text-decoration: none;
    font-size: .875rem;
    white-space: nowrap;
}

    .gs-tab span { color: #70757a; margin-left: .2rem; }
    .gs-tab:hover { background: #f1f3f4; color: #202124; }

    .gs-tab.active {
        background: #e8f0fe;
        border-color: #d2e3fc;
        color: #1967d2;
        font-weight: 600;
    }

        .gs-tab.active span { color: #1967d2; }

.gs-stats { color: #70757a; font-size: .875rem; margin-bottom: 1rem; }

.gs-shortcuts { display: grid; gap: .5rem; margin-bottom: 1.25rem; }

.gs-shortcut {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .7rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 12px;
    text-decoration: none;
    color: #202124;
}

    .gs-shortcut:hover { background: #f8f9fa; color: #202124; }

.gs-shortcut-icon { font-size: 1.5rem; }
.gs-shortcut-title { display: block; color: #1a0dab; font-size: 1.05rem; }
.gs-shortcut-sub { display: block; color: #5f6368; font-size: .85rem; }
.gs-shortcut-arrow { margin-left: auto; font-size: 1.5rem; color: #5f6368; }

.gs-group {
    margin-bottom: 1.75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #ebebeb;
}

.gs-group-single { border-bottom: 0; }

.gs-group-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.15rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: .75rem;
}

.gs-group-count { font-size: .85rem; font-weight: 400; color: #70757a; }

.gs-result { margin-bottom: 1.35rem; }

.gs-crumb {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    color: #4d5156;
    line-height: 1.3;
}

.gs-crumb-sep { color: #70757a; }

.gs-title {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1.35;
    color: #1a0dab;
    text-decoration: none;
    margin: .1rem 0 .1rem;
}

    .gs-title:hover { text-decoration: underline; }
    .gs-title:visited { color: #681da8; }

.gs-meta { color: #4d5156; font-size: .9rem; }
.gs-snippet { color: #70757a; font-size: .875rem; }

.gs-more {
    display: inline-block;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

    .gs-more:hover { text-decoration: underline; }

.gs-none { color: #202124; margin-top: 1rem; }
.gs-tips li { margin-bottom: .35rem; }
