.combat-page { max-width: 54rem; }
.combat-page article { max-width: 48rem; margin: 0 auto; }
.combat-page h2 { margin: 2.8rem 0 1rem; font: 400 1.8rem/1.25 Georgia, serif; letter-spacing: -.02em; }
.combat-page h3 { margin: 1.7rem 0 .6rem; font-size: 1.2rem; }
.combat-page p { margin: 1rem 0; }
.combat-page .meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.8rem; }
.combat-page .lead { font-size: 1.18rem; }
.combat-page .contents { margin: 1.8rem 0; padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: .5rem; font-size: .95rem; }
.contents p { margin: 0 0 .4rem; }
.contents ul { margin: 0; padding-left: 1.2rem; }
.tier { display: flow-root; }
.tier-portrait { float: right; width: 11rem; margin: .2rem 0 1rem 1.5rem; }
.tier-portrait img { display: block; width: 100%; height: auto; border-radius: .5rem; }
.tier-portrait figcaption { margin-top: .4rem; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.weapon-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.weapon-gallery figure { margin: 0; min-width: 0; }
.weapon-gallery img { display: block; width: 100%; height: auto; border-radius: .5rem; }
.weapon-gallery figcaption { margin-top: .5rem; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.weapon-gallery strong { color: var(--text); }
.rating { color: var(--accent); font: 500 .9rem/1.4 system-ui, sans-serif; white-space: nowrap; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: .4rem; }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.combat-page table { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.5; text-align: left; }
.combat-page th, .combat-page td { padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 8rem; }
.combat-page tr:last-child > * { border-bottom: 0; }
.combat-page th { font-weight: 600; }
.combat-page caption { padding: .8rem; text-align: left; color: var(--muted); font-size: .85rem; }
.combat-page td:empty { background: color-mix(in srgb, var(--line) 22%, transparent); }
.combat-page .note { color: var(--muted); font-size: .9rem; }
.combat-page .equation { overflow-x: auto; padding: .8rem 1rem; border-left: 3px solid var(--line); font-variant-numeric: tabular-nums; }
.combat-page .source-list { font-size: .92rem; padding-left: 1.3rem; }
.source-list li { margin: .7rem 0; overflow-wrap: anywhere; }
.combat-page footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 480px) {
  .combat-page { padding: 0 1.1rem; }
  .tier-portrait { width: 8rem; margin-left: 1rem; }
  .combat-page h2 { font-size: 1.55rem; }
  .combat-page th, .combat-page td { padding: .65rem; }
  .weapon-gallery { grid-template-columns: 1fr; max-width: 16rem; margin: 1.5rem auto; }
}
@media (max-width: 340px) {
  .tier-portrait { float: none; width: 9rem; margin: .5rem auto 1rem; }
}
