.toc-container {
  display: flex;
  gap: 20px;
  width: 100%;
  padding: 20px;
}

.toc-sidebar {
  flex: 0 0 200px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.toc-nav {
  background-color: #e0e0e0;
  padding: 16px;
}

.toc-heading {
  margin-top: 0;
  color: #888;
}

.toc-details {
  margin-bottom: 15px;
  cursor: pointer;
}

.toc-summary {
  list-style: none;
  padding: 8px 0;
  user-select: none;
  color: #000;
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.toc-summary::before {
  content: "+ ";
  margin-right: 4px;
}

.toc-details[open] .toc-summary::before {
  content: "- ";
}

.toc-summary div {
  padding: 0 8px;
}

.toc-list {
  list-style: none;
  padding-left: 15px;
  margin: 8px 0 0 0;
}

.toc-item {
  margin: 2px 0;
  border: none;
  padding: 0;
  font-size: 13px;
}

.toc-link {
  text-decoration: none;
  color: #000;
  display: block;
  padding: 4px 8px;
}

.toc-link:hover {
  background-color: #e8e8e8;
  border-radius: 6px;
}

.main-content {
  flex: 1;
  min-width: 0;
  color: #f5f5f5;
}

.main-content h1,
.main-content h2 {
  color: #fff;
}

.section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
}

.article {
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
  scroll-margin-top: 20px;
  margin-bottom: 16px;
}

.article-body {
  line-height: 1.8;
}
