.kh-links-route .section-block.kh-links-shell {
  padding-top: 0.4rem;
}

.kh-links-route {
  --kh-links-image-fixed-width: 220px;
  --kh-links-image-max-height: 160px;
}

.kh-links-list {
  list-style: none;
  padding: 0;
  margin: 0 auto clamp(2.2rem, 4.5vw, 3.8rem);
  width: min(1360px, 96vw);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.2vw, 0.95rem);
}

.kh-links-item {
  border: 1px solid color-mix(in srgb, var(--border) 80%, #ffffff 20%);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--card) 84%, #ffffff 16%) 0%, color-mix(in srgb, var(--bg) 88%, #ffffff 12%) 100%);
}

.kh-links-anchor {
  display: grid;
  gap: 0.65rem;
  padding: clamp(0.75rem, 1.35vw, 1rem) clamp(0.8rem, 1.45vw, 1.05rem);
  text-decoration: none;
  color: inherit;
}

.kh-links-text {
  display: block;
  font-size: clamp(0.98rem, 1.45vw, 1.18rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: color-mix(in srgb, var(--ink) 90%, #000000 10%);
  text-underline-offset: 0.16em;
}

.kh-links-text-line {
  display: block;
}

.kh-links-text-line--wrap {
  margin-top: 0.08em;
}

.kh-links-anchor .kh-links-text {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-decoration-color: color-mix(in srgb, var(--accent-2) 74%, #ffffff 26%);
}

.kh-links-anchor:hover .kh-links-text,
.kh-links-anchor:focus-visible .kh-links-text {
  color: var(--accent-2);
  text-decoration-thickness: 0.11em;
}

.kh-links-image-wrap,
.kh-links-image-wrap--plain {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(var(--kh-links-image-fixed-width), 100%);
  height: var(--kh-links-image-max-height);
  max-width: 100%;
}

.kh-links-image {
  display: block;
  width: var(--kh-links-image-fixed-width);
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.kh-links-image.is-height-capped {
  width: auto;
  height: 100%;
  max-width: 100%;
}

.kh-links-text--plain {
  padding: clamp(0.9rem, 1.7vw, 1.25rem) clamp(1rem, 2.2vw, 1.45rem);
}

.kh-links-image-wrap--plain {
  padding: 0 clamp(1rem, 2.2vw, 1.45rem) clamp(0.9rem, 1.7vw, 1.25rem);
}

.page-hero-intro {
  max-width: 72ch;
  margin: 0.85rem auto 0;
  text-align: center;
  color: #4f4437;
}

@media (max-width: 700px) {
  .kh-links-route {
    --kh-links-image-fixed-width: 210px;
    --kh-links-image-max-height: 150px;
  }

  .kh-links-list {
    grid-template-columns: 1fr;
  }

  .kh-links-anchor {
    gap: 0.7rem;
    justify-items: center;
    text-align: center;
  }

  .kh-links-text {
    font-size: clamp(1rem, 5.1vw, 1.2rem);
    text-align: center;
  }

  .kh-links-text--plain {
    text-align: center;
  }

  .kh-links-image-wrap,
  .kh-links-image-wrap--plain {
    margin-inline: auto;
  }
}

@media (min-width: 701px) and (max-width: 1160px) {
  .kh-links-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1161px) and (max-width: 1480px) {
  .kh-links-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
