/* 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; }
}
.guide-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.enemy-table { min-width: 68rem; }
.enemy-table th, .enemy-table td { white-space: nowrap; }
.enemy-table .character-name-cell { white-space: normal; min-width: 10rem; }
.trophy-grade { display: inline-block; padding: .18rem .55rem; border-radius: 999px; font-weight: 700; font-size: .82rem; white-space: nowrap; }
.trophy-grade--platinum { color: #3b3650; background: #ece8f4; }
.trophy-grade--gold { color: #614600; background: #f8edc8; }
.trophy-grade--silver { color: #3f4952; background: #e9eef1; }
.trophy-grade--bronze { color: #68422e; background: #f2e2d6; }
.trophy-card .character-card-summary { align-items: flex-start; }
.trophy-table td:last-child { min-width: 24rem; }
.enemy-card .guide-card-facts > div { grid-template-columns: 7rem minmax(0, 1fr); }
.guide-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.guide-mobile-sort { display: none; }
@media (max-width: 1100px) {
  .guide-mobile-sort { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin-top: .5rem; }
  .guide-mobile-sort .character-mobile-sort-button { width: 100%; min-height: 2.5rem; }
  .guide-mobile-sort .character-mobile-sort-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
}
#item-list .guide-list-table th:nth-child(1) { width: 28%; }
#item-list .guide-list-table th:nth-child(2) { width: 18%; }
#item-list .guide-list-table th:nth-child(3) { width: 54%; }
@media (max-width: 850px) { .enemy-table { min-width: 68rem; } .trophy-table td:last-child { min-width: 0; } }
/* Reuse the common controls in all four consolidated lists at both widths. */
.static-list-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; }
.static-list-controls .static-search-label { display: grid; gap: .4rem; width: 100%; }
.static-list-controls input[type="search"] { min-height: 44px; font-size: 1rem; }
.static-list-controls select, .static-list-controls [data-static-reset] { min-height: 44px; font-size: 1rem; }
.static-list-controls > label:not(.static-search-label) { display: grid; gap: .4rem; min-width: 12rem; }
.static-list-controls [data-static-reset] { padding: .4rem .6rem; border: 1px solid var(--brand-light); border-radius: 10px; background: #fff; color: var(--brand); }
@media (max-width: 1100px) {
  .guide-mobile-sort { width: 100%; }
  .guide-mobile-sort .character-mobile-sort-button { min-height: 44px; }
}
