.glossary-intro h1 {
  margin-top: 24px;
  margin-bottom: 20px;
}

.glossary-intro > .lede {
  max-width: 760px;
  margin-bottom: 18px;
}

.glossary-intro > .muted {
  max-width: 760px;
}

.glossary-example {
  align-items: start;
  margin-top: 48px;
  gap: 48px;
}

.glossary-example pre {
  margin-bottom: 0;
}

.glossary-example .plain-note {
  margin-top: 32px;
}

.glossary-directory > .toc {
  margin-top: 24px;
}

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

.glossary-page .term-card h3 {
  margin-top: 0;
}

.glossary-page .term-card p:last-child {
  max-width: 850px;
  margin-bottom: 0;
}

.term-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: 4px;
  color: var(--c-accent);
  font-family: var(--f-mono);
  font-size: var(--fs-small);
  vertical-align: middle;
  text-decoration: none;
}

.term-anchor:hover {
  text-decoration: underline;
}

.glossary-related {
  margin-top: 28px;
  margin-bottom: 0;
}

@media (min-width: 1000px) {
  .glossary-page .term-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
  }

  .glossary-page .term-card h3 {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 8px;
  }

  .glossary-page .term-card .term-original {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
  }

  .glossary-page .term-card p:last-child {
    grid-column: 2;
    grid-row: 1 / 3;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .glossary-example {
    margin-top: 32px;
    gap: 8px;
  }

  .glossary-example .plain-note {
    margin-top: 20px;
  }
}