.ai-topic-switcher {
  border-bottom: 1px solid #d6e4ef;
  background: #fff;
}

.ai-topic-switcher .container {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding-block: .85rem;
}

.ai-topic-switcher a {
  flex: 0 0 auto;
  padding: .65rem .9rem;
  border: 1px solid #cfdeea;
  border-radius: 999px;
  color: #17466e;
  font-weight: 800;
  text-decoration: none;
}

.ai-topic-switcher a:hover,
.ai-topic-switcher a:focus-visible,
.ai-topic-switcher a[aria-current="page"] {
  border-color: #0d65a5;
  background: #0d65a5;
  color: #fff;
}

.ai-topic-reading {
  max-width: 58rem;
}

.ai-topic-reading > p {
  color: #526b80;
  font-size: 1.08rem;
  line-height: 1.8;
}

.ai-topic-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ai-topic-routes a {
  display: flex;
  min-height: 10rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.ai-topic-routes a:hover,
.ai-topic-routes a:focus-visible {
  border-color: #77d3ff;
  background: rgba(255, 255, 255, .12);
}

.ai-topic-routes strong {
  font-size: 1.18rem;
}

.ai-topic-routes span {
  color: #bed0df;
  line-height: 1.55;
}

.ai-topic-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ai-topic-related a {
  display: flex;
  min-height: 5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid #d2e1ec;
  border-radius: 1rem;
  background: #fff;
  color: #17466e;
  align-items: center;
  justify-content: space-between;
  font-weight: 850;
  text-decoration: none;
}

.ai-topic-related a:hover,
.ai-topic-related a:focus-visible {
  border-color: #0d65a5;
  box-shadow: 0 .7rem 1.8rem rgba(20, 53, 82, .08);
}

.ai-topic-related span {
  color: #0d65a5;
  font-size: 1.4rem;
}

@media (max-width: 800px) {
  .ai-topic-routes,
  .ai-topic-related {
    grid-template-columns: 1fr;
  }

  .ai-topic-routes a {
    min-height: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-topic-v300 * {
    scroll-behavior: auto !important;
  }
}
