/* Public Top Boss Killers / Artificers — activity flags on characters */

.ao-gossip-top-killers {
  --tk-active: #1a6b4a;
  --tk-inactive: #9a6a18;
  --tk-very-inactive: #a84820;
  --tk-dormant: #6a4a58;
  --tk-panel: var(--ao-blue-pale);
  --tk-panel-border: var(--ao-border-light);
}

.ao-gossip-top-killers .ao-tk-board {
  margin: 0 0 1.15rem;
  padding: 0.95rem 1.05rem 1.15rem;
  background: var(--tk-panel);
  border: 1px solid var(--tk-panel-border);
  border-top: 2px solid var(--ao-gold);
}

.ao-gossip-top-killers .ao-tk-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin-bottom: 0.65rem;
}

.ao-gossip-top-killers .ao-tk-board-title {
  margin: 0;
  font-family: var(--ao-font-serif);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--ao-blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ao-gossip-top-killers .ao-tk-board-title .ao-busy-artificer-mark {
  width: 1.35rem;
  height: 1.35rem;
}

.ao-gossip-top-killers .ao-tk-board-meta {
  margin: 0;
  font-family: var(--ao-font-sans);
  font-size: var(--ao-fs-ui-sm);
  color: var(--ao-text-muted);
}

.ao-gossip-top-killers .ao-tk-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  list-style: none;
  font-family: var(--ao-font-sans);
  font-size: 12px;
  color: var(--ao-text-secondary);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--ao-border-light);
}

.ao-gossip-top-killers .ao-tk-legend-label {
  font-weight: 700;
  color: var(--ao-blue-deep);
  margin-right: 0.15rem;
}

.ao-gossip-top-killers .ao-tk-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ao-gossip-top-killers .ao-tk-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ao-border-light);
  background: #fff;
}

.ao-gossip-top-killers .ao-tk-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ao-font-sans);
  font-size: var(--ao-fs-ui-sm);
}

.ao-gossip-top-killers .ao-tk-table th,
.ao-gossip-top-killers .ao-tk-table td {
  padding: 0.48rem 0.65rem;
  border-bottom: 1px solid var(--ao-border-light);
  text-align: left;
  vertical-align: middle;
}

.ao-gossip-top-killers .ao-tk-table thead th {
  background: var(--ao-blue-light);
  color: var(--ao-blue-deep);
  font-weight: 700;
  white-space: nowrap;
}

.ao-gossip-top-killers .ao-tk-table tbody tr:nth-child(even) {
  background: rgba(244, 247, 252, 0.65);
}

.ao-gossip-top-killers .ao-tk-table tbody tr:hover {
  background: rgba(212, 173, 84, 0.12);
}

.ao-gossip-top-killers .ao-tk-table th.num,
.ao-gossip-top-killers .ao-tk-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ao-gossip-top-killers .ao-tk-rank {
  font-weight: 700;
  color: var(--ao-text-muted);
  width: 3.25rem;
}

.ao-gossip-top-killers .ao-tk-table tbody tr:nth-child(-n + 3) .ao-tk-rank {
  color: var(--ao-gold-dark);
}

.ao-gossip-top-killers .ao-tk-player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.ao-gossip-top-killers .ao-tk-player a {
  font-weight: 600;
  text-decoration: none;
}

.ao-gossip-top-killers .ao-tk-player a:hover {
  text-decoration: underline;
}

.ao-gossip-top-killers .ao-tk-flag {
  display: inline-block;
  padding: 0.12rem 0.42rem;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.ao-gossip-top-killers .ao-tk-flag.is-active,
.ao-gossip-top-killers .ao-tk-swatch.is-active {
  color: var(--tk-active);
  background: color-mix(in srgb, var(--tk-active) 14%, #fff);
  border-color: color-mix(in srgb, var(--tk-active) 40%, transparent);
}

.ao-gossip-top-killers .ao-tk-flag.is-inactive,
.ao-gossip-top-killers .ao-tk-swatch.is-inactive {
  color: var(--tk-inactive);
  background: color-mix(in srgb, var(--tk-inactive) 14%, #fff);
  border-color: color-mix(in srgb, var(--tk-inactive) 40%, transparent);
}

.ao-gossip-top-killers .ao-tk-flag.is-very_inactive,
.ao-gossip-top-killers .ao-tk-swatch.is-very_inactive {
  color: var(--tk-very-inactive);
  background: color-mix(in srgb, var(--tk-very-inactive) 12%, #fff);
  border-color: color-mix(in srgb, var(--tk-very-inactive) 40%, transparent);
}

.ao-gossip-top-killers .ao-tk-flag.is-dormant,
.ao-gossip-top-killers .ao-tk-swatch.is-dormant {
  color: var(--tk-dormant);
  background: color-mix(in srgb, var(--tk-dormant) 12%, #fff);
  border-color: color-mix(in srgb, var(--tk-dormant) 40%, transparent);
}

.ao-gossip-top-killers .ao-tk-swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  border: 1px solid rgba(15, 45, 92, 0.2);
  flex-shrink: 0;
}

.ao-gossip-top-killers .ao-tk-date {
  font-variant-numeric: tabular-nums;
  color: var(--ao-text-secondary);
  white-space: nowrap;
}

.ao-gossip-top-killers .ao-tk-note {
  margin: 0.85rem 0 0;
  font-family: var(--ao-font-sans);
  font-size: var(--ao-fs-ui-sm);
  color: var(--ao-text-muted);
}

html[data-ao-theme="dark"] .ao-gossip-top-killers {
  --tk-active: #5ecf9a;
  --tk-inactive: #e0b060;
  --tk-very-inactive: #e08860;
  --tk-dormant: #c0a0b0;
  --tk-panel: #161f30;
  --tk-panel-border: rgba(140, 180, 232, 0.16);
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-board {
  border-top-color: rgba(200, 168, 76, 0.55);
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-board-title {
  color: #e4ecf8;
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-legend {
  background: rgba(12, 18, 28, 0.55);
  border-color: rgba(140, 180, 232, 0.14);
  color: #b8c8dc;
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-legend-label {
  color: #e4ecf8;
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-table-wrap {
  background: #121a28;
  border-color: rgba(140, 180, 232, 0.14);
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-table thead th {
  background: #1a2436;
  color: #e4ecf8;
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-table th,
html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-table td {
  border-bottom-color: rgba(140, 180, 232, 0.12);
  color: #d2dde8;
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-table tbody tr:nth-child(even) {
  background: rgba(28, 40, 58, 0.55);
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-table tbody tr:hover {
  background: rgba(90, 110, 70, 0.22);
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-date {
  color: #b8c8dc;
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-flag.is-active,
html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-swatch.is-active {
  background: color-mix(in srgb, var(--tk-active) 22%, #121a28);
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-flag.is-inactive,
html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-swatch.is-inactive {
  background: color-mix(in srgb, var(--tk-inactive) 22%, #121a28);
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-flag.is-very_inactive,
html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-swatch.is-very_inactive {
  background: color-mix(in srgb, var(--tk-very-inactive) 22%, #121a28);
}

html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-flag.is-dormant,
html[data-ao-theme="dark"] .ao-gossip-top-killers .ao-tk-swatch.is-dormant {
  background: color-mix(in srgb, var(--tk-dormant) 24%, #121a28);
}
