/* Arabic layout: shared content and behavior, right-to-left reading order. */
html[dir="rtl"] body{font-family:Tahoma,Arial,"Noto Naskh Arabic",sans-serif;text-align:right}
html[dir="rtl"] .sidebar{left:auto;right:0;border-left:1px solid var(--line);border-right:0}
html[dir="rtl"] .workspace{margin-left:0;margin-right:228px}
html[dir="rtl"] .brand-symbol,html[dir="rtl"] .brand-symbol span,html[dir="rtl"] .hash,html[dir="rtl"] .verse-ref,html[dir="rtl"] .order-num,html[dir="rtl"] .lyric-id{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .nav-item{text-align:right}
html[dir="rtl"] .nav-item b{margin-left:0;margin-right:auto}
html[dir="rtl"] .nav-item.active{box-shadow:inset -2px 0 var(--gold)}
html[dir="rtl"] .overline,html[dir="rtl"] .topbar,html[dir="rtl"] .small,html[dir="rtl"] .date,html[dir="rtl"] .hero .overline,html[dir="rtl"] .section-note{letter-spacing:normal}
html[dir="rtl"] .language-control{margin-left:20px;margin-right:auto}
html[dir="rtl"] .language-control select{direction:ltr}
html[dir="rtl"] .date{margin-left:0;margin-right:23px}
html[dir="rtl"] .stats>div,html[dir="rtl"] .stats>button,html[dir="rtl"] table,html[dir="rtl"] .lemma-button{text-align:right}
html[dir="rtl"] .stat-icon{margin-left:0;margin-right:auto}
html[dir="rtl"] .hero{background:radial-gradient(ellipse at 5% 40%,#193c5266,transparent 58%)}
html[dir="rtl"] .hero h1{font-size:clamp(32px,4vw,46px);line-height:1.5;letter-spacing:normal}
html[dir="rtl"] .witness-reading{direction:rtl;text-align:right;line-height:2}
html[dir="rtl"] .latin-reading{direction:ltr;text-align:left;unicode-bidi:isolate;font-family:Arial,sans-serif}
html[dir="rtl"] .reading-method a{overflow-wrap:anywhere}
html[dir="rtl"] .prose-block p,html[dir="rtl"] .prose-faq p{line-height:2.1}
html[dir="rtl"] .lyric-text[lang="tr"]{direction:ltr;text-align:left;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;unicode-bidi:plaintext}
html[dir="rtl"] .lyric-translation{border-left:0;border-right:2px solid #80d5d066;padding-left:0;padding-right:16px}
html[dir="rtl"] .lyric-translation p{font-size:18px;line-height:2}
html[dir="rtl"] .contact-identity .contact-status{border-left:0;border-right:2px solid var(--gold)}
html[dir="rtl"] .contact-email{direction:ltr;unicode-bidi:isolate;font-family:Arial,sans-serif}
html[dir="rtl"] .message-template pre{direction:rtl;text-align:right;line-height:2.1}
html[dir="rtl"] .reset{margin-left:0;margin-right:auto}
html[dir="rtl"] .detail-title h2{font-family:"Amiri","Noto Naskh Arabic","Traditional Arabic",serif;line-height:1.7}
html[dir="rtl"] .table-top select{direction:ltr}
@media(max-width:900px){html[dir="rtl"] .sidebar{right:auto;border-left:0;border-bottom:1px solid var(--line)}html[dir="rtl"] .workspace{margin:0}html[dir="rtl"] .hero h1{font-size:39px}}
@media(max-width:620px){html[dir="rtl"] .language-control{margin-left:0}html[dir="rtl"] .hero h1{font-size:34px}html[dir="rtl"] td::before{text-align:right;direction:rtl}html[dir="rtl"] tbody tr td:last-child{right:auto;left:15px}html[dir="rtl"] .lyric-translation p{font-size:17px}}
@media(min-width:901px) and (max-width:1180px){html[dir="rtl"] .workspace{margin-right:205px}}
html[dir="rtl"] .sidebar nav .nav-item{box-sizing:border-box}
html[dir="rtl"] .view{scroll-margin-top:24px}
html[dir="rtl"] .topbar .language-control{margin-inline:0}
html[dir="rtl"] .entry-detail :is(h1,h2){font-family:"Amiri","Noto Naskh Arabic","Traditional Arabic",serif;line-height:1.7}
html[dir="rtl"][data-theme="light"] .hero{background:radial-gradient(ellipse at 5% 40%,#bed7e666,transparent 58%)}
