/* Header compacto do Colóquio – apenas logo + rótulo da página ativa */
:root{--capua-header-sticky-top:0px;--capua-header-height:70px;--capua-menu-width:280px;--capua-strip-height:28px;--edu-blue:#263A54;--edu-gold:#D4AF37}
/* Ajusta deslocamento de rolagem para considerar header fixo (anchors, foco, etc.) */
html{scroll-padding-top:calc(var(--capua-header-height,70px) + var(--capua-header-sticky-top,0px) + 16px)}
.capua-header{max-width:960px;margin:0 auto;padding:.5rem .85rem .5rem;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 4px 14px rgba(0,0,0,.05);position:fixed !important;top:var(--capua-header-sticky-top) !important;left:0;right:0;z-index:10020;min-height:var(--capua-header-height);display:flex;align-items:center;justify-content:center;backdrop-filter:none}
/* Quando a barra de avaliador estiver presente, desce o header para baixo dela */
.capua-header-strip + .capua-header{top:calc(var(--capua-header-sticky-top) + var(--capua-strip-height)) !important}
/* Espaço abaixo do header fixo para o conteúdo (compat c/ BuddyBoss/BuddyPress) */
body.has-capua-header{padding-top:calc(var(--capua-header-height,70px) + var(--capua-header-sticky-top,0px) + 16px) !important;}
body.has-capua-header.has-capua-header-strip{padding-top:calc(var(--capua-header-height,70px) + var(--capua-header-sticky-top,0px) + var(--capua-strip-height,28px) + 16px) !important}
/* Placeholder gerado via JS não deve empurrar conteúdo */
.capua-header-placeholder{height:0 !important; display:block;}
/* Wrapper do painel: evita dupla compensação quando o body já tem padding-top */
#capua-app.capua-page{margin-top:0;} 
body.admin-bar #capua-app.capua-page{margin-top:0;} 
.capua-header-brand{display:flex;flex-direction:column;align-items:center;gap:.12rem}
/* Elimina <p> fantasma que alguns temas/blocos podem injetar dentro do shortcode */
.capua-header-brand > p{display:none !important;margin:0 !important;padding:0 !important;height:0 !important;line-height:0 !important}
.capua-header-logo{max-width:300px;height:auto;object-fit:contain;display:block;margin:0 !important}
.capua-header-text-logo{font-size:1.25rem;color:var(--edu-blue);letter-spacing:.5px;font-weight:600}
.capua-header-page-label{font-size:.65rem;font-weight:600;color:#475569;letter-spacing:.35px;opacity:.85;text-transform:uppercase;line-height:1.05;margin:0}
.capua-header-page-label::before{content:"";display:block;width:30px;height:2px;background:var(--edu-gold);margin:0 auto .12rem;border-radius:2px;opacity:.7}
/* Oculta header do tema e título padrão para liberar espaço visual */
body.has-capua-header .site-header,
body.has-capua-header #masthead,
body.has-capua-header header.site-header{display:none !important}
body.has-capua-header .entry-header,body.has-capua-header .page-header{margin-top:0 !important}
body.has-capua-header .entry-title,body.has-capua-header .page-title{font-size:.001px !important;line-height:0 !important;margin:0 !important;height:0 !important;overflow:hidden !important;opacity:.01 !important}
/* Normaliza o espaço no topo do conteúdo em páginas do plugin (evita “buracos”) */
body.has-capua-plugin .site-content,
body.has-capua-plugin #content,
body.has-capua-plugin .entry-content,
body.has-capua-plugin .wp-site-blocks{margin-top:0 !important;padding-top:4px}
body.has-capua-plugin .entry-content > :first-child,
body.has-capua-plugin .wp-site-blocks > :first-child{margin-top:0 !important}
/* Compensa cabeçalho fixo para alvos de rolagem interna (ancoras) */
body.has-capua-plugin .capua-page [id],
body.has-capua-plugin .entry-content [id],
body.has-capua-plugin .wp-site-blocks [id]{scroll-margin-top:calc(var(--capua-header-height,70px) + var(--capua-header-sticky-top,0px) + 16px)}
/* Garante pequena aproximação do primeiro bloco das telas do plugin */
body.has-capua-plugin .capua-receipt,
body.has-capua-plugin .capua-my-submissions,
body.has-capua-plugin .capua-eval,
body.has-capua-plugin .capua-submission-form{margin-top:.25rem}
/* Oculta rodapés/títulos globais adicionais (Twenty Twenty-Five / block themes) */
body.has-capua-plugin .wp-site-blocks > footer,
body.has-capua-plugin .wp-site-blocks footer,
body.has-capua-plugin .wp-block-template-part[aria-label="Footer"],
body.has-capua-plugin .wp-block-group[aria-label="Footer"],
body.has-capua-plugin .wp-block-group footer{display:none !important}
/* Não ocultar headers de block themes globalmente; o cabeçalho do tema pode coexistir se necessário.
	Caso precise esconder em páginas específicas, faça via shortcode/JS adicionando classes contextuais. */
/* Admin bar offset */
body.admin-bar{--capua-header-sticky-top:32px}
@media screen and (max-width:782px){body.admin-bar{--capua-header-sticky-top:46px}}
/* Fallback fixo */
.capua-header.is-fixed{position:fixed !important;top:var(--capua-header-sticky-top) !important;left:calc(var(--capua-menu-width,280px) + .75rem);right:.75rem;max-width:960px}
@media (max-width:720px){
	.capua-header{left:0;right:0;margin:0;padding:.55rem .85rem .55rem;border-radius:0;box-shadow:0 3px 10px rgba(0,0,0,.08);} 
	body.has-capua-header{padding-top:calc(var(--capua-header-height,70px) + var(--capua-header-sticky-top,0px) + 16px) !important}
	body.has-capua-header.has-capua-header-strip{padding-top:calc(var(--capua-header-height,70px) + var(--capua-header-sticky-top,0px) + var(--capua-strip-height,28px) + 16px) !important}
	.capua-header-logo{max-width:220px}
}

/* Barra fina para avaliadores */
.capua-header-strip{position:fixed;top:var(--capua-header-sticky-top);left:calc(var(--capua-menu-width,280px) + .75rem);right:.75rem;z-index:10021;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.35rem .6rem;background:#F8FAFF;border:1px solid #E0E7FF;border-radius:10px;color:#1f2937;font-size:.85rem;line-height:1.15}
.capua-header-strip .capua-strip-msg{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.capua-header-strip .capua-strip-cta{display:inline-flex;align-items:center;gap:.35rem;background:#1d4ed8;color:#fff !important;border-radius:8px;padding:.25rem .55rem;font-weight:600;font-size:.8rem;text-decoration:none}
.capua-header-strip .capua-strip-cta:hover{background:#1e40af}
@media (max-width:720px){
	.capua-header-strip{left:0;right:0;border-radius:0}
}
