/* Reskin of the legacy Foundation top bar to match the new web-app header
   (client/web Chrome.jsx): flat teal bar, slim height, centered nav links,
   chip-styled login. Loaded after bundle.min.css on legacy pages only. */

.top-menu-bar {
  background: #30a4ae;
  box-shadow: none;
}

.top-menu-bar .top-bar {
  background: #30a4ae;
  margin-bottom: 0;
}

/* Desktop: slim the 80px Foundation bar to match the new 56px header */
@media only screen and (min-width: 40.0625em) {
  .top-menu-bar .top-bar,
  .top-menu-bar .top-bar .title-area .name,
  .top-menu-bar .top-bar .title-area .name a {
    height: 56px;
    line-height: 56px;
  }
  .top-menu-bar .top-bar .title-area .name img {
    width: 121px;
    height: 30px;
    margin-top: 13px;
  }
  .top-menu-bar .top-bar-section li:not(.has-form) a:not(.button) {
    height: 56px;
    line-height: 56px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
  }
  .top-menu-bar .top-bar-section li:not(.has-form) a:not(.button):hover {
    color: #fff;
    background: transparent;
  }
  .top-menu-bar .top-bar-section .has-dropdown > a:after {
    border-color: rgba(255, 255, 255, 0.75) transparent transparent transparent;
  }

  /* new-header nav links */
  .top-menu-bar .mt-nav a:not(.button) {
    padding: 0 12px;
  }
  .top-menu-bar .mt-nav li.active > a:not(.button) {
    color: #fff;
    box-shadow: inset 0 -2px 0 #fff;
  }

  /* login / account entries styled like the new header chips */
  .top-menu-bar .top-bar-section ul.right .menulogin a:not(.button) {
    height: 32px;
    line-height: 30px;
    margin: 12px 4px 0 8px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }
  .top-menu-bar .top-bar-section ul.right .menulogin a:not(.button):hover {
    background: rgba(255, 255, 255, 0.25);
  }
}

/* Mobile: keep the Foundation hamburger behavior, just recolor */
@media only screen and (max-width: 40em) {
  .top-menu-bar .top-bar,
  .top-menu-bar .top-bar.expanded .title-area {
    background: #30a4ae;
  }
  .top-menu-bar .darkening-hamburger {
    background: #1e939d;
  }
}
