#experiences {
    margin-top: 10rem;
    color: #111111;
}

.experiences-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4em;
    margin-bottom: 1rem;
    font-size: var(--section-title-size);
    font-weight: normal;
    text-align: center;
}

.experiences-title svg {
    flex-shrink: 0;
    width: 0.85em;
    height: 0.85em;
}

.experiences-tabs {
    min-height: 0;
}

/* Experience columns */

.experiences-tabs .skills-tabs-nav {
    flex-basis: 290px;
}

.experiences-tabs-group {
    margin: 0.9rem 0 0.2rem 1rem;
    color: #8A909A;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.experiences-tabs-group:first-child {
    margin-top: 0.3rem;
}

.experiences-tabs-empty {
    margin: 0.3rem 0 0 1rem;
    color: #A0A6B0;
    font-size: 13px;
    font-style: italic;
}

.experiences-tab-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.experiences-tab-sub {
    color: #7A808A;
    font-size: 12px;
    transition: color 0.25s ease;
}

.skills-tab.is-active .experiences-tab-sub {
    color: rgba(255, 255, 255, 0.7);
}

.experiences-tabs .skills-tab-count {
    white-space: nowrap;
}

/* Experiences zone */

.experiences-tabs .xp-entry {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.xp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.xp-logo {
    box-sizing: border-box;
    flex: none;
    width: 56px;
    height: 56px;
    padding: 6px;
    border: 1px solid #E6E8EC;
    border-radius: 0.75rem;
    background-color: #FFF;
    object-fit: contain;
}

.xp-logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: #F5F6F8;
    color: var(--hover-animation-title, #E4572E);
}

.xp-logo-icon svg {
    width: 28px;
    height: 28px;
}

.xp-heading {
    flex: 1;
    min-width: 0;
}

.xp-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.xp-org {
    margin: 0.2rem 0 0 0;
    color: #5A606B;
    font-size: 14px;
}

.xp-org strong {
    color: #111111;
    font-weight: 600;
}

.xp-date {
    flex: none;
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background-color: var(--header-footer, #171A21);
    color: #FFF;
    font-size: 12px;
    white-space: nowrap;
}

.xp-context {
    margin: 1.1rem 0 0 0;
    padding: 0.65rem 0.9rem;
    border-left: 3px solid var(--hover-animation-title, #E4572E);
    border-radius: 0 0.75rem 0.75rem 0;
    background-color: #F5F6F8;
    color: #3A3F47;
    font-size: 14px;
    line-height: 1.5;
}

/* Technical environment */

.xp-stack {
    margin: 1.25rem 0 0 0;
}

.xp-stack-title {
    margin: 0 0 0.6rem 0;
    color: #8A909A;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.xp-stack-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    align-items: start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-top: 1px solid #EEF0F3;
}

.xp-stack-row:first-of-type {
    padding-top: 0;
    border-top: none;
}

.xp-stack-label {
    padding-top: 0.35rem;
    color: #5A606B;
    font-size: 13px;
    font-weight: 600;
}

.xp-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.xp-tools li {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.45rem;
    width: auto;
    margin: 0;
    padding: 0.35rem 0.8rem 0.35rem 0.5rem;
    border-radius: 1rem;
    background-color: #F5F6F8;
    font-size: 13px;
}

.xp-tools img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.xp-tools .xp-tool-text {
    padding: 0.35rem 0.8rem;
}

/* Animation */

.experiences-tabs .skills-tabs-panel.is-active .xp-entry > * {
    animation: skills-item-in 0.4s ease both;
    animation-delay: calc(120ms + var(--i, 0) * 60ms);
}

/* Mobile */

@media only screen and (max-width: 768px) {
    .experiences-title {
        display: block;
        padding: 0 1rem;
    }

    .experiences-title svg {
        margin-right: 0.3em;
        vertical-align: -0.1em;
    }

    .experiences-container > .xp-entry {
        width: calc(100vw - 2rem);
    }

    .experiences-tabs .skills-tabs-nav {
        flex-basis: auto;
    }

    .experiences-tabs-group,
    .experiences-tabs-empty,
    .experiences-tab-sub {
        display: none;
    }

    .xp-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .xp-logo {
        width: 44px;
        height: 44px;
    }

    .xp-heading {
        flex-basis: calc(100% - 44px - 0.75rem);
    }

    .xp-date {
        margin-left: calc(44px + 0.75rem);
    }

    .xp-title {
        font-size: 16px;
    }

    .xp-stack-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .xp-stack-label {
        padding-top: 0;
    }

    .xp-tools {
        gap: 0.4rem;
    }

    .xp-tools li {
        gap: 0.35rem;
        padding: 0.3rem 0.65rem 0.3rem 0.4rem;
        font-size: 12px;
    }

    .xp-tools img {
        width: 18px;
        height: 18px;
    }

    .xp-tools .xp-tool-text {
        padding: 0.3rem 0.65rem;
    }
}