/* Main Menu */
ul#tabs {
  position: relative;
  z-index: 10;
  margin: 0px 10px 13px;
  text-align: right;
  clear: both;
  margin-top: 20px;
  background-color: none;

  li {
    margin: 0 10px;
    display: inline;

    a {
      font-weight: bold;
      font-size: 14px;
      padding: 14px 0;
      color: $menu-color;
      text-decoration: none;
      border-bottom: 0px;

      &.upgrade-notice {
        color: lighten($menu-color, 40%);
      }
    }
  }

  li.active a, li#active a {
    color: $menu-active-color;
    position: relative;
    //background: image-url("nav-point.png") no-repeat 50% 100%;
    &:before {
      content: ' ';
      height: 0;
      position: absolute;
      width: 0;
      border: 10px solid transparent; /* arrow size */
      border-bottom-color: $border-color;
      margin-left: auto;
      margin-right: auto;
      left: 0;
      right: 0;
      bottom: 0;
    }

    &:after {
      content: ' ';
      height: 0;
      position: absolute;
      width: 0;
      border: 8px solid transparent; /* arrow size */
      border-bottom-color: $menu-background-color;
      margin-left: auto;
      margin-right: auto;
      left: 0;
      right: 0;
      bottom: 0;
    }
  }

  li a:hover {
    color: $menu-hover-color;
  }
}

/* Submenu */
ul#second_nav {
  @include border-top-radius(6px);
  background-color: $menu-background-color;
  margin: -24px -24px 24px -24px;
  border-bottom: 1px solid $border-color;
  li {
      display: inline;
      list-style-type: none;

    &:first-child a {
      padding-left: 24px;
    }

    a {
      display: inline-block;
      line-height: 25px;

      padding-top: 12px;
      padding-bottom: 12px;
      padding-left: 12px;
      padding-right: 12px;

      font-size: 110%;
      color: $submenu-color;
      text-decoration: none;
      border-bottom: 0px;

      &.preview {
        border: 1px solid $border-color;
        padding: 6px 6px 6px 6px !important;
        margin-top: 11px;
        margin-left: 12px;
        line-height: 1;
        color: $link-color;
        @include border-radius(6px);

        &:hover {
          border-color: $link-color;
        }
      }

      &:hover {
        color: $submenu-hover-color;
      }

      &.upgrade-notice {
        color: lighten($menu-color, 40%);

        &:hover {
          color: $link-color;
        }
      }
    }

    // '& a.active' present because of BCMS layouts
    &.active a, & a.active {
      color: $submenu-active-color;
    }
  }
}

#subsubmenu {
  height: 30px;

  .active {
    color: $subsubmenu-active-color;
  }

  li {
    list-style-type: none;
    display: inline;
    padding-right: 10px;

    a {
      text-decoration: underline;
    }
  }
}

// important styles needed to override the id based styling above
.SubSubMenuItem {
  list-style-type: none;
  display: inline-block !important;
  white-space: nowrap;
  margin: 0 6px 24px 0;
  padding: 0 0 0 0 !important;

  &--trunk {
    margin-left: 0;
  }

  &--branch:before {
    content: '>';
    margin-right: 6px;
  }

  &--leaf:before {
    content: '|';
    margin-right: 6px;
  }

  .is-active {
    color: $subsubmenu-active-color;
  }

  &-link {
    text-decoration: underline;
  }
}


