/* Salary Benchmark pages */

.salary-page {
    --salary-teal: #0d9488;
    --salary-teal-dark: #0f766e;
    --salary-bg-soft: #eceffd;
    --salary-text: #1e293b;
    --salary-text-muted: #71717a;
    --salary-text-secondary: #3f3f46;
    --salary-border: #e4e4e7;
    --salary-card-bg: #ffffff;
    --salary-max: 1216px;
    --salary-primary: #fa4094;
    --salary-primary-50: #ffeef6;
    fast-button[variant="borderless"]{
        &:hover {
            background-color: transparent;
            border-color: transparent;
            text-decoration: none;
        }
        .button-container {
            padding-left: 0;
            padding-right: 0;
        }
    }
}

.salary-page * {
    box-sizing: border-box;
}

.salary-container {
    width: 100%;
    max-width: var(--salary-max);
    margin: 0 auto;
}

/* Wraps a fast-button acting as a link (View all / Explore / View salary) */
.salary-cta-link, .salary-related-card__link {
    display: inline-flex;
    text-decoration: none !important;
}

.salary-cta-link.view_all {
    flex: 1;
    justify-content: flex-end;
    .button-content {
        white-space: nowrap;
    }
}

.salary-related-card__link:hover {
    color: var(--salary-primary);
    text-decoration: underline;
}

/* —— Hero —— */
.salary-hero {
    position: relative;
    background: #293153;
    overflow: hidden;
    padding: 32px 24px 32px;
}

.salary-hero__blur {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: #e6005c;
    opacity: 0.05;
    filter: blur(32px);
    pointer-events: none;
}

.salary-hero__blur--left {
    left: -14px;
    top: 77px;
}

.salary-hero__blur--right {
    right: 0;
    top: 0;
}

.salary-hero__intro {
    position: relative;
    z-index: 1;
    max-width: 845px;
    margin: 0 auto;
    text-align: center;
}

.salary-hero__badge {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 2000px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 16px;
}

.salary-hero__title {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.33;
    color: #ffffff;
    margin: 0 0 16px;
}

.salary-hero__subtitle {
    font-family: Lato, sans-serif;
    font-size: 18px;
    line-height: 26px;
    color: #f5f5f5;
    max-width: 627px;
    margin: 0 auto 32px;
}

/* Search page header — left-aligned back link + title, distinct from the centered .salary-hero__intro */
.salary-search-header {
    position: relative;
    z-index: 1;
    max-width: 1170px;
    margin: 0 auto;
    text-align: left;
}

.salary-search-header__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 16px;
}

.salary-search-header__back fast-icon {
    color: #ffffff;
}

.salary-search-header__back:hover, .salary-search-header__back:focus {
    color: #ffffff;
    text-decoration: none;
}

.salary-search-header__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

.salary-search-header__title fast-icon {
    color: #ffffff;
    flex-shrink: 0;
}

.salary-search-header__subtitle {
    font-family: Lato, sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: #f5f5f5;
    margin: 0 0 16px 32px;
}

.salary-hero__card {
    position: relative;
    z-index: 1;
    max-width: 1170px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(49, 65, 88, 0.1);
    border-radius: 8px;
    padding: 32px;
}

.salary-search__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    #autocomplete-dropdown {
        max-height: 100px !important;
        overflow-y: auto;
    }
}
    
#job-search-button{
    width: 264px;
    height: 48px;
}

@media (min-width: 901px) {
    .salary-hero__card--section {
        padding: 32px;
    }
}

/* Dedicated salary search bar (own markup, shares JS/CSS hooks with the site search) */
.salary-search__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
}


/* Location field kept in the DOM (salary.js reads it) but hidden per product request */
.salary-search__field--location {
    display: none;
}

.salary-search__label {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #18181b;
    margin-bottom: 0;
}

.salary-search__submit {
    width: 100%;
}

@media (min-width: 901px) {
    .salary-search__submit {
        width: auto;
    }
}

/* Popular searches — sits on the navy hero background, below the white search card */
.salary-popular {
    position: relative;
    z-index: 0;
    max-width: 1170px;
    margin: 16px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.salary-popular__label {
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.salary-popular__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.salary-popular__pill {
    display: inline-flex;
    padding: 6px 14px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    font-family: Lato, sans-serif;
    font-size: 12px;
    color: #ffffff;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    user-select: none;
}

.salary-popular__pill:hover, .salary-popular__pill:focus-visible, .salary-popular__pill:focus {
    background: #ffffff;
    color: #000000;
    text-decoration: none;
}

.salary-popular__pill.salary-popular__pill--active, .salary-popular__pill.salary-popular__pill--active:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

.salary-popular__pill--active:hover {
    background: #ffffff;
    color: #fa4094;
}

/* —— Trend —— */
.salary-trend {
    background: var(--salary-bg-soft);
    padding: 24px 0 16px;
    text-align: center;
}

.salary-section-title {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    color: var(--salary-text);
    margin: 0 0 4px;
    text-align: center;
}

.salary-section__people-also-searched {
    margin-bottom: 16px;
}

.salary-trend--section-title {
    margin-bottom: 0;
}

.salary-section-title--left {
    text-align: left;
}

.salary-section-desc {
    font-family: Lato, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: var(--salary-text-muted);
    margin: 0 0 24px;
    text-align: center;
    &.no-margin-bottom{
        margin: 0;
    }
}

.salary-section-desc--left {
    text-align: left;
}

.salary-section-desc--no-margin {
    margin-bottom: 0;
}

.salary-trend__grid {
    display: flex;
    gap: 16px;
    align-items: stretch;
    padding: 16px 0 0;
}

.salary-trend__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-left: 16px;
    min-width: 0;
    text-align: left;
    height: 90px;
}


.salary-trend__icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 1000px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.salary-trend__value {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    color: #18181b;
    margin: 0;
}

.salary-trend__label {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: var(--salary-text-secondary);
    margin: 0;
}

.salary-trend__sublabel {
    font-family: Lato, sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: var(--salary-text-muted);
    margin: 0;
}

/* —— Median salary by industry —— */
.salary-industry__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    margin-top: 8px;
}

