.be-investment-yield {
  max-width: 77.5rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  color: #3c3f4c;
}

.be-investment-yield .title,
.be-investment-yield h3,
.be-investment-yield legend {
  color: #252e56;
}

.be-investment-yield__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr);
  gap: 2rem;
  margin-top: 2rem;
}

.be-investment-yield__fieldset {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid #e4e5e9;
  border-radius: .5rem;
}

.be-investment-yield__fieldset legend {
  padding: 0 .5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.be-investment-yield__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.be-investment-yield__field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: 1rem;
  font-weight: 600;
}

.be-investment-yield__field input {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .7rem;
  border: 1px solid #b9bbc5;
  border-radius: .25rem;
  color: #252e56;
  background: #fff;
}

.be-investment-yield__field input:focus-visible {
  outline: 3px solid #252e56;
  outline-offset: 2px;
}

.be-investment-yield__outputs {
  align-self: start;
  padding: 1.5rem;
  border-radius: .5rem;
  background: #f8f6ec;
}

.be-investment-yield__outputs h3 {
  margin-bottom: .75rem;
  font-size: 1.25rem;
}

.be-investment-yield__result {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border-top: 1px solid #e1ddcd;
}

.be-investment-yield__result dt {
  max-width: 68%;
}

.be-investment-yield__result dd {
  text-align: right;
  font-weight: 700;
  color: #252e56;
  font-variant-numeric: tabular-nums;
}

.be-investment-yield__method {
  max-width: 60rem;
  margin-top: 2rem;
}

.be-investment-yield__method h3,
.be-investment-yield__longform h3 {
  margin-bottom: .75rem;
  font-size: 1.25rem;
}

.be-investment-yield__method p + p,
.be-investment-yield__longform p + p {
  margin-top: 1rem;
}

.be-investment-yield__longform {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  max-width: 65rem;
  margin-top: 3rem;
}

.be-investment-yield__longform section {
  min-width: 0;
}

.be-investment-yield__note {
  max-width: 60rem;
  margin-top: 1rem;
  font-size: .95rem;
}

@media (max-width: 58em) {
  .be-investment-yield__layout,
  .be-investment-yield__longform {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 36em) {
  .be-investment-yield__fields {
    grid-template-columns: 1fr;
  }
}
