/* Targeted mobile layout safeguards. Loaded after the main theme stylesheet. */
@media (max-width: 991.98px) {
  /* The homepage does not load Bootstrap, so the drawer supplies its own
     vertical navigation layout instead of relying on Bootstrap's .navbar-nav. */
  .static-navbar .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .static-navbar .nav-item,
  .static-navbar .nav-link {
    display: block;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .newsletter-wrap .newsletter {
    display: grid;
    gap: 16px;
    padding: 18px;
  }

  .newsletter-wrap .newsletter > div {
    min-width: 0;
    align-items: flex-start;
  }

  .newsletter-wrap .newsletter form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .newsletter-wrap .newsletter input {
    min-width: 0;
  }

  .newsletter-wrap .newsletter button {
    white-space: nowrap;
  }
}

@media (max-width: 479.98px) {
  .newsletter-wrap .newsletter {
    padding: 18px 14px;
  }

  .newsletter-wrap .newsletter form {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    background: transparent;
  }

  .newsletter-wrap .newsletter input {
    min-height: 46px;
    border-radius: 999px;
    background: #fff;
  }

  .newsletter-wrap .newsletter button {
    width: 100%;
    min-height: 44px;
  }
}
