.eci-single-article {
    background: white;
    padding-top: 2em;
}

/* Auto TOC v14 - Education Canine */

@media (min-width: 1280px) {
    .eci-single-article .entry-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
    }
    .eci-single-article .entry-content .container {
        max-width: none;
        margin: 0;
        padding: 0;
        padding-right: 288px;
    }
}

@media (max-width: 1279px) {
    .eci-single-article .entry-content .container {
        max-width: none;
        padding-right: var(--space-md);
    }
}

/* Fixed TOC */
.auto-toc-fixed {
    position: fixed;
    top: 80px;
    width: 260px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    font-size: 0.84rem;
    padding: 20px 18px;
    background: #f8faf8;
    border: 1px solid #d4e5d0;
    border-left: 3px solid #16A34A;
    border-radius: 12px;
    z-index: 50;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(22,163,74,0.15) transparent;
}
.auto-toc-fixed::-webkit-scrollbar { width: 3px; }
.auto-toc-fixed::-webkit-scrollbar-thumb { background: rgba(22,163,74,0.15); border-radius: 3px; }
.auto-toc-fixed.visible { opacity: 1; transform: translateX(0); pointer-events: auto; }
.auto-toc-fixed.toc-hidden { display: none; }
.auto-toc-title {
    font-weight: 700; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: #16A34A; margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid #d4e5d0;
}
.auto-toc-fixed ol { list-style: none; margin: 0; padding: 0; }
.auto-toc-fixed > ol > li { margin-bottom: 1px; }
.auto-toc-fixed a {
    text-decoration: none; color: #4a5568; transition: all 0.15s ease;
    display: block; padding: 5px 10px 5px 12px;
    border-left: 2px solid transparent; border-radius: 0 6px 6px 0; line-height: 1.4;
}
.auto-toc-fixed a:hover { color: #1a202c; background: rgba(22,163,74,0.04); }
.auto-toc-fixed a.active { color: #0f2c4a; font-weight: 600; border-left-color: #16A34A; background: rgba(22,163,74,0.08); }
.auto-toc-fixed .auto-toc-sub { margin: 0; padding: 0; }
.auto-toc-fixed .auto-toc-sub a { padding-left: 24px; font-size: 0.9em; color: #718096; }
.auto-toc-fixed .auto-toc-sub a:hover { color: #4a5568; }
.auto-toc-fixed .auto-toc-sub a.active { color: #1a202c; border-left-color: #16A34A; }

.auto-toc-mobile {
    background: #f8faf8; border: 1px solid #d4e5d0; border-left: 3px solid #16A34A;
    border-radius: 12px; padding: 16px 20px; margin: 16px 0 24px;
}
.auto-toc-mobile summary {
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    list-style: none; display: flex; align-items: center; gap: 8px; color: #16A34A;
}
.auto-toc-mobile summary::before { content: "\2630"; font-size: 1.1em; }
.auto-toc-mobile summary::marker { display: none; }
.auto-toc-mobile summary::-webkit-details-marker { display: none; }
.auto-toc-mobile ol { margin: 12px 0 0; padding-left: 18px; list-style: none; counter-reset: toc; }
.auto-toc-mobile li { margin-bottom: 6px; counter-increment: toc; }
.auto-toc-mobile li::before { content: counter(toc) "."; font-weight: 600; margin-right: 6px; color: #16A34A; opacity: 0.6; }
.auto-toc-mobile a { text-decoration: none; color: #4a5568; }
.auto-toc-mobile a:hover { color: #1a202c; text-decoration: underline; }
.auto-toc-mobile .auto-toc-sub { margin: 6px 0 2px 12px; padding-left: 12px; border-left: 2px solid #d4e5d0; }
.auto-toc-mobile .auto-toc-sub li { font-size: 0.9em; margin-bottom: 4px; }
.auto-toc-mobile .auto-toc-sub li::before { content: "\2013"; margin-right: 6px; }

@media (max-width: 1279px) {
    .auto-toc-fixed { display: none; }
}
