/* Work-local guide prose and columns; shared controls, frame and advertising stay common. */
.guide-section p { line-height: 1.8; }
.guide-section h2, [data-static-list] > h2 { color: var(--accent); }
.guide-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding-left: 1.3rem; }
.guide-toc a { display: inline-block; padding: .3rem 0; }
.guide-steps { padding-left: 1.6rem; line-height: 1.8; }
.guide-steps li + li { margin-top: .45rem; }
.guide-battle { padding: 1rem 0; border-top: 1px solid var(--line, #d5c7b4); scroll-margin-top: 1rem; }
.guide-battle h3 { color: var(--accent); margin: 0 0 .65rem; font-size: 1.1rem; }
.guide-conditions, .guide-traits { margin: .5rem 0 1rem; }
.guide-conditions > div, .guide-traits > div { display: grid; grid-template-columns: minmax(7rem, 30%) minmax(0, 1fr); gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line, #d5c7b4); }
.guide-conditions dt, .guide-traits dt { font-weight: 700; }
.guide-conditions dd, .guide-traits dd { margin: 0; line-height: 1.65; overflow-wrap: anywhere; }
.guide-list-table { min-width: 0; }
.guide-list-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.guide-list-table th:nth-child(n), .guide-list-table td:nth-child(n) { width: auto; }
#item-list .guide-list-table th:nth-child(1) { width: 12%; }
#item-list .guide-list-table th:nth-child(2) { width: 27%; }
#item-list .guide-list-table th:nth-child(3) { width: 16%; }
#item-list .guide-list-table th:nth-child(4) { width: 45%; }
#unit-list .guide-list-table th:nth-child(1) { width: 40%; }
#unit-list .guide-list-table th:nth-child(2) { width: 23%; }
#unit-list .guide-list-table th:nth-child(3) { width: 37%; }
.guide-list-table td:first-child { min-width: 4.2rem; }
.guide-list-table td.character-name-cell { min-width: 10rem; }
.guide-list-table .character-name-button { align-items: flex-start; }
.guide-card-facts { margin: 0; padding: .4rem 10px .65rem; }
.guide-row-number { margin: 0; padding: .5rem 10px 0; color: var(--accent); font-size: .8rem; }
.guide-row-number::before { content: "No. "; }
.guide-card-fact { margin: .3rem 0; }
.guide-card-fact::before { content: attr(data-caption) "："; color: var(--accent); font-size: .85rem; }
.guide-card-facts > div { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: .5rem; margin-top: .35rem; }
.guide-card-facts dt { font-size: .8rem; color: var(--accent); }
.guide-card-facts dd { margin: 0; overflow-wrap: anywhere; }
.guide-empty { padding: 1rem; }
.character-detail-item > div { line-height: 1.7; }
[data-static-list] .character-detail { grid-template-columns: minmax(0, 1fr); }
[data-static-list] .character-detail-item { grid-template-columns: 9rem minmax(0, 1fr); }
[data-static-list] .character-detail-item h3 { white-space: normal; }
.character-detail-item .guide-traits > div { grid-template-columns: minmax(6rem, 33%) minmax(0, 1fr); }
@media (max-width: 1100px) {
  [data-static-list] .static-desktop { display: none; }
  [data-static-list] .static-mobile { display: block; }
  [data-static-list] .character-detail-item { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .character-detail-item .guide-traits > div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 850px) {
  .guide-toc { grid-template-columns: 1fr; }
  .guide-conditions > div, .guide-traits > div, .character-detail-item .guide-traits > div { grid-template-columns: 1fr; gap: .2rem; }
  .guide-list-table { width: 100%; }
  .character-mobile-list-head { flex-wrap: wrap; }
  .guide-section { overflow-wrap: anywhere; }
}
