/* Research panel (city-tech-ui.js). Tokens: n190's --nx-* (city/nous-tokens.css); no colours of its own, so each
   falls back to the text colour until the tokens land. Sheet, chip and button looks come from city.css (n188). */
.city-rs { display: flex; flex-direction: column; gap: var(--nx-space-3, 10px); }
.city-rs__tabs { display: flex; gap: var(--nx-space-2, 6px); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.city-rs__tab { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; cursor: pointer; }
.city-rs__tab.is-on { outline: 2px solid var(--nx-accent, currentColor); }
.city-rs__n { opacity: 0.6; font-variant-numeric: tabular-nums; }
.city-rs__tree { display: flex; flex-direction: column; gap: var(--nx-space-2, 8px); }
.city-rs__tier { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--nx-space-2, 8px); position: relative; padding-top: 10px; }
.city-rs__tier:first-child { padding-top: 0; }
.city-rs__tier + .city-rs__tier::before { content: ''; position: absolute; left: 50%; top: 0; height: 10px; border-left: 2px solid var(--nx-line, currentColor); opacity: 0.25; }
.city-rs__node { border-radius: var(--nx-radius-md, 14px); border: 1.5px solid var(--nx-line, currentColor); border-color: color-mix(in srgb, var(--nx-line, currentColor) 25%, transparent); background: var(--nx-surface, transparent); }
.city-rs__node[data-rarity="rare"] { border-color: var(--nx-rarity-rare, currentColor); }
.city-rs__node[data-rarity="super-rare"] { border-color: var(--nx-rarity-super-rare, currentColor); }
.city-rs__node[data-rarity="epic"] { border-color: var(--nx-rarity-epic, currentColor); }
.city-rs__node[data-rarity="mythic"] { border-color: var(--nx-rarity-mythic, currentColor); }
.city-rs__node[data-rarity="legendary"] { border-color: var(--nx-rarity-legendary, currentColor); border-width: 2px; }
.city-rs__node.is-locked, .city-rs__node.is-hidden { opacity: 0.55; }
.city-rs__node.is-done { background: color-mix(in srgb, var(--nx-success, currentColor) 10%, transparent); }
.city-rs__node.is-active { outline: 2px solid var(--nx-accent, currentColor); }
.city-rs__head { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 10px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.city-rs__name { flex: 1; font-weight: 600; }
.city-rs__state { font-size: 12px; opacity: 0.7; white-space: nowrap; }
.city-rs__body { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.city-rs__blurb, .city-rs__why, .city-rs__empty { margin: 0; font-size: 13px; }
.city-rs__why { opacity: 0.7; }
.city-rs__fx { display: flex; flex-wrap: wrap; gap: 4px; }
.city-rs__go { min-height: 44px; }
.city-rs__now { padding: 10px; border-radius: var(--nx-radius-md, 14px); background: color-mix(in srgb, var(--nx-accent, currentColor) 10%, transparent); }
.city-rs__nowname { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.city-rs__nowsub { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: 0.8; }
.city-rs__bar { height: 8px; margin: 8px 0 4px; border-radius: 999px; background: color-mix(in srgb, currentColor 15%, transparent); overflow: hidden; }
.city-rs__bar > i { display: block; height: 100%; border-radius: inherit; background: var(--nx-accent, currentColor); transition: width 0.4s ease; }
.city-rs__stop { min-height: 32px; padding: 0 10px; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .city-rs__bar > i { transition: none; } }
