/* ======= NAVIGATION ======== */
#skip {
    position: absolute;
    left: -9999px;
    top: auto;
    color: #003;
    text-decoration: none;
    background: #fcf;
    padding: 8px 20px;
    z-index: 10;
}

#skip:focus {
    left: 0;
}

#tmm,
.toggle {
    position: absolute;
    left: -9999px;
}

#tmm:focus ~ .burger {
    background: #0dd;
}

.toggle:focus ~ .drop {
    background: #ccf;
}

.menu {
    white-space: nowrap;
    max-width: 1100px;
}

/* -------- banner ---------- */
.burger {
    background: #ccc;
    display: inline-block;
    vertical-align: middle;
    padding: 23px 14px 24px;
    margin-right: -6px;
}

.burger:hover,
.burger:focus {
    background: #9ff;
}

#tmm:focus ~ .burger {
    background: #9ff;
}

.burger-patty {
    width: 18px;
    height: 3px;
    position: relative;
    display: block;
    background: #333;
}

.burger-patty:before,
.burger-patty:after {
    background: #333;
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    width: 100%;
    transition: all 800ms ease-in;
}

.burger-patty:before {
    top: 5px;
}

.burger-patty:after {
    top: -5px;
}

.logo {
    display: inline-block;
    vertical-align: middle;
    padding: 10px 10px 7px;
    margin-right: -2px;
    width: 50px;
    height: 50px;
}

.logo:hover,
.logo:focus {
    background: #cff;
}

.fav {
    width: 30px;
    height: 30px;
}

.banner {
    width: 70%;
    display: inline-block;
    vertical-align: middle;
    padding: 14px 6px 11px;
    background-image: url(../images/watbanr.gif);
    background-size: cover;
    margin: 0;
    background-repeat: no-repeat;
    background-position: -41px;
    max-width: 315px;
}

.ellips {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.burger:hover,
.burger:focus {
    cursor: pointer;
}

/* ---------- menu ----------- */
.main-menu,
.sub-menu {
    margin: 0;
}

.main-menu {
    display: none;
    padding: 0;
    min-width: 300px;
    max-width: 840px;
    background: linear-gradient(150deg, #eef 0%, #ccc 100%);
}

.sub-menu {
    display: none;
    padding-left: 20px;
    background: linear-gradient(150deg, #bbe 0%, #999 100%);
    border-bottom-color: #000000;
}

.menu-item {
    display: block;
    list-style: none;
    background: linear-gradient(150deg, #eef 0%, #ccf 100%);
}

.has-sub {
    max-width: 82%;
}

.is-sub {
    min-width: 140px;
}

.menu-link {
    display: inline-block;
    color: #00c;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    font-variant: small-caps;
    text-transform: capitalize;
    line-height: 12px;
    letter-spacing: 1px;
    padding: 19px 15px;
    width: 100%;
}

.menu-link:focus,
.menu-link:hover {
    padding-bottom: 14px;
    border-bottom: 5px solid #cff;
}

.current-link {
    padding-bottom: 14px;
    border-bottom: 5px solid;
}

.current-link:hover,
.current-link:focus {
    padding-bottom: 14px;
    border-bottom: 5px solid;
}

.drop {
    float: right;
    min-width: 48px;
    min-height: 48px;
    color: #003;
    opacity: .4;
    font-size: 14px;
    font-weight: bold;
    line-height: 48px;
    text-align: center;
    box-shadow: 0 0 1px #000033;
    transition: transform 150ms ease-in-out;
    cursor: pointer;
}

.drop:hover,
.drop:focus {
    color: #cff;
    opacity: 1;
    font-size: 16px;
}

.toggle:focus ~ .drop {
    color: #cff;
    opacity: 1;
    font-size: 16px;
}

/* ====== CHECK BEHAVIOR ====== */
#tmm:checked ~ .main-menu {
    display: block;
}

#tmm:checked ~ .burger .burger-patty {
    background: transparent;
}

#tmm:checked ~ .burger .burger-patty:before {
    top: 0;
    transform: rotate(-315deg);
}

#tmm:checked ~ .burger .burger-patty:after {
    top: 0;
    transform: rotate(315deg);
}

.toggle:checked ~ .sub-menu {
    display: block;
}

.toggle:checked ~ .drop {
    transform: rotate(90deg);
    box-shadow: 0 0 0;
}

/* ======= RESPONSIVE ======== */
@media (min-width: 547px) {
    #tmm {
        display: none;
    }

    .menu {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: 'logo title' 'nav nav';
    }

    .burger {
        display: none;
    }

    .logo {
        grid-area: logo;
    }

    .banner {
        grid-area: title;
        background-position: -51px;
        max-width: 370px;
        width: 100%;
    }

    .main-menu {
        grid-area: nav;
        display: flex;
        justify-content: space-evenly;
    }

    .menu-item {
        display: flex;
        position: relative;
        flex-wrap: nowrap;
        align-items: baseline;
        justify-content: space-between;
    }

    .toggle:checked ~ .sub-menu {
        display: block;
        position: absolute;
        top: 100%;
        z-index: 1;
    }
}

@media (min-width: 800px) {
    .menu {
        display: grid;
        grid-template-columns: auto 370px 1fr;
        grid-template-rows: auto;
        grid-template-areas: 'logo title nav';
    }
}