/* v941 final authenticated/public header alignment fix
   Purpose: restore the original public frontend look while making every logged-in
   header (admin, investor, fundraiser, partner) share the same topbar and action
   alignment. This file intentionally targets header chrome only. */

/* Top utility bar: strict 3-column layout */
html body .topbar{
  height:34px!important;
  min-height:34px!important;
  overflow:hidden!important;
  background:#061a5b!important;
  color:#fff!important;
}
html body .topbar > .wide.topbar-inner,
html body .topbar .wide.topbar-inner,
html body .topbar-inner{
  width:min(1420px,calc(100% - 72px))!important;
  max-width:1420px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) auto minmax(280px,1fr)!important;
  align-items:center!important;
  justify-items:stretch!important;
  gap:18px!important;
  line-height:1!important;
  text-align:left!important;
  flex-direction:initial!important;
  flex-wrap:nowrap!important;
  justify-content:initial!important;
}
html body .topbar .top-left,
html body .topbar .top-center,
html body .topbar .top-socials{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  height:34px!important;
  line-height:1!important;
  flex-wrap:nowrap!important;
}
html body .topbar .top-left{
  justify-content:flex-start!important;
  gap:24px!important;
  white-space:nowrap!important;
}
html body .topbar .top-center{
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
}
html body .topbar .top-socials{
  justify-content:flex-end!important;
  gap:0!important;
  white-space:nowrap!important;
  letter-spacing:0!important;
  word-spacing:0!important;
}
html body .topbar .top-socials a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  margin:0 0 0 18px!important;
  padding:0!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1!important;
  text-align:center!important;
  text-decoration:none!important;
  opacity:1!important;
  transform:none!important;
  letter-spacing:0!important;
}
html body .topbar .top-socials a:first-child{margin-left:0!important;}
html body .topbar a,
html body .topbar strong,
html body .topbar span{
  color:#fff!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1!important;
  opacity:1!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

/* Main header row: common height and vertical center line */
html body .navbar.pp-fixed-admin-header{
  min-height:86px!important;
  height:86px!important;
  background:#fff!important;
  border-bottom:1px solid #edf1f6!important;
  overflow:visible!important;
}
html body .navbar.pp-fixed-admin-header > .wide.nav-inner,
html body .navbar.pp-fixed-admin-header .wide.nav-inner,
html body .navbar.pp-fixed-admin-header .nav-inner{
  width:min(1420px,calc(100% - 72px))!important;
  max-width:1420px!important;
  min-height:86px!important;
  height:86px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:22px!important;
  padding:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  overflow:visible!important;
}
html body .navbar.pp-fixed-admin-header .brand{
  display:flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  height:86px!important;
  margin:0!important;
  padding:0!important;
}
html body .navbar.pp-fixed-admin-header .brand img{
  width:210px!important;
  max-width:210px!important;
  height:auto!important;
  display:block!important;
}
html body .navbar.pp-fixed-admin-header .nav-links{
  flex:1 1 auto!important;
  min-width:0!important;
  height:86px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:24px!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
html body .navbar.pp-fixed-admin-header .nav-links>a,
html body .navbar.pp-fixed-admin-header .nav-item>a{
  height:86px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:0!important;
  margin:0!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1!important;
  color:#061a55!important;
  white-space:nowrap!important;
}
html body .navbar.pp-fixed-admin-header .nav-item{
  height:86px!important;
  display:flex!important;
  align-items:center!important;
  position:relative!important;
  overflow:visible!important;
}

/* Header action cluster: equal button geometry */
html body .navbar.pp-fixed-admin-header .nav-actions,
html body .navbar.pp-fixed-admin-header .nav-actions.pp-clickable-header-actions{
  height:86px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
html body .navbar.pp-fixed-admin-header .pp-header-action-wrap{
  width:40px!important;
  height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  flex:0 0 40px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
html body .navbar.pp-fixed-admin-header .nav-icon.pp-header-action,
html body .navbar.pp-fixed-admin-header .nav-icon.pp-search-toggle,
html body .navbar.pp-fixed-admin-header .nav-icon.search-toggle{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  border-radius:14px!important;
  border:1px solid #e3ecfb!important;
  background:#fff!important;
  color:#0b5cff!important;
  box-shadow:0 8px 20px rgba(6,26,64,.05)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  margin:0!important;
  line-height:1!important;
  font-size:16px!important;
  font-weight:900!important;
  vertical-align:middle!important;
  position:relative!important;
  transform:none!important;
}
html body .navbar.pp-fixed-admin-header .nav-icon.pp-header-action em{
  position:absolute!important;
  top:-6px!important;
  right:-6px!important;
  min-width:18px!important;
  height:18px!important;
  padding:0 4px!important;
  border-radius:999px!important;
  background:#ff2d20!important;
  color:#fff!important;
  border:2px solid #fff!important;
  font-size:10px!important;
  font-style:normal!important;
  font-weight:900!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  z-index:5!important;
  transform:none!important;
}

/* Profile pill matches icon-button height */
html body .navbar.pp-fixed-admin-header .nav-account{
  height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  position:relative!important;
  flex:0 0 auto!important;
  margin:0 0 0 4px!important;
  padding:0!important;
}
html body .navbar.pp-fixed-admin-header .nav-account .account-chip{
  height:40px!important;
  min-height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:0 12px!important;
  margin:0!important;
  border-radius:999px!important;
  border:1px solid #dbe7f5!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(6,26,64,.06)!important;
  line-height:1!important;
  transform:none!important;
}
html body .navbar.pp-fixed-admin-header .nav-account .avatar-dot{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  border-radius:50%!important;
  background:#071a55!important;
  color:#fff!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1!important;
  transform:none!important;
}
html body .navbar.pp-fixed-admin-header .nav-account .account-chip span:not(.avatar-dot){
  font-size:14px!important;
  font-weight:900!important;
  color:#071a55!important;
  line-height:1!important;
  max-width:130px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html body .navbar.pp-fixed-admin-header .nav-account .account-chip small{
  font-size:11px!important;
  font-weight:800!important;
  color:#64748b!important;
  line-height:1!important;
  margin:0!important;
  white-space:nowrap!important;
}
html body .navbar.pp-fixed-admin-header .nav-account .account-chip b{
  font-size:12px!important;
  color:#071a55!important;
  line-height:1!important;
  margin:0!important;
}

/* Dropdowns must stay available */
html body .navbar.pp-fixed-admin-header .dropdown-menu{top:86px!important;}
html body .navbar.pp-fixed-admin-header .pp-header-action-dd{top:calc(100% + 10px)!important;}

@media(max-width:1180px){
  html body .topbar > .wide.topbar-inner,
  html body .topbar .wide.topbar-inner,
  html body .topbar-inner{width:calc(100% - 32px)!important;grid-template-columns:1fr auto!important;gap:10px!important;}
  html body .topbar .top-center{display:none!important;}
  html body .topbar .top-socials a{margin-left:14px!important;}
  html body .navbar.pp-fixed-admin-header > .wide.nav-inner,
  html body .navbar.pp-fixed-admin-header .wide.nav-inner,
  html body .navbar.pp-fixed-admin-header .nav-inner{width:calc(100% - 32px)!important;gap:14px!important;}
  html body .navbar.pp-fixed-admin-header .brand img{width:185px!important;max-width:185px!important;}
  html body .navbar.pp-fixed-admin-header .nav-links{gap:14px!important;}
  html body .navbar.pp-fixed-admin-header .nav-links>a,
  html body .navbar.pp-fixed-admin-header .nav-item>a{font-size:13px!important;}
  html body .navbar.pp-fixed-admin-header .nav-account .account-chip small{display:none!important;}
}
@media(max-width:900px){
  html body .topbar{height:auto!important;min-height:34px!important;overflow:visible!important;}
  html body .topbar > .wide.topbar-inner,
  html body .topbar .wide.topbar-inner,
  html body .topbar-inner{height:auto!important;min-height:34px!important;grid-template-columns:1fr!important;padding:8px 0!important;gap:6px!important;}
  html body .topbar .top-left,
  html body .topbar .top-socials{height:auto!important;justify-content:center!important;flex-wrap:wrap!important;gap:12px!important;}
  html body .topbar .top-socials a{margin:0 7px!important;}
  html body .navbar.pp-fixed-admin-header{height:auto!important;min-height:76px!important;}
  html body .navbar.pp-fixed-admin-header > .wide.nav-inner,
  html body .navbar.pp-fixed-admin-header .wide.nav-inner,
  html body .navbar.pp-fixed-admin-header .nav-inner{height:auto!important;min-height:76px!important;flex-wrap:wrap!important;padding:10px 0!important;}
  html body .navbar.pp-fixed-admin-header .brand{height:auto!important;}
  html body .navbar.pp-fixed-admin-header .mobile-menu{display:inline-flex!important;margin-left:auto!important;}
  html body .navbar.pp-fixed-admin-header .nav-links{height:auto!important;display:none!important;order:5!important;flex-basis:100%!important;align-items:stretch!important;gap:0!important;padding:10px!important;border:1px solid #e3ecfb!important;border-radius:16px!important;background:#fff!important;}
  html body .navbar.pp-fixed-admin-header .nav-links.open,
  html body .navbar.pp-fixed-admin-header .nav-links.is-open{display:block!important;}
  html body .navbar.pp-fixed-admin-header .nav-links>a,
  html body .navbar.pp-fixed-admin-header .nav-item,
  html body .navbar.pp-fixed-admin-header .nav-item>a{height:auto!important;display:block!important;padding:12px!important;}
  html body .navbar.pp-fixed-admin-header .nav-actions{height:40px!important;margin-left:auto!important;}
}
@media(max-width:560px){
  html body .topbar .top-left,
  html body .topbar .top-socials{display:none!important;}
  html body .navbar.pp-fixed-admin-header .brand img{width:158px!important;max-width:158px!important;}
  html body .navbar.pp-fixed-admin-header .nav-account .account-chip span:not(.avatar-dot){display:none!important;}
  html body .navbar.pp-fixed-admin-header .nav-icon.pp-header-action,
  html body .navbar.pp-fixed-admin-header .nav-icon.pp-search-toggle,
  html body .navbar.pp-fixed-admin-header .nav-icon.search-toggle{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;}
  html body .navbar.pp-fixed-admin-header .pp-header-action-wrap{width:36px!important;height:36px!important;flex-basis:36px!important;}
  html body .navbar.pp-fixed-admin-header .nav-account .account-chip{height:36px!important;min-height:36px!important;padding:0 8px!important;}
}
