.participant-page {
    --participant-ink: #08132f;
    --participant-muted: #536078;
    --participant-accent: #a50942;
    --participant-accent-bright: #ef426f;
    --participant-border: #e4e8ef;
    color: var(--participant-ink, #08132f);
}
.participant-profile-section {
    padding-bottom: 1.9rem;
}

.participant-hero {
    position: relative;
    min-height: 10.5rem;
    overflow: hidden;
    border: 1px solid #edf0f4;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.5rem 1.25rem rgba(15, 29, 51, 0.08);
}

.participant-hero--with-image::before {
    position: absolute;
    inset: 0 0 0 54%;
    background-image:
        linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.48) 24%, rgba(255, 255, 255, 0.05) 70%),
        var(--participant-cover);
    background-position: center;
    background-size: cover;
    content: "";
}

.participant-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 10.5rem;
    flex-direction: column;
    justify-content: center;
    padding: 1.55rem 2.25rem;
}

.participant-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.participant-identity__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 1rem;
}

.participant-identity__heading h1 {
    margin: 0;
    color: var(--participant-ink);
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.participant-country {
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 2.7rem;
    border-radius: 50%;
    object-fit: cover;
}

.participant-avatar-wrap {
    position: absolute;
    top: 50%;
    right: 2rem;
    width: 7.5rem;
    height: 7.5rem;
    padding: 0.25rem;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0.35rem 1rem rgba(8, 19, 47, 0.22);
}

.participant-avatar-wrap > div,
.participant-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.participant-avatar {
    cursor: zoom-in;
    object-fit: cover;
}

.participant-seasons {
    display: flex;
    max-width: calc(100% - 9rem);
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.35rem;
}

.participant-season {
    min-width: 4.15rem;
    padding: 0.42rem 0.75rem;
    border: 1px solid #dfe4ec;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.82);
    color: #2b3850;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.participant-season--current {
    border-color: var(--participant-accent);
    background: linear-gradient(135deg, #710528, #b0124d);
    color: #fff;
    box-shadow: 0 0.35rem 0.75rem rgba(165, 9, 66, 0.18);
}

.participant-description {
    max-width: 43rem;
    padding: 1.4rem 0.45rem 0;
    color: #27344d;
    font-size: 0.98rem;
    line-height: 1.55;
}

.participant-description p {
    margin: 0;
}

.participant-description__toggle {
    display: none;
}

.participant-description__less {
    display: none;
}

.participant-section-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.15rem;
    color: var(--participant-ink, #08132f);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.participant-section-title > i {
    color: var(--participant-accent, #a50942);
    font-size: 1.85rem;
    font-weight: 400;
}

.participant-section-count {
    display: inline-flex;
    min-width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.55rem;
    border-radius: 50rem;
    background: #f0f2f6;
    color: #596477;
    font-size: 0.84rem;
    font-weight: 600;
}

.participant-badges {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.participant-badge-card {
    --badge-rgb: 165, 9, 66;
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 20.5rem;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--participant-border);
    border-radius: 0.65rem;
    isolation: isolate;
    background: linear-gradient(145deg, rgba(var(--badge-rgb), 0.16) 0%, rgba(var(--badge-rgb), 0.055) 45%, #fff 82%);
    box-shadow: 0 0.25rem 0.8rem rgba(16, 31, 55, 0.045);
}

.participant-badge-card__art {
    display: flex;
    height: 9.35rem;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem 0;
    background: transparent;
}

.participant-badge-card__art img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0.25rem 0.35rem rgba(8, 19, 47, 0.12));
}

.participant-badge-card__content {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    padding: 0.8rem 1.1rem 0.9rem;
}

.participant-badge-card h3 {
    margin: 0 0 0.45rem;
    color: var(--participant-ink);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.participant-badge-card__date {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    color: var(--participant-muted);
    font-size: 0.77rem;
    line-height: 1.25;
}

.participant-badge-card__date i {
    color: rgb(var(--badge-rgb));
}

.participant-badge-card p {
    margin: 0 0 0.7rem;
    color: #435069;
    font-size: 0.84rem;
    line-height: 1.45;
}

.participant-badge-card__action {
    display: flex;
    height: 2.3rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: auto;
    border: 0;
    border-radius: 0.5rem;
    background: rgba(var(--badge-rgb), 0.1);
    color: rgb(var(--badge-rgb));
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.participant-badge-card__action:hover,
.participant-badge-card__action:focus-visible {
    background: rgba(var(--badge-rgb), 0.18);
    box-shadow: 0 0.2rem 0.55rem rgba(var(--badge-rgb), 0.14);
}

.participant-badge-card__mobile-action {
    display: none;
}

.participant-badge-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 0.8rem;
    box-shadow: 0 1rem 3rem rgba(8, 19, 47, 0.2);
}

.participant-race-overview-title {
    margin-bottom: 1.5rem;
}

.participant-badge-modal .modal-header {
    align-items: center;
    border-bottom-color: var(--participant-border);
}

.participant-badge-modal .modal-title {
    color: var(--participant-ink);
    font-size: 1.25rem;
    font-weight: 700;
}

.participant-badge-history {
    display: grid;
    gap: 0.75rem;
}

.participant-badge-history__item {
    --badge-rgb: 165, 9, 66;
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--participant-border);
    border-radius: 0.65rem;
    background: linear-gradient(135deg, rgba(var(--badge-rgb), 0.14), rgba(var(--badge-rgb), 0.035) 48%, #fff 88%);
}

.participant-badge-history__item img {
    width: 5.25rem;
    height: 5.25rem;
    object-fit: contain;
}

.participant-badge-history__item h4 {
    margin: 0 0 0.35rem;
    color: var(--participant-ink);
    font-size: 1rem;
    font-weight: 700;
}

.participant-badge-history__item span {
    color: var(--participant-muted);
    font-size: 0.8rem;
}

.participant-badge-history__item i {
    margin-right: 0.3rem;
    color: rgb(var(--badge-rgb));
}

.participant-certificates-section {
    padding: 2rem 0 1.5rem;
}

.participant-certificates-title {
    margin: 0 0 0.85rem;
    color: var(--participant-ink);
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.participant-certificates-swiper {
    position: relative;
    overflow: hidden;
    padding: 0.25rem 1rem 0.75rem;
}

.participant-certificate {
    display: flex;
    flex-direction: column;
    color: #7d1237;
    text-align: center;
    text-decoration: none;
}

.participant-certificate:hover {
    color: var(--participant-accent);
    text-decoration: none;
}

.participant-certificate img {
    width: 100%;
    aspect-ratio: 1.28;
    border-radius: 0.35rem;
    object-fit: cover;
    box-shadow: 0 0.35rem 0.85rem rgba(18, 28, 45, 0.08);
}

.participant-certificate span {
    display: block;
    padding: 0.7rem 0.25rem 0;
    font-size: 0.89rem;
    line-height: 1.35;
}

.participant-slider-button {
    position: absolute;
    z-index: 5;
    top: 38%;
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: var(--participant-accent-bright);
    color: #fff;
    box-shadow: 0 0.3rem 0.8rem rgba(239, 66, 111, 0.28);
    cursor: pointer;
}

.participant-slider-button--previous {
    left: 0;
}

.participant-slider-button--next {
    right: 0;
}

.participant-slider-button.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 991.98px) {
    .participant-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .participant-profile-section {
        padding-bottom: 1.55rem;
    }

    .participant-hero {
        min-height: auto;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .participant-hero--with-image::before {
        display: none;
    }

    .participant-hero__content {
        min-height: auto;
        padding: 0;
    }

    .participant-identity__heading {
        max-width: calc(100% - 5rem);
        gap: 0.7rem;
    }

    .participant-identity__heading h1 {
        /*overflow: hidden;*/
        font-size: 1.62rem;
        letter-spacing: -0.04em;
        text-overflow: ellipsis;
        /*white-space: nowrap;*/
    }

    .participant-country {
        width: 2rem;
        height: 2rem;
        flex-basis: 2rem;
    }

    .participant-avatar-wrap {
        position: static;
        width: 4.55rem;
        height: 4.55rem;
        flex: 0 0 4.55rem;
        padding: 0.15rem;
        transform: none;
        box-shadow: 0 0.2rem 0.6rem rgba(8, 19, 47, 0.18);
    }

    .participant-seasons {
        max-width: none;
        flex-wrap: nowrap;
        gap: 0.45rem;
        margin: 0.55rem -1rem 0;
        padding: 0.25rem 1rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .participant-seasons::-webkit-scrollbar {
        display: none;
    }

    .participant-season {
        min-width: 3.7rem;
        flex: 0 0 auto;
        padding: 0.4rem 0.62rem;
        font-size: 0.75rem;
    }

    .participant-description {
        display: flex;
        max-width: none;
        align-items: flex-end;
        padding: 0.65rem 0 0;
        font-size: 0.88rem;
        line-height: 1.48;
    }

    .participant-description p {
        display: -webkit-box;
        flex: 1;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .participant-description--expanded {
        display: block;
    }

    .participant-description--expanded p {
        display: block;
        overflow: visible;
    }

    .participant-description__toggle {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 0.35rem;
        margin: 0 0 0.05rem 0.45rem;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--participant-accent);
        font-size: 0.78rem;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
    }

    .participant-description--expanded .participant-description__toggle {
        margin: 0.5rem 0 0;
    }

    .participant-description--expanded .participant-description__more {
        display: none;
    }

    .participant-description--expanded .participant-description__less {
        display: inline;
    }

    .participant-description--expanded .participant-description__toggle i {
        transform: rotate(180deg);
    }

    .participant-section-title {
        gap: 0.55rem;
        margin-bottom: 0.8rem;
        font-size: 1.3rem;
    }

    .participant-section-title > i {
        font-size: 1.55rem;
    }

    .participant-section-count {
        min-width: 1.7rem;
        height: 1.7rem;
        font-size: 0.75rem;
    }

    .participant-badges {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
    }

    .participant-badge-card {
        display: grid;
        min-height: 6.45rem;
        grid-template-columns: 7rem minmax(0, 1fr) 1.15rem;
        align-items: center;
        border-radius: 0.7rem;
    }

    .participant-badge-card__art {
        width: 7rem;
        height: 6.45rem;
        padding: 0.35rem 0.45rem;
        background: transparent;
    }

    .participant-badge-card__content {
        display: block;
        padding: 0.6rem 0.5rem;
    }

    .participant-badge-card h3 {
        margin-bottom: 0.25rem;
        font-size: 0.92rem;
    }

    .participant-badge-card__date {
        margin-bottom: 0.25rem;
        font-size: 0.69rem;
    }

    .participant-badge-card p {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        font-size: 0.72rem;
        line-height: 1.36;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .participant-badge-card__action {
        display: none;
    }

    .participant-badge-card__mobile-action {
        display: flex;
        width: 1.75rem;
        height: 100%;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: rgb(var(--badge-rgb));
        font-size: 1rem;
        cursor: pointer;
    }

    .participant-certificates-section {
        padding-top: 1.4rem;
    }

    .participant-certificates-title {
        margin-bottom: 0.55rem;
        font-size: 1.45rem;
    }

    .participant-certificates-swiper {
        margin-right: -1rem;
        margin-left: -1rem;
        padding: 0.2rem 1rem 0.65rem;
    }

    .participant-certificate span {
        padding-top: 0.55rem;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .participant-slider-button {
        top: 36%;
        width: 2.1rem;
        height: 2.1rem;
    }

    .participant-slider-button--previous {
        left: 0.15rem;
    }

    .participant-slider-button--next {
        right: 0.15rem;
    }
}

