a.back-to-top {
  float: right;
  font-size: 0.7rem;
  display: none;
}
.toc-js.sticky {
  position: relative;
}
.toc-js.sticky.is-sticked {
  position: fixed;
  z-index: 1;
}

.toc-title.h2, .block-toc-js > h2 {
  font-size: 0;
  line-height: 0;
}

.tocify ul{
  margin-bottom: 0;
}

.tocify-item{
  border-radius: 6px;
}

.tocify-header{
  width: auto;
}

.toc-js ul {
list-style: none;
  border: 1px solid rgba(32, 25, 111, 0.2);
  border-radius: 10px;
  padding: 4px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: flex-start;
  max-width: -webkit-fit-content;
  max-width: -moz-fit-content;
  max-width: fit-content;
  background: #f5f7fb;
  background-color: rgb(245, 247, 251);
  flex-wrap: wrap;
}

#toc-js-block-toc-js-block {
  padding-right: 50px;
}
#toc-js-block-toc-js-block.toc-content {
  padding-right: 0px;
}
#toc-js-block-toc-js-block.toc-content li {
  width: max-content;
  margin: 1px;
}

#toc-js-block-toc-js-block.toc-js ul {
  border: none;
}

#toc-js-block-toc-js-block.toc-content ul {
  border: 1px solid rgba(32, 25, 111, 0.2);
}

.toc-js li {
  list-style: none;
  margin-bottom: 20px;
  width: 100%;
}

.toc-js li > a {
  padding: 10px 20px;
}

.tocify-item {
  margin-bottom: 20px;
  width: 100%;
  background: white;
}

.toc-js-item {
  border-radius: 6px;
}

.tocify-focus {
  background-color: var(--kolor-dominujacy) !important;
  border-radius: 10px;
}

.toc-active > a,
.tocify-focus > a {
  color: var(--kolor-czcionki-jasny) !important;
}

h2:focus {
  outline: none;
}

.tocify-item a{
  color: var(--kolor-czcionki-ciemny);
  background-color: rgba(0,0,0,0);
  border: 1px solid rgba(0,0,0,0);
  display: inherit;
  padding: 8px 8px;
  white-space: wrap;
}

