:root {
    --cci-brand-sidebar-width: 176px;
    --cci-brand-sidebar-height: 58px;
    --cci-brand-header-size: 42px;
    --cci-brand-login-width: 240px;
    --cci-brand-login-height: 76px;
    --cci-brand-compact-size: 42px;
    --cci-brand-spacing: 14px;
    --cci-brand-navy: #17223a;
    --cci-brand-gold: #e5aa17;
}

cci-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    line-height: 1;
}

.cci-brand-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cci-brand-text {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 100%;
    padding-bottom: 9px;
    color: var(--cci-brand-navy);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    white-space: nowrap;
}

.cci-brand-text::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 2px;
    content: "";
    background: var(--cci-brand-gold);
}

.cci-brand-monogram {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .08em;
}

.cci-brand-wordmark {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .035em;
}

cci-brand-logo[variant="light"] .cci-brand-text {
    color: #ffffff;
}

cci-brand-logo[context="sidebar"] {
    width: var(--cci-brand-sidebar-width);
    height: var(--cci-brand-sidebar-height);
}

cci-brand-logo[context="header"] {
    width: var(--cci-brand-header-size);
    height: var(--cci-brand-header-size);
    flex: 0 0 var(--cci-brand-header-size);
}

cci-brand-logo[context="header"] .cci-brand-text {
    align-items: center;
    padding-bottom: 6px;
}

cci-brand-logo[context="header"] .cci-brand-text::after {
    left: 50%;
    width: 26px;
    transform: translateX(-50%);
}

cci-brand-logo[context="header"] .cci-brand-monogram {
    font-size: 16px;
}

cci-brand-logo[context="login"] {
    width: min(100%, var(--cci-brand-login-width));
    height: var(--cci-brand-login-height);
    margin-bottom: var(--cci-brand-spacing);
}

cci-brand-logo[context="login"][variant="original"] {
    width: 100%;
    height: 88px;
}

.cci-brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    color: var(--cci-brand-navy);
}

.cci-brand-original-mark {
    width: clamp(58px, 18vw, 72px);
    height: 74px;
    flex: 0 0 clamp(58px, 18vw, 72px);
    overflow: hidden;
}

.cci-brand-original-mark .cci-brand-image {
    width: auto;
    max-width: none;
    height: 100%;
}

.cci-brand-lockup-divider {
    width: 3px;
    height: 58px;
    flex: 0 0 3px;
    margin: 0 clamp(10px, 3vw, 18px);
    background: var(--cci-brand-gold);
}

.cci-brand-lockup-wordmark {
    color: var(--cci-brand-navy);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(17px, 5.5vw, 25px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.025em;
    white-space: nowrap;
}

cci-brand-logo[context="login"] .cci-brand-text {
    align-items: center;
}

cci-brand-logo[context="login"] .cci-brand-text::after {
    left: 50%;
    width: 48px;
    transform: translateX(-50%);
}

cci-brand-logo[context="login"] .cci-brand-monogram {
    font-size: 28px;
}

cci-brand-logo[context="login"] .cci-brand-wordmark {
    font-size: 14px;
}

cci-brand-logo[variant="compact"] {
    width: var(--cci-brand-compact-size);
    height: var(--cci-brand-compact-size);
}

@media (max-width: 620px) {
    :root {
        --cci-brand-sidebar-width: 150px;
        --cci-brand-sidebar-height: 50px;
        --cci-brand-header-size: 36px;
        --cci-brand-login-width: 205px;
        --cci-brand-login-height: 68px;
    }

    cci-brand-logo[context="login"][variant="original"] {
        height: 78px;
    }

    .cci-brand-original-mark {
        height: 66px;
    }

    .cci-brand-lockup-divider {
        height: 50px;
    }
}
