/* 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; container: static-list / inline-size; }
[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] .static-mobile .character-detail { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 850px) {
  [data-static-list] .static-desktop { display: none; }
  [data-static-list] .static-mobile { display: block; }
}

/* The table needs 520px plus the borders of its wrapper. */
@container static-list (width < 524px) {
  [data-static-list] .static-desktop { display: none; }
  [data-static-list] .static-mobile { display: block; }
}

@container static-list (width < 650px) {
  [data-static-list]:has(.character-table thead th:nth-child(5)) .static-desktop { display: none; }
  [data-static-list]:has(.character-table thead th:nth-child(5)) .static-mobile { display: block; }
}

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