/* Site navbar.
 *
 * Single source of truth: the per-page <style amp-custom> blocks no longer
 * carry navbar rules, so every view gets the same bar. base.html links this
 * file after those blocks, so it also wins any specificity tie.
 */

section.menu {
    min-height: 70px;
    overflow: visible;
    padding: 0;
}

.menu-container {
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.navbar {
    z-index: 100;
    width: 100%;
    position: absolute;
}

.navbar-fixed-top {
    position: fixed;
    top: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    word-break: break-word;
    z-index: 1;
}

.navbar-logo {
    margin: 0 0.8rem 0 0;
}

.navbar .navbar-collapse {
    display: flex;
    -ms-flex-preferred-size: auto;
    flex-basis: auto;
    align-items: center;
    justify-content: flex-end;
}

.navbar-nav {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    min-width: 10rem;
}

.nav-item {
    word-break: break-all;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link,
.navbar-caption {
    transition: all 0.2s;
    letter-spacing: 1px;
}

.menu-social-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-social-list a {
    margin: 0 0.5rem;
}

.menu-social-list a span {
    font-size: 1.5rem;
}

.hamburger span {
    position: absolute;
    right: 0;
    width: 30px;
    height: 2px;
    border-right: 5px;
}

.hamburger span:nth-child(1) {
    top: 0;
    transition: all 0.3s;
}

.hamburger span:nth-child(2) {
    top: 8px;
    transition: all 0.3s;
}

.hamburger span:nth-child(3) {
    top: 8px;
    transition: all 0.3s;
}

.hamburger span:nth-child(4) {
    top: 16px;
    transition: all 0.3s;
}

.ampstart-btn.hamburger {
    position: absolute;
    top: 25px;
    right: 15px;
    margin-left: auto;
    height: 30px;
    width: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.close-sidebar {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    background-color: transparent;
    border: none;
}

.close-sidebar span {
    position: absolute;
    left: 0;
    width: 30px;
    height: 2px;
    border-right: 5px;
    top: 8px;
}

.close-sidebar span:nth-child(1) {
    transform: rotate(-45deg);
}

.close-sidebar span:nth-child(2) {
    transform: rotate(45deg);
}

.builder-sidebar {
    position: relative;
    height: 100vh;
    min-width: 10rem;
    overflow: hidden auto;
    z-index: 1030;
    padding: 1rem 2rem;
    max-width: 20rem;
}

#sidebar {
    background: transparent;
}

@media (max-width: 991px) {
    .menu-container {
        max-width: 100%;
        padding: 0 2rem;
    }

    .navbar .navbar-collapse {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        height: 100vh;
        overflow-y: auto;
        padding: 70px 2rem 1rem;
        z-index: 1;
    }

    .navbar.opened .navbar-collapse.show,
    .navbar.opened .navbar-collapse.collapsing {
        display: block;
    }

    .is-builder .navbar-collapse {
        position: fixed;
    }

    .navbar-nav {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .menu-container {
        padding: 0 1rem;
    }

    .navbar-logo amp-img {
        max-height: 55px;
        max-width: 55px;
    }
}

@media (min-width: 992px) {
    .ampstart-btn,
    amp-sidebar {
        display: none;
    }
}

/* .cid-sTp2ne5o4C is on both the bar and the off-canvas sidebar. */
.cid-sTp2ne5o4C {
    background-color: #ffffff;
    overflow: visible;
}

.cid-sTp2ne5o4C .navbar {
    background: #ffffff;
    box-shadow: 2.5px 4.33px 30px 0 rgba(0, 0, 0, 0.1);
}

.cid-sTp2ne5o4C .navbar .navbar-collapse {
    width: 70%;
    justify-content: space-between;
}

.cid-sTp2ne5o4C .nav-link {
    margin: 0.667em 1em;
    padding: 0;
}

.cid-sTp2ne5o4C .hamburger span {
    background-color: #232323;
}

.cid-sTp2ne5o4C .builder-sidebar {
    background-color: #ffffff;
}

.cid-sTp2ne5o4C .close-sidebar:focus {
    outline: 2px auto #000000;
}

.cid-sTp2ne5o4C .close-sidebar span {
    background-color: #232323;
}

.cid-sTp2ne5o4C .link {
    color: #000000;
}

.cid-sTp2ne5o4C .amp-iconfont {
    font-size: 1.5rem;
    width: 1.5rem;
}

/* One logo box for every view. 100px tall, aspect-matched to the 300x113 logo
   (100 * 300 / 113 = 265); logos with other proportions letterbox rather than
   stretch into a fat logo. */
.cid-sTp2ne5o4C .navbar-logo amp-img,
.cid-sTp2ne5o4C .navbar-logo img {
    height: 100px;
    width: 265px;
    max-width: 265px;
    object-fit: contain;
}

@media (min-width: 992px) {
    .cid-sTp2ne5o4C .menu-social-list {
        padding-left: 1rem;
    }
}

@media (max-width: 991px) {
    .cid-sTp2ne5o4C .navbar .navbar-collapse {
        background: #ffffff;
    }

    .cid-sTp2ne5o4C .menu-social-list {
        padding-top: 0.5rem;
    }
}