/* ============================================================
   Jobvi: Salários (pages/page-jobvi-salarios.php)

   Os números são de exemplo; o cálculo fica em
   assets/js/jobvi/salarios.js.
   ============================================================ */

/* ---------- Ferramenta (assets/js/jobvi/salarios.js) ---------- */

.jv-sal__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}

.jv-sal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-column: span 4;
    border: 0;
    box-shadow: var(--jv-shadow);
    border-radius: 20px;
    padding: 32px;
    background: var(--jv-paper);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jv-sal__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jv-sal__field > span {
    font-weight: 600;
    font-size: 15px;
}

.jv-sal__field select {
    width: 100%;
    height: 56px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 0 16px;
    background: #f3f4f6;
    color: var(--jv-ink);
    font: 400 16px/1.2 var(--jv-sans);
}

.jv-sal__field select:focus-visible,
.jv-sal button:focus-visible {
    outline: 2px solid var(--jv-ink);
    outline-offset: 2px;
}

.jv-sal__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jv-sal__pills button {
    height: 44px;
    border: 1.5px solid var(--jv-ink);
    border-radius: 999px;
    padding: 0 18px;
    background: #fff;
    color: var(--jv-ink);
    font: 700 15px/1 var(--jv-sans);
    cursor: pointer;
}

.jv-sal__pills button[aria-pressed="true"] {
    background: var(--jv-ink);
    color: #fff;
}

.jv-sal__submit {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.jv-sal__go {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 999px;
    background: var(--jv-ink);
    color: #fff;
    font: 800 17px/1 var(--jv-sans);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.jv-sal__go:hover {
    background: var(--jv-text);
}

.jv-sal__submit > span {
    font-size: 13px;
    color: var(--jv-muted);
}

.jv-sal__result {
    display: flex;
    flex-direction: column;
    gap: 24px;
    grid-column: span 8;
    min-width: 0;
    border: 0;
    box-shadow: var(--jv-shadow);
    border-radius: 20px;
    padding: 32px;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jv-sal__empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 300px;
    border: 0;
    box-shadow: var(--jv-shadow);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    color: var(--jv-muted);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jv-sal__empty-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    border: 0;
    box-shadow: var(--jv-shadow-sm);
    border-radius: 50%;
    background: var(--jv-paper);
    color: var(--jv-ink);
    transition: box-shadow 0.2s ease;
}

.jv-sal__empty strong {
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--jv-ink);
}

.jv-sal__empty > span {
    max-width: 360px;
    font-size: 15px;
    line-height: 1.5;
}

.jv-sal__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jv-sal__kicker {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jv-sal__badge {
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff4d6;
    color: #6b4e00;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.jv-sal__head h2 {
    font: 800 30px/1.15 var(--jv-sans);
    letter-spacing: -0.02em;
}

.jv-sal__head p {
    font-size: 15px;
    color: var(--jv-muted);
}

.jv-sal__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.jv-sal__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 14px;
    padding: 20px;
    background: var(--jv-paper);
}

.jv-sal__stat--main {
    background: #eef3f7;
}

.jv-sal__stat > span {
    font-weight: 700;
    font-size: 13px;
    color: var(--jv-muted);
}

.jv-sal__stat strong {
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
}

.jv-sal__stat--main strong {
    font-size: 30px;
    letter-spacing: -0.02em;
}

.jv-sal__stat small {
    font-size: 13px;
    color: var(--jv-muted);
}

.jv-sal__block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jv-sal__block h3 {
    margin: 0;
    font-weight: 800;
    font-size: 16px;
}

.jv-sal__hist {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 180px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 2px;
}

.jv-sal__hist span {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: #d9d9d9;
}

.jv-sal__hist span.is-mid,
.jv-sal__legend i.is-mid {
    background: var(--jv-ink);
}

.jv-sal__hist-axis {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: var(--jv-muted);
}

.jv-sal__hist-axis strong {
    color: var(--jv-ink);
}

.jv-sal__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--jv-muted);
}

