/* ==========================================================================
   04_NAVIGATION: MAIN
   --------------------------------------------------------------------------
   * README

   * DESKTOP AND MOBILE
   * DESKTOP ONLY
   * MOBILE ONLY
   * PENDING - TO BE IMPROVED
   ========================================================================== */

/* README
   ========================================================================== */

/*!
 * Styles on this stylesheet are the Main Navigation default styles.
 * That means they apply to the HTML you can find inside
 * {% block header__nav %}{% endblock %} in the headerContent.tpt file, and
 * therefore, they apply to all site pages.

 * At the moment we have not had to deal with any exception to these Main
 * Navigation default styles, but if it becomes necessary, let's talk about it
 * and use the opportunity to find the best approach to deal with it - as the
 * code it is already complex enough and I'm not happy with it.
 */

/* DESKTOP AND MOBILE
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.skip-content,
.skip-content:link,
.skip-content:visited {
    position: fixed;
    top: -40px;
    width: 300px;
    left: 50%;
    margin-left: -150px;
}

.skip-content.visibility--visually-hidden.focusable:active,
.skip-content.visibility--visually-hidden.focusable:focus {
    position: fixed;
    top: 0px;
    left: 50%;
    margin-left: -150px;
    width: 300px;
    max-width: 300px;
    padding: 0.25em;
}

.nav--user .icon-user{
    width: 60px;
    height: 90px;
    padding-left: 25px;
}

.nav--user .nav__item__link{
    max-width: 400px;
    display: block;
    white-space: nowrap;
    text-overflow: inherit;
    overflow: hidden;
}

.subnav__list__arrow-up{
    width: calc(100% + 20px);
    height: 20px;
    margin-top: -18px;
    position: relative;
    overflow: hidden;
    margin-left: -10px;
    margin-right: -10px;
}

.subnav__list__arrow-up:after,
.subnav--user:after {
    content: "";
    position: absolute;
    width: 17px;
    height: 17px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 11px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.subnav--user:after {
    top: -8px;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.tpt_menuLeftSlideTrigger,
.tpt_menuLeftSlideAllTrigger {
    display: none;
}

.nav [class$="__item__link"] {
    display: block;
    font-weight: 500;
    white-space: nowrap;

    -webkit-transition: color 0.3s;
    -ms-transition: color 0.3s;
    transition: color 0.3s;
}

.skip-content,
.skip-content:link,
.skip-content:visited {
    transition-property: top;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Appearance
   -------------------------------------------------------------------------- */
.nav__item__link:hover {
    color: #1E40E6; /* var(--color--site) in an IE free world - use this comment as a handler for smart find & replace! */
}

.nav__item__link:focus {
    color: #1E40E6; /* var(--color--site--65) in an IE free world - use this comment as a handler for smart find & replace! */
}

.nav__item--with-subnav:hover .subnav__item__link:hover {
    color: #1E40E6; /* var(--color--site) in an IE free world - use this comment as a handler for smart find & replace! */
}

.nav__item--with-subnav:hover .subnav__item__link:focus {
    color: #1E40E6; /* var(--color--site--65) in an IE free world - use this comment as a handler for smart find & replace! */
}

.skip-content,
.skip-content:link,
.skip-content:visited {
    border-radius: 0 0 5px 5px;
    -webkit-box-shadow: 0 0 12px 0 rgba(91, 91, 91, .3);
    box-shadow: 0 0 12px 0 rgba(91, 91, 91, .3);
    background-color: #FFFFFF;
    text-align: center;
}

.nav--user .nav__item__link{
    line-height: 80px;
    padding-top: 0;
    padding-bottom: 0;
    display:inline-block;
    vertical-align: middle;
}

.nav--user .nav__item__button{
    background: transparent;
    height: unset;
    color: #000000;
    border: 0;
}

.subnav__list__arrow-up:after,
.subnav--user:after {
    background: #fff;
    -webkit-box-shadow: -2px -2px 12px 0 rgba(91, 91, 91, 0.30);
    box-shadow: -2px -2px 12px 0 rgba(91, 91, 91, 0.30);
}

