/* Homepage purpose layout: category entry points, not a second product listing. */
html.jv-home-purpose .jv-home-directory .jv-home-products {
  display: block;
  width: 100%;
  max-width: 1328px;
  margin: 0 auto;
  padding: 30px 24px 34px;
}

html.jv-home-purpose .jv-home-directory .jv-directory-sidebar {
  display: none;
}

html.jv-home-purpose .jv-home-directory .jv-directory-results {
  min-width: 0;
}

html.jv-home-purpose .jv-home-directory .jv-directory-products-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

html.jv-home-purpose .jv-home-directory .jv-directory-products-heading h2 {
  color: var(--finder-ink);
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 750;
}

html.jv-home-purpose .jv-home-directory .jv-directory-products-heading p {
  color: var(--finder-muted);
  font-size: 14px;
}

html.jv-home-purpose .jv-home-directory .jv-home-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html.jv-home-purpose .jv-home-directory .jv-home-product-card,
html.jv-home-purpose .jv-home-directory .jv-home-product-card:nth-child(n + 4),
html.jv-home-purpose .jv-home-directory .jv-home-product-card:last-child {
  grid-column: auto;
  grid-template-columns: 1fr !important;
  grid-template-rows: 178px auto !important;
  min-height: 0;
  background: #fff !important;
}

html.jv-home-purpose .jv-home-directory .jv-home-product-card .jv-home-product-media,
html.jv-home-purpose .jv-home-directory .jv-home-product-card:nth-child(n + 4) .jv-home-product-media,
html.jv-home-purpose .jv-home-directory .jv-home-product-card:last-child .jv-home-product-media {
  grid-column: 1;
  grid-row: 1;
  height: 178px !important;
  margin: 0;
  padding: 14px 16px 0 !important;
  background: #fff !important;
}

html.jv-home-purpose .jv-home-directory .jv-home-product-card .jv-home-product-copy,
html.jv-home-purpose .jv-home-directory .jv-home-product-card:nth-child(n + 4) .jv-home-product-copy,
html.jv-home-purpose .jv-home-directory .jv-home-product-card:last-child .jv-home-product-copy {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  padding: 16px 18px 18px !important;
}

html.jv-home-purpose .jv-home-directory .jv-home-product-card:nth-child(n + 4) .jv-home-product-copy strong,
html.jv-home-purpose .jv-home-directory .jv-home-product-card:last-child .jv-home-product-copy strong {
  font-size: 16px !important;
}

html.jv-home-purpose .jv-home-directory .jv-home-product-card:has(img[src*="home-category-power"]) .jv-home-product-media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none !important;
}

html.jv-home-purpose .jv-home-directory .jv-home-product-copy p {
  margin-bottom: 14px;
}

/* The complete guide collection belongs on Support; retain its existing localized support route. */
html.jv-home-purpose .jv-home-directory .jv-home-search-intents {
  display: none;
}

html.jv-home-purpose .jv-home-directory .jv-directory-support {
  display: flex;
  align-items: center;
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 0 auto 30px;
  padding: 15px 20px;
}

html.jv-home-purpose .jv-home-directory .jv-directory-support > strong {
  color: var(--finder-ink);
  font-size: 16px;
}

html.jv-home-purpose .jv-home-directory .jv-directory-support a:not([href*="/endorsement/support"]) {
  display: none;
}

html.jv-home-purpose .jv-home-directory .jv-directory-support a[href*="/endorsement/support"] {
  margin-inline-start: auto;
  color: var(--finder-blue);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 760px) {
  html.jv-home-purpose .jv-home-directory .jv-home-products {
    padding: 22px 18px 26px;
  }

  html.jv-home-purpose .jv-home-directory .jv-directory-support {
    width: calc(100% - 36px);
    margin-bottom: 22px;
    padding: 14px 16px;
  }

  html.jv-home-purpose .jv-home-directory .jv-directory-products-heading {
    align-items: flex-start;
    margin-bottom: 15px;
  }

  html.jv-home-purpose .jv-home-directory .jv-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  html.jv-home-purpose .jv-home-directory .jv-home-product-card,
  html.jv-home-purpose .jv-home-directory .jv-home-product-card:nth-child(n + 4),
  html.jv-home-purpose .jv-home-directory .jv-home-product-card:last-child {
    grid-column: auto;
    grid-template-columns: 1fr !important;
    grid-template-rows: 128px auto !important;
  }

  html.jv-home-purpose .jv-home-directory .jv-home-product-card .jv-home-product-media,
  html.jv-home-purpose .jv-home-directory .jv-home-product-card:nth-child(n + 4) .jv-home-product-media,
  html.jv-home-purpose .jv-home-directory .jv-home-product-card:last-child .jv-home-product-media {
    grid-column: 1;
    grid-row: 1;
    height: 128px !important;
    margin: 0;
    padding: 10px 12px 0 !important;
  }

  html.jv-home-purpose .jv-home-directory .jv-home-product-card .jv-home-product-copy,
  html.jv-home-purpose .jv-home-directory .jv-home-product-card:nth-child(n + 4) .jv-home-product-copy,
  html.jv-home-purpose .jv-home-directory .jv-home-product-card:last-child .jv-home-product-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 13px !important;
  }

}

@media (max-width: 360px) {
  html.jv-home-purpose .jv-home-directory .jv-home-product-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.jv-home-purpose .jv-home-directory .jv-home-product-card,
  html.jv-home-purpose .jv-home-directory .jv-home-product-copy .jv-directory-arrow {
    transition: none !important;
    translate: none !important;
  }
}
