/* Empire Towers page — extends empire-viewer.css */

.empire-towers-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-top: 0.75rem;
  margin-bottom: 1rem;
  border-top: 1px solid var(--border);
}

.empire-towers-toolbar label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Header stats: fixed column widths per spec */
.empire-towers-stats {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 230px 160px 250px 250px;
  gap: 0.75rem 1.25rem;
  align-items: start;
}

.stat-block--name {
  max-width: 190px;
}

.stat-block--towers {
  max-width: 100px;
}

.stat-block--members,
.stat-block--hexite {
  max-width: 230px;
}

.empire-towers-section {
  margin-top: 1.75rem;
}

.empire-towers-section__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.towers-table-scroll {
  max-width: 100%;
}

.towers-table {
  width: 100%;
  max-width: 1330px;
  table-layout: fixed;
}

.towers-col-name {
  width: 290px;
}
.towers-col-map {
  width: 100px;
}
.towers-col-energy {
  width: 210px;
}
.towers-col-attacker {
  width: 240px;
}
.towers-col-att-energy {
  width: 180px;
}
.towers-col-delta {
  width: 120px;
}
.towers-col-def-energy {
  width: 180px;
}

.towers-table__siege-head {
  text-align: center;
  border-left: 1px solid var(--border);
}

.towers-table__sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border-left: 1px solid var(--border);
}

.towers-th-att-energy {
  text-align: right;
}

.towers-th-def-energy {
  text-align: left;
}

.towers-th-delta {
  text-align: center;
}

.tower-name-cell {
  vertical-align: top;
}

.tower-name-line {
  font-weight: 600;
  color: var(--text);
}

.tower-row--peace .tower-name-line,
.tower-row--peace .tower-id-suffix,
.tower-row--peace td {
  color: #6d7380;
}

.tower-row--siege .tower-name-line {
  font-size: 1.08rem;
}

.tower-row--siege .tower-id-suffix {
  font-size: 0.82rem;
}

.tower-row--siege .td-num,
.tower-row--siege .towers-td-attacker {
  font-size: 0.95rem;
}

.tower-row--losing td {
  background: rgba(160, 48, 56, 0.18);
}

.tower-row--losing .tower-name-line,
.tower-row--losing .tower-id-suffix {
  color: var(--text);
}

.tower-row--losing .td-num {
  color: var(--text);
}

.tower-id-suffix {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.2rem;
  font-family: var(--font-numeric);
}

.towers-table td.td-num {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-numeric);
}

.towers-td-attacker {
  text-align: left;
  word-break: break-word;
}

.towers-td-att-energy {
  text-align: right;
}

.towers-td-def-energy {
  text-align: left;
}

.towers-td-delta {
  text-align: center;
}

.towers-td-map {
  text-align: center;
}

.towers-th-map {
  text-align: center;
}

.towers-map-link {
  color: #aeb8c7;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.82rem;
}

.towers-map-link:hover {
  color: #c2cde0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.members-short-table {
  font-size: 0.875rem;
  table-layout: fixed;
  width: 800px;
  max-width: 100%;
}

.members-col-num {
  width: 2.5rem;
}
.members-col-login {
  width: 100px;
}
.members-col-rank {
  width: 120px;
}
.members-col-player {
  width: 250px;
}
.members-col-donated {
  width: 130px;
}

.members-short-table__num {
  width: 2.5rem;
}

.members-td-player,
.members-td-num {
  font-size: 0.95rem;
}

.members-td-player a {
  color: #aeb8c7;
  text-decoration: none;
}

.members-td-player a:hover {
  color: #c2cde0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.members-td-player a:visited {
  color: #98a4b8;
}

.members-th-em {
  font-size: 0.92rem;
}

.members-short-table thead th.members-sortable {
  cursor: pointer;
  user-select: none;
}

.members-short-table thead th.members-sortable:hover {
  background: #2a3140;
}

.members-short-table thead th.members-sortable:focus-visible {
  outline: 2px solid #6b9bd1;
  outline-offset: -2px;
}

.members-short-table thead th.members-sortable.sort-active {
  color: #c5d4f0;
}

.members-short-table thead th .sort-ind {
  font-size: 0.7rem;
  opacity: 0.95;
}

.members-th-num {
  text-align: right;
}

.members-short-table td.members-td-num {
  text-align: right;
}

.members-short-table .login-cell-wide {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.members-short-table tbody tr {
  cursor: default;
}

.members-td-login,
.members-td-rank {
  color: var(--muted);
}
