.bf6-contents {
  margin: 1rem 0;
}

.bf6-contents ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bf6-contents a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.bf6-contents a,
.bf6-guide-section a {
  color: var(--accent);
  text-underline-offset: .16em;
}

#editions .work-facts > div,
#play-environment .work-facts > div {
  grid-template-columns: minmax(9em, 13em) minmax(0, 1fr);
}

.bf6-guide-section :is(p, li, dd, th, td) {
  overflow-wrap: anywhere;
}

.bf6-guide-section[id],
.bf6-guide-section [id] {
  scroll-margin-block-start: 5rem;
}

.bf6-guide-section h3 {
  margin: 1.3rem 0 .45rem;
}

.bf6-guide-section ol > li + li {
  margin-top: .45rem;
}

.bc-chapter {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line, #d5d2ca);
}

.bc-collect {
  border-top: 1px solid var(--line, #d5d2ca);
}

.bc-collect summary {
  align-content: center;
  cursor: pointer;
  min-height: 44px;
  padding-block: .4rem;
  font-weight: 700;
}

.bc-count {
  margin-inline-start: .5em;
  font-size: .85em;
  font-weight: 400;
  white-space: nowrap;
}

.bc-facts {
  display: grid;
  gap: .65rem;
  margin: .75rem 0 1rem;
}

.bc-facts > div {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
  column-gap: .8rem;
}

.bc-facts dt {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bc-facts dd,
.bf6-card-facts dd {
  margin: 0;
}

.bf6-data-list .character-table,
.bf6-guide-section .bc-controls-table {
  table-layout: auto;
  min-width: 0;
}

.bf6-guide-section .character-table :is(th, td):nth-child(n) {
  width: auto;
}

.bf6-guide-section .character-table thead th,
.bf6-guide-section .character-table th[scope="row"] {
  padding: .55rem .65rem;
}

.bf6-guide-section .character-table tbody th[scope="row"] {
  border-bottom: 1px solid var(--line, #d5d2ca);
  text-align: start;
}

.bf6-guide-section .character-table td {
  font-weight: 400;
}

.bf6-data-list .character-sort-button {
  white-space: nowrap;
}

#award-list .character-table tbody td:nth-child(2) {
  min-width: 6.5em;
}

.bf6-data-list .character-card-summary {
  grid-template-columns: minmax(0, 1fr);
}

.bf6-card-facts {
  margin: 0;
  padding: 0 10px 9px;
}

.bf6-card-facts > div + div {
  margin-top: .5rem;
}

.bf6-card-facts dt {
  font-size: .83rem;
  font-weight: 700;
}

.bf6-guide-section .character-name-text {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bf6-guide-section .character-controls {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  align-items: end;
}

.bf6-guide-section .character-controls:not(:has(select)) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.bc-filter {
  display: grid;
  gap: .25rem;
  min-width: 0;
  font-size: .88rem;
}

.bf6-guide-section [data-static-reset],
.bf6-guide-section .character-mobile-sort-button,
.bc-filter :is(input, select) {
  min-height: 44px;
}

.bf6-guide-section .character-mobile-sort {
  display: none;
}

@media (max-width: 850px) {
  .bf6-guide-section .character-mobile-sort {
    display: flex;
    margin-top: .5rem;
  }

  .bc-controls-table {
    font-size: .88rem;
  }
}

@media (max-width: 767px) {
  .bf6-contents ul {
    gap: .15rem .8rem;
  }

  #editions .work-facts > div,
  #play-environment .work-facts > div,
  .bc-facts > div,
  .bf6-guide-section .character-controls,
  .bf6-guide-section .character-controls:not(:has(select)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .bf6-guide-section ol {
    padding-inline-start: 1.4rem;
  }

  .bf6-guide-section .bc-controls-table {
    table-layout: fixed;
  }

  .bf6-guide-section .bc-controls-table thead th:first-child {
    width: 46%;
  }

  .bf6-guide-section .bc-controls-table :is(td, th) {
    padding-inline: .35rem;
  }
}
