/* MARS catalogue: grouped technical tables using the shared site palette. */
.mars-module-group {
  margin-top: 32px;
}

.content-section .mars-group-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 14px;
  font-size: 21px;
}

.mars-group-code {
  color: var(--blue);
  font: 14px/1.5 var(--mono);
  letter-spacing: .06em;
}

.mars-module-table {
  table-layout: fixed;
  border-top: 2px solid var(--blue);
}

.mars-module-table th,
.mars-module-table td {
  min-width: 0;
  padding: 16px 12px;
}

.mars-module-table thead th {
  padding-block: 10px;
  font-size: 12px;
  font-weight: 500;
}

.mars-module-table thead th:first-child {
  width: 76px;
}

.mars-module-table thead th:nth-child(2) {
  width: 110px;
}

.mars-module-table tbody th {
  background: transparent;
  color: var(--blue);
  font: 18px/1.5 var(--mono);
}

.mars-module-version {
  color: var(--ink);
  font: 13px/1.9 var(--mono);
  white-space: nowrap;
}

.mars-version-label {
  display: none;
}

.mars-module-scope {
  overflow-wrap: break-word;
}

.mars-module-title {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.mars-module-detail {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media screen and (max-width: 760px) {
  .mars-module-group {
    margin-top: 28px;
  }

  .content-section .mars-group-heading {
    font-size: 20px;
  }

  .mars-module-table,
  .mars-module-table tbody {
    display: block;
    width: 100%;
  }

  .mars-module-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .mars-module-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
  }

  .mars-module-table tbody th,
  .mars-module-table tbody td {
    padding: 0;
    border: 0;
  }

  .mars-module-version {
    align-self: center;
    text-align: right;
  }

  .mars-version-label {
    display: inline;
    margin-right: 6px;
    color: var(--muted);
    font-size: 11px;
  }

  .mars-module-scope {
    grid-column: 1 / -1;
  }
}

@media print {
  #modules {
    break-inside: auto;
  }

  .mars-module-group {
    break-inside: avoid;
  }
}
