.docssidebar {
  grid-column: 1;
  /* position: fixed; */
  /* top: 200px; */
  padding-bottom: 0mm;
  margin-top: 1rem;
  max-width: 300px;
  text-transform: none !important;
  
}
.docssidebar:after {
  content: " ";
  background-color: var(--color-background);
  opacity: 0.8;
  width: 305px;
  height: 570px;
  position: absolute;
  left: -2px;
  top: -11px;
  z-index: -1;
}
.docs-links {
  display: block;
  width: auto;
  margin-right: -1.5rem;
  padding-bottom: 4rem;
  max-height: calc(100vh - 4rem);
}
.card.active {
  font-weight: bold;
  color: var(--color-primary);
}
.docs-content {
  grid-column: 2 / span 3;
  padding-bottom: 2em;
  padding-left: 60px;
  margin-left: 60px;
  margin-bottom: 5em;
}
a.anchor {
  display: none;
}

/* TOC Sidebar-------------------------------------------------------- */
.show {
  display:  block !important;
}
.hide {
  display: none;
}

.my-3 {
  border-bottom: 1px solid var(--color-secondary);
  padding: 20px 10px 10px;
}
.card-body a {
  font-size: 1em;
  text-decoration: none;
}
.toc h2.toc-title {
  margin-bottom: 0;
}
#TableOfContents a,
tableOfContents a {
  text-decoration: none;
  font-weight: 400;
  font-style: normal;
  font-size: 0.85em;
}
#TableOfContents ul,
tableOfContents ul {
  font-family: var(--font-titre);
  font-size: 1.1em;
  padding-left: 0;
  margin-top: 5px;
  list-style-type:none;
  margin-bottom: 0px;

}
#TableOfContents li a,
tableOfContents li a {
  z-index: 30;
  position: relative;
}
#TableOfContents li {
  margin-left: unset;
  padding-bottom: 7px;
}

#TableOfContents ul li ul {
  display: none;
}




/* docs-navigation ------------------------------------- */

.paginator {
  margin-top: 4em;
  padding-top: 1em;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  grid-column: left/end;
}

.paginator.both {
  justify-content: space-between;
}

.paginator a {
  font-style: normal;
  text-decoration: none;
  border: none;
}
.paginator a:hover {
    border-bottom: none;
}

.paginator .previous,
.paginator .next {
  max-width: 45%;
  line-height: 1.5;
}

.paginator .previous::before,
.paginator .next::before {
  content: "Previously ";
  display: block;
  font-family: var(--font-titre);
  text-transform: uppercase;
  font-size: 0.7em;
  letter-spacing: 0.2ch;
  margin-bottom: 1em;
}

.paginator .next::before {
  content: "Next";
  text-align: right;
}

.paginator .next {
  border-right: 5px solid var(--color-secondary);
  padding-right: 2ch;
  text-align: right;
}

.paginator .previous {
  border-left: 5px solid var(--color-primary);
  padding-left: 2ch;
}


@media screen and (max-width: 950px) {
    .paginator {
        margin-top: 0;
        flex-direction: rox;
    }
    .paginator .previous,
    .paginator .next {
    border: none;
    padding: 0px;
    text-align: center;
    }
    .paginator .next::before,
    .paginator .previous::before {
      text-align: center;
      font-weight: 700;
    }
    .paginator a {
        font-size: 0.9em;
      }
    footer {
        order: 3;
        margin-top: 0px;
    }

    .footer-main {
      flex-wrap: wrap;
      justify-content: center;
    }
    .docssidebar {
        /* order: 2; */
        grid-column: 2 / span 3;
        position: unset ;
        max-width: none;
        margin-top: 2em;
        margin-right: 1.5em;
        padding-bottom: 0px;
    }
    .docs-links {
      padding-bottom: 0px;
    }
    /* .docssidebar::before {
        content: "Table of contents:";
        font-size: 1.3em;
    } */
    .my-3 {
        padding-top: 10px;
    }
    .card-body a {
        font-size: 1em;
      }

    .docs-content {
        grid-column: 2 / span 3;
        margin-left: 0px;
      }
}
