/* Homepage layout for narrow viewports. Keep rules scoped to this template. */
@media (max-width: 900px) {
  .next-home .nh-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-home .nh-hero-copy,
  .next-home .nh-visual {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .next-home .nh-eyebrow {
    max-width: 100%;
    font-size: 10px;
    letter-spacing: .1em;
    line-height: 1.35;
    white-space: normal;
  }

  .next-home .nh-hero h1 {
    font-size: clamp(36px, 11vw, 48px);
    overflow-wrap: anywhere;
  }

  .next-home .nh-search,
  .next-home .nh-search-row {
    min-width: 0;
    width: 100%;
  }

  .next-home .nh-search button {
    padding: 12px 10px;
    font-size: 14px;
  }

  .next-home .nh-visual-tag {
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 430px) {
  .next-home .nh-ads {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-home .nh-ad {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 132px;
  }

  .next-home .nh-ad-image {
    height: 100%;
    min-height: 132px;
  }

  .next-home .nh-ad-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
  }

  .next-home .nh-ad-info h3 {
    min-height: 0;
    margin: 6px 0 auto;
    font-size: 14px;
  }

  .next-home .nh-ad-info > span {
    margin-top: 8px;
  }
}

@media (max-width: 350px) {
  .next-home .nh-ad {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}
