/* Base layout copied from margincalc/style.css so this tool matches the other calculators. */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.tool-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-header {
    text-align: center;
    margin-bottom: 32px;
}

.tool-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.tool-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.calculator-card,.table-responsive{max-width:1000px;margin:0 auto 28px}.calc-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:28px}.inputs-section,.results-section{display:flex;flex-direction:column;gap:14px}.form-group{display:flex;flex-direction:column;gap:7px}.form-control{padding:12px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;background:#fff}.result-card{padding:16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.primary-result{background:#eff6ff}.result-label{color:#64748b;font-size:.85rem}.result-value{font-size:2.2rem;font-weight:800;color:#1e3a8a}.result-value.small{font-size:1.2rem;color:#0f172a}.result-sub{margin-top:5px;color:#475569}.results-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.table-responsive{overflow-x:auto}.table-responsive table{width:100%;border-collapse:collapse;background:#fff}.table-responsive th,.table-responsive td{padding:12px;border-bottom:1px solid #e2e8f0;text-align:right}.table-responsive th:first-child,.table-responsive td:first-child{text-align:left}@media(max-width:760px){.calc-grid{grid-template-columns:1fr}.results-grid{grid-template-columns:1fr}}
