/* Preserve the Glob theme; add keyboard focus visibility to its menu controls. */
.top-mobile-menu-button:focus-visible, #closemenu:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.mobile-header-message, .mobile-branding {
  display: none;
}

@media (min-width: 900px) and (max-width: 1060px) {
  #masthead {
    background-size: contain;
  }
}

/* The original footer is 1060px wide and has a fixed height. */
@media (max-width: 1060px) {
  #colophon {
    width: 100%;
    height: auto;
    min-height: 50px;
  }
  #colophon .site-info {
    padding: 16px 0;
  }
  #colophon .site-copyright {
    float: none;
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}

/* Keep desktop artwork intact; reflow its branding and controls on small screens. */
@media (max-width: 899px) {
  #masthead {
    padding: 0;
    background: linear-gradient(110deg, #7eaa42, #a3d45c 65%, #b8e47c);
    border-bottom: 5px solid #6a8d4c;
  }
  #masthead .mobile-header-message {
    display: block;
    min-height: 48px;
    margin: 0;
    padding: 10px 20px 10px 68px;
    color: #fff;
    background: #244c61;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
  }
  #masthead > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
  }
  #masthead > .container::before, #masthead > .container::after {
    display: none;
  }
  #masthead .top-mobile-menu-button {
    top: 2px;
    left: 16px;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  #masthead .mobile-branding {
    display: block;
    color: #fff;
  }
  .mobile-branding-name {
    display: block;
    color: inherit;
    font: 700 22px/1.2 "Roboto", sans-serif;
    text-decoration: none;
  }
  .mobile-branding-name:hover, .mobile-branding-name:focus {
    color: inherit;
  }
  .mobile-branding-tagline {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
  }
  #masthead .site-header-sidebar {
    float: none;
    margin: 0;
  }
  #masthead .header-right-widget {
    margin: 0;
  }
  #masthead .custom-html-widget > div {
    display: flex;
    font-size: 0;
  }
  #masthead .custom-html-widget a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  #masthead .custom-html-widget img {
    display: block;
    width: clamp(104px, 30vw, 135px);
    height: auto;
  }
}
