#kst-investment-tools {
  --ki-ink: #0b1c39;
  --ki-blue: #153da8;
  --ki-dark: #0a3040;
  --ki-line: #a2adba;
  --ki-ice: #e3edff;
  color: var(--ki-ink);
  font: 400 17px/1.5 Inter, Arial, sans-serif;
  text-align: start;
}
#kst-investment-tools *, #kst-investment-tools *::before, #kst-investment-tools *::after { box-sizing: border-box; }
#kst-investment-tools [hidden] { display: none !important; }
#kst-investment-tools .kif-tabs {
  display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; margin: 0 0 18px;
  border: 1px solid #a8b6c3; background: #f0f3f6; width: fit-content; max-width: 100%;
}
#kst-investment-tools .kif-tabs a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 15px; min-height: 42px; font: 650 16px/1.25 Inter, Arial, sans-serif;
  color: var(--ki-dark); text-decoration: none; overflow-wrap: anywhere;
}
#kst-investment-tools .kif-tabs a[aria-selected="true"] { background: var(--ki-dark); color: #fff; }
#kst-investment-tools .kif-tabs a:hover { text-decoration: underline; text-underline-offset: .18em; }
#kst-investment-tools section { margin: 0; padding: 0; scroll-margin-top: 42px; }
#kst-investment-tools p.kif-intro { max-width: 70ch; margin: 0 0 19px; }
#kst-investment-tools form { margin: 0; padding: clamp(15px, 2.4vw, 28px); border: 1px solid #c5cdd5; background: #fff; }
#kst-investment-tools fieldset { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
#kst-investment-tools legend { padding: 0; margin: 0 0 11px; color: var(--ki-dark); font-size: 19px; font-weight: 700; }
#kst-investment-tools .kif-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 20px; align-items: start; }
#kst-investment-tools .kif-field { min-width: 0; }
#kst-investment-tools .kif-field label {
  display: block; margin: 0 0 5px; color: var(--ki-ink); font: 650 15px/1.35 Inter, Arial, sans-serif;
}
#kst-investment-tools .kif-field :is(input,select) {
  display: block; width: 100%; max-width: 100%; min-height: 44px; margin: 0; padding: 8px 10px;
  border: 1px solid var(--ki-line); border-radius: 0; box-shadow: none; color: var(--ki-ink);
  background-color: #fff; font: 400 17px/1.25 Inter,Arial,sans-serif; font-variant-numeric: tabular-nums;
}
#kst-investment-tools .kif-field input:disabled { background: #eff1f3; }
#kst-investment-tools .kif-field [aria-invalid="true"] { border: 2px solid #a52b26; }
#kst-investment-tools .kif-field small, #kst-investment-tools .kif-note, #kst-investment-tools .kif-rate-note {
  display: block; color: #3a5064; font: 400 15px/1.4 Inter,Arial,sans-serif;
}
#kst-investment-tools .kif-field small { margin-top: 5px; }
#kst-investment-tools p.kif-rate-note, #kst-investment-tools p.kif-note { margin: 15px 0 0; }
#kst-investment-tools .kif-rate-note:empty { display: none; }
#kst-investment-tools .kif-submit {
  display: inline-block; min-height: 44px; margin: 16px 0 0; padding: 9px 19px; border: 0; border-radius: 0;
  color: #fff; background: var(--ki-blue); font: 650 17px/1.25 Inter,Arial,sans-serif; text-transform: none; cursor: pointer;
}
#kst-investment-tools .kif-submit:hover { background: #0b2e83; }
#kst-investment-tools .kif-submit:disabled { opacity: .65; }
#kst-investment-tools :focus-visible { outline: 3px solid #ac4d00; outline-offset: 2px; }
#kst-investment-tools p.kif-error { padding: 9px 12px; margin: 14px 0 0; color: #84251c; background: #fff0eb; border-inline-start: 3px solid #a52b26; }
#kst-investment-tools .kif-result { margin: 20px 0 0; }
#kst-investment-tools .kif-highlight { background: var(--ki-ice); padding: clamp(14px, 2vw, 24px); }
#kst-investment-tools .kif-highlight h2 {
  color: var(--ki-ink); margin: 0 0 5px; font: 650 17px/1.3 Inter,Arial,sans-serif; text-transform: none; letter-spacing: normal;
}
#kst-investment-tools .kif-highlight strong { display: block; overflow-wrap: anywhere; font: 700 clamp(27px, 3.1vw, 42px)/1.12 Inter,Arial,sans-serif; }
#kst-investment-tools .kif-highlight p { margin: 7px 0 0; }
#kst-investment-tools .kif-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px 14px; margin: 0; padding: 13px 0; }
#kst-investment-tools .kif-metrics div { min-width: 0; border-top: 1px solid #aebdca; padding-top: 8px; }
#kst-investment-tools .kif-metrics dt { color: #365066; font-size: 14px; line-height: 1.3; }
#kst-investment-tools .kif-metrics dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
#kst-investment-tools .kif-breakdown { margin-top: 10px; }
#kst-investment-tools summary { padding: 6px 0; cursor: pointer; font-weight: 650; color: var(--ki-dark); }
#kst-investment-tools .kif-scroll { max-width: 100%; max-height: 29rem; overflow: auto; margin-top: 6px; }
#kst-investment-tools .kif-scroll table { display: table; width: 100%; min-width: 410px; margin: 0; border-collapse: collapse; }
#kst-investment-tools .kif-scroll :is(th,td) {
  padding: 7px 9px; border: 0; border-bottom: 1px solid #ccd3db; text-align: end;
  color: var(--ki-ink); background: #fff; font: 400 15px/1.3 Inter,Arial,sans-serif; font-variant-numeric: tabular-nums;
}
#kst-investment-tools .kif-scroll thead th { position: sticky; top: 0; background: #e8edf1; font-weight: 700; }
#kst-investment-tools .kif-scroll tr > :first-child { text-align: start; }
#kst-investment-tools .kif-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  #kst-investment-tools .kif-fields { grid-template-columns: 1fr; gap: 12px; }
  #kst-investment-tools .kif-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  #kst-investment-tools .kif-tabs a { padding: 7px 6px; font-size: 15px; text-align: center; }
  #kst-investment-tools .kif-metrics { grid-template-columns: 1fr; }
  #kst-investment-tools .kif-metrics div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  #kst-investment-tools .kif-metrics dd { margin: 0; text-align: end; }
}
