/* Shared entity-image presentation for Nexus surfaces.
   Entity identity selects the variant; connection categories do not. */
.nexus-entity-image {
    position: relative;
    display: grid;
    place-items: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.nexus-entity-image > img {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}


.nexus-entity-image.is-place,
.nexus-entity-image.is-emblem,
.nexus-entity-image.is-object {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* These selectors deliberately outrank the superseded feature-local frames. */
.faction-domain-small-card > .nexus-entity-image,
.faction-domain-small-card.is-holding > .nexus-entity-image,
.faction-domain-command-card .nexus-entity-image,
.faction-profile-command-card .nexus-entity-image,
.npc-profile-importance-card .nexus-entity-image,
.npc-life-featured-card .nexus-entity-image,
.npc-life-card .nexus-entity-image,
.connection-card .nexus-entity-image,
.npc-dossier-header .nexus-entity-image {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.faction-domain-small-card > .nexus-entity-image img,
.faction-domain-command-card .nexus-entity-image img,
.faction-profile-command-card .nexus-entity-image img,
.npc-profile-importance-card .nexus-entity-image img,
.npc-life-featured-card .nexus-entity-image img,
.npc-life-card .nexus-entity-image img,
.connection-card .nexus-entity-image img,
.npc-dossier-header .nexus-entity-image img {
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.nexus-entity-image > .nexus-entity-image-badge {
    position: absolute;
    right: -5px;
    bottom: -4px;
    z-index: 2;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid var(--nexus-importance-accent);
    border-radius: 50%;
    color: var(--nexus-importance-accent);
    background: var(--nexus-surface-base);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .48);
    font-size: 10px;
}