/* Shared V3 standings presentation. Scoring and semantic row states stay in EJS. */
.v3-standings.bk-scope[data-v3-layout] { --v3-accent:#ff7934;--v3-soft:#ffd8bc;--v3-bg:#0c0e12;--v3-panel:#1c2029;--v3-muted:#a8b3c4; }
.v3-standings.bk-scope[data-v3-layout] :is(.group-card,.cross-cumulative-section) {
 background:linear-gradient(125deg,color-mix(in srgb,var(--v3-accent) 7%,var(--v3-bg)),var(--v3-bg) 55%) !important;
 border:1px solid color-mix(in srgb,var(--v3-accent) 28%,transparent) !important;border-top:4px solid var(--v3-accent) !important;
 border-radius:3px !important;box-shadow:0 16px 48px #0003 !important;overflow:hidden;padding:18px;
}
.v3-standings.bk-scope[data-v3-layout] :is(.group-card-header,.cross-cumulative-header) {background:none !important;border:0 !important;border-bottom:1px solid color-mix(in srgb,var(--v3-accent) 24%,transparent) !important;padding:0 0 14px !important;margin-bottom:12px;gap:12px;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-title,.cross-cumulative-title) {font-family:Arial,system-ui,sans-serif !important;font-size:clamp(18px,2vw,26px) !important;font-style:italic;font-weight:900 !important;letter-spacing:.04em !important;text-transform:uppercase;color:var(--v3-soft) !important;text-shadow:none !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table-wrapper,.cross-cumulative-table-wrap) {overflow-x:auto !important;border:0 !important;border-radius:0 !important;background:none !important;padding:0 !important;max-width:100%;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) {width:100% !important;min-width:0 !important;border-collapse:separate !important;border-spacing:0 6px !important;table-layout:fixed !important;border:0 !important;background:none !important;font-family:Arial,system-ui,sans-serif !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) :is(th,td) {box-shadow:none !important;border:0 !important;border-radius:0 !important;transform:none !important;clip-path:none !important;vertical-align:middle !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) th {background:var(--v3-accent) !important;color:var(--v3-bg) !important;font-size:11px !important;font-weight:900 !important;line-height:1.3 !important;letter-spacing:.06em !important;text-transform:uppercase;padding:12px 8px !important;text-align:center !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) td {background:var(--v3-panel) !important;color:#f1f5fb !important;padding:12px 8px !important;height:64px;font-size:14px !important;line-height:1.3 !important;font-weight:700 !important;text-align:center !important;font-variant-numeric:tabular-nums;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) tr:nth-child(even) td {background:color-mix(in srgb,var(--v3-panel) 45%,var(--v3-bg)) !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) tbody tr:hover td {background:color-mix(in srgb,var(--v3-accent) 12%,var(--v3-panel)) !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) :is(th:first-child,td:first-child) {width:48px !important;min-width:0 !important;border-left:3px solid color-mix(in srgb,var(--v3-muted) 40%,transparent) !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) tbody tr:nth-child(-n+3) td:first-child {border-left-color:var(--v3-accent) !important;}
.v3-standings.bk-scope[data-v3-layout] .group-table:not(.group-table--pr) :is(th:nth-child(2),td:nth-child(2)) {width:40px !important;}
.v3-standings.bk-scope[data-v3-layout] .group-table:not(.group-table--pr) :is(th:nth-last-child(-n+3),td:nth-last-child(-n+3)):not([colspan]) {width:72px !important;}
.v3-standings.bk-scope[data-v3-layout] .cross-cumulative-table :is(.col-num) {width:68px !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.rank-badge) {display:inline-flex !important;align-items:center;justify-content:center;width:30px !important;height:32px !important;min-width:0 !important;min-height:0 !important;padding:0 !important;background:none !important;border:0 !important;border-radius:0 !important;color:var(--v3-accent) !important;font:italic 900 22px/1 Arial,sans-serif !important;box-shadow:none !important;clip-path:none !important;}
.v3-standings.bk-scope[data-v3-layout] .rank-badge::before,.v3-standings.bk-scope[data-v3-layout] .rank-badge::after {display:none !important;content:none !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.team-cell,.cross-cum-team) {display:flex !important;align-items:center !important;gap:10px !important;min-width:0;overflow:visible !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.team-avatar,.cross-cum-logo) {width:36px !important;height:36px !important;min-width:36px !important;max-width:36px !important;max-height:36px !important;object-fit:contain !important;border-radius:2px !important;background:none !important;border:0 !important;box-shadow:none !important;clip-path:none !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.team-flag,.cross-cum-flag) {width:22px !important;height:14px !important;min-width:22px !important;object-fit:cover;border-radius:1px !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.team-name,.team-name-link,.cross-cum-name) {font:italic 900 15px/1.25 Arial,system-ui,sans-serif !important;letter-spacing:.025em !important;text-transform:uppercase !important;color:#f1f5fb !important;white-space:normal !important;overflow-wrap:anywhere !important;min-width:0 !important;text-align:left !important;text-decoration:none;}
.v3-standings.bk-scope[data-v3-layout] a.team-name-link:hover {color:var(--v3-soft) !important;text-decoration:underline;}
.v3-standings.bk-scope[data-v3-layout] .group-table td:last-child:not([colspan]),.v3-standings.bk-scope[data-v3-layout] .cross-cumulative-table td:last-child {background:color-mix(in srgb,var(--v3-accent) 15%,var(--v3-panel)) !important;color:var(--v3-accent) !important;font:italic 900 23px/1.2 Arial,sans-serif !important;}
.v3-standings.bk-scope[data-v3-layout] .cross-cumulative-table td.col-num strong {background:none !important;border:0 !important;clip-path:none !important;padding:0 !important;color:inherit !important;-webkit-text-fill-color:currentColor !important;font:inherit !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) .qualified-row td:first-child {border-left-color:#62e6a3 !important;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) td.qualified-points {background:#12382c !important;color:#90f4bd !important;font-size:11px !important;letter-spacing:.03em;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) :is(.redzone-row,.disqualified-row) td:first-child {border-left-color:#ff5c76 !important;}
.v3-standings.bk-scope[data-v3-layout] .disqualified-stats-cell {color:#ff8fa1 !important;font-size:11px !important;letter-spacing:.06em;}
.v3-standings.bk-scope[data-v3-layout] .withdrawn-row :is(.team-name,.team-name-link,.cross-cum-name) {color:#9ea9ba !important;text-decoration:line-through;}
.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) :is(.pos-delta,.pos-delta span) {background:none !important;}
.v3-standings.bk-scope[data-v3-surface="split"] :is(.group-table,.cross-cumulative-table) {border-spacing:0 9px !important;}
.v3-standings.bk-scope[data-v3-surface="split"] :is(.group-table,.cross-cumulative-table) .rank-badge {background:var(--v3-accent) !important;color:var(--v3-bg) !important;clip-path:polygon(15% 0,100% 0,85% 100%,0 100%) !important;}
.v3-standings.bk-scope[data-v3-surface="grid"] :is(.group-table,.cross-cumulative-table) {border-spacing:1px 1px !important;}
.v3-standings.bk-scope[data-v3-surface="grid"] :is(.group-card,.cross-cumulative-section) {background-image:linear-gradient(90deg,color-mix(in srgb,var(--v3-accent) 6%,transparent) 1px,transparent 1px),linear-gradient(color-mix(in srgb,var(--v3-accent) 6%,transparent) 1px,transparent 1px) !important;background-size:28px 28px !important;}
.v3-standings.bk-scope[data-v3-surface="podium"] :is(.group-table,.cross-cumulative-table) tbody tr:nth-child(-n+3) td {background:color-mix(in srgb,var(--v3-accent) 12%,var(--v3-panel)) !important;}
.v3-standings.bk-scope[data-v3-layout] .group-table--pr {min-width:660px !important;}
.v3-standings.bk-scope[data-v3-layout] .group-table--pr :is(th,td) {width:70px !important;}
.v3-standings.bk-scope[data-v3-layout] .group-table--pr :is(th:nth-child(3),td:nth-child(3)) {width:230px !important;}
@media(max-width:720px){
 .v3-standings.bk-scope[data-v3-layout] :is(.group-card,.cross-cumulative-section){padding:10px;}
 .v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) td {height:50px !important;padding:8px 4px !important;font-size:12px !important;}
 .v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) th {padding:9px 3px !important;font-size:8px !important;letter-spacing:.025em !important;}
 .v3-standings.bk-scope[data-v3-layout] .group-table:not(.group-table--pr) :is(th:nth-child(2),td:nth-child(2)){display:none !important;}
 .v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) :is(th:first-child,td:first-child){width:28px !important;}
 .v3-standings.bk-scope[data-v3-layout] .group-table:not(.group-table--pr) :is(th:nth-last-child(-n+3),td:nth-last-child(-n+3)):not([colspan]){width:40px !important;}
 .v3-standings.bk-scope[data-v3-layout] .cross-cumulative-table .col-num{width:38px !important;display:table-cell !important;}
 .v3-standings.bk-scope[data-v3-layout] :is(.team-cell,.cross-cum-team){gap:5px !important;flex-wrap:wrap !important;}
 .v3-standings.bk-scope[data-v3-layout] :is(.team-avatar,.cross-cum-logo){width:24px !important;height:24px !important;min-width:24px !important;max-width:24px !important;max-height:24px !important;}
 .v3-standings.bk-scope[data-v3-layout] :is(.team-name,.team-name-link,.cross-cum-name){font-size:11px !important;flex:1 1 65px;}
 .v3-standings.bk-scope[data-v3-layout] :is(.team-flag,.cross-cum-flag){width:18px !important;height:12px !important;min-width:18px !important;}
 .v3-standings.bk-scope[data-v3-layout] .rank-badge{width:22px !important;height:26px !important;font-size:16px !important;}
 .v3-standings.bk-scope[data-v3-layout] .group-table td:last-child:not([colspan]),.v3-standings.bk-scope[data-v3-layout] .cross-cumulative-table td:last-child{font-size:17px !important;}
 .v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) td.qualified-points{font-size:7px !important;overflow-wrap:anywhere;}
}
/* Status cells must beat the numeric total-column emphasis. */
.v3-standings.bk-scope[data-v3-layout] .group-table tbody tr.qualified-row td.qualified-points:last-child,
.v3-standings.bk-scope[data-v3-layout] .cross-cumulative-table tbody tr.qualified-row td.qualified-points:last-child {background:#12382c !important;color:#90f4bd !important;font:900 10px/1.2 Arial,sans-serif !important;letter-spacing:0 !important;white-space:normal !important;overflow-wrap:normal !important;}
@media(max-width:720px){
 .v3-standings.bk-scope[data-v3-layout] .group-table:not(.group-table--pr) thead th:nth-last-child(-n+3){font-size:7px !important;white-space:normal !important;overflow-wrap:normal !important;letter-spacing:0 !important;}
 .v3-standings.bk-scope[data-v3-layout] .group-table tbody tr.qualified-row td.qualified-points:last-child,
 .v3-standings.bk-scope[data-v3-layout] .cross-cumulative-table tbody tr.qualified-row td.qualified-points:last-child{font-size:6px !important;}
}
#v3-builder :is(select,input,button){font:inherit;font-size:13px;background:#202b3e;color:#f1f5fb;border:1px solid #45546e;border-radius:5px;padding:9px;max-width:100%;}
#v3-builder button{cursor:pointer;font-weight:800;}
#v3-builder :is(select,input,button):focus-visible{outline:2px solid #ff7934;outline-offset:2px;}

/* Team nationality remains visible even when a historical Studio kit hid flags. */
body.v3-standings.bk-scope[data-v3-layout] :is(.group-table,.cross-cumulative-table) :is(.team-flag,.cross-cum-flag){display:inline-block !important;visibility:visible !important;opacity:1 !important;flex:0 0 auto !important;}

/* Cross Groups keeps every metric in the same order at all viewport sizes. */
body .cross-cumulative-table-wrap {overflow-x:auto !important;}
body .cross-cumulative-table {min-width:680px !important;}
body .cross-cumulative-table :is(th,td).col-num {display:table-cell !important;}
body .cross-cumulative-table .cross-qualified-label {display:block;font:700 9px/1.3 Arial,sans-serif;letter-spacing:0;margin-top:3px;}

/* Keep movement beside the rank visible on desktop and mobile without adding
   another metric column or inheriting legacy transparent medal text. */
body .cross-cumulative-table .cross-rank-cell {display:flex;flex-direction:column;align-items:center;gap:2px;}
body .cross-cumulative-table .cross-rank-cell .pos-delta {display:inline-block !important;min-width:0;padding:1px 3px;font:800 11px/1.2 Arial,sans-serif !important;letter-spacing:0;-webkit-text-fill-color:currentColor !important;}
body .cross-cumulative-table .cross-rank-cell .delta-up {color:#22c55e !important;}
body .cross-cumulative-table .cross-rank-cell .delta-down {color:#ff5c76 !important;}
body .cross-cumulative-table .cross-rank-cell .delta-flat {color:#9ca3af !important;}