.salary-industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.salary-industry-card {
    background: #fff;
    border: 1px solid var(--salary-border);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.salary-industry-card:hover,
.salary-industry-card:focus {
    color: inherit;
    text-decoration: none;
    .salary-industry-card__name {
        color: var(--salary-primary);
    }
}

.salary-industry-card__body{
    flex: 1;
}

.salary-industry-card__icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 16px;
    background-color: var(--salary-primary-50);
    border-radius: 8px;
}

.salary-industry-card__name {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #18181b;
    margin: 0;
}

.salary-industry-card__label {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--salary-text-muted);
    margin: 8px 0 0;
}

.salary-industry-card__median {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: var(--salary-primary);
    margin: 0;
}

.salary-industry-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    margin-top: 16px;
    padding-top: 13px;
}

.salary-industry-card__jobs {
    font-family: Lato, sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: var(--salary-text-muted);
}

/* —— Sections —— */
.salary-section {
    padding: 48px 24px 64px;
}

.salary-location {
    padding: 64px 0;
}


/* Average salary range (table) */
.salary-average {
    background: #f5f5f5;
    padding: 64px 0;
}

.salary-popular-section {
    padding-top: 48px;
}


.salary-average__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    &.end{
        align-items: end;
    }
}

.salary-average__sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 13px;
    background: #fff;
    border: 1px solid var(--salary-border);
    border-radius: 4px;
    font-family: Lato, sans-serif;
    font-size: 14px;
    white-space: nowrap;
}

.salary-average__sort-label {
    color: #6b7280;
}

/* Strip fast-select's own box so it blends into the .salary-average__sort frame */
.salary-average__sort fast-select {
    --background: transparent;
    --border: transparent;
    --outline: transparent;
    --color: #6b7280;
    --padding-x: 0;
    --padding-y: 0;
    --height-sm: 20px;
    --icon-padding-md: 4px;
    width: auto;
    font-weight: 700;
}

.salary-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--salary-border);
    border-radius: 16px;
    background: #fff;
}

.salary-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Lato, sans-serif;
    font-size: 16px;
}

.salary-table th,
.salary-table td {
    padding: 20px 20px;
    text-align: left;
    border-bottom: 1px solid var(--salary-border);
    white-space: nowrap;
}

.salary-table th {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: #18181b;
    background: #eceffd;
}

.salary-table__title {
    font-weight: 700;
    color: #111827;
}

.salary-table__industry {
    color: var(--salary-text-secondary);
    max-width: 300px;
    white-space: normal !important;
}

.salary-table__median {
    color: #374151;
}

.salary-table__change {
    font-weight: 700;
}

.salary-table__change--positive {
    color: var(--color-success-500);
}

.salary-table__change--negative {
    color: var(--color-destructive-500);
}

.salary-table__link {
    text-align: right;
}

.salary-demand {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    background: #ecfdf5;
    color: #047857;
}

.salary-demand--medium {
    background: #f5f5f5;
    color: #3f3f46;
}

.salary-demand--low {
    background: #fef3c7;
    color: #92400e;
}

.salary-table-explore {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.salary-table-footer {
    padding: 25px 24px 24px;
    background: #fafafa;
    border-top: 1px solid var(--salary-border);
    font-size: 12px;
    font-style: italic;
    color: var(--salary-text-muted);
    font-family: Lato, sans-serif;
    margin: 0;
}

/* Average salary range — per-row cards, shown instead of .salary-table below 768px */
.salary-average-cards {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.salary-average-card {
    background: #fff;
    border: 1px solid var(--salary-border);
    border-radius: 8px;
    padding: 20px;
}

.salary-average-card__title {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    color: #18181b;
    margin: 0 0 16px;
}

.salary-average-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.salary-average-card__label {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--salary-text-muted);
}

.salary-average-card__value {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #18181b;
    text-align: right;
}

.salary-average-card__value--change-positive {
    color: var(--color-success-500);
}

.salary-average-card__value--change-negative {
    color: var(--color-destructive-500);
}

.salary-average-card__divider {
    margin: 8px 0 20px;
}

.salary-average-card__cta {
    display: block;
}

.salary-average-card__cta fast-button {
    width: 100%;
}

/* Salary by work location (bar chart) */
.salary-location__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    .salary-section-desc{
            margin: 0 0 16px;
    }
}

.salary-location__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.salary-location__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    background: #eceffd;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #18181b;
    white-space: nowrap;
}

.salary-location-chart {
    background: #fff;
    border: 1px solid var(--salary-border);
    border-radius: 8px;
    padding: 29px;
}

.salary-location-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 8px;
    height: 148px;
}

.salary-location-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.salary-location-bar {
    width: 56px;
    max-width: 70%;
    background: #3b82f6;
    border-radius: 8px 8px 0 0;
    min-height: 4px;
}

.salary-location-bar__value {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #18181b;
    margin: 8px 0 0;
}

.salary-location-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.salary-location-name {
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: var(--salary-text-muted);
    text-align: center;
    margin: 0;
}