/* DESKTOP AND MOBILE
   ========================================================================== */

/* Structure
   -------------------------------------------------------------------------- */
.nav--main {
    float: left;
}

.nav--main{
    margin-top: 20px;
    margin-left: 80px;
}

.nav--user{
    float:right;
}

.nav__list {
    float: left;
}

.nav__item {
    float: left;
}

.nav__item + .nav__item {
    margin-left: 15px;
}

.nav__item__link {
    padding: 10px 6px 18px 6px;
}

.nav__item--username{
    text-align:right;
}
.nav__item--username .nav__item__link:before {
    float: right;
    margin: 10px 6px;
}

.nav__item__link>img {
    float: left;
    margin-right: 10px;
    width: 24px;
}

.subnav__list {
    padding: 0 10px;
}

.nav__list--actions .subnav__list {
    width: auto;
    min-width: calc(100% + 4px);
}

.nav__list--user .subnav__list {
    width: 100%;
    min-width:180px;
    text-align:left;
}

.subnav__item__link {
    padding: 12px 0;
}

/* Behaviour
   -------------------------------------------------------------------------- */
.nav__item--with-subnav {
    position: relative;
}

.nav__item--with-subnav .nav__item__link {
    position: relative;
    z-index: 3;
    text-align:right;
    display:inline-block;
}

.nav__item--active .nav__item__link {
    cursor: default;
}

.subnav__item--active .subnav__item__link {
    cursor: default;
}

.subnav__list {
    position: absolute;
    top: 100%;
    left: -9999px;
    z-index: 2;
}

.nav__item--with-subnav:hover .subnav__list {
    left: 0;
}

/* Appearance
   -------------------------------------------------------------------------- */

/*
 * 1. The height of the logged user image
 */
.nav__item__link {
    line-height: 24px; /* 1 */
}

.nav__item__link>img {
    border-radius: 100%;
}

.subnav__item--active .subnav__item__link {
    color: #26C59A; /* var(--color--site) in an IE free world - use this comment as a handler for smart find & replace! */
}

.subnav__list {
    -webkit-box-shadow: 0 0 12px 0 rgba(91, 91, 91, 0.30);
    box-shadow: 0 0 12px 0 rgba(91, 91, 91, 0.30);
    background: #FFFFFF;
}

.nav__list--actions .subnav__list {
    border-radius: 0 4px 4px 4px;
}

.subnav__item+.subnav__item {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #D4D4D4; /* var(--color--borders) in an IE free world - use this comment as a handler for smart find & replace! */
}

.subnav__item__link {
    font-weight:300 !important;
}

.subnav__item--active .subnav__item__link {
    color: #26C59A; /* var(--color--site) in an IE free world - use this comment as a handler for smart find & replace! */
}

.subnav--user {
    background-color: #ffffff;
    padding: 0 20px;
    text-align: center;
    -webkit-box-shadow: 0 0 12px 0 rgb(91 91 91 / 30%);
    box-shadow: 0 0 12px 0 rgb(91 91 91 / 30%);
    position: relative;
}

.subnav--user .subnav__item__link {
    background-color: #ffffff;
    position: relative;
    z-index: 2;
}

.nav:not(.nav--user) .nav__item__link {
    font-weight: 300;
}

.nav__heading span{
    color: #777;
    text-transform: uppercase;
    font-size: 15px;
    padding: 0px 0px 0px 40px;
    font-weight: 500;
    border-bottom: 1px solid #ebebeb;
    font-family: 'Theinhard';
}

.nav--main .nav__item--active{
    color: #1E40E6;
    border-bottom: 8px solid #1E40E6;
}

@media all and (max-width:1440px) {
    .nav--user .nav__item__link {
        padding: 0;
        max-width: 200px;
        text-overflow: ellipsis;
    }
}

@media all and (max-width:500px) {
    .tpt_menuLeftSlide.open{
        width: 100%;
    }
}

a[class*="__trigger"] {
    display: none;
}

@media all and (max-width:1180px) {
    .nav--main{
        margin-left: 30px;
    }
}

