/* Callstrom Code Works: adds the CCW logo before the site title in the header.
   Everything else comes from Antimatter. */
#header #logo h3 a {
  display: inline-flex;
  align-items: center;
}

#header #logo h3 a::before {
  content: "";
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  margin-right: 0.75rem;
  background: url("../images/ccw-logo-square.svg") center / contain no-repeat;
  transition: all 0.5s ease;
}

/* Smaller logo once the header shrinks on scroll */
#header.scrolled #logo h3 a::before {
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
}

/* Phones: keep the logo and title on one line beside the menu button */
@media only all and (max-width: 47.938em) {
  #header #logo h3,
  #header.scrolled #logo h3 {
    font-size: 1.15rem !important;
    line-height: 1.15rem;
    white-space: nowrap;
  }
  #header #logo h3 a::before,
  #header.scrolled #logo h3 a::before {
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
  }
}
