.toc ol {
  display: flex;
  gap: 1rem;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0;
  list-style: none;
  scroll-target-group: auto;
  background: white;
  color: black;
}

.toc a {
  color: black;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  text-decoration: underline;
}

:target-current {
  color: crimson;
  font-weight: bold;
}

.chapters {
  max-block-size: 8rem;
  overflow: auto;
  border: 1px solid silver;
  padding: 0.5rem 0.75rem;
  background: white;
  color: black;
}

.chapters__item {
  min-block-size: 6rem;
}

.chapters__title {
  margin: 0 0 0.35rem;
  font-weight: bold;
}