
.postivy-toc {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.postivy-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.postivy-toc-title {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #24292e;
}
.postivy-toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 1em;
    color: #586069;
    transition: transform 0.3s ease;
}
.postivy-toc-toggle:hover {
    color: #24292e;
}
.postivy-toc.collapsed .postivy-toc-toggle {
    transform: rotate(-90deg);
}
.postivy-toc.collapsed .postivy-toc-content {
    display: none;
}
.postivy-toc-content {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.postivy-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc-counter;
}
.postivy-toc-item {
    margin: 8px 0;
    counter-increment: toc-counter;
}
.postivy-toc-item::before {
    content: counter(toc-counter) ". ";
    color: #586069;
    font-weight: 600;
}
.postivy-toc-list-nested {
    list-style: none;
    margin: 8px 0 8px 20px;
    padding: 0;
    counter-reset: toc-counter;
}
.postivy-toc-link {
    color: #0366d6;
    text-decoration: none;
    transition: color 0.2s ease;
}
.postivy-toc-link:hover {
    color: #0056b3;
    text-decoration: underline;
}
.postivy-toc-link:focus {
    outline: 2px solid #0366d6;
    outline-offset: 2px;
}
/* Mobile responsive */
@media (max-width: 768px) {
    .postivy-toc {
        padding: 15px;
        margin: 20px 0;
    }
    .postivy-toc-title {
        font-size: 1.1em;
    }
}
