/* 
 * Styles for the mid-level navbar using Accessible Mega Menu
 * 
 */
#mid-navbar {
    background-color: #045273;
    height: 50px;
}

#mid-navbar ul.nav-menu {
    background-color: rgba(0, 0, 0, 0);
    background-image: none;
    box-shadow: none;
    margin: 0 auto;
    padding: 0;
    position: relative;
    width: 995px;
}

#mid-navbar li.nav-item > a {
    color: #FFFFFF;
    float: left;
    font-size: 1.15em;
    padding: 9px 9px 17px;
}

#mid-navbar .sub-nav {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.98);
    border-color: #D7A900 -moz-use-text-color;
    border-image: none;
    border-right: 0 none;
    border-style: solid none none;
    border-width: 4px 0 0;
    box-shadow: 1px 1px 5px #808080;
    left: 0;
    margin: -1px 0 0;
    /*
      opacity: 0;
      overflow: hidden;
      padding: 0;
      position: absolute;
      top: 42px;
      transition: all 0.3s ease 0s;
    */
}

#mid-navbar .sub-nav-group {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.01) 96%, #EDEDED 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
    float: left;
    padding: 10px 0 10px 10px;
}

#mid-navbar .sub-nav-group:last-child {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0) !important;
}

#mid-navbar .sub-nav ul li {
    /* background: url("img/bullet-gold.png") no-repeat scroll left 7px rgba(0, 0, 0, 0); */
    list-style: none outside none;
    margin-bottom: 5px;
    margin-left: 0;
    padding-left: 12px;
}

#mid-navbar .sub-nav a {
    border-bottom: 1px solid #F1F1F1;
    color: #3C3C3C;
    display: block;
    font-size: 105%;
    margin: 0 30px 3px 0;
    min-width: 200px;
    padding: 0 10px 3px 7px;
    line-height: 21px;
}

#mid-navbar a {
    text-decoration: none;
}

#mid-navbar li.nav-item > a:hover,
#mid-navbar li.nav-item > a:focus,
#mid-navbar li.nav-item > a.open {
    color: #F0F0FF; /* slightly lighter version of #D7A900 */
    background: transparent;
    text-decoration: underline;
}

#mid-navbar .sub-nav a:hover,
#mid-navbar .sub-nav a:focus {
    background-color: #0088cc;
    color: #FFFFFF;
}

<!--
styles that make the menu work

-->

/* mega menu list */
.nav-menu {
    display: block;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 15;
}

/* a top level navigation item in the mega menu */
.nav-item {
    list-style: none;
    display: inline-block;
    padding: 0;
    margin: 0;
}

/* first descendant link within a top level navigation item */
.nav-item > a {
    position: relative;
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 0 -1px 0;
    border: 1px solid transparent;
}

/* focus/open states of first descendant link within a top level
   navigation item */
.nav-item > a:focus,
.nav-item > a.open {
    border: 1px solid #dedede;
}

/* open state of first descendant link within a top level
   navigation item */
.nav-item > a.open {
    /* background-color: #fff; */
    border-bottom: none;
    z-index: 1;
}

/* sub-navigation panel */
.sub-nav {
    position: absolute;
    display: none;
    top: 2.6em;
    margin-top: -1px;
    padding: 0.5em 1em;
    border: 1px solid #dedede;
    /* background-color: #fff; */
}

/* sub-navigation panel open state */
.sub-nav.open {
    display: inline-flex;
}

/* list of items within sub-navigation panel */
.sub-nav ul {
    display: inline-block;
    vertical-align: top;
    margin: 0 1em 0 0;
    padding: 0;
}

/* list item within sub-navigation panel */
.sub-nav li {
    display: block;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
