/* Cabeçalho público único: o mesmo em todas as páginas (o admin tem o próprio topo).
   Carregado pelo base.html depois do site.css, do reference-shell.css e do interiors-identity-v4.css;
   a home e as páginas internas não estilizam mais o .site-header. */
.site-header { background:rgb(var(--c-bg)/.96); border-bottom:1px solid rgb(var(--c-line)); box-shadow:0 8px 32px #0003; font-family:var(--f-body); font-size:16px; line-height:1.5; }
.site-header .header-inner { width:min(1440px,calc(100% - 96px)); min-height:86px; padding:0; gap:28px; }
.site-header .brand { flex:none; gap:0; }
.site-header .brand .identity-logo { display:block; width:220px; height:78px; object-fit:contain; object-position:left center; flex:none; }
/* Na home o logo acompanha o mapa do carrossel (três imagens sobrepostas). */
.site-header .sh-scene-logo-stack { display:block; position:relative; width:220px; height:78px; flex:none; }
.site-header .brand .sh-scene-logo-stack .identity-logo { position:absolute; inset:0; width:100%; height:100%; opacity:0; transition:opacity .9s ease; }
.site-header .brand .sh-scene-logo-stack .identity-logo.is-active { opacity:1; }
.site-header .site-nav { gap:22px; }
.site-header .site-nav a { color:rgb(var(--c-text)); font-size:16px; font-weight:600; letter-spacing:0; }
.site-header .site-nav a:hover { color:rgb(var(--c-soft)); }
.site-header .site-nav a[aria-current=page] { color:rgb(var(--c-text)); background:rgb(var(--c-accent)/.07); border-radius:6px; padding-inline:13px; text-decoration:none; }
.site-header .site-nav a[aria-current=page]::after { display:none; }
.site-header .site-nav .nav-utility { color:rgb(var(--c-muted)); }
.site-header .header-actions { margin-left:0; gap:12px; }
.site-header .account-header-link { min-height:46px; color:rgb(var(--c-text)); background:rgb(var(--c-surface)); border-color:rgb(var(--c-line)); border-radius:8px; font-size:16px; font-weight:600; }
.site-header .account-header-link:hover,
.site-header .header-account[open]>summary { color:rgb(var(--c-text)); background:rgb(var(--c-surface2)); border-color:rgb(var(--c-accent)); }
.site-header .header-summary-balance { border-color:rgb(var(--c-line)); color:rgb(var(--c-accent-soft)); font-size:15px; }
.site-header .account-menu { background:rgb(var(--c-panel)); border-color:rgb(var(--c-line)); border-radius:8px; color:rgb(var(--c-text)); font-size:16px; }
.site-header .account-menu-dashboard { border-color:rgb(var(--c-line)); color:rgb(var(--c-text)); }
.site-header .account-menu-dashboard svg { color:rgb(var(--c-accent)); }
.site-header .account-menu-balance small,
.site-header .account-menu-chevron { color:rgb(var(--c-muted)); }
.site-header .account-menu-balance .balance-badge { color:rgb(var(--c-accent-soft)); }
.site-header .account-menu .account-streamer-control { border-color:rgb(var(--c-line)); color:rgb(var(--c-text)); font-family:inherit; }
.site-header .account-menu .account-streamer-control.active { background:rgb(var(--c-accent)/.08); border-color:rgb(var(--c-accent)/.5); }
.site-header .account-menu .account-add-balance { min-height:44px; padding:9px 16px; border:1px solid rgb(var(--c-btn)); border-radius:8px; background:rgb(var(--c-btn)); box-shadow:none; color:rgb(var(--c-btn-ink)); font:700 15px/1.4 var(--f-body); }
.site-header .account-menu .account-add-balance:hover { background:rgb(var(--c-btn-hover)); border-color:rgb(var(--c-btn-hover)); color:rgb(var(--c-btn-ink)); filter:none; }
.site-header .menu-toggle { color:rgb(var(--c-text)); background:rgb(var(--c-surface)); border-color:rgb(var(--c-line)); border-radius:8px; }
@media(max-width:1250px) {
  .site-header .header-inner { gap:20px; }
  .site-header .site-nav { gap:16px; }
  /* com 6 links o saldo no botão não cabe nessa faixa; ele continua no menu da conta */
  .site-header .header-account .header-summary-balance { display:none; }
}
@media(max-width:1100px) {
  .site-header .header-inner { min-height:82px; gap:0 20px; }
  .site-header .site-nav { gap:3px; border-color:rgb(var(--c-line)); }
  .site-header .site-nav a,
  .site-header .site-nav a[aria-current=page] { font-size:17px; padding:11px 12px; border-radius:6px; }
}
@media(max-width:760px) {
  .site-header .header-inner { width:calc(100% - 40px); gap:0 12px; min-height:76px; }
  .site-header .brand .identity-logo,
  .site-header .sh-scene-logo-stack { width:188px; height:68px; }
  .site-header .account-header-link { font-size:15px; }
}
@media(max-width:580px) {
  .site-header .account-header-link { min-height:42px; padding:8px 12px; }
  .site-header .menu-toggle { width:42px; height:42px; }
}
@media(max-width:420px) {
  .site-header .header-inner { gap:0 8px; }
  .site-header .brand .identity-logo,
  .site-header .sh-scene-logo-stack { width:174px; height:64px; }
  .site-header .header-actions { gap:6px; }
  .site-header .account-header-link { padding:8px 10px; font-size:14px; }
}
@media(max-width:340px) {
  .site-header .header-inner { width:calc(100% - 32px); }
  .site-header .brand .identity-logo,
  .site-header .sh-scene-logo-stack { width:150px; height:59px; }
}
@media(prefers-reduced-motion:reduce) {
  .site-header .brand .sh-scene-logo-stack .identity-logo { transition:none; }
}
