/* 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] .static-unified-list { gap: 10px; }
[data-static-list] .static-unified-card .character-card-summary { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
[data-static-list] .static-card-fields { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 10px 10px; }
[data-static-list] .static-card-fields div { display: flex; gap: 4px; min-width: 0; }
[data-static-list] .static-card-fields dt { font-weight: 800; color: var(--text-muted); }
[data-static-list] .static-card-fields dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
[data-static-list] .static-unified-card .character-detail { border-top: 1px solid #f8d4e6; margin: 0; }
[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; }

/* Static detail text is one paragraph, rather than a profile field grid. */
[data-static-list] div[data-static-detail] { display: block; overflow-wrap: anywhere; line-height: 1.65; }
[data-static-list] [data-static-detail] p { margin: 0; }
[data-static-list] .static-card-fields { column-gap: 12px; row-gap: 6px; }

/* Static tables may have more than two columns, not the legacy two. */
body[data-rendering="static"] .character-table th,
body[data-rendering="static"] .character-table td { width: auto; }

[data-static-list] .static-card-fields div { max-width: 100%; }
[data-static-list] .static-card-fields dt { flex-shrink: 0; white-space: nowrap; }

[data-static-list] .character-card-value { font-size: .85rem; line-height: 1.5; }

[data-static-list] .character-card-value--long { grid-column: 1 / -1; background: transparent; border-radius: 0; color: var(--text-main); text-align: left; font-weight: normal; font-size: 1rem; }

[data-static-list] [data-static-detail] { font-weight: normal; }
[data-static-list] tr[data-static-detail] > td { font-weight: normal; line-height: 1.65; overflow-wrap: anywhere; }
[data-static-list] tr[data-static-detail] > td:not(:has(.character-detail)) { padding: 12px !important; }
[data-static-list] .static-mobile div[data-static-detail] { padding: 10px; border-top: 1px solid #f8d4e6; }
