/* =========================================================
   Library Table of Contents
   فهرست مطالب کتاب‌ها و جلسات
   ========================================================= */

.library-toc {
    direction: rtl;
    margin: 20px 0 30px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-right: 4px solid #0073aa;
    border-radius: 8px;
}

.library-toc-title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    color: #1e293b;
    border-bottom: 1px solid #cbd5e1;
    font-family: 'IRANYekan', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
}

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

.library-toc ul li {
    position: relative;
    margin: 7px 0;
    padding-right: 16px;
    line-height: 1.8;
}

.library-toc ul li::before {
    position: absolute;
    top: 0;
    right: 0;
    color: #0073aa;
    content: "•";
    font-weight: 700;
}

.library-toc ul li a {
    color: #334155;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.library-toc ul li a:hover,
.library-toc ul li a:focus {
    color: #0073aa;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.library-toc ul li a:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .library-toc {
        padding: 14px 15px;
    }
}