.salary-location-cats {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding-top: 20px;
    margin-top: 5px;
    border-top: 1px solid var(--salary-border);
}


.salary-location-cat {
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: var(--salary-text-muted);
    text-align: center;
    margin: 0;
}

/* Salary by work location — per-location cards, shown instead of .salary-location-chart below 768px */
.salary-location-cards {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.salary-location-card {
    background: #fff;
    border: 1px solid var(--salary-border);
    border-radius: 12px;
    padding: 20px 24px;
}

.salary-location-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.salary-location-card__name {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #18181b;
    margin: 0;
}

.salary-location-card__value {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #18181b;
    white-space: nowrap;
}

.salary-location-card__cat {
    font-family: Lato, sans-serif;
    font-size: 15px;
    color: var(--salary-text-muted);
    margin: 4px 0 16px;
}

.salary-location-card__track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.salary-location-card__fill {
    height: 100%;
    border-radius: 999px;
    background: #3b82f6;
}

/* Companies */
.salary-company__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    .salary-section-desc{
            margin: 0 0 16px;
    }
}

.salary-company-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Server renders up to 6 cards so the tablet breakpoint (3 columns, below)
   can fill two full rows; desktop's 4-column row only wants the first 4. */
@media (min-width: 992px) {
    .salary-company-grid > .salary-company-card:nth-child(n + 5) {
        display: none;
    }
}

.salary-company-card {
    background: #fff;
    border: 1px solid var(--salary-border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.salary-company-card__logo {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--salary-border);
}

.salary-company-card__name {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    margin: 10px 0 0;
    color: #18181b;
}

.salary-company-card__label {
    font-family: Lato, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: var(--salary-text-muted);
    margin: 0;
}

.salary-company-card__salary {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    color: var(--salary-primary);
    margin: 12px 0 0;
}

.salary-company-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--salary-border);
    margin-top: 12px;
    padding-top: 13px;
}

.salary-company-card__jobs {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #18181b;
    margin: 0;
}

/* Compare my salary — salary overview card, full width */
.salary-overview {
    position: relative;
    background: #fff;
    border: 1px solid var(--salary-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.salary-overview__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
} 
.salary-overview__title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.salary-overview__title {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    color: #18181b;
    margin: 0;
}

.salary-overview__subtitle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.salary-overview__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
}

.salary-overview__country-select {
    position: relative;
    display: inline-flex;
}

.salary-overview__subtitle-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--salary-primary);
    background: none;
    border: none;
    padding: 0;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.salary-overview__subtitle-location[aria-busy="true"] {
    opacity: 0.6;
    pointer-events: none;
}

.salary-overview__country-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 10;
    min-width: 140px;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: var(--salary-card-bg);
    border: 1px solid var(--salary-border);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.salary-overview__country-option {
    padding: 8px 12px;
    border-radius: 6px;
    font-family: Lato, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--salary-text);
    cursor: pointer;
    white-space: nowrap;
}

.salary-overview__country-option:hover,
.salary-overview__country-option:focus-visible {
    background: var(--salary-primary-50);
    outline: none;
}

.salary-overview__country-option--active {
    color: var(--salary-primary);
}

.salary-overview__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #047857;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.salary-divider {
    height: 1px;
    background: var(--salary-border);
}

.salary-overview__stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.salary-overview__stat-label-row,
.salary-overview__toggle-row,
.salary-overview__values-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.salary-overview__values-row.mobile {
    display: none;
}

.salary-overview__stat-label-row--market-range {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.salary-overview__stat-label {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: var(--salary-text-muted);
}

.salary-overview__updated {
    background: #eceffd;
    color: #293153;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.salary-overview__period-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #f5f5f5;
    border-radius: 999px;
}

.salary-overview__period-btn {
    border: 0;
    background: transparent;
    padding: 6px 16px;
    border-radius: 999px;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--salary-text-muted);
    cursor: pointer;
    width: 144px;
}

.salary-overview__period-btn--active {
    background: #fff;
    color: #FA4094;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.salary-overview__median {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #18181b;
    margin: 0;
}

.salary-overview__median-suffix {
    font-family: Lato, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--salary-text-muted);
    margin-left: 4px;
}

.salary-overview__market-value {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #18181b;
    margin: 0;
}

.salary-overview--locked .salary-overview__market-value {
    filter: blur(7.5px);
    user-select: none;
}

.salary-trend6__label {
    display: block;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #e6005c;
    margin-bottom: 40px;
}

.salary-trend6__chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    height: 176px;
    background-image:
        repeating-linear-gradient(to right, var(--salary-border) 0, var(--salary-border) 3px, transparent 3px, transparent 7px),
        repeating-linear-gradient(to right, var(--salary-border) 0, var(--salary-border) 3px, transparent 3px, transparent 7px),
        repeating-linear-gradient(to right, var(--salary-border) 0, var(--salary-border) 3px, transparent 3px, transparent 7px),
        repeating-linear-gradient(to right, var(--salary-border) 0, var(--salary-border) 3px, transparent 3px, transparent 7px);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: 0 0, 0 44.5%,  0 89%;
}

.salary-trend6__chart--empty {
    align-items: center;
}

.salary-trend6__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.salary-trend6__empty .salary-empty-state {
    padding: 0;
}

.salary-trend6__col {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}

.salary-trend6__value {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 10px;
    color: #fff;
    background: #0f172b;
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
}

.salary-trend6__bar {
    width: 12px;
    max-width: 12px;
    background: #ef9dc1;
    border-radius: 12px 12px 0 0;
    min-height: 4px;
}

