.tb-header .hub-intro {
  max-width: 44rem;
}

.tb-switch {
  display: inline-flex;
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  overflow: hidden;
  margin: var(--sp-3) var(--sp-3) var(--sp-3) 0;
}

.tb-switch-option {
  padding: 6px 14px;
  font-size: var(--fs-caption);
  color: var(--text-primary);
  text-decoration: none;
  background: var(--bg-elevated);
}

.tb-switch-option[aria-current="page"] {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.tb-downloads {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-3) 0;
}

.tb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.tb-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
}

.tb-csv {
  font-size: var(--fs-caption);
}

.tb-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-caption);
  color: var(--text-secondary);
}

.tb-scroll-cue {
  color: var(--text-tertiary);
}

.tb-wrap {
  display: flex;
  flex-direction: row-reverse;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.tb-wrap-start {
  flex-direction: row;
}

.tb-wrap::-webkit-scrollbar {
  height: 8px;
}

.tb-wrap::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 999px;
}

.tb-wrap:focus-visible {
  outline: 2px solid var(--text-link);
  outline-offset: 2px;
}

.tb-table {
  flex: 0 0 auto;
  border-collapse: collapse;
  min-width: 100%;
  font-size: 14px;
}

.tb-table th,
.tb-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tb-table thead th {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.tb-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 12rem;
  text-align: left;
  white-space: normal;
  font-weight: 500;
  background: var(--bg-elevated);
}

.tb-table thead th:first-child {
  background: var(--bg-secondary);
}

.tb-wrap .tb-table th:first-child {
  box-shadow: 6px 0 6px -6px rgba(0, 0, 0, 0.28);
}

.tb-table:not(.tb-peers) th:not(:first-child),
.tb-table:not(.tb-peers) td {
  width: var(--tb-col, 7.5rem);
  min-width: var(--tb-col, 7.5rem);
}

.tb-table:not(.tb-peers) th:first-child {
  width: 14rem;
  min-width: 14rem;
  max-width: 14rem;
}

.tb-period-end {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.tb-split-col {
  border-left: 2px dashed var(--border-medium);
}

.tb-split-mark,
.tb-adjusted {
  margin-left: 2px;
  color: var(--text-secondary);
  cursor: help;
}

.tb-footnotes {
  margin: var(--sp-2) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  max-width: 44rem;
}

.tb-table td a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
}

.tb-table td a:hover,
.tb-table td a:focus-visible {
  color: var(--text-link);
  text-decoration: underline;
}

.tb-is-derived a {
  color: var(--text-secondary);
}

.tb-derived {
  margin-left: 2px;
  color: var(--text-tertiary);
}

.tb-rounded {
  margin-right: 2px;
  color: var(--text-tertiary);
}

.tb-empty {
  color: var(--text-tertiary);
}

.tb-unit {
  display: block;
  font-size: var(--fs-caption);
  font-weight: 400;
  color: var(--text-tertiary);
}

.tb-self th,
.tb-self td {
  font-weight: 600;
}

.tb-period {
  color: var(--text-secondary);
}

.tb-note {
  max-width: 44rem;
}

@media (max-width: 480px) {
  .tb-table th:first-child {
    min-width: 8.5rem;
  }

  .tb-table:not(.tb-peers) th:first-child {
    width: 7rem;
    min-width: 7rem;
    max-width: 7rem;
  }

  .tb-table:not(.tb-peers) th:not(:first-child),
  .tb-table:not(.tb-peers) td {
    width: var(--tb-col, 6.25rem);
    min-width: var(--tb-col, 6.25rem);
    padding-left: 6px;
    padding-right: 6px;
  }

  .tb-table:not(.tb-peers) td {
    font-size: 12px;
  }

  .tb-table:not(.tb-peers) tbody th {
    font-size: 13px;
  }

  .tb-wrap .tb-table:not(.tb-peers) thead th:first-child {
    white-space: normal;
  }

  .tb-table th,
  .tb-table td {
    padding: 6px 8px;
  }
}
