/* GP03 integration layer — CABEÇALHO MOBILE em UMA linha: [logo] [nome] [menu].  (não altera arquivo de Master; carregado depois do CSS do Master)
   Causa da quebra: o wordmark é um flex sem min-width:0 e o nome (<strong>) usa o tamanho do desktop (30–49px); o contêiner interno do cabeçalho
   (.x-header-inner/.r-header-inner) tem flex-wrap:wrap. Nomes longos quebram em várias linhas e o cabeçalho (sticky) chega a 289px.
   Só ≤550px. O nome completo continua no DOM (leitores de tela leem tudo); o corte com reticências é só visual e último recurso. */
@media (max-width:550px){

 header.p04-sticky,header.p7-header{height:auto!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important}
 header :is(.x-header-inner,.r-header-inner,.header-inner,.p7-header-inner,.wrap){display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px;height:60px!important;min-height:60px!important;padding-top:0!important;padding-bottom:0!important}
 header :is(a.x-brand,a.r-brand,a.brand,a.p7-brand){flex:1 1 0!important;min-width:0!important;max-width:100%;display:flex!important;align-items:center;margin:0}
 header :is(.p04-wordmark,.e07-demo-mark,.p7-logo-mark){display:flex!important;align-items:center;flex-wrap:nowrap!important;gap:8px;min-width:0!important;max-width:100%;overflow-wrap:normal!important;word-break:normal!important;white-space:nowrap!important}
 header .e07-demo-mark{flex:1 1 auto;min-width:0;height:auto!important;min-height:0!important}
 header .e07-demo-mark .p04-wordmark{flex:1 1 auto;min-width:0}
 header :is(.p04-wordmark,.p7-logo-mark)>:is(svg,img){flex:none;width:auto;height:auto;max-width:34px;max-height:34px}
 header :is(.p04-wordmark,.e07-demo-mark)>span,header .e07-demo-mark .p04-wordmark>span{display:block!important;min-width:0!important;max-width:100%;overflow:hidden}
 header :is(.p04-wordmark,.e07-demo-mark,.p7-logo-mark){flex-direction:row!important;height:auto!important;min-height:0!important}
 header :is(a.x-brand,a.r-brand,a.brand,a.p7-brand){flex-direction:row!important;height:auto!important;min-height:0!important}
 header :is(.p04-wordmark strong,.p7-logo-mark b){display:block!important;min-width:0;max-width:100%;font-size:clamp(15px,4.6vw,20px)!important;line-height:1.15!important;letter-spacing:.02em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;word-break:normal!important}
 header .p04-wordmark small,header .p7-logo-tag{display:none!important}
 header :is(.menu-toggle,.mobile-toggle,.mobile-menu-toggle,.menu-button,.p7-menu,.mobile-menu){flex:none!important;margin-left:auto;min-width:44px;min-height:44px}
 header .header-book{flex:none;padding-inline:10px;font-size:10px;white-space:nowrap}
 /* Psicologia: o wordmark vem embrulhado em .e07-demo-mark com display:block !important; precisa de mais especificidade */
 html body header span.e07-demo-mark{width:100%!important;max-width:100%!important;flex:1 1 auto!important;min-width:0!important}
 html body header span.e07-demo-mark>span.p04-wordmark{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px;width:100%;min-width:0;height:auto!important}
}
