/* Local design variant for the homepage tools navigation and calculators. */
.bs-tools, .bs-tool-menu {
  --tool-ink: #174c75;
  --tool-blue: #1a6faf;
  --tool-navy: #0d3b6e;
  --tool-amber: #f5a623;
  --tool-line: #d8e3ed;
  --tool-surface: #f7f9fc;
  --tool-ease: cubic-bezier(.22, 1, .36, 1);
  font-family: "DM Sans", sans-serif;
}
.bs-tool-menu { position: relative; }
.bs-tool-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 8px;
  color: #334155;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.bs-tool-menu > summary::-webkit-details-marker { display: none; }
.bs-tool-menu > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms var(--tool-ease);
}
.bs-tool-menu[open] > summary { color: var(--tool-blue); }
.bs-tool-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.bs-tool-menu__links {
  position: absolute;
  z-index: 12;
  top: 100%;
  left: 0;
  width: min(310px, 85vw);
  padding: 5px 16px;
  background: #fff;
  border: 1px solid var(--tool-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(13, 59, 110, .12);
}
.bs-tool-menu[open] > .bs-tool-menu__links { animation: bs-tools-enter 170ms var(--tool-ease) both; }
.bs-tool-menu .bs-tool-menu__links a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  column-gap: 14px;
  min-height: 64px;
  padding: 9px 3px;
  color: var(--tool-ink);
  text-decoration: none;
  white-space: normal;
}
.bs-tool-menu__links a + a { border-top: 1px solid var(--tool-line); }
.bs-tool-menu__links strong { font-size: 15px; font-weight: 600; }
.bs-tool-menu__links small { grid-column: 1; font-size: 12px; color: #526271; line-height: 1.5; }
.bs-tool-menu__links .bs-link-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.bs-tool-menu--mobile { padding: 0 8px; border-bottom: 1px solid var(--tool-line); }
.bs-tool-menu--mobile > summary { display: flex; justify-content: space-between; padding: 0; min-height: 48px; }
.bs-tool-menu--mobile .bs-tool-menu__links {
  position: static;
  width: 100%;
  padding: 0 10px;
  margin: 0 0 8px;
  box-shadow: none;
  background: var(--tool-surface);
}

.bs-tools { background: #fff; color: #354858; scroll-margin-top: 82px; }
.bs-tools__inner { max-width: 1160px; margin: 0 auto; padding: clamp(40px, 5vw, 76px) clamp(18px, 4vw, 52px); }
.bs-tools__header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.bs-tools .bs-tools__title {
  margin: 0;
  color: var(--tool-blue);
  font: 400 clamp(32px, 4vw, 48px)/1.08 "DM Serif Display", Georgia, serif;
  letter-spacing: -.028em;
}
.bs-tools__all, .bs-tools__full {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.bs-tools__all { white-space: nowrap; color: var(--tool-blue); }
.bs-tools a:hover .bs-link-arrow, .bs-tools a:focus-visible .bs-link-arrow,
.bs-tool-menu a:hover .bs-link-arrow, .bs-tool-menu a:focus-visible .bs-link-arrow { transform: translateX(3px); }
.bs-link-arrow { display: inline-block; transition: transform 150ms ease-out; }
.bs-tools__tabs {
  display: flex;
  gap: 24px;
  margin: 18px 0 24px;
  border-bottom: 1px solid var(--tool-line);
}
.bs-tools__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1px;
  color: #526271;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.bs-tools__tab::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: var(--tool-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--tool-ease);
}
.bs-tools__tab[aria-selected="true"] { color: var(--tool-blue); }
.bs-tools__tab[aria-selected="true"]::after { transform: scaleX(1); }
.bs-tools__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  gap: clamp(24px, 5.8vw, 76px);
  align-items: center;
  scroll-margin-top: 90px;
}
.bs-tools__panel[hidden] { display: none !important; }
.bs-tools.js-tools-ready .bs-tools__panel:not([hidden]) { animation: bs-tools-enter 190ms var(--tool-ease) both; }
.bs-tools__panel + .bs-tools__panel { margin-top: 26px; }
.bs-tools.js-tools-ready .bs-tools__panel + .bs-tools__panel { margin-top: 0; }
@keyframes bs-tools-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.bs-calc {
  min-width: 0;
  padding: clamp(20px, 3.2vw, 36px);
  border-radius: 12px;
  color: #fff;
  background: var(--tool-navy);
}
.bs-calc .bs-calc__title { margin: 0 0 4px; color: #fff; font: 400 clamp(24px, 2.75vw, 31px)/1.16 "DM Serif Display", Georgia, serif; }
.bs-calc__assumption { margin: 0; color: #d8e6f2; font-size: 14px; line-height: 1.5; }
.bs-calc__answer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 18px 0; }
.bs-calc__answer output { color: #fff; font: 400 clamp(38px, 4vw, 54px)/1.05 "DM Serif Display", Georgia, serif; font-variant-numeric: tabular-nums; }
.bs-calc__answer span { color: #d8e6f2; font-size: 15px; }
.bs-calc__field { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.bs-calc__field label, .bs-calc__field span { color: #fff; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bs-calc__range { --fill: 0; position: relative; height: 44px; display: flex; align-items: center; }
.bs-calc__rail { position: absolute; inset: 20px 10px auto; height: 4px; overflow: hidden; border-radius: 4px; background: #69839e; pointer-events: none; }
.bs-calc__rail::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--tool-amber);
  transform: scaleX(var(--fill));
  transform-origin: left;
}
.bs-calc__range input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 100%;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.bs-calc__range input::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.bs-calc__range input::-moz-range-track { height: 4px; background: transparent; }
.bs-calc__range input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin-top: -8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--tool-amber);
}
.bs-calc__range input::-moz-range-thumb {
  box-sizing: border-box;
  width: 20px; height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--tool-amber);
}
.bs-calc__ends { display: flex; justify-content: space-between; margin-top: -4px; color: #d8e6f2; font-size: 12px; }
.bs-tools .bs-tools__full { margin-top: 11px; color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #91b3ce; }
.bs-tools .bs-tools__list-title { margin: 0 0 8px; font: 400 25px/1.18 "DM Serif Display", Georgia, serif; color: var(--tool-blue); }
.bs-tools__list ul { list-style: none; margin: 0; padding: 0; }
.bs-tools__list li { margin: 0; padding: 0; border-bottom: 1px solid var(--tool-line); }
.bs-tools__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 53px;
  padding: 10px 2px;
  color: #253f52;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.bs-tools__list a:hover, .bs-tools__list a:focus-visible { color: var(--tool-blue); }
.bs-tools__list .bs-link-arrow { color: var(--tool-blue); }
.bs-tools__more > summary {
  width: fit-content;
  min-height: 44px;
  padding: 11px 2px 8px;
  color: var(--tool-blue);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.bs-tools__more[open] > ul { animation: bs-tools-enter 170ms var(--tool-ease) both; }
.bs-tools__more li a { font-size: 15px; min-height: 46px; }
.bs-tools :is(a, input, summary):focus-visible, .bs-tool-menu :is(summary, a):focus-visible {
  outline: 2px solid var(--tool-blue);
  outline-offset: 3px;
}
.bs-tools .bs-calc :is(a, input):focus-visible { outline-color: var(--tool-amber); }
@media (max-width: 720px) {
  .bs-tools__panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bs-tools__header { flex-wrap: wrap; gap: 1px 14px; }
  .bs-tools__tabs { gap: 20px; margin-top: 10px; }
  .bs-tools__tab { font-size: 14px; }
  .bs-tools__all { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .bs-tools *, .bs-tools *::after, .bs-tool-menu *, .bs-tool-menu *::after,
  .navbar__mobile-panel { animation: none !important; transition: none !important; }
}

