cat > /tmp/styles-complete.css << 'EOF'
/* ===== Global reset ===== */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #111827;
    line-height: 1.45;
}
/* ===== Shared layout ===== */
.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 18px 40px;
}
header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.02em;
}
.sub {
    margin: 0;
    color: #4b5563;
    max-width: 70ch;
}
/* ===== Grid & cards ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
@media (min-width: 720px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.card {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
}
.card h2 {
    margin: 0 0 6px;
    font-size: 18px;
}
.card p {
    margin: 0 0 12px;
    color: #4b5563;
}
a.button, button.button {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background: #1d4ed8;
    padding: 9px 12px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
a.button:hover, button.button:hover {
    background: #1e40af;
}
/* ===== Shared footer ===== */
footer.site-footer {
    margin-top: 22px;
    padding-top: 14px;
    padding-right: 18px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    color: #4b5563;
    font-size: 13px;
}
footer.site-footer .donate-text {
    text-align: right;
    max-width: 70ch;
}
footer.site-footer a.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
footer.site-footer a.donate-btn:hover {
    background: #e5e7eb;
}
footer.site-footer .donate-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #93c5fd;
    display: inline-block;
}

/* ========================================
   SHARED CALCULATOR STYLES
   ======================================== */

/* Summary Grid for Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.summary-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
    font-weight: 600;
}

.summary-value {
    font-size: 2em;
    font-weight: bold;
}

/* Chart Section */
.chart-section {
    margin: 40px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.chart-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

#rmdChart {
    max-height: 400px;
}

/* Blue Info Box for Interpretation */
.info-box-blue {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.info-box-blue h3 {
    color: #2196F3;
    margin-top: 0;
}

.info-box ul {
    list-style-position: inside;
    color: #555;
}

.info-box li {
    margin: 10px 0;
    line-height: 1.6;
}

.info-box strong {
    color: #333;
}

/* Table Section */
.table-section {
    margin: 40px 0;
}

.table-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th {
    background: #667eea;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Results container */
.results-container {
    margin-top: 40px;
}

.results-container h2 {
    text-align: center;
    color: #667eea;
    font-size: 2em;
    margin-bottom: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-value {
        font-size: 1.5em;
    }

    .chart-wrapper {
        height: 300px;
    }

    .data-table {
        font-size: 0.9em;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}
EOF
cat /tmp/styles-complete.css | pbcopy