/* Resource hub: shorter cards and a load-more step; article pages: section contents. */
.resource-search-index .article-index-grid:not([data-has-query]) .article-index-card small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.resource-search-index .article-index-grid[data-collapsed] > :nth-child(n+25) { display: none; }
.resource-search-index .resource-show-all { display: flex; margin: 28px auto 0; }
.resource-search-index .resource-show-all[hidden] { display: none; }
.article-toc {
  margin: 4px 0 32px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: #fafbfa;
}
.article-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--color-teal-dark);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.article-toc details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.article-toc ol { margin: 0; padding-block: 0 16px; padding-inline: 40px 18px; }
.article-toc li { margin-bottom: 6px; font-size: .9375rem; line-height: 1.5; break-inside: avoid; }
.article-toc a { color: var(--color-ink); text-decoration: none; }
.article-toc a:hover { color: var(--color-teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body .content-block > h2[id^="section-"] { scroll-margin-top: 96px; }
@media (min-width: 900px) {
  .article-toc ol { columns: 2; column-gap: 36px; }
}
