#searchform {
    display: block;
    width: 80%;
}
.search-bar {
    top: 85px !important;
    position: fixed !important;
    left: 0;
    right: 0;
    z-index: 999999;
    width: 100% !important;
    background: var(--body-bgr);
    max-width: 100% !important;
    bottom: 0;
    margin-bottom: 0 !important;
    padding: 75px 85px 0;
    /* Hidden + animatable by default. The overlay fades in and glides down
       when body.search-open is toggled by js/toggler-search.js. The delayed
       visibility keeps it in the DOM during the fade-out so the exit animates
       too. */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 0.28s ease,
                transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
                visibility 0s linear 0.34s;
}
body.search-open .search-bar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.28s ease,
                transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
                visibility 0s;
}
/* Slight stagger: the form settles a touch after the panel, giving a layered
   "unfold" feel rather than a flat fade. */
.search-bar form {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease 0.05s,
                transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s;
}
body.search-open .search-bar form {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .search-bar,
    body.search-open .search-bar,
    .search-bar form,
    body.search-open .search-bar form {
        transition: opacity 0.15s ease, visibility 0s;
        transform: none;
    }
}
body.search .search-bar {
    display: none !important;
}
body.search .form-group.menu-bar-form form.searchform i.livesearch {
    top: 33px;
}
body.search .nuv-search-results-page .manual-searchresults--page > li {
    list-style: none;
}
.search-bar form {
    margin: auto;
    position: relative;
}
.search-bar .nuv-search-close {
    position: absolute;
    /* Vertically centred on the 65px search input. The input sits at
       (padding-top 75px - 9px input margin) = 66px, so its centre is at
       66 + 32.5 = 98.5px. translateY(-50%) keeps the button centred on that
       line regardless of the button's own height, at every resolution. */
    top: 98.5px;
    transform: translateY(-50%);
    right: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-default);
    /* The visible "×" is drawn with the two pseudo-element strokes below so it
       is geometrically centred in the circle; hide the &times; text glyph whose
       font baseline would otherwise sit slightly off-centre. */
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    z-index: 10000000;
    min-height: 24px;
}
.search-bar .nuv-search-close::before,
.search-bar .nuv-search-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
}
.search-bar .nuv-search-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.search-bar .nuv-search-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.search-bar .nuv-search-close:hover,
.search-bar .nuv-search-close:focus {
    opacity: 0.7;
    outline: none;
}
/* ===========================================================
   Search overlay OPEN state (body.search-open is toggled by
   js/toggler-search.js while the popover is visible). It layers
   the overlay correctly against the surrounding chrome:
   - keep the top navigation (and its "API Reference" dropdown)
     above the overlay so the dropdown is not clipped behind it;
   - push the OneTrust floating "cookie shield" button under the
     overlay instead of letting it float on top of it;
   - hide the show/hide sidebar toggle while searching.
   =========================================================== */
body.search-open #Navigation25 {
    /* Above .search-bar (999999), #jquery-live-search (9999999) and
       .nuv-search-close (10000000) so the nav dropdown renders on top. */
    z-index: 10000001;
}
body.search-open #ot-sdk-btn-floating {
    z-index: 999998 !important; /* just below .search-bar (999999) */
}
body.search-open #Navigation25 .menu-toggler {
    display: none !important;
}
#jquery-live-search {
    position: fixed !important;
    z-index: 9999999;
    height: 100vh;
}
#jquery-live-search .manual-searchresults {
    border: 0;
    box-shadow: none;
    height: 100%;
    background: transparent;
    margin-top: 95px;
    max-width: 100%;
    margin: auto;
}
#jquery-live-search .manual-searchresults .live_search_doc_icon {
    padding: 16px;
}

.form-group.menu-bar-form form.searchform i.livesearch {
    position: absolute;
    width: 25px;
    height: 25px;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    margin-top: 22px;
    pointer-events: none;
    background: url(../../img/search.svg) no-repeat right center;
    background-size: contain;
}

/* Show active loading indicator on the right while live search request is running. */
.form-group.menu-bar-form form.searchform input.form-control.header-search.search_loading {
    background-image: url(../../img/loading.svg) !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 28px 28px !important;
    padding-right: 52px;
}

body .navbar .form-control.header-search.search_loading {
    background-image: url(../../img/loading.svg) !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 28px 28px !important;
    padding-right: 52px;
}

