/* Jamia Mahmoodia Theme v80 — authoritative responsive rebuild
   Loaded last. Purpose: one mobile geometry for the complete public site. */

html,body{max-width:100%;}
body{overflow-x:hidden;}
*,*::before,*::after{box-sizing:border-box;}
img,video,iframe,svg{max-width:100%;}
input,select,textarea,button{max-width:100%;}

/* Language selector — desktop + mobile rebuild */
.jm-language-modal{
  position:fixed!important;z-index:10000!important;inset:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:24px!important;background:rgba(1,26,22,.76)!important;
  backdrop-filter:blur(15px) saturate(110%)!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transition:opacity .22s ease,visibility .22s ease!important;
}
.jm-language-modal.is-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
body.jm-language-open{overflow:hidden!important;touch-action:none;}
.jm-language-card{
  position:relative!important;width:min(720px,100%)!important;max-height:min(760px,calc(100dvh - 48px))!important;
  overflow:auto!important;margin:0!important;padding:30px!important;
  border:1px solid rgba(255,255,255,.68)!important;border-radius:28px!important;
  border-bottom:0!important;background:linear-gradient(180deg,#fffefa,#f8f5ee)!important;
  color:#133f35!important;text-align:center!important;
  box-shadow:0 38px 110px rgba(0,0,0,.30)!important;
}
.jm-language-close{
  position:absolute!important;top:16px!important;right:16px!important;width:42px!important;height:42px!important;
  display:grid!important;place-items:center!important;border:1px solid #dde7e2!important;border-radius:13px!important;
  background:#fff!important;color:#16483d!important;cursor:pointer!important;font-size:15px!important;
}
[dir="rtl"] .jm-language-close{right:auto!important;left:16px!important;}
.jm-language-brand{min-height:72px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;margin:0 auto 16px!important;}
.jm-language-brand img{width:60px!important;height:60px!important;object-fit:contain!important;}
.jm-language-brand img+img{width:90px!important;padding-left:10px!important;border-left:1px solid #e1e7e3!important;}
[dir="rtl"] .jm-language-brand img+img{padding-left:0!important;padding-right:10px!important;border-left:0!important;border-right:1px solid #e1e7e3!important;}
.jm-language-card .jm-language-kicker{display:block!important;margin-bottom:7px!important;color:#a87823!important;font:850 8px/1.2 Manrope,sans-serif!important;letter-spacing:.17em!important;text-transform:uppercase!important;}
.jm-language-card h2{margin:0!important;color:#103f35!important;font:650 clamp(34px,4vw,48px)/1.03 "Source Serif 4",serif!important;letter-spacing:-.035em!important;}
.jm-language-card>p{margin:10px 0 24px!important;color:#667d75!important;font:600 14px/1.65 "Noto Naskh Arabic",sans-serif!important;}
.jm-language-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;}
.jm-language-options button{
  position:relative!important;min-width:0!important;min-height:126px!important;padding:18px 15px!important;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:7px!important;
  border:1px solid #dbe5df!important;border-radius:19px!important;background:#fff!important;color:#16473c!important;
  text-align:left!important;cursor:pointer!important;box-shadow:0 8px 24px rgba(5,55,46,.045)!important;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease!important;
}
[dir="rtl"] .jm-language-options button{align-items:flex-end!important;text-align:right!important;}
.jm-language-options button:hover{transform:translateY(-2px)!important;border-color:#b9cfc6!important;background:#f7fbf8!important;box-shadow:0 14px 30px rgba(5,55,46,.08)!important;}
.jm-language-options button.is-current{border-color:#d7aa45!important;background:linear-gradient(145deg,#fff9e9,#fff)!important;box-shadow:inset 0 0 0 1px rgba(215,170,69,.16),0 14px 30px rgba(5,55,46,.07)!important;}
.jm-language-options button>i{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border-radius:12px!important;background:#edf5f1!important;color:#08705b!important;font-size:15px!important;}
.jm-language-options button.is-current>i{background:#f8ebca!important;color:#9f711c!important;}
.jm-language-options button b{font-size:16px!important;line-height:1.2!important;color:inherit!important;}
.jm-language-options button small{color:#758a82!important;font-size:10px!important;line-height:1.45!important;font-weight:650!important;}
.jm-language-options button .jm-language-check{position:absolute!important;top:12px!important;right:12px!important;width:22px!important;height:22px!important;display:none!important;place-items:center!important;border-radius:999px!important;background:#0b6955!important;color:#fff!important;font-size:9px!important;}
[dir="rtl"] .jm-language-options button .jm-language-check{right:auto!important;left:12px!important;}
.jm-language-options button.is-current .jm-language-check{display:grid!important;}

/* ===== Tablet / all pages ===== */
@media(max-width:1100px){
  .jm70-shell,.jm70-home .jm-container,.jm70-footer .jm-container{width:calc(100% - 40px)!important;max-width:100%!important;}
  .jm70-nav{display:none!important;}
  .jm70-menu-toggle{display:flex!important;}
  .jm70-brand{min-width:0!important;flex:1 1 auto!important;}
  .jm70-actions{margin-left:auto!important;flex:0 0 auto!important;}

  body:not(.jm-portal-workspace-page) .jm-standard-layout,
  body:not(.jm-portal-workspace-page) .jm-article-layout{grid-template-columns:minmax(0,1fr)!important;gap:28px!important;}
  body:not(.jm-portal-workspace-page) .jm-standard-aside{position:static!important;width:100%!important;}
}

/* ===== Phone authority ===== */
@media(max-width:700px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%;}
  body{min-width:0!important;}
  .admin-bar .jm70-header.is-scrolled{top:46px!important;}
  .jm70-topline{display:none!important;}
  .jm70-header{position:relative!important;width:100%!important;}
  .jm70-header.is-scrolled{position:sticky!important;top:0!important;}
  .jm70-shell,.jm70-home .jm-container,.jm70-footer .jm-container{width:calc(100% - 24px)!important;max-width:100%!important;margin-inline:auto!important;}
  .jm70-header-inner{width:calc(100% - 20px)!important;height:70px!important;gap:7px!important;}
  .jm70-brand{gap:8px!important;overflow:hidden!important;}
  .jm70-brand-seal{width:43px!important;height:43px!important;flex:0 0 43px!important;padding:4px!important;border-radius:13px!important;}
  .jm70-brand-copy{min-width:0!important;overflow:hidden!important;}
  .jm70-brand-copy strong{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:12px!important;letter-spacing:0!important;}
  .jm70-brand-copy>span{margin-top:4px!important;font-size:5.6px!important;letter-spacing:.10em!important;white-space:nowrap!important;}
  .jm70-brand-copy small,.jm70-brand-gulshan{display:none!important;}
  .jm70-search,.jm70-portal{display:none!important;}
  .jm70-actions{gap:5px!important;}
  .jm70-lang,.jm70-menu-toggle{height:40px!important;min-height:40px!important;border-radius:12px!important;}
  .jm70-lang{min-width:40px!important;padding:0 9px!important;justify-content:center!important;}
  .jm70-lang i{display:none!important;}
  .jm70-lang span{font-size:8.5px!important;}
  .jm70-menu-toggle{min-width:44px!important;width:44px!important;padding:0!important;justify-content:center!important;}
  .jm70-menu-toggle span{display:none!important;}
  .jm70-menu-toggle i{font-size:14px!important;}

  .jm70-drawer{width:min(390px,100vw)!important;height:100dvh!important;max-width:100vw!important;}
  .jm70-drawer-head{padding:11px 12px!important;}
  .jm70-drawer-brand>span{height:44px!important;}
  .jm70-drawer-brand img{width:34px!important;height:34px!important;}
  .jm70-drawer-brand img+img{width:49px!important;}
  .jm70-drawer-brand strong{font-size:14px!important;white-space:normal!important;}
  .jm70-drawer-callout{margin:10px 12px 8px!important;padding:10px!important;}
  .jm70-drawer-search{margin:0 12px 8px!important;}
  .jm70-mobile-nav{padding-inline:12px!important;overflow-y:auto!important;}
  .jm70-mobile-nav>a,.jm70-mobile-group>summary{min-height:58px!important;padding:8px!important;}
  .jm70-mobile-nav b{font-size:12px!important;}
  .jm70-mobile-nav small{font-size:8px!important;line-height:1.35!important;}
  .jm70-drawer-actions{margin:8px 12px!important;grid-template-columns:1fr 1fr!important;}
  .jm70-drawer-foot{padding-bottom:max(10px,env(safe-area-inset-bottom))!important;}

  /* Homepage hero: active slide participates in document flow. This removes all fixed-height conflicts. */
  .jm76-home.jm72-home .jm71-hero{height:auto!important;min-height:0!important;background:#063d32!important;overflow:hidden!important;}
  .jm76-home.jm72-home .jm71-slide{position:relative!important;inset:auto!important;display:none!important;height:auto!important;min-height:0!important;opacity:1!important;visibility:visible!important;}
  .jm76-home.jm72-home .jm71-slide.is-active{display:block!important;z-index:2!important;}
  .jm76-home.jm72-home .jm71-hero-media{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;aspect-ratio:16/10!important;border-radius:0!important;}
  .jm76-home.jm72-home .jm71-hero-media img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;transform:none!important;}
  .jm76-home.jm72-home .jm71-slide .jm71-hero-media:after,
  .jm76-home.jm72-home .jm71-slide.is-quran .jm71-hero-media:after,
  .jm76-home.jm72-home .jm71-slide.is-dars .jm71-hero-media:after,
  .jm76-home.jm72-home .jm71-slide.is-ifta .jm71-hero-media:after,
  .jm76-home.jm72-home .jm71-slide.is-research .jm71-hero-media:after,
  .jm76-home.jm72-home .jm71-slide.is-khanqah .jm71-hero-media:after{background:linear-gradient(0deg,#063d32 0%,rgba(6,61,50,.52) 28%,transparent 64%)!important;}
  .jm76-home.jm72-home .jm71-hero-overlay{display:none!important;}
  .jm76-home.jm72-home .jm71-hero-inner{position:relative!important;height:auto!important;display:block!important;width:calc(100% - 24px)!important;padding:24px 0 98px!important;margin-inline:auto!important;}
  .jm76-home.jm72-home .jm71-hero-copy{width:100%!important;max-width:100%!important;padding:0!important;}
  .jm76-home.jm72-home .jm71-brand-chip{display:none!important;}
  .jm76-home.jm72-home .jm71-eyebrow{margin:0 0 10px!important;font-size:7px!important;line-height:1.4!important;letter-spacing:.13em!important;}
  .jm76-home.jm72-home .jm71-hero-copy h1{max-width:100%!important;margin:0!important;font-size:clamp(39px,12.5vw,52px)!important;line-height:.96!important;letter-spacing:-.038em!important;text-wrap:balance!important;overflow-wrap:normal!important;word-break:normal!important;}
  .jm76-home.jm72-home .jm71-hero-lead{max-width:100%!important;margin:15px 0 0!important;font-size:13px!important;line-height:1.67!important;}
  .jm76-home.jm72-home .jm71-hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:18px!important;}
  .jm76-home.jm72-home .jm71-hero-actions .jm70-btn{width:100%!important;min-width:0!important;min-height:46px!important;padding:0 8px!important;justify-content:center!important;font-size:8px!important;text-align:center!important;}
  .jm76-home.jm72-home .jm71-hero-card{display:none!important;}
  .jm76-home.jm72-home .jm71-slider-console{position:absolute!important;left:12px!important;right:12px!important;bottom:12px!important;width:auto!important;transform:none!important;display:block!important;padding:6px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:15px!important;background:rgba(2,42,35,.72)!important;backdrop-filter:blur(14px)!important;}
  .jm76-home.jm72-home .jm71-slide-status,.jm76-home.jm72-home .jm71-slider-arrows{display:none!important;}
  .jm76-home.jm72-home .jm71-slide-tabs{display:flex!important;width:100%!important;max-width:100%!important;gap:5px!important;overflow-x:auto!important;overscroll-behavior-inline:contain!important;scroll-snap-type:x proximity!important;scrollbar-width:none!important;}
  .jm76-home.jm72-home .jm71-slide-tabs::-webkit-scrollbar{display:none!important;}
  .jm76-home.jm72-home .jm71-slide-tabs button{flex:0 0 96px!important;min-width:0!important;height:40px!important;grid-template-columns:24px minmax(0,1fr)!important;gap:5px!important;padding:0 6px!important;border-radius:10px!important;scroll-snap-align:center!important;}
  .jm76-home.jm72-home .jm71-slide-tabs .jm79-tab-icon{width:24px!important;height:24px!important;font-size:9px!important;border-radius:8px!important;}
  .jm76-home.jm72-home .jm71-slide-tabs .jm79-tab-copy>b{display:none!important;}
  .jm76-home.jm72-home .jm71-slide-tabs .jm79-tab-copy>span{font-size:6.8px!important;white-space:nowrap!important;}

  /* Homepage sections: all wide layouts become intentional single-column flows. */
  .jm76-home.jm72-home .jm70-command{padding:14px 0 28px!important;}
  .jm76-home.jm72-home .jm70-command-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;transform:none!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;}
  .jm76-home.jm72-home .jm70-command-grid>a{min-width:0!important;min-height:94px!important;padding:12px!important;border:1px solid #dfe8e3!important;border-radius:16px!important;background:#fff!important;}
  .jm76-home.jm72-home .jm70-command-grid>a:nth-child(n){border-right:1px solid #dfe8e3!important;border-bottom:1px solid #dfe8e3!important;}
  .jm76-home.jm72-home .jm70-command-grid b{font-size:12px!important;}
  .jm76-home.jm72-home .jm70-command-grid em{font-size:8px!important;line-height:1.35!important;}

  .jm72-home .jm71-pathfinder,.jm72-home .jm70-story,.jm72-home .jm72-mission,.jm72-home .jm70-identities,.jm72-home .jm70-academics,.jm72-home .jm70-scholarly,.jm72-home .jm70-campus,.jm72-home .jm70-legacy,.jm72-home .jm70-desk{padding-top:64px!important;padding-bottom:64px!important;}
  .jm72-home .jm71-pathfinder-grid,.jm72-home .jm70-story-grid,.jm72-home .jm72-mission-grid,.jm72-home .jm70-scholar-grid,.jm72-home .jm70-desk-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:22px!important;}
  .jm72-home .jm71-pathfinder h2,.jm72-home .jm70-section-head h2,.jm72-home .jm70-story h2,.jm72-home .jm72-mission h2,.jm72-home .jm70-final h2{font-size:clamp(34px,10vw,44px)!important;line-height:1.02!important;overflow-wrap:normal!important;word-break:normal!important;}
  .jm72-home .jm71-site-search{height:auto!important;min-height:56px!important;grid-template-columns:34px minmax(0,1fr)!important;padding:6px!important;}
  .jm72-home .jm71-site-search button{grid-column:1/-1!important;width:100%!important;height:44px!important;}
  .jm72-home .jm71-path-grid{grid-template-columns:1fr!important;gap:10px!important;}
  .jm72-home .jm71-path-grid>a{min-height:0!important;padding:18px!important;}
  .jm72-home .jm71-path-grid small{margin-top:14px!important;}
  .jm72-home .jm71-path-grid h3{font-size:25px!important;}

  .jm72-home .jm70-story-visual{min-height:360px!important;width:100%!important;overflow:hidden!important;}
  .jm72-home .jm70-story-main{position:relative!important;left:auto!important;right:auto!important;top:auto!important;width:100%!important;height:300px!important;border-radius:20px!important;}
  .jm72-home .jm70-founded{left:10px!important;bottom:10px!important;transform:none!important;}
  .jm72-home .jm70-story-seal{right:10px!important;bottom:10px!important;max-width:58%!important;}
  .jm72-home .jm70-principles{grid-template-columns:1fr 1fr!important;gap:8px!important;}
  .jm72-home .jm70-inline-actions{flex-wrap:wrap!important;}

  .jm72-home .jm72-mission-track{grid-template-columns:1fr!important;gap:8px!important;}
  .jm72-home .jm72-mission-track article{min-height:88px!important;}
  .jm72-home .jm70-section-head{display:grid!important;grid-template-columns:1fr!important;gap:13px!important;margin-bottom:24px!important;}
  .jm72-home .jm70-section-head>p,.jm72-home .jm70-section-head>a,.jm72-home .jm73-identity-note{justify-self:start!important;max-width:100%!important;}

  .jm72-home .jm70-identity-rail{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;overflow:visible!important;padding:0!important;}
  .jm72-home .jm70-identity-rail>a{width:100%!important;min-width:0!important;min-height:104px!important;padding:11px!important;grid-template-columns:44px minmax(0,1fr)!important;gap:9px!important;border-radius:15px!important;}
  .jm72-home .jm70-identity-rail>a>span{width:44px!important;height:44px!important;}
  .jm72-home .jm70-identity-rail b{font-size:11px!important;line-height:1.22!important;}
  .jm72-home .jm70-identity-rail small{font-size:8px!important;line-height:1.35!important;}

  .jm72-home .jm70-program-grid{grid-template-columns:1fr!important;gap:10px!important;}
  .jm72-home .jm70-program-card{min-height:0!important;padding:20px!important;border-radius:20px!important;}
  .jm72-home .jm70-program-logo{width:70px!important;height:70px!important;}
  .jm72-home .jm70-program-card h3{font-size:31px!important;}
  .jm72-home .jm70-unit-strip{grid-template-columns:1fr 1fr!important;gap:7px!important;}
  .jm72-home .jm70-unit-strip>a{grid-column:1/-1!important;}

  .jm72-home .jm70-scholar-card{padding:20px!important;border-radius:20px!important;}
  .jm72-home .jm70-scholar-top{align-items:center!important;}
  .jm72-home .jm70-scholar-top img{max-width:76px!important;max-height:76px!important;}
  .jm72-home .jm70-scholar-metrics{grid-template-columns:1fr 1fr!important;gap:7px!important;}
  .jm72-home .jm70-scholar-metrics>span:last-child{grid-column:1/-1!important;}

  .jm72-home .jm77-campus-head{grid-template-columns:1fr!important;gap:14px!important;}
  .jm72-home .jm77-gallery-link{justify-self:start!important;}
  .jm72-home .jm77-home-gallery{display:grid!important;grid-template-columns:1fr!important;height:auto!important;padding:6px!important;gap:6px!important;border-radius:18px!important;}
  .jm72-home .jm77-home-gallery>a,.jm72-home .jm77-home-gallery .is-main,.jm72-home .jm77-home-gallery .is-class,.jm72-home .jm77-home-gallery .is-library,.jm72-home .jm77-home-gallery .is-khanqah,.jm72-home .jm77-home-gallery .is-interior{grid-column:1!important;grid-row:auto!important;width:100%!important;height:auto!important;aspect-ratio:16/10!important;border-radius:14px!important;}
  .jm72-home .jm77-home-gallery .is-main{aspect-ratio:4/3!important;}
  .jm72-home .jm77-statline{grid-template-columns:1fr 1fr!important;margin:12px 0 0!important;}
  .jm72-home .jm77-statline>a{grid-column:1/-1!important;}

  .jm72-home .jm70-leader-grid{grid-template-columns:1fr!important;gap:10px!important;}
  .jm72-home .jm70-leader-grid article{grid-template-columns:108px minmax(0,1fr)!important;min-width:0!important;}
  .jm72-home .jm70-leader-grid article>div:last-child{min-width:0!important;padding:16px!important;}
  .jm72-home .jm70-leader-grid h3{font-size:22px!important;overflow-wrap:break-word!important;}

  .jm72-home .jm70-news,.jm72-home .jm70-admissions-card,.jm72-home .jm70-contact-card{width:100%!important;min-width:0!important;}
  .jm72-home .jm70-news article{grid-template-columns:48px minmax(0,1fr)!important;gap:10px!important;padding:14px!important;}
  .jm72-home .jm70-news h4{font-size:15px!important;}
  .jm72-home .jm70-final-inner{display:grid!important;grid-template-columns:1fr!important;gap:20px!important;}
  .jm72-home .jm70-final-copy{align-items:flex-start!important;}
  .jm72-home .jm70-final-copy>img{width:58px!important;height:58px!important;flex:0 0 58px!important;}
  .jm72-home .jm70-final-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;}

  /* Standard pages, archive, search, post content */
  body:not(.jm-portal-workspace-page) .jm-standard-hero,body:not(.jm-portal-workspace-page) .jm-page-hero{padding:54px 0 46px!important;}
  body:not(.jm-portal-workspace-page) .jm-standard-hero h1,body:not(.jm-portal-workspace-page) .jm-page-hero h1{font-size:clamp(38px,11vw,50px)!important;line-height:1!important;word-break:normal!important;overflow-wrap:break-word!important;}
  body:not(.jm-portal-workspace-page) .jm-standard-body,body:not(.jm-portal-workspace-page) .jm-core-section{padding:50px 0!important;}
  body:not(.jm-portal-workspace-page) .jm-standard-layout{display:block!important;}
  body:not(.jm-portal-workspace-page) .jm-standard-article{width:100%!important;min-width:0!important;}
  body:not(.jm-portal-workspace-page) .jm-standard-content{width:100%!important;min-width:0!important;padding:20px 16px!important;font-size:15px!important;line-height:1.8!important;overflow-wrap:break-word!important;}
  body:not(.jm-portal-workspace-page) .jm-standard-content :where(table,pre){display:block!important;max-width:100%!important;overflow-x:auto!important;}
  body:not(.jm-portal-workspace-page) .jm-standard-content img{height:auto!important;}
  body:not(.jm-portal-workspace-page) .jm-standard-aside{margin-top:18px!important;}

  /* Footer */
  .jm70-footer-cta>.jm70-shell{padding:30px 0!important;display:grid!important;grid-template-columns:1fr!important;gap:18px!important;}
  .jm70-footer-cta h2{font-size:31px!important;line-height:1.05!important;}
  .jm70-footer-cta>.jm70-shell>div:last-child{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:7px!important;}
  .jm70-footer-cta a{width:100%!important;justify-content:center!important;text-align:center!important;}
  .jm70-footer{padding-top:46px!important;}
  .jm70-footer-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:28px 18px!important;}
  .jm70-footer-brand,.jm70-footer-contact{grid-column:1/-1!important;}
  .jm70-footer-contact{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
  .jm70-footer-contact h3{grid-column:auto!important;}
  .jm70-footer-bottom{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;}
  .jm70-footer-bottom nav{display:flex!important;flex-wrap:wrap!important;gap:12px!important;}

  /* Language bottom sheet */
  .jm-language-modal{align-items:flex-end!important;padding:10px 0 0!important;}
  .jm-language-card{width:100%!important;max-height:calc(100dvh - 10px)!important;padding:22px 16px max(18px,env(safe-area-inset-bottom))!important;border-radius:24px 24px 0 0!important;text-align:left!important;}
  [dir="rtl"] .jm-language-card{text-align:right!important;}
  .jm-language-close{top:12px!important;right:12px!important;}
  [dir="rtl"] .jm-language-close{right:auto!important;left:12px!important;}
  .jm-language-brand{justify-content:flex-start!important;min-height:54px!important;margin:0 48px 12px 0!important;}
  [dir="rtl"] .jm-language-brand{justify-content:flex-end!important;margin:0 0 12px 48px!important;}
  .jm-language-brand img{width:46px!important;height:46px!important;}
  .jm-language-brand img+img{width:68px!important;}
  .jm-language-card h2{font-size:33px!important;}
  .jm-language-card>p{margin:7px 0 16px!important;font-size:13px!important;}
  .jm-language-options{grid-template-columns:1fr!important;gap:8px!important;}
  .jm-language-options button{min-height:74px!important;padding:12px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:11px!important;row-gap:2px!important;align-items:center!important;}
  .jm-language-options button>i{grid-row:1/3!important;}
  .jm-language-options button b{font-size:15px!important;}
  .jm-language-options button small{font-size:9px!important;}
}

@media(max-width:430px){
  .jm70-shell,.jm70-home .jm-container,.jm70-footer .jm-container{width:calc(100% - 20px)!important;}
  .jm70-header-inner{width:calc(100% - 16px)!important;}
  .jm70-brand-copy>span{display:none!important;}
  .jm76-home.jm72-home .jm71-hero-media{aspect-ratio:4/3!important;}
  .jm76-home.jm72-home .jm71-hero-inner{width:calc(100% - 20px)!important;padding-bottom:96px!important;}
  .jm76-home.jm72-home .jm71-hero-actions{grid-template-columns:1fr!important;}
  .jm76-home.jm72-home .jm71-slide-tabs button{flex-basis:90px!important;}
  .jm76-home.jm72-home .jm70-command-grid{grid-template-columns:1fr!important;}
  .jm72-home .jm70-identity-rail{grid-template-columns:1fr!important;}
  .jm72-home .jm70-unit-strip{grid-template-columns:1fr!important;}
  .jm72-home .jm70-unit-strip>a{grid-column:1!important;}
  .jm72-home .jm70-principles{grid-template-columns:1fr!important;}
  .jm72-home .jm70-scholar-metrics{grid-template-columns:1fr!important;}
  .jm72-home .jm70-scholar-metrics>span:last-child{grid-column:auto!important;}
  .jm72-home .jm77-statline{grid-template-columns:1fr!important;}
  .jm72-home .jm77-statline>a{grid-column:1!important;}
  .jm72-home .jm70-leader-grid article{grid-template-columns:92px minmax(0,1fr)!important;}
  .jm72-home .jm70-final-actions{grid-template-columns:1fr!important;}
  .jm70-footer-grid{grid-template-columns:1fr!important;}
  .jm70-footer-brand,.jm70-footer-contact{grid-column:1!important;}
}

/* RTL mobile fixes */
@media(max-width:700px){
  html[dir="rtl"] body:not(.jm-portal-workspace-page) :where(.jm70-home,[data-jm-premium-page],.jm-standard-page){text-align:right;}
  html[dir="rtl"] .jm70-menu-toggle,html[dir="rtl"] .jm70-lang{direction:ltr;}
  html[dir="rtl"] .jm76-home.jm72-home .jm71-hero-actions .jm70-btn{direction:rtl;}
  html[dir="rtl"] .jm70-mobile-nav>a>i:last-child{transform:scaleX(-1);}
}

@media(prefers-reduced-motion:reduce){
  .jm-language-modal,.jm-language-options button{transition:none!important;}
}

/* Page-specific narrow-screen finishing */
@media(max-width:700px){
  body:not(.jm-portal-workspace-page) .jm77-gallery-nav{position:relative!important;top:auto!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain!important;scrollbar-width:none!important;}
  body:not(.jm-portal-workspace-page) .jm77-gallery-nav::-webkit-scrollbar{display:none!important;}
  body:not(.jm-portal-workspace-page) .jm77-gallery-nav .jm76-gallery-shell{width:max-content!important;min-width:100%!important;max-width:none!important;padding-inline:12px!important;}
  body:not(.jm-portal-workspace-page) .jm77-facilities-tags{display:flex!important;flex-wrap:wrap!important;gap:7px!important;}
  body:not(.jm-portal-workspace-page) .jm77-gallery-meta{display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
  body:not(.jm-portal-workspace-page) .jm77-gallery-meta>a{width:100%!important;justify-content:space-between!important;}
  body:not(.jm-portal-workspace-page) .jm-breadcrumbs{max-width:100%!important;overflow-x:auto!important;white-space:nowrap!important;scrollbar-width:none!important;}
  body:not(.jm-portal-workspace-page) .jm-breadcrumbs::-webkit-scrollbar{display:none!important;}
  body:not(.jm-portal-workspace-page) :where(.jm-standard-content,.jm-core-prose) iframe{width:100%!important;}
  body:not(.jm-portal-workspace-page) :where(.jm-standard-content,.jm-core-prose) :where(input,select,textarea){width:100%!important;font-size:16px!important;}
}
