/* rc-stuff functional styles */
@media all {

    /* toggle */
    .rc-link {
        display: block;
        text-decoration: none;
        color: currentColor;
        cursor: pointer;
    }

    /* rc-load */
    .rc-load-hide {
        display: none;
    }

    .rc-load-show {
        display: block;
    }

    .rc-load-success>.rc-hide-on-success {
        display: none;
    }

    /* rc-container */
    .rc-container-enabled,
    .rc-head .rc-html-orig,
    .rc-open .rc-show-closed,
    .rc-show-opened {
        display: none;
    }

    .rc-show-closed,
    .rc-open .rc-show-opened {
        display: block;
    }

    .rc-container-toggle {
        display: none;
    }

    .rc-container-toggle.rc-head {
        display: block;
    }

}

/* mobile toggle  */
@media all {

    .page-header .sf-menu {
        display: none;
    }

    .nav-toggle {
        line-height: 1;
        display: block;
    }

    .nav-toggle-link {
        display: flex;
        height: 3.25rem;
        padding: 0 0.625em;
        color: inherit;
    }

    .nav-toggle-link>span {
        align-self: center;
    }

    /* sr-hint? .nav-toggle-text { width: 1px; clip: rect(1px, 1px, 1px, 1px); overflow: hidden; position: absolute !important; } */
    .nav-toggle-text {
        color: currentColor;
        vertical-align: middle;
        margin-right: 0.625rem;
    }

    .nav-icon-close,
    .nav-icon-menu {
        padding: 0.375rem 0;
        border-top: 0.25rem solid currentColor;
        border-bottom: 0.25rem solid currentColor;
        display: inline-block;
        width: 1.75rem;
        vertical-align: middle;
        position: relative;
    }

    .nav-icon-menu:before {
        content: "";
        background: currentColor;
        display: block;
        height: 0.25rem;
    }

    .nav-icon-close {
        border: none;
        top: -0.15em;
    }

    .nav-icon-close:before,
    .nav-icon-close:after {
        content: "";
        background: currentColor;
        display: block;
        height: 0.25rem;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
        position: absolute;
        left: 0;
        right: 0;
    }

    .nav-icon-close:after {
        -webkit-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .nav-show-opened,
    .nav-toggle-open .nav-show-closed {
        display: none;
    }

    .nav-toggle-open .nav-show-opened {
        display: block;
    }

    /* dim page? */
    /*
    .mm-menu.mm-opened ~ .mm-page::before {
    content: "";
    position: absolute;
    z-index: 1000;
    top: 0;
    background: rgba(0,0,0,0.25);
    left: 0;
    width: 100vw;
    height: 100%;
}
    */

    .mm-menu.mm-opened::before {
        box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.25);
        content: "";
        position: absolute;
        z-index: 1;
        top: 0;
        right: 100%;
        width: 1.25rem;
        height: 100vh;
    }

    .topnav-mobile a:hover {
        color: inherit;
        background: inherit;
    }
}

/* subnav */
@media all {

    .subnav {
        clear: both;
        border-style: solid;
        border-color: rgb(51, 51, 51);
        border-width: 2px 0;
        background-color: rgb(255, 255, 255);
    }


    .subnav .item {
        line-height: 1.1;
        padding: 0.625rem;
        padding-left: 1.25rem;
        text-decoration: none;
        text-transform: uppercase;
        color: rgb(51, 51, 51);
        border-bottom: 1px solid rgb(204, 204, 204);
        overflow: visible !important;
    }


    .subnav .current>.item {
        position: relative;
    }

    .subnav .current>.item::before {
        position: absolute;
        left: 0.625rem;
        top: 49%;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-top: 0.325em solid transparent;
        border-bottom: 0.325em solid transparent;
        border-left: 0.325em solid rgba(0, 0, 0, 0.25);
    }

    .subnav {
        overflow: hidden;
    }

    .subnav .sub {
        position: relative;
        background-color: rgba(0, 0, 0, 0.05);
        box-shadow: 0 0 1.25em rgba(0, 0, 0, .125) inset;
        margin: 0 -0.5em;
        padding: 0 0.5em;
    }

    .subnav .sub .item {
        padding-left: 1.875em;
    }

    .subnav .sub .sub .item {
        padding-left: 1.5em;
    }

    .subnav .sub .sub .sub .item {
        padding-left: 1.75em;
    }

    .subnav .item:focus,
    .subnav .item:hover {
        color: rgb(255, 255, 255);
        background: rgb(51, 51, 51);
    }

}

/* footernav and totop */
@media all {
    .footernav {
        margin-left: -0.3125rem;
        /*! float: left; */
    }

    .footernav li {
        display: block;
        width: 100%;
    }

    .footernav .item {
        display: inline-block;
        padding: 0.625rem 0.3125rem;
    }

    .totoplink {
        position: fixed !important;
        right: 1.25rem;
        bottom: 1.25rem;
        z-index: 10;
        color: rgb(255, 255, 255);
        background: rgb(16, 0, 104);
        line-height: 1;
        border-radius: 50%;
        width: 3.75rem;
        height: 3.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        transition: ease all 0.25s;
        opacity: 0;
    }

    .page-scrolled .totoplink {
        opacity: 1;
    }

    .totoplink::before {
        content: none !important;
    }

    .totoplink>.fa {
        margin-right: 0;
        padding-right: 0;
        margin-top: -0.375rem;
    }
}