#jquery-live-search .manual-searchresults .live_search_doc_icon > div:first-child {
    font-family: "Inter Tight";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 21px */
}
#jquery-live-search .manual-searchresults .live_search_doc_icon .nuv-breadcrumb {
    margin: 0;
    color: var(--Primary-Core-Navy, #160850);
    font-family: "Inter Tight";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 16.8px */
    margin-top: 12px;
}
#jquery-live-search .manual-searchresults div {
    color: var(--text-default);
}
#jquery-live-search .manual-searchresults div.search-icon img {
        width: 174px;
        height: 174px;
}
#jquery-live-search .manual-searchresults .live_search_navigation a {
    padding: 0 10px !important;
    color: var(--link-color);
}
div.live_search_navigation {
  font-size: 15px !important;
  font-weight: 400 !important;
}
@media (max-width: 1199px) {
    #searchform {
        width: 90%;
    }
}
@media (max-width: 991px) {
    #searchform {
        width: 100%;
    }
    /* The parent theme (manual/style.css) force-hides .form-group.menu-bar-form
       with display:none !important across the whole <=991px range (phone rule at
       :1177 and tablet rule at :5870). Keep the overlay in the layout so it can
       be opened and can animate on mobile/tablet just like on desktop — it stays
       hidden via the visibility/opacity in the base .search-bar rule and is
       revealed by body.search-open. The extra .search-bar class gives
       specificity (0,3,0), beating the parent's (0,2,0) !important. */
    .form-group.menu-bar-form.search-bar {
        display: block !important;
    }
}

/* hide extra search options */
#search_last_viewed_title,
.live_search_last_viewed,
#search_suggested_title,
.live_search_suggested {
    display: none;
}

/* ===========================================================
   Mid-width search overlay (<= 1258px)
   The wide desktop "no results" / "show all" panel (95px margin,
   70% width) is taller than the overlay here and forces an
   unwanted scrollbar. Stretch it full width and trim the top
   margin so it fits without scrolling.
   =========================================================== */
@media (max-width: 1258px) {
    #jquery-live-search .manual-searchresults {
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 0 !important;
    }
    body ul.manual-searchresults .manual-searchresults-showall,
    body .manual-searchresults .manual-searchresults-noresults {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 24px !important;
        padding: 40px 43px !important;
    }
}

/* ===========================================================
   Mobile search overlay (<= 768px)
   Use the full width and render the "no results" / "show all"
   panels as a compact, centered column instead of the wide
   desktop modal that overflowed the screen.
   =========================================================== */
@media (min-width: 991px) {
    .search-bar .nuv-search-close {
        right: 75px;
    }
}
@media (min-width: 1199px) {
    .search-bar .nuv-search-close {
        right: 140px;
    }
}
@media (max-width: 768px) {
    .search-bar {
        top: 79px !important;
        padding: 20px 20px 0 !important;
    }
    .search-bar .nuv-search-close {
        /* Mobile padding-top is 20px, so input centre = 20 - 9 + 32.5 = 43.5px. */
        top: 43.5px;
        right: 33px;
    }
    #jquery-live-search {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        /* Size to content instead of 100vh so the results / "no results"
           panel always hugs the search input and can never drift to the
           bottom of the viewport. Cap the height and scroll if the list is
           long. */
        height: auto !important;
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
    }
    #jquery-live-search .manual-searchresults {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 16px auto 0 !important;
        padding: 0 20px !important;
    }
    #jquery-live-search .manual-searchresults div.search-icon img {
        width: 96px !important;
        height: 96px !important;
    }
    body ul.manual-searchresults .manual-searchresults-showall,
    body .manual-searchresults .manual-searchresults-noresults {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
        padding: 28px 22px !important;
        margin-top: 20px !important;
    }
    body .manual-searchresults .manual-searchresults-noresults .content h1 {
        font-size: 24px !important;
        line-height: 120% !important;
    }
}

/* ===========================================================
   Full search RESULTS PAGE (/?s=term) styled like the overlay
   so it matches the section shown when clicking the search icon.
   =========================================================== */
body .nuv-search-results-page {
    padding-top: 120px;
    padding-bottom: 60px;
}

/* Search input replicating the overlay search bar.
   The .menu-bar-form class gives the pill input styling but also pulls in the
   nav's responsive rules that hide/fix it at <=991px. Override those here so
   the page bar stays visible and in normal flow at every breakpoint. */