.salary-trend6__bar--current {
    background: #FA4094;
    box-shadow: 0 4px 6px -1px rgba(230, 0, 92, 0.2), 0 2px 4px -2px rgba(230, 0, 92, 0.2);
}

.salary-trend6__month {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: #18181b;
    margin-top: 4px;
}

.salary-trend6__legend, .salary-trend6__legend-items {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.salary-trend6__legend {
    border-top: 1px solid var(--salary-border);
    padding-top: 17px;
    margin-top: 20px;
    justify-content: space-between;
}

.salary-trend6__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Lato, sans-serif;
    font-size: 12px;
    color: #3f3f46;
}

.salary-trend6__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.salary-section--muted {
    background-color: #F5F5F5;
    padding-top: 64px;
}

.salary-trend6__dot--current {
    background: #FA4094;
}

.salary-trend6__dot--previous {
    background: #EF9DC1;
}

.salary-trend6__source {
    font-family: Lato, sans-serif;
    font-size: 12px;
    color: #18181b;
}

.salary-percentile {
    position: relative;
    margin-bottom: 16px;
    padding-top: 16px;
}

.salary-trend6__locked-area {
    position: relative;
    .salary-overview__lock{
        top: -40px;
        gap: 8px;
    }
}

.salary-overview--locked .salary-trend6__chart,
.salary-overview--locked .salary-percentile__figure {
    user-select: none;
    pointer-events: none;
}

.salary-overview--locked .salary-percentile__label {
    user-select: none;
}

.salary-overview__lock {
    position: absolute;
    inset: 0;
    top: -6px;
    left: -5px;
    right: -5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4.5px);
}

.salary-overview__lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 16px;
    color: #1d1d35;
}

.salary-overview__lock-text {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1d1d35;
    margin: 0 0 8px;
}

.salary-overview__lock-cta {
    text-decoration: none;
}

/* Salary-range fallback (min/median/max) shown instead of .salary-trend6 when
   a period has no usable 6-month trend — see _salary_percentile_range.php. */
.salary-percentile__label {
    color: #18181B;
    font-family: Lato;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; 
    margin-bottom: 32px;
    display: inline-flex;
}

.salary-percentile__axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Lato, sans-serif;
    font-weight: 500;
    color: #71717A;
    margin-bottom: 12px;
    font-size: 14px;
    font-style: normal;
    line-height: 20px; 
}

.salary-percentile__track {
    position: relative;
    height: 8px;
    background: #e4e4e7;
    border-radius: 999px;
    margin: 16px 0;
}

.salary-percentile__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #fa4094;
    border-radius: 999px;
}

.salary-percentile__marker {
    position: absolute;
    top: 0;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
}

.salary-percentile__marker-value {
    font-family: Lato, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #18181b;
    display: flex;
    padding: 2px 6px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 4px;
    background: #F5F5F5;
}

.salary-percentile__marker-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Lato, sans-serif;
    font-size: 12px;
    color: #3F3F46;
    margin-bottom: 2px;
}

.salary-percentile__marker-tick {
    width: 2px;
    height: 14px;
    background: #fa4094;
    border-radius: 999px;
}

.salary-percentile__endpoints {
    position: relative;
    min-height: 44px;
}

.salary-percentile__endpoint {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.salary-percentile__endpoint-value {
    font-family: Lato, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #18181b;
    display: flex;
    padding: 2px 6px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 4px;
    background: #F5F5F5;
}

.salary-percentile__endpoint-label {
    font-family: Lato, sans-serif;
    font-size: 12px;
    color: #3F3F46;
}

/* Empty states (jobs hiring / companies / people-also-searched) */
.salary-empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 40px 20px;
}

/* The `display: flex` above beats the UA stylesheet's `[hidden] { display: none }`
   (author styles always win over the UA sheet, regardless of source order) —
   restore it explicitly so `hidden` still hides the card when data is present. */
.salary-empty-card[hidden] {
    display: none;
}

.salary-empty-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 50%;
    background: #f4f4f5;
    color: #18181B;
    margin-bottom: 16px;
}

.salary-empty-card__title {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin: 0;
}

.salary-empty-card__desc {
    font-family: Lato, sans-serif;
    font-size: 12px;
    color: #71717A;
    margin: 0;
}

/* Jobs hiring */
.salary-jobs__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.salary-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.salary-job-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 21px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

/* Stretched-link: .salary-job-card__link (wrapping the job title) grows via
   ::after to cover the whole card, making it clickable to the job ad. The
   save button and footer are lifted above that overlay with z-index so they
   keep working as their own, narrower click targets. */
.salary-job-card__link,
.salary-job-card__link:hover,
.salary-job-card__link:focus {
    color: inherit;
    text-decoration: none;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
}

.salary-job-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.salary-job-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.salary-job-card__head fast-icon {
    color: var(--salary-text-muted);
    flex-shrink: 0;
}

.salary-job-card__save {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
}

.salary-job-card__save.btn-unsave-job fast-icon {
    color: var(--salary-primary);
}

.salary-job-card__title {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    color: #000;
}

.salary-job-card__coy-name {
    font-family: Lato, sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: var(--salary-text-muted);
    margin: 0;
}

.salary-job-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.salary-job-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    color: #3f3f46;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 4px;
}

.salary-job-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.salary-job-card__footer > :last-child {
    margin-left: auto;
}

/* Only the apply button opts out of the card's stretched-link overlay — the
   salary range next to it is plain text, so leaving it un-elevated lets it
   fall through to the overlay and stay clickable to the job ad. */
.salary-job-card__footer .salary-cta-link {
    position: relative;
    z-index: 2;
}

