.hufiec-wsp {
  width: 100%;
  color: #0B2148;
  font-family: inherit;
}

.hufiec-wsp * {
  box-sizing: border-box;
}

.hufiec-wsp [hidden] {
  display: none !important;
}

.wsp-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0 0 20px;
  padding: 8px;
  background: #FFFFFF;
  border: 1px solid #DDE4EE;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17,45,86,.05);
}

.wsp-tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #173D72;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.wsp-tab:hover {
  background: #F3F6FA;
}

.wsp-tab.is-active {
  background: #D82924;
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(216,41,36,.18);
}

.wsp-tab-icon {
  min-width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(23,61,114,.08);
  font-size: 10px;
  font-weight: 950;
}

.wsp-tab.is-active .wsp-tab-icon {
  background: rgba(255,255,255,.18);
}

.wsp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.wsp-card {
  background: #FFFFFF;
  border: 1px solid #DDE4EE;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17,45,86,.045);
}

.wsp-ranking-card {
  overflow: hidden;
}

.wsp-ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #E2E8F0;
}

.wsp-heading-group,
.wsp-month-title,
.wsp-overview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wsp-heading-group h2,
.wsp-month-title h3,
.wsp-overview-head h3,
.wsp-other-heading h3,
.wsp-other-card h4 {
  margin: 0;
  color: #0B2148;
}

.wsp-heading-group h2 {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 950;
}

.wsp-heading-group p,
.wsp-month-title p,
.wsp-overview-head p,
.wsp-other-heading p {
  margin: 3px 0 0;
  color: #657B99;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.wsp-circle-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #EEF3F8;
  color: #173D72;
  font-size: 12px;
  font-weight: 950;
}

.wsp-circle-small {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  font-size: 10px;
}

.wsp-updated {
  flex: 0 0 auto;
  text-align: right;
}

.wsp-updated span,
.wsp-updated strong {
  display: block;
}

.wsp-updated span {
  color: #7A8DA7;
  font-size: 10px;
  font-weight: 700;
}

.wsp-updated strong {
  margin-top: 3px;
  color: #173D72;
  font-size: 12px;
  font-weight: 850;
}

.wsp-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.wsp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wsp-table th,
.wsp-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #E8EDF3;
}

.wsp-table th {
  background: #F3F6FA;
  color: #385577;
  font-size: 11px;
  font-weight: 900;
}

.wsp-table tbody tr:last-child td {
  border-bottom: 0;
}

.wsp-table tbody tr:hover {
  background: #FAFCFE;
}

.wsp-unit-link {
  color: #173D72;
  text-decoration: none;
  font-weight: 800;
}

.wsp-unit-link:hover {
  color: #BA231F;
}

.wsp-place {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #F1F4F8;
  color: #173D72;
  font-size: 11px;
  font-weight: 950;
}

.wsp-place-1 {
  background: #FFF3C8;
  color: #9A6700;
  border: 1px solid #F2D36A;
}

.wsp-place-2 {
  background: #EFF2F5;
  color: #55657B;
}

.wsp-place-3 {
  background: #F6E3D5;
  color: #9A5B2C;
}

