html[data-theme='light'] {
  --toc-separator-c: var(--c-carbon-90);
  --ifm-toc-link-color: var(--c-carbon-0);
}

html[data-theme='dark'] {
  --toc-separator-c: #696969;
  --ifm-toc-link-color: #696969;
}

:root {}

//overrides
#__docusaurus {
  [class^='tableOfContents_'] {
    position: static;
    top: initial;
    overflow: hidden;

    max-height: initial;

    padding-block-end: 1.25rem;

    border-block-end: 1px solid var(--toc-separator-c);

    line-height: 1.4;
  }

  --ifm-toc-border-color: transparent;

  .toc-wrapper {
    overflow: auto;
    position: sticky;
    top: calc(var(--ifm-navbar-height) + 24px);
    max-height: calc(100vh - var(--ifm-navbar-height) - 16px);

    margin-block-start: 2.5rem;

    padding-inline-end: 2rem;
    padding-inline-start: 2rem;
    padding-block-end: 2rem;

    h2 {
      font-size: 0.625rem;
      line-height: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.39);
      font-weight: 500;
    }

    .table-of-contents__link--active {
      color: #b1b1b1;
    }

    .table-of-contents {
      padding: 0;
      margin-inline-start: calc(-1 * var(--ifm-toc-padding-horizontal));
      margin-inline-end: calc(-1 * var(--ifm-toc-padding-horizontal));

      width: 16rem;

      >li:first-of-type {
        margin-block-start: 0;
      }

      >li:last-of-type {
        margin-block-end: 0;
      }
    }

    .theme-edit-this-page {
      --edit-this-page-c: #696969;

      font-weight: 400;
      font-size: 13px;
    }
  }

  [class^='tocCollapsible_'] {
    @media (max-width: 996px) {
      display: none;
    }
  }
}

.toc-wrapper {
  margin-block-start: 3rem !important;
}