/* Article-only sidebar and mathematics refinements. */
.article-page .ink-calendar,
.article-page .ink-weather {
  display: none !important;
}

.article-page .post_toc {
  overflow: visible;
  padding: 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.article-page .post_toc::before {
  display: none;
}

.article-page .post_toc > .widget-icon {
  color: var(--andong-accent, #3f6b57);
  opacity: 0.84;
}

.article-page .post_toc > .widget-title {
  margin: 0;
  font-family: var(--type-font-editorial, "Noto Serif SC", serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.article-page .post_toc .widget--toc {
  grid-column: 1 / -1;
  overflow: visible;
  width: 100%;
  margin-top: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.article-page .post_toc #TableOfContents {
  max-height: calc(100vh - 122px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 5px 8px 5px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(63, 107, 87, 0.24) transparent;
}

.article-page .post_toc #TableOfContents::-webkit-scrollbar {
  width: 4px;
}

.article-page .post_toc #TableOfContents::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(63, 107, 87, 0.24);
}

.article-page .post_toc .toc-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.article-page .post_toc .toc-list .toc-list {
  padding-left: 11px !important;
}

.article-page .post_toc #TableOfContents li {
  margin: 0 !important;
  padding: 0 !important;
}

.article-page .post_toc #TableOfContents a {
  display: block;
  margin: 0 !important;
  padding: 7px 8px 7px 13px !important;
  border-left: 1px solid var(--ink-luxe-line, rgba(27, 33, 30, 0.1));
  color: var(--andong-muted, #69706c);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.55;
  overflow-wrap: anywhere;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.article-page .post_toc #TableOfContents a:hover {
  color: var(--andong-text, #1b211e);
}

.article-page .post_toc #TableOfContents a.active-class {
  padding-left: 12px !important;
  border-left: 2px solid var(--andong-accent, #3f6b57);
  background: linear-gradient(90deg, rgba(63, 107, 87, 0.065), transparent 82%);
  color: var(--andong-text, #1b211e);
  font-weight: 680;
}

.article-page .post_toc .is-collapsible {
  transition: max-height 180ms ease;
}

.article-page .article-content [math-display],
.article-page .article-content .andong-math-display {
  min-height: 42px;
  margin: 1.15em 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px;
  color: var(--andong-text, #1b211e);
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(63, 107, 87, 0.2) transparent;
}

.article-page .article-content mjx-container[display="true"] {
  display: block;
  max-width: 100%;
  margin: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
}

.article-page .article-content mjx-container svg {
  max-width: none;
}

@media (min-width: 1024px) {
  .article-page .right-sidebar,
  .article-page .right-sidebar.sticky {
    position: sticky !important;
    top: 18px !important;
    display: flex !important;
    align-self: flex-start;
    max-height: calc(100vh - 36px) !important;
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible !important;
  }
}

@media (max-width: 1023px) {
  .article-page .right-sidebar,
  .article-page .right-sidebar.sticky {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-page .post_toc .is-collapsible,
  .article-page .post_toc #TableOfContents a {
    transition: none;
  }
}
