.updates-heading h1 {
  flex: 1;
  margin: 0;
  text-align: center;
}

.updates-heading::after {
  content: "";
  flex: 0 0 32px;
}

.updates {
  container-type: inline-size;
  padding: 16px;
}

.updates-pagination {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}

.updates-scroll {
  overflow-x: auto;
}

.updates table {
  border-collapse: collapse;
  min-width: 700px;
  text-align: left;
  width: 100%;
}

.updates th,
.updates td {
  padding: 8px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.updates td:not(:first-child),
.updates th:not(:first-child) {
  white-space: nowrap;
}

@container (max-width: 700px) {
  .updates table,
  .updates tbody {
    display: block;
    min-width: 0;
  }

  .updates thead {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
  }

  .updates tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
  }

  .updates td,
  .updates td:not(:first-child) {
    min-width: 0;
    white-space: normal;
  }

  .updates td:first-child {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
  }

  .updates td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
  }
}
