/* Fluid layout: viewport-driven spacing, readable type and content-driven height. */
html body {--kr-gutter:clamp(16px,3.125vw,96px);--xsd-frame:calc(100% - var(--kr-gutter)*2);--af-pad:var(--kr-gutter);}
html body #main-content {min-width:0;}
html body .xsd-wide-page .xsd-wide-frame {width:calc(100% - var(--kr-gutter)*2)!important;max-width:none!important;}
html body .xsd-wide-page .xsd-direct-frame {padding-inline:var(--kr-gutter)!important;}
html body main :is(img,video,iframe) {max-width:100%;}
html body main :is(.item-info,.item-desc,.af-company-copy,.af-function-copy,.af-app-panel) {min-width:0;overflow-wrap:break-word;}
html body #main-content .af-page-hero {--kr-cover-left:var(--kr-gutter);}
html body .af-hero-stage,html body.ard-shared-navigation #main-content .af-page-hero {height:clamp(420px,56.25vw,100svh)!important;min-height:0!important;max-height:none!important;}
#main-content .af-page-hero :is(.item-info,.banner-outer-wrap,.xsd-hero-copy-box) {top:auto!important;bottom:clamp(48px,8vw,140px)!important;}
#main-content .af-page-hero :is(h1,.af-page-title,h2.item-title,.xsd-standard-cover-title),#main-content .af-page-hero :is(h1,.af-page-title,h2.item-title,.xsd-standard-cover-title) * {font-size:clamp(28px,4.167vw,104px)!important;max-width:100%!important;overflow-wrap:break-word;}
#main-content .af-page-hero :is(.item-desc,.item-desc p,.breadcrumb-nav,.breadcrumb-nav li,.breadcrumb-nav a,.xsd-standard-cover-copy){font-size:clamp(16px,1.15vw,24px)!important;}
html body .af-header .af-bar{padding-inline:var(--kr-gutter)!important;width:100%!important;}
@media(min-width:992px){html body .af-header #af-navigation>ul{gap:clamp(12px,1.5vw,38px)!important;}html body .af-header #af-navigation>ul>.af-nav-item>a{font-size:clamp(13px,1.4vw,28px)!important;}html body .af-logo{font-size:clamp(24px,2.5vw,56px)!important;}}
html body main .kr-solid-cta{max-width:100%!important;white-space:normal!important;text-align:center;}
html body main .kr-solid-cta>span{min-width:0;}
/* Certificate artwork stays readable instead of shrinking five pages onto a phone. */
#main-content .xsd-certificate-showcase{aspect-ratio:auto!important;padding-block:clamp(20px,3vw,60px)!important;}
#main-content .xsd-certificate-marks{flex-wrap:wrap!important;}
#main-content .xsd-certificate-documents{grid-template-columns:repeat(5,minmax(0,1fr));}
@media(max-width:1199px){
 #site-footer .ard-footer-grid{grid-template-columns:1fr 1fr!important;gap:clamp(24px,4vw,48px)!important;}
 html body #site-footer.ard-footer-reference{padding:48px var(--kr-gutter) 28px!important;min-height:0!important;}
 #site-footer .ard-footer-copyright{position:relative!important;inset:auto!important;margin-top:70px!important;padding-right:80px!important;min-height:70px!important;}
 #site-footer .ard-back-top{right:var(--kr-gutter)!important;bottom:28px!important;}
 #site-footer .ard-footer-description{padding-right:0!important;}
 #main-content .xsd-certificate-documents{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important;}
}
@media(max-width:991px){
 html body.ard-fluid-home .af-research-grid{grid-template-columns:1fr 1fr!important;gap:24px!important;}
 html body.ard-fluid-home .af-research-options{grid-column:1/-1;}
 html body.ard-fluid-home .af-factory-grid{grid-template-columns:1fr 1fr!important;gap:26px!important;}
 html body.ard-fluid-home .af-app-panel{height:auto!important;min-height:0!important;gap:clamp(24px,5vw,48px)!important;padding-bottom:clamp(160px,28vw,260px)!important;}
 #main-content .kr-material-copy{width:100%!important;}
}
@media(max-width:600px){
 html body .af-hero-stage,html body.ard-shared-navigation #main-content .af-page-hero{height:clamp(440px,78svh,720px)!important;}
 #main-content .af-page-hero :is(h1,.af-page-title,h2.item-title,.xsd-standard-cover-title),#main-content .af-page-hero :is(h1,.af-page-title,h2.item-title,.xsd-standard-cover-title) *{font-size:clamp(28px,7.4vw,44px)!important;}
 html body.ard-fluid-home .af-research-grid{grid-template-columns:1fr!important;}
 html body.ard-fluid-home .af-factory-grid{grid-template-columns:1fr!important;}
 html body.ard-fluid-home .af-colour-contact{min-height:240px!important;padding:28px var(--kr-gutter) 110px!important;}
 #site-footer .ard-footer-grid{grid-template-columns:1fr!important;}
 #main-content .xsd-certificate-documents{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;}
 #main-content .xsd-certificate-marks img{height:30px!important;max-width:140px!important;}
 html body main .kr-solid-cta{font-size:16px!important;padding:14px 20px!important;}
}
@media(max-height:500px) and (orientation:landscape){html body .af-hero-stage,html body.ard-shared-navigation #main-content .af-page-hero{height:clamp(360px,100svh,500px)!important;}}

/* Override the inherited fixed desktop cap, including route-specific rules. */
html body {--xsd-frame:calc(100% - var(--kr-gutter)*2)!important;--af-pad:var(--kr-gutter)!important;}
html body.xsd-wide-v024 .xsd-wide-page .xsd-direct-frame{padding-inline:var(--kr-gutter)!important;}
html body.xsd-wide-v024:not(.ard-fluid-home) .af-bar{width:100%!important;padding-inline:var(--kr-gutter)!important;}
