/* =========================================================
   SXPO GLOBAL DISCOVERY SEARCH
   Kept outside the primary navigation so the header remains
   calm while search stays available on every public page.
   ========================================================= */
.sxpo-search-rail {
    position: relative;
    z-index: 1020;
    background: rgba(248, 250, 252, .96);
    border-top: 1px solid #eef1f5;
    border-bottom: 1px solid #e7ebf0;
}

.sxpo-search-rail-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0;
}

.sxpo-global-search-form {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    border: 1px solid #d9e1ea;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(16, 42, 86, .06);
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .sxpo-global-search-form:focus-within {
        border-color: rgba(255, 122, 0, .55);
        box-shadow: 0 10px 28px rgba(16, 42, 86, .09), 0 0 0 3px rgba(255, 122, 0, .08);
    }

.sxpo-search-scope-wrap {
    min-width: 148px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border-right: 1px solid #e8edf2;
}

.sxpo-search-leading-icon {
    color: #ff7a00;
    font-size: 1rem;
}

.sxpo-search-scope {
    max-width: 112px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #253654;
    font-size: .8rem;
    font-weight: 750;
    cursor: pointer;
}

.sxpo-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

    .sxpo-search-input-wrap input {
        width: 100%;
        height: 50px;
        border: 0;
        outline: 0;
        padding: 0 42px 0 16px;
        color: #17233b;
        background: transparent;
        font-size: .9rem;
    }

        .sxpo-search-input-wrap input::placeholder {
            color: #8793a5;
        }

.sxpo-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f3f5f8;
    color: #64748b;
}

.sxpo-search-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: #8a96a7;
    font-size: .72rem;
    white-space: nowrap;
    padding: 0 12px;
}

    .sxpo-search-shortcut kbd {
        padding: 3px 6px;
        border: 1px solid #dfe5ec;
        border-bottom-width: 2px;
        border-radius: 5px;
        background: #f8fafc;
        color: #66758b;
        font: inherit;
        font-weight: 700;
    }

.sxpo-search-submit {
    min-width: 106px;
    height: 42px;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 11px;
    background: #ff7a00;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}

    .sxpo-search-submit:hover {
        background: #e96d00;
        transform: translateY(-1px);
    }

.sxpo-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 2px);
    padding: 18px;
    border: 1px solid #e1e7ee;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 24px 55px rgba(16, 42, 86, .14);
}

    .sxpo-search-panel[hidden] {
        display: none;
    }

.sxpo-search-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 2px 4px 15px;
    border-bottom: 1px solid #edf1f5;
}

.sxpo-search-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #ff7a00;
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .12em;
}

.sxpo-search-panel-head strong {
    color: #17233b;
    font-size: .92rem;
}

.sxpo-search-panel-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8ef;
    border-radius: 8px;
    background: #fff;
    color: #66758b;
}

.sxpo-search-panel-grid {
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 22px;
    padding: 17px 4px 4px;
}

.sxpo-search-panel-label {
    display: block;
    margin-bottom: 9px;
    color: #7c889a;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sxpo-search-explore-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

    .sxpo-search-explore-links a {
        min-width: 0;
        display: grid;
        grid-template-columns: 34px 1fr auto;
        align-items: center;
        gap: 9px;
        padding: 10px;
        border: 1px solid #edf1f5;
        border-radius: 11px;
        text-decoration: none;
        background: #fff;
        transition: border-color .2s ease, background .2s ease, transform .2s ease;
    }

        .sxpo-search-explore-links a:hover {
            border-color: #ffd5b1;
            background: #fffaf5;
            transform: translateY(-1px);
        }

    .sxpo-search-explore-links > a > i:first-child {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        background: #fff3e6;
        color: #ff7a00;
    }

    .sxpo-search-explore-links span strong,
    .sxpo-search-explore-links span strong {
        color: #263754;
        font-size: .76rem;
    }

    .sxpo-search-explore-links span small {
        display: block margin-top: 2px color: #8a96a7 font-size: .67rem
    }

    .sxpo-search-explore-links > a > i:last-child {
        color: #a0aabd;
        font-size: .7rem;
    }

.sxpo-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

    .sxpo-search-tags a {
        display: inline-flex;
        padding: 7px 10px;
        border: 1px solid #e4e9ef;
        border-radius: 999px;
        color: #42526b;
        background: #f9fafb;
        font-size: .7rem;
        font-weight: 700;
        text-decoration: none;
    }

        .sxpo-search-tags a:hover {
            border-color: #ffbd86;
            background: #fff4e9;
            color: #d96200;
        }

.sxpo-search-panel-note {
    display: flex;
    gap: 9px;
    margin-top: 18px;
    padding: 11px;
    border-radius: 10px;
    background: #f8fafc;
    color: #728096;
    font-size: .7rem;
    line-height: 1.55;
}

    .sxpo-search-panel-note i {
        color: #ff7a00;
        flex: 0 0 auto;
    }

@media (max-width: 1199.98px) {
    .sxpo-search-rail-inner {
        padding: 9px 0;
    }

    .sxpo-search-shortcut {
        display: none;
    }

    .sxpo-search-submit {
        min-width: 52px;
    }

        .sxpo-search-submit span {
            display: none;
        }
}

@media (max-width: 767.98px) {
    .sxpo-search-rail {
        background: #fff;
    }

    .sxpo-search-rail-inner {
        padding: 8px 0;
    }

    .sxpo-global-search-form {
        min-height: 48px;
        border-radius: 12px;
    }

    .sxpo-search-scope-wrap {
        min-width: 48px;
        padding: 0 10px;
        border-right: 0;
    }

    .sxpo-search-scope {
        display: none;
    }

    .sxpo-search-leading-icon {
        font-size: .95rem;
    }

    .sxpo-search-input-wrap input {
        height: 46px;
        padding-left: 3px;
        font-size: .82rem;
    }

    .sxpo-search-submit {
        width: 42px;
        min-width: 42px;
        height: 38px;
        margin-right: 5px;
        border-radius: 9px;
    }

    .sxpo-search-panel {
        padding: 14px;
        border-radius: 0 0 14px 14px;
    }

    .sxpo-search-panel-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sxpo-search-explore-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .sxpo-search-rail-inner {
        padding-left: 0;
        padding-right: 0;
    }

    .sxpo-search-panel {
        left: 0;
        right: 0;
    }
}

/* Keep the primary navigation sticky without pinning the entire search rail.
   This prevents the public header from occupying excessive viewport height. */
.sxpo-header {
    position: relative;
    top: auto;
    backdrop-filter: none;
}

    .sxpo-header > .navbar {
        position: sticky;
        top: 0;
        z-index: 1030;
        background: rgba(255, 255, 255, .97);
        backdrop-filter: saturate(150%) blur(10px);
    }