.salary-job-card__salary {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    margin: 0;
}

/* People also searched */
.salary-related-section {
    border-top: 1px solid var(--salary-border);
    padding-top: 64px;
}

.salary-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.salary-related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.salary-related-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 21px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.salary-related-card__title {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #000;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
}

.salary-related-card__jobs {
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: #3f3f46;
    margin: 0;
}

.salary-related-card__salary {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin: 0;
}

.salary-related-card__salary span {
    font-family: Lato, sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #949494;
    margin-left: 4px;
}

.salary-related-card__salary--placeholder {
    visibility: hidden;
}

.salary-related-card__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--salary-primary);
    text-decoration: none;
    margin-top: auto;
}



/* Author `display` declarations on these otherwise beat the UA [hidden]
   stylesheet rule (same specificity, author origin wins) — without this the
   `hidden` attribute salary.js toggles on them has no visual effect. */
.salary-cta-link[hidden],
.salary-company-grid[hidden],
.salary-jobs-grid[hidden],
.salary-related-grid[hidden] {
    display: none;
}

.salary-empty-state {
    text-align: center;
    color: var(--salary-text-muted);
    font-family: Lato, sans-serif;
    font-size: 14px;
    padding: 32px 0;
    margin: 0;
}

/* Header + card share one grid template so columns always line up,
   regardless of the card-only trailing CTA column. */
.salary-search-list__header,
.salary-search-card {
    display: grid;
    grid-template-columns: 1fr 128px 112px 100px 150px;
    align-items: center;
    gap: 16px;
}

.salary-table th:first-child,
    .salary-table td:first-child {
        white-space: normal;
        max-width: 300px;
        padding-left: 32px;
    }


@media (max-width: 767px) {

    .salary-overview__country-menu {
        left: initial;
        right: 0;
    }
   
    .salary-search__field {
        #autocomplete-dropdown {
            max-height: 140px !important;
            overflow-y: auto;
        }
    }
    .salary-search-header__title fast-icon {
        margin-top: -20px;
    }
    .salary-search-header__subtitle {
        margin-left: 0;
    }

    .salary-trend6__value {
        font-size: 9px;
    }

    .salary-hero__subtitle {
        font-size: 16px;
    }

    .salary-average__sort {
        margin-top: 16px;
    }

    .salary-hero__card {
        padding: 16px;
    }

    .salary-table-footer {
        text-align: center;
    }

    .salary-location-card__name {
        font-size: 15px;
    }

    .salary-search-header__title {
        font-size: 22px;
    }

    .salary-company-grid,
    .salary-jobs-grid,
    .salary-industry-grid,
    .salary-related-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .salary-industry__head,
    .salary-average__head,
    .salary-location__head,
    .salary-company__head,
    .salary-jobs__head
    {
        flex-direction: column;
        align-items: flex-start;
    }

    .salary-related__head {
        margin-bottom: 16px;
        align-items: center;
        .salary-section-title {
            margin-bottom: 0;
        }
        .salary-section__people-also-searched {
            margin-bottom: 16px;
        }
    }

    .salary-table th,
    .salary-table td {
        padding: 14px 16px;
    }

    .salary-average .salary-table {
        display: none;
    }

    .salary-average .salary-average-cards {
        display: flex;
    }

    .salary-search-list__header {
        display: none;
    }

    .salary-overview__title-row, .salary-overview__subtitle-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .salary-overview__toggle-row, .salary-overview__stat-label-row--market-range{
        align-items: flex-start;
    }
    
    .salary-overview__toggle-row {
        flex-direction: column;
    }

    .salary-overview__lock {
        left: -20px;
        right: -20px;
    }

    .salary-overview__values-row.mobile {
        display: block;
    }

    .salary-overview__values-row.desktop {
        display: none;
    }
}

/* Search page — filters + results list */
.salary-search-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.salary-search-filters {
    flex: 0 0 280px;
    width: 280px;
    background: #fff;
    padding: 0 24px 20px;
}

.salary-search-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.salary-search-filters__title {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #18181b;
    margin: 0;
}

/* Full-screen overlay chrome — only rendered on tablet when .salary-search-filters--open (see media query) */
.salary-search-filters__overlay-head,
.salary-search-sort-group,
.salary-search-filters__apply-wrap {
    display: none;
}

.salary-search-filters__overlay-head {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--salary-border);
}

.salary-search-filters__overlay-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0;
    color: #18181b;
    cursor: pointer;
}

.salary-search-filters__overlay-title {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #18181b;
}

.salary-search-filters__overlay-reset {
    background: none;
    border: 0;
    padding: 0;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--salary-primary);
    cursor: pointer;
}

.salary-search-sort-group {
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--salary-border);
    margin-bottom: 16px;
}

.salary-search-radio-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.salary-search-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Lato, sans-serif;
    font-size: 15px;
    color: #18181b;
    cursor: pointer;
}

.salary-search-radio input[type='radio'] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 2px solid #d4d4d8;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.salary-search-radio input[type='radio']:checked {
    border-color: var(--salary-primary);
}

.salary-search-radio input[type='radio']:focus {
    outline: none;
}

.salary-search-radio input[type='radio']:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--salary-primary);
}

.salary-search-filters__apply-wrap {
    padding: 16px 24px;
    border-top: 1px solid var(--salary-border);
    background: #fff;
}

.salary-search-filters__apply-wrap fast-button {
    width: 100%;
}

.salary-search-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.salary-search-active-filters[hidden] {
    display: none;
}

.salary-search-active-filters__label {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #3f3f46;
}

.salary-search-active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.salary-search-active-filters__more {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #3f3f46;
}

