/* Compact share / copy link controls — always one row */

.clan-share {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 14px;
    max-width: 100%;
    vertical-align: middle;
}

.clan-share-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-right: 2px;
    flex-shrink: 0;
}

.clan-share-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(20, 35, 63, 0.35);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    box-sizing: border-box;
}

.clan-share-btn:hover,
.clan-share-btn:focus-visible {
    background: rgba(255, 215, 0, 0.95);
    color: #1E3C72;
    border-color: #FFD700;
    outline: none;
    transform: translateY(-1px);
}

.clan-share-btn.is-wa:hover,
.clan-share-btn.is-wa:focus-visible {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

.clan-share-btn.is-copied {
    background: #FFD700;
    color: #1E3C72;
    border-color: #FFD700;
}

/* On white/light surfaces (cards, detail bodies) */
.clan-share.on-light .clan-share-label {
    color: #5b6b86;
}

.clan-share.on-light .clan-share-btn {
    background: #f4f7fc;
    color: #1E3C72;
    border-color: #d7e0ef;
}

.clan-share.on-light .clan-share-btn:hover,
.clan-share.on-light .clan-share-btn:focus-visible {
    background: #1E3C72;
    color: #FFD700;
    border-color: #1E3C72;
}

.clan-share.is-compact {
    margin-top: 0;
}

.clan-share.is-compact .clan-share-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.75rem;
}

/* Listing card footers */
.news-card .clan-share,
.meeting-card .clan-share,
.hof-card .clan-share,
.member-card-share {
    margin-top: 10px;
}

/* Action cells: view + share on one line (members, Ebifa ku Mituba) */
.row-actions,
.member-row-actions,
td.actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    vertical-align: middle;
}

td.actions .clan-share,
.member-row-actions .clan-share,
.row-actions .clan-share {
    margin-top: 0;
}

@media (max-width: 640px) {
    .clan-share-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .clan-share.is-compact .clan-share-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
}
