/* Long descriptive labels must not force the hero's grid wider than the screen. */
section:has(h1) > .container > .grid > div {
  min-width: 0;
}
section:has(h1) .space-x-8 {
  flex-wrap: wrap;
  gap: 1rem;
}
section:has(h1) .space-x-8 > * {
  margin-left: 0 !important;
}
section:has(h1) .space-x-8 .text-3xl {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.4;
}
@media (max-width: 1023px) {
  section:has(h1) > .container > .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  section:has(h1) h1 {
    font-size: clamp(2.125rem, 8vw, 3rem);
    overflow-wrap: anywhere;
  }
  section:has(h1) .btn-primary {
    max-width: 100%;
    height: auto;
    white-space: normal;
    text-align: center;
  }
}