/* breadcrumbs */
@media all {
    .bc-nav {
        padding-bottom: 0.9375rem;
    }

    .bc-label {
        margin: 0 0.625rem 0 0;
        line-height: 1;
        float: left;
    }

    .bc-path {
        display: flex;
        flex-wrap: wrap;
    }

    .bc-path .item {
        display: inline-block;
        font-weight: normal;
        text-decoration: none;
    }

    .bc-path li {
        display: flex;
        align-items: center;
        background-image: none !important;
        padding-left: 0 !important;
    }

    .bc-path li+li:before {
        content: ">";
        padding-left: 0.25em;
        padding-right: 0.25em;
    }

}

@media (min-width: 30em) {

    .rc-offcanvas-enabled .rc-offcanvas-right {
        width: 22rem;
        position: absolute;
        left: 100%;
        top: 0;
        height: 100%;
        overflow: auto;
    }

    .rc-offcanvas-enabled.rc-open {
        -webkit-transform: translate(-22rem, 0);
        /* android 2 */
        -ms-transform: translate(-22rem, 0);
        /* ie9 */
        transform: translate(-22rem, 0);
        -webkit-transform: translate3d(-22rem, 0, 0);
        /* android 3-4 */
        transform: translate3d(-22rem, 0, 0);
    }
}

/* tablet (without print) */
@media (min-width: 47.5em) {

    .topnav .item {
        font-size: 87.5%;
        line-height: 1;
        margin: 0 0.3125rem;
        padding: 0.3125rem;
    }

    /* footer  */
    .footernav {
        width: auto;
    }

    .footernav li {
        float: left;
        margin-bottom: 0;
    }

    .footernav .item {
        display: block;
    }

    .footernav li+li {
        margin-left: 0.5em;
    }

}

/* desktop */
@media (min-width: 62.5em) {

    .nav-toggle {
        display: none;
    }

    .page-header .sf-menu {
        display: flex;
        width: auto;
        align-items: center;
        justify-content: space-between;
    }

    /* superfish */
    .sf-menu,
    .sf-menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .sf-menu .sf-has-sub {
        position: relative;
    }

    .sf-menu .sf-sub {
        position: absolute;
        display: none;
        z-index: 99;
    }

    /* either... */
    /* .sf-menu {
    display: table;
    width: 100%;
}
    .sf-menu > li { display: table-cell; }
    */
    /* ...or: */
    .sf-menu>* {
        float: left;
    }

    .sf-menu .sf-has-sub:hover>ul,
    .sf-menu .sf-has-sub.sfHover>ul {
        display: block;
    }

    .sf-menu .item {
        display: block;
        position: relative;
        text-overflow: ellipsis;
    }

    .sf-menu .sf-has-sub .sf-has-sub {
        top: 0;
        left: 100%;
    }

    .sf-menu>.sf-has-sub:last-child>.sf-sub {
        right: 0;
    }

    .sf-menu>.sf-has-sub:last-child>.sf-sub .sf-sub {
        right: 100%;
        left: auto;
    }

    .sf-hidden {
        display: none !important;
    }

    /* sf theme */

    .sf-menu .item {
        display: block;
        margin: 0 0.625rem;
        padding: 0.75rem;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
        color: rgb(51, 51, 51);
        border: 0.25rem solid transparent;
        transition: ease border-color 0.25s;
    }

    .sf-menu .sf-sub .active>.item,
    .sf-menu .active>.item,
    .sf-menu .sf-sub .current>.item,
    .sf-menu .item:active,
    .sf-menu .item:focus,
    .sf-menu .sf-sub:hover>.item,
    .sf-menu .item:hover {
        color: rgb(16, 0, 104);
        border: 0.25rem solid rgb(16, 0, 104);
    }

    .sf-sub {
        background: rgb(255, 255, 255);
        box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.25);
    }

    .sf-sub li+li {
        border-top: 1px solid rgba(0, 0, 0, 0.25);
    }

    .sf-sub .sf-sub {
        border-left: 1px solid rgba(0, 0, 0, 0.25);
    }

    .sf-menu>.sf-has-sub:last-child>.sf-sub .sf-sub {
        border-left: none;
        border-right: 1px solid rgba(0, 0, 0, 0.25);
    }

    .sf-sub .item {
        color: rgb(51, 51, 51);
        background: rgb(255, 255, 255);
        margin: 0;
        padding: 0.625rem 1.25rem;
        border: none;
        text-align: left;
    }

    .sf-menu .sf-has-megasub {
        position: static;
    }

    .sf-megasub {
        left: 0;
        right: 0;
    }

    .sf-megasub .wrap-inner {
        padding-top: 1.875rem;
    }

    .subnav {
        margin-bottom: 2.5rem;
    }

    .footernav {
        margin-left: -0.3125rem;
        float: left;
    }

    .footernav li {
        width: auto;
    }
}