/* Public history and ranking share one athlete identity, with no duplicate photos. */
.results-page{max-width:1180px;margin:48px auto 40px;color:#092338;--result-border:#dce5ee;--result-muted:#546b80}
.results-page .kp-page-header{margin-bottom:28px;gap:20px}.results-page .kp-page-header h1{font-size:36px;line-height:1.15;letter-spacing:-1px;margin:0 0 10px}.results-page .kp-page-header p{font-size:16px;color:var(--result-muted)}
.results-page .kp-page-actions .btn{font-size:14px;color:#1677ff;background:transparent;white-space:nowrap}
.result-heat,.result-ranking{background:#fff;border:1px solid var(--result-border);border-radius:14px;margin-bottom:24px;overflow:hidden}
.result-heat-header{padding:22px 24px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid var(--result-border)}
.result-heat-header h2{margin:0 0 5px;font-size:20px;font-weight:700;line-height:1.35;letter-spacing:-.3px;color:#092338}.result-heat-header p{margin:0;font-size:14px;line-height:1.5;color:var(--result-muted)}.result-heat-header time{font-size:13px;color:var(--result-muted);white-space:nowrap;padding-top:4px}.result-heat-header .result-color-help{font-size:12px;margin-top:6px}
.results-page .table{width:100%;table-layout:fixed;margin:0;color:#092338}.results-page .table th{background:#f7f9fc;color:var(--result-muted);font-size:12px;text-transform:none;letter-spacing:0;font-weight:600;padding:13px 10px;white-space:normal}.results-page .table td{color:#092338;padding:18px 10px;vertical-align:middle;border-color:var(--result-border)}.results-page .table tbody tr:last-child td{border-bottom:0}
.results-page .result-rank-col{width:52px}.results-page .result-athlete-col{width:270px}.results-page .result-total-col{width:102px;text-align:right;padding-right:24px}.results-page .result-rank{font-size:22px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}.results-page .result-total{text-align:right;padding-right:24px;font-size:28px;letter-spacing:-.7px;font-variant-numeric:tabular-nums;white-space:nowrap}.result-mobile-label{display:none}
.result-athlete{display:flex;align-items:center;gap:16px;min-width:0;--shirt:#697889;--shirt-bg:#f0f3f6}.result-color--vermelho{--shirt:#d62d42;--shirt-bg:#fff1f3}.result-color--azul{--shirt:#1769e0;--shirt-bg:#edf4ff}
.result-color--verde{--shirt:#16803d;--shirt-bg:#edf4ff}.result-color--amarelo{--shirt:#ba8500;--shirt-bg:#fff9e6}.result-color--preto{--shirt:#202833;--shirt-bg:#edf0f3}
.result-color--branco{--shirt:#fff;--shirt-bg:#f5f6f7}.result-color--branco .result-color-dot{border-color:#8795a5}
.result-portrait{width:76px;height:88px;flex:0 0 76px;border-radius:9px;background:var(--shirt-bg);overflow:hidden;align-self:center}.result-portrait img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}.result-identity{min-width:0}.result-name{display:block;font-size:16px;line-height:1.4;font-weight:700;color:#092338;overflow-wrap:anywhere}.result-description{display:block;font-size:12px;color:var(--result-muted);line-height:1.5;margin-top:5px}.result-color-dot{width:9px;height:9px;display:inline-block;border-radius:50%;background:var(--shirt);margin-right:5px;border:1px solid #0001}.result-trick-link{display:inline-flex;align-items:center;min-height:30px;font-size:13px;color:#0967df}
.results-page a:focus-visible{outline:3px solid #1677ff;outline-offset:3px;border-radius:3px}
.result-legend{margin:0;border-top:1px solid var(--result-border);padding:13px 24px;font-size:12px;color:var(--result-muted)}
.results-page .history-average{font-size:20px;line-height:1.3;color:#092338}.results-page .history-average.dropped{color:#64748b}.results-page .result-maneuver small{font-size:12px;line-height:1.45;color:var(--result-muted)!important;display:block;margin-top:5px;overflow-wrap:anywhere}.results-page .history-score-status{font-size:11px;font-weight:600;padding:2px 4px;max-width:100%;border:0}.results-page .result-maneuver-content{min-width:0}
.results-page .result-ranking-table .result-rank-col{width:84px}.results-page .result-ranking-table .result-total-col{width:165px}.results-page .result-ranking-table .result-person{padding-top:12px;padding-bottom:12px}.results-page .result-ranking-table .result-name{font-size:17px}.results-page .result-ranking-table .result-total{font-size:28px}.results-page .result-ranking-table .result-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px}.result-ranking-table .result-name{grid-column:1}.result-ranking-table .result-description{grid-column:1}.result-ranking-table .result-trick-link{grid-column:2;grid-row:1/3;align-self:center}
@media(max-width:1100px){.results-page .result-athlete-col{width:225px}.results-page .result-history-table .result-athlete{gap:10px}.results-page .result-history-table .result-portrait{width:58px;height:76px;flex-basis:58px}.results-page .result-history-table .result-name{font-size:14px}.results-page .result-history-table .result-total-col{width:88px}.results-page .result-history-table .result-total{font-size:24px;padding-right:16px}.result-heat-header{padding:18px}.results-page .result-rank-col{width:40px}}
@media(max-width:800px){.results-page{margin-top:28px}.results-page .kp-page-header h1{font-size:28px;letter-spacing:-.6px}.result-heat-header{flex-direction:column;gap:5px;padding:16px}.result-heat-header h2{font-size:17px}.result-heat-header p{font-size:13px}.result-heat-header time{font-size:12px;padding-top:0}.result-heat-header .kp-result-count{position:static}.results-page .kp-page-header{flex-wrap:wrap;gap:8px;margin-bottom:20px}.results-page .kp-page-actions .btn{padding-left:0;min-height:36px}.results-page .kp-page-header p{font-size:14px}
.result-history-table,.result-history-table tbody{display:block}.result-history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.results-page .result-history-table tr{display:grid;grid-template-columns:24px minmax(0,1fr) 74px;gap:0 8px;padding:14px 12px;border-bottom:1px solid var(--result-border)}.results-page .result-history-table tbody tr:last-child{border:0}.results-page .result-history-table td{display:block;border:0;padding:0}.results-page .result-history-table .result-rank{grid-column:1;grid-row:1;align-self:center;font-size:17px}.results-page .result-history-table .result-person{grid-column:2;grid-row:1;padding-bottom:12px}.results-page .result-history-table .result-total{grid-column:3;grid-row:1;align-self:center;font-size:24px;padding:0 0 12px}.results-page .result-history-table .result-portrait{width:56px;height:68px;flex-basis:56px}.result-mobile-label{display:block;font-size:11px;font-weight:400;color:var(--result-muted);letter-spacing:0;margin-bottom:3px}.results-page .result-history-table .result-maneuver{grid-column:1/-1;display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;padding:7px 0;border-top:1px solid #edf1f6}.result-maneuver::before{content:attr(data-label);font-size:12px;color:var(--result-muted);line-height:22px}.result-maneuver-content{display:grid;grid-template-columns:45px minmax(0,1fr);column-gap:9px;align-items:start}.results-page .history-average{font-size:16px;grid-column:1;grid-row:1}.results-page .result-maneuver small{margin:0;font-size:12px}.result-maneuver-content>div{grid-column:2;grid-row:1}.results-page .history-score-status{grid-column:2;justify-self:start;margin-top:4px}.result-legend{padding:12px 16px}.result-heat,.result-ranking{margin-bottom:20px}
.results-page .result-ranking-table .result-rank-col{width:52px}.results-page .result-ranking-table .result-total-col{width:88px;padding-right:12px;font-size:11px}.results-page .result-ranking-table th{padding:12px 5px}.results-page .result-ranking-table td{padding:12px 5px}.results-page .result-ranking-table .result-rank{font-size:18px}.results-page .result-ranking-table .result-total{font-size:24px;padding-right:12px}.result-ranking-table .result-athlete{gap:10px}.result-ranking-table .result-portrait{width:56px;height:70px;flex-basis:56px}.results-page .result-ranking-table .result-name{font-size:14px}.results-page .result-ranking-table .result-identity{display:block}.result-ranking-table .result-trick-link{min-height:32px}.result-description{font-size:11px}.results-page .result-ranking .result-heat-header{gap:10px}
}
@media(max-width:360px){.results-page .kp-page-header h1{font-size:26px}.results-page .result-history-table tr{grid-template-columns:20px minmax(0,1fr) 62px;gap:0 5px;padding:12px 9px}.results-page .result-history-table .result-portrait{width:42px;height:60px;flex-basis:42px}.results-page .result-history-table .result-athlete{gap:7px}.results-page .result-history-table .result-name{font-size:13px}.results-page .result-history-table .result-total{font-size:22px}.results-page .result-ranking-table .result-total-col{width:76px}.results-page .result-ranking-table .result-total{font-size:22px}.result-ranking-table .result-portrait{width:42px;height:60px;flex-basis:42px}.result-ranking-table .result-athlete{gap:7px}.results-page .result-ranking-table .result-name{font-size:13px}}

@media(max-width:800px){.results-page .kp-page-actions{justify-content:flex-start}.results-page .kp-page-actions .btn{width:auto;flex:0 0 auto}.results-page .result-ranking-table th:first-child{font-size:11px}}

.result-athlete--default .result-portrait{background:transparent}

/* The row click handler opens the card; keep the native name link within its own bounds.
   Safari does not reliably contain absolute link overlays inside table rows. */
.result-ranking-table tr[data-trick-log-row]{cursor:pointer}
.result-ranking-table tr[data-trick-log-row]:hover{background:#f0f6ff}
.result-ranking-table tr[data-trick-log-row]:focus-within{outline:3px solid #1677ff;outline-offset:-3px;background:#f0f6ff}
.result-row-link:hover{text-decoration:none;color:#0967df}
#rankingTrickLogModal .modal-dialog{width:calc(100% - 32px);max-width:1080px;margin:16px auto;height:calc(100% - 32px)}
#rankingTrickLogModal .modal-content{max-height:100%;border-radius:14px;overflow:hidden}
#rankingTrickLogModal .modal-header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;flex-shrink:0}
#rankingTrickLogModal .modal-title{flex:1;min-width:0;margin:0;font-size:18px;overflow-wrap:anywhere}
#rankingTrickLogModal .btn-close{flex-shrink:0;min-width:44px;min-height:44px;padding:0;margin:-6px -8px -6px 12px}
#rankingTrickLogModal .modal-body{padding:16px 24px 24px;min-width:0;overflow-y:auto;overscroll-behavior:contain;background:#f5f7fa}
#rankingTrickLogModal .tl-page{margin:0 auto!important;max-width:1024px}
#rankingTrickLogModal .kp-page-header{margin-bottom:14px;gap:12px}
#rankingTrickLogModal .kp-page-header h1{display:none}
#rankingTrickLogModal .kp-page-header p{margin:0}
#rankingTrickLogModal [data-trick-status]{padding:20px 0;margin:0;color:#35516a}
#rankingTrickLogModal [data-trick-recovery]{padding-bottom:16px}
#rankingTrickLogModal [data-trick-recovery] .btn{margin:0 6px 8px 0}
@media(max-width:650px){
 #rankingTrickLogModal .modal-dialog{width:100%;max-width:none;margin:0;height:100%;height:100dvh}
 #rankingTrickLogModal .modal-content{height:100%;border-radius:0}
 #rankingTrickLogModal .modal-header{padding:10px 16px}
 #rankingTrickLogModal .modal-body{padding:12px 8px max(16px,env(safe-area-inset-bottom))}
 #rankingTrickLogModal .kp-page-header{flex-wrap:wrap}
}

/* The ranking selector replaces the redundant back-to-scoreboard action. */
.result-metric-select{width:390px;max-width:100%;flex-shrink:0}.result-metric-select label{display:block;font-size:12px;font-weight:600;color:#647b91;margin-bottom:6px}.result-metric-select .form-select{width:100%;min-height:46px;border:1px solid #cbd9e9;border-radius:10px;background-color:#fff;color:#12344f;font-size:14px;padding:10px 36px 10px 14px}.result-metric-select .form-select:focus{border-color:#1677ff;box-shadow:0 0 0 3px #1677ff22}
.result-metric-description{max-width:900px;font-size:14px;color:#647b91;line-height:1.6;margin:0 0 24px}
.result-metric-detail{margin:6px 0 0 92px;color:#647b91;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.result-awaiting{padding:24px!important;color:#647b91}
@media(max-width:650px){.result-metric-select{width:100%}.result-metric-select .form-select{font-size:13px}.result-metric-detail{margin-left:0;font-size:11px}.result-ranking-table .result-total-col{width:86px}}
