/* MUN header: lowercase nav labels + aligned "back to main site" button. */

nav a,
nav a span,
nav ul li a,
nav .aboutcont a,
nav .committeecont a {
    text-transform: lowercase !important;
    letter-spacing: normal !important;
    font-variant: normal !important;
}

nav ul {
    align-items: center;
}

/* Keep the extra item on the same baseline as about / contact. */
nav ul li.mun-back-item {
    display: flex !important;
    align-items: center !important;
    align-self: center;
    list-style: none;
    margin: 0;
    padding: 0 !important;
    line-height: 1;
}

nav ul li.mun-back-item a.mun-back-to-main {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 0.4rem;
    height: 34px;
    padding: 0 14px !important;
    margin: 0 !important;
    font-family: var(--nav-font, 'Montserrat', sans-serif);
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-transform: lowercase !important;
    text-decoration: none !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    white-space: nowrap;
    transform: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

nav ul li.mun-back-item a.mun-back-to-main:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: #fff !important;
}

nav ul li.mun-back-item a.mun-back-to-main i {
    font-size: 0.7rem;
    line-height: 1;
}

main a.btn,
main a.registerbtn,
.contact-link {
    text-transform: lowercase !important;
}

@media (max-width: 900px) {
    nav ul li a,
    nav .aboutcont a,
    nav .committeecont a {
        text-transform: lowercase !important;
    }

    nav ul li.mun-back-item {
        width: 100%;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    nav ul li.mun-back-item a.mun-back-to-main {
        width: 100%;
        height: 42px;
        justify-content: center;
    }
}
