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

  :where(body[data-rendering="static"] [data-static-list]) .static-mobile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px;
  }

  :where(body[data-rendering="static"] [data-static-list]) .static-mobile-field {
    display: block;
    min-width: 0;
    padding: 5px 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  :where(body[data-rendering="static"] [data-static-list]) .static-mobile-field::before {
    display: block;
    margin-bottom: 2px;
    color: var(--text-muted);
    content: attr(data-label);
    font-size: .68rem;
    font-weight: 800;
  }

  :where(body[data-rendering="static"] [data-static-list]) .static-mobile-field .character-name-button {
    width: 100%;
  }
}

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