#easy-table-of-content {
    box-sizing: border-box;
    padding: 20px 30px;
    list-style: outside disc;
    border: 1px solid #dfdfdf;
    background: #f9f9f9;
    margin: 50px auto;
    max-width: 80%
}
#easy-table-of-content .title {
    color: #333;
}

#easy-table-of-content h1,
#easy-table-of-content h2,
#easy-table-of-content h3,
#easy-table-of-content h4 {
    margin: 0;
    margin-bottom: 15px;
}

#easy-table-of-content .hide {
    display: none;
}

#easy-table-of-content ul {
    padding-left: 25px;
}

#easy-table-of-content li {
    list-style: none;
    border-bottom: 1px dashed #ccc;
}

#easy-table-of-content li a {
    position: relative;
    text-indent: -1em;
    font-size: 20px;
    color: #3f8ccf;
    border-bottom: none;
}

#easy-table-of-content li a,
#easy-table-of-content li a:before, 
#easy-table-of-content li a:after {
    text-decoration: none;
    border: none;
}

#easy-table-of-content.no-indent ul {
    padding: 0;
    margin: 0;
}

#easy-table-of-content li a:before {
    content: attr(data-list);
    display: inline-block;
    vertical-align: middle;
}

#easy-table-of-content li.bullet {
    list-style: disc outside;
    margin-bottom: 12px;
}

#easy-table-of-content li.bullet li.bullet {
    text-indent: 0.4em;
    margin-top: 15px;
}

#easy-table-of-content li.bullet a {
    font-size: 17px;
}

#easy-table-of-content {
    position: relative;
}

#easy-table-of-content.fixed {
    position: fixed;
    display: block;
    width: auto;
    max-width: 20%;
    padding: 10px;
    /* Add other styling as necessary, such as a shadow or background for visibility */
}

#easy-table-of-content.fixed {
    width: 20%;
    max-height: 80vh;
    overflow-y: scroll;
    z-index: 999;
}

#easy-table-of-content.fixed ul {
    display: none;
}

#easy-table-of-content li {
    margin: 10px 0;
    position: relative;
}

#easy-table-of-content li a {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    display: inline;
    padding-left: 15px;
    /* or whatever maximum width you want */
}

#easy-table-of-content.hidden {
    display: none;
}

#easy-table-of-content.relative {
    position: relative;
    display: block;
    top: auto;
    transform: translate(0);
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
}

.top-left-center {
    top: 0;
    left: 20px;
}

.top-right-center {
    top: 0;
    right: 20px;
}

#easy-table-of-content.foldable li:has(> ul)::after {
    content: "▶";
    /* Right-pointing triangle for closed state */
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    /* To indicate it's clickable */
    position: absolute;
    top: 0;
    right: 0px;
}

#easy-table-of-content.foldable li.open:has(> ul)::after {
    content: "▼";
    /* Downward-pointing triangle for open state */
}

@media (max-width: 1024px) {
    #easy-table-of-content.fixed {
        position: relative;
        max-width: 100%;
        width: 100%;
        /* other styles to reset the fixed look */
    }
}

#easy-table-of-content {
    border: 1px solid #0b080842;
    background: #eef2f5;
}

/* #easy-table-of-content li {
  border-bottom: 1px solid #2b282824;
} */
#easy-table-of-content li.open {
    border: none;
    padding-bottom: 1px;
}

#toc-placeholder {
    display: none;
    /* Hide by default */
}

/* Then show it on desktop */
@media screen and (min-width: 1025px) {

    /* Adjust the value as needed */
    #toc-placeholder {
        display: block;
    }
}






