.calculator-container {
        font-family: Arial, sans-serif;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
.calculator {
	background-color: #f5f5f5;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
}
.center {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.calculator-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.input-section {
	flex: 1;
	min-width: 300px;
}

.chart-section {
	flex: 1;
	min-width: 300px;
	display: flex;
	align-items: center;
}

.input-group {
	margin-bottom: 15px;
}

label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

input[type="number"], input[type="range"] {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}

input[type="date"] { 
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}
input[type="range"] {
	margin-top: 5px;
}

button {
	background-color: #4CAF50;
	color: white;
	padding: 10px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	margin-top: 10px;
}

button:hover {
	background-color: #45a049;
}

#sip-result, #swp-result, #stp-result, #ppf-result, #sip-emi-result {
	margin-top: 20px;
	padding: 15px;
	background-color: #e9f7ef;
	border-radius: 4px;
}

.emi-derived {
    background: #f0f7ff;
    border-left: 3px solid #2563eb;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 0.95rem;
}
.emi-derived span {
    font-weight: 700;
}

canvas {
	width: 100% !important;
	height: auto !important;
	max-height: 300px;
}

/* NPS result grid */
.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.result-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-item.highlight {
    background: #e8f5e9;
    border-left: 3px solid #4CAF50;
}

.result-label {
    font-size: 0.78em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3e50;
}

.nps-assumption-note {
    font-size: 0.8em;
    color: #888;
    margin: 4px 0 0;
}

@media (max-width: 768px) {
    .calculator-row {
        flex-direction: column;
    }

    .chart-section {
        margin-top: 20px;
    }

    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PPF rate badge */
.ppf-rate-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.badge-label {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-rate {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2e7d32;
}
.badge-period {
    font-size: 0.82rem;
    color: #666;
}

/* Year-by-year table (shared across all calculators) */
.calc-table-wrapper {
    overflow-x: auto;
    margin-top: 8px;
}
.calc-yearly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.calc-yearly-table th,
.calc-yearly-table td {
    padding: 7px 12px;
    border: 1px solid #ddd;
    text-align: right;
}
.calc-yearly-table th {
    background: #4CAF50;
    color: #fff;
    text-align: center;
    font-weight: 600;
}
.calc-yearly-table tr:nth-child(even) {
    background: #f9f9f9;
}
.calc-yearly-table td:first-child {
    text-align: center;
    font-weight: 600;
    color: #333;
}
.ppf-table-heading {
    margin: 24px 0 6px;
    font-size: 1.05rem;
    color: #2c3e50;
}

/* FAQ section margin when rendered on calculator pages */
.post-faq {
    padding: 0 20px;
}

/* Calculator info section */
.calc-info-section {
    margin-top: 32px;
    padding: 24px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}
.calc-info-section h2 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #2c3e50;
}

/* Key facts grid */
.calc-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 16px 0;
}
@media (max-width: 768px) {
    .calc-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.calc-fact-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 12px;
    text-align: center;
}
.calc-fact-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2e7d32;
}
.calc-fact-label {
    font-size: 0.78rem;
    color: #666;
    margin-top: 5px;
    line-height: 1.3;
}

/* Rule of 72 — quick-select chips */
.r72-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 4px;
}

.r72-chip {
    background: #fff;
    color: #2e7d32;
    border: 1.5px solid #4CAF50;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0;
    transition: background 0.15s, color 0.15s;
}

.r72-chip:hover,
.r72-chip[aria-pressed="true"] {
    background: #4CAF50;
    color: #fff;
}

.r72-chip:focus-visible {
    outline: 3px solid #2196F3;
    outline-offset: 2px;
}

/* Rule of 72 — inline validation error */
.r72-error {
    color: #c62828;
    background: #ffebee;
    border-left: 3px solid #c62828;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* Rule of 72 — result container */
#r72-result {
    margin-top: 20px;
    width: 100%;
}

/* Visible focus styles for all calculator inputs */
input[type="number"]:focus-visible,
input[type="range"]:focus-visible {
    outline: 3px solid #2196F3;
    outline-offset: 2px;
}

