[hidden]{display:none!important}
/* One continuous control-and-result view; secondary settings follow it. */
.calculator-controls{margin:32px 0 28px;padding:32px 0 24px;border-block:1px solid #c9cfc2}
.amount-control{max-width:440px;margin:0 auto;text-align:center}
.calculator-controls label{font-size:16px;line-height:1.4}
.amount-control>label{display:block;margin-bottom:18px}
.amount-field{display:flex;align-items:baseline;justify-content:center;gap:2px;width:max-content;max-width:100%;margin:0 auto 12px;border-bottom:1px solid #78877d;padding:0 8px 8px;font-size:40px;line-height:1.2;letter-spacing:-.03em}
.calculator-controls .amount-field input{font:inherit;color:var(--forest);background:transparent;border:0;padding:0;width:4ch;min-width:0;text-align:center;appearance:textfield;-moz-appearance:textfield}
.amount-field input::-webkit-inner-spin-button,.amount-field input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.amount-field .amount-unit{font-size:16px;letter-spacing:0;white-space:nowrap;margin-left:10px;color:var(--muted)}
.calculator-controls input[type=range]{display:block;appearance:none;-webkit-appearance:none;width:100%;height:44px;padding:0;margin:12px 0 0;background:transparent;cursor:pointer;border:0;touch-action:pan-y}
.calculator-controls input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:6px;background:linear-gradient(to right,#233c34 0 var(--amount-progress),#d6dcd1 var(--amount-progress) 100%)}
.calculator-controls input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:26px;height:26px;border:3px solid #f6f2e9;border-radius:50%;background:#233c34;box-shadow:0 0 0 1px #233c34;margin-top:-10px}
.calculator-controls input[type=range]::-moz-range-track{height:6px;border-radius:6px;background:#d6dcd1}
.calculator-controls input[type=range]::-moz-range-progress{height:6px;border-radius:6px;background:#233c34}
.calculator-controls input[type=range]::-moz-range-thumb{width:20px;height:20px;border:3px solid #f6f2e9;border-radius:50%;background:#233c34;box-shadow:0 0 0 1px #233c34}
.slider-limits{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);line-height:1.4}
.calculator-controls input:focus-visible,.calculator-controls select:focus-visible,.calculator-controls summary:focus-visible,.calculator-controls button:focus-visible{outline:3px solid var(--rust);outline-offset:5px;border-radius:5px}
.period-field{display:flex;align-items:center;justify-content:center;gap:14px;margin:28px 0 32px}
.calculator-controls select,.assumption-fields input{font:inherit;font-size:17px;color:var(--forest);background:#fffcf5;border:1px solid #78877d;border-radius:12px;padding:10px 12px;max-width:100%;min-width:0;min-height:46px}
.period-field select{width:125px}
.calculator-controls details{border-top:1px solid #c9cfc2}
.calculator-controls summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;font-size:16px;min-height:56px}
.calculator-controls summary::-webkit-details-marker{display:none}
.disclosure-mark{font-size:25px;font-weight:400;line-height:1}
.calculator-controls details[open] .disclosure-mark{transform:rotate(45deg)}
.assumption-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:10px 0 24px}
.assumption-fields label{display:flex;flex-direction:column;gap:10px;justify-content:space-between}
.assumption-fields small{font-size:13px;font-weight:400;line-height:1.5}
.calculator-controls .field-note{font-size:14px;line-height:1.55;margin:0}
.calculator-controls details .field-note{margin:0 0 24px}
.control-footer{display:flex;align-items:center;justify-content:space-between;gap:20px}
.reset-comparison{font:inherit;font-size:14px;background:transparent;border:0;padding:12px 0;color:var(--forest);text-decoration:underline;text-underline-offset:4px;white-space:nowrap;cursor:pointer;min-height:44px}
.calculator-controls .example-note{font-size:13px;color:var(--muted);line-height:1.5;margin:12px 0 0}
.calculator-controls .input-error{font-size:15px;color:var(--rust);margin:20px 0 0}
.comparison-period{font-size:17px}.result-heading h3{font-size:inherit;line-height:1.45;font-weight:550;margin:0}.result-row .route-detail{font-size:15px;line-height:1.6;margin:14px 0 0}.result-row .route-difference{font-size:15px;line-height:1.6;margin:8px 0 0}.result-chart .result-row+.result-row{margin-top:34px}.investment-loss{border:1px dashed #93482f;background:transparent}.prose .investment-note{font-size:15px;line-height:1.6;margin:24px 0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.calculator-controls{padding-top:28px}.assumption-fields{grid-template-columns:1fr;gap:24px}.amount-field{font-size:38px}.control-footer{display:block}.control-footer .field-note{font-size:13px}.reset-comparison{margin-top:4px}.result-heading h3{max-width:195px}}

/* Scope compact spacing to the interactive figure, preserving the static fallback. */
.comparison-workbench .amount-control>label{margin-bottom:10px}
.comparison-workbench .amount-field{font-size:34px;margin-bottom:2px;padding-bottom:5px}
.comparison-workbench input[type=range]{margin-top:4px}
.comparison-workbench .period-field{margin:4px 0 6px}
.comparison-workbench .result-chart{margin:0}
.comparison-workbench .result-chart figcaption{font-size:14px;text-align:center;margin:0 0 12px}
.comparison-workbench .result-heading{margin-bottom:6px;gap:12px}
.comparison-workbench .result-bar{height:24px}
.comparison-workbench .result-parts{margin-top:6px;gap:4px 16px;font-size:13px}
.comparison-workbench .result-row+.result-row{margin-top:20px}
.comparison-workbench .route-difference{font-size:13px;line-height:1.4;margin:4px 0 0}
.comparison-workbench .result-chart .diagram-note{font-size:13px;line-height:1.5;margin:16px 0 22px}
#comparison-balances h3{font-size:17px;font-weight:550;margin:22px 0 12px}
.balance-list{font-size:14px;line-height:1.6;margin:0 0 24px}
.balance-list>div{margin:0 0 12px}.balance-list dt{font-weight:550}.balance-list dd{margin:0}
@media(max-width:600px){.calculator-controls{padding-top:20px}.comparison-workbench .amount-field{font-size:32px}.comparison-workbench .result-heading h3{font-size:15px}.comparison-workbench .result-heading strong{font-size:20px}.comparison-workbench .result-row+.result-row{margin-top:18px}}

.comparison-workbench .result-heading{align-items:center}
.result-total{display:flex;flex-direction:column;text-align:right;line-height:1.2;flex:none}
.result-total>span{font-size:12px;margin-top:3px}
.comparison-workbench .result-parts{display:grid;grid-template-columns:1fr 1fr;gap:10px;line-height:1.4}
.comparison-workbench .result-parts>span{align-items:flex-start;gap:6px}
.comparison-workbench .result-parts i{width:12px;height:12px;margin-top:3px;box-sizing:border-box}
.comparison-workbench .result-bar>span{transition:width 260ms ease-out}
.comparison-workbench .result-chart figcaption{font-size:14px;line-height:1.5;margin-bottom:8px;text-align:left}
.money-scale{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #c9cfc2;padding-top:5px;margin-top:14px;font-size:11px;line-height:1.4;color:var(--muted)}
.money-scale span:last-child{text-align:right}
.comparison-workbench .outcome-summary{font-size:15px;line-height:1.5;margin:16px 0 0}
.comparison-workbench .result-chart .diagram-note{margin-top:8px}
@media(prefers-reduced-motion:reduce){.comparison-workbench .result-bar>span{transition:none}}
