/*
 * Colors ported as-is from Developer-Salary-Chart3.html; typography switched
 * to the project's own fonts (Unbounded for display, Commissioner for body).
 */

#salary-new {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 32% -8%, rgba(52, 96, 190, 0.28), transparent 60%),
        linear-gradient(180deg, #0a0f1c 0%, #070a14 100%);
}

#salary-new .premium-shell {
    position: relative;
    z-index: 1;
}

#salary-new .salary-new-heading {
    align-items: end;
    margin-bottom: 2.25rem;
}

#salary-new .salary-new-heading > div:first-child {
    min-width: 0;
}

#salary-new .salary-new-heading .premium-title {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

#salary-new .salary-new-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(124, 196, 127, 0.4);
    background: rgba(124, 196, 127, 0.08);
    color: #a7dba9;
    font-family: 'Commissioner', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

#salary-new .salary-new-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7cc47f;
    box-shadow: 0 0 10px #7cc47f;
}

#salary-new .salary-new-copy {
    color: rgba(255, 255, 255, .72);
    font-family: 'Commissioner', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    max-width: 360px;
    min-width: 0;
}

/* direction switcher */

#salary-new .salary-new-directions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.75rem;
}

#salary-new .salary-new-direction {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: 0 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.72);
    font-family: 'Commissioner', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color .24s ease, border-color .24s ease, background .24s ease, transform .24s ease;
}

#salary-new .salary-new-direction:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

#salary-new .salary-new-direction:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(124, 196, 127, .55);
}

#salary-new .salary-new-direction.is-active {
    border-color: transparent;
    background: linear-gradient(90deg, #2f5fd0, #5b9dff);
    color: #fff;
    box-shadow: 0 10px 24px rgba(47, 95, 208, .34);
    transform: translateY(-1px);
}

/* panel */

#salary-new .salary-new-panel {
    position: relative;
    border-radius: 24px;
    padding: 34px 36px 28px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(20, 27, 46, 0.72) 0%, rgba(13, 18, 32, 0.72) 100%);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

#salary-new .salary-new-panel-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

#salary-new .salary-new-rows {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

#salary-new .salary-new-row {
    display: grid;
    grid-template-columns: 176px 1fr;
    align-items: center;
    gap: 24px;
}

#salary-new .salary-new-row-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

#salary-new .salary-new-row-num {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.16);
}

#salary-new .salary-new-row-level {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #fff;
}

#salary-new .salary-new-row-exp {
    margin-top: 6px;
    font-family: 'Commissioner', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5f9dff;
}

#salary-new .salary-new-track-lane {
    position: relative;
    height: 30px;
}

#salary-new .salary-new-gridline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}

#salary-new .salary-new-midline {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-50%);
}

#salary-new .salary-new-track {
    position: absolute;
    top: 50%;
    left: 0;
    height: 10px;
    border-radius: 6px;
    background: rgba(91, 157, 255, 0.14);
    transform: translateY(-50%);
    transition: width .5s cubic-bezier(.22, 1, .36, 1);
}

#salary-new .salary-new-bar {
    position: absolute;
    top: 50%;
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #2f5fd0, #5b9dff);
    box-shadow: 0 0 18px rgba(91, 157, 255, 0.4);
    transform: translateY(-50%);
    transition: left .5s cubic-bezier(.22, 1, .36, 1), width .5s cubic-bezier(.22, 1, .36, 1);
}

#salary-new .salary-new-dot {
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7cc47f;
    border: 1px solid #0d1220;
    box-shadow: 0 0 10px rgba(124, 196, 127, 0.8);
    transform: translate(-50%, -50%);
    transition: left .5s cubic-bezier(.22, 1, .36, 1);
}

#salary-new .salary-new-row-labels {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 9px;
    font-family: 'Commissioner', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

#salary-new .salary-new-fork-label {
    color: #9fb0cc;
}

#salary-new .salary-new-fork-label b {
    color: #fff;
    font-weight: 700;
}

#salary-new .salary-new-median-label {
    color: #7cc47f;
}

#salary-new .salary-new-median-label b {
    color: #fff;
    font-weight: 700;
}

#salary-new .salary-new-median-label em {
    font-style: normal;
    font-weight: 500;
    color: #8a94a8;
}

#salary-new .salary-new-axis-row {
    display: grid;
    grid-template-columns: 176px 1fr;
    gap: 24px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#salary-new .salary-new-axis-kicker {
    align-self: center;
    font-family: 'Commissioner', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5f9dff;
}

#salary-new .salary-new-axis-lane {
    position: relative;
    height: 16px;
}

#salary-new .salary-new-axis-label {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: 'Commissioner', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6b7688;
}

#salary-new .salary-new-legend {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    font-family: 'Commissioner', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6b7688;
}

#salary-new .salary-new-legend-items {
    display: flex;
    gap: 20px;
    align-items: center;
}

#salary-new .salary-new-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

#salary-new .salary-new-legend-swatch {
    width: 22px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2f5fd0, #5b9dff);
}

#salary-new .salary-new-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7cc47f;
    box-shadow: 0 0 8px rgba(124, 196, 127, 0.7);
}

#salary-new .salary-new-legend-note {
    text-transform: uppercase;
    letter-spacing: .08em;
}

@media (prefers-reduced-motion: reduce) {
    #salary-new .salary-new-track,
    #salary-new .salary-new-bar,
    #salary-new .salary-new-dot {
        transition: none;
    }
}

@media (max-width: 900px) {
    #salary-new .salary-new-copy {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    #salary-new {
        padding: 88px 0;
    }

    #salary-new .salary-new-heading {
        margin-bottom: 1.75rem;
    }

    #salary-new .salary-new-panel {
        padding: 26px 20px 22px;
        border-radius: 20px;
    }

    #salary-new .salary-new-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #salary-new .salary-new-axis-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #salary-new .salary-new-axis-kicker {
        align-self: start;
    }

    #salary-new .salary-new-rows {
        gap: 22px;
    }
}

@media (max-width: 479px) {
    #salary-new {
        padding-top: 38px;
        padding-bottom: 76px;
    }

    #salary-new .salary-new-row-level {
        font-size: 16px;
    }

    #salary-new .salary-new-row-labels {
        font-size: 11px;
        gap: 10px;
    }

    #salary-new .salary-new-legend {
        justify-content: flex-start;
    }
}
