/* ==========================================================================
   Jamia Mahmoodia Core v62 — Desktop authority for all public/portal pages
   Runs after v61 responsive layer. Desktop-only to preserve mobile rebuild.
   ========================================================================== */

@media (min-width:901px){
  :root{
    --jm62-deep:#053d33;
    --jm62-green:#0a604e;
    --jm62-gold:#d8aa50;
    --jm62-paper:#fffefa;
    --jm62-warm:#f7f4ed;
    --jm62-ink:#153f35;
    --jm62-muted:#667c74;
    --jm62-line:rgba(7,72,58,.12);
    --jm62-shadow:0 16px 46px rgba(4,48,40,.07);
    --jm62-shadow-hover:0 24px 64px rgba(4,48,40,.115);
  }

  /* ---------- Public pages ---------- */
  body:not(.jm-portal-workspace-page) [data-jm-premium-page]{font-size:15px!important;background:var(--jm62-paper)!important}
  body:not(.jm-portal-workspace-page) [data-jm-premium-page] .jm-core-wrap,
  body:not(.jm-portal-workspace-page) .jm-core-wrap{width:min(1500px,calc(100% - clamp(64px,6vw,108px)))!important;max-width:1500px!important}
  body:not(.jm-portal-workspace-page) .jm66-section{padding:92px 0!important}
  body:not(.jm-portal-workspace-page) .jm66-section-head{gap:clamp(44px,6vw,84px)!important;margin-bottom:36px!important}
  body:not(.jm-portal-workspace-page) .jm66-section-head h2{font-size:clamp(42px,3.5vw,58px)!important;line-height:1!important}
  body:not(.jm-portal-workspace-page) .jm66-section-head>p{font-size:14px!important;line-height:1.82!important;max-width:520px!important}
  body:not(.jm-portal-workspace-page) .jm66-kicker{font-size:8px!important;letter-spacing:.18em!important;margin-bottom:11px!important}
  body:not(.jm-portal-workspace-page) [data-jm-premium-page] :where(p,li){font-size:13.5px!important;line-height:1.8!important}
  body:not(.jm-portal-workspace-page) [data-jm-premium-page] :where(a,button){transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease!important}

  /* Public hero system */
  body:not(.jm-portal-workspace-page) :where(.jm66-about-hero,.jm66-khanqah-hero){min-height:610px!important}
  body: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){gap:clamp(52px,6vw,88px)!important}
  body: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)>*{min-width:0!important}
  body: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){font-size:clamp(52px,4.6vw,76px)!important;line-height:.96!important;letter-spacing:-.042em!important}
  body:not(.jm-portal-workspace-page) :where(.jm66-about-hero-copy>p,.jm66-departments-hero p,.jm66-admissions-hero p,.jm66-ifta-copy>p,.jm66-research-hero p,.jm66-khanqah-hero p){font-size:14px!important;line-height:1.82!important}
  body:not(.jm-portal-workspace-page) :where(.jm66-about-hero-card,.jm66-departments-hero aside,.jm66-admission-trust,.jm66-ifta-seal,.jm66-research-hero aside,.jm66-khanqah-hero aside){border-radius:23px!important;box-shadow:0 22px 62px rgba(3,45,37,.12)!important}

  /* Buttons/forms become readable; old stack frequently used 7-9px */
  body:not(.jm-portal-workspace-page) :where(.jm66-hero-actions>a,.jm66-inline-action,.jm66-academic-actions a,.jm-core-link,.jm-info-cta a){min-height:46px!important;padding-inline:17px!important;border-radius:12px!important;font-size:10px!important;font-weight:800!important}
  body:not(.jm-portal-workspace-page) :where(.jm-core-form,.jm-advanced-form,.jm-contact-form,.jm-admission-form){border-radius:24px!important;box-shadow:var(--jm62-shadow)!important}
  body:not(.jm-portal-workspace-page) :where(.jm-core-form,.jm-advanced-form,.jm-contact-form,.jm-admission-form) label{font-size:11.5px!important;font-weight:750!important;color:#31564d!important}
  body:not(.jm-portal-workspace-page) :where(.jm-core-form,.jm-advanced-form,.jm-contact-form,.jm-admission-form) :where(input:not([type=checkbox]),select,textarea){min-height:48px!important;padding:11px 13px!important;border:1px solid #cad9d3!important;border-radius:11px!important;background:#fff!important;font-size:13px!important;color:#1b4439!important;box-shadow:inset 0 1px 2px rgba(4,48,40,.02)!important}
  body:not(.jm-portal-workspace-page) :where(.jm-core-form,.jm-advanced-form,.jm-contact-form,.jm-admission-form) textarea{min-height:128px!important}
  body:not(.jm-portal-workspace-page) :where(.jm-core-form,.jm-advanced-form,.jm-contact-form,.jm-admission-form) :where(input,select,textarea):focus{border-color:#a9c3b9!important;box-shadow:0 0 0 4px rgba(10,96,78,.07)!important;outline:0!important}

  /* Departments + program/catalog cards */
  body:not(.jm-portal-workspace-page) :where(.jm66-department-grid,.jm-program-grid-v53,.jm-info-grid,.jm-core-grid){gap:16px!important}
  body:not(.jm-portal-workspace-page) :where(.jm66-department-card,.jm-program-card-v53,.jm-info-card,.jm-core-card){border:1px solid var(--jm62-line)!important;border-radius:22px!important;box-shadow:0 10px 30px rgba(4,48,40,.045)!important;background:linear-gradient(180deg,#fff,#fdfcf8)!important}
  body:not(.jm-portal-workspace-page) :where(.jm66-department-card,.jm-program-card-v53,.jm-info-card,.jm-core-card):hover{transform:translateY(-3px)!important;box-shadow:var(--jm62-shadow-hover)!important;border-color:rgba(185,139,48,.24)!important}
  body:not(.jm-portal-workspace-page) :where(.jm66-department-card,.jm-program-card-v53,.jm-info-card,.jm-core-card) h3{font-size:25px!important;line-height:1.05!important}
  body:not(.jm-portal-workspace-page) :where(.jm66-department-card,.jm-program-card-v53,.jm-info-card,.jm-core-card) p{font-size:12.5px!important;line-height:1.72!important}
  body:not(.jm-portal-workspace-page) .jm-program-card-icon{border-radius:15px!important;box-shadow:0 9px 24px rgba(4,48,40,.07)!important}
  body:not(.jm-portal-workspace-page) .jm-program-catalog-v53{padding-top:80px!important;padding-bottom:90px!important}
  body:not(.jm-portal-workspace-page) .jm-program-catalog-intro{margin-bottom:30px!important}

  /* About/history/vision structures */
  body:not(.jm-portal-workspace-page) .jm66-foundation-grid{gap:clamp(54px,7vw,94px)!important}
  body:not(.jm-portal-workspace-page) .jm66-foundation h2{font-size:clamp(44px,4vw,60px)!important}
  body:not(.jm-portal-workspace-page) .jm66-about-quote{border-radius:24px!important;padding:40px!important;box-shadow:var(--jm62-shadow)!important}
  body:not(.jm-portal-workspace-page) .jm66-principle-grid{gap:13px!important}
  body:not(.jm-portal-workspace-page) .jm66-principle-card{min-height:245px!important;padding:24px!important;border-radius:21px!important}
  body:not(.jm-portal-workspace-page) .jm66-principle-card h3{font-size:22px!important}
  body:not(.jm-portal-workspace-page) .jm66-principle-card p{font-size:11.5px!important;line-height:1.65!important}
  body:not(.jm-portal-workspace-page) :where(.jm66-legacy-main,.jm66-legacy-story,.jm66-academic-note){border-radius:24px!important;box-shadow:0 12px 36px rgba(4,48,40,.05)!important}
  body:not(.jm-portal-workspace-page) :where(.jm66-leader-grid,.jm66-objective-grid){gap:15px!important}

  /* Admissions */
  body:not(.jm-portal-workspace-page) .jm66-admissions-page .jm66-admissions-hero{min-height:600px!important}
  body:not(.jm-portal-workspace-page) .jm66-admissions-page .jm66-admissions-hero-grid{grid-template-columns:minmax(0,1fr) 350px!important;gap:64px!important;padding:78px 0!important}
  body:not(.jm-portal-workspace-page) .jm66-admissions-page .jm66-admission-trust>span{min-height:62px!important;border-radius:14px!important;font-size:10px!important}
  body:not(.jm-portal-workspace-page) .jm66-admission-layout{grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr)!important;gap:22px!important;align-items:start!important}
  body:not(.jm-portal-workspace-page) .jm66-admission-form{padding:30px!important}
  body:not(.jm-portal-workspace-page) .jm66-admission-aside{padding:28px!important;border-radius:24px!important;top:112px!important}
  body:not(.jm-portal-workspace-page) .jm66-admission-aside h2{font-size:31px!important}
  body:not(.jm-portal-workspace-page) .jm-form-progress{border-radius:18px!important}
  body:not(.jm-portal-workspace-page) .jm-submit-application{min-height:50px!important;border-radius:12px!important;font-size:11px!important;box-shadow:0 12px 30px rgba(7,83,67,.16)!important}

  /* Dar-ul-Ifta + Fatawa */
  body:not(.jm-portal-workspace-page) .jm66-ifta-search{padding:18px!important;border-radius:20px!important;box-shadow:var(--jm62-shadow)!important}
  body:not(.jm-portal-workspace-page) .jm66-ifta-search :where(input,select,button){min-height:48px!important;font-size:12.5px!important;border-radius:11px!important}
  body:not(.jm-portal-workspace-page) :where(.jm66-fatwa-grid,.jm-fatwa-archive-grid,.jm-fatwa-related){gap:15px!important}
  body:not(.jm-portal-workspace-page) :where(.jm66-fatwa-card,.jm-fatwa-detail,.jm-fatwa-related article){border-radius:22px!important;box-shadow:0 10px 30px rgba(4,48,40,.045)!important}
  body:not(.jm-portal-workspace-page) .jm66-fatwa-card h3{font-size:24px!important;line-height:1.14!important}
  body:not(.jm-portal-workspace-page) .jm66-fatwa-card p{font-size:12.5px!important}
  body:not(.jm-portal-workspace-page) .jm-fatwa-detail-answer{font-size:15px!important;line-height:1.9!important}
  body:not(.jm-portal-workspace-page) .jm-fatwa-citations{border-radius:18px!important}

  /* Research */
  body:not(.jm-portal-workspace-page) :where(.jm-research-intro,.jm-research-showcase,.jm-research-submit){border-radius:24px!important;box-shadow:var(--jm62-shadow)!important}
  body:not(.jm-portal-workspace-page) .jm-research-pillars{gap:14px!important}
  body:not(.jm-portal-workspace-page) .jm-research-pillars article{border-radius:20px!important;padding:24px!important}
  body:not(.jm-portal-workspace-page) .jm-research-pillars h3{font-size:24px!important}

  /* Library */
  body:not(.jm-portal-workspace-page) .jm-library-page{padding-bottom:96px!important}
  body:not(.jm-portal-workspace-page) .jm-library-overview{border-radius:26px!important;box-shadow:var(--jm62-shadow)!important}
  body:not(.jm-portal-workspace-page) .jm-library-search{padding:16px!important;border-radius:18px!important;box-shadow:0 10px 30px rgba(4,48,40,.045)!important}
  body:not(.jm-portal-workspace-page) .jm-library-search :where(input,select,button){min-height:47px!important;border-radius:11px!important;font-size:12px!important}
  body:not(.jm-portal-workspace-page) .jm-library-grid{gap:16px!important}
  body:not(.jm-portal-workspace-page) .jm-book-card{border-radius:21px!important;box-shadow:0 10px 30px rgba(4,48,40,.045)!important;overflow:hidden!important}
  body:not(.jm-portal-workspace-page) .jm-book-card:hover{transform:translateY(-3px)!important;box-shadow:var(--jm62-shadow-hover)!important}

  /* Contact */
  body:not(.jm-portal-workspace-page) .jm-contact-page{padding-bottom:96px!important}
  body:not(.jm-portal-workspace-page) .jm-contact-main{grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr)!important;gap:20px!important}
  body:not(.jm-portal-workspace-page) .jm-contact-map{border-radius:24px!important;overflow:hidden!important;box-shadow:var(--jm62-shadow)!important}
  body:not(.jm-portal-workspace-page) .jm-contact-form{padding:28px!important}
  body:not(.jm-portal-workspace-page) .jm-contact-cards{gap:13px!important}
  body:not(.jm-portal-workspace-page) .jm-contact-cards>article{border-radius:18px!important;box-shadow:0 9px 26px rgba(4,48,40,.045)!important}

  /* Donation */
  body:not(.jm-portal-workspace-page) .jm-donation-grid{gap:18px!important}
  body:not(.jm-portal-workspace-page) :where(.jm-donation-intro,.jm-donation-methods,.jm-donation-trust){border-radius:24px!important;box-shadow:var(--jm62-shadow)!important}
  body:not(.jm-portal-workspace-page) .jm-donation-methods>article{border-radius:18px!important}

  /* Prospectus */
  body:not(.jm-portal-workspace-page) .jm-prospectus-page{padding-bottom:96px!important}
  body:not(.jm-portal-workspace-page) .jm-prospectus-grid{grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr)!important;gap:clamp(40px,6vw,78px)!important;align-items:center!important}
  body:not(.jm-portal-workspace-page) .jm-prospectus-card{border-radius:26px!important;box-shadow:0 24px 66px rgba(4,48,40,.11)!important}
  body:not(.jm-portal-workspace-page) .jm-prospectus-download{border-radius:22px!important;box-shadow:var(--jm62-shadow)!important}
  body:not(.jm-portal-workspace-page) .jm-prospectus-features{gap:12px!important}

  /* Generic page/article content */
  body:not(.jm-portal-workspace-page) :where(.jm-core-prose,.entry-content){font-size:15px!important;line-height:1.88!important}
  body:not(.jm-portal-workspace-page) :where(.jm-core-prose,.entry-content) p{font-size:15px!important;line-height:1.88!important}
  body:not(.jm-portal-workspace-page) :where(.jm-core-prose,.entry-content) h2{font-size:36px!important;line-height:1.08!important;margin-top:1.6em!important}
  body:not(.jm-portal-workspace-page) :where(.jm-core-prose,.entry-content) h3{font-size:27px!important;line-height:1.12!important;margin-top:1.45em!important}

  /* ---------- Portal workspaces ----------
     Keep geometry, remove microscopic typography and overly heavy chrome. */
  body.jm-portal-workspace-page :where(.jm-suite,.jm-manager-shell,.jm-scholar-shell,.jm-user-admin){font-size:14px!important}
  body.jm-portal-workspace-page .jm-suite-v41{max-width:1560px!important;margin:26px auto!important;border-radius:22px!important;box-shadow:0 22px 66px rgba(6,29,26,.09)!important}
  body.jm-portal-workspace-page :where(.jm-suite-sidebar,.jm-manager-sidebar,.jm-scholar-sidebar,.jm-user-sidebar){box-shadow:none!important}
  body.jm-portal-workspace-page .jm-suite-sidebar nav>a{min-height:48px!important}
  body.jm-portal-workspace-page .jm-suite-sidebar nav>a>span{font-size:11px!important}
  body.jm-portal-workspace-page .jm-suite-brand strong{font-size:13px!important}
  body.jm-portal-workspace-page .jm-suite-brand small{font-size:10px!important}
  body.jm-portal-workspace-page .jm-suite-top{min-height:108px!important;padding-block:22px!important}
  body.jm-portal-workspace-page .jm-suite-top h1{font-size:clamp(30px,3vw,42px)!important}
  body.jm-portal-workspace-page .jm-suite-top p{font-size:12.5px!important}
  body.jm-portal-workspace-page .jm-suite-body{padding-top:28px!important}
  body.jm-portal-workspace-page .jm-suite-welcome{border-radius:19px!important;padding:26px 30px!important;box-shadow:0 15px 40px rgba(0,61,49,.15)!important}
  body.jm-portal-workspace-page .jm-suite-welcome p{font-size:12.5px!important}
  body.jm-portal-workspace-page .jm-suite-metric{border-radius:15px!important;padding:18px!important;box-shadow:0 7px 24px rgba(6,51,42,.045)!important}
  body.jm-portal-workspace-page .jm-suite-metric>span{font-size:9px!important}
  body.jm-portal-workspace-page .jm-suite-metric>b{font-size:30px!important}
  body.jm-portal-workspace-page .jm-suite-columns>section,body.jm-portal-workspace-page .jm-suite-columns>aside{border-radius:17px!important;box-shadow:0 7px 24px rgba(6,51,42,.045)!important}
  body.jm-portal-workspace-page .jm-suite-action{border-radius:12px!important}
  body.jm-portal-workspace-page .jm-suite-action span{font-size:10px!important}
  body.jm-portal-workspace-page :where(.jm-manager-table,.jm-scholar-table,.jm-user-table) th{font-size:9.5px!important;padding:13px 14px!important}
  body.jm-portal-workspace-page :where(.jm-manager-table,.jm-scholar-table,.jm-user-table) td{font-size:11.5px!important;line-height:1.45!important;padding:14px!important}
  body.jm-portal-workspace-page :where(.jm-manager-filters,.jm-scholar-filters,.jm-user-filters) :where(input,select,button){font-size:12px!important}
  body.jm-portal-workspace-page :where(.jm-manager-fields,.jm-user-fields,.jm-company-settings) label{font-size:11px!important}
  body.jm-portal-workspace-page :where(.jm-manager-fields,.jm-user-fields,.jm-company-settings) :where(input,select,textarea){font-size:13px!important;min-height:46px!important}
  body.jm-portal-workspace-page :where(.jm-row-actions a,.jm-row-actions button,.jm-user-row-actions a,.jm-user-row-actions button){font-size:10px!important;min-height:34px!important}
}

@media (min-width:901px) and (max-width:1240px){
  body:not(.jm-portal-workspace-page) [data-jm-premium-page] .jm-core-wrap,body:not(.jm-portal-workspace-page) .jm-core-wrap{width:calc(100% - 56px)!important}
  body: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){gap:40px!important}
  body:not(.jm-portal-workspace-page) .jm66-principle-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body:not(.jm-portal-workspace-page) .jm-contact-main{grid-template-columns:minmax(0,1fr) 340px!important}
  body.jm-portal-workspace-page .jm-suite-v41{margin:18px!important;max-width:none!important}
}
