.glossary-intro {
  max-width: 46rem;
  margin-block-end: 32px;
}

.glossary > section + section {
  margin-block-start: clamp(36px, 6vw, 76px);
}

.glossary > section > h2 {
  margin-block: 0 20px;
}

.glossary .toc-tabs + section {
  margin-block-start: clamp(32px, 5vw, 56px);
}

.glossary .card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.glossary .term-card {
  scroll-margin-top: 90px;
}

.glossary .term-card:target {
  border-color: var(--accent-line);
}

.glossary .term-card h3 {
  margin-block: 0 10px;
}

.glossary .term-card p {
  margin: 0;
}

@media (max-width: 640px) {
  .glossary .term-card,
  .glossary .toc-tabs ~ section {
    scroll-margin-top: 16px;
  }
}