/* "About this advisor" button on the advisor cards of the Ask a question form.
   It opens the same details pop-up as the avatar, which on its own was easy to miss. */
.persona-card .persona-about-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: var(--color-secondary, #64748b);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* A small icon with a comfortable 44px area to press. */
.persona-card .persona-about-btn::before {
    content: "";
    position: absolute;
    inset: -9px;
}

.persona-card .persona-about-btn .material-icons {
    font-size: 18px;
}

.persona-card .persona-about-btn:hover {
    color: var(--color-primary, #2b3a7f);
    background: var(--color-primary-light, #eef0fa);
}

.persona-card .persona-about-btn:focus-visible {
    outline: 2px solid var(--color-primary, #2b3a7f);
    outline-offset: 1px;
}

/* Keep the first line of the name clear of the button in the card's corner. */
.persona-card .persona-name {
    padding-right: 1.5rem;
}

@media (max-width: 480px) {
    /* Phone cards shrink to the avatar alone, where a tap chooses the advisor.
       A second button on a card that small was easy to hit by mistake. */
    .persona-card .persona-about-btn {
        display: none;
    }

    .persona-card .persona-name {
        padding-right: 0;
    }
}
