.top-bar {
  perspective: 800px;
  min-height: 5.125em;
  transform-style: preserve-3d;
  background: white;
  border-bottom: 1px solid lighten($blue1, 35%);
  transition: transform 200ms linear;
  position: fixed;
  left: 300px;
  right: 0;
  top: 0;
  z-index: 1000;

  ul {
    min-width: 33.333%;
    margin: 0;
    padding: 0;

    li {
      display: inline-block;
      margin: 0 0.5rem;

      a {
        padding: 1.25em 1rem;
        color: $blue4;
        font-size: 1.125rem;
        @include klinicBold;

        img {
          padding-right: 0.333em;
          max-height: 1.2rem;
        }

        &.open {
          i.fa {
            transform: rotate(180deg);
          }
        }
      }

      &.social {
        min-width: 1.5rem;
        text-align: center;

        a {
          padding-left: 2.25rem;
        }
      }

      &.versioner {
        padding: 0 !important;
        margin: 0 0 -1px !important;
        display: none;
        
        a.versioner-trigger {
          padding-left: 1.667rem;
          padding-right: 2rem;
          background-color: lighten($blue1, 45%);
          min-width: 10rem;
          display: inline-block;
        }
      }

      &:nth-child(4) {
        padding-right: 1.667rem;
      }

      &:last-child,
      &:nth-last-child(2),
      &:nth-last-child(3) {
        border-left: 1px solid lighten($blue1, 35%);
        text-align: center;
        
        a {
          min-height: 5rem;
        }
      }
    }
  }

  .breadcrumb {
    position: absolute;
    top: 0;
    left: 1em;
    z-index: 1030;
    line-height: 1.5;
    font-size: $scalex3;
    letter-spacing: 0.05em;

    a {
      padding: 0.333em 0;
      margin: 0.575em 0 0.575em 0.5em;
      float: left;
      text-transform: capitalize;
      font-size: 1.5rem;
      color: $blue3;
      letter-spacing: -0.125rem;
      @include klinicReg;
      @include transition;

      &:hover {
        color: $blue1;
      }

      &:before {
        content: '/';
        display: inline-block;
        width: 0.75em;
        height: 2em;
        margin: 0 0 0 -0.2em;
        color: $grey1;
      }

      &:first-child:before {
        display: none;
      }
    }
  }

  // versioning dropdown
  ul.f-dropdown {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    text-align: left;
    min-width: auto;

    &.f-open-dropdown {
      left: auto !important;
      right: 0 !important;
      top: 80px !important;
    }
    
    li {
      margin: 0;
      display: block;
      
      a {
        margin: 0;
        color: $blue3;
        text-align: left;
        font-size: 1rem;
        padding: 0.825rem 1rem;
        min-height: 1rem;

        em {
          color: $grey2;
          font-family: monospace;
          font-size: 0.825em;
          font-style: normal;
          font-weight: normal;
          padding-left: 0.5rem;
        }
        
        &.active {
          font-weight: bold;
        }
      }
    }
  }

  // modify size and position for initial landing page
  &.home-nav {
    left: 0;
    position: relative;
    background: transparent;
    border-bottom: none;
    left: auto;
    right: auto;
    margin: 0 auto;
    max-width: 72rem; 

    h1 {
      position: absolute;
      top: 1rem;
      left: 0;

      svg, img {
        min-height: 6.5rem;
      }
    }

    ul {
      margin-top: 3rem;

      li.social {
        a {
          padding-left: 0.5rem;
        }
      }

      li.social {
        border-left: none;
      }

      li.versioner {
        opacity: 0.75;

        a {
          background: transparent;
        }
      }
    }
  }
}

.docs,
.docs-layout {
  .top-bar ul li.versioner {
    display: inline-block;
  }
}

.left-off-canvas-toggle {
  z-index: 1100;
  position: fixed;
  top: 0;
  left: 0;

  img {
    padding: 1.425em 0.925em;
    color: $grey4;
  }
}

// offset banner center when there is a left nav space
.blog-layout .main.blog,
.sidebar + .main {
  nav.top-bar #banner {
    margin-left: -300px;
  }
}