/* ══════════════════════════════════════════════════════════════════════
   용병 팝업 — 영웅 상세와 용병 목록이 함께 쓴다 (soldier-modal.js)
   ══════════════════════════════════════════════════════════════════════ */

.sm-tabs { display: flex; gap: .3rem; margin-bottom: .75rem; }
.sm-tab {
    padding: .2rem .7rem;
    border: 1px solid #e9ebec;
    border-radius: .3rem;
    background: #fff;
    color: #495057;
    font-size: .78rem;
    cursor: pointer;
}
.sm-tab.is-on { background: #405189; border-color: #405189; color: #fff; font-weight: 600; }

.sm-head { display: flex; gap: .8rem; align-items: flex-start; }
.sm-portrait {
    width: 76px;
    height: 94px;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
}
.sm-name { font-size: 1.05rem; font-weight: 600; }
.sm-meta { display: flex; flex-wrap: wrap; gap: .25rem; margin: .3rem 0; }
.sm-line { display: flex; gap: .9rem; font-size: .82rem; }
.sm-line img { width: 16px; height: 16px; object-fit: contain; margin-right: .2rem; }

.sm-stats { width: 100%; margin-top: .8rem; font-size: .85rem; }
.sm-stats th {
    font-weight: 500;
    color: #495057;
    padding: .25rem .4rem .25rem 0;
    white-space: nowrap;
    width: 6rem;
}
.sm-stats th img { width: 16px; height: 16px; object-fit: contain; margin-right: .3rem; }
.sm-stats td { padding: .25rem 0; font-weight: 600; }

.sm-ability {
    margin-top: .8rem;
    padding-top: .7rem;
    border-top: 1px solid #f1f2f4;
    font-size: .85rem;
    line-height: 1.5;
    word-break: keep-all;
}

.sm-foot { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #f1f2f4; }
/* 이름 대신 영웅 카드로 늘어놓는다. 줄 수가 많아질 수 있어 스스로 스크롤한다 */
.sm-heroes {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    max-height: 14rem;
    overflow-y: auto;
}
.sm-hero {
    position: relative;
    display: block;
    width: 56px;
    height: 56px;
    border-radius: .35rem;
    overflow: hidden;
    text-decoration: none;
}
.sm-hero img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
}
.sm-hero:hover { outline: 2px solid #405189; }

/* 이름은 영웅 목록의 스위치가 켜져 있을 때만 (기본은 그림만) */
.sm-hero-name { display: none; }
.sm-heroes.names-on .sm-hero-name {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1px 3px;
    font-size: .66rem;
    line-height: 12px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, .45);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
