/* Urdu pages (ur/*.html), loaded after every other stylesheet.
   dir="rtl" on <html> already mirrors flex and grid order and text alignment;
   this file sets the Urdu typeface and fixes the places the theme uses
   physical left/right. */

:root{--ur-font:"Noto Nastaliq Urdu","Jameel Noori Nastaleeq","Urdu Typesetting",serif}

/* Sizes: css/rtl-sizes.css (generated by tools/build_rtl_sizes.py) scales every
   theme font size down for Nastaliq, whose letters stand taller than Latin.
   The smallest labels get a floor so they stay legible after scaling. */
html[dir="rtl"] :is([class*="kicker"],[class*="eyebrow"],.tag,.mega-title,.afooter h5,
  .ui-logo-cap,[class*="crumb"]):not([lang="en"]){font-size:max(.74rem,1em)}
html[dir="rtl"] body{font-family:var(--ur-font)}
/* Nastaliq needs more room above and below each line than Latin */
html[dir="rtl"] body{line-height:1.95}
html[dir="rtl"] :is(h1,h2,h3,h4,h5,h6){font-family:var(--ur-font);line-height:1.7;letter-spacing:0;
  text-transform:none;word-spacing:normal}
html[dir="rtl"] :is(p,li,dd,dt,td,th,figcaption,label,a,span,button,small,b,strong){letter-spacing:0}
/* Letter-spacing pulls Urdu letters apart and breaks the joins between them,
   so it is off everywhere - the theme sets it on headings with high specificity */
html[dir="rtl"] *:not([lang="en"]):not([lang="en"] *){letter-spacing:0 !important}
/* uppercase tracking is a Latin device; on Urdu it only breaks the joins */
html[dir="rtl"] [class*="kicker"],html[dir="rtl"] [class*="eyebrow"],html[dir="rtl"] .mega-title,
html[dir="rtl"] .afooter h5,html[dir="rtl"] .tag{letter-spacing:0;text-transform:none}

/* English left on an Urdu page keeps its own font and direction */
html[dir="rtl"] [lang="en"]{font-family:-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  line-height:1.7}
/* figures, codes, emails and phone numbers read left to right inside Urdu */
html[dir="rtl"] :is(a[href^="mailto:"],a[href^="tel:"],time,.num){unicode-bidi:isolate;direction:ltr;
  display:inline-block}

/* ---------- components the theme positions with physical left/right ---------- */
/* page hero: photo pinned to the right, copy on the left -> swap sides */
html[dir="rtl"] .wd-hero-img{right:max(40%, calc(50% - var(--maxw) / 2 + var(--maxw) * .38));left:0}
html[dir="rtl"] .wd-hero-txt{padding:7rem 0 5rem 2.5rem}
/* contact hero: same idea, and its shade runs from the copy side */
html[dir="rtl"] .ct-hero-img{right:46%;left:0}
html[dir="rtl"] .ct-hero-img::after{
  background:linear-gradient(270deg,var(--navy-deep) 0%,rgba(15,27,48,.72) 30%,rgba(15,27,48,.15) 78%,rgba(15,27,48,.35) 100%)}
html[dir="rtl"] .ct-hero-txt{padding:8.5rem 0 5rem 3.5rem}
/* full-width photo band: darkest behind the copy, which now starts on the right */
html[dir="rtl"] .wd-band::after{
  background:linear-gradient(270deg,rgba(6,16,11,.88) 0%,rgba(6,16,11,.62) 52%,rgba(6,16,11,.30) 100%)}
@media (max-width:992px){
  html[dir="rtl"] .wd-hero-img{right:auto;left:auto}
  html[dir="rtl"] .wd-hero-txt{padding:2.6rem 0 3rem}
  html[dir="rtl"] .ct-hero-img{right:auto;left:auto}
  html[dir="rtl"] .ct-hero-txt{padding:2.6rem 0 3.4rem}
}

/* notice on pages whose body is still English: a small bar pinned to the
   bottom, so it never sits under the transparent header; js/site.js closes it */
.ur-notice{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:1500;
  display:flex;align-items:center;gap:.9rem;max-width:calc(100% - 32px);
  background:#16243f;color:#fff;border-radius:999px;padding:.45rem .6rem .45rem 1.2rem;
  box-shadow:0 10px 30px rgba(0,0,0,.25);font-size:.92rem;line-height:1.9}
.ur-notice[hidden]{display:none}
.ur-notice a{color:#8fe0b0;font-weight:700;white-space:nowrap}
.ur-notice-x{background:none;border:0;color:rgba(255,255,255,.75);font-size:1.4rem;line-height:1;
  cursor:pointer;padding:0 .35rem}
.ur-notice-x:hover{color:#fff}
