/* Keep the layout fluid on compact phones; avoid device-specific zoom rules. */
@media (max-width: 760px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .nn-home-body .nn-hero-content {
    width: 100%;
    max-width: 100% !important;
    min-width: 0;
  }

  .nn-home-body .nn-hero h1 {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    font-size: clamp(24px, 9.2vw, 58px) !important;
    line-height: 1 !important;
    white-space: normal !important;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .nn-home-body .nn-hero h1 span {
    white-space: normal !important;
  }

  .nn-home-body .nn-bottom-nav {
    box-sizing: border-box;
    max-width: 100%;
  }

  .nn-home-body .nn-bottom-nav > a {
    min-width: 0 !important;
    flex: 1 1 0 !important;
  }

  body.site-main .container,
  body.site-main .search-page,
  body.site-main .page-heading,
  body.site-main .section-title,
  body.site-main .site-header,
  body.site-main .top-actions,
  body.site-main .filter-card,
  body.site-main .filter-grid,
  body.site-main .filter-actions,
  body.site-main .profile-grid,
  body.site-main .guest-list,
  body.site-main .guest-row,
  body.site-main .card {
    min-width: 0;
  }

  body.site-main .site-header,
  body.site-main .top-actions,
  body.site-main .section-title {
    flex-wrap: wrap;
  }

  body.site-main .page-heading h1,
  body.site-main .nx-head h1,
  body.site-main .page-title {
    max-width: 100%;
    font-size: clamp(20px, 6.1vw, 28px) !important;
    line-height: 1.14 !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  body.site-main .search-page .page-heading h1 {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: clamp(20px, 6.1vw, 28px) !important;
    line-height: 1.14 !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  body.site-main .profile-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  body.site-main .bottom-nav > a {
    min-width: 0 !important;
  }

  body.site-main input,
  body.site-main select,
  body.site-main textarea,
  body.site-main img,
  body.site-main video {
    max-width: 100%;
  }

  body.site-main .btn {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .nn-home-body .nn-header {
    margin-left: 4px !important;
    margin-right: 4px !important;
  }

  .nn-home-body .nn-header .nn-brand {
    min-width: 0;
    gap: 6px;
    flex: 0 1 auto;
  }

  .nn-home-body .nn-brand-mark {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px;
  }

  .nn-home-body .nn-brand-mark svg {
    width: 36px;
    height: 36px;
  }

  .nn-home-body .nn-brand-copy {
    min-width: 0;
    flex: 0 1 auto;
  }

  .nn-home-body .nn-brand-name {
    font-size: clamp(12px, 4.6vw, 15px) !important;
  }

  .nn-home-body .nn-header-actions {
    gap: 2px;
    flex: 0 0 auto;
  }

  .nn-home-body .nn-header-link {
    padding-right: 4px !important;
    padding-left: 4px !important;
    font-size: clamp(9px, 3.2vw, 11px) !important;
  }

  .nn-home-body .nn-header-link--solid {
    padding-right: 6px !important;
    padding-left: 6px !important;
  }

  .nn-home-body .nn-bottom-nav {
    width: 100%;
    gap: 0 !important;
    padding-right: 2px !important;
    padding-left: 2px !important;
  }

  .nn-home-body .nn-bottom-nav > a {
    padding-right: 0 !important;
    padding-left: 0 !important;
    font-size: clamp(9px, 3vw, 10px) !important;
  }

  body.site-main .search-page .filter-grid,
  body.site-main .search-page .profile-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.site-main .bottom-nav {
    gap: 0 !important;
  }

  body.site-main .bottom-nav > a {
    padding-right: 2px !important;
    padding-left: 2px !important;
    font-size: clamp(9px, 3vw, 11px) !important;
  }
}
