/* Finished events: the podium, the finishing order and the full match sheet. */
.tournament-results { font-variant-numeric: tabular-nums; }
.recap-heading h1 { max-width: 26ch; }
.recap-heading p { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; margin: 0; color: var(--ink-soft); }
.recap-heading p > span[aria-hidden] { color: #8695a0; }

.honors { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); align-items: stretch; gap: clamp(1rem, 3vw, 2.5rem); margin-bottom: 2.75rem; }
.lookup-sheet { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); border-top: 2px solid var(--ink); padding-top: .9rem; margin-bottom: 2.75rem; }

/* The award stage: a navy platform with gold, silver and bronze plinths. */
.award-stage { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 1.4rem clamp(.9rem, 3vw, 2rem) 0; border-radius: 4px; background: var(--ink); color: #fff; }
.award-stage h2 { margin: 0; font: 400 clamp(1.6rem, 2.4vw, 2.15rem)/1.1 var(--serif); letter-spacing: -.03em; color: #fff; }
.award-stage > p { margin: 1.5rem 0 2rem; }
.award-podium { display: flex; align-items: flex-end; justify-content: center; gap: 3px; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.award-place { flex: 1 1 0; min-width: 0; text-align: center; --metal: #506a7b; --height: 10.5rem; }
.place-1 { order: 2; --metal: #9c763c; --height: 13rem; }
.place-2 { order: 1; }
.place-3 { order: 3; --metal: #79472c; --height: 8.5rem; }
.award-place h3 { margin: 0 .2rem .65rem; font: 500 clamp(.95rem, 1.5vw, 1.2rem)/1.2 var(--sans); letter-spacing: -.02em; }
.award-place a { color: #fff; text-decoration: underline; text-underline-offset: .23em; text-decoration-color: #849bab; }
.award-place a:hover { text-decoration-color: #fff; }
.plinth { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-height: var(--height); padding: .8rem .25rem; border-top: 4px solid #a2b7c5; background: #d4dfe6; color: var(--ink); }
.place-1 .plinth { background: #f5df9f; border-color: #e3c58c; }
.place-3 .plinth { background: #ddb494; border-color: #bb8963; }
.place-number { display: grid; place-items: center; flex: none; inline-size: 2.85rem; block-size: 2.85rem; border: 1px solid var(--metal); border-radius: 50%; outline: 1px solid var(--metal); outline-offset: -4px; }
.place-number b { font: 650 1.55rem/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; }
.award-record { display: grid; gap: .15rem; line-height: 1.3; }
.award-record strong { font-size: 1rem; }
.award-record span { font-size: .78rem; }
.award-record .award-elo { margin-top: .2rem; font-size: .8125rem; font-weight: 600; }
.award-elo b { font-weight: 500; }

.finish-order { min-width: 0; align-self: center; }
.recap-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.recap-table :is(th, td) { padding: .55rem .5rem; border-bottom: 1px solid var(--line); text-align: right; }
.recap-table :is(th, td):first-child { padding-left: 0; text-align: left; }
.recap-table :is(th, td):last-child { padding-right: 0; }
.recap-table thead th { padding-top: 0; font-size: .8125rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.recap-table tbody th { font-weight: 500; text-align: left; overflow-wrap: anywhere; }
.recap-table tbody th a { color: var(--ink); }
.finish-order thead th:nth-child(2) { text-align: left; }
.finish-order tbody td:first-child { font: 400 1.125rem/1 var(--serif); }
.finish-order tbody tr:first-child { background: var(--wash); }
.finish-order tbody tr:first-child > :first-child { padding-left: .5rem; }
.finish-order .help { margin-top: .75rem; }

.lookup-sheet p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.lookup-form > div { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.lookup-form input { flex: 1 1 11rem; width: auto; }

.match-sheet { border-top: 2px solid var(--ink); padding-top: .9rem; }
.match-sheet > header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .25rem; }
.match-sheet > header > span { color: var(--ink-soft); font-size: .875rem; }
.match-ledger > li:first-child { border-top: 0; }

@media (max-width: 59rem) {
  .honors, .lookup-sheet { grid-template-columns: 1fr; }
  .award-stage { min-height: 17rem; }
  .award-podium { width: min(100%, 40rem); align-self: center; }
}
@media (max-width: 40rem) {
  .award-stage { padding: 1rem .65rem 0; }
  .award-stage h2 { margin-left: .3rem; }
  .award-place h3 { font-size: .875rem; }
  .award-record span { font-size: .72rem; }
  .recap-table { font-size: .875rem; }
}
.lookup-table :is(th, td):last-child { white-space: nowrap; }
