@import url('/site-density.css?v=20260826-1');
@import url('/board-skin.css?v=20260826-1');
@import url('/board-visibility.css?v=20260826-1');
/* Cyberdelia masthead hardening — balanced readable navigation revision 2026-08-26 */

/* Middle ground: readable without turning the header into a billboard. */
.site-header{min-height:78px!important}
.site-header .header-inner{
  grid-template-columns:64px minmax(0,1fr)!important;
  min-height:78px!important;
  gap:.24rem .78rem!important;
  padding-block:.18rem!important;
}

.site-header .masthead-logo-static{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:68px!important;
  height:68px!important;
  min-width:68px!important;
  flex:0 0 68px!important;
  position:relative!important;
  z-index:100!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  text-decoration:none!important;
  background:none!important;
}
.site-header .masthead-logo-static>img{
  display:block!important;
  position:absolute!important;
  right:0!important;
  top:50%!important;
  width:115px!important;
  height:115px!important;
  min-width:115px!important;
  max-width:none!important;
  flex:none!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  border-radius:0!important;
  clip-path:none!important;
  box-shadow:none!important;
  padding:0!important;
  margin:0!important;
  opacity:1!important;
  visibility:visible!important;
  transform:translateY(calc(-50% + 14px))!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  pointer-events:none!important;
}

.site-header .brand,
.site-header .brand-mark,
.site-header .brand-copy{display:none!important}

.site-header .nav{gap:.08rem!important;margin:0!important;padding:0!important;overflow:visible!important}
.site-header .nav-row{
  gap:.28rem!important;
  min-height:24px!important;
  line-height:1!important;
  overflow:visible!important;
  flex-wrap:nowrap!important;
  justify-content:space-between!important;
}
.site-header .nav-row-primary{padding:0 0 .16rem!important}
.site-header .nav-row-directory{padding:.16rem 0 0!important}
.site-header .nav-row a{
  font-size:.72rem!important;
  letter-spacing:.025em!important;
  flex:0 0 auto!important;
}
.site-header .nav-row-directory a{font-size:.58rem!important;letter-spacing:.02em!important}
.site-header .nav-row a.nav-search,
.site-header .nav-row a.nav-store,
.site-header .nav-row a.nav-donate{padding:.27rem .4rem!important}

@media(max-width:1120px){
  .site-header{min-height:72px!important}
  .site-header .header-inner{
    grid-template-columns:58px minmax(0,1fr)!important;
    min-height:72px!important;
    gap:.2rem .62rem!important;
  }
  .site-header .masthead-logo-static{
    width:60px!important;
    height:60px!important;
    min-width:60px!important;
    flex-basis:60px!important;
  }
  .site-header .masthead-logo-static>img{
    width:98px!important;
    height:98px!important;
    min-width:98px!important;
    transform:translateY(calc(-50% + 10px))!important;
  }
  .site-header .nav-row{gap:.22rem!important}
  .site-header .nav-row a{font-size:.62rem!important;letter-spacing:.015em!important}
  .site-header .nav-row-directory a{font-size:.51rem!important}
  .site-header .nav-row a.nav-search,
  .site-header .nav-row a.nav-store,
  .site-header .nav-row a.nav-donate{padding:.23rem .34rem!important}
}

@media(max-width:860px){
  .site-header{min-height:68px!important}
  .site-header .header-inner{
    grid-template-columns:52px minmax(0,1fr)!important;
    min-height:68px!important;
    gap:.18rem .5rem!important;
    padding-block:.12rem!important;
  }
  .site-header .masthead-logo-static{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    flex-basis:52px!important;
  }
  .site-header .masthead-logo-static>img{
    width:77px!important;
    height:77px!important;
    min-width:77px!important;
    transform:translateY(calc(-50% + 8px))!important;
  }
  .site-header .nav-row{gap:.18rem!important;justify-content:flex-start!important;overflow-x:auto!important}
  .site-header .nav-row a{font-size:.56rem!important;letter-spacing:.01em!important}
  .site-header .nav-row-directory a{font-size:.48rem!important}
}

@media(max-width:560px){
  .site-header{min-height:64px!important}
  .site-header .header-inner{grid-template-columns:47px minmax(0,1fr)!important;min-height:64px!important;gap:.14rem .4rem!important}
  .site-header .masthead-logo-static{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    flex-basis:46px!important;
  }
  .site-header .masthead-logo-static>img{
    width:59px!important;
    height:59px!important;
    min-width:59px!important;
    transform:translateY(calc(-50% + 5px))!important;
  }
  .site-header .nav-row a{font-size:.52rem!important}
  .site-header .nav-row-directory a{font-size:.45rem!important}
  .site-header .nav-row a.nav-search,
  .site-header .nav-row a.nav-store,
  .site-header .nav-row a.nav-donate{padding:.2rem .28rem!important}
}


/* 2026-09-02 masthead logo placement correction.
   The badge participates in the header grid; it must never be absolutely
   offset across the masthead. */
.site-header .masthead-logo-static{
  position:static!important;
  inset:auto!important;
  overflow:hidden!important;
  transform:none!important;
}
.site-header .masthead-logo-static>img{
  position:static!important;
  inset:auto!important;
  width:68px!important;
  height:68px!important;
  min-width:0!important;
  max-width:100%!important;
  transform:none!important;
  object-fit:contain!important;
}
@media(max-width:1120px){
  .site-header .masthead-logo-static>img{width:60px!important;height:60px!important;transform:none!important}
}
@media(max-width:860px){
  .site-header .masthead-logo-static>img{width:52px!important;height:52px!important;transform:none!important}
}
@media(max-width:560px){
  .site-header .masthead-logo-static>img{width:46px!important;height:46px!important;transform:none!important}
}
