/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
    color: $color__link;

    &:visited {
        color: $color__link-visited;
    }
    &:hover,
    &:focus,
    &:active {
        color: $color__link-hover;
    }
    &:focus {
        outline: thin dotted;
    }
    &:hover,
    &:active {
        outline: 0;
    }
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
    clear: both;
    ul {
        display: block;
        list-style: none;
        margin: 0;
        padding-left: 0;
        ul {
            background: #222;
            float: left;
            position: absolute;
            top: 100%;
            left: -999em;
            z-index: 99999;

            ul {
                left: -999em;
                top: 0;
            }

            li {
                &:hover > ul,
                &.focus > ul {
                    left: 100%;
                }
            }

            a {
                width: 200px;
            }

            :hover > a,
            .focus > a {
            }

            a:hover,
            a.focus {
            }
        }

        li:hover > ul,
        li.focus > ul {
            left: auto;
        }
    }

    li {
        float: left;
        position: relative;
        &:hover {
            background: #282828;
        }
        &:hover > a,
        &.focus > a {
        }
    }

    a {
        display: block;
        text-decoration: none;
        font-size: 12px;
        line-height: 24px;
        color: #fff;
        padding: 10px 15px;
        text-transform: uppercase;
        font-weight: 500;
        letter-spacing: 1px;
    }

    .current_page_item > a,
    .current-menu-item > a,
    .current_page_ancestor > a,
    .current-menu-ancestor > a {
    }
}

#nav-toggle {
    float: left;
    position: relative;
    width: 35px;
    overflow: hidden;
    white-space: nowrap;
    color: transparent;
    display: none;
    span {
        position: absolute;
        top: 50%;
        right: 5px;
        margin-top: -2px;
        -webkit-transition: rotate 0.2s, translate 0.2s;
        -moz-transition: rotate 0.2s, translate 0.2s;
        transition: rotate 0.2s, translate 0.2s;
        display: inline-block;
        height: 3px;
        width: 24px;
        background: #fff;
    }
}
#nav-toggle span:before, #nav-toggle span:after {
    position: absolute;
    display: inline-block;
    height: 3px;
    width: 24px;
    background: #fff;
    content: '';
    right: 0;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-origin: 0% 50%;
    -moz-transform-origin: 0% 50%;
    -ms-transform-origin: 0% 50%;
    -o-transform-origin: 0% 50%;
    transform-origin: 0% 50%;
    -webkit-transition: -webkit-transform 0.2s;
    -moz-transition: -moz-transform 0.2s;
    transition: transform 0.2s;
}
#nav-toggle span:before {
    top: -8px;
}
#nav-toggle span:after {
    top: 8px;
}

@media screen and (max-width: 991px) {
    .main-navigation ul {
        display: none;
        position: absolute;
        width: 100%;
        left: 0;
        top: 44px;
        z-index: 999;
        margin-left: 0 !important;
        li {
            display: block;
            width: 100%;
            background: #fff;
            a {
                color: #000;
                padding: 10px 20px;
                font-weight: normal;
                border-bottom: 1px solid #e9e9e9;
            }
            ul {
                position: relative;
                left: 0;
                background: #fff;
                a {
                    width: 100%;
                    padding-left: 30px;
                }
                ul {
                    a {
                        padding-left: 50px;
                    }
                }
            }
        }
    }
    .main-navigation.toggled ul {
        display: block;
    }
    #nav-toggle {
        display: block;
    }
    #nav-toggle.nav-is-visible span {
        background: transparent;
    }
    #nav-toggle.nav-is-visible span:before, #nav-toggle.nav-is-visible span:after {
        background: #fff;
    }
    #nav-toggle.nav-is-visible span:before {
        -webkit-transform: translateX(4px) translateY(-1px) rotate(45deg);
        -moz-transform: translateX(4px) translateY(-1px) rotate(45deg);
        -ms-transform: translateX(4px) translateY(-1px) rotate(45deg);
        -o-transform: translateX(4px) translateY(-1px) rotate(45deg);
        transform: translateX(4px) translateY(-1px) rotate(45deg);
    }
    #nav-toggle.nav-is-visible span:after {
        -webkit-transform: translateX(4px) translateY(0px) rotate(-45deg);
        -moz-transform: translateX(4px) translateY(0px) rotate(-45deg);
        -ms-transform: translateX(4px) translateY(0px) rotate(-45deg);
        -o-transform: translateX(4px) translateY(0px) rotate(-45deg);
        transform: translateX(4px) translateY(0px) rotate(-45deg);
    }
}

.comment-navigation,
.posts-navigation,
.post-navigation {

    .site-main & {
        margin: 0 0 1.5em;
        overflow: hidden;
    }

    .nav-previous {
        float: left;
        width: 50%;
    }

    .nav-next {
        float: right;
        text-align: right;
        width: 50%;
    }
}
