/* legacy-dark.css — الوضع الليلي للتدوينات القديمة (الرقية، الاستخارة، السيارات…)
   يعمل عند تفعيل زر الوضع الليلي في الهيدر الموحد (html.tsh-dark) */
html.tsh-dark body{background:#0b1622 !important;color:#d7e0ea !important}

/* البطاقات والصناديق البيضاء */
html.tsh-dark .article-container,
html.tsh-dark .comments,
html.tsh-dark .nav-button,
html.tsh-dark .toc-sidebar,
html.tsh-dark .comparison-table,
html.tsh-dark .loader-container{
  background:#132130 !important;color:#d7e0ea !important;
  border-color:#24384b !important;box-shadow:0 4px 20px rgba(0,0,0,.35) !important}
html.tsh-dark .toc,
html.tsh-dark .comment{background:#182a3c !important;color:#d7e0ea !important}

/* النصوص داخل المقال */
html.tsh-dark .article-container :is(p,li,span,div,strong,b,em,small,blockquote,label,td){color:inherit}
html.tsh-dark .article-container :is(h1,h3,h4,h5,h6){color:#f2f6fa !important}
html.tsh-dark h2{color:#7fb0e6 !important;border-bottom-color:#2f5d8f !important}
html.tsh-dark .article-title{color:#9fb4c8 !important}
html.tsh-dark .paragraph.highlighted-line span{color:#f0a37f !important}

/* الروابط وجدول المحتويات */
html.tsh-dark .article-container a,
html.tsh-dark .toc a,
html.tsh-dark .toc-title,
html.tsh-dark .toc-sidebar a,
html.tsh-dark .reply-btn{color:#7fb0e6 !important}
html.tsh-dark .toc-sidebar a:hover,
html.tsh-dark .toc a:hover{background:rgba(127,176,230,.12) !important}

/* الجداول */
html.tsh-dark table{background:transparent !important;color:#d7e0ea !important;border-color:#2a3f54 !important}
html.tsh-dark :is(th,td){border-color:#2a3f54 !important;color:#d7e0ea !important}
html.tsh-dark th{background:#1d3550 !important;color:#f2f6fa !important}
html.tsh-dark tr:nth-child(even) td{background:#16273a !important}
html.tsh-dark tr:nth-child(odd) td{background:#132130 !important}

/* النماذج */
html.tsh-dark .add-comment :is(input,textarea){background:#0f1c29 !important;color:#e7eef5 !important;border-color:#2a3f54 !important}
html.tsh-dark .add-comment :is(input,textarea)::placeholder{color:#7d91a5}

/* الأزرار */
html.tsh-dark .nav-button button,
html.tsh-dark .social-icon,
html.tsh-dark .back-to-top{background:#2f6fb5 !important;color:#fff !important}
html.tsh-dark hr{border-color:#24384b}
html.tsh-dark img{opacity:.95}
