/* Article-only TOC: one nested list, no generated or editorial numbering. */
.vx-article-body-section { --vx-toc-top: calc(var(--vx-header-height, 80px) + 24px); }
.vx-article-sidebar { top: var(--vx-toc-top); align-self: start; min-width: 0; }
.vx-article-sidebar .vx-toc-box {
  padding: 14px 10px;
  background: #f8f8f8;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
}
.vx-article-sidebar .vx-toc-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #364152;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
  list-style: none;
  cursor: pointer;
}
.vx-toc-title::-webkit-details-marker { display: none; }
.vx-toc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  height: 30px;
  border: 1px solid #bcbcbc;
  border-radius: 4px;
  color: #727272;
  font-size: 22px;
}
.vx-toc-nav {
  margin-top: 8px;
  max-height: calc(100vh - var(--vx-toc-top) - 86px);
  max-height: calc(100dvh - var(--vx-toc-top) - 86px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.vx-article-sidebar .vx-toc-list { display: block; list-style: none; margin: 0; padding: 0; }
.vx-article-sidebar .vx-toc-list li { margin: 0; padding: 0; list-style: none; }
.vx-article-sidebar .vx-toc-list .vx-toc-list { padding-left: 16px; }
.vx-article-sidebar .vx-toc-link {
  display: block;
  padding: 4px 6px;
  border-left: 2px solid transparent;
  border-radius: 2px;
  color: #505050;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.vx-article-sidebar .vx-toc-link:hover { color: #005bea; background: #eff4fc; }
.vx-article-sidebar .vx-toc-link[aria-current="location"] {
  color: #004bbf;
  background: #e9f1ff;
  border-left-color: #005bea;
  font-weight: 600;
}
.vx-toc-link:focus-visible, .vx-toc-title:focus-visible { outline: 2px solid #005bea; outline-offset: 2px; }
.vx-article-content :is(h2, h3, h4, h5, h6)[id] { scroll-margin-top: calc(var(--vx-toc-top) + 12px); }
@media (max-width: 1024px) {
  .vx-article-sidebar { position: static; margin-bottom: 24px; }
  .vx-toc-nav { max-height: 45vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Classic Editor tables have no frontend cell borders of their own. */
.vx-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.25em;
  line-height: 1.5;
}
.vx-article-content table :is(th, td) {
  border: 1px solid #cbd5e1;
  padding: .55em .75em;
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.vx-article-content table th {
  background: #f1f5f9;
}

@media (max-width: 700px) {
  .vx-article-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
  .vx-article-content table :is(th, td) {
    min-width: 6.5em;
  }
}
