
/*
 * Phoenix 99 members-app header
 * Typography version: Helvetica, slightly smaller.
 */

.p99-site-header {
    position: relative;
    z-index: 5000;
    width: 100%;
    background: #1c1c1e;
    color: #ffffff;
    box-shadow: 0 1px 0 rgba(255,255,255,.04);
    font-family: Helvetica, Arial, sans-serif;
}

.p99-header-inner {
    width: min(1510px, calc(100% - 48px));
    min-height: 118px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}

.p99-header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 108px;
    flex: 0 0 118px;
}

.p99-header-logo img {
    display: block;
    width: 104px;
    height: 96px;
    object-fit: contain;
}

.p99-main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 38px;
}

.p99-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 5px 0;
    color: #ffffff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.1px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease;
}

.p99-nav-link:hover {
    color: #dce7ff;
}

.p99-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: transparent;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease, background .18s ease;
}

.p99-nav-link:hover::after {
    background: rgba(255,255,255,.42);
    transform: scaleX(1);
}

.p99-nav-link.is-active::after {
    background: #d8d8d8;
    transform: scaleX(1);
}

.p99-signout {
    color: #dce7ff;
}

.p99-menu-toggle {
    display: none;
    margin-left: auto;
    width: 48px;
    height: 48px;
    padding: 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.p99-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px 0;
    background: #fff;
    border-radius: 99px;
    transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 1050px) {
    .p99-header-inner {
        width: min(100% - 28px, 1510px);
        min-height: 82px;
        gap: 15px;
    }

    .p99-header-logo {
        width: 78px;
        height: 76px;
        flex-basis: 78px;
    }

    .p99-header-logo img {
        width: 72px;
        height: 68px;
    }

    .p99-menu-toggle {
        display: block;
    }

    .p99-main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 22px 22px;
        background: #1c1c1e;
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 18px 36px rgba(0,0,0,.28);
    }

    .p99-main-nav.is-open {
        display: flex;
    }

    .p99-nav-link {
        min-height: 52px;
        width: 100%;
        padding: 0 4px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        font-size: 15px;
        font-weight: 400;
    }

    .p99-nav-link::after {
        left: 4px;
        right: auto;
        width: 34px;
        bottom: 8px;
    }

    .p99-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .p99-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .p99-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 520px) {
    .p99-header-inner {
        width: calc(100% - 20px);
        min-height: 74px;
    }

    .p99-header-logo {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
    }

    .p99-header-logo img {
        width: 62px;
        height: 60px;
    }
}
