/* Adaptive layout: preserve source reading order and narrow-screen design. */
@media screen and (min-width:1500px), screen and (min-width:1100px) and (max-height:850px) and (min-aspect-ratio:16/9){
 body{--jr-wide-gutter:clamp(24px,2.1vw,84px);--jr-wide-width:calc(100% - 2 * var(--jr-wide-gutter))}
 body.public-home-page main,body.public-home-page footer,
 body.public-content-page :is(.breadcrumbs,.article-shell,.authority-shell),
 body :is(.site-header,.service-shell,.profile-body,.journal-main,.journal-footer,.foundation-main,.book-store-shell,.gt-shop-shell,.rcas-shell,.app-prototype,.student-dash-shell,.gt-private-shell,.gateway-shell),
 body.jr-ar-public .jr-ar-wrap,body[data-jrei-public-centre] .wrap,body:is(.academic,.forge,.seo) .wrap{width:var(--jr-wide-width);max-width:none;margin-inline:auto}
 /* News has a higher-specificity ID-based legacy cap. Expand the outer shell once,
    then use all its available width without applying a second viewport gutter. */
 body.public-content-page.jr-news-experience #main-content{width:var(--jr-wide-width);max-width:none;margin-inline:auto}
 body.public-content-page.jr-news-experience #main-content :is(.article-shell,.authority-shell){width:100%;max-width:none;margin-inline:auto}
 body.public-content-page.jr-news-experience .jrn21{width:100%;max-width:none;margin-inline:auto}
 body.public-home-page main > :is(.hero,.section),body[data-jrei-public-centre] .hero{width:100%;max-width:none}
 body:is(.academic,.forge,.seo) .hero .wrap{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
 body:is(.academic,.forge,.seo) .grid,body[data-jrei-public-centre] .grid,body.jr-ar-public .jr-ar-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr))}
 body.public-home-page :is(.hero-copy,.hero .lead),body.public-content-page :is(.article-hero .lead,.authority-hero .lead){max-inline-size:72ch}
 body.public-content-page :is(.article-shell,.authority-shell) :is(p,li,blockquote,dd),body.jr-ar-public main :is(p,dd,li),body[data-jrei-public-centre] p{max-inline-size:78ch}
 body.public-content-page :is(.article-shell,.authority-shell) > section,body.jr-ar-public main > section,body[data-jrei-public-centre] main > .wrap{container-type:inline-size}
 @container (min-width:1100px){.jr-ar-grid,.jr-wa-contact-actions{gap:clamp(.75rem,1cqi,1.5rem)}}
}
@media screen and (min-width:1200px) and (max-height:850px) and (min-aspect-ratio:16/9){
 body.public-home-page .hero,body[data-jrei-public-centre] .hero{padding-block:clamp(1rem,4vh,2.5rem);min-height:0}
 body:is(.academic,.forge,.seo) .hero .wrap{min-height:0;padding-block:clamp(1rem,4vh,2.5rem)}
 body:is(.academic,.forge,.seo) .hero-art{max-height:min(40vh,380px)}
 body.jr-ar-public .jr-ar-hero{padding-block:.8rem}
}
@media screen and (min-width:2000px) and (min-aspect-ratio:21/9){
 body[data-jrei-public-centre] .grid,body.jr-ar-public .jr-ar-grid{gap:clamp(1rem,1vw,2rem)}
}
@media screen and (max-width:360px){
 .jr-wa-business .jr-wa-link{min-width:0;max-width:100%;flex-wrap:wrap;overflow-wrap:anywhere}
 .jr-language-choices{max-width:100%;box-sizing:border-box}
}
