/* Approved History: three left cards and one long Combat card, including on a phone. */
.tournament-history-page { min-width: 0; max-width: 68.75rem; }
.tournament-history-intro { margin-bottom: .875rem; }
.tournament-history-intro h2 { margin: 0 0 .375rem; font-size: 1.0625rem; }
.tournament-history-intro p { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.tournament-history-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .625rem; margin-bottom: .875rem; }
.tournament-history-tabs { display: flex; gap: .375rem; }
.tournament-history-page button { min-height: 2.75rem; }
.tournament-history-tabs button,
.tournament-history-toolbar > button,
.tournament-history-page [data-tournament-history-more] { padding: .5rem .75rem; font-size: .875rem; }
.tournament-history-tabs [aria-pressed=true] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.tournament-history-toolbar > button[aria-disabled=true] { opacity: .7; cursor: progress; }
.tournament-history-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .625rem; }
.tournament-history-summary { display: grid; min-width: 0; gap: inherit; }
.tournament-history-card { min-width: 0; padding: .625rem; border: 1px solid var(--border); border-radius: .625rem; background: var(--panel); }
.tournament-history-card h3 { margin: 0 0 .5rem; padding-bottom: .5625rem; border-bottom: 1px solid var(--border); color: var(--link); font-size: .625rem; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.tournament-history-card dl { margin: 0; }
.tournament-history-fact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: baseline; gap: .375rem; min-height: 2rem; padding: .375rem 0; border-bottom: 1px solid var(--border); font-size: .75rem; line-height: 1.4; }
.tournament-history-fact:last-child { border-bottom: 0; }
.tournament-history-fact dt { min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
.tournament-history-fact dd { min-width: 0; margin: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tournament-history-fact small { display: block; margin-top: .25rem; color: var(--muted); font-size: .625rem; line-height: 1.4; }
/* Record values override shared help-button centering while preserving the full touch target. */
#tournament-frame .tournament-history-fact dd > button.term-help:not(.chip) { display: flex; flex-direction: column-reverse; justify-content: center; align-items: flex-end; width: 100%; max-width: 100%; min-height: 2.75rem; margin: 0; padding: 0; font: inherit; line-height: inherit; text-align: right; white-space: normal; }
.tournament-history-fact .term-help-label { color: var(--muted); font-size: .625rem; }
.tournament-history-record-value { color: var(--text); }
.tournament-history-note { margin: .75rem 0; color: var(--muted); font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }
.tournament-history-card .tournament-history-note { margin-bottom: 0; }
.tournament-history-note .term-help { max-width: 100%; padding: 0; font: inherit; line-height: inherit; white-space: normal; }
.tournament-history-error { margin: .75rem 0; color: var(--bad); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.tournament-history-filter { display: grid; gap: .375rem; margin: .875rem 0; font-size: .875rem; color: var(--muted); }
.tournament-history-filter select { width: 100%; min-width: 0; min-height: 2.75rem; font-size: 16px; }
.tournament-history-list { display: grid; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.tournament-history-event { min-width: 0; padding: .75rem; border: 1px solid var(--border); border-radius: .625rem; background: var(--panel); overflow-wrap: anywhere; }
.tournament-history-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .375rem .75rem; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.tournament-history-event p { margin: .4375rem 0 0; font-size: .875rem; line-height: 1.65; overflow-wrap: anywhere; }
.tournament-history-page [data-tournament-history-more] { width: 100%; }
@media (min-width: 760px) {
  .tournament-history-intro h2 { font-size: 1.125rem; }
  .tournament-history-records { gap: .875rem; }
  .tournament-history-card { padding: .875rem 1rem; }
  .tournament-history-card h3 { font-size: .6875rem; }
  .tournament-history-fact { gap: .75rem; font-size: .8125rem; }
  .tournament-history-fact small { font-size: .6875rem; }
  .tournament-history-fact .term-help-label { font-size: .6875rem; }
  .tournament-history-note { font-size: .8125rem; }
  .tournament-history-filter { max-width: 24rem; }
  .tournament-history-event { padding: .875rem 1rem; }
  .tournament-history-page [data-tournament-history-more] { width: auto; }
}
@media (min-width: 1100px) {
  .tournament-history-records { gap: 1rem; }
  .tournament-history-fact { padding-block: .5rem; }
}
