.fhfc {
  --navy: #102a43;
  --blue: #1769aa;
  --sky: #eaf4fb;
  --gold: #e0a62b;
  --ink: #243b53;
  --muted: #627d98;
  --line: #d9e2ec;
  --paper: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.55;
  font-family: inherit;
  margin: 1.5rem auto;
  max-width: 1120px;
}
.fhfc *, .fhfc *::before, .fhfc *::after { box-sizing: border-box; }
.fhfc__intro { background: linear-gradient(135deg, var(--navy), #1d4f78); border-radius: 18px 18px 0 0; color: #fff; padding: 2rem clamp(1.25rem, 4vw, 3.5rem); }
.fhfc__intro h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.08; margin: .2rem 0 .7rem; }
.fhfc__intro p { font-size: 1.12rem; }
.fhfc__intro p { margin: 0; max-width: 720px; }
.fhfc__eyebrow { color: #9fd6f5; font-size: .95rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.fhfc__chooser { background: #f5f8fb; display: grid; gap: 1px; grid-template-columns: repeat(5, 1fr); }
.fhfc__choice { align-items: center; background: #fff; border: 0; border-bottom: 5px solid transparent; color: var(--ink); cursor: pointer; display: flex; font: inherit; font-size: .9rem; font-weight: 800; gap: .75rem; min-height: 122px; opacity: .55; padding: 1.1rem .85rem; text-align: left; transition: background-color .2s ease, opacity .2s ease; }
.fhfc__choice:hover, .fhfc__choice:focus-visible { background: var(--sky); opacity: .82; outline: 2px solid transparent; }
.fhfc__choice.is-active { background: var(--sky); border-bottom-color: var(--blue); color: var(--navy); opacity: 1; }
.fhfc__choice-number { color: var(--blue); font-size: .8rem; font-weight: 800; }
.fhfc__choice small { color: var(--muted); display: block; font-size: .76rem; font-weight: 600; line-height: 1.3; margin-top: .3rem; }
.fhfc__workspace { background: var(--paper); border: 1px solid var(--line); border-top: 0; padding: clamp(1.25rem, 4vw, 3rem); }
.fhfc__panel-heading { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.5rem; }
.fhfc__panel-heading h3 { color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 .5rem; }
.fhfc__panel-heading p { font-size: 1.05rem; }
.fhfc__panel-heading p { color: var(--muted); margin: 0; max-width: 700px; }
.fhfc__time { background: var(--sky); border-radius: 999px; color: var(--blue); flex: 0 0 auto; font-size: .9rem; font-weight: 800; padding: .55rem .9rem; }
.fhfc__fields { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fhfc__field { color: var(--navy); display: block; font-size: 1rem; font-weight: 800; margin-bottom: 1.35rem; }
.fhfc__field > span:first-child { display: block; margin-bottom: .35rem; }
.fhfc input, .fhfc select { background: #fff; border: 2px solid #bcccdc; border-radius: 10px; color: var(--ink); font: inherit; font-size: 1.08rem; min-height: 62px; padding: .75rem .9rem; width: 100%; }
.fhfc input:focus, .fhfc select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,170,.14); outline: 0; }
.fhfc input[aria-invalid="true"] { border-color: #c0392b; }
.fhfc__input-affix { align-items: center; background: #f5f8fb; border: 1px solid #bcccdc; border-radius: 8px; display: flex; overflow: hidden; }
.fhfc__input-affix > span { color: var(--muted); padding: 0 .7rem; }
.fhfc__input-affix input { border: 0; border-radius: 0; }
.fhfc__input-affix:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,170,.14); }
.fhfc__input-affix--right > span { order: 2; }
.fhfc__calculate { background: var(--blue); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font: inherit; font-size: 1.1rem; font-weight: 800; margin-top: .5rem; min-height: 64px; padding: .85rem 1.4rem; }
.fhfc__calculate:hover, .fhfc__calculate:focus-visible { background: var(--navy); }
.fhfc__result { background: #f6fbff; border-left: 8px solid var(--blue); font-size: 1rem; margin-top: 1.75rem; padding: 1.5rem; }
.fhfc__result h4 { color: var(--navy); font-size: 1.7rem; line-height: 1.2; margin: 0 0 1rem; }
.fhfc__metrics { display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); }
.fhfc__metric { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .85rem; }
.fhfc__metric span { color: var(--muted); display: block; font-size: .85rem; font-weight: 700; }
.fhfc__metric strong { color: var(--navy); display: block; font-size: 1.55rem; line-height: 1.2; margin-top: .3rem; }
.fhfc__table-wrap { margin-top: 1rem; overflow-x: auto; }
.fhfc table { border-collapse: collapse; font-size: .9rem; width: 100%; }
.fhfc th, .fhfc td { border-bottom: 1px solid var(--line); padding: .85rem; text-align: right; }
.fhfc th:first-child, .fhfc td:first-child { text-align: left; }
.fhfc th { color: var(--navy); }
.fhfc__positions { margin-top: 1rem; }
.fhfc__position { align-items: center; display: grid; gap: .7rem; grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) 34px; margin-bottom: .6rem; }
.fhfc__position label { margin: 0; }
.fhfc__position--head { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.fhfc__remove { background: transparent; border: 0; color: #9b2c2c; cursor: pointer; font-size: 1.5rem; }
.fhfc__text-button { background: transparent; border: 0; color: var(--blue); cursor: pointer; font: inherit; font-weight: 700; margin: .25rem 0 1rem; padding: .3rem 0; }
.fhfc__notice { background: #fff8e8; border: 1px solid #f2d593; border-radius: 0 0 18px 18px; color: #6b520e; font-size: .92rem; padding: 1.25rem 1.5rem; }
.fhfc__notice strong { display: block; }
.fhfc__field--slider { background: #f5f8fb; border-radius: 12px; padding: 1rem; }
.fhfc__field--slider output { color: var(--blue); font-size: 1.15rem; }
.fhfc input[type="range"] { accent-color: var(--blue); border: 0; min-height: 50px; padding: 0; }
.fhfc__range-labels { color: var(--muted); display: flex; font-size: .75rem; justify-content: space-between; }
.fhfc__chart { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 1.5rem 0; padding: 1rem; }
.fhfc__chart figcaption { color: var(--navy); font-size: 1.15rem; font-weight: 800; }
.fhfc__chart svg { display: block; height: auto; margin-top: .5rem; overflow: visible; width: 100%; }
.fhfc__chart text { fill: var(--muted); font-size: 18px; }
.fhfc__legend { display: flex; flex-wrap: wrap; font-size: .8rem; gap: 1rem; margin-top: .5rem; }
.fhfc__legend i { border-radius: 99px; display: inline-block; height: 6px; margin-right: .35rem; vertical-align: middle; width: 32px; }
.fhfc__legend-balance { background: var(--blue); }
.fhfc__legend-dividends { background: var(--gold); }
.fhfc__explanation { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-top: 1rem; padding: 1rem 1.2rem; }
.fhfc__explanation h5 { color: var(--navy); font-size: 1.1rem; margin: 1rem 0 .25rem; }
.fhfc__explanation h5:first-child { margin-top: 0; }
.fhfc__fineprint { color: var(--muted); font-size: .82rem; }
.fhfc__good { color: #227a45; }
.fhfc__warning { color: #a0442c; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }

/* Explicit type scale prevents Beaver Builder and theme typography from shrinking calculator copy. */
.fhfc button.fhfc__choice,
.fhfc button.fhfc__choice > span:not(.fhfc__choice-number) {
  font-size: 25px !important;
  line-height: 1.2 !important;
}
.fhfc button.fhfc__choice .fhfc__choice-number {
  font-size: 21px !important;
}
.fhfc button.fhfc__choice small {
  font-size: 18px !important;
  line-height: 1.3 !important;
  margin-top: 8px !important;
}
.fhfc .fhfc__panel-heading h3 {
  font-size: 38px !important;
  line-height: 1.12 !important;
  margin-bottom: 14px !important;
}
.fhfc input:not([type="range"]),
.fhfc select,
.fhfc option {
  font-size: 26px !important;
  line-height: 1.25 !important;
}
.fhfc .fhfc__panel-heading p,
.fhfc .fhfc__intro p {
  font-size: 22px !important;
  line-height: 1.55 !important;
}
.fhfc label.fhfc__field,
.fhfc label.fhfc__field > span,
.fhfc label.fhfc__field > span:first-child {
  font-size: 22px !important;
  line-height: 1.4 !important;
}
.fhfc .fhfc__field--slider output {
  font-size: 24px !important;
}
.fhfc .fhfc__range-labels,
.fhfc .fhfc__range-labels span {
  font-size: 18px !important;
  line-height: 1.35 !important;
}
.fhfc .fhfc__result,
.fhfc .fhfc__result p,
.fhfc .fhfc__result li,
.fhfc .fhfc__result td,
.fhfc .fhfc__result th {
  font-size: 21px !important;
  line-height: 1.55 !important;
}
.fhfc .fhfc__result h4 {
  font-size: 34px !important;
  line-height: 1.18 !important;
}
.fhfc .fhfc__result h5 {
  font-size: 26px !important;
  line-height: 1.25 !important;
}
.fhfc .fhfc__metric span {
  font-size: 19px !important;
  line-height: 1.35 !important;
}
.fhfc .fhfc__metric strong {
  font-size: 31px !important;
  line-height: 1.2 !important;
}
.fhfc .fhfc__chart figcaption {
  font-size: 25px !important;
}
.fhfc .fhfc__legend,
.fhfc .fhfc__legend span {
  font-size: 18px !important;
}
.fhfc .fhfc__fineprint {
  font-size: 17px !important;
  line-height: 1.45 !important;
}
.fhfc footer.fhfc__notice,
.fhfc footer.fhfc__notice strong {
  font-size: 15px !important;
  line-height: 1.5 !important;
}
@media (max-width: 760px) {
  .fhfc { font-size: 20px; }
  .fhfc__chooser { grid-template-columns: 1fr; }
  .fhfc__choice { min-height: 86px; }
  .fhfc__fields, .fhfc__metrics { grid-template-columns: 1fr; }
  .fhfc__panel-heading { display: block; }
  .fhfc__time { display: inline-block; margin-top: .7rem; }
}
@media (max-width: 480px) {
  .fhfc__chooser { display: block; }
  .fhfc__choice { border-bottom: 1px solid var(--line); width: 100%; }
  .fhfc__position { grid-template-columns: 1fr 1fr 28px; gap: .4rem; }
  .fhfc label.fhfc__field,
  .fhfc label.fhfc__field > span,
  .fhfc .fhfc__result,
  .fhfc .fhfc__result p,
  .fhfc .fhfc__result td,
  .fhfc .fhfc__result th { font-size: 20px !important; }
  .fhfc .fhfc__metric strong { font-size: 29px !important; }
  .fhfc .fhfc__panel-heading h3 { font-size: 34px !important; }
  .fhfc button.fhfc__choice,
  .fhfc button.fhfc__choice > span:not(.fhfc__choice-number) { font-size: 23px !important; }
}
