
/* NeXt Chapter Recovery v1.7.3 — Header Alignment + Account Controls */

:root{
  --ncr-head-bg:#130b08;
  --ncr-head-border:rgba(245,170,61,.18);
  --ncr-head-ink:#fff4e5;
  --ncr-head-muted:rgba(255,244,229,.72);
  --ncr-head-gold:#f5aa3d;
  --ncr-head-orange:#ed7a1e;
  --ncr-head-rust:#a8321b;
}
html[data-theme="light"]{
  --ncr-community-bg:#fff1dd;
  --ncr-community-surface:#fffaf3;
  --ncr-community-ink:#21150f;
  --ncr-community-muted:rgba(33,21,15,.72);
  --ncr-community-border:rgba(130,45,19,.16);
}

.ncr-global-header,
.site-header.brand-site-header{
  position:sticky!important;
  top:0!important;
  z-index:999!important;
  background:rgba(19,11,8,.96)!important;
  border-bottom:1px solid var(--ncr-head-border)!important;
  backdrop-filter:blur(18px);
}
.admin-bar .ncr-global-header{top:32px!important;}
.ncr-header-shell,
.container--wide.ncr-header-shell{
  width:min(1180px,calc(100% - 2rem))!important;
  max-width:1180px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:minmax(255px,320px) minmax(0,1fr) auto!important;
  gap:clamp(.85rem,2vw,1.35rem)!important;
  align-items:center!important;
  min-height:88px!important;
  padding:0!important;
}
.ncr-header-brand-slot{
  min-width:0!important;
  max-width:320px!important;
}
.brand-lockup{
  display:flex!important;
  align-items:center!important;
  gap:.78rem!important;
  min-width:0!important;
  max-width:100%!important;
  text-decoration:none!important;
  color:var(--ncr-head-ink)!important;
}
.brand-icon-wrap{
  flex:0 0 58px!important;
  width:58px!important;
  height:58px!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:#fff!important;
  display:grid!important;
  place-items:center!important;
}
.brand-icon{
  width:54px!important;
  height:54px!important;
  object-fit:contain!important;
  display:block!important;
}
.brand-copy{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
}
.brand-title{
  display:block!important;
  max-width:235px!important;
  color:var(--ncr-head-ink)!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(1.1rem,1.55vw,1.42rem)!important;
  font-weight:900!important;
  line-height:1.05!important;
  letter-spacing:-.025em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.brand-subtitle{
  display:block!important;
  color:var(--ncr-head-gold)!important;
  font-size:.78rem!important;
  font-weight:900!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.ncr-primary-nav{
  min-width:0!important;
  display:flex!important;
  justify-content:center!important;
}
.ncr-primary-menu{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:clamp(.35rem,.9vw,.8rem)!important;
  list-style:none!important;
  padding:0!important;
  margin:0!important;
  min-width:0!important;
  flex-wrap:nowrap!important;
}
.ncr-primary-menu li{
  display:block!important;
  margin:0!important;
  padding:0!important;
  min-width:0!important;
}
.ncr-primary-menu a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  padding:.55rem .45rem!important;
  color:var(--ncr-head-ink)!important;
  font-size:clamp(.82rem,.9vw,.96rem)!important;
  font-weight:900!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  border-radius:999px!important;
  line-height:1!important;
}
.ncr-primary-menu a:hover,
.ncr-primary-menu .current-menu-item > a{
  color:var(--ncr-head-gold)!important;
  background:rgba(255,255,255,.06)!important;
}

.ncr-header-actions,
.header-actions.ncr-header-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:.55rem!important;
  min-width:0!important;
  flex-wrap:nowrap!important;
}
.ncr-header-action,
.ncr-header-account,
.ncr-header-help{
  flex:0 0 auto!important;
}
.ncr-header-action,
.ncr-header-search-toggle,
.theme-toggle,
.menu-btn{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border-radius:15px!important;
  border:1px solid rgba(245,170,61,.22)!important;
  background:rgba(255,255,255,.055)!important;
  color:var(--ncr-head-ink)!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
}
.ncr-header-search-toggle svg,
.theme-toggle svg,
.menu-btn svg{
  display:block!important;
  width:20px!important;
  height:20px!important;
}
.ncr-header-help{
  min-height:46px!important;
  padding:.72rem 1.1rem!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,var(--ncr-head-rust),var(--ncr-head-orange))!important;
  color:#fff!important;
  font-size:.92rem!important;
  font-weight:950!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.ncr-header-account{
  min-height:46px!important;
  padding:.45rem .8rem .45rem .45rem!important;
  border-radius:999px!important;
  border:1px solid rgba(245,170,61,.22)!important;
  background:rgba(255,255,255,.06)!important;
  color:var(--ncr-head-ink)!important;
  text-decoration:none!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:.48rem!important;
  font-size:.86rem!important;
  font-weight:950!important;
  white-space:nowrap!important;
}
.ncr-header-account img{
  width:32px!important;
  height:32px!important;
  border-radius:999px!important;
  object-fit:cover!important;
  display:block!important;
}
.ncr-account-dot{
  width:32px!important;
  height:32px!important;
  border-radius:999px!important;
  background:rgba(245,170,61,.16)!important;
  display:grid!important;
  place-items:center!important;
  font-size:.95rem!important;
}

/* Breadcrumbs now sit below header, not above it. */
.ncr-breadcrumbs{
  margin:.85rem auto 0!important;
  padding:.35rem 0!important;
  color:rgba(33,21,15,.64)!important;
}
html[data-theme="dark"] .ncr-breadcrumbs{color:rgba(255,244,229,.72)!important;}
.ncr-breadcrumbs a{
  background:rgba(245,170,61,.14)!important;
  color:#a8321b!important;
  padding:.25rem .45rem!important;
  border-radius:7px!important;
}
.ncr-breadcrumbs span{
  color:rgba(33,21,15,.64)!important;
  background:rgba(255,255,255,.28)!important;
  padding:.25rem .45rem!important;
  border-radius:7px!important;
}
html[data-theme="dark"] .ncr-breadcrumbs span{color:rgba(255,244,229,.74)!important;}

/* Menu collapse before overlap */
@media(max-width:1160px){
  .ncr-header-shell{
    grid-template-columns:minmax(250px,300px) minmax(0,1fr) auto!important;
  }
  .ncr-primary-menu a{font-size:.84rem!important;padding:.5rem .34rem!important;}
}
@media(max-width:1024px){
  .ncr-header-shell{
    grid-template-columns:minmax(235px,1fr) auto!important;
  }
  .ncr-primary-nav{display:none!important;}
  .menu-btn{display:grid!important;}
  .ncr-header-account span:not(.ncr-account-dot){display:none!important;}
  .ncr-header-account{padding:.45rem!important;}
}
@media(max-width:640px){
  .admin-bar .ncr-global-header{top:46px!important;}
  .ncr-header-shell{
    width:min(100% - 1rem,1180px)!important;
    min-height:76px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:.65rem!important;
  }
  .brand-icon-wrap{flex-basis:50px!important;width:50px!important;height:50px!important;}
  .brand-icon{width:46px!important;height:46px!important;}
  .brand-title{max-width:190px!important;font-size:1.05rem!important;}
  .brand-subtitle{font-size:.72rem!important;}
  .ncr-header-help{display:none!important;}
  .ncr-header-action,.ncr-header-search-toggle,.theme-toggle,.menu-btn{width:42px!important;height:42px!important;min-width:42px!important;}
}
@media(max-width:420px){
  .brand-title{max-width:145px!important;}
  .theme-toggle{display:none!important;}
}
