/* === BOOKS HEADER & FOOTER === */


body[data-sitename="booksgateway"] .journal-header,
body[data-sitename="booksgateway"] .widget-SitePageFooter .journal-footer.journal-bg {
    background: unset;
    background-color: #eb5e62;
}


body[data-sitename="booksgateway"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link {
    color: #000000;
    font-size: 2rem;
}


body[data-sitename="booksgateway"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover {
    text-decoration: none;
}


body[data-sitename="booksgateway"] .journal-header .site-menu .nav-link {
    color: #000000;
}


@media (max-width: 899px) {
    body[data-sitename="booksgateway"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle {
        color: #000000;
    }
}


body[data-sitename="booksgateway"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img {
    max-height: 2rem;
}


/* === BOOKS GATEWAY HOMEPAGE === */


/* =========================================================
   HERO ROW
   ========================================================= */


body[data-sitename="booksgateway"].pg_index
.theme-homepage-layout.gateway
.hero-row {
    background-color: #eb5e6233;
}


/*
   Silverchair makes the inner wrapper flex.
   Force the two hero widgets to stack vertically.
*/

body[data-sitename="booksgateway"].pg_index
.theme-homepage-layout.gateway
.hero-row > .widget-dynamic-inner-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}


/* Make both hero widgets full width */

body[data-sitename="booksgateway"].pg_index
.theme-homepage-layout.gateway
.hero-row
.widget-instance-books_home-hero-feature,
body[data-sitename="booksgateway"].pg_index
.theme-homepage-layout.gateway
.hero-row
.widget-instance-books_home-hero-search-bar {
    width: 100%;
    max-width: none;
    flex: 0 0 100%;
}


/* =========================================================
   HERO FEATURE
   ========================================================= */


body[data-sitename="booksgateway"].pg_index
.theme-homepage-layout.gateway
.widget-SelfServeContent
.homepage-panel-header {
    background-color: #eb5e62;
}


/* Remove default panel width / margin */

body[data-sitename="booksgateway"].pg_index
.theme-homepage-layout.gateway
.widget-instance-books_home-hero-feature
.homepage-panel-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
}


body[data-sitename="booksgateway"].pg_index
.theme-homepage-layout.gateway
.widget-instance-books_home-hero-feature
.homepage-panel-wrap h3 {
    margin: 0;
}


/* =========================================================
   SEARCH / BUTTON WIDGET
   ========================================================= */


body[data-sitename="booksgateway"].pg_index
.widget-instance-books_home-hero-search-bar {
    width: 100%;
}


body[data-sitename="booksgateway"].pg_index
.widget-instance-books_home-hero-search-bar
.hero-search-container {
    display: flex !important;
    align-items: center;
    width: 100%;
    gap: 8px;
}


/* ---------------------------------------------------------
   FIND A BOOK - LEFT
   --------------------------------------------------------- */


body[data-sitename="booksgateway"].pg_index
.widget-instance-books_home-hero-search-bar
.home-btn-wrap {
    order: 1 !important;
    flex: 0 0 auto;
    margin: 0 auto 0 0 !important;
    padding: 0 !important;
}


body[data-sitename="booksgateway"].pg_index
.widget-instance-books_home-hero-search-bar
.home-btn-wrap .button {
    display: inline-block;
    margin: 0;
    padding: 9px 18px;
    border: 0;
    border-radius: 25px;
    background-color: #14555d;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   SEARCH BOX - RIGHT
   --------------------------------------------------------- */


body[data-sitename="booksgateway"].pg_index
.widget-instance-books_home-hero-search-bar
.navbar-search {
    order: 2 !important;
    flex: 0 1 414px !important;
    width: 414px !important;
    max-width: 414px !important;
    margin: 0 !important;
    padding: 0 !important;
}


body[data-sitename="booksgateway"].pg_index
.widget-instance-books_home-hero-search-bar
.microsite-search {
    display: flex !important;
    width: 100% !important;
}


body[data-sitename="booksgateway"].pg_index
.widget-instance-books_home-hero-search-bar
.navbar-search-input_wrap {
    flex: 1 1 auto !important;
    min-width: 0;
}


/* ---------------------------------------------------------
   ADVANCED SEARCH
   --------------------------------------------------------- */


body[data-sitename="booksgateway"].pg_index
.widget-instance-books_home-hero-search-bar
.navbar-search-advanced {
    order: 3 !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
}


body[data-sitename="booksgateway"].pg_index
.widget-instance-books_home-hero-search-bar
.advanced-search {
    display: block;
    font-size: 11px;
    line-height: 1.1;
    text-align: left;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */


@media (max-width: 900px) {

    body[data-sitename="booksgateway"].pg_index
    .widget-instance-books_home-hero-search-bar
    .hero-search-container {
        flex-wrap: wrap;
    }


    body[data-sitename="booksgateway"].pg_index
    .widget-instance-books_home-hero-search-bar
    .home-btn-wrap {
        width: 100%;
        margin-bottom: 14px !important;
    }


    body[data-sitename="booksgateway"].pg_index
    .widget-instance-books_home-hero-search-bar
    .navbar-search {
        flex: 1 1 400px !important;
        width: auto !important;
        max-width: none !important;
    }

}


@media (max-width: 600px) {

    body[data-sitename="booksgateway"].pg_index
    .widget-instance-books_home-hero-search-bar
    .hero-search-container {
        display: block !important;
    }


    body[data-sitename="booksgateway"].pg_index
    .widget-instance-books_home-hero-search-bar
    .home-btn-wrap {
        margin-bottom: 16px !important;
    }


    body[data-sitename="booksgateway"].pg_index
    .widget-instance-books_home-hero-search-bar
    .navbar-search {
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 8px !important;
    }

}