@media all and (max-width:1024px) {
    a[class*="__trigger"] {
        background-image: url('../images/icon--menu.svg');
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        width:80px;
        cursor: pointer;
        background-size: 24px auto;
        background-position: center center;
        border-left: 1px solid #f0f0f0;
    }

    .tpt_menuLeftSlide__trigger.open {
        background-image: url('../images/icon--close.svg');
    }

    .tpt_menuLeftSlide {
        display: none;
    }

    .nav--user {
        margin-right: 70px;
    }

    .tpt_menuLeftSlideTrigger {
        padding: 0px 30px;
    }

    /* MM: Menu elements - over behaviour */
    .tpt_menuLeftSlide {
        position: absolute;
        top: 0;
        left: -543px;
        z-index: 100000;
        overflow-x: hidden;
        overflow-y: auto;
        width:500px;
        max-width: 80%;
        height: 100vh;
        padding: 0;
        color: #424242;
        background-color: transparent;
        -webkit-transition: -webkit-transform 200ms ease-out 0s;
        -ms-transition: transform 200ms ease-out 0s;
        transition: transform 200ms ease-out 0s;
    }

    .tpt_menuLeftSlide.open {
        -webkit-transform: translate(543px, 0);
        -ms-transform: translate(543px, 0);
        transform: translate(543px, 0);
        -webkit-transform: translate3d(543px, 0, 0);
        transform: translate3d(543px, 0, 0);
        width:500px;
        display: block;
    }

    .nav--toggle{
        background-color: #fff;
        width: 100%;
        height:auto;
        min-height:100%;
        -webkit-box-shadow: 3px 3px 5px rgba(0,0,0,0.4);
        box-shadow: 3px 3px 5px rgba(0,0,0,0.4);
        border-bottom: 3px solid #00adef;
        margin-left: 0;
        margin-top: 0;
    }

    .nav--toggle .nav__item{
        font-family: 'LarishMcKinsey';
        font-size: 18px;
        color: #4a4a4a;
        width:100%;
        margin-left:0;
    }

    .nav__heading span{
        display:inline-block;
        width:100%;
        padding-left: 40px;
        height: 80px;
        line-height: 80px;
    }

    .nav--toggle .nav__item__link{
        padding-left: 40px;
        border-bottom: 1px solid #ebebeb;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-right: 0;
    }

    .nav--toggle .nav__item__link:hover,
    .nav--toggle .nav__item__link:focus{
        background: #ebebeb;
        color: inherit;
    }

}

@media all and (max-width:380px) {
    a[class*="__trigger"] {
        width:30px;
    }

    .nav--user {
        margin-right: 20px;
    }

}

/* PENDING - TO BE IMPROVED
   ========================================================================== */

/* MM: Trigger elements - pushing behaviour */
.tpt_menuLeftSlideAllTrigger {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    height: 70px;
    padding: 0 22px;
    cursor: pointer;
    background-size: .4em 2em;
    background-position: 1.3em center;
    background-image: url('../images/icon--menu.svg');
    line-height: 70px;
    text-indent: -9999px;
    overflow: hidden;
}

.tpt_menuLeftSlideAllTrigger:hover,
.tpt_menuLeftSlideAllTrigger:focus,
.tpt_menuLeftSlideAllTrigger:active {
    background-color: #F0F0F0;
    outline-width: 0;
    background-image: url('../images/icon--menu.svg');
}

.tpt_menuLeftSlideAllTrigger.open {
    outline-width: 0;
    background-image: url('../images/icon--menu.svg');
}

/* MM: Menu elements - pushing behaviour */
.tpt_menuLeftSlideAll {
    position: absolute;
    display: block;
    z-index: 100000;
    top: 0;
    left: -500px;
    width: 500px;
    padding: 0;
    max-width: 100%;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: #FFFFFF;
    background-color: #252525;
    -webkit-box-shadow: inset -5px 0 10px #000000;
    box-shadow: inset -5px 0 10px #000000
}

