 /* TOC classic */
 .toc.toc-classic {
    border: 1px solid;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
  }
  .toc-classic .toc-active::before {
   content: '\2192'; /* Unicode arrow right character */
   margin-right: 5px;
   color: var(--paragraphMediumColor); /* Adjust the color as needed */
  }
  /* TOC minimalist */
  .toc.toc-minimalist .toc-button {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  width: 100%;
  text-align: center;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.toc.toc-minimalist .toc-button:hover {
  background: var(--paragraphLinkColor);
  color: #fff;
}

.toc.toc-minimalist {
  border: none;
  border-radius: 8px;
  padding: 15px;
  background-color: ;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toc.toc-minimalist ul {
  list-style-type: none;
  padding: 0;
}

.toc.toc-minimalist li {
  margin-bottom: 4px;
}

.toc.toc-minimalist a {
  text-decoration: none;
  color: var(--paragraphMediumColor);
  transition: color 0.3s;
}

.toc.toc-minimalist a:hover {
  text-decoration: underline;
  color: var(--paragraphLinkColor);
}
.toc-minimalist .toc-active::before {
  content: '\2192'; /* Unicode arrow right character */
  margin-right: 5px;
  color: var(--paragraphMediumColor); /* Adjust the color as needed */
}
  /* TOC minimalist ends */
  /* TOC Clay */
.toc-clay .toc-active:before {
  content: '\2022'; /* Unicode character for a bullet point */
  color: var(--paragraphMediumColor); /* Color of the bullet point */
  font-size: 1.2em;
  margin-right: 5px;
}
.toc-clay .toc-button {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--paragraphMediumColor);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toc-clay .toc-button:hover {
  background: var(--paragraphLinkColor);
  color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
.toc-clay {
  border: 0px !important;
  border-radius: 4px !important;
  padding: 10px !important;
  background-color: #f2f3f4 !important;
  box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
}

.toc-clay ul li a {
  color: #333;
  transition: color 0.3s ease;
}

.toc-clay ul li a:hover {
  color: var(--paragraphLinkColor);
}

.toc-clay .toc-active a {
  color: var(--paragraphLinkColor);
  font-weight: bold;
}
/* TOC Modern ENDS*/
.toc-modern {
  border: 0px !important;
  border-radius: 0px !important;
  padding: 15px; 
  background-color: var(--paragraphLinkColor); 
  box-shadow: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}

.toc-modern .toc-head {
  border-bottom: 1px solid #fff;
  padding-bottom: 5px;
}
.toc-modern .toc-header-title h3 {
  color: #fff;
}
.toc-modern .toc-button {
  padding:3px;
  border-radius: 3px;
  color: #fff;
  background: var(--paragraphMediumColor);
  cursor: pointer;
  transition: color 0.3s ease;
}
.toc-modern .toc-button:hover {
  color: var(--paragraphMediumColor);
  background: #fff;
}
.toc-modern a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease; 
}
.toc-modern a:hover {
  color: var(--paragraphMediumColor); 
}
.toc-modern .toc-active {
  font-weight: bold; 
  color: var(--paragraphMediumColor);
}
.toc-modern .toc-active:before {
  content: '\2713';
  margin-right: 5px;
  color: #fff;
}
/* TOC Clay ENDS*/
  .toc.left-toc ul, .toc.right-toc ul {
    overflow-y: scroll;
    max-height:70vh;
  }
  /* TOC RIGHT */
  @media (min-width: 641px) {
    article#article-.right-toc {
    display: flex;
    flex-direction: row-reverse;
    }
    nav.toc.right-toc {
    height: fit-content;
    top: 100px;
    position: sticky;
    margin-left: 30px;
    width: 300px;
    }
  }
  /* TOC LEFT */
  @media (min-width: 641px) {
    article#article-.left-toc {
    display: flex;
    flex-direction: row;
    }
    nav.toc.left-toc {
    height: fit-content;
    top: 100px;
    position: sticky;
    margin-right: 30px;
    width: 300px;
    }
  }
  /* TOC Mobile */
  @media (max-width: 640px) {
    article#article-.right-toc {
      margin-bottom:20px;
      display: flex;
      flex-direction: column !important;
    }
    article#article-.left-toc {
      margin-bottom:20px;
      display: flex;
      flex-direction: column !important;
    }
  }
  .toc ul {
    display: none;
    margin-top: 20px;
  }

  .toc ul.active {
    display: block !important;
  }

  .toc .toc-h1 {
    padding-left: 15px;
  }

  .toc .toc-h2 {
    padding-left: 25px;
  }

  .toc .toc-h3 {
    padding-left: 35px;
  }

  .toc .toc-h4 {
    padding-left: 45px;
  }

  .toc a {
    padding-left: 0px;
  }

  .toc .toc-active {
    position: relative;
    right: 12px;
  }

  .toc-head {
    display: flex;
    align-items: center;
  }

  .toc-header-title {
    flex: 1 0 75%;
  }

  .toc-header-title h3 {
    font-size: 24px;
    margin: 0 !important;
  }

  .toc-button {
    color: #fff;
    background: var(--tweak-blog-item-meta-color);
    cursor: pointer;
    flex: 1 0 25%;
    text-align: center;
  }

  /* Initially hide the close button */
  .toc-button-close {
    display: none;
  }

  /* Show/hide buttons based on active class */
  .toc-button span:not(.active) {
    display: none !important;
  }

  .toc-button span.active.toc-button-open {
    width: -webkit-fill-available;
    width: fill-available;
    word-break: break-all;
    display: inline-block;
  }

  .toc-button span.active.toc-button-close {
    width: -webkit-fill-available;
    width: fill-available;
    word-break: break-all;
    display: inline-block;
  }