.site-nav,
.site-nav *{ box-sizing: border-box; }

.site-nav{
    background: #232020;
    color: #f1f1e3;
    position: sticky;
    top: 0;
    z-index: 1701;

    height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

.nav-left{
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav-brand{
    display: inline-flex;
    align-items: center;
    gap: 10px;

    height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #f1f1e3 !important;
    font-weight: 900;
    letter-spacing: .3px;
    text-transform: uppercase;

    white-space: nowrap;
}

.nav-brand:hover{
    background: rgba(255,255,255,.08);
    color: #b1ccef !important;
}

.nav-brand span{
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.nav-burger{
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;

    display: none;
    place-items: center;

    background: rgba(255,255,255,.08);
    color: #f1f1e3;
}

.nav-burger:hover{ background: rgba(255,255,255,.12); }

.nav-right{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.site-nav a{
    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 44px;
    padding: 0 10px;
    border-radius: 12px;

    text-decoration: none;
    text-transform: uppercase;
    color: #f1f1e3 !important;
    font-size: 0.88rem;
    white-space: nowrap;
}

.site-nav a:hover{
    background: rgba(255,255,255,.08);
    color: #b1ccef !important;
}

.nav-pill{
    margin-left: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    background: #dc3545;
    color: #fff;
}

@media (max-width: 980px){
    .nav-burger{ display: grid; }

    .nav-right{
        position: fixed;
        left: 12px;
        right: 12px;
        top: 64px;

        margin-left: 0;
        display: grid;
        gap: 6px;

        padding: 10px;
        border-radius: 18px;

        background: rgba(35,32,32,.92);
        box-shadow: 0 18px 48px rgba(0,0,0,.35);
        backdrop-filter: blur(10px);

        max-height: calc(100dvh - 80px);
        overflow: auto;

        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: opacity .18s ease, transform .22s ease;
    }

    .site-nav.is-open .nav-right{
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .site-nav a{
        height: auto;
        padding: 12px 12px;
        border-radius: 14px;
        justify-content: flex-start;
        text-transform: none;
        font-size: 0.95rem;
    }

    .nav-brand span{
        max-width: 140px;
    }
}

.nav-dd{ position: relative; }
.nav-dd-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 44px;
    padding: 0 10px;
    border-radius: 12px;

    border: 0;
    cursor: pointer;

    background: transparent;
    color: #f1f1e3;
    text-transform: uppercase;
    font-size: .88rem;
    white-space: nowrap;
}

.nav-dd-btn:hover{ background: rgba(255,255,255,.08); color:#b1ccef; }

.nav-dd-caret{ opacity:.8; font-weight: 900; }

.nav-dd-menu{
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;

    background: rgba(35,32,32,.98);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0,0,0,.35);
    padding: 6px;

    z-index: 2000;
}

.nav-dd-item{
    display:flex !important;
    align-items:center;
    justify-content: space-between;
    gap: 10px;

    padding: 10px 10px !important;
    border-radius: 12px;
    height: auto !important;
    text-transform: none !important;
    font-size: .95rem !important;
}

.nav-pill--soft{
    background: rgba(220,53,69,.18);
    color: #ffb3b3;
    border: 1px solid rgba(220,53,69,.35);
}

@media (max-width: 980px){
    .nav-dd{ width: 100%; }
    .nav-dd-btn{ width: 100%; justify-content: space-between; }
    .nav-dd-menu{
        position: static;
        min-width: 0;
        box-shadow: none;
        border: 0;
        padding: 6px 0 0;
        background: transparent;
    }
    .nav-dd-item{
        background: rgba(255,255,255,.06);
    }
}
