:root { --calc-ink:#262320; --calc-ivory:#f7f6f2; --calc-stone:#e9e7e0; --calc-gold:#c5a46d; --calc-muted:#68665f; --calc-line:#d8d3c8; }
.investment-page { background:var(--calc-ivory); color:var(--calc-ink); font-family:Inter,Arial,sans-serif; }
.investment-page *, .investment-page *::before, .investment-page *::after { box-sizing:border-box; }
.investment-page h1, .investment-page h2, .investment-page p { margin:0; }
.investment-page .serif { font-family:"Cormorant Garamond",Georgia,serif; font-weight:400; }
.investment-wrap { width:min(1400px,92%); margin:0 auto; }
.investment-hero { padding:56px 0 62px; background:var(--calc-ink); color:var(--calc-ivory); }
.investment-hero .back-link { display:inline-flex; gap:9px; align-items:center; margin-bottom:30px; color:#d5c7ad; font-size:11px; letter-spacing:.04em; }
.investment-hero .back-link:hover { color:var(--calc-gold); }
.investment-hero .eyebrow { color:var(--calc-gold); font-size:10px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; }
.investment-hero h1 { margin-top:12px; color:var(--calc-ivory); font-size:44px; line-height:1.15; }
.investment-hero p { max-width:620px; margin-top:12px; color:#d5d0c7; font-size:14px; line-height:1.8; }
.section-label { color:#8a7654; font-size:10px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; }
.calculator-section { padding:54px 0 80px; background:var(--calc-stone); }
.calculator-grid { display:grid; grid-template-columns:minmax(320px,.72fr) minmax(0,1.28fr); gap:56px; align-items:stretch; }
.calculator-inputs { min-width:0; padding:24px 0 0; }
.calculator-inputs h2 { margin-top:12px; color:var(--calc-ink); font-size:32px; line-height:1.15; }
.input-group { min-width:0; margin-top:24px; }
.input-group label { display:block; margin-bottom:8px; color:#514d47; font-size:11px; font-weight:600; }
.money-field, .number-field { display:flex; height:46px; align-items:center; border-bottom:1px solid #bdb6a8; background:rgba(255,255,255,.62); }
.money-field > span { padding-left:13px; color:#806b48; font-size:13px; }
.money-field input, .number-field input { width:100%; min-width:0; height:100%; padding:0 12px; border:0; outline:0; background:transparent; color:var(--calc-ink); font:14px Inter,Arial,sans-serif; font-variant-numeric:tabular-nums; }
.money-field input:focus, .number-field input:focus { outline:0; box-shadow:inset 0 -1px 0 #68665f; }
.number-field > span { padding:0 12px; color:#806b48; font-size:11px; white-space:nowrap; }
.assumption-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.term-mode { margin:26px 0 0; padding:0; border:0; }
.term-mode legend { margin-bottom:9px; color:#514d47; font-size:11px; font-weight:600; }
.mode-options { display:grid; grid-template-columns:1fr 1fr; padding:3px; border:1px solid #c9c2b4; background:rgba(255,255,255,.48); }
.mode-options label { position:relative; min-width:0; cursor:pointer; }
.mode-options input { position:absolute; width:1px; height:1px; opacity:0; }
.mode-options label span { display:block; padding:10px 12px; color:#625d53; font-size:11px; text-align:center; }
.mode-options input:checked + span { background:var(--calc-ink); color:var(--calc-ivory); }
.mode-options input:focus-visible + span { outline:2px solid #9a7b49; outline-offset:2px; }
.term-fields[hidden], [hidden] { display:none !important; }
.optional-assumptions { margin-top:24px; padding:16px 0; border-top:1px solid #d0cabc; border-bottom:1px solid #d0cabc; }
.optional-assumptions h3 { margin:0 0 14px; color:#514d47; font-size:12px; font-weight:600; }
.optional-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding-bottom:16px; }
.optional-grid .input-group { margin-top:0; }
.optional-grid label span { color:#817b70; font-weight:400; }
.optional-grid select { width:100%; height:46px; padding:0 12px; border:0; border-bottom:1px solid #bdb6a8; border-radius:0; background:rgba(255,255,255,.62); color:var(--calc-ink); font:12px Inter,Arial,sans-serif; }
.optional-note { color:#77736c; font-size:10px; line-height:1.6; }
.form-error { margin-top:20px; padding:12px 14px; border-left:2px solid #a34a3d; background:#fff8f6; color:#863b31; font-size:12px; line-height:1.6; }
.form-error:empty { display:none; }
.calculation-status { min-height:16px; margin-top:8px; color:#68665f; font-size:10px; line-height:1.5; }
.results { display:flex; min-width:0; min-height:100%; flex-direction:column; padding:28px; border:1px solid #dad5ca; background:#f7f6f2; }
.results-heading { display:flex; justify-content:space-between; align-items:start; gap:16px; }
.results-heading h2 { color:var(--calc-ink); font-size:22px; line-height:1.25; }
.result-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:22px; border-top:1px solid #ded9ce; border-bottom:1px solid #ded9ce; }
.result-metric { display:flex; min-width:0; flex-direction:column; justify-content:space-between; gap:10px; padding:15px 12px 15px 0; }
.result-metric + .result-metric { padding-left:16px; border-left:1px solid #ded9ce; }
.result-metric > span { color:#6f6b63; font-size:9px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.result-metric strong { color:#302e2a; font-size:16px; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.legend-dot { display:inline-block; width:8px; height:8px; border-radius:50%; }
.legend-dot--growth { background:#766e5c; }
.legend-dot--principal { background:#c5a46d; }
.chart-wrap { position:relative; display:flex; flex:1 1 auto; min-height:320px; margin-top:16px; }
.investment-chart { display:block; width:100%; height:100%; min-height:320px; overflow:visible; cursor:crosshair; pointer-events:all; }
.investment-chart .grid-line { stroke:#e3dfd6; stroke-width:1; }
.investment-chart .grid-line--vertical { stroke-opacity:.52; stroke-dasharray:2 5; }
.investment-chart .axis-tick { stroke:#aaa397; stroke-width:1; }
.investment-chart .axis-label { fill:#77736c; font:10px Inter,Arial,sans-serif; }
.investment-chart .contributions-area { fill:rgba(197,164,109,.2); }
.investment-chart .balance-line { fill:none; stroke:#766e5c; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.investment-chart .contributions-line { fill:none; stroke:#b48e50; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.investment-chart .figure-dot { fill:#b48e50; stroke:#f7f6f2; stroke-width:2; }
.investment-chart .hover-guide { stroke:#57534b; stroke-width:1; stroke-dasharray:3 4; }
.investment-chart .hover-point { stroke:#f7f6f2; stroke-width:2; }
.investment-chart .hover-point--balance { fill:#766e5c; }
.investment-chart .fmv-endpoint { fill:#766e5c; stroke:#f7f6f2; stroke-width:3; }
.investment-chart .fmv-endpoint-label { fill:#514d47; font:600 10px Inter,Arial,sans-serif; }
.chart-tooltip { position:absolute; z-index:2; display:grid; min-width:172px; gap:6px; padding:10px 12px; border:1px solid #ccc5b7; background:#fffefa; color:#514d47; box-shadow:0 4px 16px rgba(38,35,32,.12); font-size:10px; pointer-events:none; }
.chart-tooltip > strong { padding-bottom:4px; border-bottom:1px solid #e3dfd6; color:var(--calc-ink); font-size:11px; }
.chart-tooltip > span { display:flex; justify-content:space-between; gap:12px; }
.chart-tooltip b { color:#302e2a; font-variant-numeric:tabular-nums; }
.chart-legend { display:flex; gap:20px; flex-wrap:wrap; margin-top:8px; color:#6f6b63; font-size:10px; }
.chart-legend span { display:inline-flex; align-items:center; gap:7px; }
.yearly-section { margin-top:64px; }
.yearly-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:20px; }
.yearly-heading h2 { margin-top:10px; color:var(--calc-ink); font-size:32px; line-height:1.15; }
.yearly-heading > p { max-width:320px; color:#6f6b63; font-size:11px; line-height:1.6; }
.table-scroll { overflow-x:auto; border-top:1px solid #ccc5b7; }
.projection-table { width:100%; border-collapse:collapse; text-align:left; font-size:11px; font-variant-numeric:tabular-nums; }
.projection-table th, .projection-table td { padding:13px 10px; border-bottom:1px solid #ddd8cd; }
.projection-table th { color:#75664f; font-size:9px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.projection-table td { color:#56534c; }
.projection-table td:not(:first-child), .projection-table th:not(:first-child) { text-align:right; }
.investment-page a:focus-visible, .investment-page button:focus-visible, .investment-page input:not([data-min]):focus-visible, .investment-page select:focus-visible { outline:2px solid #9a7b49; outline-offset:3px; }
@media (max-width:850px) { .calculator-grid { grid-template-columns:1fr; gap:32px; } .calculator-inputs { padding-top:0; } .results { min-height:0; order:2; } .chart-wrap { flex:none; height:380px; } .investment-chart { height:100%; } }
@media (max-width:600px) { .investment-wrap { width:88%; } .investment-hero { padding:38px 0 44px; } .investment-hero h1 { font-size:36px; } .calculator-section { padding:38px 0 58px; } .calculator-inputs h2, .yearly-heading h2 { font-size:28px; } .optional-grid { grid-template-columns:1fr; } .results { padding:20px 16px; } .result-metrics { grid-template-columns:1fr; } .result-metric { gap:5px; padding:12px 0; } .result-metric + .result-metric { padding-left:0; border-top:1px solid #ded9ce; border-left:0; } .chart-wrap { height:320px; min-height:320px; } .investment-chart { min-height:320px; } .yearly-heading { align-items:start; flex-direction:column; gap:10px; } .projection-table { min-width:560px; } }
@media (prefers-reduced-motion: reduce) { .investment-page *, .investment-page *::before, .investment-page *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; } }