.salary-search-active-filters__clear {
    background: none;
    border: 0;
    padding: 0;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--salary-primary);
    cursor: pointer;
}

.salary-search-active-filters__clear:hover {
    text-decoration: underline;
}

.salary-search-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid var(--salary-border);
    border-radius: 100px;
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: #3f3f46;
}

.salary-search-filter-chip fast-icon {
    color: #3f3f46;
    cursor: pointer;
}

.salary-search-filter-group {
    padding: 16px 0;
}

.salary-search-filter-group--divided {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 20px;
}

.salary-search-filter-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #18181b;
    cursor: pointer;
    user-select: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.salary-search-filter-group__head fast-icon {
    transition: transform 0.2s ease;
}

.salary-search-filter-group--collapsed .salary-search-filter-group__head fast-icon {
    transform: rotate(180deg);
}

.salary-search-filter-group--collapsed .salary-search-checkbox-list,
.salary-search-filter-group--collapsed .salary-search-range {
    display: none;
}

.salary-search-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    margin-top: 12px;
}

.salary-search-checkbox-list fast-checkbox {
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: #18181b;
}

.salary-search-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.salary-search-range__field {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 7px 9px;
    background: #fff;
}

/* Matches @fastjobstech/design-system-web's fast-input [validation="error"]
   border color (--color-destructive-600, #dc2626), for consistency with the
   rest of the site's form error state. */
.salary-search-range__field--error {
    border-color: #dc2626;
}

.salary-search-range__prefix {
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: #3f3f46;
}

/*
 * font-size must be >= 16px or iOS Safari auto-zooms the viewport when this
 * input receives focus. Rendered at 16px then scaled back down to the
 * original 14px look so the visual design is unchanged.
 */
.salary-search-range__input {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    border: 0;
    padding: 0;
    font-family: Lato, sans-serif;
    font-size: 16px;
    transform: scale(0.875);
    transform-origin: left center;
    color: #3f3f46;
    background: transparent;
}

.salary-search-range__input:focus {
    outline: none;
}

/* Chrome/Safari/Edge spin buttons — plain filter inputs, not a stepper UI */
.salary-search-range__input::-webkit-outer-spin-button,
.salary-search-range__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.salary-search-range__input[type='number'] {
    -moz-appearance: textfield;
}

.salary-search-range__sep {
    font-family: Lato, sans-serif;
    font-size: 11px;
    color: #3f3f46;
}

.salary-search-range-toggle {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 16px;
}

.salary-search-range-toggle .salary-search-radio {
    gap: 8px;
}

.salary-search-results {
    flex: 1 1 0;
    min-width: 0;
}

/* Toolbar wraps the (tablet-only) filters toggle + the sort control so they can
   share a row once the head stacks; hidden/no-op outside that range. */
.salary-search-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.salary-search-filters-toggle {
    display: none;
}

.salary-search-results__title {
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 26px;
    color: var(--salary-text);
    margin: 0 0 4px;
    text-align: left;
}

.salary-search-results__count {
    font-family: Lato, sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--salary-text-muted);
    margin-left: 4px;
}

.salary-search-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 13px;
    background: #fff;
    border: 1px solid var(--salary-border);
    border-radius: 4px;
    font-family: Lato, sans-serif;
    font-size: 14px;
    white-space: nowrap;
}

.salary-search-sort .salary-average__sort-label {
    flex-shrink: 0;
}

.salary-search-sort fast-select {
    --background: transparent;
    --border: transparent;
    --outline: transparent;
    --color: #3f3f46;
    --padding-x: 0;
    --padding-y: 0;
    --height-sm: 20px;
    --icon-padding-md: 4px;
    flex-shrink: 0;
    width: auto;
    font-weight: 700;
    & fast-icon{
       --size: 15px;
    }
}

.salary-search-sort .select-input {
    border: none;
    font-size: 14px;
    min-height: 20px;
}

/*
 * font-size must be >= 16px or iOS Safari auto-zooms the viewport when this
 * input receives focus. Rendered at 16px then scaled back down to the
 * original 14px look so the visual design is unchanged.
 */
.salary-search-sort .select-input>.input-content {
    padding-left: 0;
    padding-right: 0;
    display: inline-flex;
    flex: 0 0 auto;
    width: 120px;
    font-size: 16px;
    transform: scale(0.875);
    transform-origin: left center;
    color: #3f3f46;
}

.salary-average__sort .select-input>.input-content {
    padding-left: 0;
    display: inline-flex;
    padding-right: 0;
    font-size: 16px;
    transform: scale(0.875);
    transform-origin: left center;
    flex: 0 0 auto;
    width: 120px;
    color: #3f3f46;
}

fast-select>.select-dropdown.as-popover[open]{
    width: 223px;
}


.salary-search-pagination {
    margin-top: 24px;
}

.salary-search-show-more-wrap {
    margin-top: 24px;
    text-align: center;
}

.salary-search-show-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 8px;
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--salary-primary);
    cursor: pointer;
}

.salary-search-show-more fast-icon {
    color: var(--salary-primary);
}

.salary-search-show-more:disabled {
    opacity: 0.6;
    cursor: default;
}

.salary-search-list-panel {
    position: relative;
    min-height: 160px;
}

.salary-search-list-panel__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.salary-search-list-panel__overlay[hidden] {
    display: none;
}

.salary-search-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Header + card share one grid template so columns always line up,
   regardless of the card-only trailing CTA column. */


.salary-search-list__header {
    padding: 16px 21px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 8px;
}

.salary-search-list__col {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #3f3f46;
}

