/* OlivilO Foundation 4 — shared header system */
:root{
  --olivilo-header-height:62px;
  --olivilo-header-inline-padding:42px;
  --olivilo-header-max-width:1420px;
  --olivilo-header-logo-size:38px;
  --olivilo-header-nav-size:14px;
  --olivilo-header-nav-gap:32px;
}

.top-bar,
.members-header,
.profile-header,
.v2-header{
  width:100%;
  height:var(--olivilo-header-height) !important;
  min-height:var(--olivilo-header-height) !important;
  box-sizing:border-box;
  display:flex;
  align-items:center;
}

.top-bar-inner,
.members-header-inner,
.profile-header-inner,
.v2-header-inner{
  width:100%;
  max-width:var(--olivilo-header-max-width);
  min-height:var(--olivilo-header-height) !important;
  height:var(--olivilo-header-height);
  margin:0 auto;
  padding-left:var(--olivilo-header-inline-padding) !important;
  padding-right:var(--olivilo-header-inline-padding) !important;
  box-sizing:border-box;
  display:flex;
  align-items:center;
}

.logo-small,
.logo,
.members-logo,
.profile-logo,
.v2-logo{
  font-size:var(--olivilo-header-logo-size) !important;
  line-height:1 !important;
}

.top-nav,
.nav-links,
.members-navigation,
.profile-navigation,
.v2-nav{
  display:flex;
  align-items:center;
  gap:var(--olivilo-header-nav-gap) !important;
}

.top-nav a,
.nav-links a,
.members-navigation a,
.profile-navigation a,
.v2-nav a,
.v2-nav button{
  font-size:var(--olivilo-header-nav-size) !important;
}

/* Keep profile canvases tied to the shared height. */
.profile-main{
  height:calc(100vh - var(--olivilo-header-height)) !important;
}


/* Ground Zero Task 2 — universal header refinements */
.logo-small,
.logo,
.members-logo,
.profile-logo,
.v2-logo{
  font-family:Georgia, "Times New Roman", serif !important;
  font-weight:600 !important;
  color:#4f2f83 !important;
  letter-spacing:-0.5px;
}

.signin-btn{
  align-self:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  box-sizing:border-box;
}


/* Ground Zero Task 3 — final shared-header alignment. */
.signin-btn{
  margin:0 !important;
  height:34px !important;
  min-height:34px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  align-self:center !important;
  transform:none !important;
}
.top-bar-inner .signin-btn,
.members-header-inner .signin-btn,
.profile-header-inner .signin-btn,
.v2-header-inner .signin-btn{
  position:relative;
  top:0;
}


/* Ground Zero Task 4 — one exact header system on every page. */
:root{
  --olivilo-header-height:62px;
  --olivilo-header-inline-padding:42px;
  --olivilo-header-logo-size:38px;
}
.top-bar,
.members-header,
.profile-header,
.v2-header{
  height:var(--olivilo-header-height) !important;
  min-height:var(--olivilo-header-height) !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
}
.top-bar-inner,
.members-header-inner,
.profile-header-inner,
.v2-header-inner{
  width:100% !important;
  max-width:none !important;
  height:var(--olivilo-header-height) !important;
  min-height:var(--olivilo-header-height) !important;
  margin:0 !important;
  padding:0 var(--olivilo-header-inline-padding) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}
/* Pages whose header contains the logo directly use the same edge spacing. */
.top-bar > .logo,
.top-bar > .logo-small,
.top-bar > .members-logo,
.top-bar > .profile-logo,
.top-bar > .v2-logo{
  margin-left:var(--olivilo-header-inline-padding) !important;
}
.logo-small,
.logo,
.members-logo,
.profile-logo,
.v2-logo{
  display:inline-block !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
  font-family:Georgia, "Times New Roman", serif !important;
  font-size:var(--olivilo-header-logo-size) !important;
  font-weight:600 !important;
  line-height:1 !important;
  letter-spacing:-0.5px !important;
  color:#4f2f83 !important;
  opacity:1 !important;
  position:relative;
  top:-1px;
  transition:none !important;
}
.signin-btn{
  height:34px !important;
  min-height:34px !important;
  margin:0 !important;
  padding:0 24px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:center !important;
  position:relative !important;
  top:-1px !important;
  line-height:1 !important;
  box-sizing:border-box !important;
  transform:none !important;
}
.top-bar-inner > .nav-links,
.top-bar-inner > .top-nav{
  margin-left:auto;
}


/* Ground Zero Task 5 — dependable system-font wordmark; no web-font swap. */
.logo-small,
.logo,
.members-logo,
.profile-logo,
.v2-logo{
  font-family:Georgia, "Times New Roman", serif !important;
  visibility:visible !important;
  opacity:1 !important;
  transition:none !important;
}


/* Ground Zero Task 7 — final optical vertical centring. */
.logo-small,
.logo,
.members-logo,
.profile-logo,
.v2-logo{
  top:1px !important;
}
.signin-btn{
  top:2px !important;
}
