/* --- Table of Contents container --- */
.toc {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.2em 1.6em;
  margin-bottom: 2em;
  font-size: 0.95em;
  line-height: 1.5em;
}

/* --- Title --- */
.toc h3 {
  margin-top: 0;
  margin-bottom: 0.6em;
  font-size: 1.1em;
  font-weight: 600;
  color: #222;
}

/* --- Base list reset --- */
.toc ul {
  list-style: disc !important;
  margin: 0 !important;
  padding-left: 1.4em !important;
}

.toc li {
  margin: 4px 0 !important;
  padding: 0 !important;
  display: list-item !important;
}

/* --- Link styling --- */
.toc a {
  color: #0066cc !important;
  text-decoration: none !important;
}

.toc a:hover {
  text-decoration: underline !important;
}

/* --- Hierarchy styling by heading level --- */
.toc li.toc-h3 {
  list-style-type: disc !important;
  margin-left: 0 !important;
}

.toc li.toc-h4 {
  list-style-type: circle !important;
  margin-left: 1.4em !important;
  font-size: 0.95em !important;
}

.toc li.toc-h5 {
  list-style-type: square !important;
  margin-left: 2.4em !important;
  font-size: 0.9em !important;
}