.salary-search-list__col--pay,
.salary-search-list__col--jobs {
    text-align: left;
}

.salary-search-list__col--demand {
    text-align: center;
}

.salary-search-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 17px 21px;
}

.salary-search-card__role {
    min-width: 0;
}

.salary-search-card__title {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #18181b;
    margin: 0;
}

.salary-search-card__category {
    font-family: Lato, sans-serif;
    font-size: 12px;
    color: #3f3f46;
    margin: 2px 0 0;
}

.salary-search-card__pay-value,
.salary-search-card__jobs-value {
    font-family: Lato, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #18181b;
    margin: 0;
}

.salary-search-card__pay-range,
.salary-search-card__pay-label,
.salary-search-card__jobs-label,
.salary-search-card__pay-positions {
    font-family: Lato, sans-serif;
    font-size: 12px;
    color: #3f3f46;
    margin: 2px 0 0;
}

.salary-search-card__pay-positions {
    display: none;
}

.salary-search-card__demand {
    display: flex;
    justify-content: center;
}

.salary-search-card__cta {
    text-decoration: none;
}

#salary-search-clear-filters {
    font-size: 12px;
}

.salary-section__compare-my-salary{
    padding: 40px 0;
}

@media (max-width: 991px) and (min-width: 768px) {
    #job-search-button{
        width: 157px;
        border: none;
    }
    .salary-related__head {
        margin-top: 0;
    }

    .salary-industry-card {
        padding: 16px;
    }

    
    .salary-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .salary-search-list__header,
    .salary-search-card {
        display: grid;
        grid-template-columns: 163px 128px 1fr 100px 150px;
    }
    .salary-search-list__col--role {
        min-width: 163px;
    }

    .salary-search__row {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
    .salary-popular__pill {
        font-size: 12px;
        &:last-child {
            display: none   ;
        }
    }
    .salary-location-names {
        padding: 24px 0 8px;
        margin-top: 16px;
        border-top: 1px solid var(--salary-border);
    }
    .salary-section-title {
        font-size: 20px;
        margin: 0;
    }
    .salary-trend__icon {
        width: 32px;
        height: 32px;
        fast-icon {
            --size: 15px !important;
        }
    }
    .salary-trend__value{
        font-size: 16px;
    }
    .salary-trend__label{
        font-size: 12px;
    }
    .salary-trend__grid {
        padding: 8px 24px;
        align-items: normal;
    }
    .salary-trend__item {
        padding: 0;
        flex: auto;
        gap: 8px;
        height: auto;
    }
    .salary-trend {
        padding: 16px 0 16px;
    }
    .salary-section {
        padding: 32px 24px 48px;
    }
    .salary-location {
        padding-top: 48px;
    }
    .salary-popular-section {
        border-top: 1px solid #E5E5E5;
    }
    .salary-popular-section, .salary-section--muted, .salary-related-section {
        padding-top: 48px;
        background: #F5F5F5;
    }

    .salary-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .salary-average {
        padding-top: 48px;
    }
    .salary-section-desc{
        margin: 8px 0 0;
        &.no-margin-bottom{
            margin: 4px 0 0;
        }   
    }
    .salary-average__sort .select-input>.input-content {
        width: 75px;
    }

    .salary-location__head {
        gap: 12px;
        margin-bottom: 16px;
        .salary-section-desc {
            margin: 8px 0 0;
        }
    }
    .salary-company__head {
        margin-bottom: 16px;
        .salary-section-desc {
            margin: 8px 0 0;
        }
    }
   
    .salary-industry-grid{
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .salary-industry-card__body{
        display: flex;
        gap: 12px;
    }
    .salary-industry-card__footer {
        margin-left: 76px;
    }
    .salary-table th:first-child,
    .salary-table td:first-child {
        white-space: normal;
    }
    .salary-table th,
    .salary-table td {
        padding: 16px;
    }
    .salary-table__change-header, .salary-table__demand-header {
        white-space: normal !important;
    }
    .salary-table-explore {
        padding: 16px;
    }
   
    .salary-location-chart {
        padding: 28px 0;
    }
    .salary-company-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Search results — collapse the always-open filter sidebar behind a toggle button that
   opens a full-screen "Sort and filter" overlay. Shared by tablet and mobile alike — the
   overlay itself looks and behaves the same at both sizes; only the card list below it
   (see the max-width: 767px block) changes shape between the two. */
@media (max-width: 991px) {
    .salary-search-layout {
        flex-direction: column;
    }

    .salary-hero__title {
        font-size: 32px;
    }


    .salary-industry__head {
        margin-top: 0;
    } 

    .salary-popular-section, .salary-related-section {
        background: #F5F5F5;
    }

    .salary-search-filters__body {
        padding: 0 24px;
        background: var(--color-neutral-50);
    }
    .salary-hero {
        padding-bottom: 32px;
    }
    .salary-search-results {
        width: 100%;
    }

    .salary-search-filters {
        display: none;
        width: 100%;
        flex: 1 1 auto;
    }

    .salary-search-filters--open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 1000;
        width: 100%;
        height: 100%;
        background: #fff;
        padding: 0;
    }

    .salary-search-filters--open .salary-search-filters__overlay-head,
    .salary-search-filters--open .salary-search-filters__apply-wrap {
        display: flex;
        flex-shrink: 0;
    }

    .salary-search-filters--open .salary-search-sort-group {
        display: flex;
    }

    .salary-search-filters--open .salary-search-filters__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-top: 4px;
        padding-bottom: 24px;
    }

    /* Reset (overlay header) replaces the inline Clear all button once the panel is a full-screen overlay */
    .salary-search-filters--open .salary-search-filters__head fast-button {
        display: none;
    }

    /* No accordion in the overlay — Salary Category and Salary Range are always expanded */
    .salary-search-filters--open .salary-search-filter-group__head {
        cursor: default;
        pointer-events: none;
    }

    .salary-search-filters--open .salary-search-filter-group__head fast-icon {
        display: none;
    }

    .salary-search-filters--open .salary-search-checkbox-list {
        display: flex;
    }

    .salary-search-filters--open .salary-search-range {
        display: flex;
    }

    body.salary-filters-overlay-open {
        position: fixed;
        left: 0;
        right: 0;
        overflow: hidden;
    }

    .salary-search-results .salary-average__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .salary-search-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .salary-search-filters-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 36px;
        padding: 0 16px;
        background: #fff;
        border: 1px solid var(--salary-border);
        border-radius: 4px;
        font-family: Lato, sans-serif;
        font-weight: 700;
        font-size: 14px;
        color: #18181b;
        cursor: pointer;
    }
}
@media (max-width: 767px) {
    .salary-page {
        margin-top: 15px;
    }

    .salary-trend__item {
        justify-content: flex-start;
    }
    
    .salary-search__row {
        grid-template-columns: 1fr;
    }
    .salary-search-card__pay-positions {
        display: block;
    }
    .salary-location__head {
        gap: 12px;
        .salary-section-desc {
            margin: 8px 0 0;
        }
        .salary-location__actions {
            margin-bottom: 16px;
        }
    }
    .salary-section {
        padding: 32px 16px;
        .salary-company__head {
            gap: 0;
            .salary-section-desc {
                margin-bottom: 4px;
            }
        }
    }
    .salary-hero__badge {
        font-size: 14px;
    }
   
    .salary-hero__subtitle {
        font-size: 18px;
    }
    #job-search-button {
        width: 100%;
        border: none;
    }
    .salary-popular{
        justify-content: flex-start;
    }
    .salary-popular__pill {
        font-size: 12px;
        flex: none;
    }
    .salary-section-title {
        font-size: 20px;
        text-align: left;
        margin-bottom: 8px;
    }
    .salary-trend__grid {
        flex-direction: column;
    }
    .salary-industry-grid{
        gap: 8px;
    }
    .salary-trend__content {
        padding: 8px 0;
    }
    .salary-trend {
        padding: 24px 16px 8px;
    }
   

    .salary-popular-section {
        padding-bottom: 48px;
    }


    .salary-search-results .salary-average__head {
        gap: 16px;
    }
    
    .salary-industry-card {
        padding: 20px;
    }
    .salary-industry-card__body {
        display: flex;
        gap: 12px;
    }
    .salary-section-desc {
        margin-bottom: 0px;
    }
    .salary-industry__head {
        gap: 12px;
    }
  
    .salary-average__head {
        margin-bottom: 16px;
    }
    .salary-table-wrap {
        border: none;
        background-color: transparent;
    }
    .salary-average-card__label {
        font-weight: normal;
    }
    .salary-table-footer {
        background-color: transparent;
        padding-bottom: 0;
    }
    .salary-location-chart {
        display: none;
    }
    .salary-location-cards {
        display: flex;
    }
    .salary-company__head {
        margin-bottom: 8px;
    }
   
    .salary-company-card__footer__jobs {
        .button-container {
            padding: 0 16px;
        }
    }
    .salary-industry-card__footer{
        margin-top: 12px;
        padding-top: 12px;
    }

    /* Search results card — title+demand row, then a 2-up Median Pay / Open Jobs
       stat row, then a full-width View salary button below a divider. */
    .salary-search-card {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            'role demand'
            'divider divider'
            'pay jobs'
            'cta cta';
        gap: 12px 16px;
        align-items: start;
        border: 1px solid var(--salary-border);
        border-radius: 12px;
        padding: 14px;
    }

    .salary-search-card::before {
        content: '';
        grid-area: divider;
        border-top: 1px solid var(--salary-border);
    }

    .salary-search-card__role {
        grid-area: role;
    }

    .salary-search-card__demand {
        grid-area: demand;
        justify-content: flex-end;
    }

    .salary-search-card__pay,
    .salary-search-card__jobs {
        padding-top: 0;
    }

    .salary-search-card__pay {
        grid-area: pay;
    }

    .salary-search-card__jobs {
        grid-area: jobs;
    }

    .salary-search-card__cta {
        grid-area: cta;
    }

    .salary-search-card__cta fast-button {
        width: 100%;
    }

    .salary-search-results__title {
        margin-bottom: 4px;
    }

    /* Clear all stays on the same line as the "Active filters:" label; the chips
       (and +N more) wrap on their own line below instead of pushing Clear all down. */
    .salary-search-active-filters {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            'label clear'
            'list list'
            'more more';
        align-items: center;
        gap: 8px;
    }

    .salary-search-active-filters__label {
        grid-area: label;
    }

    .salary-search-active-filters__clear {
        grid-area: clear;
    }

    .salary-search-active-filters-list {
        grid-area: list;
    }

    .salary-search-active-filters__more {
        grid-area: more;
    }

    .salary-popular__pills {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

@media (max-width: 420px) {
    .salary-search-results__count {
        display: block;
    }
}

.salary-popular__pills::-webkit-scrollbar {
  width: 8px;
  height: 8px; /* for horizontal scrollbars */
}

.salary-popular__pills::-webkit-scrollbar-track {
  background: transparent;
}

.salary-popular__pills::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  transition: background 0.2s ease;
}

.salary-popular__pills::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}
