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

/* resizes the Large and Small Logos */
.home .logo {
  margin: 4em auto !important;
}

.logo.logo-large.img-responsive {
  max-height: 200px !important;
  --logo-height: 200px !important;
}

.siteHeader .logo-small {
  --logo-height: 100px !important;
  margin-top: 40px !important;
  max-height: 100px !important;
}

/* Hides the Custom Panel section */
.thirdPanel {
  display: none;
}

/* 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-large,
  .logoContainer,
  .summonLogo {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Resize logo on mobile */
  .logo-large {
     height: 80px;
  }

  /* 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;
  }
}