/*
 * Matnha Community v3.3.6 hotfix — compact author/profile button in user-text cards.
 * Scope is intentionally narrow to avoid changing copy/share/save/like/report buttons.
 */

.matn_card a[href*="/u/"],
.matn_card a[href*="/author/"],
.matnha-card a[href*="/u/"],
.matnha-card a[href*="/author/"],
.mt-user-text-card a[href*="/u/"],
.mt-user-text-card a[href*="/author/"],
.mtc-card a[href*="/u/"],
.mtc-card a[href*="/author/"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;
    min-height: 20px !important;
    padding: 1px 6px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.matn_card a[href*="/u/"] img,
.matn_card a[href*="/author/"] img,
.matn_card a[href*="/u/"] .avatar,
.matn_card a[href*="/author/"] .avatar,
.matnha-card a[href*="/u/"] img,
.matnha-card a[href*="/author/"] img,
.matnha-card a[href*="/u/"] .avatar,
.matnha-card a[href*="/author/"] .avatar,
.mt-user-text-card a[href*="/u/"] img,
.mt-user-text-card a[href*="/author/"] img,
.mt-user-text-card a[href*="/u/"] .avatar,
.mt-user-text-card a[href*="/author/"] .avatar,
.mtc-card a[href*="/u/"] img,
.mtc-card a[href*="/author/"] img,
.mtc-card a[href*="/u/"] .avatar,
.mtc-card a[href*="/author/"] .avatar {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    border-radius: 999px !important;
}

.matn_card .matn_card_meta,
.matn_card .matn_card_head,
.matn_card .matn_card_info,
.matn_card .mt_user_text_meta,
.matn_card .mt_user_text_head,
.matnha-card .matn_card_meta,
.matnha-card .matn_card_head,
.matnha-card .matn_card_info,
.mt-user-text-card .matn_card_meta,
.mt-user-text-card .matn_card_head,
.mt-user-text-card .matn_card_info,
.mtc-card .matn_card_meta,
.mtc-card .matn_card_head,
.mtc-card .matn_card_info {
    gap: 4px !important;
}

@media screen and (max-width: 640px) {
    .matn_card a[href*="/u/"],
    .matn_card a[href*="/author/"],
    .matnha-card a[href*="/u/"],
    .matnha-card a[href*="/author/"],
    .mt-user-text-card a[href*="/u/"],
    .mt-user-text-card a[href*="/author/"],
    .mtc-card a[href*="/u/"],
    .mtc-card a[href*="/author/"] {
        min-height: 19px !important;
        padding: 1px 5px !important;
        font-size: 10.5px !important;
        gap: 2px !important;
    }

    .matn_card a[href*="/u/"] img,
    .matn_card a[href*="/author/"] img,
    .matn_card a[href*="/u/"] .avatar,
    .matn_card a[href*="/author/"] .avatar,
    .matnha-card a[href*="/u/"] img,
    .matnha-card a[href*="/author/"] img,
    .matnha-card a[href*="/u/"] .avatar,
    .matnha-card a[href*="/author/"] .avatar,
    .mt-user-text-card a[href*="/u/"] img,
    .mt-user-text-card a[href*="/author/"] img,
    .mt-user-text-card a[href*="/u/"] .avatar,
    .mt-user-text-card a[href*="/author/"] .avatar,
    .mtc-card a[href*="/u/"] img,
    .mtc-card a[href*="/author/"] img,
    .mtc-card a[href*="/u/"] .avatar,
    .mtc-card a[href*="/author/"] .avatar {
        width: 13px !important;
        height: 13px !important;
        min-width: 13px !important;
    }
}
