/* A calm, editorial look for a calculator used in client conversations. */
:root { --outlook-display: Georgia, "Times New Roman", serif; }
body.clean-layout {
  --bg: #eef3f1; --navy: #102b2a; --ink: #152f30; --ink-soft: #40595b;
  --teal: #175b4c; --border: #d3dfdb; --radius: 18px; --shadow: 0 5px 18px #102b2a08;
}
body.clean-layout .brand-symbol {
  color: #e8f4de; background: #264843; border-color: #52706a; border-radius: 11px;
}
body.clean-layout .topbar { border-bottom: 1px solid #ffffff25; height: 66px; }
body.clean-layout .workspace { padding-top: 23px; }
body.clean-layout .page-heading {
  position: relative; isolation: isolate; overflow: hidden;
  align-items: center; padding: clamp(22px,4vw,45px);
  background: linear-gradient(108deg,#102b2a 37%,#234942 100%);
  border-radius: 21px; color: #f2f8f2; margin-bottom: 18px;
}
body.clean-layout .page-heading::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 54%;
  background: repeating-radial-gradient(ellipse at 94% 120%,transparent 0 20px,#c5ebd51e 21px 22px,transparent 23px 36px);
  mask-image: linear-gradient(90deg,transparent,#000 75%);
}
body.clean-layout .workspace-kicker {
  display: block; color: #4a6864; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .11em;
}
body.clean-layout .page-heading .workspace-kicker { color: #c2decf; margin-bottom: 9px; }
body.clean-layout .page-heading h1 {
  color: inherit; font: 400 clamp(2.05rem,4vw,3.1rem)/1.06 var(--outlook-display); letter-spacing: -.042em;
}
body.clean-layout .page-heading p { color: #e0ede7; margin-top: 10px; }
body.clean-layout .page-heading .reference-tag {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0; letter-spacing: 0;
  background: #ffffff0d; border: 1px solid #d1eee644; padding: 9px 13px; border-radius: 12px; color: #f4faf7;
}
body.clean-layout .page-heading .reference-tag small { color: #c2decf; font-size: .75rem; }
body.clean-layout .page-heading .reference-tag svg { width: 18px; }
body.clean-layout .journey-nav { background: #e1ebe7; border-radius: 14px; }
body.clean-layout .journey-tab[aria-selected="true"] { border-color: #c6d9d0; box-shadow: 0 2px 7px #16382f10; }
body.clean-layout .form-card { border-top: 3px solid #92b4a7; }
body.clean-layout .form-card :is(h2,h3),
body.clean-layout .changes-panel .panel-header h2,
body.clean-layout .retirement-spending h2 {
  font: 400 clamp(1.38rem, 2.6vw, 1.8rem)/1.12 var(--outlook-display); letter-spacing: -.025em;
}
body.clean-layout #outlook-hero .status-banner {
  --summary-bg: #e2f1e9; --summary-ink: #153d30; --summary-mark: #205e4b; --summary-line: #b6d6c5;
  position: relative; display: grid; gap: 22px; align-items: center;
  padding: clamp(20px,3.3vw,36px); border: 1px solid var(--summary-line);
  border-radius: 20px; background: var(--summary-bg); box-shadow: 0 5px 17px #20342c09;
}
body.clean-layout #outlook-hero .status-banner.has-capital { grid-template-columns: minmax(0,1.35fr) minmax(250px,1fr); }
body.clean-layout #outlook-hero .status-banner.needs-attention {
  --summary-bg: #faf0dd; --summary-ink: #55391b; --summary-mark: #7c5120; --summary-line: #e4ca9a;
}
body.clean-layout #outlook-hero .status-banner.spending-gap {
  --summary-bg: #fae9e4; --summary-ink: #57251f; --summary-mark: #892f24; --summary-line: #e4b6ac;
}
body.clean-layout #outlook-hero .status-banner :is(p,h2,svg) { color: var(--summary-ink); }
body.clean-layout #outlook-hero .status-banner .gap-marker {
  display: flex; align-items: center; gap: 7px; margin: 0 0 10px;
  color: var(--summary-mark); text-transform: uppercase; letter-spacing: .09em; font-size: .75rem;
}
body.clean-layout .gap-marker svg { width: 17px; height: 17px; flex: none; }
body.clean-layout #outlook-hero .status-banner h2 {
  font: 400 clamp(1.8rem,3.4vw,2.65rem)/1.08 var(--outlook-display);
  letter-spacing: -.035em; overflow-wrap: anywhere;
}
body.clean-layout .summary-amount { display: block; font-size: clamp(2.65rem,6vw,4.7rem); line-height: .98; }
body.clean-layout .summary-amount-label { display: block; margin-top: 4px; font-size: .72em; }
body.clean-layout .status-banner .summary-detail { margin-top: 10px; }
body.clean-layout #outlook-hero .summary-basis { font-size: .8125rem; margin-top: 10px; }
body.clean-layout .summary-capital {
  min-width: 0; padding: clamp(13px,2vw,22px); border: 1px solid var(--summary-line);
  background: #ffffffa6; border-radius: 14px; color: var(--summary-ink);
}
body.clean-layout .summary-capital dl {
  margin: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px;
}
body.clean-layout .summary-capital dt { font-size: .875rem; line-height: 1.35; }
body.clean-layout .summary-capital dd {
  margin: 6px 0 0; font: 600 clamp(1rem,2.1vw,1.65rem)/1.1 var(--outlook-display); overflow-wrap: anywhere;
}
body.clean-layout .capital-track { height: 7px; margin-top: 15px; border-radius: 99px; overflow: hidden; background: var(--summary-line); }
body.clean-layout .capital-track i { display: block; height: 100%; border-radius: inherit; background: var(--summary-mark); }
body.clean-layout #outlook-hero .summary-capital p { font-size: .8125rem; }
body.clean-layout .scenario-launch { justify-content: flex-start; }
body.clean-layout .scenario-launch > .button { color: #7c2d26; border-color: #cfa59c; min-height: 42px; }
body.clean-layout .scenario-launch > .button:hover { background: #fff0ea; }
body.clean-layout .retirement-spending-heading {
  display: flex; align-items: flex-end; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px;
}
body.clean-layout .retirement-spending-heading h2 { margin-top: 4px; }
body.clean-layout .retirement-spending-heading .retirement-spending-legend { margin: 0; }
body.clean-layout .retirement-spending-body {
  display: grid; grid-template-columns: minmax(0,1fr) 196px;
  gap: 16px; margin-bottom: 10px;
}
body.clean-layout .retirement-spending-plot {
  min-width: 0; padding: 11px 8px 8px 0; background: #f7faf8; border: 1px solid #dce8e2; border-radius: 13px;
  align-content: center;
}
body.clean-layout .retirement-spending-readout {
  align-content: start; margin: 0; padding: 13px 15px; border: 1px solid #dbe6e2;
  background: #f3f7f5; border-radius: 13px; min-width: 0;
}
body.clean-layout .retirement-spending-age { width: 100%; justify-content: space-between; }
body.clean-layout .retirement-spending-age label { font-size: .875rem; }
body.clean-layout #retirement-spending-value { display: grid; gap: 13px; padding: 0; width: 100%; }
body.clean-layout .spending-stat { display: block; padding: 0 0 0 9px; border-left: 2px solid #146b62; }
body.clean-layout .spending-stat.cost-stat { border-color: #994622; }
body.clean-layout #retirement-spending-value strong {
  display: block; margin: 3px 0 0; font: 600 clamp(1.15rem,2.6vw,1.55rem)/1.05 var(--outlook-display); overflow-wrap: anywhere;
}
body.clean-layout .report-details > summary { min-height: 59px; }
body.clean-layout .strategy-metric:first-child { background: #eef4f4; border-color: #bdd3cd; }
body.clean-layout .strategy-metric:first-child strong { font: 600 clamp(1.8rem,4vw,2.55rem)/1 var(--outlook-display); }
body.clean-layout.historical-mode .page-heading { background: linear-gradient(108deg,#581b22 38%,#862d34); }
body.clean-layout.historical-mode .page-heading::before {
  background: repeating-radial-gradient(ellipse at 94% 120%,transparent 0 20px,#ffcab82a 21px 22px,transparent 23px 36px);
}
body.clean-layout.historical-mode .page-heading :is(.workspace-kicker,p,small) { color: #fae3e2; }
body.clean-layout.historical-mode #outlook-hero .status-banner {
  --summary-bg: #f9dedb; --summary-ink: #601d24; --summary-mark: #85242c; --summary-line: #ce898e;
  background: var(--summary-bg); border-color: var(--summary-line);
}
body.clean-layout.historical-mode :is(.retirement-spending-plot,.retirement-spending-readout) {
  background: #fff7f5; border-color: #edc6c4;
}
body.clean-layout.historical-mode .workspace-kicker { color: #78524f; }
body.clean-layout.investment-mode .page-heading { background: linear-gradient(108deg,#114535 38%,#29664b); }
body.clean-layout.investment-mode .strategy-metric:first-child { background: #e2f3e8; border-color: #91bfa7; }
body.clean-layout.investment-mode .strategy-metric.strategy-value { background: #fff; border-color: var(--border); }
@media screen and (max-width: 735px) {
  body.clean-layout .page-heading .reference-tag { display: none; }
  body.clean-layout #outlook-hero .status-banner.has-capital { grid-template-columns: 1fr; }
  body.clean-layout .retirement-spending-body { grid-template-columns: 1fr; }
  body.clean-layout #retirement-spending-value { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.clean-layout .retirement-spending-readout { gap: 12px; }
  body.clean-layout .retirement-spending-age { justify-content: flex-start; }
}
@media screen and (max-width: 480px) {
  body.clean-layout .page-heading { padding: 20px; border-radius: 16px; }
  body.clean-layout .page-heading p { font-size: .9375rem; }
  body.clean-layout .journey-tab { flex-direction: column; gap: 4px; padding: 7px 3px; }
  body.clean-layout .journey-tab svg { width: 16px; height: 16px; }
  body.clean-layout .retirement-spending-plot { padding: 5px 0; }
}
@media print {
  body.clean-layout #outlook-hero .status-banner { padding: 12px; gap: 12px; }
  body.clean-layout #outlook-hero .status-banner.has-capital { grid-template-columns: 1.25fr 1fr; }
  body.clean-layout #outlook-hero .status-banner h2 { font-size: 17pt; }
  body.clean-layout .summary-amount { font-size: 27pt; }
  body.clean-layout .retirement-spending-body { grid-template-columns: 1fr 145px; }
}
body.clean-layout .retirement-spending-age select {
  appearance: none; padding: 7px 30px 7px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2340595b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center / 15px;
}

body.clean-layout .retirement-spending-legend > span > i { border-top: 3px solid #146b62; }
body.clean-layout .replay-chart #legend-replay > i { border-color: #a12d33; }
body.clean-layout .retirement-spending-legend #legend-current-equity > i { border-top: 3px dotted #425e84; }
body.clean-layout .retirement-spending-legend .legend-planned-spend > i { border-top: 3px dashed #994622; }
body.clean-layout .replay-chart .equity-stat { border-color: #a12d33; }
body.clean-layout .replay-chart .baseline-stat { border-left: 2px dotted #425e84; }
body.clean-layout #retirement-equity-note { margin: 0 0 4px; font-weight: 600; }

/* Results behave like a compact client report, rather than repeating the entry-page banner. */
@media screen {
  body.clean-layout.outlook-results-view .workspace { padding-top: 15px; }
  body.clean-layout.outlook-results-view .page-heading {
    padding: 13px 20px; margin-bottom: 11px; border-radius: 13px;
  }
  body.clean-layout.outlook-results-view .page-heading h1 { font-size: clamp(1.3rem,2.5vw,1.8rem); }
  body.clean-layout.outlook-results-view .page-heading :is(.workspace-kicker,p,.reference-tag) { display: none; }
  body.clean-layout.outlook-results-view .journey-nav { margin-bottom: 13px; }
  body.clean-layout.outlook-results-view .calculator-privacy { display: none; }
  body.clean-layout.outlook-results-view #overview { gap: 13px; }
  body.clean-layout.outlook-results-view #outlook-hero .status-banner { padding: clamp(15px,2.3vw,25px); gap: 13px 20px; }
  body.clean-layout.outlook-results-view .summary-amount { font-size: clamp(2.5rem,5vw,4.05rem); }
  body.clean-layout.outlook-results-view #outlook-hero .summary-basis { margin-top: 5px; }
  body.clean-layout.outlook-results-view .retirement-spending { padding: clamp(15px,2.3vw,22px); }
  body.clean-layout.outlook-results-view .retirement-spending-heading { margin-bottom: 9px; }
  body.clean-layout.outlook-results-view .retirement-spending-heading .workspace-kicker { display: none; }
  body.clean-layout.outlook-results-view .retirement-spending-legend { display: none; }
  body.clean-layout.outlook-results-view #worst-case-results { margin-top: 0; }
}
body.clean-layout #outlook-hero .summary-stress-delta {
  font-size: .9375rem; line-height: 1.4; margin-top: 7px;
}
body.clean-layout #retirement-equity-note { margin-bottom: 5px; }
@media screen and (max-width: 735px) {
  body.clean-layout.outlook-results-view .retirement-spending-body { gap: 8px; }
  body.clean-layout.outlook-results-view .retirement-spending-readout { gap: 8px; padding: 10px; }
  body.clean-layout.outlook-results-view .retirement-spending-age { flex-wrap: nowrap; }
}
@media print {
  body.clean-layout .worst-case { display: none !important; }
}
@media screen and (max-width: 480px) {
  body.clean-layout.outlook-results-view .page-heading {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    clip-path: inset(50%); white-space: nowrap;
  }
  body.clean-layout.outlook-results-view .workspace { padding-top: 11px; }
}

/* Never show a projection based only on the starting assumptions by default. */
body.clean-layout:not(.has-retirement-results) #overview > :not(#outlook-empty) { display: none !important; }
body.clean-layout #outlook-empty { padding: clamp(18px,3vw,31px); }
body.clean-layout #outlook-empty h2 { font: 400 1.55rem/1.15 var(--outlook-display); margin-bottom: 8px; }
body.clean-layout #outlook-empty p { color: var(--ink-soft); margin-bottom: 16px; }
@media print {
  body.clean-layout:not(.has-retirement-results) #overview,
  body.clean-layout:not(.has-retirement-results) #print-header { display: none !important; }
}

body.clean-layout #outlook-pension > summary { min-height: 56px; }
body.clean-layout .outlook-pension-controls {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 10px;
}
body.clean-layout .outlook-pension-controls .field { width: min(100%,245px); margin: 0; }
body.clean-layout .outlook-pension-controls > .button { min-height: 42px; }
body.clean-layout #outlook-pension-explanation { max-width: 750px; }
@media screen and (max-width: 480px) {
  body.clean-layout #outlook-pension .disclosure-hint { display: inline; font-size: .75rem; }
  body.clean-layout .outlook-pension-controls .field { width: 100%; }
}

body.clean-layout .brand-mark { flex: 0 0 auto; width: 38px; height: 38px; }
body.clean-layout .brand-name {
  font: 600 1.19rem/1 var(--outlook-display); letter-spacing: -.025em;
}
body.clean-layout .topbar .button.accent { background: #c9e9d8; border-color: #c9e9d8; }
body.clean-layout .topbar .button.accent:hover { background: #e3f3e9; border-color: #e3f3e9; }
body.clean-layout.historical-mode .brand-mark { outline: 1px solid #f2d5c154; border-radius: 10px; }
@media screen and (max-width: 480px) {
  body.clean-layout .brand-mark { width: 33px; height: 33px; }
  body.clean-layout .brand-name { font-size: 1.1rem; }
}
@media print {
  body.clean-layout .printed-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
  body.clean-layout .printed-brand .brand-mark { width: 24px; height: 24px; }
  body.clean-layout .print-header h1 { font-family: var(--outlook-display); font-weight: 500; }
  body.clean-layout .print-header .printed-scenario { color: #313e3b; font-weight: 700; margin-top: 4px; }
  body.clean-layout .scenario-results { break-inside: auto; }
  body.clean-layout .scenario-results .compare-table tr { break-inside: avoid; }
  body.clean-layout .scenario-results .compare-table thead { display: table-header-group; }
}

/* Manrope is hosted with the site; smaller text keeps the reading font. */
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root { --outlook-display: "Manrope", "Trebuchet MS", system-ui, sans-serif; }
body.clean-layout :is(.metric-number,.strategy-metric > strong) {
  font-family: var(--outlook-display); font-weight: 650; font-variant-numeric: tabular-nums;
}
body.clean-layout :is(.summary-amount,.summary-capital dd,#retirement-spending-value strong) {
  font-variant-numeric: tabular-nums;
}
body.clean-layout .page-heading h1 { font-weight: 650; letter-spacing: -.045em; }
body.clean-layout .brand-name { font-weight: 650; letter-spacing: -.035em; }
body.clean-layout #outlook-hero .status-banner h2 { font-weight: 550; letter-spacing: -.045em; }
body.clean-layout .summary-amount { font-weight: 700; letter-spacing: -.05em; }
body.clean-layout :is(.form-card,.changes-panel,.retirement-spending,#outlook-empty) h2 { font-weight: 600; }
@media screen {
  body.clean-layout .page-heading::after {
    content: ""; position: absolute; pointer-events: none; z-index: -1; inset: 0 0 0 50%;
    background: linear-gradient(#c5ebd518 1px,transparent 1px),linear-gradient(90deg,#c5ebd518 1px,transparent 1px);
    background-size: 23px 23px; mask-image: linear-gradient(90deg,transparent,#000);
    opacity: .6;
  }
}
