/* The shared list layout remains in use; three-field lists divide the same table width. */
.character-table--three-values th:nth-child(1),
.character-table--three-values td:nth-child(1) { width: 42%; }
.character-table--three-values th:nth-child(2),
.character-table--three-values td:nth-child(2) { width: 32%; }
.character-table--three-values th:nth-child(3),
.character-table--three-values td:nth-child(3) { width: 26%; }
.static-card-extra,
.static-mobile .person-origin { margin: 0; padding: 0 12px 8px; font-size: .85rem; }
.guide-section { scroll-margin-top: 1rem; }
.guide-heading-part { display: inline-block; }
.guide-section li { margin-block: .5rem; }

/* Fit the adopted two/three-column tables to the content width above the card breakpoint. */
body[data-page="characters"] .static-desktop .character-table { min-width: 0; }
@media (min-width: 851px) and (max-width: 1100px) {
  body[data-page="characters"] .character-detail { grid-template-columns: minmax(0, 1fr); }
}

/* Long explanations use the detail width; short costs and classifications keep their paired layout. */
.character-detail-item--long { grid-column: 1 / -1; }
.person-cv-name { display: inline-block; }
.work-navigation { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.work-navigation a[aria-current="page"] { font-weight: 700; }
[data-static-list]:not(#characters) .character-table--three-values th:nth-child(1),
[data-static-list]:not(#characters) .character-table--three-values td:nth-child(1) { width: 29%; }
[data-static-list]:not(#characters) .character-table--three-values th:nth-child(2),
[data-static-list]:not(#characters) .character-table--three-values td:nth-child(2) { width: 51%; }
[data-static-list]:not(#characters) .character-table--three-values th:nth-child(3),
[data-static-list]:not(#characters) .character-table--three-values td:nth-child(3) { width: 20%; }
@media (max-width: 850px) {
  .character-detail-item--long { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #main-route .character-card-value,
  #bosses .character-card-value,
  #hotsprings .character-card-value,
  #clans .character-card-value,
  #martial .character-card-value,
  #ninjutsu .character-card-value,
  #onmyo .character-card-value,
  #spirits .character-card-value,
  #accessories .character-card-value,
  #sets .character-card-value,
  #items .character-card-value,
  #recipes .character-card-value {
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.6;
    border-radius: 8px;
    padding: 6px;
    text-align: left;
    justify-content: flex-start;
  }
}
