/* Track B page — scoped styles for /benchmarks/track-b/.
   Shared shell, cards and table borders come from /styles.css; everything here
   is specific to the Track A / Track B comparison table. */

.tb-table {
  width: 100%;
  margin-block: 2rem;
}

.tb-table td {
  vertical-align: top;
}

.tb-workload {
  font-weight: 600;
}

.tb-id {
  font-size: 0.8rem;
  opacity: 0.7;
  overflow-wrap: anywhere;
}

.tb-baselines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-content: start;
}

.tb-engine {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0.85;
  text-decoration: none;
  color: inherit;
}

a.tb-engine:hover,
a.tb-engine:focus-visible {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
}

.tb-explainer {
  margin-block: 1.5rem 2rem;
}

.tb-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block: 1.25rem 0.5rem;
}

.tb-filter-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: inherit;
  border-radius: 0.3rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
}

.tb-filter-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}

.tb-run-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.tb-source-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-block: 0.25rem 0.35rem;
  font-size: 0.82rem;
}

.tb-source-pair {
  white-space: nowrap;
}

.tb-none {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.tb-variants {
  margin: 0;
}

.tb-variants dt {
  font-weight: 600;
  margin-block-start: 0.5rem;
}

.tb-variants dt:first-child {
  margin-block-start: 0;
}

.tb-variants dd {
  margin-inline-start: 0;
  font-size: 0.9rem;
}

.tb-deviation {
  opacity: 0.8;
  font-size: 0.82rem;
}

.tb-vs {
  font-weight: 400;
  opacity: 0.75;
}

.tb-badge {
  border-radius: 0.25rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  /* Non-colour encoding: the border pattern distinguishes the classes for
     forced-colours and monochrome, per the results-explorer requirement. */
  border: 1px solid currentColor;
}

.tb-bit-identical {
  border-style: solid;
}

.tb-reassociated {
  border-style: dashed;
}

.tb-empty {
  border: 1px solid currentColor;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-block: 2rem;
}

.tb-empty h3 {
  margin-block-start: 0;
}

.tb-empty p:last-child {
  margin-block-end: 0;
}

.tb-legend {
  margin-block: 1.5rem;
}

.tb-legend dt {
  margin-block-start: 0.6rem;
}

.tb-legend dd {
  margin-inline-start: 0;
  font-size: 0.9rem;
}

@media (max-width: 40rem) {
  .tb-table,
  .tb-table tbody,
  .tb-table tr,
  .tb-table td {
    display: block;
    width: auto;
  }

  .tb-table td.tb-baselines {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .tb-table thead {
    display: none;
  }

  .tb-table tr {
    border-block-end: 1px solid currentColor;
    padding-block: 0.75rem;
  }
}
