.calculators-page { --calc-blue: #005bb5; --calc-muted: #64748b; --calc-border: #d9e4f0; --calc-tint: #f0f5fb; }
.calculator-container { width: min(1280px, calc(100% - 80px)); }
.calculators-hero { padding: 23px 0 40px; background: linear-gradient(110deg, #f6f9fe, #fff 78%); border-bottom: 1px solid #e2e8f0; }
.calculator-breadcrumb { display: flex; gap: 12px; color: var(--calc-muted); font-size: 11.88px; }
.calculator-breadcrumb a:hover { color: var(--calc-blue); text-decoration: underline; }
.calculator-intro { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-top: 27px; }
.calculator-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--calc-blue); font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: 1.8px; text-transform: uppercase; }
.calculator-eyebrow > span { width: 22px; height: 2px; background: currentColor; }
.calculator-intro h1 { margin-top: 14px; color: var(--navy); font-size: clamp(36px, 3.5vw, 50px); font-weight: 400; line-height: 1.2; letter-spacing: -1.8px; }
.calculator-intro h1 span { color: var(--calc-blue); font-weight: 600; }
.calculator-intro-text { margin-top: 18px; color: #475569; font-size: 14px; line-height: 1.85; }
.calculator-hero-art { display: flex; align-items: center; gap: 20px; padding-right: 18px; }
.calculator-hero-art svg { width: 230px; height: auto; }
.calculator-hero-art p { color: var(--calc-muted); font-size: 13px; line-height: 1.8; }
.calculator-hero-art strong { color: var(--navy); font-weight: 500; }
.calculator-tools { padding-top: 34px; padding-bottom: 64px; }
.calculator-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.calculator-section-heading h2 { color: var(--navy); font-size: 18px; font-weight: 500; letter-spacing: -.3px; }
.calculator-section-heading > span { color: var(--calc-muted); font-size: 11px; }
.calculator-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.calculator-choice { display: flex; align-items: center; gap: 13px; min-height: 77px; padding: 15px 17px; border: 1px solid var(--calc-border); border-radius: 7px; background: #fff; color: var(--navy); text-align: left; transition: border-color .18s, background .18s; }
.calculator-choice:hover { border-color: #83afd8; background: #f8fbff; }
.calculator-choice[aria-pressed='true'] { border-color: var(--calc-blue); background: var(--calc-tint); box-shadow: inset 0 0 0 1px var(--calc-blue); }
.choice-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; background: #edf4fc; color: var(--calc-blue); }
.choice-icon svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.choice-label { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.5; }
.choice-label small { display: block; margin-top: 4px; color: var(--calc-muted); font-size: 9.5px; font-weight: 400; line-height: 1.5; }
.calculator-workspace { margin-top: 26px; border: 1px solid var(--calc-border); border-radius: 10px; background: #fff; box-shadow: 0 12px 40px rgb(0 51 102 / 4%); overflow: hidden; }
.workspace-heading { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-bottom: 1px solid #e2e8f0; }
.workspace-title { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 27px 32px; border-right: 1px solid #e2e8f0; }
.workspace-heading h2 { margin-top: 7px; color: var(--navy); font-size: 27px; font-weight: 500; letter-spacing: -.8px; }
.workspace-title > p:last-child { margin-top: 7px; color: var(--calc-muted); font-size: 12px; line-height: 1.8; }
.calculator-reset { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 22px; padding: 8px 14px; border: 1px solid #ccdef2; border-radius: 5px; background: #fff; color: var(--calc-blue); font-size: 11px; }
.calculator-reset:hover { background: var(--calc-tint); }
.calculator-reset svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.calculator-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.calculator-inputs { min-width: 0; padding: 32px; border-right: 1px solid #e2e8f0; }
#calculator-form { display: grid; gap: 28px; }
.field-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.field-top label { max-width: 60%; color: var(--navy); font-size: 12px; line-height: 1.6; }
.number-input { display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 7px 9px; border: 1px solid #ccdef2; border-radius: 5px; background: #f5f9ff; }
.number-input span { color: var(--calc-muted); font-size: 11px; }
.number-input input { width: 98px; min-height: 28px; padding: 0; border: 0; background: transparent; color: var(--calc-blue); font: 600 13px Montserrat, Arial, sans-serif; text-align: right; appearance: textfield; -moz-appearance: textfield; }
.number-input input::-webkit-inner-spin-button, .number-input input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.number-input:focus-within { outline: 2px solid var(--calc-blue); outline-offset: 2px; }
.number-input input:focus { outline: none; }
.number-input:has(input[aria-invalid='true']) { border-color: #a83131; background: #fff5f5; }
.calculator-slider { display: block; width: 100%; height: 26px; margin: 12px 0 0; accent-color: var(--calc-blue); cursor: pointer; }
.range-hints { display: flex; justify-content: space-between; gap: 12px; color: var(--calc-muted); font-size: 9px; line-height: 1.6; }
.input-helper { margin-top: 18px; padding-top: 17px; border-top: 1px solid #e2e8f0; color: var(--calc-muted); font-size: 10px; line-height: 1.8; }
.calculator-output { min-width: 0; padding: 30px 32px; background: linear-gradient(145deg, #f9fbfe, #fff 65%); }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-eyebrow { color: var(--calc-muted); font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.result-badge { padding: 4px 9px; border: 1px solid #dce8f6; border-radius: 20px; background: #fff; color: var(--calc-muted); font-size: 9px; }
.result-label { margin-top: 23px; color: var(--navy); font-size: 13px; }
.result-amount { margin-top: 4px; color: var(--calc-blue); font-size: clamp(29px, 3vw, 42px); font-weight: 600; line-height: 1.3; letter-spacing: -1.5px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid #e2e8f0; }
.result-stats > div { min-width: 0; }
.result-stats dt { color: var(--calc-muted); font-size: 10px; line-height: 1.7; }
.result-stats dd { margin: 5px 0 0; color: var(--navy); font-size: 16px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.calculator-chart { margin-top: 25px; }
.projection-chart { display: block; width: 100%; height: auto; overflow: visible; }
.projection-chart text { fill: #64748b; font: 10px Montserrat, Arial, sans-serif; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 21px; margin-top: 7px; color: var(--calc-muted); font-size: 9px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { display: inline-block; width: 17px; height: 3px; background: var(--calc-blue); }
.chart-legend .legend-base { height: 0; border-top: 2px dashed #83afd8; background: transparent; }
.result-insight { margin-top: 24px; padding: 13px 15px; border-left: 2px solid #6aa8e8; border-radius: 0 4px 4px 0; background: #eff5fc; color: #475569; font-size: 11px; line-height: 1.85; }
.calculator-breakdown { margin-top: 18px; }
.calculator-breakdown summary, .calculator-method summary { display: list-item; min-height: 44px; padding: 10px 0; color: var(--calc-blue); font-size: 11px; font-weight: 500; cursor: pointer; }
.table-scroll { max-height: 350px; margin-top: 7px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 5px; }
.table-scroll table { width: 100%; border-collapse: collapse; color: #475569; font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll caption { padding: 12px; background: #f3f7fc; color: var(--navy); font-size: 10px; text-align: left; }
.table-scroll th, .table-scroll td { padding: 11px 12px; border-top: 1px solid #e2e8f0; white-space: nowrap; }
.table-scroll thead th { color: var(--navy); font-weight: 600; white-space: normal; }
.table-scroll tr > :first-child { text-align: left; }
.table-scroll tbody th { font-weight: 400; }
.delay-chart { display: flex; align-items: stretch; gap: 20px; padding-top: 10px; }
.delay-column { flex: 1; min-width: 0; text-align: center; }
.delay-column strong { display: block; color: var(--navy); font-size: 11px; font-weight: 600; }
.delay-track { display: flex; align-items: flex-end; justify-content: center; height: 155px; margin-top: 9px; border-bottom: 1px solid #d9e4f0; }
.delay-track span { display: block; width: 65%; border-radius: 5px 5px 0 0; background: #a9ccec; }
.delay-track .start-now { background: var(--calc-blue); }
.delay-column > span { display: block; margin-top: 8px; color: var(--calc-muted); font-size: 10px; }
.calculator-bottom-note { display: flex; align-items: flex-start; gap: 10px; padding: 16px 30px; border-top: 1px solid #e2e8f0; background: #f8fafd; color: var(--calc-muted); }
.calculator-bottom-note svg { width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.calculator-bottom-note p { font-size: 10px; line-height: 1.8; }
.illustration-download { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: center; min-width: 0; padding: 24px 32px; background: #fbfdff; }
.download-intro h3 { color: var(--navy); font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.download-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 14px; }
.prepared-for { min-width: 0; }
.prepared-for label { display: block; color: var(--navy); font-size: 10px; }
.prepared-for label span { color: var(--calc-muted); }
.prepared-for input { display: block; width: 100%; min-width: 0; min-height: 46px; margin-top: 6px; padding: 10px 12px; border: 1px solid #ccdef2; border-radius: 5px; background: #fff; color: var(--navy); font: 12px Montserrat, Arial, sans-serif; }
.prepared-for input::placeholder { color: var(--calc-muted); }
.prepared-for input:focus-visible { outline: 2px solid var(--calc-blue); outline-offset: 3px; }
.prepared-for input[aria-invalid='true'] { border-color: #a83131; }
.calculator-download-button { gap: 14px; min-height: 46px; padding: 11px 17px; border-radius: 5px; background: var(--calc-blue); color: #fff; font-size: 11px; white-space: nowrap; }
.calculator-download-button:hover { background: var(--navy); }
.calculator-download-button svg { width: 19px; height: 19px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.calculator-download-button:disabled { opacity: .55; cursor: default; transform: none; }
.download-status { grid-column: 1 / -1; color: var(--calc-muted); font-size: 11px; line-height: 1.8; }
.download-status:empty { display: none; }
.illustration-contact-form { display: grid; gap: 12px; min-width: 0; }
.download-complete-dialog { position: fixed; width: min(340px, calc(100% - 40px)); margin: auto; padding: 42px 24px 30px; border: 1px solid #d9e4f0; border-radius: 12px; background: #fff; color: var(--navy); text-align: center; box-shadow: 0 20px 60px rgb(0 51 102 / 18%); }
.download-complete-dialog::backdrop { background: rgb(0 25 51 / 35%); }
.download-complete-icon { display: block; margin: 0 auto 16px; color: #005bb5; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.download-complete-dialog p { font-size: 18px; font-weight: 500; }
.download-complete-close { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--navy); }
.download-complete-close svg { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.goal-presets { margin-bottom: 26px; padding-bottom: 23px; border-bottom: 1px solid #e2e8f0; }
.preset-label { color: var(--navy); font-size: 12px; }
.preset-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.preset-buttons button { min-height: 40px; padding: 7px 11px; border: 1px solid var(--calc-border); border-radius: 5px; background: #fff; color: #475569; font-size: 10px; }
.preset-buttons button[aria-pressed='true'] { border-color: var(--calc-blue); background: var(--calc-tint); color: var(--calc-blue); }
.preset-note { margin-top: 11px; color: var(--calc-muted); font-size: 9px; line-height: 1.8; }
.calculator-follow-up { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin-top: 30px; padding: 30px 32px; border: 1px solid var(--calc-border); border-radius: 8px; background: #f3f7fc; }
.calculator-follow-up h2 { margin-top: 9px; color: var(--navy); font-size: 26px; font-weight: 400; letter-spacing: -.7px; }
.calculator-follow-up p { max-width: 600px; margin-top: 10px; color: #475569; font-size: 12px; line-height: 1.85; }
.calculator-cta { gap: 16px; flex-shrink: 0; min-height: 49px; padding: 12px 18px; border-radius: 4px; background: var(--calc-blue); color: #fff; font-size: 12px; }
.calculator-cta:hover { background: var(--navy); }
.calculator-cta svg { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.5; }
.calculator-method { margin-top: 22px; padding: 0 2px; }
.calculator-method > div { max-width: 1000px; padding: 10px 0 0; color: var(--calc-muted); font-size: 11px; line-height: 1.9; }
.calculator-method p + p { margin-top: 13px; }
.calculator-method a { color: var(--calc-blue); text-decoration: underline; text-underline-offset: 3px; }
.calculator-error, .calculator-noscript { padding: 20px; border: 1px solid #e9bfc0; border-radius: 6px; background: #fff7f7; color: #8b2929; font-size: 13px; line-height: 1.8; }
.calculator-noscript { margin-top: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.calculators-page button:focus-visible, .calculators-page summary:focus-visible, .calculators-page input[type='range']:focus-visible, .calculators-page .table-scroll:focus-visible { outline: 2px solid var(--calc-blue); outline-offset: 4px; }
.calculators-page .services-menu a[aria-current='page'] { background: var(--calc-tint); color: var(--calc-blue); }
@media (max-width: 1199px) {
  .calculator-container { width: calc(100% - 64px); }
  .calculator-hero-art { gap: 5px; padding-right: 0; }
  .calculator-hero-art svg { width: 180px; }
  .calculator-choice { gap: 10px; padding-inline: 12px; }
  .choice-label { font-size: 12px; }
  .choice-label small { font-size: 9px; }
  .calculator-inputs, .calculator-output { padding: 26px; }
  .workspace-title, .illustration-download { padding-inline: 26px; }
}
@media (max-width: 1023px) {
  .calculator-hero-art p { display: none; }
  .calculator-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calculator-body, .workspace-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .calculator-inputs, .calculator-output { padding: 22px; }
  .field-top { align-items: flex-start; flex-direction: column; gap: 8px; }
  .field-top label { max-width: 100%; }
  .number-input { width: 100%; }
  .number-input input { width: 100%; }
  .calculator-follow-up { align-items: flex-start; flex-direction: column; gap: 22px; }
  .workspace-title, .illustration-download { padding: 22px; }
  .download-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calculator-download-button { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 767px) {
  .calculator-container { width: calc(100% - 40px); }
  .calculators-hero { padding-top: 18px; padding-bottom: 30px; }
  .calculator-breadcrumb { font-size: 10px; }
  .calculator-intro { padding-top: 23px; }
  .calculator-intro h1 { font-size: clamp(31px, 7.5vw, 44px); letter-spacing: -1.1px; }
  .calculator-intro-text { font-size: 12px; line-height: 1.9; }
  .calculator-hero-art { display: none; }
  .desktop-break { display: none; }
  .calculator-tools { padding-top: 26px; padding-bottom: 42px; }
  .calculator-section-heading { margin-bottom: 14px; }
  .calculator-section-heading h2 { font-size: 16px; }
  .calculator-section-heading > span { display: none; }
  .calculator-choices { gap: 9px; }
  .calculator-choice { gap: 9px; min-height: 72px; padding: 12px; }
  .choice-icon { width: 28px; height: 32px; border-radius: 5px; }
  .choice-icon svg { width: 21px; height: 21px; }
  .choice-label { font-size: 11px; }
  .choice-label small { margin-top: 3px; font-size: 8px; }
  .calculator-workspace { margin-top: 21px; border-radius: 8px; }
  .workspace-heading { grid-template-columns: minmax(0, 1fr); }
  .workspace-title { padding: 22px 20px; border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .workspace-heading h2 { font-size: 24px; }
  .workspace-title > p:last-child { font-size: 11px; }
  .calculator-eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .calculator-body { grid-template-columns: minmax(0, 1fr); }
  .calculator-inputs { padding: 25px 20px; border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .calculator-output { padding: 25px 20px; }
  .field-top { flex-direction: row; align-items: center; gap: 12px; }
  .field-top label { max-width: 57%; font-size: 11px; }
  .number-input { width: 121px; padding-inline: 8px; }
  .number-input input { width: 85px; font-size: 16px; }
  .projection-chart text { font-size: 16px; }
  #calculator-form { gap: 24px; }
  .result-amount { font-size: 34px; }
  .result-stats dd { font-size: 14px; }
  .result-stats dt { font-size: 9px; }
  .result-badge { font-size: 8px; }
  .calculator-bottom-note { padding: 15px 18px; }
  .calculator-bottom-note p { font-size: 9px; }
  .illustration-download { padding: 24px 20px; }
  .download-intro h3 { font-size: 21px; }
  .download-controls { align-items: stretch; gap: 14px; }
  .prepared-for input { width: 100%; font-size: 16px; }
  .calculator-download-button { width: 100%; justify-content: space-between; min-height: 48px; }
  .calculator-follow-up { margin-top: 23px; padding: 24px 22px; }
  .calculator-follow-up h2 { font-size: 24px; }
  .calculator-follow-up p { font-size: 11px; }
  .calculator-cta { width: 100%; justify-content: space-between; font-size: 11px; }
  .calculator-method > div { font-size: 10px; }
  .delay-chart { gap: 10px; }
  .delay-column strong { font-size: 9px; }
  .delay-column > span { font-size: 8px; }
}
@media (max-width: 359px) {
  .calculator-container { width: calc(100% - 32px); }
  .calculator-choice { padding-inline: 8px; gap: 6px; }
  .choice-label { font-size: 10px; }
  .choice-label small { font-size: 7.5px; }
  .workspace-title, .illustration-download, .calculator-inputs, .calculator-output { padding-inline: 16px; }
  .number-input { width: 112px; }
  .number-input input { width: 76px; }
  .result-amount { font-size: 29px; }
  .result-heading { gap: 8px; }
  .result-eyebrow { font-size: 9px; }
  .result-badge { padding-inline: 6px; font-size: 7px; }
}
@media (max-width: 479px) {
  .download-controls { grid-template-columns: minmax(0, 1fr); }
}
