/* Owner: tournament-results. Base and state rules retain order; conditional blocks own responsiveness. */
.ap-tournament .ap-tournament__player { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; }
.ap-tournament .ap-tournament__player h3 { font-family: inherit; font-size: 22px; font-weight: 750; line-height: 1.3; color: #04233a; margin: 0; }
.ap-tournament__portrait { width: 64px; height: 80px; object-fit: cover; object-position: center 20%; border-radius: var(--ap-ui-radius,0px); }
.ap-tournament .ap-tournament__metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0 0 10px; }
.ap-tournament .ap-tournament__metrics>div { padding: 12px; }
.ap-tournament .ap-tournament__metrics dt { font-size: 12px; }
.ap-tournament .ap-tournament__metrics dd { font-size: 28px; }
.ap-tournament .ap-tournament__note { font-size: 12px; line-height: 1.5; color: #486174; margin: 8px 0 16px; }
.ap-tournament .ap-tournament__event { border-top: 1px solid #d6e1e8; padding-top: 18px; margin-top: 20px; }
.ap-tournament__event-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.ap-tournament .ap-tournament__event-heading h3 { font-family: inherit; font-size: 20px; font-weight: 750; line-height: 1.3; color: #04233a; margin: 0; }
.ap-tournament__level { padding: 5px 8px; border-radius: var(--ap-ui-radius,0px); font-size: 12px; line-height: 1.4; font-weight: 800; background: #f5c72b; color: #04233a; flex: none; max-width: 38%; text-align: center; }
.ap-tournament .ap-tournament__venue { font-size: 14px; color: #405969; line-height: 1.5; margin: 10px 0; }
.ap-tournament [data-ap-tournament-dates] { font-size: 13px; color: #405969; margin: 8px 0; font-variant-numeric: tabular-nums; }
.ap-tournament .ap-sport-widget__calendar-controls { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 12px; margin: 18px 0; }
.ap-tournament .ap-sport-widget__calendar-controls label { min-width: 0; font-size: 13px; font-weight: 650; color: #405969; }
.ap-tournament .ap-sport-widget__calendar-controls :is(input,select) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #9db1be; border-radius: var(--ap-ui-radius,0px); background: #fff; color: #04233a; padding: 8px; font-size: 16px; margin-top: 6px; }
.ap-tournament :is(input,select):focus-visible { outline: 3px solid #176ca4; outline-offset: 2px; }
.ap-tournament .ap-sport-widget__outcome { display: inline-block; font-size: 12px; font-weight: 750; padding: 5px 9px; border-radius: var(--ap-ui-radius,0px); margin: 10px 12px 0; }
.ap-tournament .ap-sport-widget__outcome--win { background: #e4f3ec; color: #176442; }
.ap-tournament .ap-sport-widget__outcome--loss { background: #fdebed; color: #a32734; }
.ap-tournament [hidden] { display: none!important; }
@container(max-width:440px) {
  .ap-tournament .ap-tournament__metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ap-tournament .ap-sport-widget__calendar-controls { grid-template-columns: minmax(0,1fr); }
}
.ap-tournament.ap-sport-widget--compact { padding: 16px; }
.ap-tournament.ap-sport-widget--compact .ap-recent__heading h2 { font-size: 22px; }
.ap-tournament.ap-sport-widget--compact .ap-recent-match__team { padding: 10px; }

/* Tournament results: align native/enhanced fields and contain editorial list styles. */
.ap-tournament.ap-tournament--results .ap-sport-widget__calendar-controls { padding: 0; align-items: stretch; }
.ap-tournament.ap-tournament--results .ap-sport-widget__calendar-controls>label { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; margin: 0; }
.ap-tournament.ap-tournament--results .ap-sport-widget__calendar-controls :is(input,select,.ap-ui-select) { margin: 0; }
.ap-tournament.ap-tournament--results .ap-sport-widget__tournament-matches { list-style: none; padding: 0; }
.ap-tournament.ap-tournament--results .ap-sport-widget__tournament-matches>.ap-recent-match { list-style: none; margin: 0; padding: 0; }
.ap-tournament.ap-tournament--results .ap-sport-widget__tournament-matches>.ap-recent-match::marker { content: none; }
.ap-tournament.ap-tournament--results .ap-sport-widget__tournament-matches>.ap-recent-match::before,
.ap-tournament.ap-tournament--results .ap-sport-widget__tournament-matches>.ap-recent-match::after { content: none; display: none; }
/* Winner remains announced to assistive technology; colour supplies the visual cue. */
.ap-tournament.ap-tournament--results .ap-recent-match__winner { position: absolute; width: 1px; height: 1px; min-width: 0; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Shared Top 10 tabs, with one tournament frame and readable category headings without JS. */
.ap-tournament-categories__controls { margin-bottom: 20px; }
.ap-tournament-categories__panel>.ap-sport-widget.ap-tournament { margin: 0; padding: 0; border: 0; background: transparent; }
.ap-tournament-categories__panel+.ap-tournament-categories__panel { margin-top: 24px; }
.ap-tournament-categories[data-ap-tabs-ready]>.ap-tournament-categories__panel { margin-top: 0; }
.ap-tournament-categories[data-ap-tabs-ready]>.ap-tournament-categories__panel>.ap-tournament>.ap-recent__heading { display: none; }
.ap-tournament-categories [role="tabpanel"]:focus-visible { outline: 3px solid #04233a; outline-offset: 3px; }
