/* ==========================================================================
   Persona & Pain Point Bar - Figma B2C-2026 "Pain Points Role Design" (1382:4364)
   Desktop only; sits under the H1 inside the sticky head (JobSalary) or the SWZ head.
   ========================================================================== */
/* The bar's container sits outside .salary-overview-head, so it does not get that block's side padding;
   mirror it here so the bar keeps the same gutter as the H1 above (otherwise it touches the viewport edge at <1920px). */
.salary-visitor-profile-sticky > .salary-overview-head-container {
    box-sizing: border-box;
    padding: 0 var(--sa-space-s);
}

@media (min-width: 576px) {
    .salary-visitor-profile-sticky > .salary-overview-head-container {
        padding: 0 var(--sa-space-l);
    }
}

@media (min-width: 1920px) {
    .salary-visitor-profile-sticky > .salary-overview-head-container {
        padding: 0;
    }
}

.salary-persona-bar {
    position: relative;
    margin: var(--sa-space-s, 8px) 0 var(--sa-space-m, 12px);
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 16px;
    background: linear-gradient(175deg, #97d7ff 0%, #ffceeb 102%) padding-box, linear-gradient(135deg, #722257 0%, #2b91d1 100%) border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.08);
    color: var(--sa-color-text-primary, #222236);
    font-size: 16px;
    line-height: 24px;
}

.salary-persona-bar-scroll {
    overflow-x: auto;
    border-radius: 12px;
}

.salary-persona-bar-panel {
    display: grid;
    grid-template-columns: max-content 1px minmax(calc(60px + 8ch), 1fr);
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    min-height: 56px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.salary-persona-bar-section {
    min-width: 0;
}

.salary-persona-bar-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .salary-persona-bar-trigger:focus-visible,
    .salary-persona-bar-solutions:focus-visible {
        outline: 2px solid var(--sa-color-border-input-focus, #40aef3);
        outline-offset: 2px;
        border-radius: 8px;
    }

.salary-persona-bar-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
}

/* Question on the first line, the current choice (bold) with its chevron below. */
.salary-persona-bar-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.salary-persona-bar-label {
    font-weight: 400;
    white-space: nowrap;
}

.salary-persona-bar-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.salary-persona-bar-value {
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* The challenge is shown in full: long text wraps and is never truncated (Figma 1976:3382). */
.salary-persona-bar-value-painpoint {
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.salary-persona-bar-chevron {
    flex: 0 0 20px;
    font-size: 14px;
    text-align: center;
    transition: transform 0.2s ease;
}

.salary-persona-bar-trigger[aria-expanded="true"] .salary-persona-bar-chevron {
    transform: rotate(180deg);
}

.salary-persona-bar-divider {
    flex: 0 0 1px;
    align-self: stretch;
    background: var(--sa-color-text-tertiary, #55556a);
}

/* See Solutions: a link styled as a small outline pill (146 x 32 in Figma). */
.salary-persona-bar-solutions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    height: 32px;
    margin-left: auto;
    padding: 4px 16px;
    border: 2px solid var(--sa-color-border-link, #04578b);
    border-radius: 999px;
    color: var(--sa-color-text-link, #04578b);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
    text-decoration: none;
}

    .salary-persona-bar-solutions:hover {
        background: var(--sa-color-bg-info, #ecf8ff);
        color: var(--sa-color-text-link, #04578b);
        text-decoration: none;
    }

    .salary-persona-bar-solutions .fa-arrow-right {
        font-size: 14px;
    }

/* ---------- Menus (radio lists, built by Seou_Jbs_PersonaBar.js) ---------- */
.salary-persona-bar-menu {
    /* Positioned against the Bar, 16px below it; the script aligns it with its section. */
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    z-index: 110;
    width: 434px;
    max-width: calc(100vw - 32px);
    min-width: 280px;
    overflow-y: auto;
    padding: 4px 0;
    border-radius: 8px;
    background: var(--sa-color-bg-white, #fff);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.08);
    overscroll-behavior: contain;
}

    .salary-persona-bar-menu[hidden] {
        display: none;
    }

.salary-persona-bar-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    margin: 0;
    padding: 8px 12px;
    font-weight: 400;
    cursor: pointer;
    font-size: 16px;
    text-transform: unset;
}

    /* The checked row is marked by its radio only (mockup); the tint is for hover and keyboard focus. */
    .salary-persona-bar-option:hover,
    .salary-persona-bar-option:has(input:focus-visible) {
        background: var(--sa-color-bg-info, #ecf8ff);
    }

    .salary-persona-bar-option input {
        flex: 0 0 16px;
        box-sizing: border-box;
        width: 16px;
        height: 16px;
        margin: 0;
        border: 1px solid var(--sa-color-text-tertiary, #55556a);
        border-radius: 50%;
        background: #fff;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
    }

        /* Checked (mockup): a thick blue ring around a white centre. */
        .salary-persona-bar-option input:checked {
            border: 5px solid var(--sa-color-bg-link, #04578b);
            background: #fff;
        }

        .salary-persona-bar-option input:focus {
            outline: none;
        }

        .salary-persona-bar-option input:focus-visible {
            outline: 2px solid var(--sa-color-border-input-focus, #40aef3);
            outline-offset: 2px;
        }

.salary-persona-bar-section:nth-child(3) .salary-persona-bar-label {
    white-space: normal;
}
