/* ============================================
   PROGRAMMATIC SALARY PAGES
   ============================================ */

.salary-page {
    padding: 36px 0 60px;
}

.salary-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    margin-top: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .salary-layout {
        grid-template-columns: 1fr;
    }
    .salary-sidebar { display: none; }
}

/* ── H1 ── */
.salary-main h1 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.25;
    margin-bottom: 24px;
}

/* ── Quick Answer Box ── */
.quick-answer {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 36px;
    text-align: center;
}

.quick-answer-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.quick-answer-value {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
}

/* ── Calculation Sections ── */
.calc-section, 
.step-by-step-section,
.related-calculators-section {
    margin-bottom: 36px;
}

.calc-section h2,
.step-by-step-section h2,
.related-calculators-section h2,
.calc-embed-cta h2,
.faq-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0f2fe;
}

.calc-section p, 
.step-by-step-section p {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1rem;
}

/* ── Breakdown Table ── */
.breakdown-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-bottom: 20px;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
    border-radius: 14px;
    overflow: hidden;
}

.breakdown-table thead th {
    background: #0ea5e9;
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-table tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.breakdown-table tbody tr:last-child td {
    border-bottom: none;
}

.highlight-row td {
    background: #f0f9ff;
    font-size: 1rem;
}

.parttime-row td {
    color: #6b7280;
    font-size: 0.9rem;
    background: #fafafa;
}

.net-val {
    color: #0369a1 !important;
    font-weight: 700;
}

/* ── Example Box ── */
.example-calc {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 26px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.example-calc ol {
    padding-left: 20px;
    margin: 0;
}

.example-calc li {
    padding: 8px 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}

.example-calc li strong {
    color: #0284c7;
}

/* ── Calculator CTA Embed ── */
.calc-embed-cta {
    margin-bottom: 36px;
}

.calc-embed-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: white;
}

.calc-embed-box h2 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.15);
}

.calc-embed-box p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.calc-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

@media (min-width: 600px) {
    .related-calculators-section .calc-cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.calc-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.calc-cta-btn.primary {
    background: #0ea5e9;
    color: white;
}

.calc-cta-btn.primary:hover { background: #0284c7; }

.calc-cta-btn.secondary {
    background: #f8fafc;
    color: #1a1a2e;
    border: 1px solid #e5e7eb;
}

.calc-embed-cta .calc-cta-btn.secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.calc-cta-btn.secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.calc-embed-cta .calc-cta-btn.secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* ── FAQ ── */
.salary-faq {
    margin-bottom: 36px;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}

/* ── Sidebar ── */
.salary-sidebar {
    position: sticky;
    top: 90px;
}
