/* MENU MOBILE */

.hamburger{
  position:absolute;
  right:16px;
  top:16px;
  z-index:50;
  display:block;
  font-size:28px;
  background:none;
  border:none;
  color:#fff;
}

#mobileMenu{
  position:absolute;
  top:70px;
  left:0;
  right:0;
  background: rgba(11,60,109,0.85);
  display:none;
  flex-direction:column;
}

#mobileMenu a{
  padding:14px 20px;
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.15);
}

#mobileMenu.open{
  display:flex;
}
/* LOGO MOBILE */
.logo{
  height:44px;
}
.hero-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
header nav{
  display:none;
}
main{
  margin:20px auto 30px;
}
/* TABELA MOBILE */

table td{
  white-space:nowrap;
  padding:4px 0;
}

table tbody tr{
  display:grid;
  grid-template-columns:90px 1fr;
  grid-template-areas:
    "date name"
    "place cat";
  gap:6px 12px;
  padding:10px 0;
}

table tbody tr{
  display:grid;
  grid-template-columns:90px 1fr;
  grid-template-areas:
    "date name"
    "place cat";
  gap:6px 12px;
  padding:10px 0;
}

table td:nth-child(1){
  grid-area:date;
  font-size:13px;
  color:#6b7280;
}

table td:nth-child(2){
  grid-area:name;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

table td:nth-child(3){
  grid-area:place;
  font-size:13px;
}

table td:nth-child(4){
  grid-area:cat;
  font-size:13px;
  opacity:.85;
}

table{
  width:100%;
  font-size:14px;
}

th, td{
  padding:10px 6px;
}
table thead{
  display:none;
}
table td:nth-child(1){ grid-area:date; }
table td:nth-child(2){ grid-area:name; }
table td:nth-child(3){ grid-area:place; }
table td:nth-child(4){ grid-area:cat; }


/*zawody.php*/
/* WYKRES MOBILE */

.section canvas{
  max-width:100%;
  height:auto !important;
}

.section{
  overflow:hidden;
  backdrop-filter: blur(2px);

}

/* STATYSTYKI MOBILE */

.section canvas{
  width:140px !important;
  height:140px !important;
  max-width:100%;
}

/* kontener wykresów */

.section:has(canvas){
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  text-align:center;
}
/* STATYSTYKI MOBILE */

.stats{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}

.stats canvas{
  max-width:220px;
}
.section-zawody-header .zawody-tytul{
  font-size:26px;
  line-height:1.2;
}
.section-zawody-header{
  padding:20px 12px;
}
.section button{
  margin-top:10px;
  padding:8px 16px;
  font-size:14px;
}
.top-sinclair div{
  padding:6px 0;
  border-bottom:1px solid #ddd;
}
/* TOP SINCLAIR MOBILE */

.top-sinclair{
  background: rgba(255,255,255,0.85);
  border-radius:8px;
  padding:12px 14px;
  margin-bottom:20px;
}

.top-sinclair div{
  padding:6px 0;
  border-bottom:1px solid #ddd;
  font-size:14px;
}

.top-sinclair div:last-child{
  border-bottom:none;
}

/* SINCLAIR SEKCJA */

.top-sinclair{
 
  margin-bottom:18px;
}

.section h3{
  margin-top:20px;
  position:relative;
  z-index:5;
  margin-bottom:8px;

}
.section-stats{
  margin-bottom:20px;
}
/* WYKRESY MOBILE */

.section-stats > div{
  display:grid !important;
  grid-template-columns:repeat(2,1fr) !important;
  gap:12px;
}

.section-stats canvas{
  width:100% !important;
  height:110px !important;
  
}
//* WYNIKI KATEGORII – MOBILE 1 LINIA */

.results-table thead{
  display:none;
}

.results-table tr{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  padding:8px 10px;
  background:#f4f6f8;
  border-radius:8px;
}

.results-table td{
  display:none;
}

/* nazwisko */
.results-table td.col-name{
  display:block;
  flex:1;
  font-weight:600;
}

/* dwubój */
.results-table td:nth-last-child(2){
  display:block;
  width:55px;
  text-align:right;
  font-weight:700;
}

/* sinclair */
.results-table td:nth-last-child(1){
  display:block;
  width:70px;
  text-align:right;
}
