.filters input[type=number]{max-width:100px}
[hidden]{display:none!important}
.metric-positive{color:#137637!important;font-weight:700}
.metric-negative{color:#b42318!important;font-weight:700}
.metric-zero{color:inherit}
#coverage{margin:16px 0;padding:12px 16px;border:1px solid #a9bfd0;border-radius:10px}
#coverage summary,.alltime-details summary{cursor:pointer;font-weight:600}
#coverageBody{overflow-wrap:anywhere}
#coverageBody li{margin:6px 0}
.alltime-details{text-align:left;min-width:160px;max-width:350px;white-space:normal}
.alltime-details ul{padding-left:20px;margin-bottom:0}
.alltime-pages{display:flex;gap:16px;align-items:center;justify-content:center;margin:18px 0}
.alltime-pages button:disabled{opacity:.45;cursor:default}
.tablewrap table td{white-space:nowrap}
.tablewrap table td:has(.alltime-details){white-space:normal}
.tablewrap table th button{color:inherit}
#scope:empty{display:none}
@media(max-width:760px){.alltime-pages{gap:8px}.alltime-pages button{padding:8px}#coverage{font-size:.9rem}}

/* Fixed column proportions keep headers and values aligned within the viewport. */
main{width:100%;min-width:0}
#alltimeTable{table-layout:fixed;width:100%;font-size:clamp(11px,.93vw,13px)}
#alltimeTable th,#alltimeTable td{padding:9px 5px;vertical-align:middle;line-height:1.3;text-align:center}
#alltimeTable th{white-space:normal;overflow-wrap:anywhere}
#alltimeTable th .history-sort-header{display:block;width:100%;padding:4px 0;background:transparent;border:0;border-radius:0;font-size:inherit;font-weight:700;line-height:1.25;white-space:normal;overflow-wrap:anywhere;text-align:center}
#alltimeTable td[data-col=name],#alltimeTable td[data-col=second_name],#alltimeTable td[data-col=weekend],#alltimeTable td[data-col=season],#alltimeTable td[data-col=details]{white-space:normal;overflow-wrap:anywhere;text-align:left}
#alltimeTable td{font-variant-numeric:tabular-nums}
#alltimeTable th[data-col=rank]{width:4%}
#alltimeTable th[data-col=name]{width:16%}
#alltimeTable th[data-col=country]{width:5%}
#alltimeTable.alltime-table-margins th[data-col=name]{width:14%}
#alltimeTable.alltime-table-margins th[data-col=margin]{width:7%}
#alltimeTable.alltime-table-margins th[data-col=points],#alltimeTable.alltime-table-margins th[data-col=second_points]{width:8%}
#alltimeTable.alltime-table-margins th[data-col=distance]{width:7%}
#alltimeTable.alltime-table-margins th[data-col=second_name]{width:14%}
#alltimeTable.alltime-table-margins th[data-col=season]{width:8%}
#alltimeTable.alltime-table-margins th[data-col=weekend]{width:17%}
#alltimeTable.alltime-table-margins th[data-col=series]{width:8%}
#alltimeTable.alltime-table-style th[data-col=details]{width:18%}
#alltimeTable .alltime-details{min-width:0;max-width:100%}
@media(max-width:1100px){#alltimeTable th,#alltimeTable td{padding:7px 4px}#alltimeTable{font-size:11px}}
@media(max-width:760px){
 .tablewrap.mobile-compact #alltimeTable{table-layout:auto;min-width:0;font-size:12px}
 .tablewrap.mobile-compact #alltimeTable th{width:auto!important}
 .tablewrap.mobile-compact #alltimeTable th[data-col=name]{width:45%!important}
 .tablewrap:not(.mobile-compact) #alltimeTable{min-width:1000px}
}

#alltimeTable .alltime-details ul{max-height:320px;overflow:auto;overscroll-behavior:contain}

/* Natural widths and independent search retained from V3.23. */
#alltimeTable{table-layout:auto;width:max-content;min-width:0!important;max-width:none;margin-inline:auto}
#alltimeTable th{width:auto!important}
#alltimeTable th .history-sort-header{width:auto;max-width:160px;margin-inline:auto}
#alltimeTable td[data-col=name],#alltimeTable td[data-col=second_name]{white-space:nowrap}
.tablewrap{max-width:100%;overflow-x:auto}
#alltimeSearch{display:flex!important;visibility:visible!important}
#alltimeSearch #query{display:block!important;visibility:visible!important}
@media(max-width:760px){.tablewrap.mobile-compact #alltimeTable{width:100%;max-width:100%}.tablewrap.mobile-compact #alltimeTable td[data-col=name]{white-space:normal;overflow-wrap:anywhere}.tablewrap.mobile-compact #alltimeTable th[data-col=name]{width:auto!important}}

/* Weekend dominance: fit the full table to desktop width. */
#alltimeTable.alltime-table-dominance{width:100%!important;max-width:100%;table-layout:fixed!important}
#alltimeTable.alltime-table-dominance td{white-space:normal!important;overflow-wrap:anywhere}
#alltimeTable.alltime-table-dominance th[data-col=name],#alltimeTable.alltime-table-dominance th[data-col=second_name]{width:14%!important}
#alltimeTable.alltime-table-dominance th[data-col=weekend]{width:12%!important}
#alltimeTable.alltime-table-dominance th[data-col=rank],#alltimeTable.alltime-table-dominance th[data-col=country]{width:4%!important}
@media(max-width:760px){.tablewrap:not(.mobile-compact) #alltimeTable.alltime-table-dominance{min-width:1000px!important}.tablewrap.mobile-compact #alltimeTable.alltime-table-dominance{table-layout:auto!important}}

#favoriteControls[hidden],#seasonSortControls[hidden],#alltimeSearch[hidden]{display:none!important}
#favoriteControls input{min-width:280px;max-width:100%}
#favoriteControls button.active{outline:2px solid currentColor}
#alltimeTable.alltime-table-favorites{width:100%!important;max-width:100%;table-layout:fixed!important}
#alltimeTable.alltime-table-favorites th[data-col=hill]{width:16%!important}
#alltimeTable.alltime-table-favorites td{white-space:normal!important;overflow-wrap:anywhere}
@media(max-width:760px){#favoriteControls input{min-width:0;width:100%}.tablewrap:not(.mobile-compact) #alltimeTable.alltime-table-favorites{min-width:1000px!important}.tablewrap.mobile-compact #alltimeTable.alltime-table-favorites{table-layout:auto!important}}
