/* Salary calculator — visual language aligned with mortgage / loan-affordability widgets */
.sal-widget {
    margin: 20px 0 28px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    color: #0f172a;
}

.sal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 991px) {
    .sal-grid {
        grid-template-columns: 1fr;
    }
}

.sal-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.sal-field {
    margin-bottom: 18px;
}

.sal-field:last-child {
    margin-bottom: 0;
}

.sal-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.sal-title-static {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.sal-hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.sal-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sal-chip {
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sal-chip:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.sal-chip.is-active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

.sal-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sal-input-wrap:focus-within {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.sal-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 15px;
    color: #0f172a;
    outline: none;
}

.sal-suffix {
    padding-right: 12px;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    user-select: none;
}

.sal-range {
    width: 100%;
    margin-top: 8px;
    accent-color: #2563eb;
}

.sal-note {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.sal-result {
    position: sticky;
    top: 16px;
}

@media (max-width: 991px) {
    .sal-result {
        position: static;
    }
}

.sal-result-title {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.sal-result-hero {
    text-align: center;
    padding: 10px 0 16px;
    border-bottom: 1px dashed #dce4ef;
}

.sal-result-kicker {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.sal-result-main {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #0d9488;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.sal-breakdown {
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.sal-break-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.sal-break-row:last-child {
    border-bottom: none;
}

.sal-break-row strong {
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.sal-break-row--deduct strong {
    color: #b45309;
}


.sal-break-row--total {
    background: #f8fafc;
    font-weight: 600;
}

.sal-break-row--total strong {
    color: #0f172a;
}

.sal-break-row--net {
    background: linear-gradient(90deg, #ecfdf5 0%, #f0fdfa 100%);
    font-weight: 700;
}

.sal-break-row--net strong {
    color: #047857;
    font-size: 15px;
}

.sal-preliminary-note {
    margin: 14px 0 0;
    padding: 10px 12px 10px 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #475569;
    background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
}
