/* Site layer on top of the vendored weblab.css. The template owns the
   shell, type, and palette. This file paints the comparison only. */

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: fixed;
  top: var(--wl-space-2);
  left: var(--wl-space-2);
  z-index: 10;
}

.wl-topbar {
  flex-wrap: wrap;
}

.wl-main > * {
  min-width: 0;
}

#constraints-wrap {
  max-width: var(--wl-measure);
}

.wl-page summary {
  color: var(--wl-text);
  cursor: pointer;
  font-weight: 600;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wl-space-3) var(--wl-space-4);
  align-items: center;
  color: var(--wl-muted);
  font-size: var(--wl-text-sm);
}

.controls select {
  width: auto;
  min-height: 2.5rem;
  margin-left: var(--wl-space-2);
  padding: var(--wl-space-2) var(--wl-space-3);
  border-radius: var(--wl-radius);
  border: 1px solid var(--wl-blue);
  background: var(--wl-surface-strong);
  color: var(--wl-text);
  font: inherit;
}

.controls select:focus-visible {
  outline: 2px solid var(--wl-blue);
  outline-offset: 2px;
}

.nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wl-space-3);
}

.strip article,
.cards article {
  background: var(--wl-surface);
  color: var(--wl-text);
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius);
  box-shadow: var(--wl-shadow);
  padding: var(--wl-space-3) var(--wl-space-4);
  min-width: 8rem;
}

.strip h2,
.cards h2 {
  margin: 0;
  color: var(--wl-muted);
  font-size: var(--wl-text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.figure {
  margin: var(--wl-space-1) 0 0;
  font-size: var(--wl-text-xl);
  line-height: var(--wl-leading-tight);
}

.note {
  max-width: var(--wl-measure);
  margin: var(--wl-space-2) 0 0;
  color: var(--wl-muted);
  font-size: var(--wl-text-sm);
}

.matrix-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius);
  background: var(--wl-surface);
}

#view table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wl-surface);
  font-size: var(--wl-text-sm);
}

.matrix-wrap table {
  width: max-content;
  min-width: 100%;
}

#view th,
#view td {
  border-bottom: 1px solid var(--wl-border);
  padding: var(--wl-space-2) var(--wl-space-3);
  text-align: left;
  vertical-align: top;
}

#view th {
  color: var(--wl-muted);
  font-weight: 600;
}

.matrix-wrap th {
  white-space: nowrap;
}

.matrix-wrap .cell {
  min-width: 8.5rem;
}

.sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--wl-surface-strong);
  box-shadow: 1px 0 0 var(--wl-border);
  min-width: 9rem;
}

.agent,
.model,
.effort {
  display: block;
}

.model,
.effort {
  color: var(--wl-muted);
  font-size: var(--wl-text-sm);
  font-weight: 400;
}

.family {
  text-align: center;
  background: var(--wl-surface-strong);
}

.wl-page .cell a {
  color: var(--wl-text);
  text-decoration: none;
  display: block;
}

.wl-page .cell a:hover,
.wl-page .cell a:focus-visible {
  text-decoration: underline;
}

.metric {
  margin: 0;
  font-size: var(--wl-text-sm);
  line-height: 1.35;
}

.metric span {
  color: var(--wl-muted);
}

.heat {
  --heat-alpha: calc(var(--heat, 0.2) * 0.72);
  background-color: var(--wl-surface);
  background-image: linear-gradient(rgba(244, 178, 35, var(--heat-alpha)), rgba(244, 178, 35, var(--heat-alpha)));
}

.heat .metric,
.heat .metric span {
  color: var(--wl-text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wl-space-1);
  margin-top: var(--wl-space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--wl-radius-pill);
  border: 1px solid var(--wl-border);
  background: var(--wl-surface-strong);
  color: var(--wl-text);
  padding: var(--wl-space-1) var(--wl-space-3);
  font-size: var(--wl-text-xs);
  line-height: 1.4;
}

.chip.pass {
  border-color: var(--wl-success);
  color: var(--wl-success);
}

.chip.fail,
.chip.error {
  border-color: var(--wl-danger);
  color: var(--wl-danger);
}

.chip.stale,
.chip.timeout {
  border-color: var(--wl-gold);
  color: var(--wl-gold);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wl-space-3);
  margin: var(--wl-space-4) 0;
}

#view h2 {
  margin: var(--wl-space-6) 0 var(--wl-space-3);
  font-size: var(--wl-text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: var(--wl-leading-tight);
}

#view h2:first-child {
  margin-top: 0;
}

#view h3 {
  margin: var(--wl-space-4) 0 var(--wl-space-2);
  font-size: var(--wl-text-lg);
  font-weight: 600;
  line-height: var(--wl-leading-tight);
}

.days {
  padding-left: 1.2rem;
}

.wl-page .days a[aria-current="page"] {
  color: var(--wl-gold);
  font-weight: 700;
  text-decoration: none;
}

.wl-page pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: var(--wl-space-4);
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius);
  background: var(--wl-surface-strong);
  color: var(--wl-text);
  font-family: var(--wl-mono);
  font-size: var(--wl-text-sm);
  line-height: 1.5;
}

.checklist,
.tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li,
.tree li {
  padding: var(--wl-space-1) 0;
}

.wl-page button.linkish {
  font: inherit;
  color: var(--wl-link);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.wl-page button.linkish:hover,
.wl-page button.linkish:focus-visible {
  color: var(--wl-gold);
  text-decoration: underline;
}

.binary {
  color: var(--wl-muted);
}

.empty {
  background: var(--wl-surface);
  color: var(--wl-text);
  border: 1px solid var(--wl-border);
  border-radius: var(--wl-radius);
  box-shadow: var(--wl-shadow);
  padding: var(--wl-space-4);
  max-width: 40rem;
}

.empty h2 {
  margin: 0 0 var(--wl-space-2);
  font-size: var(--wl-text-xl);
}
