/* Cabeçalho público: mesmo HTML visual e taxonomia do componente canônico
 * /edital/includes/topbar.php + /edital/assets/css/perfil_topbar_premium.css.
 * Apenas Entrar/Criar conta substituem o perfil autenticado.
 * Demais partes da landing mantidas, sem acesso a sessão nem ledger de XP.
 */
body .cv-page .pi-topbar,body .cv-page .pi-topbar *{box-sizing:border-box}
body .cv-page .pi-topbar{
  position:relative;z-index:120;background:linear-gradient(105deg,#061f3c,#04172e 62%,#03152c);
  border-bottom:1px solid #23415d;box-shadow:0 4px 18px #07182c30;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.5;
}
body .cv-page .pi-topbar-main{
  width:calc(100% - 44px);height:68px;min-height:68px;margin:auto;
  display:flex;align-items:center;gap:clamp(8px,1.3vw,20px);
}
body .cv-page .pi-brand{width:172px;height:52px;display:flex;align-items:center;flex:none}
body .cv-page .pi-brand img{display:block;width:170px;max-width:170px;max-height:48px;height:auto;object-fit:contain}
body .cv-page .pi-brand-divider{width:1px;height:33px;background:#ffffff40;flex:none}
body .cv-page .pi-panel-label{display:flex;flex:none;flex-direction:column;gap:2px;white-space:nowrap}
body .cv-page .pi-panel-label strong{color:#f3f7ff;font-size:11px;font-weight:800;letter-spacing:1.1px;line-height:1.3}
body .cv-page .pi-panel-label span{color:#a9bdd8;font-size:10px;line-height:1.35}
body .cv-page .pi-extra-nav{
  display:flex;align-items:center;justify-content:center;gap:2px;min-width:0;margin-left:auto;
}
body .cv-page .pi-extra-nav a{
  color:#e7f0fd;text-decoration:none;white-space:nowrap;line-height:1.2;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:37px;padding:0 clamp(7px,.8vw,13px);
  border-radius:24px;font-size:12px;font-weight:650;
}
body .cv-page .pi-extra-nav a:hover,body .cv-page .pi-extra-nav a:focus-visible{
  background:#ffffff1e;color:#fff;outline-offset:3px;
}
body .cv-page .pi-extra-nav a.active{
  color:#fff;background:linear-gradient(90deg,#ff5c1b,#ff7b22);font-weight:750;
  box-shadow:0 5px 12px #ff701b2d;
}
body .cv-page .pi-public-actions{display:flex;align-items:center;gap:8px;flex:none;margin-left:6px}
body .cv-page .pi-public-actions a{
  min-height:37px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;
  color:#fff;font-size:12px;font-weight:750;text-decoration:none;white-space:nowrap;border-radius:10px;
}
body .cv-page .pi-public-login{border:1px solid #ffffff6e;background:transparent}
body .cv-page .pi-public-login:hover{background:#ffffff1e}
body .cv-page .pi-public-register{background:linear-gradient(90deg,#ff5c1b,#ff7b22);box-shadow:0 5px 12px #ff701b2d}
body .cv-page .pi-public-register:hover{filter:brightness(1.07)}
body .cv-page .pi-topbar-gradient{display:none}
@media(max-width:1360px){
  body .cv-page .pi-panel-label span{display:none}
  body .cv-page .pi-brand{width:152px}
  body .cv-page .pi-brand img{width:150px;max-width:150px}
}
@media(max-width:1150px){
  body .cv-page .pi-panel-label,body .cv-page .pi-brand-divider{display:none}
  body .cv-page .pi-extra-nav a{padding-inline:9px;font-size:11px}
}
@media(max-width:930px){
  body .cv-page .pi-extra-nav{display:none}
  body .cv-page .pi-topbar-main{justify-content:space-between}
  body .cv-page .pi-public-actions{margin-left:auto}
}
@media(max-width:480px){
  body .cv-page .pi-topbar-main{height:66px;min-height:66px;width:calc(100% - 24px);gap:8px}
  body .cv-page .pi-brand{width:146px;height:47px}
  body .cv-page .pi-brand img{width:145px;max-width:145px;max-height:44px}
  body .cv-page .pi-public-actions{gap:6px}
  body .cv-page .pi-public-actions a{min-height:35px;padding:0 10px;font-size:12px;border-radius:9px}
}
@media(max-width:345px){
  body .cv-page .pi-brand{width:122px}
  body .cv-page .pi-brand img{width:121px;max-width:121px}
  body .cv-page .pi-public-actions a{font-size:11px;padding:0 8px}
}



/* TOPBAR PUBLICA V2 20261122 | espaco real para logo, navegação e CTA */
body .cv-page .pi-topbar-main{
 height:116px!important;min-height:116px!important;
 width:calc(100% - 44px)!important;
 gap:clamp(9px,1.3vw,20px)!important;
}
body .cv-page .pi-brand{width:242px!important;height:78px!important}
body .cv-page .pi-brand img{
 width:238px!important;max-width:238px!important;max-height:74px!important;
}
body .cv-page .pi-brand-divider{height:50px!important}
body .cv-page .pi-panel-label strong{font-size:14px!important}
body .cv-page .pi-panel-label span{font-size:12px!important}
body .cv-page .pi-extra-nav a{
 min-height:55px!important;font-size:15px!important;font-weight:750!important;
 padding:0 clamp(9px,.85vw,15px)!important;border-radius:25px!important;
}
body .cv-page .pi-public-actions{gap:11px!important}
body .cv-page .pi-public-actions a{
 min-height:56px!important;padding:0 clamp(14px,1.2vw,20px)!important;
 font-size:16px!important;border-radius:14px!important;font-weight:800!important;
}
@media(max-width:1360px){
 body .cv-page .pi-brand{width:210px!important}
 body .cv-page .pi-brand img{width:207px!important;max-width:207px!important}
 body .cv-page .pi-extra-nav a{font-size:14px!important;padding-inline:8px!important}
}
@media(max-width:1150px){
 body .cv-page .pi-topbar-main{height:108px!important;min-height:108px!important;gap:8px!important}
 body .cv-page .pi-brand{width:186px!important;height:68px!important}
 body .cv-page .pi-brand img{width:184px!important;max-width:184px!important;max-height:65px!important}
 body .cv-page .pi-extra-nav a{font-size:13px!important;padding-inline:5px!important;min-height:49px!important}
 body .cv-page .pi-public-actions a{font-size:14px!important;min-height:50px!important;padding-inline:11px!important}
}
@media(max-width:930px){
 body .cv-page .pi-extra-nav{display:none!important}
 body .cv-page .pi-topbar-main{height:108px!important;min-height:108px!important}
 body .cv-page .pi-brand{width:205px!important}
 body .cv-page .pi-brand img{width:202px!important;max-width:202px!important}
}
@media(max-width:690px){
 body .cv-page .pi-topbar-main{
  height:98px!important;min-height:98px!important;width:calc(100% - 20px)!important;
  gap:7px!important;
 }
 body .cv-page .pi-brand{width:165px!important;height:64px!important}
 body .cv-page .pi-brand img{width:162px!important;max-width:162px!important;max-height:61px!important}
 body .cv-page .pi-public-actions{gap:7px!important}
 body .cv-page .pi-public-actions a{
  min-height:49px!important;font-size:14px!important;
  padding:0 11px!important;border-radius:12px!important;
 }
 body .cv-page .pi-extra-nav{display:none!important}
}
@media(max-width:370px){
 body .cv-page .pi-brand{width:clamp(110px,37vw,135px)!important}
 body .cv-page .pi-brand img{width:100%!important;max-width:100%!important}
 body .cv-page .pi-public-actions{gap:5px!important}
 body .cv-page .pi-public-actions a{font-size:13px!important;padding:0 8px!important}
}

/* TOPBAR PUBLICA V3 20261122 | ampliar logo e botoes de entrada/cadastro */
body .cv-page .pi-brand{width:276px!important;height:84px!important}
body .cv-page .pi-brand img{width:272px!important;max-width:272px!important;max-height:83px!important}
body .cv-page .pi-extra-nav a{min-height:61px!important;font-size:16px!important}
body .cv-page .pi-public-actions{gap:13px!important}
body .cv-page .pi-public-actions a{
 min-height:64px!important;font-size:18px!important;
 padding-inline:clamp(17px,1.3vw,25px)!important;border-radius:15px!important;
}
@media(max-width:1360px){
 body .cv-page .pi-brand{width:233px!important}
 body .cv-page .pi-brand img{width:230px!important;max-width:230px!important}
 body .cv-page .pi-extra-nav a{font-size:14px!important;padding-inline:7px!important}
}
@media(max-width:1150px){
 body .cv-page .pi-brand{width:213px!important;height:76px!important}
 body .cv-page .pi-brand img{width:210px!important;max-width:210px!important;max-height:73px!important}
 body .cv-page .pi-extra-nav a{font-size:13.5px!important;padding-inline:5px!important;min-height:53px!important}
 body .cv-page .pi-public-actions a{min-height:56px!important;font-size:15px!important;padding-inline:12px!important}
}
@media(max-width:930px){
 body .cv-page .pi-brand{width:230px!important}
 body .cv-page .pi-brand img{width:227px!important;max-width:227px!important}
 body .cv-page .pi-extra-nav{display:none!important}
}
@media(max-width:690px){
 body .cv-page .pi-brand{width:clamp(153px,44vw,181px)!important;height:67px!important}
 body .cv-page .pi-brand img{width:100%!important;max-width:100%!important;max-height:66px!important}
 body .cv-page .pi-public-actions{gap:7px!important}
 body .cv-page .pi-public-actions a{min-height:56px!important;font-size:15px!important;padding-inline:11px!important}
}
@media(max-width:390px){
 body .cv-page .pi-brand{width:clamp(117px,40vw,151px)!important}
 body .cv-page .pi-public-actions{gap:6px!important}
 body .cv-page .pi-public-actions a{min-height:53px!important;font-size:14px!important;padding-inline:10px!important}
}
@media(max-width:345px){
 body .cv-page .pi-brand{width:110px!important}
 body .cv-page .pi-public-actions{gap:5px!important}
 body .cv-page .pi-public-actions a{font-size:12px!important;padding-inline:7px!important}
}
@media(orientation:portrait){body .cv-page .pi-extra-nav{display:none!important}}


/* STICKY GLOBAL NAV 20261122 — marketing; habilita sticky sem quebrar fluxo. */
/* O overflow-y:hidden de .cv-page impede position:sticky. Preserva corte horizontal. */
body .cv-page{overflow-x:clip!important;overflow-y:visible!important}
body .cv-page .pi-topbar{
  position:sticky!important;top:0!important;
  z-index:120!important;width:100%!important;
}
body .cv-page [id]{scroll-margin-top:130px}
@media(max-width:1150px){body .cv-page [id]{scroll-margin-top:120px}}
@media(max-width:690px){body .cv-page [id]{scroll-margin-top:110px}}


/* HOME PÚBLICA — apenas PC com mouse: cabeçalho compacto e foco no cadastro.
   Tablet e celular preservam a distribuição e dimensões anteriores. */
@media (min-width:1100px) and (hover:hover) and (pointer:fine) {
  body .cv-page .pi-topbar-main{
    width:calc(100% - 56px)!important;
    height:82px!important;
    min-height:82px!important;
    gap:12px!important;
    justify-content:space-between!important;
  }
  body .cv-page .pi-brand{
    width:216px!important;
    height:63px!important;
    flex:0 0 216px!important;
  }
  body .cv-page .pi-brand img{
    display:block!important;
    width:214px!important;
    max-width:214px!important;
    max-height:60px!important;
    height:auto!important;
  }
  body .cv-page .pi-brand-divider,
  body .cv-page .pi-panel-label,
  body .cv-page .pi-extra-nav{display:none!important}
  body .cv-page .pi-public-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    margin-left:auto!important;
    gap:12px!important;
  }
  body .cv-page .pi-public-actions a{
    min-height:49px!important;
    padding:0 19px!important;
    font-size:16px!important;
    line-height:1.2!important;
    border-radius:12px!important;
  }
}

/* Desktop: padrao compacto de 64px, sem alterar touch. */
@media (min-width: 941px) and (hover: hover) and (pointer: fine) {
 @media not all and (any-pointer: coarse) {

body .cv-page .pi-topbar-main{height:64px!important;min-height:64px!important;padding-block:0!important}
body .cv-page .pi-brand{width:180px!important;height:46px!important;flex:0 1 180px!important}
body .cv-page .pi-brand img{width:180px!important;max-width:180px!important;max-height:45px!important}
body .cv-page .pi-public-actions a{min-height:40px!important;font-size:14px!important;padding-inline:14px!important}
body .cv-page [id]{scroll-margin-top:76px}

 }
}
