/* Category guidance shares the storefront type and palette, without a second visual system. */
.sfy-product-archive__header {
  width: 100%;
  display: grid;
  gap: 1rem;
  align-items: end;
}

.sfy-product-archive__heading,
.sfy-product-archive__description {
  min-width: 0;
}

.sfy-product-archive__description {
  margin: 0;
  max-width: 75ch;
  color: var(--color-muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
}

.sfy-product-archive__description > * + * {
  margin-top: 0.75rem;
}

.sfy-product-category-seo__content.sfy-block-content {
  width: 100%;
  max-width: none;
  color: var(--color-muted-foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
}

.sfy-product-category-seo__content.sfy-block-content :where(h2, h3) {
  max-width: 35ch;
  color: var(--color-foreground);
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: 0;
  text-wrap: balance;
}

.sfy-product-category-seo__content.sfy-block-content h2 {
  margin: 2.5rem 0 0.875rem;
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
}

.sfy-product-category-seo__content.sfy-block-content h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.125rem;
}

.sfy-product-category-seo__content.sfy-block-content :where(p, ul, ol) {
  max-width: 70ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.sfy-product-category-seo__content.sfy-block-content :where(p, ul, ol) + :where(p, ul, ol) {
  margin-top: 0.875rem;
}

.sfy-product-category-seo__content.sfy-block-content :where(ul, ol) {
  padding-inline-start: 1.25rem;
}

.sfy-product-category-seo__content.sfy-block-content a {
  color: var(--color-foreground);
  font-weight: 500;
  text-decoration: underline !important; /* Storefront has an unlayered global link reset. */
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.22em;
}

.sfy-product-category-seo__content.sfy-block-content a:hover {
  text-decoration-thickness: 2px !important;
}

.sfy-product-category-seo__content.sfy-block-content a:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 4px;
}

.sfy-product-category-seo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin: 0;
}

.sfy-product-category-seo__section {
  min-width: 0;
  margin: 0 !important;
}

.sfy-product-category-seo__content.sfy-block-content .sfy-product-category-seo__section > :first-child,
.sfy-product-category-seo__content.sfy-block-content > :first-child {
  margin-top: 0;
}

@media (min-width: 1024px) {
  .sfy-product-archive__header {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 2rem;
  }

  .sfy-product-category-seo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem 4rem;
  }
}

@media (min-width: 1280px) {
  .sfy-product-archive__header {
    grid-template-columns: 19rem minmax(0, 1fr);
  }
}
