/* 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 h3 { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
body[data-rendering="static"] [data-static-list] .character-table { min-width: 0; width: 100%; table-layout: fixed; }
body[data-rendering="static"] [data-static-list] .character-table td { overflow-wrap: anywhere; }
@media (max-width: 850px) {
  [data-static-list] .static-desktop { display: none; }
  [data-static-list] .static-mobile { display: block; }
}

@media (min-width: 851px) and (max-width: 1100px) {
  body[data-rendering="static"] [data-static-list] .character-detail { grid-template-columns: minmax(0, 1fr); }
}

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

/* Stack guide labels above their text so long explanations retain the card width. */
@media (max-width: 850px) {
  .gta-guide-content [data-static-list] .character-detail-item { display: block; }
  .gta-guide-content [data-static-list] .character-detail-item h3 { margin-bottom: 5px; }
}
