
/* Phase 166: live homepage layout corrections */

.pm-v2-hero {
  overflow: hidden;
}

.pm-v2-hero > .wrap {
  width: min(1200px, calc(100% - 40px));
  max-width: 1200px;
  margin-inline: auto;
}

.pm-v2-search {
  display: block !important;
  width: 100% !important;
  max-width: 1100px !important;
  box-sizing: border-box !important;
  margin: 24px auto 34px !important;
  padding: 22px !important;
}

.pm-v2-fields {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
}

.pm-v2-fields .field {
  min-width: 0 !important;
  width: 100% !important;
}

.pm-v2-fields input,
.pm-v2-fields select {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.pm-v2-action {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px !important;
}

.pm-photo-copy .hs-lockup {
  width: min(360px, 100%) !important;
  max-width: 100% !important;
  height: auto !important;
}

#how {
  position: relative;
  z-index: 1;
  background: #fff;
  clear: both;
}

@media (max-width: 800px) {
  .pm-v2-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .pm-v2-hero > .wrap {
    width: calc(100% - 24px);
  }

  .pm-v2-search {
    padding: 16px !important;
  }

  .pm-v2-fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Phase 166B: search grid and horizontal overflow */

html, body {
  max-width: 100%;
  overflow-x: clip;
}

.hero .searchbar.pm-v2-search {
  display: block !important;
  grid-template-columns: none !important;
  width: min(1100px, 100%) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.hero .searchbar.pm-v2-search > .pm-v2-fields {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.hero .pm-v2-fields > .field {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.hero .pm-v2-fields > .field select,
.hero .pm-v2-fields > .field input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.hero .searchbar.pm-v2-search > .pm-v2-action {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  margin-top: 18px !important;
}

.hero .pm-v2-action button {
  width: 100% !important;
}

@media (max-width: 800px) {
  .hero .searchbar.pm-v2-search > .pm-v2-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .hero .searchbar.pm-v2-search > .pm-v2-fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Official PROMOVE hero branding */

.pm-photo-copy .relationship-lockup {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.pm-photo-copy .hero-promove-branding {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  margin: 3px 0 12px !important;
}

.pm-photo-copy .hero-powered-label {
  display: block !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
}

.pm-photo-copy .hero-promove-logo {
  display: block !important;
  width: min(285px, 100%) !important;
  max-width: 100% !important;
  height: auto !important;
}

.pm-photo-copy .hero-promove-tagline {
  display: block !important;
  width: min(285px, 100%) !important;
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 600px) {
  .pm-photo-copy .hero-promove-logo,
  .pm-photo-copy .hero-promove-tagline {
    width: min(225px, 100%) !important;
  }
}
