/* 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-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] { 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] .character-detail-item:only-child { grid-column: 1 / -1; }
/* Keep long collection conditions inside the card, rather than a nowrap badge. */
[data-static-list] .character-card-summary > .character-card-meta { grid-column: 1 / -1; }
[data-static-list] .character-name-text { word-break: normal; overflow-wrap: normal; }
[data-static-list] .character-card-meta span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Four-column collection lists need space for conditions as well as names. */
[data-static-list] .character-table th:nth-child(1),
[data-static-list] .character-table tbody > tr:first-child > td:nth-child(1) { width: 26%; }
[data-static-list] .character-table th:nth-child(2),
[data-static-list] .character-table tbody > tr:first-child > td:nth-child(2) { width: 18%; }
[data-static-list] .character-table th:nth-child(3),
[data-static-list] .character-table tbody > tr:first-child > td:nth-child(3) { width: 26%; }
[data-static-list] .character-table th:nth-child(4),
[data-static-list] .character-table tbody > tr:first-child > td:nth-child(4) { width: 30%; }
@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; }
