/*
 * The logo of the club is drawn twice (black and white, see templates/_club_logo.html.twig):
 * only the one that suits the background is shown.
 * EasyAdmin puts the "ea-dark-scheme" class on the body when the dark mode is on.
 */
.club-logo {
    display: inline-block;
    height: 3rem;
    width: auto;
    /* Both images share the same 3:2 canvas. */
    aspect-ratio: 3 / 2;
    vertical-align: middle;
}

.club-logo--login {
    height: 6rem;
}

.club-logo--on-dark {
    display: none;
}

.ea-dark-scheme .club-logo--on-light {
    display: none;
}

.ea-dark-scheme .club-logo--on-dark {
    display: inline-block;
}

/* In the sidebar of a dashboard, the logo is centered (EasyAdmin aligns the title on the left). */
.ea-sidebar-logo .logo-custom {
    text-align: center;
}

/*
 * In the compact sidebar (64 px wide), EasyAdmin replaces the title by an icon:
 * the logo is shown instead, shrunk to the width of the sidebar.
 */
body.ea-sidebar-width-compact .ea-sidebar-header {
    padding-inline: 0.5rem;
}

body.ea-sidebar-width-compact .ea-sidebar-logo .logo-custom {
    display: block;
}

body.ea-sidebar-width-compact .ea-sidebar-logo .logo-compact {
    display: none;
}

body.ea-sidebar-width-compact .ea-sidebar-logo .club-logo {
    height: auto;
    width: 100%;
}

/* The name of the club, for screen readers only. */
.club-logo-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
