/* 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; }
@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; }

/* Short tables fit the content column; multi-column comparisons keep scrolling. */
.integrated-list-section .character-table.static-table--compact {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

@media (max-width: 850px) {
  [data-static-list] .static-mobile-sort-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }
  [data-static-list] .static-mobile-sort-controls button { min-height: 44px; }
  [data-static-list] .character-card-summary { cursor: default; }
  [data-static-list] .character-card-value[data-label] {
    display: block;
    padding: 4px 6px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
  }
  [data-static-list] .character-card-value[data-label]::before {
    content: attr(data-label) "：";
    color: var(--accent);
    font-weight: 700;
  }
  [data-static-list] .character-card-name-cell[data-label]::before {
    content: attr(data-label) "：";
    color: var(--accent);
    font-weight: 700;
  }
  [data-static-list] .static-card-field--wide { grid-column: 1 / -1; }
}
