/* PIC Post Table of Contents Styles */

.pic-post-table-content {
    margin: 2rem 0;
    max-width: 100%;
    border-left: 2px solid #333;
    padding-left: 25px !important;
}

.pic-toc-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pic-toc-item {
    margin-bottom: 10px;
}

.pic-toc-item:last-child {
    margin-bottom: 0;
}

.pic-toc-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.pic-toc-link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}

.pic-toc-link:hover {
    color: #0073aa;
    text-decoration: underline;
}

.pic-toc-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Loading and error states */
.pic-toc-loading,
.pic-toc-error,
.pic-toc-no-headings {
    padding: 1rem;
    background-color: #f9f9f9;
    border-left: 4px solid #ddd;
    color: #666;
    font-style: italic;
}

.pic-toc-loading {
    border-left-color: #0073aa;
    background-color: #f0f8ff;
}

.pic-toc-error {
    border-left-color: #dc3232;
    background-color: #fef7f7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pic-toc-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .pic-toc-list {
        padding-left: 1rem;
    }
    
    .pic-toc-item {
        padding-left: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .pic-toc-item::before {
        left: -1rem;
        width: 4px;
        height: 4px;
        top: 0.5rem;
    }
    
    .pic-toc-link {
        font-size: 0.9rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Ensure proper spacing for anchored headings */
h2[id^="toc-"] {
    scroll-margin-top: 2rem;
}

/* Clean styling without background */

@media (max-width: 768px) {
    .pic-post-table-content {
        padding: 1rem 0;
    }
}
