/* Complete list rows live once in the HTML; mobile presentation reshapes the table. */
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 !important; }
[data-static-list] .static-desktop { display: block; }
[data-static-list] .static-mobile-label { display: none; }
[data-static-list] .static-list-mobile-sorts { 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; }
.static-category-index > ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 8px; margin: 1rem 0 0; padding: 0; list-style: none; }
.static-category-index > ul a { display: grid; gap: 4px; min-height: 4rem; padding: 12px 14px; border: 1px solid #bfdbfe; border-radius: 12px; background: #fff; color: var(--brand); text-decoration: none; }
.static-category-index > ul a:hover, .static-category-index > ul a:focus-visible { border-color: var(--brand); background: #eff6ff; outline: none; }
.static-category-index > ul span { color: var(--text-sub); font-size: .82rem; }
@media (max-width: 850px) {
  body[data-rendering="static"] [data-static-list] .static-desktop { display: block !important; }
  body[data-rendering="static"] [data-static-list] .static-list-mobile-sorts { display: grid; }
  body[data-rendering="static"] [data-static-list] .static-mobile-label { display: inline-block; flex: 0 0 auto; white-space: nowrap; color: var(--brand); font-size: .74rem; font-weight: 800; }
  [data-static-list] .character-table-wrap { overflow: visible; border: 0; background: transparent; }
  body[data-rendering="static"] [data-static-list] .character-table { display: block; width: 100%; min-width: 0 !important; table-layout: auto; }
  body[data-rendering="static"] [data-static-list] .character-table thead { display: none; }
  body[data-rendering="static"] [data-static-list] .character-table tbody[data-static-item] {
    display: block; overflow: hidden; margin: 0 0 8px; border: 2px solid #bfdbfe;
    border-radius: 14px; background: #fff;
  }
  body[data-rendering="static"] [data-static-list] .character-table tbody[data-static-item] > tr:first-child {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-rendering="static"] [data-static-list] .character-table tbody[data-static-item] > tr:first-child > td {
    width: auto !important; min-width: 0; max-width: 100%; overflow-wrap: anywhere;
  }
  body[data-rendering="static"] [data-static-list] .character-table tbody[data-static-item] > tr:first-child > td:first-child {
    grid-column: 1 / -1; border-bottom: 1px solid #dbeafe;
  }
  body[data-rendering="static"] [data-static-list] .character-table tbody[data-static-item] > tr:first-child > td:not(:first-child) {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px; border: 0;
    padding: 7px 9px; font-size: .78rem;
  }
  body[data-rendering="static"] [data-static-list] .character-table tbody[data-static-item] > tr[data-static-detail] { display: block; }
  body[data-rendering="static"] [data-static-list] .character-table tbody[data-static-item] > tr[data-static-detail] > td {
    display: block; width: auto; border: 0; padding: 0 !important;
  }
  body[data-rendering="static"] [data-static-list] .character-table tbody[data-static-item] > tr[data-static-detail] .character-detail { padding: 0 8px 8px; }
}

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