.ac05-list-table {
  min-width: 0;
}

.ac05-list-table th:nth-child(n),
.ac05-list-table td:nth-child(n) {
  width: auto;
  overflow-wrap: anywhere;
}

#missions .ac05-list-table th:first-child { width: 27%; }
#missions .ac05-list-table th:nth-child(2) { width: 23%; }
#ranks .ac05-list-table th:first-child { width: 24%; }
#ranks .ac05-list-table th:nth-child(2) { width: 20%; }
#ranks .ac05-list-table th:nth-child(3) { width: 42%; }
#named-aces .ac05-list-table th:first-child { width: 23%; }
#named-aces .ac05-list-table th:nth-child(2) { width: 10%; }
#named-aces .ac05-list-table th:nth-child(3) { width: 17%; }
#aircraft .ac05-list-table th:first-child { width: 21%; }
#aircraft .ac05-list-table th:nth-child(3) { width: 30%; }
#weapons .ac05-list-table th:first-child { width: 13%; }
#weapons .ac05-list-table th:nth-child(2) { width: 15%; }
#weapons .ac05-list-table th:nth-child(3) { width: 40%; }
#colors .ac05-list-table th:first-child { width: 24%; }
#colors .ac05-list-table th:nth-child(2) { width: 23%; }
#soundtrack .ac05-list-table th:nth-child(n + 2) { width: 15%; }

.ac05-card-values {
  display: grid;
  gap: .4rem;
  margin: .4rem .65rem .65rem;
}

.ac05-card-values > div {
  display: grid;
  grid-template-columns: minmax(5.5em, 30%) minmax(0, 1fr);
  gap: .5rem;
}

.ac05-card-values dt {
  color: var(--brand);
  font-size: .8em;
  font-weight: 700;
}

.ac05-card-values dd {
  margin: 0;
}

.ac05-card-values > .ac05-card-description {
  grid-template-columns: minmax(0, 1fr);
  gap: .15rem;
  padding-top: .35rem;
  border-top: 1px solid var(--brand-light);
}

.ac05-card-description dd {
  color: var(--text-main);
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

:is(#missions, #aircraft) .character-detail-stack {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
}

[data-static-list] .static-mobile .character-card-head {
  padding-inline: .65rem;
}

[data-static-list] .character-card-name {
  overflow-wrap: anywhere;
}

[data-static-section] a {
  color: var(--brand);
  text-underline-offset: .15em;
}

.ace-input-table tbody th {
  background: transparent;
}

#arcade .ace-input-table th:first-child,
#arcade .ace-input-table td:last-child {
  white-space: nowrap;
}

#soundtrack .work-facts,
#controls ol {
  margin-bottom: .75rem;
}

@media (max-width: 600px) {
  .ac05-compact-link {
    white-space: nowrap;
  }

  #missions .ace-input-table a {
    display: inline-block;
    padding-block: .35em;
  }

  #soundtrack .work-facts,
  #unlocks .work-facts {
    grid-template-columns: minmax(0, 1fr);
    row-gap: .15rem;
  }

  #soundtrack .work-facts dd,
  #unlocks .work-facts dd {
    margin-bottom: .55rem;
  }

  [data-static-list] [data-static-reset] {
    min-height: 44px;
  }

  :is(#missions, #aircraft) .character-detail-item {
    grid-template-columns: minmax(0, 1fr);
    gap: .25rem;
  }
}
