.toc-generator-block {
    background-color: #f8f9fa;
    border-color: var(--ast-border-color);
    border-radius: 2px;
    padding: 8px 16px;
    margin: 20px 0;
    font-size: 1.2em;
    font-family: 'Calluna-Sans',calluna-sans,sans-serif;
}

.toc-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding: 8px 0;
}

.toc-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--ast-border-color);
    border-radius: 2px;
    margin: 0 -8px;
    padding: 8px 8px;
}

.toc-triangle {
    display: inline-block;
    font-size: 14px;
    color: #666;
    margin-right: 8px;
    transition: transform 0.2s ease;
    width: 16px;
    text-align: center;
}

.toc-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #555b5b;
}

.toc-content {
    margin-top: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-list li {
    margin: 8px 0;
    line-height: 1.4;
}

.toc-h2 {
    font-weight: 600;
}

.toc-h2:before {
    display: none !important;
}

.toc-h3 {
    margin-left: 20px;
    font-weight: 400;
    padding-left: 26px;
}

.toc-h4 {
    font-size: .9em;
}

#page #primary .toc-list a {
    color: #555b5b;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

#page #primary .toc-list a:hover {
    color: #8a3932;
    text-decoration: none;
}

.toc-list a:focus {
    
}