/* Only the homepage category cards and the Contact email link use these rules. */
.front-page .products .section-heading > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.front-page .product-card[data-category-card] {
  grid-template-rows: auto 1fr;
}
.front-page [data-category-card] .product-card__image {
  display: block;
  aspect-ratio: 4 / 3;
}
.front-page [data-category-card] .product-card__image img {
  display: block;
  object-fit: contain;
}
.front-page [data-category-card] .product-card__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 1.25rem;
  gap: 1rem;
}
.front-page [data-category-card] .product-card__copy {
  gap: 0.65rem;
}
.front-page [data-category-card] h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.front-page [data-category-card] h3 a {
  color: inherit;
}
.front-page [data-category-card] h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.front-page .product-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.front-page .product-card__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  font-size: 0.9rem;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}
.front-page .product-card__inquiry {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.front-page [data-category-card] a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.seo-contact__form-copy a[href^="mailto:"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  /* Hidden slides still size the shared grid cell, so carousel changes do not jump. */
  .front-page .hero-slider {
    display: grid;
    min-height: 0;
  }
  .front-page .hero-slide {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    min-width: 0;
  }
  .front-page .hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .front-page .hero-slide__content {
    position: relative;
    inset: auto;
    height: 100%;
  }
  .front-page .hero-slide .hero-slide__frame {
    height: 100%;
    min-height: 570px;
    padding-top: 112px;
    padding-bottom: 64px;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .front-page .hero-slide .hero-slide__copy {
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 1rem;
    transform: none !important;
    text-align: left;
  }
  .front-page .hero-slide .hero-slide__copy h1,
  .front-page .hero-slide .hero-slide__copy h2 {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-align: left;
  }
  .front-page .hero-slide__intro,
  .front-page .hero-slide__lead,
  .front-page .hero-slide__copy p,
  .front-page .hero-slide__points {
    font-size: 1rem;
    line-height: 1.55;
  }
  .front-page .hero-slide__points {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .front-page .hero-slide .button-primary {
    min-height: 44px;
    justify-self: start;
  }
}
