/* Team names (names.js): the picker beside the results. On a phone they stack, and once a player is picked the results
   come first, so the names are on screen without scrolling past the search. */
.nm-cols { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; }
.nm-cols > * { min-width: 0; }
.nm-other { display: none; margin-top: 8px; } /* a way back to the search, where it sits under the names */
@media (max-width: 1000px) { .nm-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; } .nm-cols.has-who .nm-out { order: -1; } .nm-other { display: inline-flex; } }
.nm-one { max-width: 860px; }
.nm-clean { flex-shrink: 0; }

/* the search results: people to pick from */
.nm-hits { display: flex; flex-direction: column; max-height: 330px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nm-hit { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 6px; border: 0; border-top: 1px solid var(--line); border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.nm-hit:first-child { border-top: 0; }
.nm-hit[aria-current="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
@media (hover: hover) { .nm-hit:hover b { color: var(--accent-hi); } }
.nm-quick { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the names: each one large, where it came from small underneath, and what you can do with it */
.nm-h { margin: 0; font: 700 24px/1.15 var(--body); text-transform: none; overflow-wrap: anywhere; }
.nm-list { list-style: none; margin: 0; padding: 0; }
.nm-item { display: flex; align-items: center; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.nm-item:first-child { border-top: 0; }
.nm-text { flex: 1; min-width: 0; }
.nm-name { font: 700 20px/1.25 var(--body); color: var(--text); overflow-wrap: anywhere; }
.nm-why { margin-top: 3px; overflow-wrap: anywhere; }
.nm-spicy { vertical-align: 1px; margin-left: 2px; }
.nm-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex-shrink: 0; }
@media (max-width: 560px) { .nm-item { flex-direction: column; align-items: stretch; } .nm-acts { justify-content: flex-start; } .nm-name { font-size: 18px; } }
