/* Jamia Mahmoodia Theme v83 — final site authority.
   Loaded at priority 10000 after all legacy theme/core CSS.
   Goal: stable geometry on 320–430px phones, laptops, desktop and ultra-wide screens. */

:root{
  --jm82-green:#0b5f4e;
  --jm82-deep:#063d33;
  --jm82-deeper:#032d26;
  --jm82-gold:#d8aa50;
  --jm82-paper:#fffefa;
  --jm82-warm:#f6f2e8;
  --jm82-ink:#143f35;
  --jm82-muted:#667b73;
  --jm82-line:rgba(8,74,60,.12);
  --jm82-shadow:0 18px 50px rgba(4,48,40,.08);
}
html,body{max-width:100%!important;overflow-x:hidden!important}
*,*::before,*::after{box-sizing:border-box}
img,video,iframe,svg{max-width:100%}

/* Final desktop shell. The older site was too narrow on 2K/4K monitors. */
@media(min-width:901px){
  #jm-site-root:not(.jm-portal-workspace-page) :where(.jm70-shell,.jm-container,.jm76-gallery-shell){width:min(1760px,calc(100% - clamp(56px,6vw,112px)))!important;max-width:none!important;margin-inline:auto!important}
  #jm-site-root:not(.jm-portal-workspace-page) .jm-core-wrap{width:min(1720px,calc(100% - clamp(56px,6vw,112px)))!important;max-width:none!important;margin-inline:auto!important}

  .jm70-header-inner{height:92px!important}
  .jm70-brand{min-width:280px!important}
  .jm70-brand-copy strong{font-size:15px!important}
  .jm70-brand-copy small{font-size:8.5px!important}
  .jm70-nav>a,.jm70-nav-trigger{font-size:10.5px!important;padding-inline:12px!important}

  /* Homepage: less dead space, stronger scale, cleaner desktop composition. */
  .jm76-home.jm72-home .jm71-hero{height:clamp(650px,70vh,790px)!important;min-height:650px!important}
  .jm76-home.jm72-home .jm71-hero-inner{grid-template-columns:minmax(0,900px) 340px!important;gap:clamp(54px,6vw,96px)!important;padding-bottom:104px!important}
  .jm76-home.jm72-home .jm71-hero-copy h1{font-size:clamp(64px,5vw,90px)!important;line-height:.92!important;max-width:860px!important}
  .jm76-home.jm72-home .jm71-hero-lead{font-size:15px!important;line-height:1.78!important;max-width:700px!important}
  .jm76-home.jm72-home .jm71-hero-card{max-width:340px!important}
  .jm76-home.jm72-home :where(.jm71-pathfinder,.jm70-story,.jm72-mission,.jm70-identities,.jm70-academics,.jm70-scholarly,.jm70-campus,.jm70-legacy,.jm70-desk){padding-top:88px!important;padding-bottom:88px!important}

  /* Core managed pages: guarantee readable contrast even if a legacy stylesheet wins earlier. */
  #jm-site-root:not(.jm-portal-workspace-page) .jm66-departments-hero h1{color:#143f35!important;text-shadow:none!important}
  #jm-site-root:not(.jm-portal-workspace-page) .jm66-departments-hero-grid>div>p{color:#60746d!important}
  #jm-site-root:not(.jm-portal-workspace-page) .jm66-departments-hero{height:auto!important;min-height:0!important;padding:92px 0 84px!important;background:radial-gradient(circle at 86% 8%,rgba(216,170,80,.18),transparent 28%),linear-gradient(145deg,#fffdfa,#f3efe5)!important}
}

@media(min-width:2000px){
  #jm-site-root:not(.jm-portal-workspace-page) :where(.jm70-shell,.jm-container,.jm76-gallery-shell){width:min(2180px,calc(100% - 140px))!important}
  #jm-site-root:not(.jm-portal-workspace-page) .jm-core-wrap{width:min(2120px,calc(100% - 140px))!important}
  .jm70-header-inner{height:100px!important}
  .jm70-brand{min-width:330px!important}
  .jm70-brand-copy strong{font-size:17px!important}
  .jm70-nav>a,.jm70-nav-trigger{font-size:12px!important;padding-inline:15px!important}
}

