/*
 * NSC calculator pages: small additions on top of epf-pages.css, which this
 * page family shares wholesale for its layout (sidebar/main/insights grid,
 * hero stats, insight cards, scenario cards, article/FAQ typography). Only
 * the pieces NSC needs that EPF's pages never did — the year-by-year table
 * and the fixed-tenure badge — live here.
 */

.nsc-tenure-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nsc-tenure-readout {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text-primary, #fff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nsc-tenure-badge {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--theme-text-secondary, #999);
    background: var(--theme-surface-secondary, rgba(255, 255, 255, 0.08));
    border-radius: 999px;
    padding: 2px 8px;
}

.nsc-year-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.1));
}

.nsc-year-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 480px;
}

.nsc-year-table th,
.nsc-year-table td {
    padding: 10px 12px;
    text-align: right;
    white-space: nowrap;
}

.nsc-year-table th:first-child,
.nsc-year-table td:first-child {
    text-align: left;
}

.nsc-year-table thead th {
    font-weight: 600;
    color: var(--theme-text-secondary, #999);
    border-bottom: 1px solid var(--theme-border, rgba(255, 255, 255, 0.1));
}

.nsc-year-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid var(--theme-border-subtle, rgba(255, 255, 255, 0.06));
}

.nsc-year-table tbody tr:last-child td {
    font-weight: 600;
}

@media (max-width: 640px) {
    .nsc-year-table {
        font-size: 0.8rem;
    }
    .nsc-year-table th,
    .nsc-year-table td {
        padding: 8px;
    }
}

/* Two-final-value comparison cards (NSC vs PPF / NSC vs FD pages only) */
.nsc-compare-final-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.nsc-compare-card {
    border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--theme-surface-secondary, rgba(255, 255, 255, 0.04));
}

.nsc-compare-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--theme-text-secondary, #999);
    margin-bottom: 4px;
}

.nsc-compare-card-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--theme-text-primary, #fff);
    line-height: 1.2;
}

.nsc-compare-card-subvalue {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--theme-text-secondary, #999);
}

.nsc-compare-card-subvalue strong {
    color: var(--theme-primary, inherit);
}

.nsc-compare-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--theme-success, #2ecc71);
    background: rgba(46, 204, 113, 0.14);
    border-radius: 999px;
    padding: 1px 7px;
    margin-left: 4px;
}

@media (max-width: 640px) {
    .nsc-compare-final-values {
        grid-template-columns: 1fr;
    }
}
