/*
 * Related treatments, SEO16 / SEO18.
 * Card tokens from the SEO and AEO design spec: 1px #e5e5e5 line, 8px radius,
 * 16px padding, one column at 390 and three at 1440, whole card is the link.
 */

.related {
  margin: 40px 0 56px;
}

.related__inner {
  max-width: var(--wide-size);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.related__title {
  font-family: Lora, Georgia, serif;
  font-size: 26px;
  line-height: 1.2;
  color: #1d1d1d;
  margin: 0 0 24px;
}

.related__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.related__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  min-height: 44px;
  text-decoration: none;
  color: #1d1d1d;
  background: #fff;
}

.related__card:hover {
  border-color: #003b49;
}

.related__card:focus-visible {
  outline: 2px solid #1779ba;
  outline-offset: 2px;
}

.related__name {
  font-family: Lora, Georgia, serif;
  font-size: 18px;
  line-height: 1.3;
}

.related__more {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 13px;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related__all {
  display: inline-block;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 13px;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 14px 0;
}

.related__all:focus-visible {
  outline: 2px solid #1779ba;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .related__inner {
    padding-left: 1.875rem;
    padding-right: 1.875rem;
  }

  .related__list {
    grid-template-columns: repeat(3, 1fr);
  }
}
