/* Wersja lokalna: obraz skoczka jako tło OTOCZENIA tabel, dane pozostają czytelne. */
:root { --ski-bg-opacity:.68; }
.tablewrap {position:relative; isolation:isolate; border-radius:18px; padding:clamp(16px,3vw,34px) 12px !important; background:linear-gradient(125deg,#071d39 0%,#103f70 52%,#17659a 100%) !important; box-shadow:0 12px 30px rgba(8,35,67,.20); border:1px solid rgba(76,144,196,.48);}
.tablewrap::before{content:'';position:absolute;inset:0;background:rgba(8,33,68,calc(1 - var(--ski-bg-opacity)));pointer-events:none;z-index:-1;border-radius:inherit}
.tablewrap > table, .tablewrap table.results-table {position:relative; border-radius:9px; overflow:hidden; box-shadow:0 6px 22px rgba(0,16,38,.32);}
.tablewrap th{background-color:rgba(12,47,86,.96) !important;color:#fff !important;}
.tablewrap td{background-color:rgba(245,249,255,.95);}
.tablewrap tr:nth-child(even) td{background-color:rgba(228,238,250,.95);}
/* Nie nadpisuj kolorów podium i wyróżnień wierszy. */
.tablewrap .podium-1 td,.tablewrap .podium-2 td,.tablewrap .podium-3 td{background-color:revert-layer;}
@media(max-width:760px){.tablewrap{padding:14px 8px!important;background-position:65% center!important}}
@media print{.ski-bg-controls{display:none!important}.tablewrap{background:white!important;box-shadow:none!important;border:0!important}}

/* Lokalny test: tabela 10-kolumnowa 'Średnia miejsc w seriach' mieści się na desktopie. */
.tablewrap.season-average-places { padding:14px 8px !important; }
.tablewrap.season-average-places > table {
  width:100% !important; max-width:100% !important; min-width:0 !important;
  table-layout:fixed !important; border-collapse:collapse;
}
.tablewrap.season-average-places th,
.tablewrap.season-average-places td {
  white-space:normal !important; overflow-wrap:normal; word-break:normal;
  padding:7px 4px !important; font-size:clamp(10px,.91vw,13px) !important;
  line-height:1.24; text-align:center;
}
.tablewrap.season-average-places th .history-sort-header {
  white-space:normal !important; line-height:1.18; font-size:inherit; padding:2px 0;
}
.tablewrap.season-average-places th:nth-child(1),
.tablewrap.season-average-places td:nth-child(1) {width:5%}
.tablewrap.season-average-places th:nth-child(2),
.tablewrap.season-average-places td:nth-child(2) {width:17%;text-align:left}
.tablewrap.season-average-places th:nth-child(3),
.tablewrap.season-average-places td:nth-child(3) {width:6%}
.tablewrap.season-average-places th:nth-child(4),
.tablewrap.season-average-places td:nth-child(4),
.tablewrap.season-average-places th:nth-child(6),
.tablewrap.season-average-places td:nth-child(6),
.tablewrap.season-average-places th:nth-child(8),
.tablewrap.season-average-places td:nth-child(8) {width:9%}
.tablewrap.season-average-places th:nth-child(5),
.tablewrap.season-average-places td:nth-child(5),
.tablewrap.season-average-places th:nth-child(7),
.tablewrap.season-average-places td:nth-child(7),
.tablewrap.season-average-places th:nth-child(9),
.tablewrap.season-average-places td:nth-child(9) {width:11%}
.tablewrap.season-average-places th:nth-child(10),
.tablewrap.season-average-places td:nth-child(10) {width:12%}
@media(max-width:700px){
 .tablewrap.season-average-places > table {min-width:760px !important;width:760px !important;}
 .tablewrap.season-average-places th,.tablewrap.season-average-places td{font-size:11px!important;}
}
@media print{.tablewrap.season-average-places > table{width:100%!important;min-width:0!important}}

/* v7: czytelne nagłówki konkursowe na granatowym tle.
   Poprzedni styl nadawał ciemny tekst przy granatowym tle. */
.tablewrap .results-table.view-contests thead th,
.tablewrap .results-table.view-contests thead th[class*="_rank"],
.tablewrap .results-table.view-contests thead th[class*="_points"],
.tablewrap .results-table.view-contests thead th.col-total {
  background:#103b68 !important; color:#fff !important;
  overflow:visible !important; text-overflow:clip !important;
  height:auto !important; vertical-align:middle;
}
.tablewrap .results-table.view-contests thead th .thsort,
.tablewrap .results-table.view-contests thead th[class*="_rank"] .thsort,
.tablewrap .results-table.view-contests thead th[class*="_points"] .thsort,
.tablewrap .results-table.view-contests thead th.col-total .thsort {
  display:block; color:#fff !important; white-space:normal !important;
  overflow:visible !important; overflow-wrap:normal !important;
  word-break:normal !important; hyphens:auto;
  font-size:11px !important; line-height:1.25 !important;
  min-height:42px; width:100%;
}
.tablewrap .results-table.view-contests th[class*="_rank"],
.tablewrap .results-table.view-contests th[class*="_points"] { min-width:75px !important; }
.tablewrap .results-table.view-contests th.col-total {min-width:90px !important;}