.wsp-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.wsp-change-up { color: #2A9D5B; }
.wsp-change-down { color: #D94A4A; }
.wsp-change-same { color: #8796AA; }
.wsp-change-new { color: #173D72; }

.wsp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wsp-month-card {
  padding: 20px;
  background: linear-gradient(135deg, #FFF9E7 0%, #FFF2C8 100%);
  border-color: #F3E4AC;
}

.wsp-trophy {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FFE8A3;
  color: #B47C00;
  font-size: 18px;
  font-weight: 950;
}

.wsp-month-unit {
  display: block;
  margin-top: 18px;
  color: #0B2148;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.wsp-month-points {
  display: block;
  margin-top: 6px;
  color: #A66A00;
  font-size: 14px;
  font-weight: 900;
}

.wsp-other-heading {
  padding: 2px 2px 0;
}

.wsp-other-heading h3 {
  font-size: 17px;
  font-weight: 950;
}

.wsp-other-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wsp-other-card {
  padding: 15px 16px;
}

.wsp-other-card-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.wsp-other-card h4 {
  font-size: 14px;
  font-weight: 900;
}

.wsp-other-card button,
.wsp-text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #D82924;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.wsp-other-leader {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #E8EDF3;
}

.wsp-other-leader a {
  color: #173D72;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.wsp-other-leader strong {
  color: #173D72;
  font-size: 12px;
  font-weight: 900;
}

.wsp-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wsp-overview-card {
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #DDE4EE;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17,45,86,.045);
}

.wsp-overview-leader {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid #E8EDF3;
  border-bottom: 1px solid #E8EDF3;
}

.wsp-overview-leader a,
.wsp-overview-leader strong {
  display: block;
}

.wsp-overview-leader a {
  color: #173D72;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.wsp-overview-leader strong {
  margin-top: 3px;
  color: #385577;
  font-size: 12px;
  font-weight: 900;
}

.wsp-muted,
.hufiec-wsp-empty {
  color: #657B99;
  font-size: 13px;
}

.hufiec-wsp-empty {
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid #DDE4EE;
  border-radius: 12px;
}

@media (max-width: 960px) {
  .wsp-tabs {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    overflow-x: auto;
  }

  .wsp-layout {
    grid-template-columns: 1fr;
  }

  .wsp-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .wsp-month-card,
  .wsp-other-heading {
    grid-column: 1 / -1;
  }

  .wsp-other-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .wsp-tabs {
    display: flex;
    gap: 8px;
    padding: 7px;
  }

  .wsp-tab {
    flex: 0 0 auto;
    min-width: 126px;
  }

  .wsp-ranking-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .wsp-updated {
    text-align: left;
  }

  .wsp-table {
    min-width: 650px;
  }

  .wsp-sidebar {
    display: flex;
  }

  .wsp-other-list {
    display: flex;
  }

  .wsp-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   GŁÓWNA KARTA RANKINGU
   ========================================================= */

.wsp-main-ranking {
  width: 100%;
  min-width: 0;
}

.wsp-main-ranking [hidden] {
  display: none !important;
}

.wsp-main-panel {
  width: 100%;
}


/* HEADER */

.wsp-main-header {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  padding: 22px 24px 18px;

  border-bottom: 1px solid #E2E8F0;
}

.wsp-main-heading {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 14px;
}

.wsp-main-icon {
  width: 52px;
  height: 52px;

  flex: 0 0 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8px;

  background: #F1F4F8;

  border: 1px solid #E2E8F0;
  border-radius: 50%;
}

.wsp-main-icon img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
  object-position: center;
}

.wsp-main-icon span {
  color: #173D72;

  font-size: 12px;
  font-weight: 950;
}

.wsp-main-title {
  min-width: 0;
}

.wsp-main-title h2 {
  margin: 0;
  padding: 0;

  color: #0B2148;

  font-size: 20px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.wsp-main-title p {
  margin: 4px 0 0;
  padding: 0;

  color: #657B99;

  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
}


/* DATA AKTUALIZACJI */

.wsp-main-update {
  flex: 0 0 auto;

  text-align: right;
}

.wsp-main-update span,
.wsp-main-update strong {
  display: block;
}

.wsp-main-update span {
  color: #7A8DA7;

  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
}

.wsp-main-update strong {
  margin-top: 4px;

  color: #173D72;

  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
}


/* TABELA */

.wsp-main-table-wrap {
  width: 100%;

  overflow-x: auto;
}

.wsp-main-table {
  width: 100%;

  border-collapse: collapse;

  color: #173D72;

  font-size: 13px;
}

.wsp-main-table th,
.wsp-main-table td {
  padding: 13px 16px;

  vertical-align: middle;
  text-align: left;

  border-bottom: 1px solid #E8EDF3;
}

.wsp-main-table th {
  background: #F3F6FA;

  color: #385577;

  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.wsp-main-table th:first-child,
.wsp-main-table td:first-child {
  width: 84px;

  text-align: center;
}

.wsp-main-table th:nth-child(3),
.wsp-main-table td:nth-child(3) {
  width: 90px;

  text-align: center;
}

.wsp-main-table th:nth-child(4),
.wsp-main-table td:nth-child(4) {
  width: 100px;

  text-align: center;
}

.wsp-main-table tbody tr:last-child td {
  border-bottom: 0;
}

.wsp-main-table tbody tr {
  transition: background .16s ease;
}

.wsp-main-table tbody tr:hover {
  background: #FAFCFE;
}


/* MIEJSCE */

.wsp-main-place {
  width: 28px;
  height: 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #F1F4F8;
  color: #173D72;

  font-size: 11px;
  font-weight: 950;
}

.wsp-main-place-1 {
  background: #FFF3C8;
  color: #9A6700;

  border: 1px solid #F2D36A;
}

.wsp-main-place-2 {
  background: #EEF1F5;
  color: #58697D;

  border: 1px solid #D9E0E7;
}

.wsp-main-place-3 {
  background: #F6E3D5;
  color: #93582E;

  border: 1px solid #E9C4A8;
}


/* JEDNOSTKA */

.wsp-main-unit {
  color: #173D72;

  font-weight: 800;

  text-decoration: none;

  transition: color .16s ease;
}

.wsp-main-unit:hover {
  color: #BA231F;
}

.wsp-main-points {
  color: #0B2148;

  font-weight: 900;
}

.wsp-main-no-data {
  padding: 28px 20px !important;

  color: #657B99;

  text-align: center !important;
}


@media (max-width: 700px) {

  .wsp-main-header {
    align-items: flex-start;
    flex-direction: column;

    gap: 14px;

    padding: 20px 18px 16px;
  }

  .wsp-main-icon {
    width: 46px;
    height: 46px;

    flex-basis: 46px;

    padding: 7px;
  }

  .wsp-main-title h2 {
    font-size: 18px;
  }

  .wsp-main-update {
    padding-left: 60px;

    text-align: left;
  }

  .wsp-main-table {
    min-width: 620px;
  }
}

/* ranking używany w Breakdance */

.wsp-ranking-body {
  width: 100%;
  min-width: 0;
}

.wsp-ranking-body [hidden] {
  display: none !important;
}

.wsp-ranking-panel {
  width: 100%;
  min-width: 0;
}

.wsp-ranking-panel:not([hidden]) {
  display: block !important;
}

/* =========================================================
   WIDOK: WSZYSTKIE PIONY
   ========================================================= */

.wsp-ranking-body {
  width: 100%;
  min-width: 0;
}

.wsp-ranking-body [hidden] {
  display: none !important;
}

.wsp-ranking-panel {
  width: 100%;
  min-width: 0;
}


/* cztery rankingi */

.wsp-all-rankings {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 0;
}


/* pojedynczy pion */

.wsp-all-section {
  width: 100%;
  min-width: 0;

  border-bottom: 1px solid #DDE4EE;
}

.wsp-all-section:last-child {
  border-bottom: 0;
}


/* nagłówek pionu */

.wsp-all-section-header {
  width: 100%;

  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 10px;

  padding: 14px 18px;

  background: #FAFCFE;

  border-bottom: 1px solid #E8EDF3;
}

.wsp-all-section-icon {
  width: 32px;
  height: 32px;

  flex: 0 0 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 5px;

  background: #F1F4F8;

  border: 1px solid #E2E8F0;
  border-radius: 50%;
}

.wsp-all-section-icon img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
  object-position: center;
}

.wsp-all-section-icon span {
  color: #173D72;

  font-size: 10px;
  font-weight: 950;
}

.wsp-all-section-header h3 {
  margin: 0;
  padding: 0;

  color: #0B2148;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}


/* header Breakdance w trybie Wszystkie */

.is-all-pions {
  grid-template-columns: minmax(0, 1fr) !important;
}

.is-all-pions > *:nth-child(2) {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.is-all-pions > *:nth-child(3) {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

.wsp-ranking-body .wsp-main-unit,
.wsp-ranking-body .wsp-main-unit:link,
.wsp-ranking-body .wsp-main-unit:visited {
  color: #173D72 !important;

  text-decoration: none !important;

  font-weight: 800 !important;
}

.wsp-ranking-body .wsp-main-unit:hover,
.wsp-ranking-body .wsp-main-unit:focus {
  color: #BA231F !important;

  text-decoration: underline !important;
}

/* 1. miejsce – ciemne złoto */
.wsp-main-place-1 {
  background: #A97812 !important;
  color: #FFFFFF !important;

  border: 1px solid #825C0A !important;

  box-shadow:
    0 3px 8px rgba(130,92,10,.20) !important;
}


/* 2. miejsce – ciemne srebro / stal */
.wsp-main-place-2 {
  background: #66788E !important;
  color: #FFFFFF !important;

  border: 1px solid #4D5D70 !important;

  box-shadow:
    0 3px 8px rgba(77,93,112,.18) !important;
}


/* 3. miejsce – ciemny brąz */
.wsp-main-place-3 {
  background: #925A32 !important;
  color: #FFFFFF !important;

  border: 1px solid #704225 !important;

  box-shadow:
    0 3px 8px rgba(112,66,37,.18) !important;
}