.topicsPage .topicBrowsePanel {
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #dce2ea;
  border-radius: 10px;
  background: #fff;
}

.topicsPage .topicBrowsePanel > h2 {
  margin-top: 0;
}

.topicsPage .topicGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin-top: 24px;
}

.topicsPage .browseTopicCard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid #dce2ea;
  border-top: 5px solid #3467a8;
  border-radius: 10px;
  background: #f8faff;
  color: #172b46;
  text-decoration: none;
}

.topicsPage .browseTopicCard:nth-child(3n + 2) {
  border-top-color: #267669;
  background: #f5faf8;
}

.topicsPage .browseTopicCard:nth-child(3n + 3) {
  border-top-color: #7a5696;
  background: #faf7fc;
}

.topicsPage .browseTopicCard:hover {
  box-shadow: 0 4px 14px rgb(23 43 70 / 12%);
}

.topicsPage .browseTopicCard:focus-visible {
  outline: 3px solid #285fa3;
  outline-offset: 4px;
}

.topicsPage .browseTopicCard h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.topicsPage .browseTopicCount {
  margin: 0 0 22px;
  color: #526071;
  font-size: 14px;
}

.topicsPage .browseTopicAction {
  margin-top: auto;
  color: #285fa3;
  font-size: 14px;
  font-weight: 600;
}

.topicsPage .topicArticle {
  padding: 20px 0;
  border-bottom: 1px solid #dce2ea;
}

.topicsPage .topicArticle:last-child {
  border-bottom: 0;
}

.topicsPage .topicArticle h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.topicsPage .topicArticle h3 a {
  text-decoration: none;
}

.topicsPage .topicArticleSource {
  margin: 6px 0;
  color: #526071;
  font-size: 14px;
}

.topicsPage .topicArticleActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px;
}

.topicsPage .topicArticleActions a {
  padding: 4px 0;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .topicsPage .topicBrowsePanel {
    padding: 16px;
  }
}
