/* =========================================================
   Faction Profile – Public Badge Styles
   ========================================================= */

.faction-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-family: inherit;
    font-size: 0.85em;
    line-height: 1;
}

.faction-profile-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75em;
    opacity: 0.6;
    white-space: nowrap;
}

.faction-profile-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: opacity 0.15s ease;

    /* Inherits theme colours by default; customise below */
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    text-decoration: none;
}

.faction-profile-name:hover,
.faction-profile-name:focus {
    opacity: 0.75;
    text-decoration: underline;
}

.faction-profile-name--nolink {
    cursor: default;
}

.faction-profile-name--nolink:hover {
    opacity: 1;
    text-decoration: none;
}

.faction-profile-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    vertical-align: middle;
    opacity: 0.7;
}

/* Dark-mode friendly */
@media (prefers-color-scheme: dark) {
    .faction-profile-name {
        background: rgba(255, 255, 255, 0.12);
    }
}
