/* 公众号选读：归类与法义（wechat_topics.html、wechat_topic.html）。在 course_notes.css 上加几条：分块标题、延伸阅读、文章卡片、翻页。 */

.wxt__axis {
  margin-top: 26px;
}

.wxt__axis h2 {
  color: #2f2a1f;
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-size: 1.3em;
  margin: 0;
}

.wxt__axis h2 small {
  color: #5f5849;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  margin-left: 10px;
}

/* 总览一类一张卡：类名去那一类，下面每个小类直接去那一小类（站长 11-10）。
   小类多的（注音佛经 43、有声读物 53）先列 12 个，其余收在「其余 N 个小类」里。 */
.wxt__tiles {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.wxt__tile {
  background: #fbfaf3;
  border: 1px solid #dedbc7;
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.wxt__tile-head {
  align-items: baseline;
  display: flex;
  font-size: inherit;
  font-weight: inherit;
  gap: 12px;
  justify-content: space-between;
  margin: 0;
}

.wxt__tile-title {
  color: #4e0d0d;
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-size: 1.3em;
  font-weight: 600;
  text-decoration: none;
}

.wxt__tile-title:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wxt__tile-total {
  color: #5f5849;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wxt__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wxt__chips a {
  align-items: center;
  background: #f7f4e9;
  border: 1px solid #ede7d5;
  border-radius: 999px;
  color: #3d362a;
  display: inline-flex;
  font-size: 14px;
  min-height: 40px;
  padding: 0 12px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    color 0.15s;
}

.wxt__chips a:hover {
  border-color: #9b9277;
  color: #4e0d0d;
}

.wxt__tile a:focus-visible,
.wxt__more-subs summary:focus-visible {
  outline: 2px solid #4e0d0d;
  outline-offset: 2px;
}

.wxt__more-subs summary {
  color: #4e0d0d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  min-height: 40px;
}

.wxt__more-subs summary::-webkit-details-marker {
  display: none;
}

.wxt__more-subs summary::after {
  content: "";
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  height: 6px;
  margin-left: 8px;
  transform: translateY(-2px) rotate(45deg);
  width: 6px;
}

.wxt__more-subs[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.wxt__more-subs[open] summary {
  margin-bottom: 6px;
}

.wxt__lead {
  color: #5f5849;
  margin: 0;
  display: -webkit-box;
  font-size: 14.5px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wxt__site {
  background: #f3f7f1;
  border: 1px solid #dbe7d8;
  border-radius: 10px;
  margin-top: 18px;
  padding: 12px 16px;
}

.wxt__site h2 {
  color: #3d6849;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}

.wxt__site p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.wxt__subs {
  margin-top: 18px;
}

.wxt__subs + .wxt__subs {
  margin-top: 8px;
}

.wxt__subs .cnotes__chip {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  text-decoration: none;
}

.wxt__subs .cnotes__chip[aria-current="page"] {
  background: #4e0d0d;
  border-color: #4e0d0d;
  color: #fffdf8;
}

.wxt__cards {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.wxt__cards a {
  background: #fbfaf3;
  border: 1px solid #e6e0cc;
  border-radius: 10px;
  color: #2f2a1f;
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 12px 16px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.wxt__cards a:hover {
  border-color: #9b9277;
}

.wxt__cards a:focus-visible {
  outline: 2px solid #4e0d0d;
  outline-offset: 2px;
}

.wxt__title {
  color: #2f2a1f;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.wxt__meta {
  color: #6b6352;
  font-size: 13.5px;
}

.wxt__snippet {
  color: #5f5849;
  display: -webkit-box;
  font-size: 14.5px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wxt__row {
  align-self: center;
  color: #5f5849;
  font-size: 14px;
  margin-right: 4px;
}

.wxt__count {
  color: #5f5849;
  font-size: 14px;
  margin: 10px 0 0;
}

.wxt__more {
  margin: 20px 0 0;
  text-align: center;
}

.wxt__more a {
  align-items: center;
  border: 1px solid #dedbc7;
  border-radius: 8px;
  color: #4e0d0d;
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.wxt__more a:hover {
  border-color: #9b9277;
}

.wxt__more a:focus-visible {
  outline: 2px solid #4e0d0d;
  outline-offset: 2px;
}

.wxt__more a[aria-busy="true"] {
  color: #5f5849;
  pointer-events: none;
}

@media (min-width: 900px) {
  .wxt__tiles,
  .wxt__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wxt__chips a,
  .wxt__cards a {
    transition: none;
  }
}