body .nuv-search-results-page__bar.form-group.menu-bar-form {
    display: block !important;
    position: relative !important;
    top: auto !important;
    height: auto !important;
    width: 100% !important;
    max-width: 760px !important;
    padding: 0 !important;
    margin: 0 auto 28px !important;
    background: transparent !important;
    float: none !important;
}
body .nuv-search-results-page__bar {
    max-width: 760px;
    margin: 0 auto 28px;
    position: relative;
    float: none;
}
body .nuv-search-results-page__bar form.searchform {
    position: relative;
    margin: 0;
    width: 100%;
}
body .nuv-search-results-page__bar form.searchform .form-group {
    margin: 0;
    position: relative;
}
body .nuv-search-results-page__bar form.searchform i.livesearch {
    position: absolute;
    left: 24px;
    top: 50%;
    margin-top: 0 !important;
    transform: translateY(-50%);
    z-index: 2;
}
body .nuv-search-results-page__bar input.header-search {
    width: 100%;
    margin-top: 0 !important;
    padding-right: 56px;
}
body .nuv-search-results-page__bar .nuv-search-results-page__submit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--Primary-Core-Navy, #160850);
    font-size: 20px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
body .nuv-search-results-page__bar .nuv-search-results-page__submit:hover,
body .nuv-search-results-page__bar .nuv-search-results-page__submit:focus {
    color: var(--link-color);
    outline: none;
}

/* Results list: natural page flow, same card look as the overlay */
body .nuv-search-results-page .manual-searchresults.manual-searchresults--page {
    max-width: 760px;
    width: 100%;
    margin: 0 auto !important;
    max-height: none !important;
    overflow: visible !important;
    border: 0;
    box-shadow: none;
    background: transparent;
}
body .nuv-search-results-page .manual-searchresults--page > li {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}
body .nuv-search-results-page .manual-searchresults--page > li:last-child {
    border-bottom: 0;
}
body .nuv-search-results-page .manual-searchresults--page .live_search_doc_icon > div:first-child {
    font-family: "Inter Tight";
    font-size: 15px;
    font-weight: 500;
    line-height: 140%;
}
body .nuv-search-results-page .manual-searchresults--page .live_search_navigation a {
    padding: 0 10px !important;
    color: var(--link-color);
}
body .nuv-search-results-page .manual-searchresults--page .nuv-breadcrumb {
    margin: 12px 0 0;
    color: var(--Primary-Core-Navy, #160850);
    font-family: "Inter Tight";
    font-size: 12px;
    font-weight: 400;
    line-height: 140%;
}
body .nuv-search-results-page .manual-searchresults--page .nuv-breadcrumb a {
    display: inline;
    padding: 0 !important;
    font-weight: normal;
    font-size: 12px;
    color: #888;
    background-color: transparent;
}
body .nuv-search-results-page .manual-searchresults--page .nuv-breadcrumb a:hover,
body .nuv-search-results-page .manual-searchresults--page .nuv-breadcrumb a:active,
body .nuv-search-results-page .manual-searchresults--page .nuv-breadcrumb a:focus {
    background-color: transparent;
    color: #888;
}
body .nuv-search-results-page .manual-searchresults--page .nuv-breadcrumb .breadcrumb-arrow {
    display: inline-block;
    position: relative;
    margin: 0 4px;
}
body .nuv-search-results-page .manual-searchresults--page .nuv-breadcrumb .breadcrumb-arrow i.fa {
    color: rgb(136, 136, 136);
    margin-left: 2px;
    font-size: 12px;
}
body .nuv-search-results-page .manual-searchresults--page .nuv-breadcrumb .current,
body .nuv-search-results-page .manual-searchresults--page .nuv-breadcrumb span.current {
    font-size: 12px;
    font-weight: normal;
    color: #888 !important;
}
body .nuv-search-results-page .manual-searchresults--page div.live_search_navigation {
    font-size: 15px !important;
    font-weight: 400 !important;
}
body .nuv-search-results-page .live_search_doc_icon > div[href] {
    cursor: pointer;
}

/* No-results panel inside the page should sit directly under the input */
body .nuv-search-results-page .manual-searchresults--page .manual-searchresults-noresults {
    margin-top: 0 !important;
}
