/* Medidas compartilhadas: a largura da janela governa o layout, não o monitor. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0}
body.units-waves-page main :is(article,section,aside,form,fieldset,figure){min-width:0;box-sizing:border-box}
body.units-waves-page main :is(input,textarea,select){min-width:0;max-width:100%;box-sizing:border-box}
body.units-waves-page main :is(p,li,address){overflow-wrap:break-word}
/* Ações da inicial ocupam a própria coluna, inclusive em telas estreitas. */
body.home-waves-page .home-quick-links>a{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;white-space:normal;overflow-wrap:normal}
@media(min-width:801px){
 body.units-waves-page>header{display:grid!important;grid-template-columns:minmax(180px,auto) minmax(0,1fr) auto;align-items:center;gap:18px 22px;box-sizing:border-box}
 body.units-waves-page>header>a:first-of-type{grid-column:1;grid-row:1;min-width:0}
 body.units-waves-page>header .logo{width:clamp(220px,19vw,340px)!important;max-width:100%!important;height:auto!important;object-fit:contain}
 body.units-waves-page>header .desktop-results-actions{grid-column:3;grid-row:1;min-width:0;max-width:280px;justify-self:end;margin-left:0}
 body.units-waves-page>header #navigation{grid-column:2;grid-row:1;display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:center;gap:clamp(6px,1vw,20px)!important;min-width:0;width:100%!important;margin:0!important;padding:0!important}
 html body.units-waves-page.subpages-approved>header #navigation>a,
 html body.units-waves-page.subpages-approved>header #navigation>details{flex:0 1 auto!important;min-width:0!important;width:max-content!important;max-width:none!important;margin:0!important}
 html body.units-waves-page.subpages-approved>header #navigation>a,
 html body.units-waves-page.subpages-approved>header #navigation>details>summary{width:max-content!important;min-width:0!important;max-width:none!important;font-size:clamp(17px,1.2vw,22px)!important;line-height:1.25!important;padding:10px 8px!important;white-space:nowrap!important;box-sizing:border-box}
 body.units-waves-page>header #navigation .units-exams-list{max-width:min(360px,90vw);box-sizing:border-box}
 body.units-waves-page main{max-width:1840px;margin-left:auto;margin-right:auto}
 body.units-waves-page>footer{box-sizing:border-box}
}
@media(min-width:801px) and (max-width:1600px){
 body.units-waves-page>header{grid-template-columns:minmax(180px,1fr) minmax(0,1fr);gap:10px 20px}
 body.units-waves-page>header .desktop-results-actions{grid-column:2;grid-row:1}
 body.units-waves-page>header #navigation{grid-column:1/-1;grid-row:2;gap:clamp(6px,1.4vw,22px)!important}
 html body.units-waves-page.subpages-approved>header #navigation>a,
 html body.units-waves-page.subpages-approved>header #navigation>details>summary{font-size:clamp(17px,1.5vw,21px)!important;padding:8px 7px!important}
}
@media(min-width:2400px){
 body.units-waves-page>header{padding-left:max(4%,calc((100vw - 1840px)/2));padding-right:max(4%,calc((100vw - 1840px)/2))}
}
@media(max-width:800px){
 body.units-waves-page main :is(input,textarea,select){font-size:16px!important}
 body.home-waves-page .home-quick-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
 body.home-waves-page .home-quick-links>a{font-size:clamp(16px,4.4vw,19px);line-height:1.25;min-height:64px}
 body.home-waves-page .home-quick-links>a>span{flex:0 0 auto}
 body.units-waves-page .contact-channel a[href^="mailto:"],body.units-waves-page .unit-info a[href^="mailto:"]{overflow-wrap:anywhere}
 body.units-waves-page :is(.tox-button,.tox-units-button,.contact-shortcuts a,.portal-enter,.feedback-button){max-width:100%;box-sizing:border-box;white-space:normal}
}
@media(max-width:359px){
 body.home-waves-page .home-quick-links{gap:10px!important}
 body.home-waves-page .home-quick-links>a{padding:8px 6px;gap:4px;font-size:16px}
}
@media(min-width:801px){
 html body.units-waves-page.tox-body>header #navigation>a,
 html body.units-waves-page.tox-body>header #navigation>details{width:max-content!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;margin:0!important}
 html body.units-waves-page.tox-body>header #navigation>a,
 html body.units-waves-page.tox-body>header #navigation>details>summary{width:max-content!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;font-size:clamp(17px,1.2vw,22px)!important;line-height:1.25!important;padding:10px 8px!important}
}
@media(min-width:801px) and (max-width:1600px){
 html body.units-waves-page.tox-body>header #navigation>a,
 html body.units-waves-page.tox-body>header #navigation>details>summary{font-size:clamp(17px,1.5vw,21px)!important;padding:8px 7px!important}
}
/* Em monitores baixos, preserva os quadrados e reserva lugar para ações e rodapé. */
@media(min-width:801px) and (max-height:900px){
 body.home-waves-page .home-card-carousel,
 body.home-waves-page .home-quick-links{max-width:min(1260px,max(720px,calc((100svh - 464px)*3 + 114px)))}
}
@media(min-width:801px) and (max-height:900px){
 body.home-waves-page .home-card-carousel,
 body.home-waves-page .home-quick-links{max-width:min(1260px,max(720px,calc((100svh - 500px)*3 + 64px)))}
}
