/* ==========================================================================
   GLOBAL SEARCH PANEL – DESKTOP BASE
   ========================================================================== */

.siu-global-search {
    background: rgb(var(--color-maroon-500));
    color: rgb(255 255 255);
    padding: 0.75rem 0 1.75rem;
}

.siu-global-search__top {
    max-width: var(--siu-max-width);
    margin: 0 auto;
    padding: 0 1.5rem 0.5rem;
    display: flex;
    justify-content: center;
}

.siu-global-search__close {
    background: transparent;
    border: 0;
    color: rgb(255 255 255);
    /* text-transform: uppercase; */
    letter-spacing: 0.12em;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.siu-global-search__close span[aria-hidden="true"] {
    font-size: 1.1rem;
    line-height: 1;
}

.siu-global-search__close:focus-visible {
    outline: 2px solid rgb(255 255 255);
    outline-offset: 2px;
}

/* Center the search block under the bar */

.siu-global-search__inner {
    max-width: var(--siu-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.siu-global-search__content {
    display: flex;
    justify-content: center;
}

.siu-global-search__search-block {
    width: 100%;
    max-width: 960px;
    text-align: left;
}

.siu-global-search__heading {
    margin: 0 0 0.5rem 0;
    color: rgb(255 255 255);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
}

/* Search form */

.siu-global-search__form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 0.75rem;
}

.siu-global-search__form input[type="search"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 2px solid rgb(var(--color-yellow-200));
    color: rgb(var(--theme-text-color));
    background-color: rgb(255 255 255);
}

.siu-global-search__form input[type="search"]::placeholder {
    color: rgba(3, 0, 1, 0.7);
}

.siu-global-search__form button {
    padding: 0.5rem 1.1rem;
    border-radius: 4px;
    border: none;
    background: rgb(255 255 255);
    color: rgb(var(--color-maroon-500));
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.siu-global-search__form button:focus-visible {
    outline: 2px solid rgb(255 255 255);
    outline-offset: 2px;
}

/* Quicklinks */

.siu-global-quicklinks ul {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    font-weight: 600;
}

.siu-global-quicklinks a {
    color: rgb(255 255 255);
    text-decoration: none;
    font-size: 0.85rem;
}

.siu-global-quicklinks a:hover,
.siu-global-quicklinks a:focus-visible {
    text-decoration: underline;
}

/* Tablet-down improvements for the search layout (still desktop panel) */
@media (max-width: 700px) {
    .siu-global-search__inner {
        padding: 0 1rem;
    }

    .siu-global-search__search-block {
        max-width: 100%;
    }

    .siu-global-search__form {
        flex-direction: column;
        align-items: stretch;
    }

    .siu-global-search__form button {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   mobile-search.css – Mobile Quicklinks & Search Overlay
   ========================================================================== */

/* Hide mobile search toggle by default (desktop and large screens) */
.siu-mobile-search-toggle {
    display: none;
}

/* Optional: base SVG styling (safe even when hidden) */
.siu-mobile-search-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

.siu-mobile-search-toggle svg,
.siu-mobile-search-toggle svg path,
.siu-mobile-search-toggle svg use {
    fill: #ffffff;
}

/* Mobile-only behavior */
@media (max-width: 700px) {

    /* Keep the bar itself so the panel can exist */
    .siu-global-bar__inner {
        display: none;
    }

    .siu-main-header__inner {
        position: relative;
    }

    /* Show and position the magnifying glass on mobile */
    .siu-mobile-search-toggle {
        display: block;
        position: absolute;
        top: 1.25rem;
        right: 1.5rem;
        width: 32px;
        height: 32px;
        border: 0;
        background: transparent;
        cursor: pointer;
        padding: 0;
    }

    .siu-mobile-search-toggle:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }

    /* Full-screen overlay panel */
    #siu-global-search {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        padding-top: 4.5rem;
        background: rgb(var(--color-maroon-500));
        z-index: 9998;
        overflow-y: auto;
    }

    .siu-global-search__top {
        position: sticky;
        top: 0;
        background: rgb(var(--color-maroon-500));
        padding: 0 1.25rem;
        z-index: 9999;
        display: flex;
        justify-content: flex-end;
    }

    .siu-global-search__inner {
        padding: 1.5rem;
        max-width: 100%;
    }

    .siu-global-search__search-block {
        max-width: 100%;
    }

    .siu-global-search__form {
        flex-direction: column;
        align-items: stretch;
    }

    .siu-global-search__form button {
        width: 100%;
        text-align: center;
    }

    .siu-global-quicklinks ul {
        justify-content: center;
    }
}