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

/* Conditions need more reading space than the short ending/lesson names. */
#endings .character-table th:nth-child(1),
#endings .character-table td:nth-child(1) { width: 24%; }
#endings .character-table th:nth-child(2),
#endings .character-table td:nth-child(2) { width: 34%; }
#endings .character-table th:nth-child(3),
#endings .character-table td:nth-child(3) { width: 42%; }
#ciel-lessons .character-table th:nth-child(1),
#ciel-lessons .character-table td:nth-child(1) { width: 20%; }
#ciel-lessons .character-table th:nth-child(2),
#ciel-lessons .character-table td:nth-child(2) { width: 25%; }
#ciel-lessons .character-table th:nth-child(3),
#ciel-lessons .character-table td:nth-child(3) { width: 55%; }
#ps4-trophies .character-table th:nth-child(1),
#ps4-trophies .character-table td:nth-child(1) { width: 32%; }
#ps4-trophies .character-table th:nth-child(2),
#ps4-trophies .character-table td:nth-child(2) { width: 18%; }
#ps4-trophies .character-table th:nth-child(3),
#ps4-trophies .character-table td:nth-child(3) { width: 50%; }

body[data-rendering="static"] .character-detail-item p {
  font-size: 1rem;
  line-height: 1.6;
}

[data-static-list] .static-desktop .character-detail {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

@media (max-width: 850px) {
  body[data-rendering="static"] .character-card-value,
  body[data-rendering="static"] .character-card-meta span {
    font-size: .875rem;
    line-height: 1.5;
    border-radius: 8px;
  }
  body[data-page="home"] .character-card-value { font-size: 1rem; }
  body[data-rendering="static"] .character-detail-item h3 {
    font-size: .875rem;
    line-height: 1.5;
  }
}
