/* Product code table. The wrapper scrolls horizontally on narrow screens. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.table-scroll:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.spec-table {
  width: 100%;
  min-width: 30rem;
  margin: 0;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.spec-table th,
.spec-table td {
  padding: var(--space-2) var(--space-4);
  text-align: left;
  white-space: nowrap;
}

.spec-table thead th {
  background: var(--color-heading);
  color: #fff;
  font-weight: 700;
}

.spec-table tbody tr + tr td {
  border-top: 1px solid var(--color-border);
}

.spec-table tbody tr:nth-child(even) td {
  background: var(--color-bg-soft);
}

/* Group title row (Ø 3.80, ...) */
.spec-table tr.group th {
  background: var(--accent-tint, var(--color-bg-soft));
  border-top: 2px solid var(--accent, var(--color-primary));
  color: var(--color-heading);
  font-weight: 700;
}

.spec-table tbody:not(:first-of-type) tr.group th {
  border-top-width: 2px;
}
