.t4-navbar .container {
    display: flex;
    align-items: center;
}

.t4-navbar .navbar-nav {
    margin-left: auto;
}

.t4-footer ul.nav.menu {
    display: flex;
    justify-content: center;   /* center links */
    flex-wrap: wrap;           /* allow wrap on mobile */
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.t4-footer ul.nav.menu li {
    display: inline-block;
}



/* Force compact Download button in JA Purity IV */
.t4-navbar .nav > li.menu-download-btn > a {
    background: #40365C;
    color: white !important;

    padding: 3px 12px !important;   /* ↓ controls height */
    line-height: 1.1 !important;
    min-height: unset !important;
    height: auto !important;

    border-radius: 6px;
    font-weight: 600;

    display: inline-flex;           /* prevents template stretching */
    align-items: center;
}



.menu-download-btn a,
a.menu-download-btn {
    background: #40365C;
    color: white !important;

    padding: 8px 14px !important;     /* ↓ smaller height (top/bottom first value) */
    font-size: 14px;       /* optional: slightly smaller text */
    line-height: normal !important;      /* prevents tall line spacing */

   margin-top: 22.5px; 
    height: auto !important;
    //min-height: 0 !important;

    //display: inline-block !important;
    border-radius: 6px;
    font-weight: 600;
}

.menu-download-btn a:hover {
    background: #1e4fc9;
    color: white !important;
}

.t4-navbar .nav > li.menu-download-btn {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}