html {
    scroll-behavior: smooth;
}

.prottoge-toc {
    background: #f8f8f8;
    border-left: 4px solid #0073aa;
    padding: 1em;
    margin-bottom: 1.5em;
    font-size: 0.95em;
}

.prottoge-toc strong {
    font-size: 1.1em;
    display: block;
    margin-bottom: 0.5em;
}

.prottoge-toc ul {
    list-style-type: none;
    padding-left: 1em;
}

.prottoge-toc li {
    margin-bottom: 0.3em;
}

.prottoge-toc a {
    text-decoration: none;
    color: #0073aa;
}

.prottoge-toc a:hover {
    text-decoration: underline;
}

.prottoge-toc .toc-level-2 {
    margin-left: 1em;
}

.prottoge-toc .toc-level-3 {
    margin-left: 2em;
}

.prottoge-toc .toc-level-4 {
    margin-left: 3em;
}




/*27-10-2025*/
/* Container for the TOC (the main white box) */
.prottoge-toc {
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional subtle shadow */
    border-radius: 6px;
    padding: 15px;
    /* Increase padding */
    margin-bottom: 20px;
    background-color: #ffffff;
    /* White background */
    border: 1px solid #ddd;
    /* Light border */
}

/* Style for the Toggle Button (the entire bar) */
.prottoge-toc-toggle {
    display: flex;
    /* Use flexbox to align text and icon */
    width: 100%;
    justify-content: space-between;
    /* Push icon to the right */
    align-items: center;
    /* Vertically align items */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.1em;
}

/* Style for the 'Table of Contents' text */
.prottoge-toc-toggle strong {
    font-weight: 700;
    /* Ensure text is bold */
    color: #333;
    /* Dark text color */
}

/* Style for the Custom List Icon (the square button) */
.prottoge-list-icon {
    /* Match the square button look */
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    /* To center the icon inside */
    align-items: center;
    justify-content: center;
    /* This creates the list icon using ::before content */
    position: relative;
    transition: all 0.2s ease-in-out;
}

/* Create the lines of the list icon */
.prottoge-list-icon::before {
    content: "\2261";
    /* Unicode for 'Identical To' or Hamburger icon */
    font-size: 26px;
    /*1.2em;*/
    line-height: 1;
    /* Adjust vertical position */
    color: #666;
}

/* Hide the content initially */
.prottoge-toc-content {
    display: block;
    margin-top: 15px;
    /* Space between button and list */
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Show the content when the TOC is close (class added by JS) */
.prottoge-toc.close .prottoge-toc-content {
    display: none;
}

/* Optional: change icon appearance when close */
.prottoge-toc.close .prottoge-list-icon {
    background-color: #f0f0f0;
    /* Slight color change when active */
}

/* Remove list default margin/padding for cleaner look */
.prottoge-toc-content ul,
.prottoge-toc-content ol {
    margin: 0;
    list-style: none !important;
    counter-reset: none !important;
    padding-left: 0 !important;
}

button.prottoge-toc-toggle:not(:hover):not(:active):not(.has-background) {
    background: none;
}

button.prottoge-toc-toggle:focus {
    outline: none;
}