:root{--hero-min:clamp(220px, 42vh, 480px);--hero-pad-top:clamp(88px, 12vw, 132px);--hero-pad-x:clamp(16px, 4vw, 44px);--hero-pad-bottom:clamp(20px, 3vw, 40px)}html{overflow-x:clip}body{overflow-x:clip;max-width:100%}.am-rail,.na-cta,.na-data,.na-essentials-wrap,.na-featured,.na-journey,.na-pillars,.na-salah-band,.na-trust,.na-welcome{width:100%;max-width:min(var(--container,1280px),100%);margin-inline:auto;box-sizing:border-box}.du-body,.hc-main,.qb-main,.qn-main{width:100%;max-width:min(var(--container,1280px),100%);margin-inline:auto;box-sizing:border-box}.ar-main:not(.ar-read){width:100%;max-width:none;margin-inline:0;box-sizing:border-box}.ar-main.ar-read{width:100%;max-width:min(1120px,100%);margin-inline:auto;align-self:center;box-sizing:border-box}.du-main,.main,.main.simple,.na-main,.pt-page .pt-main{width:100%;max-width:100%;box-sizing:border-box}.ar-main>*,.du-body,.hc-main>*,.na-main>*,.pt-page .pt-main>*,.qb-main>*,.qn-main>*{min-width:0}canvas,img,picture,svg,video{max-width:100%}.am-table-wrap,.pt-cal .pt-table-wrap,.pt-table-wrap,.qn-table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}button,input,select,textarea{max-width:100%}@media (min-width:1440px){:root{--container:1320px;--page-pad-x:clamp(24px, 4vw, 48px)}}@media (min-width:1920px){:root{--container:1360px}}@media (max-width:1023px){:root{--page-pad-x:clamp(16px, 2.8vw, 28px);--section-gap:clamp(14px, 2vw, 22px);--card-pad:clamp(12px, 1.8vw, 18px)}}@media (max-width:768px){:root{--page-pad-x:clamp(14px, 4vw, 20px);--section-gap:clamp(12px, 3vw, 18px);--hero-min:0px;--hero-pad-top:clamp(72px, 18vw, 96px);--hero-pad-bottom:20px}.na-cta,.na-data,.na-essentials-wrap,.na-featured,.na-journey,.na-pillars,.na-salah-band,.na-trust,.na-welcome{width:100%;max-width:100%;padding-inline:var(--page-pad-x)}.du-hero,.pt-hero,.qb-hero,.qn-hero,.rmd-hero{min-height:0!important;height:auto!important}.du-hero-inner,.pt-hero-copy,.qb-hero-copy,.qn-hero-stage{min-height:0!important;height:auto!important;max-height:none!important}body.quran-page .qn-main>.qn-last-read,body.quran-page .qn-main>.qn-daily{width:100%;max-width:min(var(--container,1280px),100%);margin-inline:auto;padding-inline:var(--page-pad-x);box-sizing:border-box}body.quran-page .qn-main>.qn-bookmarks,body.quran-page .qn-main>.qn-related-tools{width:auto;max-width:min(var(--container,1280px),100%);margin-inline:var(--page-pad-x);box-sizing:border-box}}@media (max-width:479px){:root{--page-pad-x:14px;--section-gap:12px;--card-pad:12px}}@media (max-width:374px){:root{--page-pad-x:12px;--section-gap:10px;--card-pad:10px}}
/* Qibla phone: photo stays tall so search and breadcrumb sit on it */
@media (max-width: 900px){
  body.qb-page .qb-hero{
    min-height: 480px !important;
  }
  body.qb-page .qb-hero-copy{
    min-height: 480px !important;
    background: transparent !important;
    padding: 156px 16px 28px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    justify-content: flex-end;
  }
  body.qb-page .qb-hero-card{
    background: rgba(255,252,247,.92);
    padding: 16px 16px 18px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(28,20,16,.18);
  }
}
