.traco-toc {
  margin: 24px 0;
  padding: 18px 20px;
  background: #f1f6fa;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  color: #142f45;
  text-align: left;
}
.traco-toc[hidden], .traco-toc-float[hidden], .traco-toc-panel[hidden],
.traco-toc li[hidden] { display: none !important; }
.traco-toc-title { display: block; font-size: 18px; font-weight: 700; }
.traco-toc-list { margin: 10px 0 0 !important; padding: 0 !important; list-style: none !important; }
.traco-toc-list li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.traco-toc-list .traco-toc-sub { padding-left: 18px !important; }
.traco-toc-list a { display: block; padding: 5px 0; color: #123c5b; line-height: 1.45; overflow-wrap: anywhere; }
.traco-toc-list a:hover, .traco-toc-list a:focus-visible { text-decoration: underline; }
.traco-toc-more, .traco-toc-close {
  border: 1px solid #18547a;
  background: #fff;
  color: #123c5b;
  padding: 6px 12px;
  border-radius: 6px;
}
.traco-toc-more { display: block; margin: 10px auto 0; }
.traco-toc-float { display: none; }
@media (min-width: 992px) {
  .traco-toc-float { display: block; position: fixed; left: 8px; top: 42%; z-index: 90; }
  .traco-toc-toggle { padding: 9px 11px; border: 0; border-radius: 6px; background: #0d3857; color: #fff; font-weight: 700; }
  .traco-toc-panel {
    position: fixed;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: min(320px, var(--traco-toc-space, 280px));
    max-height: 65vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: #142f45;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 6px 22px #0d2b4330;
  }
  .traco-toc-close { float: right; padding: 2px 9px; margin-left: 8px; }
}
@media (max-width: 767px) {
  .traco-toc { padding: 14px; }
}
@media (max-width: 991px) {
  .traco-toc-float {
    display: block;
    position: fixed;
    left: max(8px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 90;
  }
  .traco-toc-toggle, .traco-toc-close { min-height: 44px; }
  .traco-toc-toggle { padding: 8px 12px; border: 0; border-radius: 6px; background: #0d3857; color: #fff; font-weight: 700; }
  .traco-toc-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: min(340px, calc(100vw - 24px));
    max-height: 60vh;
    max-height: 60dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    background: #fff;
    border: 1px solid #dbe6ef;
    border-radius: 8px;
    box-shadow: 0 6px 22px #0d2b4330;
    color: #142f45;
  }
  .traco-toc-close { float: right; min-width: 44px; margin-left: 8px; }
  .traco-toc-panel a { padding: 9px 0; }
}