/*
 * O cartão do assinante na barra de cima.
 *
 * Abre no :hover e também no :focus-within — quem navega de teclado chega no
 * cartão com Tab, e ele precisa continuar aberto enquanto o foco estiver lá.
 */

.bandtopo { position: relative; display: inline-flex; align-items: center; }

.bandtopo__gatilho {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    text-decoration: none;
    transition: color .18s ease;
}

.bandtopo__gatilho:hover { color: #fff; }

.bandtopo__disco {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #d8151f;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.bandtopo__disco--mini { width: 20px; height: 20px; font-size: 9px; letter-spacing: 0; }

/* o cartão */
.bandtopo__cartao {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 90;
    width: 288px;
    /* a folga de cima é a ponte para o mouse atravessar sem fechar o cartão */
    margin-top: 8px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid #e4e1d8;
    box-shadow: 0 22px 44px rgba(8, 33, 62, .28);
    color: #101216;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.bandtopo__cartao::before {
    /* faixa invisível colada no gatilho, para o mouse não cair no vão */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.bandtopo:hover .bandtopo__cartao,
.bandtopo:focus-within .bandtopo__cartao {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bandtopo__cabeca {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 14px;
    border-bottom: 1px solid #e4e1d8;
}

.bandtopo__quem { min-width: 0; }

.bandtopo__nome {
    display: block;
    font-family: Fraunces, Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bandtopo__email {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #6b7078;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bandtopo__escolhas {
    margin: 13px 0 15px;
    font-size: 13px;
    line-height: 1.45;
    color: #101216;
}

.bandtopo__rotulo {
    display: block;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #6b7078;
    margin-bottom: 4px;
}

.bandtopo__bt {
    display: block;
    text-align: center;
    background: #d8151f;
    color: #fff;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 12px 10px;
    transition: background-color .18s ease;
}

.bandtopo__bt:hover { background: #a30f16; color: #fff; }

.bandtopo__sair {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #6b7078;
    text-decoration: none;
}

.bandtopo__sair:hover { color: #d8151f; }

/* os links de quem ainda não entrou */
.bandtopo__entrar { color: inherit; text-decoration: none; transition: color .18s ease; }
.bandtopo__entrar:hover { color: #fff; }
.bandtopo__ponto { opacity: .4; }
.bandtopo__assine { color: #fff; text-decoration: none; transition: color .18s ease; }
.bandtopo__assine:hover { color: #ff6d7c; }
