/* Financial Life Simulator V2 — Investing page, Phase 5. */

body.editorial-ui.v2-foundation:has(#module-view:not([hidden]) .v2-investment-page) {
  --v2i-paper: #f6ead7;
  --v2i-paper-pale: #fbf3e5;
  --v2i-ink: #113858;
  --v2i-coral: #c95833;
  --v2i-teal: #2f7f7d;
  --v2i-blue: #416fa4;
  --v2i-plum: #744665;
  color: var(--v2i-ink);
  background-color: var(--v2i-paper);
}

body.editorial-ui.v2-foundation:has(#module-view:not([hidden]) .v2-investment-page) .app-shell {
  width: min(1440px, calc(100% - 64px));
  overflow: visible;
}

body.editorial-ui.v2-foundation:has(#module-view:not([hidden]) .v2-investment-page) #module-view,
body.editorial-ui.v2-foundation:has(#module-view:not([hidden]) .v2-investment-page) #module-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.editorial-ui.v2-foundation:has(#module-view:not([hidden]) .v2-investment-page) .site-footer {
  display: none;
}

body.editorial-ui.v2-foundation .site-header[data-profile="investing"] {
  position: relative;
  z-index: 20;
  display: grid;
  height: 66px;
  min-height: 66px;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid rgba(17, 56, 88, .72);
  background: transparent;
  width: calc(100% - 34px);
  margin-inline: 17px;
}

body.editorial-ui.v2-foundation .site-header[data-profile="investing"] .site-name {
  color: var(--v2i-ink);
  font-family: var(--v2-font-interface);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .015em;
  text-transform: uppercase;
}

body.editorial-ui.v2-foundation .site-header[data-profile="investing"] .primary-nav {
  gap: 4px;
}

body.editorial-ui.v2-foundation .site-header[data-profile="investing"] .nav-action {
  min-height: 42px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 1px;
  font-family: var(--v2-font-editorial);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body.editorial-ui.v2-foundation .site-header[data-profile="investing"] .nav-action[aria-current="page"] {
  border-color: var(--v2i-ink);
  background: rgba(251, 243, 229, .55);
}

.v2-investment-page {
  width: 100%;
  color: var(--v2i-ink);
}

.v2i-hero {
  position: relative;
  height: 440px;
  min-height: 440px;
  overflow: hidden;
  border-bottom: 1px solid rgba(17, 56, 88, .5);
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.v2i-hero::after {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42px;
  background: linear-gradient(to bottom, transparent, var(--v2i-paper));
  content: "";
  pointer-events: none;
}

.v2i-hero-copy {
  position: relative;
  z-index: 6;
  width: 49%;
  margin-left: clamp(32px, 4.9vw, 70px);
  padding-top: 85px;
}

.v2i-kicker {
  display: none;
}

.v2i-kicker,
.v2i-panel-heading > p,
.v2i-result-heading > div > p,
.v2i-building-blocks header > p,
.v2i-mechanism > div > p:first-child,
.v2i-target-note > div > p {
  margin: 0;
  color: var(--v2i-coral);
  font-family: var(--v2-font-interface);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.v2i-hero h1 {
  max-width: 650px;
  margin: 13px 0 25px;
  color: var(--v2i-ink);
  font-family: var(--v2-font-editorial);
  font-size: clamp(54px, 5.35vw, 78px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .96;
}

.v2i-hero-copy > p:last-child {
  max-width: 510px;
  margin: 0;
  color: var(--v2i-ink);
  font-family: var(--v2-font-editorial);
  font-size: 20px;
  line-height: 1.42;
}

.v2i-grow-word {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 60px;
  color: var(--v2i-coral);
  font-family: var(--v2-font-display);
  font-size: clamp(190px, 25vw, 270px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .82;
  opacity: .97;
  transform: scaleX(.82);
  transform-origin: right top;
}

.v2i-hero-art {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -22%;
  width: 100%;
  height: 118%;
  overflow: hidden;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .35) 16%, #000 31%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .35) 16%, #000 31%);
  pointer-events: none;
}

.v2i-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.v2i-workspace {
  display: grid;
  padding: 21px 0 14px;
  grid-template-columns: minmax(285px, 31.2%) minmax(0, 68.8%);
  align-items: start;
  gap: 8px;
}

.v2i-input-panel,
.v2i-result-panel {
  min-width: 0;
  border: 1px solid rgba(17, 56, 88, .5);
  border-radius: 0;
  background: rgba(251, 243, 229, .38);
  box-shadow: none;
}

.v2i-input-panel {
  min-height: 990px;
  padding: 23px 20px 18px;
}

.v2i-input-panel > .v2i-panel-heading {
  display: none;
}

.v2i-result-panel {
  min-height: 990px;
  padding: 23px 24px 21px;
  scroll-margin-top: 18px;
}

.v2i-panel-heading,
.v2i-result-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(17, 56, 88, .55);
}

.v2i-result-panel .v2i-result-heading {
  margin-top: -16px;
}

.v2i-result-heading > div > p {
  display: none;
}

.v2i-panel-heading h2,
.v2i-result-heading h2,
.v2i-building-blocks h3,
.v2i-mechanism h3 {
  margin: 7px 0 0;
  color: var(--v2i-ink);
  font-family: var(--v2-font-editorial);
  font-weight: 400;
}

.v2i-panel-heading h2 {
  font-size: 28px;
  line-height: 1.05;
}

.v2i-primary-fields {
  display: grid;
}

.v2i-primary-fields > .v2i-field:first-child {
  padding-top: 3px;
}

.v2i-field,
.v2i-frequency {
  position: relative;
  display: grid;
  margin: 0;
  padding: 15px 0 16px;
  gap: 7px;
  border-bottom: 1px solid rgba(17, 56, 88, .22);
}

.v2i-field label,
.v2i-frequency label,
.v2i-timing legend,
.v2i-profile-fieldset legend,
.v2i-allocation label {
  color: var(--v2i-ink);
  font-family: var(--v2-font-editorial);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.v2i-input-wrap {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(17, 56, 88, .45);
  background: rgba(255, 250, 241, .58);
}

.v2i-input-wrap.has-prefix {
  grid-template-columns: auto minmax(0, 1fr);
}

.v2i-input-wrap.has-suffix {
  grid-template-columns: minmax(0, 1fr) auto;
}

.v2i-input-wrap input {
  width: 100%;
  height: 49px;
  min-width: 0;
  padding: 6px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--v2i-ink);
  font-family: var(--v2-font-editorial);
  font-size: 27px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

body.editorial-ui.v2-foundation .v2-investment-page .v2i-input-wrap input {
  height: 55px;
  min-height: 55px;
  padding: 6px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--v2i-ink);
  font-family: var(--v2-font-editorial);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.v2i-prefix,
.v2i-suffix {
  display: grid;
  min-width: 37px;
  min-height: 49px;
  padding: 0 9px;
  place-items: center;
  color: rgba(17, 56, 88, .74);
  border-right: 1px solid rgba(17, 56, 88, .25);
  font-family: var(--v2-font-editorial);
  font-size: 17px;
}

body.editorial-ui.v2-foundation .v2-investment-page :is(.v2i-prefix, .v2i-suffix) {
  min-height: 55px;
}

.v2i-suffix {
  min-width: 54px;
  border-right: 0;
  border-left: 1px solid rgba(17, 56, 88, .25);
  font-family: var(--v2-font-interface);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.v2i-contribution-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid rgba(17, 56, 88, .22);
}

.v2i-contribution-row > .v2i-field,
.v2i-contribution-row > .v2i-frequency {
  border-bottom: 0;
}

.v2i-frequency select {
  width: 100%;
  height: 51px;
  padding: 0 25px 0 10px;
  border: 1px solid rgba(17, 56, 88, .45);
  border-radius: 0;
  background-color: rgba(255, 250, 241, .58);
  color: var(--v2i-ink);
  font-family: var(--v2-font-editorial);
  font-size: 16px;
  font-weight: 400;
}

body.editorial-ui.v2-foundation .v2-investment-page .v2i-frequency select {
  height: 57px;
  min-height: 57px;
  padding: 0 25px 0 10px;
  border: 1px solid rgba(17, 56, 88, .45);
  border-radius: 0;
  background-color: rgba(255, 250, 241, .58);
  color: var(--v2i-ink);
  font-family: var(--v2-font-editorial);
  font-size: 16px;
  font-weight: 400;
}

.v2i-timing {
  margin: 17px 0 0;
  padding: 0 0 17px;
  border: 0;
  border-bottom: 1px solid rgba(17, 56, 88, .25);
}

.v2i-timing legend {
  margin-bottom: 9px;
}

.v2i-timing > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.v2i-timing button {
  min-height: 44px;
  border: 1px solid rgba(17, 56, 88, .45);
  border-radius: 0;
  background: rgba(255, 250, 241, .42);
  color: var(--v2i-ink);
  cursor: pointer;
}

.v2i-timing button + button {
  border-left: 0;
}

.v2i-timing button[aria-pressed="true"] {
  color: var(--v2i-paper-pale);
  background: var(--v2i-teal);
}

.v2i-advanced,
.v2i-result-disclosure,
.v2i-chart-values {
  border-bottom: 1px solid rgba(17, 56, 88, .35);
}

.v2i-input-panel > .v2i-advanced {
  margin-top: 32px;
}

.v2i-advanced > summary,
.v2i-result-disclosure > summary {
  display: grid;
  min-height: 64px;
  padding: 11px 0;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  column-gap: 12px;
  list-style: none;
  cursor: pointer;
}

.v2i-advanced > summary::-webkit-details-marker,
.v2i-result-disclosure > summary::-webkit-details-marker {
  display: none;
}

.v2i-advanced > summary span,
.v2i-result-disclosure > summary span {
  font-family: var(--v2-font-editorial);
  font-size: 18px;
  line-height: 1.15;
}

.v2i-advanced > summary small,
.v2i-result-disclosure > summary small {
  grid-column: 1;
  color: var(--v2-ink-muted);
  font-size: 12px;
}

.v2i-advanced > summary svg,
.v2i-result-disclosure > summary svg {
  width: 22px;
  height: 22px;
  grid-column: 2;
  grid-row: 1 / span 2;
  transition: transform var(--v2-motion-fast) ease;
}

.v2i-advanced[open] > summary svg,
.v2i-result-disclosure[open] > summary svg {
  transform: rotate(45deg);
}

.v2i-advanced-body {
  padding: 3px 0 18px;
}

.v2i-profile-fieldset {
  margin: 0 0 17px;
  padding: 0;
  border: 0;
}

.v2i-profile-fieldset > p {
  margin: 5px 0 10px;
  color: var(--v2-ink-muted);
  font-size: 12px;
  line-height: 1.4;
}

.v2i-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.v2i-profile-card {
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(17, 56, 88, .35);
  border-radius: 0;
  background: rgba(255, 250, 241, .4);
  text-align: left;
  cursor: pointer;
}

.v2i-profile-card[aria-pressed="true"] {
  border-color: var(--v2i-coral);
  background: rgba(201, 88, 51, .08);
}

.v2i-profile-card span,
.v2i-profile-card small {
  display: block;
}

.v2i-profile-card span {
  font-weight: 800;
}

.v2i-profile-card small {
  margin-top: 5px;
  color: var(--v2-ink-muted);
  font-size: 10px;
  line-height: 1.35;
}

.v2i-profile-current {
  font-size: 12px !important;
}

.v2i-allocation {
  padding: 14px 0;
  border-block: 1px solid rgba(17, 56, 88, .22);
}

.v2i-allocation > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.v2i-allocation output {
  font-size: 12px;
  font-weight: 700;
}

.v2i-allocation input {
  width: 100%;
  margin-top: 12px;
  accent-color: var(--v2i-teal);
}

.v2i-advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.v2i-advanced-field {
  padding: 11px 0;
}

.v2i-advanced-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid rgba(17, 56, 88, .35);
}

.v2i-advanced-input input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
}

.v2i-advanced-input span {
  padding-right: 8px;
  color: var(--v2-ink-muted);
}

.v2i-technical-note,
.v2i-local-note {
  color: var(--v2-ink-muted);
  font-size: 11px;
  line-height: 1.4;
}

.v2i-run {
  display: flex;
  width: 100%;
  min-height: 68px;
  margin-top: 18px;
  padding: 12px 17px;
  align-items: center;
  justify-content: space-between;
  color: #fff8e9;
  border: 1px solid var(--v2i-coral);
  border-radius: 0;
  background: var(--v2i-coral);
  font-family: var(--v2-font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
  cursor: pointer;
}

.v2i-run:hover {
  background: #a84328;
}

.v2i-local-note {
  display: none;
}

.v2i-result-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 315px);
  align-items: end;
  gap: 20px;
}

.v2i-result-heading h2 {
  font-size: 46px;
  letter-spacing: -.025em;
  line-height: .98;
}

.v2i-result-heading .dollar-mode {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(17, 56, 88, .5);
}

.v2i-result-heading .dollar-mode legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.v2i-result-heading .dollar-mode button {
  min-height: 42px;
  padding: 7px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.v2i-result-heading .dollar-mode button + button {
  border-left: 1px solid rgba(17, 56, 88, .35);
}

.v2i-result-heading .dollar-mode button[aria-pressed="true"] {
  color: var(--v2i-paper-pale);
  background: var(--v2i-ink);
}

.v2i-result-heading .dollar-mode small {
  display: none;
}

.v2i-range-summary {
  padding: 21px 0 8px;
  text-align: center;
}

.v2i-range-summary > p {
  margin: 0 0 5px;
  font-family: var(--v2-font-editorial);
  font-size: 17px;
}

.v2i-range-summary > strong {
  display: block;
  color: var(--v2i-ink);
  font-family: var(--v2-font-editorial);
  font-size: clamp(50px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}

.v2i-range-summary > div {
  display: flex;
  margin-top: 6px;
  justify-content: center;
  gap: 20px;
  color: var(--v2-ink-muted);
  font-size: 13px;
}

.v2i-chart-key {
  display: flex;
  padding: 7px 0 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
}

.v2i-chart-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.v2i-chart-key i {
  width: 16px;
  height: 5px;
  background: var(--v2i-blue);
}

.v2i-chart-key .is-high i { background: var(--v2i-coral); }
.v2i-chart-key .is-low i { background: var(--v2i-teal); }
.v2i-chart-key .is-money i { height: 0; border-top: 2px dashed var(--v2i-ink); background: transparent; }

.v2i-chart-figure {
  margin: 0;
}

.v2i-fan-chart {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--v2-font-interface);
}

.v2i-grid line {
  stroke: rgba(17, 56, 88, .2);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.v2i-grid text,
.v2i-x-tick text {
  fill: var(--v2i-ink);
  font-size: 11px;
}

.v2i-x-tick line {
  stroke: rgba(17, 56, 88, .6);
}

.v2i-band-weak { fill: rgba(201, 88, 51, .62); }
.v2i-band-weak-print { fill: url(#v2i-dots-coral); }
.v2i-band-lower { fill: rgba(47, 127, 125, .24); }
.v2i-band-lower-print { fill: url(#v2i-dots-teal); }
.v2i-band-upper { fill: rgba(65, 111, 164, .72); }
.v2i-band-upper-print { fill: url(#v2i-dots-blue); }

.v2i-median-line,
.v2i-contribution-line {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.v2i-median-line {
  stroke: #f7e8d2;
  stroke-width: 2.2;
}

.v2i-contribution-line {
  stroke: var(--v2i-ink);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.v2i-goal-line {
  stroke: var(--v2i-plum);
  stroke-width: 1.2;
  stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
}

.v2i-goal-label rect {
  fill: var(--v2i-paper-pale);
  stroke: var(--v2i-plum);
}

.v2i-goal-label text {
  fill: var(--v2i-plum);
  font-family: var(--v2-font-interface);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.v2i-end-dot-high { fill: var(--v2i-coral); }
.v2i-end-dot-mid { fill: var(--v2i-teal); }
.v2i-end-dot-low { fill: var(--v2i-coral); }

.v2i-end-label text:first-child {
  font-family: var(--v2-font-editorial);
  font-size: 18px;
  font-weight: 700;
}

.v2i-end-label text:last-child {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.v2i-end-label-high { fill: var(--v2i-blue); }
.v2i-end-label-mid { fill: var(--v2i-teal); }
.v2i-end-label-low { fill: var(--v2i-coral); }

.v2i-success-callout rect {
  fill: rgba(251, 243, 229, .94);
  stroke: rgba(17, 56, 88, .68);
}

.v2i-success-callout text {
  fill: var(--v2i-ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .045em;
}

.v2i-success-callout path {
  fill: none;
  stroke: var(--v2i-ink);
  stroke-width: 1;
}

.v2i-chart-hit {
  fill: transparent;
  outline: none;
  cursor: crosshair;
}

.v2i-chart-hit:focus {
  fill: rgba(17, 56, 88, .06);
  stroke: var(--v2i-ink);
  stroke-width: 1;
}

.v2i-chart-figure > figcaption {
  margin: -4px 0 8px 72px;
  color: var(--v2-ink-muted);
  font-size: 11px;
}

.v2i-chart-values {
  border-top: 1px solid rgba(17, 56, 88, .23);
}

.v2i-chart-figure {
  position: relative;
}

.v2i-chart-values:not([open]) {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

.v2i-chart-values > summary {
  min-height: 44px;
  padding: 10px 2px;
  font-family: var(--v2-font-interface);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  list-style-position: inside;
  text-transform: uppercase;
  cursor: pointer;
}

.v2i-table-scroll {
  max-height: 290px;
  overflow: auto;
}

.v2i-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.v2i-table-scroll caption {
  padding: 7px 0;
  text-align: left;
}

.v2i-table-scroll th,
.v2i-table-scroll td {
  padding: 7px;
  border-bottom: 1px solid rgba(17, 56, 88, .16);
  text-align: right;
  white-space: nowrap;
}

.v2i-table-scroll th:first-child,
.v2i-table-scroll td:first-child {
  text-align: left;
}

.v2i-target-note {
  display: grid;
  margin-top: 15px;
  padding: 15px 17px;
  grid-template-columns: 95px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  border: 1px solid var(--v2i-coral);
  background: rgba(201, 88, 51, .06);
}

.v2i-target-note > div:first-child {
  padding-right: 14px;
  border-right: 1px solid rgba(17, 56, 88, .25);
  text-align: center;
}

.v2i-target-note strong {
  display: block;
  margin-top: 4px;
  color: var(--v2i-coral);
  font-family: var(--v2-font-editorial);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.v2i-target-note > div:last-child p,
.v2i-target-note > div:last-child small {
  display: block;
  margin: 0;
  line-height: 1.35;
}

.v2i-target-note > div:last-child p {
  font-family: var(--v2-font-editorial);
  font-size: 16px;
}

.v2i-target-note > div:last-child small {
  margin-top: 4px;
  color: var(--v2-ink-muted);
  font-size: 11px;
}

.v2i-building-blocks {
  padding: 14px 0 18px;
  border-bottom: 1px solid rgba(17, 56, 88, .32);
}

.v2i-building-blocks header {
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.v2i-building-blocks h3 {
  font-size: 20px;
}

.v2i-building-blocks > div {
  display: grid;
  margin-top: 0;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(17, 56, 88, .38);
}

.v2i-building-blocks article {
  min-height: 150px;
  padding: 20px 35px;
  border: 0;
  background: rgba(255, 250, 241, .32);
}

.v2i-building-blocks article + article {
  border-left: 1px solid rgba(17, 56, 88, .38);
}

.v2i-building-blocks article > span,
.v2i-building-blocks article > small {
  display: block;
}

.v2i-building-blocks article > span {
  font-family: var(--v2-font-editorial);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.v2i-building-blocks article > strong {
  display: block;
  margin: 3px 0;
  color: var(--v2i-teal);
  font-family: var(--v2-font-editorial);
  font-size: 47px;
  font-weight: 400;
}

.v2i-building-blocks article + article > strong {
  color: var(--v2i-coral);
}

.v2i-building-blocks article > small {
  color: var(--v2-ink-muted);
  font-family: var(--v2-font-editorial);
  font-size: 13px;
}

.v2i-mechanism {
  display: grid;
  min-height: 180px;
  margin: 18px 0;
  grid-template-columns: 27% 73%;
  overflow: hidden;
  border: 1px solid rgba(17, 56, 88, .45);
  background: rgba(47, 127, 125, .06);
}

.v2i-mechanism picture {
  height: 100%;
  min-height: 180px;
  overflow: hidden;
  mix-blend-mode: multiply;
}

.v2i-mechanism img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.v2i-mechanism > div {
  padding: 19px 24px;
}

.v2i-mechanism h3 {
  margin: 0;
  font-size: 29px;
}

.v2i-mechanism > div > .v2i-mechanism-copy {
  margin: 8px 0 10px;
  color: var(--v2i-ink);
  font-family: var(--v2-font-editorial);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.v2i-mechanism a {
  color: var(--v2i-coral);
  font-family: var(--v2-font-editorial);
  font-size: 14px;
  font-weight: 700;
}

.v2i-result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: 9px;
}

.v2i-side-actions {
  display: grid;
  margin-top: 13px;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.v2i-side-actions button {
  display: flex;
  min-height: 44px;
  padding: 8px 9px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--v2i-ink);
  border-radius: 0;
  background: transparent;
  color: var(--v2i-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.v2i-side-actions button:first-child {
  grid-column: 1 / -1;
  color: var(--v2i-paper-pale);
  background: var(--v2i-ink);
}

.v2i-side-actions button:first-child[aria-pressed="true"] {
  color: var(--v2i-ink);
  background: rgba(47, 127, 125, .18);
}

.v2i-side-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.v2i-side-details {
  margin-top: 10px;
  border-top: 1px solid rgba(17, 56, 88, .35);
}

.v2i-side-details .v2i-result-disclosure > summary {
  min-height: 56px;
}

.v2i-side-details .v2i-result-disclosure > summary span {
  font-size: 16px;
}

.v2i-side-details .v2i-result-disclosure > summary small {
  font-size: 10px;
}

.v2i-side-details .v2i-assumption-list {
  grid-template-columns: 1fr;
}

.v2i-result-actions button {
  display: flex;
  min-height: 48px;
  padding: 10px 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--v2i-ink);
  border-radius: 0;
  background: transparent;
  color: var(--v2i-ink);
  font-weight: 800;
  cursor: pointer;
}

.v2i-result-actions .v2i-plan-button {
  color: var(--v2i-paper-pale);
  background: var(--v2i-ink);
}

.v2i-result-actions .v2i-plan-button[aria-pressed="true"] {
  color: var(--v2i-ink);
  background: rgba(47, 127, 125, .18);
}

.v2i-compare-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.v2i-result-details {
  margin-top: 12px;
  border-top: 1px solid rgba(17, 56, 88, .35);
}

.v2i-disclosure-body {
  padding: 0 0 15px;
  color: var(--v2-ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

.v2i-assumption-list {
  display: grid;
  margin: 0 0 10px;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.v2i-assumption-list > div {
  display: flex;
  padding: 7px 0;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(17, 56, 88, .15);
}

.v2i-assumption-list dt {
  color: var(--v2i-ink);
  font-weight: 700;
}

.v2i-assumption-list dd {
  margin: 0;
  text-align: right;
}

.v2i-model-note {
  display: block;
  margin: 11px 0 0;
  color: var(--v2-ink-muted);
  font-family: var(--v2-font-editorial);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.v2i-model-note span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--v2i-ink);
  border-radius: 50%;
  color: var(--v2i-ink);
  font-family: var(--v2-font-editorial);
  font-style: normal;
}

.v2-investment-page .field-feedback {
  display: block;
  color: #8d2f24;
  font-size: 12px;
  font-weight: 700;
}

.v2-investment-page [aria-invalid="true"] {
  background: rgba(201, 88, 51, .09);
}

body.editorial-ui.v2-foundation:has(.v2-investment-page) > .hover-tooltip {
  z-index: 1000;
  max-width: 310px;
  padding: 10px 12px;
  color: var(--v2i-paper-pale);
  border: 1px solid var(--v2i-paper-pale);
  border-radius: 0;
  background: var(--v2i-ink);
  box-shadow: 5px 5px 0 rgba(17, 56, 88, .15);
  font-family: var(--v2-font-interface);
  font-size: 13px;
  line-height: 1.4;
}

@media (min-width: 1120px) and (min-height: 850px) {
  .v2i-result-panel {
    position: sticky;
    top: 16px;
  }
}

@media (max-width: 1120px) {
  body.editorial-ui.v2-foundation:has(#module-view:not([hidden]) .v2-investment-page) .app-shell {
    width: calc(100% - 44px);
  }

  .v2i-grow-word {
    font-size: clamp(190px, 25vw, 250px);
  }

  .v2i-workspace {
    grid-template-columns: minmax(275px, 31.2%) minmax(0, 68.8%);
    gap: 8px;
  }

  .v2i-input-panel,
  .v2i-result-panel {
    padding-inline: 17px;
  }

  .v2i-result-panel {
    padding-inline: 28px;
  }

  .v2i-result-heading {
    grid-template-columns: 1fr;
  }

  .v2i-result-heading .dollar-mode {
    width: min(100%, 390px);
  }

  .v2i-range-summary > strong {
    font-size: 54px;
  }
}

@media (max-width: 820px) {
  body.editorial-ui.v2-foundation:has(#module-view:not([hidden]) .v2-investment-page) .app-shell {
    width: calc(100% - 32px);
  }

  body.editorial-ui.v2-foundation .site-header[data-profile="investing"] {
    height: auto;
    min-height: 0;
    padding: 12px 0 9px;
    grid-template-columns: 1fr;
    width: 100%;
    margin-inline: 0;
  }

  body.editorial-ui.v2-foundation .site-header[data-profile="investing"] .primary-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.editorial-ui.v2-foundation .site-header[data-profile="investing"] .nav-action {
    width: 100%;
    min-height: 42px;
    padding-inline: 5px;
    font-size: 13px;
    white-space: normal;
  }

  .v2i-hero {
    height: 420px;
    min-height: 420px;
  }

  .v2i-hero-copy {
    width: 70%;
    padding-top: 38px;
  }

  .v2i-hero h1 {
    font-size: clamp(48px, 8vw, 64px);
  }

  .v2i-grow-word {
    top: 52px;
    right: -8px;
    font-size: 112px;
    opacity: .88;
  }

  .v2i-hero-art {
    right: -11%;
    bottom: -34%;
    width: 98%;
  }

  .v2i-workspace {
    grid-template-columns: 1fr;
  }

  .v2i-input-panel,
  .v2i-result-panel {
    padding: 21px;
  }

  .v2i-input-panel {
    min-height: 0;
  }

  .v2i-result-panel {
    position: static;
    min-height: 0;
  }
}

@media (max-width: 540px) {
  body.editorial-ui.v2-foundation:has(#module-view:not([hidden]) .v2-investment-page) .app-shell {
    width: calc(100% - 24px);
  }

  body.editorial-ui.v2-foundation .site-header[data-profile="investing"] .site-name {
    font-size: 14px;
  }

  body.editorial-ui.v2-foundation .site-header[data-profile="investing"] .primary-nav {
    grid-template-columns: 1fr 1fr;
  }

  .v2i-hero {
    height: 470px;
    min-height: 470px;
  }

  .v2i-hero-copy {
    width: 100%;
    padding-top: 32px;
  }

  .v2i-hero h1 {
    max-width: 11ch;
    font-size: 47px;
  }

  .v2i-hero-copy > p:last-child {
    max-width: 25ch;
    font-size: 17px;
  }

  .v2i-grow-word {
    top: 255px;
    right: -4px;
    font-size: 92px;
  }

  .v2i-hero-art {
    right: -36%;
    bottom: -29%;
    width: 150%;
    height: 100%;
  }

  .v2i-workspace {
    padding-top: 15px;
  }

  .v2i-input-panel,
  .v2i-result-panel {
    padding: 18px 14px;
  }

  .v2i-contribution-row,
  .v2i-advanced-grid,
  .v2i-profile-grid,
  .v2i-building-blocks > div,
  .v2i-assumption-list {
    grid-template-columns: 1fr;
  }

  .v2i-range-summary > strong {
    font-size: 42px;
  }

  .v2i-range-summary > div,
  .v2i-chart-key {
    gap: 7px 12px;
  }

  .v2i-fan-chart {
    min-width: 610px;
  }

  .v2i-chart-figure {
    overflow-x: auto;
  }

  .v2i-chart-figure > figcaption {
    margin-left: 0;
  }

  .v2i-target-note,
  .v2i-mechanism {
    grid-template-columns: 1fr;
  }

  .v2i-target-note > div:first-child {
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 56, 88, .25);
  }

  .v2i-mechanism picture {
    min-height: 135px;
    max-height: 160px;
  }

  .v2i-result-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2i-advanced > summary svg,
  .v2i-result-disclosure > summary svg {
    transition: none;
  }
}

@media print {
  body.editorial-ui.v2-foundation .site-header,
  .v2i-input-panel,
  .v2i-side-actions,
  .v2i-result-actions,
  .v2i-hero {
    display: none !important;
  }

  .v2i-workspace {
    display: block;
    padding: 0;
  }

  .v2i-result-panel {
    border: 0;
  }
}
