/* Si Bunbun header sync — Foxiz pages only */
body:not(.home) #header-mobile,
body:not(.home) #header-mobile .header-mobile-wrap,
body:not(.home) #header-mobile .mbnav{overflow:visible!important}

body:not(.home) #header-mobile .mbnav.sb-header-rebuilt{
  min-height:84px!important;
  position:relative!important;
  display:block!important;
  padding:0 14px!important;
}

body:not(.home) #header-mobile .sb-header-rebuilt>.navbar-left,
body:not(.home) #header-mobile .sb-header-rebuilt>.navbar-right{
  position:absolute!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:30!important;
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
}
body:not(.home) #header-mobile .sb-header-rebuilt>.navbar-left{
  left:14px!important;
  justify-content:flex-start!important;
}
body:not(.home) #header-mobile .sb-header-rebuilt>.navbar-right{
  right:14px!important;
  justify-content:flex-end!important;
  gap:14px!important;
}

/* TRUE CENTER: independent from left/right icon widths. */
body:not(.home) #header-mobile .sb-header-rebuilt>.navbar-center{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:25!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
  width:max-content!important;
  max-width:58vw!important;
}

body:not(.home) #header-mobile .sb-header-rebuilt .dark-mode-toggle-wrap,
body:not(.home) #header-mobile .sb-header-rebuilt .mobile-toggle-wrap,
body:not(.home) #header-mobile .sb-header-rebuilt .mobile-search-icon{margin:0!important;flex:0 0 auto!important}
body:not(.home) #header-mobile .sb-header-rebuilt .mobile-toggle-wrap{order:99!important}
body:not(.home) #header-mobile .sb-header-rebuilt .mobile-logo-wrap{margin:0!important;overflow:visible!important;max-width:none!important}

/* Bunbun deliberately protrudes below the header line. */
body:not(.home) #header-mobile .sb-global-brand-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  text-decoration:none!important;
  overflow:visible!important;
  white-space:nowrap!important;
  transform:translateY(9px)!important;
  position:relative!important;
  z-index:40!important;
}
body:not(.home) #header-mobile .sb-global-bunbun-logo{
  display:block!important;
  width:auto!important;
  height:88px!important;
  max-height:none!important;
  object-fit:contain!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body:not(.home) #header-mobile .sb-global-brand-copy{display:flex!important;align-items:center!important}
body:not(.home) #header-mobile .sb-global-brand-name{
  font:700 23px/1 Georgia,'Times New Roman',serif!important;
  color:#342820!important;
  letter-spacing:-.01em!important;
}

/* Dark mode: brand text must be orange. Cover Foxiz variants. */
body[data-theme="dark"] #header-mobile .sb-global-brand-name,
html[data-theme="dark"] body #header-mobile .sb-global-brand-name,
body.dark-mode #header-mobile .sb-global-brand-name,
body.is-dark-mode #header-mobile .sb-global-brand-name,
body.dark-scheme #header-mobile .sb-global-brand-name,
body.is-dark-scheme #header-mobile .sb-global-brand-name{
  color:#e88432!important;
}

body:not(.home) #header-mobile .mobile-qview{position:relative!important;z-index:5!important}
body:not(.home) #header-mobile .mobile-qview-inner{padding-top:3px!important}
body:not(.home) .font-resizer{display:none!important}

/* Mobile menu remains neutral. */
body:not(.home) #header-mobile .mobile-qview a,
body:not(.home) #header-mobile .mobile-menu a{
  background:transparent!important;
  border-color:transparent!important;
  color:inherit!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body:not(.home) #header-mobile .mobile-qview li.current-menu-item>a,
body:not(.home) #header-mobile .mobile-qview li.current-menu-ancestor>a{color:#8e3027!important}

@media(max-width:520px){
  body:not(.home) #header-mobile .mbnav.sb-header-rebuilt{min-height:82px!important;padding:0 10px!important}
  body:not(.home) #header-mobile .sb-header-rebuilt>.navbar-left{left:10px!important}
  body:not(.home) #header-mobile .sb-header-rebuilt>.navbar-right{right:10px!important;gap:11px!important}
  body:not(.home) #header-mobile .sb-global-bunbun-logo{height:84px!important}
  body:not(.home) #header-mobile .sb-global-brand-name{font-size:21px!important}
  body:not(.home) #header-mobile .sb-header-rebuilt>.navbar-center{max-width:55vw!important}
}

@media(min-width:901px){
  body:not(.home) .sb-global-brand-link{display:inline-flex!important;align-items:center!important;gap:9px!important;text-decoration:none!important}
  body:not(.home) .sb-global-bunbun-logo{height:72px!important;width:auto!important;object-fit:contain!important}
  body:not(.home) .sb-global-brand-name{font:700 22px/1 Georgia,'Times New Roman',serif!important;color:#342820!important}
}
