/* ==========================================================================
   Tablica wyników punktowych — styl spójny z tablicą boccia
   ========================================================================== */
:root {
  --nimp-zloty: #b7891f;
  --nimp-linia: #d6d6d6;
  --nimp-tlo: #f4f4f4;
}

body.nimp-solo {
  margin: 0;
  font-family: "Merriweather Sans", Calibri, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #1d2327;
  background: #fff;
}

.nimp-tablica { width: 1550px; max-width: 94.375%; margin: 0 auto; }

.nimp-solo__pasek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
  border-bottom: 3px solid var(--nimp-zloty);
}
.nimp-solo__marka img { width: min(300px, 60vw); display: block; }
.nimp-solo__tytul { text-align: right; }
.nimp-solo__tytul strong { display: block; font-size: 1.25rem; }
.nimp-solo__tytul span { color: #666; font-size: 0.95rem; }

.nimp-pas { display: flex; align-items: center; gap: 8px; color: #555; font-size: 0.95rem; }
.nimp-pas__kropka {
  width: 11px; height: 11px; border-radius: 50%;
  background: #1e6b43;
  animation: nimp-migacz 1.6s ease-in-out infinite;
}
@keyframes nimp-migacz { 50% { opacity: 0.25; } }

.nimp-konkurencja { margin: 1.6rem 0 2.4rem; }
.nimp-konkurencja h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
  padding-left: 0.8rem;
  border-left: 6px solid var(--nimp-zloty);
}

.nimp-tab {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--nimp-linia);
}
.nimp-tab th {
  background: var(--nimp-tlo);
  padding: 0.55rem 0.7rem;
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--nimp-linia);
}
.nimp-tab td { padding: 0.55rem 0.7rem; border-top: 1px solid var(--nimp-linia); }
.nimp-tab__mce { width: 4.5rem; font-weight: 800; }
.nimp-tab__kto { font-weight: 700; }
.nimp-tab__kat { color: #666; }
.nimp-tab__s { text-align: right; width: 5.5rem; font-variant-numeric: tabular-nums; }
.nimp-tab__suma {
  text-align: right; width: 6.5rem;
  font-weight: 800; font-size: 1.1em;
  font-variant-numeric: tabular-nums;
  color: #8a6511;
}

/* podium */
.nimp-tab__medal--1 td { background: #faf3da; }
.nimp-tab__medal--2 td { background: #f2f2f2; }
.nimp-tab__medal--3 td { background: #f7ede2; }
.nimp-tab__medal--1 .nimp-tab__mce::after { content: " 🥇"; }
.nimp-tab__medal--2 .nimp-tab__mce::after { content: " 🥈"; }
.nimp-tab__medal--3 .nimp-tab__mce::after { content: " 🥉"; }

/* kategorie */
.nimp-kat { margin-top: 0.7rem; border: 1px solid var(--nimp-linia); border-radius: 8px; background: #fff; }
.nimp-kat > summary {
  cursor: pointer;
  padding: 0.7rem 1rem;
  font-weight: 800;
  list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.nimp-kat > summary::-webkit-details-marker { display: none; }
.nimp-kat > summary::after { content: "▾"; color: var(--nimp-zloty); font-size: 1.5rem; line-height: 1; }
.nimp-kat[open] > summary::after { content: "▴"; }
.nimp-kat__tytul { margin: 0.9rem 1rem 0.4rem; font-size: 1.05rem; }
.nimp-kat .nimp-tab { width: calc(100% - 2rem); margin: 0 1rem 1rem; }

.nimp-brak-danych { padding: 1rem 1.2rem; background: var(--nimp-tlo); border-radius: 8px; }

/* ---------- tablica piłkarska ---------- */
.nimp-tab--pilka .nimp-tab__l { text-align: center; width: 3.6rem; font-variant-numeric: tabular-nums; }
.nimp-tab__awans td { background: #f5faf7; }
.nimp-tab__awans .nimp-tab__mce { color: #1e6b43; }

.nimp-mecze { list-style: none; margin: 0; padding: 0.4rem 1rem 1rem; }
.nimp-mecze--finaly { padding: 0; }
.nimp-mecze__kolejka {
  margin: 0.9rem 0 0.3rem;
  font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; color: #666;
}
.nimp-mecz {
  display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.45rem 0.2rem;
  border-bottom: 1px solid var(--nimp-linia);
}
.nimp-mecz:last-child { border-bottom: 0; }
.nimp-mecz__etap {
  min-width: 10.5rem;
  font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #8a6511;
}
.nimp-mecz__wynik {
  display: inline-block; min-width: 3.6rem; text-align: center;
  font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--nimp-tlo); border-radius: 6px; padding: 0 0.4rem;
}
.nimp-mecz__wynik--brak { color: #888; font-weight: 400; }
.nimp-mecz__karne { color: #666; font-size: 0.9em; }

.nimp-solo__stopka {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 2.5rem 0 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--nimp-linia);
}
.nimp-solo__stopka a { color: #8a6511; font-weight: 700; text-decoration: none; }
.nimp-solo__stopka a:hover, .nimp-solo__stopka a:focus { text-decoration: underline; }

/* wąskie ekrany: tabela przewija się w swoim pojemniku, strona nie */
@media (max-width: 700px) {
  body.nimp-solo { font-size: 16px; }
  .nimp-konkurencja { overflow-x: auto; }
  .nimp-tab { min-width: 560px; }
  .nimp-solo__tytul { text-align: left; }
}
