/* Subnav */

.subnav{width:100%;@include gradient-vertical(#f5f5f5,#eee);border:1px solid #e5e5e5;@include border-radius(4px);
  .nav{margin-bottom:0;
    > li > a{margin:0;padding-top:11px;padding-bottom:11px;border-left:1px solid #f5f5f5;border-right:1px solid #e5e5e5;@include border-radius(0);}
    > .active{
      > a, > a:hover{padding-left:13px;color:#777;background-color:#e9e9e9;border-right-color:#ddd;border-left:0;@include box-shadow(inset 0 3px 5px rgba(0,0,0,.05))}
      > a .caret, > a:hover .caret{border-top-color: #777}}
    > li:first-child > a, > li:first-child > a:hover{border-left:0;padding-left:12px;@include border-radius(4px 0 0 4px)}
    > li:last-child > a{border-right:0;} }
  .dropdown-menu {@include border-radius(0 0 4px 4px)} }

/* Fixed subnav on scroll, but only for 980px and up (sorry IE!) */
@media (min-width: 980px) {
  .subnav-fixed {
    position: fixed;
    top: $navbarHeight;
    left: 0;
    right: 0;
    z-index:$zindexFixedNavbar - 10; /* 10 less than .navbar-fixed to prevent any overlap */
    border-color: #d5d5d5;
    border-width: 0 0 1px; /* drop the border on the fixed edges */
    @include border-radius(0);
    @include box-shadow(#{inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1)});      
    
    .nav {
      @include grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth);
      margin: 0 auto;
      padding: 0 1px}}      
  .subnav .nav > li:first-child > a,
  .subnav .nav > li:first-child > a:hover {@include border-radius(0)}
}

@media (min-width: 1200px) {
  .subnav-fixed .nav{@include grid-core-span($gridColumns,70px,30px)}}