/* YOO H2 TOC Ultimate - default styling */
.h2toc-nav { width: 100%; }

.h2toc-list{
  list-style: none;
  padding-left: 0;
  margin: 0;
  padding: 20px!important;
  background: #eae6e2;
  border-radius: 10px;
}

.h2toc-link{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

ul.h2-toc li {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3em;
    border-bottom: 1px solid #cbc6c1;
    padding: 0 0 5px 0;
}

.h2toc-icon{
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .65;
  transition: opacity .15s ease, transform .15s ease;
}

.h2toc-link:hover .h2toc-icon,
.h2toc-link:focus-visible .h2toc-icon{
  opacity: 1;
  transform: translateX(1px);
}

/* Optional indentation for nested headings */
.h2toc-item[data-level="3"]{ margin-left: 12px; }
.h2toc-item[data-level="4"]{ margin-left: 24px; }
.h2toc-item[data-level="5"]{ margin-left: 36px; }
.h2toc-item[data-level="6"]{ margin-left: 48px; }


ul.h2-toc li:last-child{
    border-bottom: none;
    }

ul.h2-toc:before{
content: "Spis treści – tematy";
    background: #ca6b50;
    padding: 9px;
    display: block;
    top: -40px;
    position: relative;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    width: 70%;
    margin: 0 auto -20px;
    font-weight: 800;   
}