/* Hero statistics: Arena → Heroes, squad Heroes tab, player hero pool. Uses the Arena tokens. */
.nm-hero-icon { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--site-line, #ffffff1c); background: #0b1114; flex: none; }
.nm-hero-icon--md { width: 44px; height: 44px; }
.nm-hero-icon--sm { width: 26px; height: 26px; filter: grayscale(1) brightness(.8); }

.nm-hero-toolbar { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.nm-hero-toolbar .nm-mode-switch { flex-wrap: wrap; }
.nm-hero-sort { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font: 500 .85rem/1.4 var(--nm-font-body); color: var(--site-muted); }
.nm-hero-sort a { color: var(--site-muted); text-decoration: none; padding: .35rem .6rem; border-bottom: 2px solid transparent; }
.nm-hero-sort a.is-active { color: var(--site-yellow); border-bottom-color: var(--site-yellow); }
.nm-hero-sort a:hover { color: #fff; }

.nm-hero-table { display: grid; font: 500 .92rem/1.4 var(--nm-font-body); color: #d6dcdc; }
.nm-hero-row { display: grid; grid-template-columns: minmax(170px, 2fr) minmax(120px, 2fr) repeat(3, minmax(52px, 1fr)); gap: .8rem; align-items: center;
    padding: .45rem .6rem; border-bottom: 1px solid var(--site-line); }
.nm-hero-row > span:not(.nm-hero-cell) { text-align: center; }
.nm-hero-row--head { color: var(--site-muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.nm-hero-row--head > span:first-child { text-align: start; }
.nm-hero-row:not(.nm-hero-row--head):hover { background: #ffffff06; }
.nm-hero-cell { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.nm-hero-cell > span { display: grid; min-width: 0; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-hero-cell small, .nm-hero-list small { color: var(--site-muted); font-size: .75rem; font-weight: 400; }
.nm-hero-presence { display: flex; align-items: center; gap: .5rem; }
.nm-hero-presence b { flex: 1; height: 6px; background: linear-gradient(90deg, var(--site-yellow) var(--value), #ffffff14 var(--value)); }
html[dir="rtl"] .nm-hero-presence b { background: linear-gradient(270deg, var(--site-yellow) var(--value), #ffffff14 var(--value)); }
.nm-hero-row .is-thin { color: var(--site-muted); }
.nm-hero-note { color: var(--site-muted); font-size: .8rem; margin: .8rem 0 1.6rem; }

.nm-draft-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.nm-draft { background: #0b1114cc; border: 1px solid var(--site-line); padding: .7rem .8rem; font: 500 .88rem/1.4 var(--nm-font-body); }
.nm-draft header { display: flex; justify-content: space-between; color: var(--site-muted); font-size: .75rem; margin-bottom: .5rem; }
.nm-draft__team { padding: .4rem 0 .4rem .6rem; border-inline-start: 3px solid #2f8cff; margin-bottom: .4rem; }
.nm-draft__team--red { border-inline-start-color: #ff4655; }
.nm-draft__team strong { display: block; color: #d6dcdc; margin-bottom: .3rem; }
.nm-draft__team.is-winner strong { color: #fff; }
.nm-draft__team em { font-style: normal; color: var(--site-yellow); font-size: .75rem; margin-inline-start: .3rem; }
.nm-draft__picks, .nm-draft__bans { display: flex; flex-wrap: wrap; gap: .3rem; }
.nm-draft__bans { margin-top: .3rem; }

.nm-hero-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.nm-hero-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font: 500 .9rem/1.3 var(--nm-font-body); }
.nm-hero-list li { display: flex; align-items: center; gap: .7rem; padding: .35rem .4rem; border-bottom: 1px solid var(--site-line, #ffffff1c); }
.nm-hero-list__name { flex: 1; display: grid; color: #fff; min-width: 0; }
.nm-hero-list__value { display: grid; text-align: center; color: #fff; min-width: 3rem; }

@media (max-width: 640px) {
    .nm-hero-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) repeat(3, 2.6rem); gap: .4rem; padding: .4rem .2rem; font-size: .85rem; }
    .nm-hero-row--head { font-size: .62rem; letter-spacing: 0; line-height: 1.2; }
    .nm-hero-row--head > span { overflow-wrap: anywhere; }
    .nm-hero-presence b { display: none; }
    .nm-hero-cell { gap: .45rem; }
    .nm-hero-icon { width: 32px; height: 32px; }
    .nm-draft-list { grid-template-columns: minmax(0, 1fr); }
}
