/* Shared, responsive Results tab for participant and organizer. */
.tp-results-tabs{display:flex;align-items:stretch;gap:5px;padding:5px;margin:0 0 19px;border:1px solid var(--tp-line,#dce5ed);border-radius:15px;background:var(--tp-panel-2,#f3f7fb);width:fit-content;max-width:100%}
.tp-results-tabs button{min-width:135px;padding:11px 17px;background:transparent;border:1px solid transparent;border-radius:10px;color:var(--tp-muted,#607087);font:inherit;font-size:14px;font-weight:850;cursor:pointer}
.tp-results-tabs button.is-active{background:var(--tp-panel,#fff);border-color:var(--tp-line,#dce5ed);box-shadow:0 2px 7px rgba(0,0,0,.04);color:var(--tp-text,#071c38)}
.tp-results-tabs button:focus-visible,.tp-results-refresh:focus-visible,.tp-results-select:focus-visible,.tp-result-goals summary:focus-visible{outline:3px solid var(--tp-blue,#176fc1);outline-offset:2px}
.tp-results-panel[hidden],.tp-gameplay-layout[hidden],.survivor-layout[hidden],.tp-result-fixture[hidden]{display:none!important}
.tp-results-panel,.tp-results-view{min-width:0}
.tp-results-view{display:grid;gap:18px;color:var(--tp-text,#071c38)}
.tp-results-view-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:20px;border:1px solid var(--tp-line,#dce5ed);border-radius:17px;background:var(--tp-panel,#fff)}
.tp-results-view-header h2{font-size:clamp(23px,3.5vw,31px);line-height:1.2;color:var(--tp-text,#071c38);margin:5px 0 8px;letter-spacing:-.035em}
.tp-results-view-header p{margin:0;color:var(--tp-muted,#607087);font-size:13px;line-height:1.55}
.tp-results-refresh{min-height:43px;white-space:nowrap}
.tp-results-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.tp-results-metrics>div{display:flex;min-width:0;flex-direction:column;gap:6px;padding:16px 18px;background:var(--tp-panel,#fff);border:1px solid var(--tp-line,#dce5ed);border-radius:15px}
.tp-results-metrics small{color:var(--tp-muted,#607087);font-size:12px;font-weight:700}
.tp-results-metrics strong{font-size:clamp(19px,2.7vw,26px);font-variant-numeric:tabular-nums;color:var(--tp-text,#071c38);overflow-wrap:anywhere}
.tp-results-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.95fr);gap:16px;align-items:start}
.tp-results-matches,.tp-results-rankings{min-width:0;border:1px solid var(--tp-line,#dce5ed);border-radius:18px;background:var(--tp-panel,#fff);padding:17px;display:grid;gap:13px}
.tp-results-section-title h3{font-size:19px;color:var(--tp-text,#071c38);line-height:1.25;margin:0 0 6px}
.tp-results-section-title p{font-size:12px;color:var(--tp-muted,#607087);line-height:1.55;margin:0}
.tp-results-filter-label{display:flex;align-items:center;gap:11px;color:var(--tp-muted,#607087);font-size:13px;font-weight:800}
.tp-results-select{padding:9px 12px;max-width:100%;min-width:0;flex:1;border:1px solid var(--tp-line,#dce5ed);background:var(--tp-panel-2,#f3f7fb);color:var(--tp-text,#071c38);border-radius:10px;font:inherit;font-size:13px}
.tp-results-fixtures{display:grid;gap:11px}
.tp-result-fixture{min-width:0;overflow:hidden;border:1px solid var(--tp-line,#dce5ed);background:var(--tp-panel-2,#f3f7fb);border-radius:14px;padding:14px}
.tp-result-fixture-top{display:flex;align-items:center;justify-content:space-between;gap:11px;margin-bottom:15px}
.tp-result-fixture-top small{color:var(--tp-muted,#607087);font-size:11px}
.tp-result-state{border-radius:999px;border:1px solid var(--tp-line,#dce5ed);color:var(--tp-muted,#607087);padding:4px 8px;font-size:11px;font-weight:800;white-space:nowrap}
.tp-result-state.is-final{background:color-mix(in srgb,var(--tp-green,#09ba5d) 12%,var(--tp-panel,#fff));border-color:color-mix(in srgb,var(--tp-green,#09ba5d) 38%,var(--tp-line,#dce5ed));color:var(--tp-text,#071c38)}
.tp-result-fixture-match{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:9px;align-items:center}
.tp-result-club{min-width:0;overflow-wrap:anywhere;font-size:14px;line-height:1.4;color:var(--tp-text,#071c38);font-weight:850;text-align:right}
.tp-result-club:last-child{text-align:left}
.tp-result-mark{display:flex;flex-direction:column;gap:4px;align-items:center;min-width:80px}
.tp-result-mark>strong{color:var(--tp-text,#071c38);font-size:23px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.tp-result-mark small{color:var(--tp-muted,#607087);font-weight:700;font-size:11px;white-space:nowrap}
.tp-result-own-picks{border-top:1px solid var(--tp-line,#dce5ed);margin-top:14px;padding-top:9px;display:grid;gap:5px}
.tp-result-own{margin:0;line-height:1.55;font-size:12px;color:var(--tp-muted,#607087);overflow-wrap:anywhere}
.tp-result-own strong{font-weight:900;margin-right:3px}
.tp-result-own.is-correct strong{color:var(--tp-green,#078b47)}
.tp-result-own.is-incorrect strong{color:var(--tp-danger,#bf3d48)}
.tp-result-goals{margin-top:12px;border-top:1px solid var(--tp-line,#dce5ed)}
.tp-result-goals summary{cursor:pointer;color:var(--tp-text,#071c38);padding:12px 1px 3px;font-size:12px;font-weight:850;list-style:none}
.tp-result-goals summary::-webkit-details-marker{display:none}
.tp-result-goals summary:after{content:'⌄';float:right;color:var(--tp-muted,#607087);font-size:15px}
.tp-result-goals[open] summary:after{content:'⌃'}
.tp-result-goals-content{padding:10px 0 0;display:grid;gap:8px}
.tp-result-goal-row{display:grid;grid-template-columns:46px minmax(0,1fr);gap:11px;align-items:start;border-top:1px solid var(--tp-line,#dce5ed);padding-top:10px}
.tp-result-goal-minute{font-weight:850;color:var(--tp-text,#071c38);font-size:13px}
.tp-result-goal-row strong{display:block;font-weight:800;font-size:13px;color:var(--tp-text,#071c38)}
.tp-result-goal-row small{display:block;color:var(--tp-muted,#607087);font-size:11px;line-height:1.5;margin-top:3px}
.tp-results-ranking-list{display:grid;gap:8px}
.tp-results-ranking-row{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:12px;min-width:0;align-items:center;padding:12px;border:1px solid var(--tp-line,#dce5ed);background:var(--tp-panel-2,#f3f7fb);border-radius:13px}
.tp-results-ranking-row.is-mine{border-color:var(--tp-green,#09ba5d);background:var(--tp-panel-3,#eaf5ef)}
.tp-results-rank-icon{display:grid;place-items:center;background:var(--tp-panel,#fff);color:var(--tp-text,#071c38);min-width:32px;min-height:32px;border-radius:10px;font-size:13px;font-weight:900}
.tp-results-rank-person{min-width:0;overflow-wrap:anywhere}
.tp-results-rank-person strong{font-size:13px;line-height:1.4;display:block;color:var(--tp-text,#071c38)}
.tp-results-rank-person small{font-size:11px;color:var(--tp-muted,#607087);line-height:1.6;display:block;margin-top:4px}
.tp-results-rank-value{font-size:14px;font-weight:900;color:var(--tp-text,#071c38);white-space:nowrap;font-variant-numeric:tabular-nums}
.tp-results-empty,.tp-results-loading,.tp-results-error{border:1px dashed var(--tp-line,#dce5ed);border-radius:13px;padding:22px 16px;color:var(--tp-muted,#607087);font-size:13px;line-height:1.65}
.tp-results-error{border-color:var(--tp-danger,#bf3d48)}
@media(max-width:950px){.tp-results-columns{grid-template-columns:1fr}}
@media(max-width:650px){
.tp-results-tabs{width:100%;box-sizing:border-box}
.tp-results-tabs button{min-width:0;flex:1;padding:12px}
.tp-results-view-header{padding:15px}
.tp-results-refresh{width:100%}
.tp-results-metrics{gap:6px}
.tp-results-metrics>div{padding:11px 9px}
.tp-results-metrics small{font-size:10px}
.tp-results-metrics strong{font-size:18px}
.tp-results-matches,.tp-results-rankings{padding:12px}
.tp-result-fixture{padding:12px 10px}
.tp-result-club{font-size:12px}
.tp-result-mark{min-width:68px}
.tp-result-mark>strong{font-size:19px}
.tp-results-ranking-row{grid-template-columns:32px minmax(0,1fr);gap:6px 10px}
.tp-results-rank-icon{grid-row:1/span 2;align-self:start}
.tp-results-rank-value{grid-column:2;grid-row:2;justify-self:start}
}

.tp-result-club{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.tp-result-club:last-child{justify-content:flex-start}
.tp-result-club .tp-shirt{flex:0 0 auto;display:inline-flex;align-items:center}
.tp-result-club .tp-shirt svg{width:30px;height:auto;max-height:36px}
@media(max-width:650px){
 .tp-result-club{flex-direction:column;align-items:flex-end;gap:3px}
 .tp-result-club:last-child{align-items:flex-start}
 .tp-result-club .tp-shirt svg{width:28px;max-height:33px}
}

/* Results v2: theme-isolated, high-contrast design for player and organizer.
   This layer intentionally wins over legacy Stadium's fixed light/dark headings.
   Theme tokens are supplied by theme-system.css (not hard-coded as dark-only). */
html[data-tp-theme] .tp-results-view,
html[data-tp-theme] .tp-results-tabs{
  --tp-results-ink:var(--tp-text,#071c38);
  --tp-results-subtle:var(--tp-muted,#607087);
  --tp-results-surface:var(--tp-panel,#fff);
  --tp-results-soft:var(--tp-panel-2,#f3f7fb);
  --tp-results-line:var(--tp-line,#dce5ed);
  color:var(--tp-results-ink)!important;
  font-family:inherit;
  color-scheme:inherit;
}
html[data-tp-theme] .tp-results-view{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  isolation:isolate;
}
html[data-tp-theme] .tp-results-view *,
html[data-tp-theme] .tp-results-tabs *,
html[data-tp-theme] .tp-results-view *::before,
html[data-tp-theme] .tp-results-view *::after{box-sizing:border-box}
html[data-tp-theme] .tp-results-view-header,
html[data-tp-theme] .tp-results-matches,
html[data-tp-theme] .tp-results-rankings,
html[data-tp-theme] .tp-results-metrics>div{
  background:var(--tp-results-surface)!important;
  border-color:var(--tp-results-line)!important;
  color:var(--tp-results-ink)!important;
  box-shadow:0 4px 16px rgba(7,28,56,.035);
}
html[data-tp-theme] .tp-results-fixtures,
html[data-tp-theme] .tp-results-ranking-list,
html[data-tp-theme] .tp-results-columns,
html[data-tp-theme] .tp-results-matches,
html[data-tp-theme] .tp-results-rankings{min-width:0;max-width:100%}
html[data-tp-theme] .tp-result-fixture,
html[data-tp-theme] .tp-results-ranking-row{
  background:var(--tp-results-soft)!important;
  border-color:var(--tp-results-line)!important;
  color:var(--tp-results-ink)!important;
}
html[data-tp-theme] .tp-results-ranking-row.is-mine{
  background:var(--tp-panel-3,#eaf5ef)!important;
  border-color:var(--tp-green,#09ba5d)!important;
}
html[data-tp-theme] .tp-results-view :is(h2,h3),
html[data-tp-theme] .tp-results-view :is(.tp-results-section-title h3,.tp-results-metrics strong,.tp-result-club,.tp-result-club span,.tp-result-mark strong,.tp-result-goals summary,.tp-result-goal-minute,.tp-result-goal-row strong,.tp-results-rank-person strong,.tp-results-rank-value,.tp-results-rank-icon),
html[data-tp-theme] .tp-results-view .tp-result-own strong{
  color:var(--tp-results-ink)!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-tp-theme] .tp-results-view :is(p,small),
html[data-tp-theme] .tp-results-view :is(.tp-results-view-header p,.tp-results-section-title p,.tp-results-metrics small,.tp-result-fixture-top small,.tp-result-mark small,.tp-result-goal-row small,.tp-results-rank-person small,.tp-result-own,.tp-result-state,.tp-results-empty,.tp-results-loading,.tp-result-goals-content .tp-result-muted){
  color:var(--tp-results-subtle)!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-tp-theme] .tp-results-view .tp-kicker{color:var(--tp-green,#09ba5d)!important;opacity:1!important}
html[data-tp-theme] .tp-result-own.is-correct strong{color:var(--tp-green,#09ba5d)!important}
html[data-tp-theme] .tp-result-own.is-incorrect strong{color:var(--tp-danger,#bf3d48)!important}
html[data-tp-theme] .tp-result-state.is-final{color:var(--tp-results-ink)!important}
html[data-tp-theme] .tp-results-tabs{background:var(--tp-results-soft)!important;border-color:var(--tp-results-line)!important}
html[data-tp-theme] .tp-results-tabs button{
  min-height:44px;
  color:var(--tp-results-subtle)!important;
  background:transparent!important;
  border-color:transparent!important;
}
html[data-tp-theme] .tp-results-tabs button.is-active{
  background:var(--tp-results-surface)!important;
  color:var(--tp-results-ink)!important;
  border-color:var(--tp-results-line)!important;
}
html[data-tp-theme] .tp-results-refresh,
html[data-tp-theme] .tp-results-view .tp-results-select,
html[data-tp-theme] .tp-results-error .btn{
  background:var(--tp-results-soft)!important;
  border:1px solid var(--tp-results-line)!important;
  color:var(--tp-results-ink)!important;
  opacity:1!important;
}
html[data-tp-theme] .tp-results-refresh{padding:10px 16px;border-radius:12px;font-weight:800}
html[data-tp-theme] .tp-results-select{min-height:44px}
html[data-tp-theme] .tp-results-view .tp-results-rank-icon{background:var(--tp-results-surface)!important}
html[data-tp-theme] .tp-results-view .tp-result-own.is-incorrect,
html[data-tp-theme] .tp-results-view .tp-result-own.is-correct{line-height:1.55}
html[data-tp-theme] .tp-results-view .tp-result-own strong{display:inline}
html[data-tp-theme] .tp-results-view .tp-results-ranking-row{gap:10px;min-width:0}
html[data-tp-theme] .tp-results-view .tp-results-rank-person,
html[data-tp-theme] .tp-results-view .tp-result-club span{min-width:0;overflow-wrap:anywhere}
html[data-tp-theme] .tp-results-view .tp-result-club{line-height:1.35}
html[data-tp-theme] .tp-results-view .tp-results-rank-value{font-variant-numeric:tabular-nums}
html[data-tp-theme] .tp-results-view .tp-result-goals summary{min-height:42px;display:block;line-height:1.6}
html[data-tp-theme] .tp-results-view .tp-result-fixture-top small{line-height:1.4}
/* The legacy organizer tab strip also has a hard-coded dark active color. */
html[data-tp-theme] .tp-pool-admin-v3 .tp-admin-v3-tabs{border-bottom-color:var(--tp-line,#dce5ed)}
html[data-tp-theme] .tp-pool-admin-v3 .tp-admin-v3-tab{color:var(--tp-muted,#607087)!important}
html[data-tp-theme] .tp-pool-admin-v3 .tp-admin-v3-tab.active{color:var(--tp-text,#071c38)!important;border-color:var(--tp-green,#09ba5d)!important}
html[data-tp-theme] .tp-pool-admin-v3 .tp-admin-v3-tab:focus-visible{outline:3px solid var(--tp-blue,#176fc1);outline-offset:-3px}
@media(max-width:950px){
 html[data-tp-theme] .tp-results-columns{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:650px){
 html[data-tp-theme] .tp-results-panel{min-width:0;width:100%;padding:0}
 html[data-tp-theme] .tp-results-view{gap:12px}
 html[data-tp-theme] .tp-results-tabs{width:100%;margin:0 0 14px}
 html[data-tp-theme] .tp-results-tabs button{font-size:14px;padding:12px 8px}
 html[data-tp-theme] .tp-results-view-header{gap:12px;padding:15px}
 html[data-tp-theme] .tp-results-view-header h2{font-size:24px;line-height:1.22;letter-spacing:-.03em}
 html[data-tp-theme] .tp-results-view-header p{font-size:13px;line-height:1.5}
 html[data-tp-theme] .tp-results-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html[data-tp-theme] .tp-results-metrics>div{padding:13px;gap:7px;min-width:0}
 html[data-tp-theme] .tp-results-metrics>div:last-child{grid-column:1/-1}
 html[data-tp-theme] .tp-results-metrics small{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
 html[data-tp-theme] .tp-results-metrics strong{font-size:21px;line-height:1.2}
 html[data-tp-theme] .tp-results-matches,
 html[data-tp-theme] .tp-results-rankings{padding:13px;gap:12px}
 html[data-tp-theme] .tp-results-section-title h3{font-size:19px}
 html[data-tp-theme] .tp-results-section-title p{font-size:13px}
 html[data-tp-theme] .tp-result-fixture{padding:14px 11px}
 html[data-tp-theme] .tp-result-fixture-top{gap:7px;align-items:flex-start;margin-bottom:12px}
 html[data-tp-theme] .tp-result-fixture-top small{font-size:12px;min-width:0;overflow-wrap:anywhere}
 html[data-tp-theme] .tp-result-state{flex:0 0 auto}
 html[data-tp-theme] .tp-result-fixture-match{grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);gap:6px}
 html[data-tp-theme] .tp-result-club{font-size:13px;gap:5px;min-width:0}
 html[data-tp-theme] .tp-result-club span{font-size:13px;line-height:1.4}
 html[data-tp-theme] .tp-result-mark{min-width:0}
 html[data-tp-theme] .tp-result-mark strong{font-size:20px}
 html[data-tp-theme] .tp-result-mark small{font-size:11px}
 html[data-tp-theme] .tp-result-own{font-size:13px;line-height:1.55}
 html[data-tp-theme] .tp-result-goals summary{font-size:13px;padding-top:11px}
 html[data-tp-theme] .tp-result-goal-row strong{font-size:13px}
 html[data-tp-theme] .tp-result-goal-row small{font-size:12px}
 html[data-tp-theme] .tp-results-ranking-row{grid-template-columns:36px minmax(0,1fr);row-gap:4px;padding:12px}
 html[data-tp-theme] .tp-results-rank-icon{grid-column:1;grid-row:1/span 2}
 html[data-tp-theme] .tp-results-rank-person{grid-column:2;grid-row:1}
 html[data-tp-theme] .tp-results-rank-person strong{font-size:14px}
 html[data-tp-theme] .tp-results-rank-person small{font-size:12px}
 html[data-tp-theme] .tp-results-rank-value{grid-column:2;grid-row:2;font-size:17px;justify-self:start}
}
@media(max-width:360px){
 html[data-tp-theme] .tp-results-view-header{padding:12px}
 html[data-tp-theme] .tp-results-metrics>div{padding:10px}
 html[data-tp-theme] .tp-result-fixture-match{grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr);gap:5px}
 html[data-tp-theme] .tp-result-club,.tp-result-club span{font-size:12px}
 html[data-tp-theme] .tp-result-club .tp-shirt svg{width:25px;height:auto}
 html[data-tp-theme] .tp-result-mark strong{font-size:18px}
}
