/* DATACORB SOLUTIONS production logo integration. */

/* Replace the CSS-drawn/text lockup in public and dashboard navigation/footer. */
.dt-brand {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.dt-brand::before {
    content: "";
    display: block;
    width: 218px;
    height: 50px;
    flex: 0 0 auto;
    background: transparent url('/assets/images/brand/logo-light.svg') center / contain no-repeat;
}

.dt-brand > .dt-brand-mark,
.dt-brand > .dt-brand-copy {
    display: none !important;
}

html[data-theme="dark"] .nav-logo.dt-brand::before,
html[data-theme="dark"] .dashboard-brand.dt-brand::before {
    background-image: url('/assets/images/brand/logo-dark.svg');
}

/* Footer is always dark, independent of the selected page theme. */
.site-footer .footer-brand.dt-brand::before {
    width: 270px;
    height: 62px;
    background-image: url('/assets/images/brand/logo-dark.svg');
}

/* Use the selected DC monogram anywhere the old generated brand mark remains. */
.dt-brand-mark {
    width: 42px !important;
    height: 42px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent url('/assets/images/brand/logo-mark-light.svg') center / contain no-repeat !important;
    box-shadow: none !important;
}

.dt-brand-mark::before,
.dt-brand-mark::after {
    display: none !important;
    content: none !important;
}

html[data-theme="dark"] .dt-brand-mark,
.site-footer .dt-brand-mark,
.dc-hero-brand .dt-brand-mark {
    background-image: url('/assets/images/brand/logo-mark-dark.svg') !important;
}

/* Authentication cards receive the real logo without editing every auth page. */
.login-logo {
    width: min(250px, 82%) !important;
    height: 58px !important;
    margin: 0 auto 18px !important;
    color: transparent !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
    background: transparent url('/assets/images/brand/logo-light.svg') center / contain no-repeat !important;
}

html[data-theme="dark"] .login-logo {
    background-image: url('/assets/images/brand/logo-dark.svg') !important;
}

/* Ensure X remains a clean glyph; button/circle styling stays in existing CSS. */
.footer-icon[src$="twitter.svg"],
.contact-item img[src$="X.svg"] {
    object-fit: contain !important;
}

@media (max-width: 1180px) and (min-width: 701px) {
    .nav-logo.dt-brand::before {
        width: 184px;
        height: 44px;
    }
}

@media (max-width: 700px) {
    .nav-logo.dt-brand::before {
        width: 42px;
        height: 42px;
        background-image: url('/assets/images/brand/logo-mark-light.svg');
    }

    html[data-theme="dark"] .nav-logo.dt-brand::before {
        background-image: url('/assets/images/brand/logo-mark-dark.svg');
    }

    .site-footer .footer-brand.dt-brand::before {
        width: min(260px, 86vw);
        height: 60px;
        background-image: url('/assets/images/brand/logo-dark.svg');
    }
}
