/* Approved Tournament Military: one compact four-column table, with live server quotes. */
.tournament-military-page { min-width: 0; max-width: 56.25rem; }
.tournament-military-form { min-width: 0; max-width: none; }
.tournament-military-heading { display: flex; justify-content: space-between; align-items: center; gap: .625rem; margin-bottom: .75rem; }
.tournament-military-heading h2 { margin: 0 0 .3125rem; font-size: 1rem; }
.tournament-military-heading p { margin: 0; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.tournament-military-budget { flex: 0 0 auto; min-width: 6.5rem; padding: .4375rem .5625rem; border: 1px solid var(--border); border-radius: .375rem; background: var(--panel); text-align: right; }
.tournament-military-budget span { display: block; color: var(--muted); font-size: .625rem; }
.tournament-military-budget strong { display: block; margin-top: .25rem; color: var(--accent); font-size: 1.3125rem; font-variant-numeric: tabular-nums; }
.tournament-military-holdings { padding: .5rem .625rem; margin-bottom: .875rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--panel); }
.tournament-military-holdings dl { margin: 0; }
.tournament-military-holdings dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: .625rem; padding: .3125rem 0; }
.tournament-military-holdings dt { min-width: 0; color: var(--muted); font-size: .8125rem; }
.tournament-military-holdings dd { margin: 0; text-align: right; color: var(--text); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.tournament-military-holdings small { display: block; margin-top: .1875rem; color: var(--muted); font-size: .6875rem; }
.tournament-military-table { width: 100%; table-layout: fixed; border-collapse: collapse; border: 1px solid var(--border); background: var(--panel); }
.tournament-military-table th, .tournament-military-table td { box-sizing: border-box; padding: .625rem .375rem; border-bottom: 1px solid var(--border); vertical-align: middle; overflow-wrap: anywhere; }
.tournament-military-table thead th { font-size: .625rem; line-height: 1.4; letter-spacing: 0; }
.tournament-military-table thead th:nth-child(1) { width: 35%; text-align: left; }
.tournament-military-table thead th:nth-child(2) { width: 18%; text-align: center; color: var(--accent); }
.tournament-military-table thead th:nth-child(3) { width: 20%; text-align: right; }
.tournament-military-table thead th:nth-child(4) { width: 27%; text-align: right; }
.tournament-military-table tbody th { font-size: .75rem; font-weight: 500; text-align: left; text-transform: none; letter-spacing: 0; line-height: 1.4; color: var(--text); }
.tournament-military-table tbody td { font-size: .75rem; text-align: right; line-height: 1.4; font-variant-numeric: tabular-nums; }
.tournament-military-table .tournament-military-unit-stats { color: var(--accent); text-align: center; }
.tournament-military-table small { display: block; margin-top: .25rem; color: var(--muted); font-size: .625rem; font-weight: 400; line-height: 1.4; }
.tournament-military-table .tournament-military-pending { color: var(--accent); }
.tournament-military-table .tournament-military-max { font-size: .625rem; font-variant-numeric: tabular-nums; }
.tournament-military-max em { font-style: italic; }
.tournament-military-table input { box-sizing: border-box; min-width: 0; width: 100%; max-width: 8.75rem; min-height: 2.75rem; padding: .5rem .375rem; text-align: right; font-size: 16px; font-variant-numeric: tabular-nums; background: var(--bg); color: var(--text); }
.tournament-military-table input[aria-invalid=true] { border-color: var(--bad); }
.tournament-military-reserve { display: inline-block; padding: .625rem; color: var(--muted); }
/* Term help follows the compact cell, overriding the shared button dimensions without shrinking touch height. */
#tournament-frame .tournament-military-table button.term-help:not(.chip),
#tournament-frame .tournament-military-holdings button.term-help:not(.chip) { max-width: 100%; min-width: 0; min-height: 2.75rem; padding: 0; justify-content: flex-start; text-align: left; white-space: normal; font: inherit; line-height: inherit; }
.tournament-military-plan { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .375rem .75rem; margin: .875rem 0 .375rem; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.tournament-military-remaining { margin: 0 0 .5625rem; font-size: .6875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tournament-military-validation, .tournament-military-error { color: var(--bad); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.tournament-military-validation:empty, .tournament-military-result:empty { display: none; }
.tournament-military-result { color: var(--text); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
#tournament-frame .tournament-military-submit { width: 100%; min-height: 2.875rem; margin: .625rem 0; background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 700; }
.tournament-military-note { margin: .625rem 0; color: var(--muted); font-size: .6875rem; line-height: 1.5; overflow-wrap: anywhere; }
.tournament-military-disclosure { min-width: 0; margin-top: .875rem; border-top: 1px solid var(--border); }
.tournament-military-disclosure > summary { box-sizing: border-box; min-height: 2.75rem; padding: .75rem 0; color: var(--text); font-size: .875rem; cursor: pointer; }
.tournament-military-options > label { display: flex; align-items: center; gap: .625rem; min-height: 2.75rem; margin: .375rem 0; color: var(--muted); font-size: .8125rem; }
.tournament-military-options input[type=checkbox] { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.tournament-military-policy { margin-top: 1rem; }
.tournament-military-policy .tournament-automatic-military { display: grid; grid-template-columns: minmax(0, 1fr); gap: .625rem; }
.tournament-military-policy .panel { min-width: 0; margin: 0; padding: .75rem; }
.tournament-military-policy h3 { margin: 0 0 .5rem; font-size: .9375rem; }
.tournament-military-policy p { margin: .5rem 0; font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.tournament-military-policy input, .tournament-military-policy select { min-height: 2.75rem; max-width: 100%; font-size: 16px; }
.tournament-military-page [data-tournament-military-refresh] { min-height: 2.75rem; margin-bottom: .75rem; }
.tournament-military-page [data-tournament-military-check] { min-height: 2.75rem; }
.tournament-military-page [data-tournament-military-check][hidden] { display: none; }
.tournament-military-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 760px) {
  .tournament-military-heading { gap: .875rem; margin-bottom: .875rem; }
  .tournament-military-heading h2 { font-size: 1.125rem; }
  .tournament-military-heading p { font-size: .8125rem; }
  .tournament-military-budget { padding: .5625rem .75rem; }
  .tournament-military-budget strong { font-size: 1.5625rem; }
  .tournament-military-table th, .tournament-military-table td { padding: .75rem .625rem; }
  .tournament-military-table thead th:nth-child(1) { width: 36%; }
  .tournament-military-table thead th:nth-child(4) { width: 26%; }
  .tournament-military-table tbody th, .tournament-military-table tbody td { font-size: .875rem; }
  .tournament-military-table small, .tournament-military-max { font-size: .6875rem; }
  .tournament-military-policy .tournament-automatic-military { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .tournament-military-holdings dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
}
