/* 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; }
/* The two-column character widths must not consume multi-column lists. */
[data-static-list] .character-table:has(th:nth-child(3)) th,
[data-static-list] .character-table:has(th:nth-child(3)) td { width: auto; overflow-wrap: anywhere; }
[data-static-list] .character-table:has(th:nth-child(3)) th:first-child { width: 32%; }
[data-static-list] .character-table.character-table--conditions th:nth-child(1) { width: 26%; }
[data-static-list] .character-table.character-table--conditions th:nth-child(2) { width: 14%; }
[data-static-list] .character-table.character-table--conditions th:nth-child(3) { width: 16%; }
[data-static-list] .character-table.character-table--conditions th:nth-child(4) { width: 44%; }
[data-static-list] .character-card-meta > span { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
[data-static-list] .character-card-meta > .character-card-condition { display: block; flex-basis: 100%; border-radius: 0; background: none; color: var(--text-main); font-size: .875rem; font-weight: 400; line-height: 1.6; padding: 4px 7px; }
[data-static-list] .list-track-control { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; font-size: .8rem; white-space: nowrap; }
[data-static-list] .list-track-control input { flex: 0 0 auto; }
[data-static-list] .character-detail-item h3 { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
[data-static-list] .character-detail-item--wide { grid-column: 1 / -1; }
@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; }

/* Donkey Konga 3 keeps four compact song fields readable beside the ad rail. */
body:has(#list-songs) #list-songs .character-table th:nth-child(1),
body:has(#list-songs) #list-songs .character-table td:nth-child(1) { width: 28%; }
body:has(#list-songs) #list-songs .character-table th:nth-child(2),
body:has(#list-songs) #list-songs .character-table td:nth-child(2) { width: 14%; }
body:has(#list-songs) #list-songs .character-table th:nth-child(3),
body:has(#list-songs) #list-songs .character-table td:nth-child(3) { width: 42%; }
body:has(#list-songs) #list-songs .character-table th:nth-child(4),
body:has(#list-songs) #list-songs .character-table td:nth-child(4) { width: 16%; }

/* Keep the spoiler checkbox alongside its label on desktop and mobile. */
[data-static-list] .character-spoiler-control { display: flex; align-items: center; gap: .5rem; }
[data-static-list] .character-spoiler-control input { width: auto; margin: 0; flex: 0 0 auto; }