.jv-sal__legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jv-sal__legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9d9d9;
}

.jv-sal__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.jv-sal__bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jv-sal__bar-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.jv-sal__bar.is-on .jv-sal__bar-top span {
    font-weight: 800;
}

.jv-sal__bar-track {
    height: 10px;
    overflow: hidden;
    border-radius: 5px;
    background: #f0f0f0;
}

.jv-sal__bar-track span {
    display: block;
    height: 100%;
    background: #999;
}

.jv-sal__bar.is-on .jv-sal__bar-track span {
    background: var(--jv-ink);
}

.jv-sal__regs-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.jv-sal__regs-head h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.jv-sal__regs-head .jv-sal__pills button {
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.jv-sal__reg {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    border: 0;
    box-shadow: var(--jv-shadow);
    border-radius: 14px;
    padding: 16px 18px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jv-sal__reg > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jv-sal__reg strong {
    font-size: 16px;
}

.jv-sal__reg span {
    font-size: 14px;
    color: var(--jv-muted);
}

.jv-sal__reg-val {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.jv-sal__reg-val strong {
    font-size: 18px;
}

.jv-sal__reg-val span {
    font-size: 13px;
}

.jv-sal__reg-bens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-column: 1 / -1;
}

.jv-sal__reg-bens span {
    border: 0;
    box-shadow: var(--jv-shadow-sm);
    border-radius: 999px;
    padding: 4px 10px;
    background: var(--jv-paper);
    font-weight: 600;
    font-size: 12px;
    color: var(--jv-ink);
    transition: box-shadow 0.2s ease;
}

.jv-sal__cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    padding: 20px 22px;
    background: var(--jv-ink);
    color: #fff;
}

.jv-sal__cta > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jv-sal__cta strong {
    font-size: 17px;
}

.jv-sal__cta span {
    font-size: 14px;
    color: #ccc;
}

.jv .jv-sal__cta a {
    display: flex;
    flex: none;
    align-items: center;
    height: 48px;
    border-radius: 999px;
    padding: 0 20px;
    background: #fff;
    color: var(--jv-ink);
    font-weight: 700;
    font-size: 15px;
}

.jv .jv-sal__cta a:hover {
    background: #e5e7eb;
}

.jv-sal__note {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--jv-muted);
}

.jv-sal__dir-title {
    margin: 12px 0 0;
    font-weight: 800;
    font-size: 20px;
}

.jv-sal__dir {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jv-sal__dir button {
    height: 40px;
    border: 0;
    box-shadow: var(--jv-shadow-sm);
    border-radius: 999px;
    padding: 0 14px;
    background: #fff;
    color: var(--jv-ink);
    font: 600 14px/1 var(--jv-sans);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

.jv-sal__dir button:hover {
    box-shadow: var(--jv-shadow-hover-sm);
}

/* ---------- Responsivo ---------- */

@media (max-width: 1100px) {
    .jv-sal__form {
        grid-column: span 5;
    }

    .jv-sal__result {
        grid-column: span 7;
    }

    .jv-sal__stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .jv-sal__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .jv-sal__form,
    .jv-sal__result {
        grid-column: 1 / -1;
    }

    .jv-sal__result {
        scroll-margin-top: 70px;
    }

    .jv-sal__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .jv-sal__form,
    .jv-sal__result {
        padding: 22px;
    }

    .jv-sal__stats,
    .jv-sal__cols {
        grid-template-columns: 1fr;
    }

    .jv-sal__head h2 {
        font-size: 24px;
    }

    .jv-sal__hist {
        gap: 3px;
        height: 140px;
    }

    .jv-sal__reg {
        grid-template-columns: 1fr;
    }

    .jv-sal__reg-val {
        align-items: flex-start;
        text-align: left;
    }

    .jv-sal__cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
