.ase-toc {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  padding: 16px;
  border-radius: 6px;
}

.ase-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ase-toc-header--icon-only {
  justify-content: flex-end;
}

.ase-toc-title {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.2;
}

.ase-toc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: inherit;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  min-width: 16px;
  min-height: 16px;
}

.ase-toc-toggle:focus {
  outline: 2px solid #9ca3af;
  outline-offset: 2px;
}

.ase-toc-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ase-toc-toggle-icon i,
.ase-toc-toggle-icon svg {
  width: 12px;
  height: 12px;
  font-size: 12px;
}

.ase-toc:not(.is-collapsed) .ase-toc-toggle-expand {
  display: none;
}

.ase-toc.is-collapsed .ase-toc-toggle-collapse {
  display: none;
}

.ase-toc-body {
  margin-top: 12px;
}

.ase-toc.is-collapsed .ase-toc-body {
  display: none;
}

.ase-toc-empty {
  display: none;
  color: inherit;
  opacity: 0.65;
  font-size: 0.95em;
}

.ase-toc.is-empty .ase-toc-empty {
  display: block;
}

.ase-toc.is-empty .ase-toc-nav {
  display: none;
}

.ase-toc-nav {
  font-size: 12px;
  line-height: 1.2;
}

.ase-toc-nav ol,
.ase-toc-nav ul {
  margin: 0;
  padding-left: 1.2em;
}

.ase-toc-nav li {
  margin: 1px 0;
}

.ase-toc-link {
  color: inherit;
  text-decoration: none;
}

.ase-toc-link:hover {
  text-decoration: none;
}

.ase-toc-link.is-active {
  font-weight: 600;
  text-decoration: none;
}

.ase-toc-nowrap .ase-toc-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

.ase-toc-marker-icons .ase-toc-list {
  list-style: none;
  padding-left: 0;
}

.ase-toc-marker-icons .ase-toc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ase-toc-marker-icons .ase-toc-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  color: inherit;
  opacity: 0.65;
}

.ase-toc-marker-none .ase-toc-nav ul,
.ase-toc-marker-none .ase-toc-nav ol {
  list-style: none;
  padding-left: 0;
}

.ase-toc-marker-none .ase-toc-nav .ase-toc-sublist {
  padding-left: 16px;
}

.ase-toc-collapsible {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ase-toc-item-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  color: inherit;
  opacity: 0.65;
}

.ase-toc-item-toggle:focus {
  outline: 2px solid #9ca3af;
  outline-offset: 2px;
}

.ase-toc-item.is-collapsed > .ase-toc-sublist {
  display: none;
}

.ase-toc-underline-normal-yes .ase-toc-link {
  text-decoration: underline;
}

.ase-toc-underline-hover-yes .ase-toc-link:hover {
  text-decoration: underline;
}

.ase-toc-underline-active-yes .ase-toc-link.is-active {
  text-decoration: underline;
}
