/*
 * Always-on Elite Care | Mayam cobranding for the sidebar and login,
 * on both the Mayam and default themes, expanded or collapsed.
 * Load after style.bundle*.css (and after mayam-theme.css when that is on).
 */

/* ── Sidebar: both marks sit on one row ── */
.brand .brand-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    flex-wrap: nowrap;
    max-width: calc(100% - 36px);
}

.brand .elite-care-logo {
    height: 28px;
    width: auto;
    display: block !important;
    flex-shrink: 0;
    background: none;
    padding: 0;
    margin: 0;
}

.brand .elite-care-name {
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}

.brand .brand-divider {
    color: rgba(255, 255, 255, 0.55);
    font-size: 20px;
    line-height: 1;
    font-weight: 300;
    flex-shrink: 0;
}

.brand .mayam-brand-logo {
    height: 36px;
    width: auto;
    max-width: 110px;
    display: block !important;
    flex-shrink: 0;
    /* Gold wordmark stays readable on the dark aside */
    filter: saturate(1.08) brightness(1.18);
}

/* Collapsed aside: keep BOTH marks, stacked. Override Metronic's
   `.aside-minimize .brand .brand-logo img { display: none }`. */
body.aside-minimize:not(.aside-minimize-hover) .brand .brand-logo,
.aside-minimize:not(.aside-minimize-hover) .brand .brand-logo {
    flex-direction: column !important;
    gap: 4px !important;
    max-width: 100%;
}

body.aside-minimize:not(.aside-minimize-hover) .elite-care-name,
body.aside-minimize:not(.aside-minimize-hover) .brand .brand-divider,
.aside-minimize:not(.aside-minimize-hover) .elite-care-name,
.aside-minimize:not(.aside-minimize-hover) .brand .brand-divider {
    display: none !important;
}

body.aside-minimize:not(.aside-minimize-hover) .brand .brand-logo img,
.aside-minimize:not(.aside-minimize-hover) .brand .brand-logo img {
    display: block !important;
}

body.aside-minimize:not(.aside-minimize-hover) .brand .elite-care-logo,
.aside-minimize:not(.aside-minimize-hover) .brand .elite-care-logo {
    height: 22px;
    width: auto;
}

body.aside-minimize:not(.aside-minimize-hover) .brand .mayam-brand-logo,
.aside-minimize:not(.aside-minimize-hover) .brand .mayam-brand-logo {
    height: 20px;
    max-width: 54px;
    width: auto;
    filter: saturate(1.12) brightness(1.28);
}

/* ── Default (Metronic) login: same pair on the dark hero ── */
.login-cobrand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.login-cobrand .elite-care-name,
.login-cobrand .text-white {
    white-space: nowrap;
}

.login-cobrand .brand-divider {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
}

.login-cobrand .mayam-brand-logo {
    height: 52px;
    width: auto;
    max-width: 150px;
    display: block;
    filter: brightness(1.3) saturate(1.08);
}
