/* Global WordPress site styles — layout and priority CSS
   Loaded on every page via WPCode HEAD snippet (link rel="stylesheet").
   All presentational CSS that was previously in WP Additional CSS lives here.
*/

/* -------------------------------------------------------------------------
   Keep header items on one line below 420 px
------------------------------------------------------------------------- */
@media (max-width: 420px) {

  /* limit the logo container's width */
  .site-header .site-logo {
    flex: 0 1 55%;
    max-width: 55%;
  }

  /* scale the logo image to fill the shrunken container */
  .site-header .site-logo img {
    width: 100%;
    height: auto;
  }

  /* keep the hamburger flush to the right */
  .mobile-menu-control-wrapper {
    margin-left: auto;
  }

  /* reduce mobile heading padding */
  .inside-header.grid-container {
    padding: 10px;
  }
}

/* -------------------------------------------------------------------------
   Full-height page
------------------------------------------------------------------------- */
#page {
  min-height: 100vh;
}

/* -------------------------------------------------------------------------
   Hidden elements
------------------------------------------------------------------------- */
.copyright-bar {
  display: none;
}

.codeSnip, #pageVars, .noBreak {
  height: 0;
  display: none;
  line-height: 0;
}

/* -------------------------------------------------------------------------
   CTA buttons
------------------------------------------------------------------------- */
.cta1 {
  background: #0052D5;
  color: #ffffff !important;
  display: inline-block !important;
  text-align: center;
  padding: 13px 35px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  text-decoration: none;
}

.cta2 {
  background: #0052D5;
  border: 1px solid #0052D5;
  border-radius: 4px;
  color: #ffffff !important;
  display: inline-block !important;
  font-weight: 700;
  height: 40px;
  outline: none;
  padding: 0 10px;
  text-align: center;
  text-decoration: none;
}

.cta2:hover {
  background-color: #2679FC;
}

/* -------------------------------------------------------------------------
   Tables
------------------------------------------------------------------------- */
table th {
  background-color: #0052D5;
  color: #fff !important;
  text-transform: none;
  font-weight: bold;
}

/* -------------------------------------------------------------------------
   Utility classes
------------------------------------------------------------------------- */
.noWrap {
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Customize HouseGrade link — blue pill button in nav
------------------------------------------------------------------------- */
.customize-housegrade-link {
  background-color: #0052D5;
  color: white !important;
  border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  .customize-housegrade-link {
    background-color: #0052D5 !important;
    color: white !important;
  }
}
