/* =================================================
   ZUZIA — PALMARES / RANKING / JUNIORKA
   Nowe sekcje + tabela rankingowa (redesign 06.2026)
   ================================================= */

/* =================================================
   WZORZEC — nagłówek sekcji + zdjęcie obok (sec-intro)
   ================================================= */
.sec-intro {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 400px);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    margin-bottom: 56px;
}
.sec-intro .section__head {
    margin-bottom: 0;
}
.sec-intro__figure {
    margin: 0;
}
.sec-intro__frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(14, 18, 23, 0.06);
}
.sec-intro__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
}
.sec-intro__cap {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sec-intro__cap::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--coral);
    flex: none;
}
/* wariant na ciemnym tle */
.sec-intro--dark .sec-intro__cap {
    color: var(--paper-dim);
}
.sec-intro--dark .sec-intro__frame {
    background: rgba(245, 241, 232, 0.06);
}

@media (max-width: 860px) {
    .sec-intro {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }
    .sec-intro__figure {
        max-width: 340px;
    }
    .sec-intro__frame {
        aspect-ratio: 5 / 4;
    }
    .sec-intro__frame img {
        object-position: center 18%;
    }
}


/* =================================================
   DROBIAZGI — kalendarz, partnerzy, wordmarki
   ================================================= */
.schedule__lede {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-muted);
    max-width: 52ch;
    margin-top: 14px;
}

.schedule__note {
    display: block;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-top: 4px;
    letter-spacing: 0.01em;
}

.schedule__footer-note {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    opacity: 0.7;
}

/* Wordmark Babolat w karcie partnera (ciemna karta) */
.partner__wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 0.01em;
    color: var(--paper);
    line-height: 1;
}

/* Wordmark Babolat w stopce (logo wall — kremowe boksy, więc CIEMNY tekst) */
.footer__partner-wordmark {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 0.01em;
    color: var(--ink);
    transition: color var(--dur-base) ease;
}
.footer__partner-wordmark:hover {
    color: var(--coral);
}

/* =================================================
   TABELA RANKINGOWA (sekcja KARIERA, tło ciemne)
   ================================================= */
.career__rankings {
    margin: 52px 0 56px;
}

.career__rankings-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-bottom: 18px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(245, 241, 232, 0.12);
}

.career__rankings-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--paper);
}

.career__rankings-key {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--paper-dim);
}
.career__rankings-key-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    display: inline-block;
}

.rank-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    min-width: 460px;
}

.rank-table th,
.rank-table td {
    text-align: right;
    padding: 14px 10px;
    white-space: nowrap;
}
.rank-table th:first-child,
.rank-table td:first-child {
    text-align: left;
    padding-left: 2px;
}

.rank-table__group th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper);
    padding-bottom: 6px;
}
.rank-table__discipline {
    text-align: center !important;
    border-bottom: 2px solid var(--coral);
}
.rank-table__discipline--alt {
    border-bottom-color: var(--lime);
}
.rank-table__corner {
    color: var(--paper-dim) !important;
    font-weight: 700;
    vertical-align: bottom;
}

.rank-table__sub th {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.42);
    padding-top: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(245, 241, 232, 0.12);
}

.rank-table tbody tr {
    border-bottom: 1px solid rgba(245, 241, 232, 0.07);
}
.rank-table tbody tr:last-child {
    border-bottom: none;
}

.rank-table td {
    font-size: 16px;
    font-weight: 400;
    color: var(--paper-dim);
}
.rank-table__year {
    font-family: var(--font-display);
    font-size: 22px !important;
    font-weight: 700;
    color: var(--paper) !important;
}
.rank-table__best {
    color: var(--paper) !important;
    font-weight: 700;
}
.rank-table__pending {
    color: rgba(245, 241, 232, 0.3) !important;
}

.rank-table__row--live .rank-table__best--peak {
    color: var(--coral) !important;
}
.rank-table__live {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    border: 1px solid rgba(255, 78, 90, 0.5);
    border-radius: 999px;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: middle;
}

.career__rankings-foot {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--paper-dim);
    max-width: 60ch;
}
.career__rankings-foot strong {
    color: var(--paper);
    font-weight: 600;
}

/* =================================================
   SEKCJA — PALMARES / TYTUŁY ZAWODOWE (tło jasne)
   ================================================= */
.palmares {
    background: var(--bg-soft);
    color: var(--ink);
    padding: 120px 0;
    position: relative;
}

.palmares__lede {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 56ch;
    margin-top: 16px;
}

/* Stat band */
.palmares__stats {
    list-style: none;
    margin: 48px 0 56px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(14, 18, 23, 0.1);
    border: 1px solid rgba(14, 18, 23, 0.1);
}
.palmares__stat {
    background: var(--bg-soft);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.palmares__stat-num {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 76px);
    font-weight: 900;
    line-height: 0.9;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.palmares__stat-unit {
    font-size: 0.5em;
    color: var(--coral);
    vertical-align: super;
}
.palmares__stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* Tytuły rok po roku — LEDGER */
.palmares__ledger {
    max-width: 1080px;
    margin: 0 auto;
}

.ledger-year {
    padding: 26px 0;
    border-top: 1px solid rgba(14, 18, 23, 0.16);
}
.ledger-year:last-of-type {
    border-bottom: 1px solid rgba(14, 18, 23, 0.16);
}

.ledger-year__head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.ledger-year__yr {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 0.95;
    color: var(--ink);
}
.ledger-year--peak .ledger-year__yr {
    color: var(--coral);
}
.ledger-year__tag {
    align-self: center;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--coral);
    border: 1px solid rgba(255, 78, 90, 0.4);
    border-radius: 999px;
    padding: 4px 11px;
}
.ledger-year__count {
    margin-left: auto;
    align-self: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.ledger-year__rows {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ledger-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(14, 18, 23, 0.07);
}
.ledger-row:first-child {
    border-top: none;
}
.ledger-row__dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
}
.ledger-row__dot--single {
    background: var(--coral);
}
.ledger-row__name {
    flex: none;
    min-width: 150px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}
