/* ===== تعريب + اتجاه RTL — يُحمَّل بعد CSS الصفحة فيغلبه بـ !important ===== */

/* خطوط عربية */
html[dir=rtl] body,html[dir=rtl] button,html[dir=rtl] input,html[dir=rtl] select,html[dir=rtl] textarea{
  font-family:"Segoe UI","Noto Naskh Arabic","Noto Sans Arabic",Tahoma,Roboto,Arial,sans-serif!important;
  line-height:1.7!important}
html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] h3,html[dir=rtl] h4,html[dir=rtl] .pagetitle,html[dir=rtl] .ptitle{line-height:1.55!important}
html[dir=rtl] .card h3,html[dir=rtl] .poplist b,html[dir=rtl] .ccard b{line-height:1.55!important}
html[dir=rtl] .quote blockquote{font-family:"Noto Naskh Arabic","Amiri",Georgia,serif!important;font-size:15.5px!important}

/* عناوين الأشرطة والشرائط الجانبية */
html[dir=rtl] .pagetitle,html[dir=rtl] .strip>h2,html[dir=rtl] .catstrip>h2,
html[dir=rtl] .pdp-body h2,html[dir=rtl] .pbody h2{padding-left:0!important;padding-right:.8rem!important}
html[dir=rtl] .strip>h2::before,html[dir=rtl] .catstrip>h2::before,html[dir=rtl] .pagetitle::before,
html[dir=rtl] .pdp-body h2::before,html[dir=rtl] .pbody h2::before{left:auto!important;right:0!important}
html[dir=rtl] .pagetitle small{margin-left:0!important;margin-inline-start:.5rem!important}
html[dir=rtl] .ptitle small{margin-left:0!important;margin-right:auto!important}
html[dir=rtl] .resultline{margin:.3rem .8rem 0 0!important}
html[dir=rtl] body>header.top nav.cats a small{margin-left:0!important;margin-right:.15rem!important}

/* حقول البحث والأزرار الملتصقة */
html[dir=rtl] .herosearch input{border-right:2px solid var(--line)!important;border-left:0!important;border-radius:0 12px 12px 0!important;padding:0 1rem!important}
html[dir=rtl] .e404 form input{border-right:2px solid var(--line)!important;border-left:0!important;border-radius:0 10px 10px 0!important;padding:.65rem .9rem!important}
html[dir=rtl] .herosearch button{border-left:2px solid var(--amber)!important;border-right:0!important;border-radius:12px 0 0 12px!important}
html[dir=rtl] .e404 form button{border-radius:10px 0 0 10px!important;border-left:2px solid var(--amber)!important;border-right:2px solid var(--amber)!important}
html[dir=rtl] .search input{border-radius:0 10px 10px 0!important}
html[dir=rtl] .search button{border-radius:10px 0 0 10px!important}
html[dir=rtl] .heroArt{right:auto!important;left:clamp(1rem,7vw,6rem)!important}
html[dir=rtl] .sortform select{padding:.5rem 1rem .5rem 2rem!important;background-position:left .8rem center!important}
html[dir=rtl] select{background-position:left 1rem center!important}

/* جداول المعلومات والمحتوى */
html[dir=rtl] .info th,html[dir=rtl] .info td,html[dir=rtl] table.t th,html[dir=rtl] table.t td{text-align:right!important}
html[dir=rtl] .info th{padding:.7rem 0 .7rem 1rem!important}
html[dir=rtl] .pbody ul,html[dir=rtl] .pbody ol{padding-left:0!important;padding-right:1.4rem!important}
html[dir=rtl] .pbody blockquote{border-left:0!important;border-right:4px solid var(--amber2)!important;border-radius:10px 0 0 10px!important}
html[dir=rtl] .dlrel{padding-left:0!important;padding-right:1.1rem!important}
html[dir=rtl] .share span{margin-right:0!important;margin-left:.2rem!important}
html[dir=rtl] .toc li{margin-inline-start:0}

/* اتجاه الرموز الصغيرة */
html[dir=rtl] .chip i,html[dir=rtl] .cc-more::after{margin-left:0!important;margin-right:.25rem!important}
html[dir=rtl] .cc-more::after{display:inline-block}
