/* Page Population (public/population.html, rendue par src/populationPage.js) ; filtres et chiffres : race.css */

.pop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pop-card {
  min-width: 0; padding: 18px 20px; border-radius: 14px;
  background: rgba(4, 18, 28, .35); border: 1px solid rgba(255, 255, 255, .08);
}
.pop-wide { grid-column: 1 / -1; }
.pop-h { margin: 0 0 12px; color: var(--sand); font: 700 12px/1 var(--modern); letter-spacing: .14em; text-transform: uppercase; }
.pop-sub { margin: 8px 0 0; color: #8ea3b3; font-size: 13px; }

/* Alliance / Horde */
.pop-factions { display: flex; height: 34px; border-radius: 8px; overflow: hidden; font-size: 14px; color: #fff; }
.pop-factions span { display: flex; align-items: center; gap: 6px; padding: 0 12px; white-space: nowrap; min-width: 0; }
.pop-al { background: #2f63a8; }
.pop-ho { background: #a8322c; justify-content: flex-end; }

/* Barres (classes, races) et duos */
.pop-bars, .pop-combos { margin: 0; padding: 0; list-style: none; }
.pop-bars li { display: grid; grid-template-columns: 190px minmax(0, 1fr) 84px; align-items: center; gap: 10px; padding: 4px 0; }
.pop-label { display: flex; align-items: center; gap: 8px; min-width: 0; color: #dfe9ee; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-label .race-cicon { box-shadow: none; }
.pop-track { height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.pop-track span { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.pop-val { text-align: right; color: #fff; font: 700 14px/1.1 var(--modern); }
.pop-val small { display: block; color: #8ea3b3; font-size: 11.5px; font-weight: 500; }
.pop-combos li { display: grid; grid-template-columns: 26px 26px minmax(0, 1fr) 84px; align-items: center; gap: 10px; padding: 6px 0; }
.pop-combos li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
.pop-combos .race-cicon { box-shadow: none; }
.pop-combo-name { color: #dfe9ee; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-combo-name b { color: var(--class); }

/* Région × mode */
.pop-table-wrap { overflow-x: auto; }
.pop-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pop-table th, .pop-table td { padding: 9px 8px; text-align: right; border-top: 1px solid rgba(255, 255, 255, .07); white-space: nowrap; }
.pop-table thead th { border-top: 0; color: #8ea3b3; font-weight: 600; font-size: 12.5px; }
.pop-table tbody th { text-align: left; color: #b7c6d1; font-weight: 700; }
.pop-table tr:last-child th, .pop-table tr:last-child td, .pop-table td:last-child { color: var(--sand); }
.pop-table a { color: #fff; text-decoration: none; }
.pop-table tr:last-child a, .pop-table td:last-child a { color: var(--sand); }
.pop-table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pop-table td.on { background: rgba(120, 200, 230, .12); box-shadow: inset 0 -2px var(--sand); }

/* Courbe des niveaux */
.pop-curve { display: flex; align-items: flex-end; gap: 2px; height: 260px; margin-top: 14px; }
.pop-curve span { flex: 1; min-width: 0; border-radius: 2px 2px 0 0; background: #4f8fa8; }
.pop-curve span:hover { background: #7fc3dc; }
.pop-curve span.max { background: var(--sand); }
.pop-axis { position: relative; height: 16px; margin-top: 6px; color: #8ea3b3; font-size: 12px; }
.pop-axis span { position: absolute; transform: translateX(-50%); }

.pop-page .race-note { margin-top: 16px; }
.pop-next { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .pop-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pop-card { padding: 14px; }
  .pop-bars li { grid-template-columns: 112px minmax(0, 1fr) 70px; gap: 8px; }
  .pop-curve { height: 110px; }
  .pop-table { font-size: 12px; }
  .pop-table th, .pop-table td { padding: 9px 3px; }
  .pop-table thead th { font-size: 11.5px; }
}
