  /*-------------------------------------------*\ 
  search-box.css
  
  The Search Box provides search functionality with
  tabs filtering for different types of publications.  
  
  ORGANIZATION:
      div.bc-tabbed-content <-- BC AEM component
      └── section.tabs-section-new
          ├── ul.nav.nav-tabs
          └── div.tab-content
              └── div.tab-pane
                  └── div.bchtml <-- custom HTML
                      └── div.library-search
                          ├── div.search-form
                          │   └── div
                          │       └── div#bcbento-search
                          │           ├── ...
                          │           └── button.search-button         
                          └── div.advanced-wrapper
                              ├── a.whatAmISearching
                              └── a.advanced
\*-------------------------------------------*/

* {
  overflow-anchor: none; /* prevent auto-scroll to tabbed content */
}

.bc-tabbed-content {
  margin: 0 100px;
  position: relative;
  z-index: 1;
}

section.tabs-section-new.folder-default {
  padding: 0;
}

/* ============ Tabs ============ */

.tabs-section-new.folder-default ul.nav-tabs {
  margin: 0 0 0 50px;
}

.tabs-section-new.folder-default ul.nav-tabs > li {
  margin-top: 0;
  margin-bottom: 0 !important;
  border: none !important;
  white-space: nowrap;
  overflow: hidden;
}

.tabs-section-new.folder-default ul.nav-tabs > li[role="presentation"] a {
  display: flex;
  align-content: center;
  height: 46px;
  background-color: #f0f0f0;
  color: black;
  text-align: center;
  font-size: 16px;
  padding: 2px 35px;
  margin-top: 0;
  text-overflow: ellipsis;
  
}

.tabs-section-new.folder-default
  ul.nav-tabs
  > li[role="presentation"]
  a[role="tab"] {
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  min-width: 100px;
}

.tabs-section-new.folder-default
  ul.nav-tabs
  > li.active[role="presentation"]
  a {
  color: white;
  background-color: #85100a !important; /* Need to override */
}

/* ========== Tab Contents ========= */

.tab-content {
  background-color: #85100a !important;
  padding: 50px 10px !important;
  border: 0 !important;
}

.library-search .accessibility-text {
  display: none;
}

.library-search .advanced-wrapper {
  color: #dccaa0;
  font-size: 13px;
}

.library-search .advanced-wrapper a {
  color: inherit; /* Inherit from above */
}

.library-search .advanced-wrapper a:hover,
.library-search .advanced-wrapper a:active {
  color: inherit;
}

/* ================ Search Form ================ */

.library-search {
  margin: 0 40px;
}

.library-search form {
  display: flex;
  margin: 0;
  width: 100%;
  flex-direction: row-reverse; /* place search button on right */
}

.library-search .search-form div {
  width: 100%;
}

.twitter-typeahead {
  /* 'All' search span tag needs this */
  width: 100%;
}

.library-search input:focus {
  /* Keep left border when focused */
  border-color: #726157 !important;
}

/*  Springshare search form generates its own CSS and
    must be overriden with double ID selector */
.library-search input,
#s-lg-guide-search-1692023711288#s-lg-guide-search-1692023711288 {
  outline: none;
  border: none;
  border-color: #726157;
  height: 50px;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 20px;
  border-left-style: solid;
  border-left-width: 5px;
  width: 100%;
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 50px;
}

.search-form, .s-lg-widget-search /* <= Springshare class */ {
  margin-bottom: 15px;
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #726157 !important;
  opacity: 1; /* Firefox */
}

/* =========== Search Button ============ */

/*  Springshare's Search Box comes with its own
    set of classes/IDs and CSS. It's not possible
    to add our own classes without a FOUC.
    So we have to use two selectors to make sure
    Springshare's Search Box is styled consistent
    with the other buttons.
*/

.library-search .search-button, #pagecontent .s-lg-btn-api-drop /* <= Springshare class */ {
  position: absolute;
  height: 50px;
  width: 50px !important;
  border: none;
  background-color: white;
  font-size: 16px;
  color: rgb(85, 85, 85);
  padding: 1px 4px;
}

#pagecontent .s-lg-btn-api-drop:hover {
  border: none !important;
  color: rgb(85, 85, 85) !important;
  background-color: white;
}

.hours-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 20px 0;
}

.small-heading-section {
  padding: 0 50px;
}

.small-heading {
  font-size: 2.5rem;
}

.text-new.content.padding-sm.none {
  padding: 0;
}

#hours-quick-links-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.library-search .advanced-wrapper a:focus {
  outline: none;
}

@media screen and (max-width: 1250px) {
  .bc-tabbed-content {
    margin: 0;
  }
}

@media screen and (max-width: 991px) {
  li[role="presentation"] a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-width: 2px;
  }
  .tabs-section-new.folder-default ul.nav-tabs li {
    width: 50%;
  }
  .tabs-section-new.folder-default ul.nav-tabs {
    background-color: #c5bfb0;
  }
}

@media screen and (max-width: 767px) {
  .library-search {
    margin: 0 15px;
  }
  .tabs-section-new.folder-default ul.nav-tabs {
    margin: 0;
  }
}
