/* Thẻ thành viên / tổ chức — dùng ở khu cộng đồng, trang bài, wiki, popup ý tưởng.
   Gom về đây từ component-community.css và module-bookmark.css để chỉ có một nguồn. */

.cq-mem-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 11px; padding: 20px 12px; background: var(--cq-surface); border: 1px solid var(--cq-light); border-radius: var(--cq-r-card); text-decoration: none; transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.cq-mem-card:hover { border-color: var(--cq-border); box-shadow: 0 10px 26px rgba(18, 56, 91, .08); transform: translateY(-2px); }
.cq-mem-card__name { display: inline-flex; align-items: center; gap: 5px; color: var(--cq-text); font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.cq-mem-card__tick { color: #1d9bf0; font-size: 14px; }

@media (max-width: 640px) {
    .cq-mem-card { padding: 14px 8px; gap: 8px; }
    .cq-mem-card__name { font-size: 13px; }
}

/* Biến thể theo nơi dùng */
.mag-tagloc .cq-mem-card.mag-tagloc__nv { display: flex; flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 10px 12px; border-radius: 999px; max-width: 520px; }
.mag-tagloc .cq-ava { --cq-ava-size: 56px; }
.mag-tagloc .cq-mem-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mag-tagloc .cq-mem-card__name { font-size: 17px; }
.mag-tagloc .cq-mem-card__role { font-size: 12.5px; font-weight: 500; color: var(--cq-muted); line-height: 1.35; }
.mag-detail .mag-detail__aside .cq-mem-card { width: 100%; box-sizing: border-box; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; gap: var(--cq-3); padding: var(--cq-2) var(--cq-2); border-radius: 999px; }
.mag-detail .mag-detail__aside .cq-ava { --cq-ava-size: 48px; }
.mag-detail .mag-detail__aside .cq-mem-card__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mag-detail .mag-detail__aside .cq-mem-card__name { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mag-detail .mag-detail__aside .cq-mem-card__role { font-size: 12px; font-weight: 500; color: var(--cq-muted); line-height: 1.3; }

@media (min-width: 768px) {
    .popup-idea #descriptionIdea .cq-mv-nv .cq-mem-card { display: flex; flex-direction: row; align-items: center; text-align: left; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); }
    .popup-idea #descriptionIdea .cq-mv-nv .cq-mem-card:hover { border-color: rgba(255,255,255,.28); box-shadow: none; transform: none; }
    .popup-idea #descriptionIdea .cq-mv-nv .cq-ava { --cq-ava-size: 38px; }
    .popup-idea #descriptionIdea .cq-mv-nv .cq-mem-card__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
    .popup-idea #descriptionIdea .cq-mv-nv .cq-mem-card__name { color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; }
    .popup-idea #descriptionIdea .cq-mv-nv .cq-mem-card__role { color: rgba(255,255,255,.55); font-size: 11.5px; font-weight: 500; }
}

/* Vòng đánh dấu khi rê chuột (chuyển từ module-bookmark.css) */
.cq-mem-card { position: relative; }
