body {
  max-width: 1000px;
  margin: 0 auto;
}

#error {
  color: #a00;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.table-scroll {
  overflow-x: auto;
}

caption {
  text-align: left;
}

table {
  width: 100%;
}

table th,
table td {
  border: 1px solid black;
  padding: 10px;
  text-align: left;
}

tbody th {
  font-weight: normal;
}

td[data-implementation] {
  white-space: nowrap;
}

.fastest {
  font-weight: bold;
}

.benchmark-run {
  appearance: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  color: #00e;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.benchmark-run:disabled {
  color: inherit;
  text-decoration: none;
  cursor: wait;
}

.example-row > td {
  white-space: normal;
}

.example-panel {
  contain: inline-size;
}

.example-panel > p {
  margin: 0 0 8px;
}

.example-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.example-implementation {
  min-width: 0;
}

.example-implementation h3 {
  margin: 8px 0;
  font-size: 1em;
}

.example-implementation pre,
.example-implementation pre[class*="language-"] {
  box-sizing: border-box;
  margin: 0;
  max-height: 400px;
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 12px;
  background: #f7f7f7;
  overflow: auto;
  font-size: 13px;
  tab-size: 4;
}

.example-implementation pre > code {
  display: block;
  min-height: 100%;
  background: inherit;
}

#browser {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .example-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