/* MM: Notified elements - pushing behaviour */
html.tpt_menuLeftSlideAllNotificationOpen,
html.tpt_menuLeftSlideAllNotificationOpen > .body {
    overflow-y: hidden;
    overflow-x: hidden;
    width: 100vw;
    height: 100%;
    min-height: 100%;
    background-color: #252525;
}

.pusher {
    -webkit-transition: -webkit-transform 200ms ease-out 0s;
    -ms-transition: transform 200ms ease-out 0s;
    transition: transform 200ms ease-out 0s;
}

.tpt_menuLeftSlideAllNotificationOpen .pusher {
    -webkit-transform: translate(500px, 0);
    -ms-transform: translate(500px, 0);
    transform: translate(500px, 0);
    -webkit-transform: translate3d(500px, 0, 0);
    transform: translate3d(500px, 0, 0);
}

.fallbackMenu.tpt_menuLeftSlideAllNotificationOpen .pusher {
    position: relative;
    left: 265px;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
}

/* MM: Trigger elements - over behaviour */
.tpt_menuLeftSlideTrigger {
    display: block;
    position: absolute;
    height: 70px;
    line-height: 70px;
    top: 0;
    left: auto;
    padding: 0px 45px;
    cursor: pointer;
    background-image: url('../images/icon--menu.svg');
    background-position: center center;
    background-size: 2em 2em;
    -webkit-transition: -webkit-transform 200ms ease-out 0s;
    -ms-transition: transform 200ms ease-out 0s;
    transition: transform 200ms ease-out 0s;
    text-indent: -9999px;
    overflow: hidden;
    z-index: 1;
    height:100%;
    border-right:1px solid #EBEBEB;
}

.tpt_menuLeftSlideTrigger:hover,
.tpt_menuLeftSlideTrigger:focus,
.tpt_menuLeftSlideTrigger:active {
    outline-width: 0;
}

.tpt_menuLeftSlideTrigger.open {
    outline-width: 0;/*-webkit-transform:translate(265px,0);-ms-transform:translate(265px,0);transform:translate(265px,0);-webkit-transform:translate3d(265px,0,0);transform:translate3d(265px,0,0);*/
}

.tpt_menuLeftSlideTrigger.nav__closing {
    float: right;
    height: 20px;
    line-height: 20px;
    padding: 0;
    background-image: none;
    text-indent: 0;
    text-align: center;
    color: #FFFFFF;
    display: block;
    width: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 7px 0;
    background-image: url(../images/icon-menu-close.png);
    width: 78px;
    height: 80px;
    background-size: cover;
    text-indent: -9999px;
    background-position: top center;
    left: calc(100% - 78px);
    z-index: 99999;
    top: -7px;
    margin-left: 1px;
}

.fallbackMenu .tpt_menuLeftSlideTrigger.open {
    left: 265px;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
}

.fallbackMenu .tpt_menuLeftSlide.open {
    left: 0;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
}

/* MOBILE ONLY
   ========================================================================== */

@media all and (max-width:768px) {
    /* Structure
       -------------------------------------------------------------------------- */
    .nav--user .nav__item__link{
        line-height: 88px;
    }

    .nav--user .icon-user {
        border: 0;
    }
}

@media all and (max-width:600px) {
    /* Structure
       -------------------------------------------------------------------------- */
    .nav--user .icon-user{
        width: 50px;
        padding-right: 10px;
    }

    .subnav__item__link{
        font-size:13px;
        padding: 7px 0;
    }

    .nav__list--user .subnav__list{
        min-width:135px;
    }
}

@media all and (max-width:480px) {
    .nav--user .icon-user{
        width: 32px;
        padding-right: 5px;
        padding-left: 0;
        background-position: left center;
        background-size: 27px;
    }
}

@media all and (min-width: 1025px){
    .nav__item + .nav__item {
        margin-left: 5px;
    }
}

@media all and (max-width:768px){
    .tpt_menuLeftSlideTrigger{
        padding:0px 30px;
    }

    .nav__item + .nav__item {
        margin-left: 0px;
    }
}

@media all and (max-width:480px) {
    .nav--user .nav__item__link{
        max-width: 150px;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        font-size: 14px;
    }
}
