/* Regras finais compartilhadas: medidas fluidas sem cortar conteúdo. */
html{ -webkit-text-size-adjust:100%;text-size-adjust:100% }
body{min-width:0}
img{image-rendering:auto}
main,section,article,figure,form,fieldset,header,footer{min-width:0}
figure{max-width:100%}
input,textarea,select{max-width:100%;min-width:0}
main :is(p,li,address,summary,h1,h2,h3){overflow-wrap:break-word}
main.sub-page .brand-hero{width:calc(100% / .9);margin-left:calc(-100% / 18);margin-bottom:14px}
main.sub-page .brand-hero .sub-waves{width:calc(100% / .9);margin-left:calc(-100% / 18);max-width:none}
main.sub-page .brand-hero>figure{min-width:0;max-width:100%}
main.sub-page .brand-hero>figure img:not(.source-photo){max-width:100%;object-fit:contain}
/* Nada do conteúdo informativo invade as faixas coloridas. */
main.sub-page>.tox-section,main.sub-page>.tox-contact,main.sub-page>.unit-grid,main.sub-page>.results-access,main.sub-page>.contact-layout{position:relative;min-width:0;margin-top:0}
.tox-contact{flex-wrap:wrap;gap:20px}
.tox-contact>.contact-message-whatsapp{flex:1 1 500px;max-width:100%;min-width:0}
.contact-message-whatsapp>div>p{white-space:normal}
.tox-contact a.tox-units-button{white-space:normal;max-width:100%}
body>footer,.services>.home-footer{flex-wrap:wrap;min-width:0;max-width:100%;gap:20px 36px}
body>footer p,.services>.home-footer p{white-space:normal;max-width:65ch}
footer .footer-contact-version{max-width:100%;min-width:0;flex-wrap:wrap;gap:16px 40px}
footer .site-version{position:static}
/* A largura disponível manda no menu, inclusive com zoom e telas intermediárias. */
@media(min-width:651px) and (max-width:1750px){
 body header{flex-wrap:wrap}
 body header #navigation{order:3;flex:1 0 100%;width:100%;grid-template-columns:repeat(6,minmax(0,1fr))}
 body header #navigation>a,body header #navigation>button{width:90%;font-size:14px}
 body header .desktop-results-actions,body header>a.results{margin-left:auto}
}
/* Tablets: três assuntos em colunas reais, sem coordenadas nem deslocamentos. */
@media(min-width:651px) and (max-width:1450px){
 .services{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1.2fr);grid-template-rows:auto auto auto auto auto;gap:28px 24px;padding-top:190px}
 .services>.exam-explain{grid-column:1;grid-row:1;width:100%;align-self:start}
 .services>.quick{grid-column:3;grid-row:1;align-self:start;justify-self:stretch;width:100%;margin:0;padding:0;translate:none!important}
 .services>.quick>a{width:100%;max-width:100%;min-height:78px;height:auto;flex:auto;display:grid;grid-template-columns:30px minmax(0,1fr) 32px;gap:8px;padding:10px}
 .services>.quick h2{font-size:17px;white-space:normal}
 .services>.quick p{font-size:13px}
 .services>.quick .home-icon{width:30px;min-width:30px;font-size:32px}
 .services>.quick .whatsapp-icon{width:32px;min-width:32px;height:32px;margin:0}
 .services>.pathology{display:block;grid-column:1;grid-row:2;padding:0;margin:0}
 .services>.pathology>div{display:flex;gap:14px;max-width:100%}
 .services>.pathology h2{font-size:28px;margin:0;padding:0}
 .services>.pathology p{font-size:16px;margin:0}
 .services>.sus-highlight{grid-column:2;grid-row:2;padding:0;align-self:start;gap:14px}
 .services .sus-highlight h2{font-size:22px}
 .services .sus-highlight .sus-symbol{width:100px;max-width:38%;height:auto}
 .services>.queue{display:flex;grid-column:3;grid-row:2;align-self:start;justify-self:stretch;align-items:flex-start;justify-content:center;gap:0;width:100%;min-height:0;height:auto;padding:0;margin:0;transform:none}
 .services>.queue .queue-copy{display:block;flex:0 1 100px;width:100px;max-width:100px;transform:none;margin:0;padding:0;position:static}
 .services>.queue h2{font-size:28px;margin:0;padding:0;transform:none}
 .services>.queue p{font-size:16px;margin:14px 0 0;transform:none}
 .services>.queue .queue-totem{position:static;flex:0 1 145px;width:145px;min-width:0;max-width:55%;height:auto;margin:0 0 0 -8px;transform:none;scale:1;object-fit:contain;align-self:start}
 .services>.service-titles{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(48px,auto);gap:16px;margin:12px 0 0}
 .services>.service-titles>.service{height:auto;max-height:none;min-height:48px}
 .services>.home-footer{grid-column:1/-1;grid-row:4;margin:0;padding:22px 0 8px}
}
@media(min-width:2000px){
 /* Limite de leitura evita que fotografias e textos estiquem sem necessidade em 4K. */
 .services{padding-left:max(5%,calc((100% - 2200px)/2));padding-right:max(5%,calc((100% - 2200px)/2))}
 main.sub-page{padding-left:max(5%,calc((100% - 2200px)/2));padding-right:max(5%,calc((100% - 2200px)/2))}
 main.sub-page .brand-hero{width:100vw;margin-left:calc((100% - 100vw)/2);padding-inline:max(5vw,calc((100vw - 2200px)/2))}
 main.sub-page .brand-hero .sub-waves{width:100vw;margin-left:calc((100% - 100vw)/2)}
}
@media(max-width:900px){
 main.sub-page{grid-template-columns:minmax(0,1fr)}
 main.sub-page>.tox-section{grid-column:1/-1}
 .combo-exam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .results-access{grid-template-columns:1fr}
 main.units-sub-page>.unit-grid{grid-template-columns:1fr}
 .contact-message-whatsapp>div{flex:1 1 auto}
}
@media(max-width:650px){
 body header{gap:12px;padding-inline:5%}
 body header>a:first-child{min-width:0;max-width:100%}
 body header .logo{max-width:100%;height:auto}
 body.tox-body header{position:relative;top:auto}
 body.tox-body header>a:first-child{flex:1 1 100%;display:flex;justify-content:center}
 body.tox-body header .logo{width:190px;max-width:70vw}
 body.tox-body header .mobile-nav-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}
 body header #navigation>a,body header #navigation>button{width:100%;font-size:14px;white-space:normal;height:auto;min-height:44px}
 body header a.results,body header .desktop-results-actions{width:100%;max-width:100%}
 body header a.results{white-space:normal;text-align:center;justify-content:center}
 main.sub-page .brand-hero{grid-template-columns:minmax(0,1fr);margin-bottom:12px}
 main.sub-page .brand-hero figure{position:relative;inset:auto;width:100%;margin:14px 0 0;opacity:1}
 main.sub-page .brand-hero figure img:not(.source-photo),main.sex-page .brand-hero figure .sex-hero-image{width:100%;height:auto;max-height:none;object-fit:contain}
 main.combo-page.sub-page .brand-hero{grid-template-columns:minmax(0,1fr)}
 main.combo-page.sub-page .brand-hero figure.combo-photo-original{margin:14px 0 0;max-width:100%}
 main.sub-page .brand-hero .sub-waves{margin-top:18px}
 .services{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);grid-template-rows:auto auto auto auto auto auto;gap:24px 12px;padding-top:195px;padding-inline:5%}
 .services>.exam-explain{grid-column:1/-1;grid-row:1;width:min(100%,360px);margin:0;justify-self:center}
 .services>.quick{grid-column:1/-1;grid-row:2;width:min(100%,360px);max-width:100%;margin:0;justify-self:center;padding:0;translate:none!important}
 .services>.quick>a{width:100%;max-width:100%;height:auto;min-height:78px;display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:8px}
 .services>.quick>a h2{font-size:19px;text-align:center}
 .services>.quick>a .home-icon,.services>.quick>a .whatsapp-icon{width:36px;min-width:36px;height:36px;margin:0}
 .services>.pathology{grid-column:1;grid-row:3;display:block;margin:0;padding:0;align-self:start}
 .services>.pathology>div{display:flex;gap:14px;width:100%;max-width:100%}
 .services>.pathology h2{font-size:clamp(21px,5.5vw,28px);margin:0;padding:0}
 .services>.pathology p{font-size:15px;line-height:1.4;margin:0}
 .services>.queue{grid-column:2;grid-row:3;display:flex;align-items:flex-start;justify-content:center;align-self:start;gap:0;width:100%;max-width:100%;min-height:0;height:auto;margin:0;padding:0;transform:none}
 .services>.queue .queue-copy{display:block;flex:0 1 85px;min-width:0;width:85px;max-width:85px;position:static;margin:0;padding:0;transform:none}
 .services>.queue h2{font-size:clamp(21px,5.5vw,28px);line-height:1.12;margin:0;padding:0;transform:none}
 .services>.queue p{font-size:14px;line-height:1.4;margin:14px 0 0;transform:none}
 .services>.queue .queue-totem{position:static;flex:0 1 110px;min-width:0;width:110px;max-width:58%;height:auto;transform:none;scale:1;align-self:start;margin:0 0 0 -6px;object-fit:contain}
 .services>.sus-highlight{grid-column:1/-1;grid-row:4;max-width:100%;width:100%;margin:0;padding:0;gap:20px}
 .services .sus-highlight .sus-message{max-width:65%;width:auto}
 .services .sus-highlight .sus-symbol{width:120px;max-width:32%;height:auto}
 .services>.service-titles{grid-column:1/-1;grid-row:5;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(48px,auto);gap:14px;margin:0}
 .services>.service-titles>.service{height:auto;min-height:48px;max-height:none;padding:8px}
 .services>.home-footer{grid-column:1/-1;grid-row:6;flex-direction:column;width:100%;margin:0;padding:8px 0;gap:16px}
 .combo-exam-grid,.combo-prep{grid-template-columns:1fr}
 main.units-sub-page .unit-photo-placeholder{max-width:100%;width:100%;margin-top:12px}
 main.units-sub-page .unit-card{height:auto;padding-top:60px}
 main.units-sub-page .unit-title-row .unit-title-logo{max-width:65%;height:auto;max-height:37px}
 main.units-sub-page .unit-title-row h2{overflow-wrap:break-word}
 .tox-contact>.contact-message-whatsapp{flex-basis:100%;gap:12px}
 .tox-contact a.tox-whatsapp-icon{width:60px;height:60px;min-width:60px}
 .tox-contact a.tox-whatsapp-icon svg{width:48px;height:48px}
 dialog{max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:28px 18px}
 input,textarea,select{font-size:16px}
 .about-memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:359px){
 .services{grid-template-columns:minmax(0,1fr)}
 .services>.pathology{grid-column:1;grid-row:3}
 .services>.queue{grid-column:1;grid-row:4;justify-content:center}
 .services>.sus-highlight{grid-row:5}
 .services>.service-titles{grid-row:6}
 .services>.home-footer{grid-row:7}
 .about-building-pair{grid-template-columns:1fr}
}
@media(hover:none),(pointer:coarse){
 .services>.service-titles>.service:hover{transform:none}
}
