/* Device-only refinements. Approved desktop styles remain untouched. */
@media (max-width:1100px), (hover:none) and (pointer:coarse) and (max-width:1366px) {
 .wrap,.course-shell{width:100%;padding-left:24px;padding-right:24px}
 nav{padding:16px 24px;gap:16px}nav .brand{min-width:0}nav .brand-main{flex-wrap:wrap}nav .links{gap:16px}nav .links .btn{white-space:nowrap}
 main,section,article,aside,form,.hero>div,.home-desk>div,.profile-layout>*{min-width:0}
 .wrap.hero{gap:32px;padding-top:38px;padding-bottom:30px}
 .hero h1.color-head{font-size:clamp(46px,6.2vw,66px)!important}
 .hero .royal-library.refreshed-shelf{transform:none!important;width:100%;max-width:420px;margin:58px auto 26px}
 .hero>.poster{min-width:0;width:100%;max-width:440px;margin:0 auto}
 .hero .poster-word{font-size:clamp(32px,4.7vw,52px)!important}
 .progress-divider{padding:12px 0}.progress-divider>.wrap{display:flex;flex-direction:row;justify-content:center;gap:16px}.progress-divider span{font-size:clamp(14px,2.4vw,26px);white-space:nowrap}
 .wrap.section{padding:42px 24px}.curriculum-map{gap:18px}.route-marker{padding:18px}.route-marker h3{font-size:26px}.route-learning{padding:20px 18px}.route-learning h4{min-height:0;font-size:21px}.route-stops li{font-size:14px}.route-subjects{padding:16px 18px}.route-subjects a{min-height:44px;font-size:13px}
 .resource{padding:42px 0}.home-desk{grid-template-columns:.8fr 1.2fr;gap:26px}.home-desk h2.stack-title{font-size:38px!important}.home-noticeboard{padding:24px 16px 18px}.home-note-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px}.home-pinned-note{min-width:0}.home-pinned-note strong{white-space:normal;font-size:13px;line-height:1.3}
 .doubt-inner{padding:0 24px}.doubt-options.topic-clusters{gap:22px}.topic-cluster{min-width:0}.doubt-options.topic-clusters .topic-cluster>span:nth-child(n){font-size:15px}
 .motion-profile .profile-layout{grid-template-columns:minmax(0,1fr);padding:18px 20px 0;gap:22px;align-items:end}
 .motion-profile .subject-cloud-heading{grid-row:1;grid-column:1;visibility:visible;min-height:0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;font-size:30px;padding:5px 0 12px}
 .motion-profile .profile-video{grid-row:2;grid-column:1;width:100%;max-width:600px;justify-self:center;margin:0;align-self:center}
 .motion-profile .profile-character{grid-row:3;grid-column:1;width:100%;max-width:640px;justify-self:center;min-height:0;margin:0;align-self:end}
 .motion-profile .profile-character .trial-comic{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;align-items:end;min-height:0;margin:0}
 .motion-profile .profile-character .trial-comic>img{width:100%;height:370px;object-fit:contain;object-position:center bottom;align-self:end;transform:translateY(2px)}
 .motion-profile .profile-character .trial-comic>div{align-self:center;padding-bottom:12px;min-width:0}
 .motion-profile .teacher-bubble strong,.motion-profile .teacher-bubble .speech-resource{font-size:19px}.motion-profile .trial-book-button{font-size:15px;min-height:44px;text-align:center}
 .subject-cloud-heading span:first-child,.subject-cloud-heading span:last-child{color:#302044;text-shadow:0 1px #fff8}
 #enquire{padding:0 24px}#enquire .newspaper{gap:20px;padding:0 22px 22px}.news-story{min-width:0}.news-masthead{grid-column:1/-1}.news-name{font-size:44px}
 #enquire #enquiry input,#enquire #enquiry select{width:100%;min-height:44px;font-size:16px}#enquire #enquiry button{min-height:46px}
 .vertical-faq{gap:24px}.colourful-faq summary{min-height:48px}.faq-question{min-width:0}.faq-answer li{overflow-wrap:break-word}
 .course-hero{gap:32px}.course-page h1{font-size:clamp(35px,5vw,56px)}.course-page h1 span{max-width:100%;overflow-wrap:break-word}.course-panel{min-width:0}.course-contact{padding-bottom:40px}
 .folder-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 18px}.folder-card{min-width:0}.folder-action button,.folder-action a{min-height:44px}.gateway-controls button{min-height:44px}.resource-dialog{max-width:420px;width:calc(100% - 48px);max-height:calc(100dvh - 48px);overflow:auto;padding:24px}
 footer{padding:28px 24px 90px}.floating{right:16px;bottom:calc(14px + env(safe-area-inset-bottom));max-width:calc(100% - 32px);font-size:12px;padding:11px 15px}
}
@media(max-width:900px){
 nav{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 10px}nav .links{display:contents}nav .links>a:not(.btn){display:block;font-size:12px;grid-row:2}nav .links>a.btn{grid-column:2;grid-row:1;padding:11px 13px;align-self:center;font-size:12px}nav .links>a:not(.btn):nth-child(1){grid-column:1}nav .links>a:not(.btn):nth-child(2){grid-column:1;margin-left:92px}nav .links>a:not(.btn):nth-child(3){grid-column:2;text-align:right}
 .home-desk{grid-template-columns:1fr;gap:28px}.home-noticeboard{width:100%}.home-note-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 .course-hero{grid-template-columns:1fr;padding-top:20px;gap:30px}.course-panel{max-width:640px;width:calc(100% - 14px);margin:0 auto}.course-page.business .course-hero>div{order:0}.course-page.business .course-hero>aside{order:1}.course-lead{max-width:none}.course-page h1{font-size:clamp(36px,6vw,54px)}
 .skills-grid{grid-template-columns:1fr;gap:18px}.lesson-flow .course-shell{grid-template-columns:1fr;gap:22px}.resource-course{grid-template-columns:1fr;gap:25px}
 #enquire .newspaper{grid-template-columns:1fr}.news-masthead{grid-column:1}.news-story{padding:24px}.news-name{font-size:42px}
}
@media(max-width:600px){
 .wrap,.course-shell{padding-left:18px;padding-right:18px}nav{padding:13px 18px;gap:12px 8px}nav .brand .brand-main{font-size:25px!important;letter-spacing:-1px!important}nav .brand .brand-subject{display:block;font-size:9px!important;margin:0;width:100%;letter-spacing:.2px}nav .brand .brand-tuition{font-size:7px!important;max-width:185px;letter-spacing:0}nav .brand{gap:4px}nav .links>a.btn{font-size:11px;padding:10px;white-space:nowrap}nav .links>a:not(.btn){font-size:11px}nav .links>a:not(.btn):nth-child(2){margin-left:65px}
 .wrap.hero{grid-template-columns:1fr;max-width:520px;padding:28px 18px 30px;gap:28px}.hero h1.color-head{font-size:clamp(46px,12.5vw,65px)!important;letter-spacing:-1.5px!important;margin-top:10px}.hero .royal-library.refreshed-shelf{max-width:370px;margin:55px auto 24px}.hero>.poster{width:100%;max-width:370px;align-self:auto}.hero .poster-word{font-size:clamp(35px,10vw,48px)!important}.hero .royal-title,.hero .royal-tier:first-of-type .royal-book+li .royal-title{font-size:11px;letter-spacing:0}.hero .royal-tier:nth-child(n) .royal-title{left:12px;right:38px;white-space:normal;line-height:1.1}
 .progress-divider>.wrap{gap:8px}.progress-divider span{font-size:clamp(11px,3.4vw,19px);letter-spacing:-.4px}.progress-divider{padding:10px 0}
 .wrap.section{padding:34px 18px}.curriculum-map{grid-template-columns:1fr;gap:20px}.route-marker{padding:17px 20px;min-height:0}.route-marker h3{font-size:26px}.route-learning{padding:19px 20px}.route-learning h4{font-size:22px;min-height:0;margin-bottom:16px}.route-stops{gap:12px}.route-stops li{font-size:14px}.route-subjects{display:flex;padding:17px 20px 20px;gap:10px}.route-subjects a{font-size:14px;min-height:44px}
 .resource{padding:36px 0}.home-desk h2.stack-title{font-size:36px!important}.home-note-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 10px}.home-noticeboard{padding:24px 13px 18px;box-shadow:4px 5px 0 #ffd33d}.home-pinned-note{padding:22px 6px 10px;min-height:78px}.home-pinned-note strong{font-size:12px}.home-board-all{line-height:1.5}.home-board-subject h3{font-size:15px}
 .doubt-inner{padding:0 18px}.doubt-inner>div:first-child{display:block}.doubt-inner h2{font-size:26px;margin-top:9px}.doubt-options.topic-clusters{grid-template-columns:1fr;gap:25px}.topic-cluster:last-child{grid-column:auto;display:flex}.doubt-invitation .doubt-inner>a{font-size:14px}
 .motion-profile .profile-layout{padding:16px 10px 0;gap:18px}.motion-profile .subject-cloud-heading{font-size:25px;gap:10px;padding:3px 0 6px}.motion-profile .profile-video{width:100%;max-width:450px;box-shadow:3px 3px 0 #fff4d978}.motion-profile .profile-character .trial-comic{grid-template-columns:53% minmax(0,1fr);gap:7px}.motion-profile .profile-character .trial-comic>img{height:310px;width:100%}.motion-profile .profile-character .trial-comic>div{padding-bottom:12px}.motion-profile .profile-character .teacher-bubble{padding:14px 9px}.motion-profile .teacher-bubble strong,.motion-profile .teacher-bubble .speech-resource{font-size:15px;letter-spacing:-.3px;line-height:1.25}.motion-profile .trial-book-button{font-size:12px;padding:12px 7px;white-space:normal}.teacher-bubble .speech-resource{margin-top:13px}
 #enquire{padding:0 18px}#enquire .newspaper{padding:0 14px 16px;gap:18px;box-shadow:4px 4px 0 #c8afff}.news-masthead{margin:0 -14px;padding:16px 14px}.news-name{font-size:34px;letter-spacing:-1px}.news-deck{gap:7px}.news-deck span{font-size:10px}.news-story{padding:20px}#enquire .news-story h2.stack-title{font-size:36px!important}#enquire .news-intro{font-size:15px}#enquire #enquiry{padding:17px 13px}
 .vertical-faq{grid-template-columns:1fr;gap:0}.colourful-faq .faq-answer li{font-size:13px}.colourful-faq .faq-question{font-size:14px}.colourful-faq .faq-answer{padding-right:8px}
 .gateway-header{padding:26px 0}.gateway-header h1{font-size:32px!important;line-height:1.2}.gateway-body{padding-top:22px;padding-bottom:36px}.gateway-controls{gap:8px}.gateway-controls button{padding:9px 12px;font-size:11px}.notice-wall{padding:24px 12px}.subject-heading{display:block}.subject-heading p{margin-top:12px}.subject-tab{font-size:22px}.folder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 12px}.folder-card{padding:23px 10px 12px}.folder-card h3{font-size:21px}.folder-action button,.folder-action a{font-size:11px;padding:10px 8px}.folder-meta{gap:5px}.gateway-help{display:block;padding:18px}.gateway-help a{display:inline-block;margin-top:14px;white-space:normal}
 .course-page h1{font-size:clamp(32px,9vw,45px);letter-spacing:-1.4px}.course-page.business h1{font-size:clamp(31px,8.5vw,43px)}.course-lead{font-size:16px}.course-panel{padding:22px 18px;transform:none}.course-panel h2,.ib-editorial h2{font-size:30px}.course-section{padding-top:30px;padding-bottom:30px}.course-section-title{gap:13px;align-items:start}.course-section-title h2{font-size:28px}.course-section-title>span{font-size:28px}.skill-note{padding:22px 18px}.flow-items{grid-template-columns:1fr}.resource-course{padding:22px 16px}.level-resource-grid{grid-template-columns:1fr 1fr;gap:14px}.level-resource{padding:22px 13px 16px;min-height:120px}.level-resource strong{font-size:25px}.course-contact{display:block;padding:26px 0 38px}.course-contact h2{font-size:29px}.course-contact .course-actions{margin-top:20px}.course-cta{min-height:44px;font-size:13px;padding:12px 14px}
 footer{padding:26px 18px 88px;flex-direction:column;gap:14px}.floating{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);font-size:11px;padding:10px 13px}
}
