/* =========================================================================
   Right-to-left overrides — loaded only when the site language is RTL,
   i.e. the Kurdish (Sorani) and Persian subsites.
   ========================================================================= */

:root{
  /* Vazirmatn covers Persian and Sorani well and ships a full weight range;
     Newsreader has no Arabic script, so display type falls back here too. */
  --font-display:"Vazirmatn","Noto Naskh Arabic",Tahoma,serif;
  --font-ui:"Vazirmatn","Noto Sans Arabic",Tahoma,sans-serif;
}

/* ---- shell: the drawer slides in from the right ------------------------ */
.t-rail{inset:0 0 0 auto;transform:translateX(100%)}
.t-rail.is-open{transform:translateX(0)}

/* ---- rail menu ---------------------------------------------------------- */
.t-railnav > li > a{
  border-left:0;border-right:2px solid transparent;
}
.t-railnav > li > a:hover,
.t-railnav > li.current-menu-item > a{border-right-color:var(--brand-gold)}
.t-railnav__toggle{right:auto;left:16px}
.t-railnav .sub-menu a{
  padding:9px 42px 9px 52px;
  border-left:0;border-right:2px solid transparent;
}
.t-railnav .sub-menu a:hover{border-right-color:var(--brand-blue)}
.t-railnav .sub-menu .sub-menu a{padding-left:52px;padding-right:58px}

/* ---- top bar ------------------------------------------------------------ */
.t-topnav .sub-menu{left:auto;right:0}
.t-topnav .sub-menu a:hover{padding-left:18px;padding-right:22px}
.t-topnav .sub-menu .sub-menu a{padding-left:18px;padding-right:32px}
.t-topnav .sub-menu .sub-menu a:hover{padding-left:18px;padding-right:36px}

/* ---- article ------------------------------------------------------------ */
.t-prose blockquote{
  border-left:0;border-right:3px solid var(--brand-gold);
  padding:4px 24px 4px 0;
}
.t-prose ul,.t-prose ol{padding-left:0;padding-right:1.35em}
.t-pub{border-left:1px solid var(--rule);border-right:3px solid var(--brand-blue)}
.t-card__title a{background-position:100% 100%}

/* Latin runs (DOI, ISBN, e-mail) stay left-to-right inside RTL copy, but the
   value still has to sit beside its label: without the explicit alignment a
   value that starts with a digit resolves to LTR and jumps to the far edge. */
.t-pub__grid dd{unicode-bidi:plaintext;text-align:right}

/* ---- typography tuning -------------------------------------------------- */
/* Arabic-script faces sit lower and need a looser line than the Latin serif. */
.t-prose{font-size:18px;line-height:1.95}
.t-card__title{line-height:1.45}
.t-article__title{line-height:1.38}
h1,h2,h3,h4{letter-spacing:0}
