.comment-input {
    width: 100%; /* Makes the textarea fill the container */
    border: none !important;
    border-bottom: 1px solid var(--bg-2) !important;
    background-color: rgba(0, 0, 0, 0);
    resize: none; /* Prevent manual resizing */
    border-radius: 0;
    padding: 5px 5px 0 5px;
    overflow-wrap: break-word; /* Ensure words wrap when reaching the end */
    word-wrap: break-word;
    white-space: pre-wrap; /* Preserves white spaces and ensures line breaks */
    line-height: 1.5; /* Adjust line height for better readability */
    overflow: hidden; /* Hides any overflow */
    min-height: 1.5em; /* Make sure it starts with a single line height */
}

.comment-input:focus {
    outline: none; /* Remove the default focus outline */
    border: none;
    box-shadow: none;
}

li {
    list-style: inside;
}

.dropdown-menu li, .nav-item, #table-of-contents li {
    list-style: none;
}

@media(min-width: 992px) {
    #table-of-contents {
        position: sticky;
        left: 50%;
        max-height: 60vh; 
        overflow-y: auto; 
        top: 10vh;
        scroll-behavior: smooth;
    }
}

#table-of-contents::-webkit-scrollbar {
    width: 4px;
}

#table-of-contents::-webkit-scrollbar-track {
    background: var(--brand-1);
}

#table-of-contents::-webkit-scrollbar-thumb {
    background: var(--brand-2);
}

.hover-highlight {
    &:hover {
        color: var(--bg-3);
    }
}

.hover-highlight-selected {
    color: var(--bg-3);
}