/* Separate publication, account, masthead and forum navigation rows. */
body#vb-page-body > .js-top-menu-user,
body#vb-page-body .js-top-menu-user > .b-top-menu__container,
body#vb-page-body .b-top-background__header-mainnav,
body#vb-page-body .b-top-background__header-mainnav-subnav {
  height: auto !important;
  max-height: none !important;
}
body#vb-page-body .js-top-menu-user > .b-top-menu__container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 !important;
  padding-inline: 16px !important;
}
body#vb-page-body .js-top-menu-user .nsa-publication-links {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 0 14px !important;
  border-bottom: 1px solid #d9e2ef;
  background: #f6f8fc !important;
}
body#vb-page-body .js-top-menu-user .nsa-publication-links a {
  color: #702038 !important;
  min-height: 34px !important;
}
body#vb-page-body .js-top-menu-user .b-top-menu--user {
  width: 100% !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 0 6px !important;
}
body#vb-page-body .b-top-background__header-mainnav {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  gap: 0 12px !important;
  padding-inline: 16px !important;
  padding-block-start: 8px !important;
  background: #132044 !important;
  border-bottom: 3px solid #a03751;
}
body#vb-page-body #header { display: contents !important; }
body#vb-page-body #header .header-cell {
  grid-area: 1 / 1 !important;
  justify-self: start !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
body#vb-page-body #header .toolbar {
  grid-area: 1 / 2 !important;
  justify-self: end !important;
  width: min(100%, 320px) !important;
  min-width: 0 !important;
}
body#vb-page-body #header .toolbar .search-box {
  max-width: 100% !important;
  min-width: 0 !important;
}
body#vb-page-body #channel-tabbar {
  grid-area: 2 / 1 / 3 / -1 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-width: 0 !important;
  margin: 6px 0 0 !important;
  border-top: 1px solid #53627e;
}
body#vb-page-body #channel-tabbar .channel-tabbar-list,
body#vb-page-body #channel-subtabbar .channel-subtabbar-list {
  max-width: 100% !important;
}
body#vb-page-body #channel-subtabbar {
  height: auto !important;
  max-height: none !important;
}
@media (max-width: 600px) {
  body#vb-page-body .b-top-background__header-mainnav { padding-inline: 8px !important; }
  body#vb-page-body #header .site-logo img { max-width: min(38vw, 160px) !important; height: auto !important; }
}
