.ml-article-toc.ml-auto-toc {
  box-sizing: border-box;
  max-width: 100%;
  margin: 24px 0;
  padding: 16px 24px;
  border: 1px solid #e1dce8;
  border-radius: 8px;
  background: var(--wp--preset--color--light-lavender, #f4f0f7);
  color: var(--wp--preset--color--text, #3d3a40);
  font-family: var(--ml-font-sans, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif);
  font-size: 16px;
  line-height: 1.8;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.ml-article-toc.ml-auto-toc > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.ml-auto-toc > summary::-webkit-details-marker {
  display: none;
}

.ml-article-toc.ml-auto-toc > summary::after {
  box-sizing: border-box;
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.ml-article-toc.ml-auto-toc[open] > summary::after {
  content: "";
  transform: rotate(225deg);
}

.ml-auto-toc > nav {
  padding: 12px 0 8px;
}

.ml-article-toc.ml-auto-toc ol {
  margin: 0;
  padding-left: 0;
  list-style-type: none;
}

.ml-article-toc.ml-auto-toc ol ol {
  margin-top: 6px;
  padding-left: 0.75em;
}

.ml-article-toc.ml-auto-toc li {
  margin: 0;
  position: relative;
  padding: 0 0 0 1.25em;
  font-weight: 600;
}

.ml-article-toc.ml-auto-toc li + li {
  margin-top: 12px;
}

.ml-article-toc.ml-auto-toc li::before {
  position: absolute;
  top: 0.7em;
  left: 0.1em;
  width: 0.4em;
  height: 0.4em;
  background: var(--wp--preset--color--accent, #5d586f);
  content: "";
  transform: rotate(45deg);
}

.ml-article-toc.ml-auto-toc ol ol > li {
  font-weight: 400;
}

.ml-article-toc.ml-auto-toc ol ol > li + li {
  margin-top: 6px;
}

.ml-article-toc.ml-auto-toc ol ol > li::before {
  top: 0.75em;
  width: 0.25em;
  height: 0.25em;
  border-radius: 50%;
  transform: none;
}

.ml-article-toc.ml-auto-toc a {
  display: inline-block;
  vertical-align: top;
  min-height: 24px;
  max-width: 100%;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #a9a0b7;
  text-underline-offset: 3px;
}

.ml-article-toc.ml-auto-toc a:hover {
  text-decoration-color: currentColor;
}

.ml-article-toc.ml-auto-toc :is(summary, a):focus-visible {
  outline: 2px solid #5d586f;
  outline-offset: 3px;
}

.ml-auto-toc-editor__note {
  margin: 8px 0;
  color: #5d586f;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .ml-article-toc.ml-auto-toc {
    padding: 12px 18px;
  }
}
