/* Mobile layout is isolated so the approved desktop composition remains intact. */
@media(max-width:760px){
 html{scroll-padding-top:20px}
 body{overflow-wrap:break-word}
 .site-header{height:auto;min-height:0;display:flex;flex-wrap:wrap;gap:12px 16px;padding:14px 6% 10px}
 .header-rihla{font-size:29px;padding-right:16px}
 .site-header .brand{font-size:12px;letter-spacing:1px}
 .site-header nav{width:100%;max-width:100%;min-width:0;flex-basis:100%;display:flex;flex-wrap:nowrap;gap:22px;margin:0;padding:0 0 3px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}
 .site-header nav a{display:inline-flex;align-items:center;flex:0 0 auto;min-height:44px;padding:8px 0;font-size:14px;white-space:nowrap}
 .hero{position:relative;isolation:isolate;overflow:hidden;min-height:calc(100svh - 126px);justify-content:flex-end;padding:60px 6% 52px}
 .hero-artwork{position:absolute;inset:0;margin:0;z-index:-2;max-width:none}
 .hero-artwork img{width:100%;height:100%;object-fit:cover;object-position:48% 64%;clip-path:none;background:transparent}
 .hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#101f34 0%,#101f34ef 22%,#101f3499 60%,#101f3438 100%)}
 .hero-image-credit{position:absolute;left:6%;right:6%;bottom:12px;margin:0;text-align:left;font-size:10px;line-height:1.5}
 .hero-copy{position:relative;min-width:0;padding:0;max-width:100%}
 .hero h1{font-size:clamp(37px,10.2vw,56px);letter-spacing:-.8px;line-height:1.1;margin-bottom:18px}
 .hero-translation summary.hero-arabic{font-size:22px;min-height:44px;display:flex;align-items:center}
 .hero-description span:first-child{font-size:20px;line-height:1.45}
 .hero-description span:last-child{font-size:16px;line-height:1.5;margin-top:6px}
 .hero .actions{width:100%;max-width:340px;display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:24px}
 .hero .button.primary,.hero .atlas-invitation{width:100%;max-width:100%;min-height:44px;padding:10px 18px;font-size:15px;gap:16px;justify-content:space-between}
 .hero .atlas-invitation-copy>span{font-size:15px}
 .section,.section-inner{padding:54px 6%}
 .section h2,.section-inner h2{font-size:32px;line-height:1.25;letter-spacing:-.4px}
 .section-label,.research-section .section-label,.laboratory .section-label,.references .section-label{font-size:23px;line-height:1.4;margin-bottom:24px;gap:12px}
 .section-label:before{flex-basis:22px;width:22px}
 .section-heading{display:block;margin-bottom:30px}
 .section-heading h2{margin-bottom:20px}
 .section-heading>p{font-size:16px;line-height:1.8;max-width:none}
 .about{grid-template-columns:1fr;gap:26px}
 .about-heading{grid-column:auto}
 .about-copy{min-width:0;width:100%}
 .about-copy .intro{font-size:21px;line-height:1.65}
 .about-contact{max-width:100%}
 .about-contact a{font-size:15px;min-height:44px;gap:12px;overflow-wrap:anywhere}
 .research-heading{gap:12px;align-items:flex-start}
 .research-section h2{font-size:28px;line-height:1.4;margin:16px 0 28px;text-wrap:initial}
 .research-scope{grid-template-columns:1fr;gap:16px}
 .research-grid{display:grid;grid-template-columns:1fr;gap:28px}
 .research-grid p:not(.eyebrow){font-size:17px;line-height:1.85}
 .research-section .objective{padding:24px 0 0;border-left:0;border-top:1px solid #b69e74}
 .research-section .objective-title{font-size:26px}
 .research-section .objective blockquote{font-size:22px;line-height:1.65;margin:0}
 .research-section .research-emphasis{grid-template-columns:1fr;gap:18px;padding:24px 0;margin:30px 0}
 .research-section .research-emphasis h3{font-size:26px}
 .research-objectives ol{grid-template-columns:1fr;gap:18px}
 .research-objectives li{font-size:16px}
 .atlas-section>div:first-child{grid-template-columns:1fr;gap:20px}
 .atlas-section .atlas-links{grid-template-columns:1fr;gap:18px}
 .atlas-section .atlas-links>.atlas-card{padding:23px;min-height:198px;gap:16px}
 .atlas-links strong{font-size:30px}
 .atlas-card-subtitle{font-size:17px}
 .atlas-links small{font-size:10px;letter-spacing:.5px}
 .lab-exhibit,.lab-academic{grid-template-columns:1fr;gap:28px}
 .lab-name{gap:18px;flex-wrap:wrap}
 .lab-name h2{font-size:48px}
 .lab-name .lab-arabic{font-size:34px;padding-left:18px}
 .lab-subtitle{font-size:22px}
 .laboratory .lab-copy{font-size:18px;line-height:1.8}
 .lab-academic{margin-top:32px;padding-top:28px}
 .lab-person{border-left:0;padding:26px 0 0;border-top:1px solid #c6a15c66}
 .laboratory .advisor-profile{grid-template-columns:80px minmax(0,1fr);gap:16px}
 .laboratory .advisor-photo{width:80px;height:100px}
 .laboratory .advisor-profile h3{font-size:23px;line-height:1.35;overflow-wrap:anywhere}
 .laboratory .advisor-profile p{font-size:15px}
 .method-grid{grid-template-columns:1fr;gap:26px}
 .method-grid h3{font-size:25px}
 .method-grid p{font-size:16px}
 .process p{font-size:19px;line-height:2}
 .source-grid{grid-template-columns:1fr;gap:24px}
 .source-cover{padding:24px 20px 18px;grid-template-rows:240px 24px;height:auto}
 .source-cover img{height:240px;width:auto;max-height:none;max-width:100%}
 .source-body{padding:24px}
 .source-body h3{font-size:27px;min-height:0}
 .source-body .eyebrow{min-height:0;font-size:11px}
 .source-body .book-title{font-size:20px}
 .source-body>p:not(.eyebrow):not(.book-title){font-size:16px}
 .references-body{grid-template-columns:1fr;gap:28px}
 .references .credits{grid-column:1;grid-row:2;padding:24px 0 0;border-left:0;border-top:1px solid var(--line)}
 .references details{grid-column:1;grid-row:auto}
 .references summary{min-height:52px;padding:16px 0;font-size:16px}
 .references summary>span{flex:0 0 22px;text-align:center}
 .bibliography-list{columns:1}
 .build-notes a{overflow-wrap:anywhere}
 footer{display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:28px 6% 34px}
 footer>a:last-child{min-height:44px;margin-right:52px}
 .back-top{right:14px;bottom:14px;width:44px;height:44px}
}
@media(max-width:360px){.site-header .brand{font-size:11px}.hero h1{font-size:36px}.hero-description span:first-child{font-size:18px}.lab-name{gap:14px}.laboratory .advisor-profile{grid-template-columns:1fr}.laboratory .advisor-photo{width:80px;height:100px}}
@media(max-width:760px) and (orientation:landscape){.hero{min-height:520px}}

@media(max-width:760px){.site-header nav::-webkit-scrollbar{display:none}}
@media(max-width:360px){.hero{padding-top:30px;padding-bottom:42px}}

@media(max-width:760px){.hero-translation summary.hero-arabic{text-shadow:0 1px 5px #101f34}.hero-image-credit{font-size:10px;line-height:1.5}}

@media(max-width:760px) and (orientation:portrait){
 .site-header{padding:10px 5% 4px;gap:4px 12px}
 .site-header nav{gap:16px}
 .hero{min-height:calc(100svh - 94px);padding:32px 5% 48px}
 .hero h1{font-size:clamp(32px,9.4vw,46px);margin-bottom:12px}
 .hero .actions{gap:8px;margin-top:16px}
 .section,.section-inner{padding:24px 5%}
 .section h2,.section-inner h2{font-size:clamp(23px,6.4vw,30px);line-height:1.17}
 .section-label,.research-section .section-label,.laboratory .section-label,.references .section-label{font-size:18px;margin-bottom:12px}
 .about{grid-template-columns:minmax(96px,34%) minmax(0,1fr);align-items:start;gap:18px 14px}
 .about-heading,.about-copy{grid-column:1/-1}
 .about-portrait,.about-portrait .portrait{width:100%;max-width:144px}
 .about-identity{display:contents}
 .about .researcher{gap:10px;margin:0}
 .about .researcher h2{font-size:clamp(22px,6vw,28px);line-height:1.2}
 .about .researcher p{font-size:15px;line-height:1.5;color:var(--navy)}
 .about-copy .intro,.about-copy>p:not(.intro){font-size:17px;line-height:1.6;color:var(--navy)}
 .about-contact{grid-column:1/-1;margin-top:0;padding-top:10px}
 .about-contact>span{font-size:13px}
 .about-contact a{font-size:14px;gap:7px}
 .research-section .research-screen{min-height:calc(100svh - 20px)}
 .research-section .research-screen{padding-block:13px}
 .research-section h2{margin:8px 0 12px}
 .research-heading{gap:6px;align-items:center}
 .research-heading .section-label{margin:0}
 .research-heading .outline-tag{font-size:9px;line-height:1.25;padding:4px}
 .research-section #research-title{font-size:clamp(21px,5.6vw,27px);line-height:1.12}
 .research-scope{grid-template-columns:1fr 1fr 1.6fr;gap:6px;margin:0 0 8px;padding:6px 0;font-size:13px}
 .research-scope dd{font-size:15px;line-height:1.25}
 .research-scope dt{margin-bottom:2px;line-height:1.3}
 .research-grid{gap:12px}
 .research-grid h3{font-size:22px;margin:4px 0}
 .research-section .research-screen :is(.research-grid p:not(.eyebrow,.source-note),.research-emphasis p,.research-objectives li){font-size:14px;line-height:1.38;margin-block:4px}
 .research-section .objective{padding-top:9px}
 .research-section .objective-title{margin-bottom:5px;font-size:22px}
 .research-section .objective blockquote{font-size:16px;line-height:1.4}
 .research-section .research-emphasis{gap:5px;margin:0;padding:10px 0}
 .research-section .research-emphasis h3{font-size:20px;max-width:none}
 .research-objectives{margin-top:12px}
 .research-objectives h3{font-size:22px;margin-bottom:6px}
 .research-objectives ol{gap:2px;margin-bottom:8px}
 .research-objectives li{padding:4px 6px 4px 25px}
 .research-objectives li:before{top:5px;left:7px;font-size:12px}
 .research-objectives .source-note{line-height:1.35;margin-bottom:0}
 .atlas-section>div:first-child,.atlas-section .atlas-links{gap:10px}
 .atlas-section .atlas-links>.atlas-card{min-height:118px;padding:13px;gap:9px}
 .atlas-links strong{font-size:23px}
 .atlas-card-subtitle{font-size:15px}
 .atlas-section>div:first-child>p:not(.section-label),.atlas-section .integrity-note{font-size:14px;line-height:1.45}
 .atlas-section .integrity-note{padding-top:10px;margin-top:8px}
 .lab-identity{display:grid;grid-template-columns:minmax(75px,110px) minmax(0,1fr);gap:10px;align-items:start}
 .lab-identity a{overflow-wrap:anywhere}
 .lab-logo{max-width:110px}
 .lab-exhibit,.lab-academic{gap:14px}
 .laboratory .lab-copy{font-size:15px;line-height:1.5}
}

@media(max-width:760px){
 #navigation{display:flex;align-items:center;gap:clamp(5px,2vw,12px);overflow:visible}
 #navigation>a{flex:0 0 auto;min-width:0;font-size:clamp(11px,3.1vw,14px)}
 #navigation .navigation-more{position:relative;flex:0 0 auto}
 .navigation-more summary{display:grid;place-items:center;min-height:40px;padding:4px 8px;border:1px solid #b69e74;border-radius:5px;list-style:none;color:#fff;font-size:12px}
 .navigation-more summary::-webkit-details-marker{display:none}
 .navigation-more>div{position:absolute;right:0;top:calc(100% + 5px);z-index:20;display:grid;gap:2px;min-width:180px;padding:6px;background:#101f34;border:1px solid #b69e74;border-radius:6px;box-shadow:0 6px 20px #101f3480}
 .navigation-more>div a{padding:8px;color:#fff;font-size:13px;white-space:normal}
 .hero-translation-text p{font-size:12px;line-height:1.25}
 .atlas-section .section-label{margin-bottom:7px}
 .atlas-section h2{font-size:clamp(22px,6vw,29px);line-height:1.08}
 .methodology .section-heading{margin-bottom:8px}
 .methodology .section-heading .section-label{font-size:16px;margin-bottom:6px}
 .methodology .section-heading h2{font-size:23px;line-height:1.12}
 .methodology .section-heading>p{font-size:14px;line-height:1.4;margin:6px 0}
 .method-grid{grid-template-columns:1fr 1fr;gap:10px}
 .method-grid article{padding:10px}
 .method-grid h3{font-size:17px}
 .method-grid p{font-size:13px;line-height:1.4}
 .contributions .section-label{font-size:15px;line-height:1.2;margin-bottom:4px}
 .contributions h2{font-size:22px;line-height:1.12}
 .contributions .section-heading{margin-bottom:8px}
}

/* Keep profile links and contribution controls comfortable on touch screens. */
@media(max-width:760px){
 .about-contact a,.lab-contact-link,.references summary,.back-top{min-height:46px}
 .contributions form{grid-template-columns:1fr;gap:10px}
 .contributions form>:is(.source-note,.contribution-delivery,#contribution-status,.contribution-reference,.contribution-actions){grid-column:1}
 .contributions form label{font-size:14px;line-height:1.4}
 .contributions input,.contributions select,.contributions textarea{min-height:46px;font-size:16px;padding:9px 11px}
 .contributions textarea{height:96px;min-height:96px}
 .contribution-actions button{min-height:46px;padding:9px 14px;font-size:14px}
 .back-top{bottom:max(14px,env(safe-area-inset-bottom));right:max(14px,env(safe-area-inset-right))}
}

@media (pointer: coarse) and (orientation: landscape) and (max-width: 950px) and (max-height: 520px) {
 html{scroll-padding-top:20px}
}
