/* Bound only the closing personal-matching sections; catalog shelves are untouched. */
body:is(.catalog-home, .directions-page, .methods-page) :is(.wb-home-personal, .directions-matching-band, .methods-matching-band) {
  display: grid;
  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: 1800px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin: 40px auto 32px;
  border-radius: 24px;
  padding: 28px 24px;
}

body:is(.catalog-home, .directions-page, .methods-page) :is(.wb-home-personal, .directions-matching-band, .methods-matching-band) > div {
  min-width: 0;
  width: 100%;
}

body:is(.catalog-home, .directions-page, .methods-page) :is(.wb-home-personal, .directions-matching-band, .methods-matching-band) .button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
  box-shadow: none;
  justify-self: stretch;
  white-space: normal;
  text-align: center;
}

@media (min-width: 600px) and (max-width: 1024px) {
  body:is(.catalog-home, .directions-page, .methods-page) :is(.wb-home-personal, .directions-matching-band, .methods-matching-band) {
    width: calc(100% - 48px);
    padding: 32px;
  }
  body:is(.catalog-home, .directions-page, .methods-page) :is(.wb-home-personal, .directions-matching-band, .methods-matching-band) .button {
    width: 240px;
    justify-self: start;
  }
}

/* Same desktop frame as home-desktop-hero.css, independent of shelf width. */
@media (min-width: 1025px) {
  body:is(.catalog-home, .directions-page, .methods-page) :is(.wb-home-personal, .directions-matching-band, .methods-matching-band) {
    width: min(1800px, calc(100% - 64px));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    margin: 56px auto 48px;
    border-radius: 30px;
    padding: 40px clamp(32px, 4vw, 80px);
  }
  body:is(.catalog-home, .directions-page, .methods-page) :is(.wb-home-personal, .directions-matching-band, .methods-matching-band) .button {
    width: 240px;
    max-width: 100%;
    justify-self: end;
  }
}
