/* Apresentação da marca na navegação lateral, usando a logo original. */

.admin-sidebar__header:has(.brand-showcase),
.student-sidebar__brand:has(.brand-showcase) {
    position: relative;
    min-height: auto;
    padding: 12px 14px 14px;
    flex: 0 0 auto;
}

.admin-sidebar__brand.brand-showcase,
.student-sidebar__brand-link.brand-showcase {
    position: relative;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2px 4px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    transition: opacity 180ms ease;
}

.admin-sidebar__brand.brand-showcase:hover,
.student-sidebar__brand-link.brand-showcase:hover {
    opacity: .96;
}

/* A imagem já contém símbolo, nome e assinatura: não reduzi-la a um ícone. */
.admin-sidebar__brand.brand-showcase .admin-sidebar__brand-mark.has-logo,
.student-sidebar__brand-link.brand-showcase .student-sidebar__brand-mark.has-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 197px);
    height: 184px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.admin-sidebar__brand.brand-showcase .admin-sidebar__brand-mark.has-logo img,
.student-sidebar__brand-link.brand-showcase .student-sidebar__brand-mark.has-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 5px 13px rgba(22, 197, 93, .13));
}

.admin-sidebar__brand.brand-showcase .admin-sidebar__brand-text,
.student-sidebar__brand-link.brand-showcase .student-sidebar__brand-copy {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

/* Nome da marca já está no arquivo da logo. */
.admin-sidebar__brand.brand-showcase .admin-sidebar__brand-text strong,
.student-sidebar__brand-link.brand-showcase .student-sidebar__brand-copy strong {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-shell .admin-sidebar__brand.brand-showcase .admin-sidebar__brand-text small,
.student-app .student-sidebar__brand-link.brand-showcase .student-sidebar__brand-copy small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    max-width: 100%;
    padding: 6px 13px;
    margin: -8px 0 0;
    border: 1px solid rgba(33, 192, 99, .27);
    border-radius: 999px;
    background: rgba(33, 192, 99, .10);
    color: #87E2B0;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Botão de fechar fica acessível quando a sidebar abre no celular. */
.admin-sidebar__header:has(.brand-showcase) .admin-sidebar__close,
.student-sidebar__brand:has(.brand-showcase) .student-sidebar__close {
    position: absolute;
    z-index: 2;
    top: 19px;
    right: 19px;
}

/* Na topbar estreita mostramos só o monograma da logo. */
.admin-topbar__mark.has-logo,
.student-main-topbar__mark.has-logo {
    overflow: hidden;
}

.admin-topbar__mark.has-logo img,
.student-main-topbar__mark.has-logo img {
    transform: scale(2.1) translateY(8%);
}

@media (max-height: 680px) {
    .admin-sidebar__brand.brand-showcase .admin-sidebar__brand-mark.has-logo,
    .student-sidebar__brand-link.brand-showcase .student-sidebar__brand-mark.has-logo {
        height: 130px;
        width: 145px;
    }
    .admin-sidebar__header:has(.brand-showcase),
    .student-sidebar__brand:has(.brand-showcase) {
        padding-block: 9px 12px;
    }
    .admin-sidebar__brand.brand-showcase,
    .student-sidebar__brand-link.brand-showcase {
        padding-bottom: 10px;
    }
}
