/* The original table/card layout is shared; these rules only support static twins. */
body[data-rendering="static"] [hidden] { display: none !important; }
[data-static-list] { min-width: 0; scroll-margin-top: 1rem; }
[data-static-list] .static-mobile { display: none; }
[data-static-list] .character-table th:nth-child(1),
[data-static-list] .character-table td:nth-child(1) { width: 25%; }
[data-static-list] .character-table th:nth-child(2),
[data-static-list] .character-table td:nth-child(2) { width: 16%; }
[data-static-list] .character-table th:nth-child(3),
[data-static-list] .character-table td:nth-child(3) { width: 29%; }
[data-static-list] .character-table th:nth-child(4),
[data-static-list] .character-table td:nth-child(4) { width: 30%; }
[data-static-list] .character-card-value { white-space: normal; overflow-wrap: anywhere; }
[data-static-list] [data-static-count] { font-size: .8rem; text-align: right; margin: .5rem 0; }
[data-static-list] [data-static-reset] { min-height: 2.75rem; font: inherit; cursor: pointer; }
[data-static-list] button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-static-list] .character-detail { padding: 10px; }
[data-static-list] .static-mobile-sort-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 12px 4px;
}
[data-static-list] .static-mobile-sort-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  min-height: 2.25rem;
  padding: 5px 7px;
  border: 1px solid var(--brand-light, #fbcfe8);
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  font: inherit;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
[data-static-list] .static-mobile-sort-button > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
[data-static-list] .static-mobile-sort-button.is-active {
  border-color: var(--brand);
  background: #fff0f7;
  color: var(--accent);
}
@media (max-width: 850px) {
  [data-static-list] .static-desktop { display: none; }
  [data-static-list] .static-mobile { display: block; }
}

body[data-rendering="static"] .static-page-kind { display: inline-block; }
