/* The guild roster table. */

.sync-state { color: #9eabb5; font-size: 15px; }
.sync-state.error { color: var(--error); }
.group-toggle.inert { opacity: .45; }
.group-toggle button:disabled { cursor: not-allowed; color: #a8b6bf; background: transparent; }
.column-toggle span { align-self: center; color: var(--text-faint); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0 8px 0 6px; }
.roster-table td { vertical-align: middle; }
.roster-table .professions-cell { white-space: normal; min-width: 150px; }

.character-link { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; color: var(--text); font-size: 18px; font-weight: 600; text-align: left; }
button.character-link:hover > span { color: #f5d28e; }
.character-link small, .cell-note { display: block; color: var(--text-faint); font-size: 14px; font-weight: 500; margin-top: 2px; }
.hidden-character { color: #a5b0b8; }

/* Alt families: a chevron on the parent row expands the alts below it. */
.name-cell { display: flex; align-items: center; gap: 6px; }
.family-toggle, .family-spacer { flex: 0 0 26px; width: 26px; height: 26px; }
.family-toggle { display: grid; place-items: center; border: 1px solid transparent; border-radius: 3px; background: none; color: var(--gold); padding: 0; }
.family-toggle:hover { border-color: #5d6b75; background: var(--raised); }
.family-toggle svg { width: 16px; height: 16px; transition: transform .15s; }
.family-toggle.open svg { transform: rotate(90deg); }
.roster-table tr.family-alt th { padding-left: 30px; }
.roster-table tr.family-alt th, .roster-table tr.family-alt td { background: #182837; }
.roster-table tr.family-alt:hover th, .roster-table tr.family-alt:hover td { background: #203242; }
.surname { color: #b9c3c9; font-weight: 500; }
.avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 1px solid #5d6b75; object-fit: cover; background: var(--raised); }
.avatar-empty { display: inline-block; }
.class-name { font-weight: 600; color: var(--text); }
.talent-spread { color: var(--text); font-variant-numeric: tabular-nums; }
.profession-chip { display: block; width: fit-content; margin: 3px 0; color: #cbd3d7; background: #1d2f3e; border: 1px solid #344552; border-radius: 3px; padding: 2px 7px; font-size: 15px; white-space: nowrap; }
.profession-chip b { color: var(--gold); font-weight: 600; }
.profession-chip.searched { border-color: #a9834c; background: #29323a; color: var(--gold-selected); }

/* WoW class colors, by Battle.net class id. */
.class-color-1 { color: #c69b6d; } /* Warrior */
.class-color-2 { color: #f48cba; } /* Paladin */
.class-color-3 { color: #aad372; } /* Hunter */
.class-color-4 { color: #fff468; } /* Rogue */
.class-color-5 { color: #ffffff; } /* Priest */
.class-color-7 { color: #3a9bff; } /* Shaman */
.class-color-8 { color: #3fc7eb; } /* Mage */
.class-color-9 { color: #9a9bf2; } /* Warlock */
.class-color-11 { color: #ff7c0a; } /* Druid */

/* The smallest phones drop the "Columns" caption; the group keeps its "Optional columns" label. */
@media (max-width: 400px) {
  .column-toggle span { display: none; }
}
