/* Changes the color of the Summon homepage search box text */
div.search-box-flex .header-searchbox-container h2 {
  color: #004D43 !important;
}

/* Resizes the small logo on the Summon results page*/
.logo {
  margin-top: 40px;
  max-height: 100px;
}

/* Resizes the large logo on the Summon home page */
.home .logo {
  width: auto;
  margin: 8em auto;
  max-height: 200px;
}

/* Apply only to mobile; decreases white space */
@media (max-width: 768px) {

  /* Reduce overall header height */
  .summonHeader,
  .header,
  .topHeader {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: unset !important;
  }

  /* Tighten logo spacing */
  .logo,
  .logoContainer,
  .summonLogo {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Resize the actual logo image */
  .summonHeader .logo img,
  .summonHeader .logoContainer img,
  .summonHeader .summonLogo img {
    max-height: 60px !important;
    height: auto !important;
    width: auto !important;
  }

  /* Restore the Ebook Search header text for smaller screens */
  h2.hidden-xs {
    display: block !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 4px 0 !important;
  }

  /* Reduce space between logo and search bar */
  .searchBoxContainer,
  .search-wrapper,
  .searchBox {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* If there's a flex container forcing spacing */
  .headerContent,
  .header-inner {
    gap: 4px !important;
  }
}