/* ===== MOBILE HEADER / DRAWER ===== */
@media(max-width:900px){
  .jm70-topline{display:none!important}
  .jm70-header{position:relative!important;top:auto!important;width:100%!important;background:#fffefa!important}
  .jm70-header.is-scrolled{position:sticky!important;top:0!important;z-index:9990!important}
  .admin-bar .jm70-header.is-scrolled{top:46px!important}
  .jm70-header-inner{width:calc(100% - 22px)!important;max-width:100%!important;height:72px!important;margin-inline:auto!important;padding:0!important;gap:7px!important}
  .jm70-nav{display:none!important}
  .jm70-brand{display:flex!important;align-items:center!important;flex:1 1 auto!important;min-width:0!important;max-width:calc(100% - 94px)!important;gap:8px!important}
  .jm70-brand-seal{width:44px!important;height:44px!important;flex:0 0 44px!important;padding:4px!important;border-radius:12px!important}
  .jm70-brand-copy{display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
  .jm70-brand-copy strong{display:block!important;max-width:100%!important;font-size:12.5px!important;line-height:1.15!important;letter-spacing:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .jm70-brand-copy>span{display:block!important;margin-top:3px!important;font-size:6px!important;line-height:1.15!important;letter-spacing:.08em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .jm70-brand-copy small,.jm70-brand-gulshan{display:none!important}
  .jm70-actions{display:flex!important;align-items:center!important;gap:5px!important;flex:0 0 auto!important;margin-left:auto!important}
  .jm70-search,.jm70-portal{display:none!important}
  .jm70-lang,.jm70-menu-toggle{display:flex!important;align-items:center!important;justify-content:center!important;height:40px!important;min-height:40px!important;border-radius:11px!important}
  .jm70-lang{min-width:40px!important;width:40px!important;padding:0!important}
  .jm70-lang i{display:none!important}
  .jm70-lang span{font-size:8px!important}
  .jm70-menu-toggle{min-width:44px!important;width:44px!important;padding:0!important}
  .jm70-menu-toggle span{display:none!important}
  .jm70-menu-toggle i{font-size:14px!important}

  .jm70-drawer{position:fixed!important;top:0!important;right:0!important;width:min(390px,100vw)!important;max-width:100vw!important;height:100dvh!important;overflow:hidden!important;border-radius:0!important}
  .jm70-drawer-inner{height:100%!important;display:flex!important;flex-direction:column!important;min-height:0!important}
  .jm70-drawer-head{flex:0 0 auto!important;padding:11px 12px!important}
  .jm70-drawer-callout,.jm70-drawer-search{flex:0 0 auto!important;margin-inline:12px!important}
  .jm70-mobile-nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;padding:4px 12px 16px!important}
  .jm70-mobile-nav>a,.jm70-mobile-group>summary{min-height:58px!important;padding:8px 9px!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{flex:0 0 auto!important;margin:8px 12px!important;grid-template-columns:1fr 1fr!important}
  .jm70-drawer-foot{flex:0 0 auto!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
}

/* ===== HOMEPAGE MOBILE: simple, reliable flow — no fixed height, no absolute text geometry. ===== */
@media(max-width:767px){
  .jm70-shell,.jm70-home .jm-container,.jm70-footer .jm-container{width:calc(100% - 26px)!important;max-width:100%!important;margin-inline:auto!important}
  .jm76-home.jm72-home .jm71-hero{height:auto!important;min-height:0!important;overflow:hidden!important;background:#063d33!important}
  .jm76-home.jm72-home .jm71-slide{position:relative!important;inset:auto!important;display:none!important;width:100%!important;height:auto!important;min-height:0!important;opacity:1!important;visibility:visible!important;transform:none!important}
  .jm76-home.jm72-home .jm71-slide.is-active{display:block!important}
  .jm76-home.jm72-home .jm71-hero-media{position:relative!important;inset:auto!important;width:100%!important;height:235px!important;min-height:0!important;aspect-ratio:auto!important;overflow:hidden!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;object-position:center!important;transform:none!important}
  .jm76-home.jm72-home .jm71-hero-overlay{display:none!important}
  .jm76-home.jm72-home .jm71-hero-inner{position:relative!important;inset:auto!important;display:block!important;width:100%!important;max-width:none!important;padding:24px 14px 28px!important;background:linear-gradient(180deg,#073f35,#04342b)!important}
  .jm76-home.jm72-home .jm71-hero-copy{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
  .jm76-home.jm72-home .jm71-brand-chip{display:flex!important;align-items:center!important;width:max-content!important;max-width:100%!important;margin:0 0 16px!important;padding:5px 8px 5px 5px!important;border-radius:13px!important}
  .jm76-home.jm72-home .jm71-brand-logos{flex:0 0 auto!important}
  .jm76-home.jm72-home .jm71-brand-chip>span:last-child{min-width:0!important}
  .jm76-home.jm72-home .jm71-brand-chip b,.jm76-home.jm72-home .jm71-brand-chip small{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .jm76-home.jm72-home .jm71-eyebrow{margin:0 0 10px!important;font-size:7px!important;letter-spacing:.12em!important}
  .jm76-home.jm72-home .jm71-hero-copy h1{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;font-size:clamp(38px,11.5vw,48px)!important;line-height:.98!important;letter-spacing:-.04em!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
  .jm76-home.jm72-home .jm71-hero-copy h1 br{display:none!important}
  .jm76-home.jm72-home .jm71-hero-lead{display:block!important;width:100%!important;max-width:100%!important;margin:16px 0 0!important;font-size:14px!important;line-height:1.72!important;color:#dbe7e2!important;white-space:normal!important;word-break:normal!important}
  .jm76-home.jm72-home .jm71-hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;margin-top:20px!important}
  .jm76-home.jm72-home .jm71-hero-actions .jm70-btn{width:100%!important;min-height:49px!important;justify-content:center!important;font-size:10px!important}
  .jm76-home.jm72-home .jm71-hero-card{display:none!important}
  .jm76-home.jm72-home .jm71-slider-console{position:relative!important;inset:auto!important;bottom:auto!important;left:auto!important;right:auto!important;transform:none!important;width:100%!important;max-width:100%!important;margin:0!important;padding:8px 12px 12px!important;border:0!important;border-radius:0!important;background:#04342b!important;box-shadow:none!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;overflow-x:auto!important;gap:6px!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 104px!important;height:43px!important;min-width:104px!important;padding:6px 8px!important;border-radius:10px!important}
  .jm76-home.jm72-home .jm70-command-grid{transform:none!important;margin-top:0!important;grid-template-columns:1fr!important}
  .jm76-home.jm72-home .jm70-command-grid>a{min-height:78px!important;padding:14px!important}

  .jm76-home.jm72-home :where(.jm71-pathfinder,.jm70-story,.jm72-mission,.jm70-identities,.jm70-academics,.jm70-scholarly,.jm70-campus,.jm70-legacy,.jm70-desk){padding-top:62px!important;padding-bottom:62px!important}
  .jm76-home.jm72-home :where(.jm71-pathfinder-grid,.jm70-story-grid,.jm72-mission-grid,.jm70-scholar-grid,.jm70-desk-grid,.jm70-leader-grid){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
  .jm76-home.jm72-home :where(.jm70-section-head,.jm70-campus-head){display:block!important;margin-bottom:24px!important}
  .jm76-home.jm72-home :where(.jm70-section-head h2,.jm70-campus-head h2,.jm71-pathfinder h2,.jm70-story-copy h2,.jm72-mission-copy h2){font-size:clamp(32px,9vw,40px)!important;line-height:1.05!important;max-width:100%!important}
  .jm76-home.jm72-home :where(.jm70-section-head>p,.jm70-campus-head>p,.jm71-pathfinder-copy>p,.jm70-story-lead,.jm72-mission-copy>p){font-size:14px!important;line-height:1.72!important;max-width:100%!important}
  .jm76-home.jm72-home .jm71-path-grid{grid-template-columns:1fr!important;gap:10px!important}
  .jm76-home.jm72-home .jm71-path-grid>a{min-height:0!important;padding:20px!important}
  .jm76-home.jm72-home .jm70-story-visual{min-height:0!important}
  .jm76-home.jm72-home .jm70-story-main{height:auto!important}
  .jm76-home.jm72-home .jm70-story-main img{height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important}
  .jm76-home.jm72-home .jm70-identity-rail{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;overflow:visible!important}
  .jm76-home.jm72-home .jm70-identity-rail>a{width:100%!important;min-width:0!important;min-height:84px!important}
  .jm76-home.jm72-home .jm70-program-grid{grid-template-columns:1fr!important}
  .jm76-home.jm72-home .jm77-home-gallery{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:none!important;height:auto!important;gap:8px!important}
  .jm76-home.jm72-home .jm77-home-gallery>a{grid-column:1!important;grid-row:auto!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important}
  .jm76-home.jm72-home .jm77-statline{display:grid!important;grid-template-columns:1fr 1fr!important}
  .jm76-home.jm72-home .jm77-statline>a{grid-column:1/-1!important}
}

/* Core public pages — emergency final reset for the exact failures shown in screenshots. */
@media(max-width:767px){
  #jm-site-root:not(.jm-portal-workspace-page) [data-jm-premium-page] .jm-core-wrap{width:calc(100% - 28px)!important;max-width:100%!important;margin-inline:auto!important;padding-inline:0!important}
  #jm-site-root:not(.jm-portal-workspace-page) :where(.jm66-about-hero-grid,.jm66-departments-hero-grid,.jm66-admissions-hero-grid,.jm66-ifta-hero-grid,.jm66-research-hero-grid,.jm66-khanqah-hero-grid){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:22px!important;width:100%!important;max-width:100%!important;padding:0!important}
  #jm-site-root:not(.jm-portal-workspace-page) :where(.jm66-about-hero-grid,.jm66-departments-hero-grid,.jm66-admissions-hero-grid,.jm66-ifta-hero-grid,.jm66-research-hero-grid,.jm66-khanqah-hero-grid)>*{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;flex:0 0 auto!important}
  #jm-site-root:not(.jm-portal-workspace-page) :where(.jm66-about-hero-copy,.jm66-departments-hero-grid>div,.jm66-admissions-hero-grid>div,.jm66-ifta-copy,.jm66-research-hero-grid>div,.jm66-khanqah-hero-grid>div){display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
  #jm-site-root:not(.jm-portal-workspace-page) :where(.jm66-about-hero h1,.jm66-departments-hero h1,.jm66-admissions-hero h1,.jm66-ifta-copy h1,.jm66-research-hero h1,.jm66-khanqah-hero h1){display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;font-size:clamp(35px,10.7vw,43px)!important;line-height:1.06!important;letter-spacing:-.03em!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;writing-mode:horizontal-tb!important}
  #jm-site-root:not(.jm-portal-workspace-page) :where(.jm66-about-hero-copy>p,.jm66-departments-hero-grid>div>p,.jm66-admissions-hero-grid>div>p,.jm66-ifta-copy>p,.jm66-research-hero-grid>div>p,.jm66-khanqah-hero-grid>div>p){display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;font-size:15px!important;line-height:1.72!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;writing-mode:horizontal-tb!important;columns:auto!important}
  #jm-site-root:not(.jm-portal-workspace-page) .jm66-about-hero-bg{z-index:0!important}
  #jm-site-root:not(.jm-portal-workspace-page) .jm66-about-hero-shade{z-index:1!important}
  #jm-site-root:not(.jm-portal-workspace-page) .jm66-about-hero-grid{position:relative!important;z-index:3!important}
  #jm-site-root:not(.jm-portal-workspace-page) .jm66-departments-hero h1{color:#143f35!important;text-shadow:none!important}
}

/* Language selector — one geometry on both desktop/mobile. */
.jm-language-modal{position:fixed!important;inset:0!important;z-index:10050!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;background:rgba(2,27,23,.78)!important;backdrop-filter:blur(14px)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.jm-language-modal.is-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
.jm-language-card{position:relative!important;width:min(700px,100%)!important;max-height:calc(100dvh - 48px)!important;overflow:auto!important;padding:30px!important;border:1px solid rgba(255,255,255,.5)!important;border-radius:26px!important;background:linear-gradient(180deg,#fffefa,#f7f3e9)!important;box-shadow:0 35px 100px rgba(0,0,0,.3)!important;text-align:center!important}
.jm-language-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.jm-language-options button{min-width:0!important;min-height:116px!important;padding:17px!important;border-radius:17px!important}
@media(max-width:600px){
  .jm-language-modal{align-items:flex-end!important;padding:0!important}
  .jm-language-card{width:100%!important;max-height:min(88dvh,760px)!important;margin:0!important;padding:22px 16px max(18px,env(safe-area-inset-bottom))!important;border-radius:24px 24px 0 0!important}
  .jm-language-card h2{font-size:32px!important}
  .jm-language-card>p{font-size:15px!important;margin-bottom:17px!important}
  .jm-language-brand{min-height:58px!important;margin-bottom:10px!important}
  .jm-language-brand img{width:48px!important;height:48px!important}
  .jm-language-brand img+img{width:70px!important}
  .jm-language-options{grid-template-columns:1fr!important;gap:8px!important}
  .jm-language-options button{min-height:72px!important;display:grid!important;grid-template-columns:40px minmax(0,1fr) 22px!important;align-items:center!important;gap:10px!important;text-align:left!important}
  .jm-language-options button>i:first-child{margin:0!important}
  .jm-language-options button b,.jm-language-options button small{grid-column:2!important}
  .jm-language-options button b{grid-row:1!important;align-self:end!important}
  .jm-language-options button small{grid-row:2!important;align-self:start!important}
  .jm-language-options button .jm-language-check{position:static!important;grid-column:3!important;grid-row:1/3!important}
}

/* Standard WP pages/footer on phones. */
@media(max-width:767px){
  #jm-site-root:not(.jm-portal-workspace-page) :where(.jm-standard-layout,.jm-article-layout){display:grid!important;grid-template-columns:1fr!important;gap:16px!important}
  #jm-site-root:not(.jm-portal-workspace-page) .jm-standard-content{padding:20px!important;font-size:15px!important;line-height:1.8!important}
  #jm-site-root:not(.jm-portal-workspace-page) .jm-standard-content p{font-size:15px!important;line-height:1.8!important}
  .jm70-footer-grid{display:grid!important;grid-template-columns:1fr!important;gap:26px!important}
  .jm70-footer-bottom{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;padding-block:18px!important}
}

/* RTL precision */
html[dir="rtl"] #jm-site-root:not(.jm-portal-workspace-page){text-align:right}
html[dir="rtl"] .jm70-actions{margin-left:0!important;margin-right:auto!important}
html[dir="rtl"] .jm-language-options button{text-align:right!important}

/* ===== v83 hard cascade lock for shared theme chrome/homepage ===== */
@media(min-width:901px){
  #jm-site-root :is(.jm70-shell,.jm-container,.jm76-gallery-shell){width:min(1800px,calc(100% - clamp(56px,6vw,112px)))!important;max-width:none!important;margin-inline:auto!important}
  #jm-site-root .jm70-header-inner{height:94px!important}
  #jm-site-root .jm70-brand{min-width:300px!important}
  #jm-site-root .jm70-brand-copy strong{font-size:15.5px!important}
  #jm-site-root .jm70-nav>a,#jm-site-root .jm70-nav-trigger{font-size:11px!important;padding-inline:12px!important}
}
@media(min-width:2000px){
  #jm-site-root :is(.jm70-shell,.jm-container,.jm76-gallery-shell){width:min(2580px,calc(100% - 200px))!important;max-width:none!important}
  #jm-site-root .jm70-header-inner{height:110px!important}
  #jm-site-root .jm70-brand{min-width:380px!important}
  #jm-site-root .jm70-brand-seal{width:62px!important;height:62px!important}
  #jm-site-root .jm70-brand-copy strong{font-size:19px!important}
  #jm-site-root .jm70-brand-copy>span{font-size:10px!important}
  #jm-site-root .jm70-brand-copy small{font-size:9px!important}
  #jm-site-root .jm70-nav>a,#jm-site-root .jm70-nav-trigger{font-size:13px!important;padding-inline:17px!important}
  #jm-site-root .jm70-lang,#jm-site-root .jm70-menu-toggle{min-height:46px!important}
}

@media(max-width:900px){
  #jm-site-root .jm70-topline{display:none!important}
  #jm-site-root .jm70-header{position:relative!important;top:auto!important;width:100%!important;background:#fffefa!important;z-index:9990!important}
  #jm-site-root .jm70-header-inner{display:flex!important;width:calc(100% - 22px)!important;max-width:100%!important;height:72px!important;margin-inline:auto!important;padding:0!important;gap:7px!important}
  #jm-site-root .jm70-nav{display:none!important}
  #jm-site-root .jm70-brand{display:flex!important;flex:1 1 auto!important;min-width:0!important;max-width:calc(100% - 94px)!important}
  #jm-site-root .jm70-brand-seal{width:44px!important;height:44px!important;flex:0 0 44px!important}
  #jm-site-root .jm70-brand-copy{display:block!important;min-width:0!important;overflow:hidden!important}
  #jm-site-root .jm70-brand-copy strong{font-size:12.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #jm-site-root .jm70-brand-copy>span{font-size:6px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #jm-site-root .jm70-brand-copy small,#jm-site-root .jm70-brand-gulshan{display:none!important}
  #jm-site-root .jm70-actions{display:flex!important;align-items:center!important;gap:5px!important;flex:0 0 auto!important;margin-left:auto!important}
  #jm-site-root .jm70-search,#jm-site-root .jm70-portal{display:none!important}
  #jm-site-root .jm70-lang,#jm-site-root .jm70-menu-toggle{display:flex!important;align-items:center!important;justify-content:center!important;height:40px!important;min-height:40px!important;border-radius:11px!important}
  #jm-site-root .jm70-lang{width:40px!important;min-width:40px!important;padding:0!important}
  #jm-site-root .jm70-menu-toggle{width:44px!important;min-width:44px!important;padding:0!important}
  #jm-site-root .jm70-menu-toggle span{display:none!important}
}

@media(max-width:767px){
  #jm-site-root :is(.jm70-shell,.jm70-home .jm-container,.jm70-footer .jm-container){width:calc(100% - 26px)!important;max-width:100%!important;margin-inline:auto!important}
  #jm-site-root .jm76-home.jm72-home .jm71-hero{height:auto!important;min-height:0!important;overflow:hidden!important}
  #jm-site-root .jm76-home.jm72-home .jm71-slide{position:relative!important;inset:auto!important;display:none!important;width:100%!important;height:auto!important;min-height:0!important;opacity:1!important;visibility:visible!important;transform:none!important}
  #jm-site-root .jm76-home.jm72-home .jm71-slide.is-active{display:block!important}
  #jm-site-root .jm76-home.jm72-home .jm71-hero-media{position:relative!important;inset:auto!important;width:100%!important;height:235px!important;min-height:0!important}
  #jm-site-root .jm76-home.jm72-home .jm71-hero-media img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;transform:none!important}
  #jm-site-root .jm76-home.jm72-home .jm71-hero-inner{position:relative!important;inset:auto!important;display:block!important;width:100%!important;max-width:none!important;padding:24px 14px 28px!important}
  #jm-site-root .jm76-home.jm72-home .jm71-hero-copy{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
  #jm-site-root .jm76-home.jm72-home .jm71-hero-copy h1{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;font-size:clamp(38px,11.5vw,48px)!important;line-height:1!important;letter-spacing:-.038em!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
  #jm-site-root .jm76-home.jm72-home .jm71-hero-copy h1 br{display:none!important}
  #jm-site-root .jm76-home.jm72-home .jm71-hero-lead{display:block!important;width:100%!important;max-width:100%!important;margin:16px 0 0!important;font-size:14px!important;line-height:1.72!important;white-space:normal!important;word-break:normal!important}
  #jm-site-root .jm76-home.jm72-home .jm71-hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important}
  #jm-site-root .jm76-home.jm72-home .jm71-hero-actions .jm70-btn{width:100%!important;min-height:49px!important;justify-content:center!important}
  #jm-site-root .jm76-home.jm72-home .jm71-hero-card{display:none!important}
  #jm-site-root .jm76-home.jm72-home .jm71-slider-console{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:100%!important;margin:0!important;border-radius:0!important}

  #jm-site-root .jm76-home.jm72-home :is(.jm71-pathfinder-grid,.jm70-story-grid,.jm72-mission-grid,.jm70-scholar-grid,.jm70-desk-grid,.jm70-leader-grid,.jm70-program-grid,.jm71-path-grid,.jm70-identity-rail){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important}
  #jm-site-root .jm76-home.jm72-home :is(.jm70-section-head,.jm70-campus-head){display:block!important}
  #jm-site-root .jm76-home.jm72-home .jm77-home-gallery{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:none!important;height:auto!important;gap:8px!important}
  #jm-site-root .jm76-home.jm72-home .jm77-home-gallery>a{grid-column:1!important;grid-row:auto!important;width:100%!important;height:auto!important;aspect-ratio:4/3!important}
  #jm-site-root .jm76-home.jm72-home :is(.jm71-pathfinder,.jm70-story,.jm72-mission,.jm70-identities,.jm70-academics,.jm70-scholarly,.jm70-campus,.jm70-legacy,.jm70-desk){padding-top:58px!important;padding-bottom:58px!important}
  #jm-site-root .jm76-home.jm72-home :is(.jm70-section-head h2,.jm70-campus-head h2,.jm71-pathfinder h2,.jm70-story-copy h2,.jm72-mission-copy h2){font-size:clamp(31px,9vw,40px)!important;line-height:1.06!important;max-width:100%!important}
  #jm-site-root .jm76-home.jm72-home :is(.jm70-section-head>p,.jm70-campus-head>p,.jm71-pathfinder-copy>p,.jm70-story-lead,.jm72-mission-copy>p){font-size:14px!important;line-height:1.72!important;max-width:100%!important}

  #jm-site-root .jm-standard-layout,#jm-site-root .jm-article-layout{display:grid!important;grid-template-columns:1fr!important;gap:16px!important}
  #jm-site-root .jm-standard-content{width:100%!important;max-width:100%!important;padding:20px!important}
  #jm-site-root .jm70-footer-grid{display:grid!important;grid-template-columns:1fr!important;gap:26px!important}
}

/* Homepage active slide must stay readable even before/without animation JS. */
#jm-site-root .jm76-home.jm72-home .jm71-slide.is-active :is(.jm71-hero-copy h1,.jm71-hero-lead,.jm71-hero-actions,.jm71-eyebrow,.jm71-brand-chip){opacity:1!important;transform:none!important;visibility:visible!important}
#jm-site-root .jm76-home.jm72-home .jm71-slide.is-active .jm71-hero-copy h1{color:#fff!important}
#jm-site-root .jm76-home.jm72-home .jm71-slide.is-active .jm71-hero-copy h1 span{color:#e8b84d!important}
#jm-site-root .jm76-home.jm72-home .jm71-slide.is-active .jm71-hero-lead{color:#dbe7e2!important}
#jm-site-root .jm76-home.jm72-home .jm70-campus-head h2{color:#143f35!important}
#jm-site-root .jm76-home.jm72-home .jm70-campus-head>p,
#jm-site-root .jm76-home.jm72-home .jm77-campus-deck{color:#60746d!important}

/* Language selector: root-ID lock prevents desktop/mobile legacy rules from distorting it. */
#jm-site-root .jm-language-modal{position:fixed!important;inset:0!important;z-index:10050!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;background:rgba(2,27,23,.80)!important;backdrop-filter:blur(14px)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important}
#jm-site-root .jm-language-modal.is-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
#jm-site-root .jm-language-card{position:relative!important;width:min(700px,calc(100vw - 48px))!important;max-height:calc(100dvh - 48px)!important;overflow:auto!important;margin:0!important;padding:30px!important;border:1px solid rgba(255,255,255,.52)!important;border-radius:26px!important;background:linear-gradient(180deg,#fffefa,#f7f3e9)!important;box-shadow:0 35px 100px rgba(0,0,0,.30)!important;text-align:left!important}
#jm-site-root .jm-language-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;width:100%!important}
#jm-site-root .jm-language-options button{width:100%!important;min-width:0!important;min-height:116px!important;padding:17px!important;border-radius:17px!important}
@media(max-width:600px){
  #jm-site-root .jm-language-modal{align-items:flex-end!important;justify-content:center!important;padding:0!important}
  #jm-site-root .jm-language-card{width:100%!important;max-width:100%!important;max-height:min(88dvh,760px)!important;margin:0!important;padding:22px 16px max(18px,env(safe-area-inset-bottom))!important;border-radius:24px 24px 0 0!important;text-align:left!important}
  #jm-site-root .jm-language-card h2{font-size:32px!important;line-height:1.05!important}
  #jm-site-root .jm-language-card>p{font-size:15px!important;line-height:1.65!important;margin:8px 0 17px!important}
  #jm-site-root .jm-language-options{grid-template-columns:1fr!important;gap:8px!important}
  #jm-site-root .jm-language-options button{min-height:72px!important;display:grid!important;grid-template-columns:40px minmax(0,1fr) 22px!important;align-items:center!important;gap:10px!important;text-align:left!important}
}
html[dir="rtl"] #jm-site-root .jm-language-card,
html[dir="rtl"] #jm-site-root .jm-language-options button{text-align:right!important}
