.topic-card {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  transition: box-shadow .2s ease, transform .2s ease;
}

.hero > * {
  min-width: 0;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(2.75rem, 4vw, 4.1rem);
}

.button.primary {
  color: #fff;
}

.topic-card:hover {
  box-shadow: 0 18px 42px rgba(20, 49, 79, .14);
  transform: translateY(-3px);
}

.topic-card-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  background: #edf6f6;
  object-fit: cover;
}

.topic-card-body {
  min-height: 250px;
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.topic-card-body h3 {
  margin-top: 1rem;
}

.related-card {
  min-height: 82px;
  padding: .7rem 0 !important;
  display: grid !important;
  grid-template-columns: 86px 1fr;
  gap: .85rem;
  align-items: start;
}

.related-card img {
  width: 86px;
  height: 64px;
  display: block;
  border-radius: .65rem;
  object-fit: cover;
  margin-top: .15rem;
}

.related-card span,
.related-card strong,
.related-card small {
  min-width: 0;
}

.calculator-guide .card-grid article {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.calculator-guide .card-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.calculator-guide .card-copy {
  padding: 1.25rem 1.5rem 1.5rem;
}

.calculator-guide .card-copy h3 {
  margin-top: 0;
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.5rem);
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .hero-copy,
  .hero .topic-visual {
    width: 100%;
  }

  .topic-card-body {
    min-height: 225px;
  }

  .related-card {
    grid-template-columns: 104px 1fr;
  }

  .related-card img {
    width: 104px;
    height: 74px;
  }
}
