@import url("./characters.css");

body[data-list-page="true"] .layout-shell {
  max-width: 1280px;
  margin-top: 0;
}

body[data-list-page="true"] .main-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
  padding-bottom: 28px;
}

body[data-list-page="true"] .site-intro {
  margin-top: 0;
  padding-top: 0;
}

body[data-list-page="true"] .site-intro .subpage-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: left;
  color: var(--accent);
}

body[data-list-page="true"] .character-table th,
body[data-list-page="true"] .character-table td {
  width: 25%;
}

.list-result-count {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (min-width: 851px) {
  body[data-list-page="true"] .character-table th:nth-child(1),
  body[data-list-page="true"] .character-table td:nth-child(1) { width: 20%; }

  body[data-list-page="true"] .character-table th:nth-child(2),
  body[data-list-page="true"] .character-table td:nth-child(2) { width: 22%; }

  body[data-list-page="true"] .character-table th:nth-child(3),
  body[data-list-page="true"] .character-table td:nth-child(3) { width: 25%; }

  body[data-list-page="true"] .character-table th:nth-child(4),
  body[data-list-page="true"] .character-table td:nth-child(4) { width: 33%; }

  body[data-list-page="true"] .character-table tbody td {
    font-size: 0.9rem;
    vertical-align: top;
  }
}

@media (max-width: 600px) {
  body[data-list-page="true"] .main-content {
    padding: 6px 8px 8px;
  }

  body[data-list-page="true"] .layout-shell,
  body[data-list-page="true"] .main-content,
  body[data-list-page="true"] .panel,
  body[data-list-page="true"] .character-list,
  body[data-list-page="true"] .character-card {
    max-width: 100%;
    min-width: 0;
  }

  body[data-list-page="true"] .character-card-meta {
    gap: 5px;
  }

  body[data-list-page="true"] .character-card-meta span {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
