/**
 * @file
 * Card styles, shared by several components (card, testimonial, status, price
 * card, section menu), so they're loaded on every page rather than only with
 * the Card component.
 */

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--jh-border);
  border-radius: var(--jh-radius-card);
  background: var(--jh-white);
  box-shadow: var(--jh-shadow-card);
}

.card > :last-child {
  margin-bottom: 0;
}

.card__heading {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.card .text-formatted p {
  font-size: 1rem;
}

.card .links-row {
  margin-top: auto;
  padding-top: 0.5rem;
}

.card--highlight {
  border: 1.5px solid var(--jh-orange);
  background: var(--jh-orange-tint);
}

.card--highlight .card__heading {
  font-size: 1.5rem;
}

@media (max-width: 820px) {
  .card {
    padding: 1.25rem;
  }
}

/* Photos beside text are cropped to a sensible height. */
.section--split .media-item img,
.section--split-reverse .media-item img {
  max-height: 480px;
  object-fit: cover;
  object-position: center 40%;
}

@media (max-width: 820px) {
  .section--split .media-item img,
  .section--split-reverse .media-item img {
    max-height: 260px;
  }
}
