:root{
  --brand:#1F3249;
  --menu-bg:#ffffff;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--menu-bg);
  border-bottom: 1px solid rgba(0,0,0,.08);
  width: 100%;
}

/* force left layout */
.site-header .header-inner{
  width: 100%;
  padding: 10px 24px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start !important;
  gap: 24px;
}

/* logo */
.site-header .brand{
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .brand-logo{
  height: 60px;
}

/* two-line nav */
.site-header .nav-wrap{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.site-header .nav-top{
  display: flex;
  gap: 16px;
}

.site-header .nav-top a{
  font-weight: 600;
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
}

.site-header .nav-bottom{
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.site-header .nav-bottom a{
  font-weight: 600;
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
}

.site-header .sep{
  color: rgba(31,50,73,.4);
}

/* only right-aligned item */
.site-header .subscribe-block{
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 0 22px;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 0;     /* ✅ square */
}


@media (max-width: 900px){
  .site-header .brand-logo{ height: 48px; }
}
.site-header .nav-wrap{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding-left: 20px;
  border-left: 1px solid rgba(0,0,0,.15);   /* ✅ logo separator */
}
.site-header .nav-top{
  display: flex;
  gap: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,.15); /* ✅ row separator */
}
/* Mobile header layout (WRAP, no horizontal scroll) */
@media (max-width: 900px){
  .site-header .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
  }

  /* Remove vertical divider on mobile */
  .site-header .nav-wrap{
    border-left: none;
    padding-left: 0;
    width: 100%;
  }

  /* Top row wraps */
  .site-header .nav-top{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;                 /* row/column gap */
    border-bottom: 1px solid rgba(0,0,0,.15);
    padding-bottom: 8px;
  }

  /* Bottom topics row WRAPS (no scroll) */
  .site-header .nav-bottom{
    width: 100%;
    display: flex;
    flex-wrap: wrap;                /* ✅ wrap instead of scroll */
    white-space: normal;            /* ✅ allow wrapping */
    overflow: visible;              /* ✅ no scroll */
    gap: 8px 10px;
    padding-top: 8px;
  }

  /* Hide separators so wrapping looks clean */
  .site-header .nav-bottom .sep{
    display: none;
  }

  /* Subscribe becomes full-width below nav */
  .site-header .subscribe-block{
    margin-left: 0;
    width: 100%;
    height: 44px;
    justify-content: center;
  }
}


