/* Keep the grading homepage's three actions consistent at every width. */
.hero .hero-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.3vw, 32px);
  width: min(100%, 1160px);
  margin-inline: auto;
  justify-self: center;
}

.hero .hero-actions > .cgs-action {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 108px;
  aspect-ratio: auto;
  padding: 14px 32px;
  gap: 0;
  background-image: url('../images/button-surface-black.png');
  color: #f8f4ed;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  filter: none;
  transition: color 160ms ease;
}

.hero .hero-actions > .cgs-action > span {
  max-width: 100%;
  text-wrap: balance;
  line-break: strict;
}

.hero .hero-actions > .hero-application-button > span {
  white-space: pre;
  text-wrap: nowrap;
}

.hero .hero-actions > .cgs-action > i {
  top: 50%;
  right: 13px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  color: inherit;
  font-size: 0;
}

.hero .hero-actions > .cgs-action > i::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.hero .hero-actions > .cgs-action:is(:hover, :active, :focus-visible) {
  background-image: url('../images/button-surface-gold.png');
  color: #080808;
  filter: none;
}

@media (max-width: 820px) {
  .hero .hero-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .hero .hero-actions > .cgs-action {
    min-height: 100px;
    padding: 12px 32px;
    font-size: clamp(20px, 5.6vw, 24px);
  }
}
