.glossary-intro {
  max-width: var(--reading-w);
  margin-bottom: 36px;
}
.glossary-intro > p:last-child {
  margin-bottom: 0;
}
.glossary-page .toc {
  margin-bottom: 48px;
}
.glossary-section + .glossary-section {
  margin-top: 72px;
}
.glossary-heading {
  max-width: var(--reading-w);
  margin-bottom: 28px;
}
.glossary-heading h2 {
  margin-bottom: 16px;
}
.glossary-heading > p:last-child {
  margin-bottom: 0;
}
.glossary-page :is(.glossary-section, .term-card)[id] {
  scroll-margin-top: 112px;
}
.term-anchor {
  color: var(--text);
  text-decoration: none;
}
.term-anchor:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}
.glossary-next {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.glossary-next h2 {
  font-size: 26px;
}
.glossary-next ul {
  margin: 0;
  padding-left: 1.3em;
  color: var(--text-muted);
}
.glossary-next li + li {
  margin-top: 12px;
}
@media (max-width: 768px) {
  .glossary-section + .glossary-section {
    margin-top: 48px;
  }
  .glossary-page .toc {
    margin-bottom: 32px;
  }
  .glossary-next {
    margin-top: 48px;
  }
}