/* BAS public-site mobile containment and compact header controls. */

.site-menu-region {
  display: none;
}

@media (width <= 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
  }

  .site-header .brand.product-brand,
  .site-header .brand.product-brand span,
  .site-header .header-actions {
    min-width: 0;
  }

  .site-header .brand.product-brand strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .header-actions {
    gap: 6px;
  }

  .site-header .header-actions > .region-picker {
    display: none;
  }

  .site-header .site-menu,
  .site-header .button-small {
    flex: 0 0 auto;
  }

  .site-header .button-small {
    padding-right: 10px;
    padding-left: 10px;
    white-space: nowrap;
  }

  .site-menu-region {
    display: grid;
    gap: 5px;
    margin: 6px 4px 2px;
    padding: 10px 8px 4px;
    border-top: 1px solid var(--line);
  }

  .site-menu-region span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .site-menu-region select {
    width: 100%;
    min-height: 40px;
    padding: 7px 9px;
    color: var(--navy-900);
    background: #fff;
    border: 1px solid #aebfce;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
  }

  .hero .main-window {
    right: auto;
    left: 0;
    width: min(650px, calc(100vw - 40px));
  }

  .hero .results-window {
    left: 0;
    width: min(330px, calc(100vw - 54px));
  }
}

@media (width <= 380px) {
  .site-header {
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-header .brand.product-brand {
    gap: 6px;
  }

  .site-header .brand.product-brand img {
    width: 36px;
    height: 36px;
  }

  .site-header .brand.product-brand strong {
    font-size: 13px;
  }

  .site-header .button-small {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }
}
