body[data-work-slug="heat-the-soul-2"] .layout-shell {
  max-width: 1280px;
  margin-top: 0;
}

body[data-work-slug="heat-the-soul-2"] .main-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
  padding-bottom: 28px;
}

body[data-work-slug="heat-the-soul-2"] .site-intro {
  margin-top: 0;
  padding-top: 0;
}

body[data-work-slug="heat-the-soul-2"] .site-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 8px;
}

body[data-work-slug="heat-the-soul-2"] .subpage-title {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1.3;
  text-align: left;
}

.reference-scope-note {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.65;
}

.reference-result-count {
  margin: -4px 4px 8px;
  color: var(--text-muted);
  font-size: .84rem;
  font-weight: 700;
  text-align: right;
}

.work-reference-table {
  table-layout: fixed;
}

body[data-reference-type="commands"] .work-reference-table th:nth-child(1),
body[data-reference-type="commands"] .work-reference-table td:nth-child(1) { width: 29%; }
body[data-reference-type="commands"] .work-reference-table th:nth-child(2),
body[data-reference-type="commands"] .work-reference-table td:nth-child(2) { width: 31%; }
body[data-reference-type="commands"] .work-reference-table th:nth-child(3),
body[data-reference-type="commands"] .work-reference-table td:nth-child(3) { width: 40%; }

body[data-reference-type="cards"] .work-reference-table th:nth-child(1),
body[data-reference-type="cards"] .work-reference-table td:nth-child(1) { width: 20%; }
body[data-reference-type="cards"] .work-reference-table th:nth-child(2),
body[data-reference-type="cards"] .work-reference-table td:nth-child(2) { width: 27%; }
body[data-reference-type="cards"] .work-reference-table th:nth-child(3),
body[data-reference-type="cards"] .work-reference-table td:nth-child(3) { width: 53%; }

body[data-reference-type="modes"] .work-reference-table th:nth-child(1),
body[data-reference-type="modes"] .work-reference-table td:nth-child(1) { width: 28%; }
body[data-reference-type="modes"] .work-reference-table th:nth-child(2),
body[data-reference-type="modes"] .work-reference-table td:nth-child(2) { width: 24%; }
body[data-reference-type="modes"] .work-reference-table th:nth-child(3),
body[data-reference-type="modes"] .work-reference-table td:nth-child(3) { width: 48%; }

.reference-primary-cell {
  color: var(--accent);
}

.reference-primary-cell .character-name-text {
  overflow-wrap: anywhere;
}

.reference-card .character-card-value {
  white-space: normal;
  overflow-wrap: anywhere;
}

.reference-card .work-card-meta {
  align-items: flex-start;
}

.reference-card .work-card-meta span {
  min-width: 0;
  white-space: normal;
}

.reference-card .work-card-meta b {
  flex: 0 0 auto;
}

.reference-unlock-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-main);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
}

.reference-unlock-list li + li {
  margin-top: 4px;
}

.reference-unlock-list strong {
  color: var(--brand);
}

.reference-mobile-sort-head {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 850px) {
  body[data-work-slug="heat-the-soul-2"] .main-content {
    padding: 6px 8px 8px;
  }

  body[data-work-slug="heat-the-soul-2"] .layout-shell,
  body[data-work-slug="heat-the-soul-2"] .main-content,
  body[data-work-slug="heat-the-soul-2"] .panel,
  body[data-work-slug="heat-the-soul-2"] .mobile-ad-slot,
  body[data-work-slug="heat-the-soul-2"] .character-list,
  body[data-work-slug="heat-the-soul-2"] .character-card {
    max-width: 100%;
    min-width: 0;
  }

  body[data-work-slug="heat-the-soul-2"] .site-intro-top {
    align-items: flex-start;
    margin-bottom: 6px;
  }

  .reference-mobile-sort-head .character-mobile-sort-button {
    min-width: 0;
    padding-inline: 4px;
    font-size: .72rem;
  }
}

@media (max-width: 430px) {
  .reference-mobile-sort-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
