/* White SWITCH wordmark (1260x162, ~7.8:1). Using the tightly-cropped asset, not
   the 1920x1080 copy of the same artwork - that one is 91% empty canvas, which
   would throw off both the sizing and the centring. */
.hero-logo {
  width: 300px;
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.hero h1 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 560px) {
  .hero-logo {
    width: 230px;
    margin-bottom: 14px;
  }
}

.hero-icon {
  display: inline-flex;
  color: var(--blue);
}

.hero-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

@media (max-width: 560px) {
  .hero-icon svg {
    width: 27px;
    height: 27px;
  }
}

.board-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  width: 100%;
}

.skill-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.skill-tab {
  background: #1d2634;
  border: 1px solid var(--panel-border);
  color: #b9c3d4;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 9px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.skill-tab:hover {
  background: #232d3e;
}

.skill-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.board-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
}

.board-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--panel-border);
}

.board-head h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.board-icon {
  display: inline-flex;
  color: #7fb3ff;
}

.board-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.board-icon svg.wide {
  width: auto;
  height: 20px;
}

.board-updated {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

/* Grid rather than a table so the columns stay aligned across rows while each
   row can still be a single flex-free block on narrow screens. */
.board-row {
  display: grid;
  grid-template-columns: 58px 1fr 90px 120px;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.board-row:last-child {
  border-bottom: none;
}

/* Sticks under the site header (66px) so the column labels stay visible while
   scrolling a 50-row board. Needs an opaque background, not the translucent one,
   or rows show through as they pass underneath. */
.board-row.head {
  position: sticky;
  top: 66px;
  z-index: 3;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding-top: 14px;
  padding-bottom: 14px;
  background: #191d24;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.board-row:not(.head):hover {
  background: rgba(255, 255, 255, 0.03);
}

.board-rank {
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.board-row.top1 .board-rank { color: #ffc93d; }
.board-row.top2 .board-rank { color: #cfd6e4; }
.board-row.top3 .board-rank { color: #d08a4a; }

.board-row.top1,
.board-row.top2,
.board-row.top3 {
  background: rgba(255, 255, 255, 0.025);
}

.board-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rank titles ("Junior Mining Engineer") need far more room than a level number. */
.board-row.wide-level {
  grid-template-columns: 58px 1fr 190px 120px;
}

.board-level {
  font-size: 14px;
  font-weight: 700;
  color: #7fb3ff;
  font-variant-numeric: tabular-nums;
}

.board-level.is-title {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-xp {
  font-size: 14px;
  color: #c3cad8;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.board-loading,
.board-empty {
  color: var(--muted);
  font-size: 13.5px;
  padding: 34px 22px;
  text-align: center;
}

@media (max-width: 560px) {
  .board-row {
    grid-template-columns: 40px 1fr 58px 84px;
    gap: 8px;
    padding: 11px 14px;
  }
  .board-row.wide-level {
    grid-template-columns: 30px minmax(0, 1fr) 104px 74px;
  }
  .board-level.is-title {
    font-size: 11.5px;
  }
  .board-head {
    padding: 16px 14px;
  }
  .board-name,
  .board-level,
  .board-xp {
    font-size: 13px;
  }
  .board-updated {
    font-size: 11px;
  }
}
