/* 文章目录。展开和锚点都由 HTML 完成。 */

.article-toc__box {
  border: 1px solid var(--ft-line);
  border-left: 4px solid var(--ft-gold);
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px 10px;
}

.article-toc__title {
  color: var(--ft-navy);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.article-toc__title::-webkit-details-marker { display: none; }

.article-toc__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.article-toc__link {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid transparent;
  color: var(--ft-text);
  text-decoration: none;
}

.article-toc__item--level-3 .article-toc__link {
  padding-left: 28px;
  font-size: 15px;
}

.article-toc__link:hover,
.article-toc__link:focus-visible {
  border-left-color: var(--ft-gold);
  color: var(--ft-navy);
}

.entry-content h2:target,
.entry-content h3:target {
  background: #fffaf0;
  box-shadow: inset 4px 0 0 var(--ft-gold);
  border-radius: 8px;
  padding-left: 10px;
}

@media (min-width: 1024px) {
  .has-toc-layout .layout__main { order: 1; }
  .has-toc-layout .layout__aside {
    order: 2;
    position: sticky;
    top: 108px;
  }

  .admin-bar .has-toc-layout .layout__aside { top: 140px; }
}
