/* Jamia Mahmoodia v105 — strict Urdu edition + balanced 22Media typography. */
html[lang="ur"] body#jm-site-root.jm-ui-v105:not(.jm-portal-workspace-page){
  --jm105-naskh:"Noto Naskh Arabic","Noto Sans Arabic",serif;
  --jm105-ui:"Noto Sans Arabic","Noto Naskh Arabic",Arial,sans-serif;
  direction:rtl!important;
  text-align:right;
  font-family:var(--jm105-ui)!important;
  font-style:normal!important;
  font-synthesis:none!important;
  word-spacing:.02em;
}
html[lang="ur"] body#jm-site-root.jm-ui-v105:not(.jm-portal-workspace-page) :is(h1,h2,h3,h4,h5,h6){
  font-family:var(--jm105-naskh)!important;
  font-style:normal!important;
  font-weight:600!important;
  letter-spacing:0!important;
  text-transform:none!important;
  line-height:1.34!important;
  word-spacing:.035em!important;
  text-wrap:balance;
}
html[lang="ur"] body#jm-site-root.jm-ui-v105:not(.jm-portal-workspace-page) h1{line-height:1.27!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105:not(.jm-portal-workspace-page) :is(p,li,blockquote,dd){
  font-family:var(--jm105-ui)!important;
  line-height:1.9!important;
  letter-spacing:0!important;
  word-spacing:.015em!important;
}
html[lang="ur"] body#jm-site-root.jm-ui-v105:not(.jm-portal-workspace-page) :is(a,button,label,summary,small,span,b,strong,input,textarea,select,option,th,td){
  font-family:var(--jm105-ui)!important;
  font-style:normal!important;
  letter-spacing:0!important;
  text-transform:none!important;
  line-height:1.62!important;
}
html[lang="ur"] body#jm-site-root.jm-ui-v105:not(.jm-portal-workspace-page) :is(em,i:not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"])){
  font-style:normal!important;
}
/* Display sections need more breathing room in Urdu, not oversized Latin spacing. */
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm71-hero-copy>h1{font-size:clamp(48px,5.2vw,78px)!important;max-width:820px!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm71-hero-copy .jm71-hero-lead{font-size:17px!important;line-height:2!important;max-width:760px!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 :is(.jm70-section-head h2,.jm72-mission h2,.jm71-pathfinder h2,.jm70-story h2,.jm77-campus-head h2){
  font-size:clamp(38px,4.2vw,64px)!important;
  line-height:1.35!important;
  margin-block:.25em .45em!important;
}
html[lang="ur"] body#jm-site-root.jm-ui-v105 :is(.jm70-kicker,.jm70-eyebrow,.jm71-eyebrow,.jm77-gallery-copy small){
  font-family:var(--jm105-ui)!important;
  font-size:12px!important;
  line-height:1.6!important;
  letter-spacing:0!important;
  font-weight:700!important;
}
html[lang="ur"] body#jm-site-root.jm-ui-v105 :is(.jm71-path-grid,.jm72-mission-track,.jm70-scholar-grid,.jm70-program-grid,.jm70-identities,.jm70-footer-grid){direction:rtl!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 :is(.jm71-path-grid>a,.jm72-mission-track article,.jm70-scholar-card,.jm70-program-card){text-align:right!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm71-path-grid>a{padding:24px!important;min-height:210px!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm71-path-grid h3{font-size:28px!important;line-height:1.45!important;margin:12px 0 8px!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm71-path-grid p{font-size:14px!important;line-height:1.9!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm72-mission-track article{padding:26px 28px!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm72-mission-track strong{font-family:var(--jm105-naskh)!important;font-size:26px!important;line-height:1.4!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm72-mission-track small{font-size:13px!important;line-height:1.8!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm70-scholar-card h3{font-size:31px!important;line-height:1.45!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm70-scholar-card p{font-size:14px!important;line-height:1.95!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm70-scholar-metrics small{font-size:12px!important;line-height:1.65!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm70-footer{text-align:right!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm70-footer-grid{gap:42px!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm70-footer h3{font-size:22px!important;line-height:1.5!important}
html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm70-footer a{font-size:14px!important;line-height:1.75!important}
/* Avoid English-style wide letter spacing on translated UI. */
html[lang="ur"] body#jm-site-root.jm-ui-v105 [class*="eyebrow"],
html[lang="ur"] body#jm-site-root.jm-ui-v105 [class*="kicker"],
html[lang="ur"] body#jm-site-root.jm-ui-v105 small{text-transform:none!important;letter-spacing:0!important}
@media(max-width:900px){
  html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm71-hero-copy>h1{font-size:clamp(39px,11vw,57px)!important;line-height:1.34!important}
  html[lang="ur"] body#jm-site-root.jm-ui-v105 :is(.jm70-section-head h2,.jm72-mission h2,.jm71-pathfinder h2,.jm70-story h2,.jm77-campus-head h2){font-size:clamp(32px,9vw,46px)!important;line-height:1.42!important}
  html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm71-path-grid h3{font-size:24px!important}
  html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm71-path-grid>a{min-height:170px!important;padding:20px!important}
  html[lang="ur"] body#jm-site-root.jm-ui-v105 .jm70-shell{width:min(100% - 28px,1320px)!important}
}