.ledger-row__where {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink-muted);
}
.ledger-row__when {
    flex: none;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-muted);
    white-space: nowrap;
}

.ledger-year__more {
    margin-top: 14px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-style: italic;
    color: var(--ink-muted);
}
.ledger-year__note {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 72ch;
}

.palmares__ledger-key {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

@media (max-width: 600px) {
    .ledger-row {
        flex-wrap: wrap;
        gap: 3px 12px;
    }
    .ledger-row__name {
        min-width: 0;
    }
    .ledger-row__when {
        margin-left: auto;
    }
    .ledger-row__where {
        flex-basis: 100%;
        order: 4;
        padding-left: 22px;
    }
    .ledger-year__count {
        margin-left: 0;
        flex-basis: 100%;
    }
}

/* =================================================
   SEKCJA — JUNIORKA & REPREZENTACJA (tło ciemne)
   ================================================= */
.junior {
    background: var(--bg-ink);
    color: var(--paper);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.junior__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(245, 241, 232, 0.05);
    pointer-events: none;
}
.junior .section__container {
    position: relative;
    z-index: 1;
}

.junior__lede {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--paper-dim);
    max-width: 60ch;
    margin-top: 16px;
}

.junior__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    margin-top: 56px;
}

.junior__col-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(245, 241, 232, 0.14);
}
.junior__col-label {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--paper);
}
.junior__col-peak {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lime);
}

/* Highlight — wicemistrzyni Europy */
.junior__highlight {
    background: rgba(255, 78, 90, 0.08);
    border-left: 3px solid var(--coral);
    padding: 20px 22px;
    margin-bottom: 28px;
}
.junior__highlight-tag {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--coral);
}
.junior__highlight-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--paper);
    margin: 6px 0 4px;
    line-height: 1.1;
}
.junior__highlight-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--paper-dim);
}

.junior__block {
    margin-bottom: 26px;
}
.junior__block-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper-dim);
    margin-bottom: 14px;
}

.junior__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.junior__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--paper);
    border-bottom: 1px solid rgba(245, 241, 232, 0.06);
    padding-bottom: 10px;
}
.junior__list-disc {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    background: rgba(245, 241, 232, 0.1);
    color: var(--paper);
}
.junior__list-disc--single {
    background: var(--lime);
    color: #0E1217;
}
.junior__list-yr {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--paper-dim);
}
.junior__disc-key {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--paper-dim);
    margin-top: 12px;
}
.junior__disc-key .junior__list-disc {
    width: 18px;
    height: 18px;
    font-size: 9px;
}

.junior__slam {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.junior__slam li {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--paper);
    padding-left: 16px;
    position: relative;
}
.junior__slam li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
}
.junior__slam li em {
    font-style: normal;
    font-weight: 400;
    color: var(--paper-dim);
    font-size: 13px;
}

/* Medal tally */
.medal-tally {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.medal-tally__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 8px;
    background: rgba(245, 241, 232, 0.04);
    border: 1px solid rgba(245, 241, 232, 0.08);
    border-radius: 2px;
}
.medal-tally__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-bottom: 4px;
}
.medal-tally__num {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    color: var(--paper);
}
.medal-tally__lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper-dim);
}

.medal-tally__dot--gold,
.medal-list__dot--gold { background: #E8C24A; box-shadow: 0 0 8px rgba(232, 194, 74, 0.4); }
.medal-tally__dot--silver,
.medal-list__dot--silver { background: #C7CDD4; }
.medal-tally__dot--bronze,
.medal-list__dot--bronze { background: #C77B43; }

/* Medal list */
.medal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.medal-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--paper);
    padding: 9px 0;
    border-bottom: 1px solid rgba(245, 241, 232, 0.06);
}
.medal-list__dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.medal-list__yr {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--paper-dim);
    padding-left: 10px;
}
.medal-list__note {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-style: italic;
    color: var(--paper-dim);
    margin-top: 14px;
}

/* =================================================
   RESPONSYWNOŚĆ
   ================================================= */
@media (max-width: 900px) {
    .junior__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .palmares,
    .junior {
        padding: 84px 0;
    }
    .palmares__stats {
        grid-template-columns: 1fr;
    }
    .palmares__stat {
        flex-direction: row;
        align-items: baseline;
        gap: 16px;
        padding: 22px 20px;
    }
    .palmares__stat-num {
        font-size: 44px;
        min-width: 90px;
    }
    .rank-table td {
        font-size: 14px;
        padding: 12px 7px;
    }
    .rank-table__year {
        font-size: 18px !important;
    }
    .rank-table__live {
        display: none;
    }
}

@media (max-width: 600px) {
    .rank-table {
        min-width: 0;
        width: 100%;
    }
    .rank-table th,
    .rank-table td {
        padding: 11px 2px;
        white-space: normal;
    }
    .rank-table th:first-child,
    .rank-table td:first-child {
        padding-left: 0;
    }
    .rank-table td {
        font-size: 13px;
    }
    .rank-table__year {
        font-size: 15px !important;
    }
    .rank-table__group th {
        font-size: 10px;
        letter-spacing: 0.02em;
    }
    .rank-table__sub th {
        font-size: 7.5px;
        letter-spacing: 0.01em;
        line-height: 1.2;
    }
}
