/* 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-table { min-width: 0; }
/* Keep long metadata readable without splitting its label across lines. */
[data-static-list] .character-card-meta span,
[data-static-list] .character-card-value {
  font-size: .85rem;
  line-height: 1.5;
}
[data-static-list] .character-card-meta strong {
  flex-shrink: 0;
  margin-inline-end: .25em;
  white-space: nowrap;
}
/* Long effect descriptions need the available detail width, not half a row. */
[data-static-list] .character-detail-item--long {
  grid-column: 1 / -1;
  grid-template-columns: max-content minmax(0, 1fr);
}
[data-static-list] .character-detail-item--long h3 {
  white-space: nowrap;
}
[data-static-list] .character-detail-item--long p {
  font-weight: normal;
  line-height: 1.6;
}
@media (min-width: 851px) and (max-width: 1100px) {
  [data-static-list] .character-detail-item { grid-column: 1 / -1; }
  [data-static-list] .character-sort-button {
    padding-inline: 4px;
    gap: 2px;
    font-size: .78rem;
  }
  [data-static-list] .character-sort-button > span:first-child { white-space: nowrap; }
  [data-static-list] .character-table--columns-4 th:nth-child(2),
  [data-static-list] .character-table--columns-4 td:nth-child(2),
  [data-static-list] .character-table--columns-4 th:nth-child(3),
  [data-static-list] .character-table--columns-4 td:nth-child(3) { width: 22%; }
}
@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; }
