/* Experience / Jobs Section */
#experience .inner {
    max-width: 700px;
}

.tab-list {
    position: relative;
    z-index: 3;
    width: max-content;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.tab-button {
    text-decoration: none;
    text-decoration-skip-ink: auto;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--tab-height);
    padding: 0 20px 2px;
    border: 0;
    border-left: 2px solid var(--lightest-navy);
    background-color: transparent;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.tab-button:hover,
.tab-button:focus {
    background-color: var(--light-navy);
    color: var(--green);
}

.tab-button.active {
    color: var(--green);
    border-left: 2px solid var(--green);
}

.tab-panels {
    position: relative;
    width: 100%;
    margin-left: 20px;
}

/* On Desktop: Side by Side */
#experience .inner {
    display: flex;
}

/* Panel Content */
.tab-panel {
    width: 100%;
    height: auto;
    padding: 10px 5px;
}

.tab-panel h3 {
    margin-bottom: 2px;
    font-size: var(--fz-xxl);
    font-weight: 500;
    line-height: 1.3;
}

.tab-panel .company {
    color: var(--green);
}

.tab-panel .range {
    margin-bottom: 25px;
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
}

.tab-panel ul {
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: var(--fz-lg);
}

.tab-panel ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.tab-panel ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--green);
}

.tab-panel ul li a {
    color: var(--green);
}

/* Responsive Experience */
@media (max-width: 600px) {
    #experience .inner {
        display: block;
    }

    .tab-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
        margin-bottom: 30px;
        border-left: 0;
        /* border-bottom: 2px solid var(--lightest-navy); -- Optional */
    }

    .tab-button {
        border-left: 0;
        border-bottom: 2px solid var(--lightest-navy);
        min-width: 120px;
        justify-content: center;
    }

    .tab-button.active {
        border-bottom: 2px solid var(--green);
        border-left: 0;
    }

    .tab-panels {
        margin-left: 0;
    }
}