.c-matter--article .c-matter__body {
    max-width: 1000px;
    width: 100%;
}
@media (max-width: 1200px) {
    .c-matter--article .c-matter__body {
        max-width: 100%;
    }
}
/* Retirement Calculator Styles */
.rsc-calculator,
.rsc-calculator * {
    box-sizing: border-box;
}

.rsc-calculator {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 2rem;
    overflow-x: hidden;
}

.rsc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.rsc-input-section, .rsc-results-section {
    background: #f7fafc;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

/* Input Section */
.rsc-input-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.rsc-input-section h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.rsc-disclaimer-text {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.rsc-input-group {
    margin-bottom: 20px;
}

.rsc-input-group label {
    display: block;
    margin-bottom: 8px;
}

.rsc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rsc-slider-header label {
    margin-bottom: 0;
}

.rsc-value-display {
    padding: 8px 8px 8px 24px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    min-width: 100px;
    text-align: center;
    outline: none;
    width: 100%;
    max-width: 100%;
}

.rsc-value-display:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.rsc-slider {
    width: 100%;
    max-width: 100%;
    height: 6px;
    border-radius: 3px;
    background: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.rsc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0066cc;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
    margin-top: -7px;
}

.rsc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0066cc;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.rsc-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: linear-gradient(to right, #ddd 0%, #e5e7eb var(--slider-progress, 0%), #e0e0e0 var(--slider-progress, 0%), #e0e0e0 100%);
    border-radius: 3px;
}

.rsc-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e0e0e0;
    border-radius: 3px;
}

.rsc-slider::-moz-range-progress {
    background: #667eea;
    height: 6px;
    border-radius: 3px;
}

.rsc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
}

.rsc-input-header {
    display: block;
    margin-bottom: 8px;
}

.rsc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.rsc-input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 30px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.rsc-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.rsc-stepper {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    gap: 0;
}

.rsc-input-wrapper:hover .rsc-stepper,
.rsc-input-wrapper:focus-within .rsc-stepper,
.rsc-value-display-wrapper:hover .rsc-stepper,
.rsc-value-display-wrapper:focus-within .rsc-stepper {
    opacity: 1;
    pointer-events: all;
}

.rsc-stepper-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0;
    line-height: 1;
    transition: color 0.2s ease;
    min-height: 12px;
    min-width: 20px;
    width: 20px;
    height: 12px;
}

.rsc-stepper-btn:hover {
    color: #0066cc;
}

.rsc-stepper-btn:active {
    color: #0052a3;
}

.rsc-stepper-btn span {
    display: block;
    font-size: 8px;
    line-height: 1;
    color: inherit;
}

.rsc-value-display-wrapper {
    position: relative;
    display: inline-block;
}

.rsc-value-display-wrapper .rsc-value-display {
    padding-right: 30px;
}

/* Results Section */
.rsc-results-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.rsc-results-section h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.rsc-headline-result {
    padding: 1.5rem;
    background-image: 
        linear-gradient(45deg, rgba(51, 133, 230, 0.85) 0%, rgba(0, 102, 204, 0.85) 50%, rgba(0, 82, 163, 0.85) 100%),
        url('http://fmg-websites-custom.s3.amazonaws.com/calculators/howMuchDoINeedToRetire/beachChair-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
}

.rsc-headline-result .rsc-result-label, .rsc-headline-result .rsc-headline-value, .rsc-headline-result .rsc-headline-interpretation {
    color: #fff;
}

.rsc-headline-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rsc-headline-interpretation {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.rsc-supporting-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rsc-result-card {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.rsc-result-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.rsc-result-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rsc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rsc-result-label-small {
    font-size: 0.9rem;
    color: #666;
}

.rsc-result-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0066cc;
}

/* Chart Section */
.rsc-chart-section {
    margin-top: 1rem;
}

.rsc-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rsc-chart-header h3 {
    font-weight: 600;
    margin: 0;
}

.rsc-chart-container {
    position: relative;
    height: 300px;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Action Buttons */
.rsc-action-buttons {
    display: flex;
    gap: 1rem;
}

.rsc-action-btn {
    flex: 1;
}

/* Mobile and Tablet Responsive */
@media (max-width: 768px) {

    .rsc-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rsc-action-buttons {
        flex-direction: column;
    }

    .rsc-action-btn {
        width: 100%;
    }

    .rsc-value-display {
        min-width: 80px;
        width: 45%;
    }
}

@media (max-width: 480px) {
    .rsc-slider-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .rsc-slider-header label {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .rsc-value-display {
        width: 100%;
        max-width: none;
    }
}

/* Ensure touch targets are at least 44px */
.rsc-slider,
.rsc-action-btn {
    min-height: 44px;
    min-width: 44px;
}

