/*
Copyright © 2013 Adobe Systems Incorporated.

Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

.accessible-megamenu {
    position: relative;
    display:block;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
}

.accessible-megamenu .accessible-megamenu-top-nav-item {
    position: relative;
    display: block;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
    float: left;
}

.accessible-megamenu :focus {
    outline:  2px solid rgba(34, 95, 215, 0.3);
    -moz-outline-radius: 3px;
}

.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-expanded] {
    position: relative;
    display: block;
    text-decoration: none;
    z-index: inherit;
}


/*.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-expanded]:hover,
.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-expanded]:focus {
    color: #333 !important;
    outline-offset: -1px;
}*/

/*.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-expanded]:hover,
.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-expanded]:focus,
.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-expanded].open {
    margin-left: 0;
    background: #f5f8fa none;
    background: -webkit-gradient(linear,left top,left bottom,from(#f5f8fa),to(#e3e5e5));
    background: -moz-linear-gradient(top,#f5f8fa,#e3e5e5);
    background: -ms-linear-gradient(top,#f5f8fa,#e3e5e5);
    background: -o-linear-gradient(top,#f5f8fa,#e3e5e5);
    z-index: 1002;
}
  
.accessible-megamenu .accessible-megamenu-top-nav-item a[aria-expanded].open {
    background: #f5f8fa none;
    padding-bottom: 2px;
}

.accessible-megamenu .accessible-megamenu-top-nav-item:first-child a[aria-expanded] {
    border-bottom-left-radius: 3px;
}

.accessible-megamenu .accessible-megamenu-top-nav-item:first-child a[aria-expanded].open {
    border-bottom-left-radius: 0px;
    border-left: 1px solid #b3b3b3;
    border-left-color: rgba(0,0,0,0.3);
    left: -1px;
    margin-right: -1px;
}
 */
.accessible-megamenu .accessible-megamenu-panel {
    position: absolute;
    display: block;
    margin: 0;
    line-height: normal;
    cursor: default;
    visibility: hidden;
    overflow: hidden;
    opacity: 0;
    -webkit-transition: opacity 250ms ease, visibility 0s linear 250ms;
       -moz-transition: opacity 250ms ease, visibility 0s linear 250ms;
        -ms-transition: opacity 250ms ease, visibility 0s linear 250ms;
         -o-transition: opacity 250ms ease, visibility 0s linear 250ms;
            transition: opacity 250ms ease, visibility 0s linear 250ms;
}

.accessible-megamenu .accessible-megamenu-panel.open {
    visibility: visible;
    top: 3em;
    max-height: 600px;
    opacity: 1;
    z-index: 1001;
    -webkit-transition: opacity 250ms ease, visibility 0s linear 0s;
       -moz-transition: opacity 250ms ease, visibility 0s linear 0s;
        -ms-transition: opacity 250ms ease, visibility 0s linear 0s;
         -o-transition: opacity 250ms ease, visibility 0s linear 0s;
            transition: opacity 250ms ease, visibility 0s linear 0s;
}

/*.accessible-megamenu .accessible-megamenu-panel a {
    display: inline-block;
    font-size: .92em;
    line-height: 1.2em;
    text-decoration: none;
    color: #225FD7;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 0.5em;
}*/


.accessible-megamenu .accessible-megamenu-panel a:hover,
.accessible-megamenu .accessible-megamenu-panel a:focus {
    color: #225FD7;
    text-decoration: underline;
}
