/* Financial calculators embedded in the existing site layout. */
.finance-calculators-page {
  --nl-blue: var(--color-accent);
  --nl-dark: var(--color-primary);
  --nl-deep: var(--color-text);
  --nl-muted: var(--color-text-muted);
  --nl-border: var(--color-border);
  --nl-bg: var(--color-bg);
  --nl-sky: var(--color-bg-light);
  --nl-teal: var(--color-success-dark);
  --nl-green: #18794e;
  --nl-shadow: var(--shadow-sm);
}
.finance-calculators-page button,
.finance-calculators-page input,
.finance-calculators-page select {
  font: inherit;
}
.finance-calculators-page button {
  cursor: pointer;
}
.finance-calculators-page button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.finance-calculators-page :is(button, input, select, summary):focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}
.finance-calculators-page .calc-page-desc {
  max-width: 900px;
}
.finance-calculators-page
  > .container
  > :is(.nl-calc, .nl-chart-card, .nl-table-card, .nl-section) {
  max-width: 1120px;
  margin-inline: auto;
}
.nl-section-title {
  margin: 30px 0 17px;
  color: var(--nl-dark);
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.55px;
}
.nl-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.93fr);
  gap: 22px;
  align-items: start;
  margin-top: 27px;
}
.nl-card {
  background: white;
  border: 1px solid var(--nl-border);
  border-radius: 17px;
  box-shadow: var(--nl-shadow);
  padding: 26px;
  min-width: 0;
}
.nl-form-head,
.nl-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.nl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  width: 42px;
  height: 42px;
  background: #edf4ff;
  color: var(--nl-blue);
  font-size: 20px;
  border-radius: 11px;
}
.nl-form-head h2,
.nl-result-head h2 {
  font-size: 20px;
  letter-spacing: -0.35px;
  margin: 0;
  color: var(--nl-dark);
  line-height: 1.3;
}
.nl-form-head p,
.nl-result-head p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--nl-muted);
}
.nl-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 16px;
}
.nl-field {
  min-width: 0;
}
.nl-field.nl-full {
  grid-column: 1/-1;
}
.nl-field label,
.nl-field .nl-field-label {
  font-weight: 700;
  color: #31445d;
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
}
.nl-control-wrap {
  position: relative;
}
.nl-control {
  border: 1px solid #cedbe9;
  background: #fff;
  border-radius: 10px;
  color: #152a47;
  min-height: 47px;
  padding: 10px 13px;
  width: 100%;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  appearance: auto;
}
.nl-control:hover {
  border-color: #a8bedb;
}
.nl-control:focus {
  border-color: #3980e8;
  box-shadow: 0 0 0 3px rgba(37, 103, 225, 0.1);
}
.nl-control[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.nl-control[type="number"]::-webkit-outer-spin-button,
.nl-control[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.nl-with-suffix {
  padding-right: 49px;
}
.nl-suffix {
  position: absolute;
  right: 14px;
  top: 12px;
  color: #77889d;
  font-size: 14px;
  pointer-events: none;
}
.nl-hint {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #75869a;
}
.nl-fieldset {
  border: 0;
  padding: 0;
  margin: 23px 0 0;
}
.nl-fieldset legend,
.nl-mini-title {
  color: var(--nl-dark);
  font-size: 14px;
  font-weight: 800;
  padding: 0 0 12px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nl-fieldset legend:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5edf6;
  margin-left: 4px;
}
.nl-choice {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nl-choice label {
  position: relative;
  cursor: pointer;
}
.nl-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nl-choice span {
  padding: 8px 13px;
  display: inline-flex;
  background: #f8fbff;
  border-radius: 9px;
  border: 1px solid #dce6f1;
  color: #456077;
  font-size: 13px;
  font-weight: 650;
}
.nl-choice input:checked + span {
  color: var(--nl-blue);
  background: #edf5ff;
  border-color: #6a9ef0;
}
.nl-choice input:focus-visible + span {
  outline: 3px solid #80b1ff;
}
.nl-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  color: #42556d;
}
.nl-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--nl-blue);
}
.nl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.nl-btn {
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px 19px;
  font-size: 14px;
  font-weight: 750;
  min-height: 46px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.12s,
    background 0.15s;
}
.nl-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.nl-btn-primary {
  color: white;
  background: var(--nl-blue);
  box-shadow: 0 6px 15px rgba(30, 97, 211, 0.17);
}
.nl-btn-primary:hover {
  background: #1454c5;
}
.nl-btn-light {
  background: #eff5fc;
  color: #31577d;
  border-color: #e2eaf5;
}
.nl-btn-outline {
  color: var(--nl-blue);
  border-color: #ccdef5;
  background: white;
}
.nl-error {
  display: none;
  border: 1px solid #f2b7b5;
  color: #a32f35;
  background: #fff4f3;
  font-size: 13px;
  border-radius: 9px;
  padding: 10px 13px;
  margin-top: 16px;
}
.nl-error.is-visible {
  display: block;
}
.nl-panel-note {
  background: #f1f7ff;
  border-left: 3px solid #8fb5ee;
  color: #516a82;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
  border-radius: 0 9px 9px 0;
  margin-top: 19px;
}
.nl-result-placeholder {
  border: 1px dashed #cdddec;
  border-radius: 13px;
  padding: 38px 14px;
  text-align: center;
  background: #f9fcff;
  color: #58708b;
}
.nl-result-placeholder .nl-placeholder-symbol {
  font-size: 38px;
  color: var(--nl-blue);
}
.nl-result-placeholder p {
  max-width: 310px;
  margin: 9px auto 0;
  font-size: 14px;
}
.nl-result:not(.has-result) .nl-results-data {
  display: none;
}
.nl-result.has-result .nl-result-placeholder {
  display: none;
}
.nl-main-number {
  color: var(--nl-dark);
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 850;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-top: 7px;
}
.nl-main-number small {
  font-size: 20px;
  font-weight: 650;
  color: #4b637e;
}
.nl-number-label {
  color: #718198;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nl-result-primary {
  border: 1px solid #d5e6fc;
  background: linear-gradient(125deg, #f4f9ff, #eaf4ff);
  border-radius: 13px;
  padding: 21px 21px 20px;
}
.nl-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}
.nl-stat {
  background: #f8fafe;
  border: 1px solid #e9eff6;
  border-radius: 11px;
  padding: 14px;
}
.nl-stat .nl-label {
  font-size: 12px;
  color: #71849a;
  line-height: 1.35;
}
.nl-stat .nl-value {
  font-size: 20px;
  color: var(--nl-dark);
  font-weight: 800;
  margin-top: 5px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nl-stat .nl-value.nl-green {
  color: var(--nl-green);
}
.nl-result-note {
  font-size: 12px;
  color: #73859b;
  line-height: 1.5;
  margin: 14px 0 0;
}
.nl-chart-card,
.nl-table-card {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--nl-border);
  border-radius: 17px;
  box-shadow: var(--nl-shadow);
  padding: 25px;
  min-width: 0;
}
.nl-chart-card h2,
.nl-table-card h2 {
  font-size: 20px;
  margin: 0 0 3px;
  color: var(--nl-dark);
}
.nl-chart-sub {
  color: var(--nl-muted);
  font-size: 13px;
  margin: 0 0 15px;
}
.nl-graph {
  width: 100%;
  height: auto;
  display: block;
  min-height: 210px;
}
.nl-chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 0;
  color: #4d637c;
  font-size: 12px;
}
.nl-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.nl-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.nl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
}
.nl-table th {
  background: #f2f7fd;
  color: #48617b;
  text-align: right;
  padding: 12px 13px;
  white-space: nowrap;
  font-weight: 750;
}
.nl-table th:first-child,
.nl-table td:first-child {
  text-align: left;
}
.nl-table td {
  padding: 11px 13px;
  text-align: right;
  border-bottom: 1px solid #eaf0f7;
  color: #34506c;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nl-table tr:last-child td {
  border-bottom: 0;
}
.nl-table tfoot td {
  font-weight: 800;
  color: var(--nl-dark);
  background: #f7faff;
}
.nl-comparison {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 13px;
}
.nl-comparison.is-visible {
  display: grid;
}
.nl-compare-card {
  background: #f7faff;
  border: 1px solid var(--nl-border);
  border-radius: 12px;
  padding: 16px;
}
.nl-compare-card.best {
  background: #eefaf5;
  border-color: #c8e9db;
}
.nl-compare-card strong {
  display: block;
  font-size: 14px;
  color: var(--nl-dark);
}
.nl-compare-card .nl-comparison-number {
  color: var(--nl-dark);
  font-size: 25px;
  font-weight: 850;
  margin: 7px 0 1px;
}
.nl-compare-card span {
  color: #697d92;
  font-size: 12px;
}
.nl-compare-card em {
  font-size: 12px;
  color: var(--nl-green);
  font-style: normal;
  font-weight: 800;
}

.nl-section {
  margin-top: 39px;
}
.nl-copy {
  background: white;
  border: 1px solid var(--nl-border);
  border-radius: 17px;
  padding: 29px 32px;
  box-shadow: var(--nl-shadow);
}
.nl-copy h2 {
  color: var(--nl-dark);
  font-size: 23px;
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin: 0 0 13px;
}
.nl-copy h2:not(:first-child) {
  margin-top: 29px;
}
.nl-copy h3 {
  font-size: 17px;
  color: #173a6e;
  margin: 21px 0 8px;
}
.nl-copy p {
  margin: 0 0 13px;
  color: #52667b;
  font-size: 15px;
  line-height: 1.8;
}
.nl-copy p:last-child {
  margin-bottom: 0;
}
.nl-copy ul {
  margin: 0 0 14px;
  padding-left: 21px;
  color: #52667b;
}
.nl-copy li {
  margin: 7px 0;
}
.nl-copy .nl-example {
  margin: 16px 0;
  background: #eff6ff;
  border-left: 3px solid var(--nl-blue);
  padding: 15px 19px;
  border-radius: 0 9px 9px 0;
}
.nl-copy .nl-example p {
  margin: 0;
}
.nl-faq {
  margin-top: 26px;
}
.nl-faq h2 {
  font-size: 24px;
  color: var(--nl-dark);
  margin: 0 0 14px;
}
.nl-faq details {
  border: 1px solid var(--nl-border);
  background: white;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 11px;
}
.nl-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 25px 15px 0;
  color: #263d5d;
  font-weight: 750;
  position: relative;
  font-size: 14px;
}
.nl-faq summary::-webkit-details-marker {
  display: none;
}
.nl-faq summary:after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 22px;
  top: 11px;
  color: var(--nl-blue);
}
.nl-faq details[open] summary:after {
  content: "−";
}
.nl-faq details p {
  border-top: 1px solid #edf1f6;
  color: #546b82;
  font-size: 14px;
  padding: 12px 0 16px;
  margin: 0;
  line-height: 1.75;
}
.nl-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.nl-related a {
  background: #fff;
  border: 1px solid var(--nl-border);
  border-radius: 12px;
  display: block;
  padding: 17px;
  font-weight: 750;
  font-size: 14px;
  line-height: 1.5;
}
.nl-related a span {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: #7c8ca1;
  margin-top: 5px;
}
.nl-added-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.nl-one-off {
  background: #f8fbff;
  border: 1px solid #e2ebf5;
  border-radius: 10px;
  padding: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}
.nl-one-off label {
  display: block;
  color: #546880;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
}
.nl-one-off .nl-control {
  min-height: 39px;
  padding: 7px 9px;
  font-size: 12px;
}
.nl-icon-btn {
  width: 38px;
  height: 39px;
  border-radius: 8px;
  border: 1px solid #f5c9c9;
  background: white;
  color: #b54949;
  font-size: 19px;
}
.nl-offer {
  background: #f8fbff;
  border: 1px solid var(--nl-border);
  padding: 14px;
  border-radius: 12px;
  margin-top: 11px;
}
.nl-offer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--nl-dark);
  font-weight: 800;
  font-size: 14px;
}
.nl-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.nl-offer .nl-control {
  min-height: 40px;
  padding: 7px 10px;
}
.nl-offer .nl-field label {
  font-size: 12px;
}
.nl-offer-head button {
  border: 0;
  background: transparent;
  color: #c15153;
  font-size: 12px;
  font-weight: 700;
}
.nl-benefit {
  margin-top: 13px;
  padding: 11px 14px;
  background: #ecfaf3;
  border: 1px solid #ceeadb;
  border-radius: 10px;
  color: #247558;
  font-size: 13px;
  font-weight: 750;
}
.nl-smallprint {
  font-size: 12px;
  color: #6c7f94;
  margin: 11px 0;
}
.nl-hidden {
  display: none !important;
}
.nl-table-card .nl-actions {
  margin-top: 17px;
}
.nl-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.nl-chart-title {
  min-width: 0;
}

.nl-full {
  grid-column: 1 / -1;
}
#nl-add-event,
#nl-add-offer {
  margin-top: 12px;
}
.nl-series-0 {
  background: #2263d8;
}
.nl-series-1 {
  background: #11937f;
}
.nl-series-2 {
  background: #d7883b;
}
.nl-series-3 {
  background: #9265c9;
}
.nl-series-4 {
  background: #d25c75;
}
@media (max-width: 850px) {
  .nl-calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .nl-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .nl-calc {
    gap: 16px;
    margin-top: 20px;
  }
  .nl-card,
  .nl-chart-card,
  .nl-table-card,
  .nl-copy {
    padding: 18px;
  }
  .nl-form-grid {
    gap: 12px;
  }
  .nl-mobile-full {
    grid-column: 1 / -1;
  }
  .nl-form-head h2,
  .nl-result-head h2 {
    font-size: 18px;
  }
  .nl-main-number {
    font-size: 30px;
    overflow-wrap: anywhere;
  }
  .nl-stat .nl-value {
    font-size: 17px;
    overflow-wrap: anywhere;
  }
  .nl-actions .nl-btn-primary {
    flex: 1 1 100%;
  }
  .nl-related,
  .nl-comparison {
    grid-template-columns: minmax(0, 1fr);
  }
  .nl-one-off {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nl-one-off-last {
    grid-column: 1 / -1;
  }
  .nl-one-off .nl-icon-btn {
    grid-column: 2;
    justify-self: end;
  }
  .nl-graph {
    min-height: 160px;
  }
}
@media (max-width: 390px) {
  .nl-form-grid,
  .nl-offer-grid,
  .nl-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media print {
  .finance-calculators-page .nl-btn,
  .finance-calculators-page .breadcrumbs {
    display: none;
  }
  .nl-card,
  .nl-copy,
  .nl-table-card,
  .nl-chart-card {
    box-shadow: none;
    break-inside: avoid;
  }
  .nl-calc {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Deposit yield: show principal and earned interest without inline styles. */
.nl-yield-breakdown {
  display: flex;
  height: 13px;
  overflow: hidden;
  border-radius: 30px;
  background: #d7ecdf;
  margin-top: 18px;
}
.nl-yield-base {
  background: #2467d9;
  flex: 0 0 auto;
}
.nl-yield-profit {
  background: #14a27e;
  flex: 1;
}
.nl-yield-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 17px;
  margin-top: 10px;
  font-size: 12px;
  color: #587088;
}
.nl-yield-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nl-yield-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.nl-yield-dot-base {
  background: #2467d9;
}
.nl-yield-dot-profit {
  background: #14a27e;
}

.nl-yield-width-0,
.nl-yield-width-1,
.nl-yield-width-2,
.nl-yield-width-3,
.nl-yield-width-4 {
  width: 0%;
}

.nl-yield-width-5,
.nl-yield-width-6,
.nl-yield-width-7,
.nl-yield-width-8,
.nl-yield-width-9 {
  width: 5%;
}

.nl-yield-width-10,
.nl-yield-width-11,
.nl-yield-width-12,
.nl-yield-width-13,
.nl-yield-width-14 {
  width: 10%;
}

.nl-yield-width-15,
.nl-yield-width-16,
.nl-yield-width-17,
.nl-yield-width-18,
.nl-yield-width-19 {
  width: 15%;
}

.nl-yield-width-20,
.nl-yield-width-21,
.nl-yield-width-22,
.nl-yield-width-23,
.nl-yield-width-24 {
  width: 20%;
}

.nl-yield-width-25,
.nl-yield-width-26,
.nl-yield-width-27,
.nl-yield-width-28,
.nl-yield-width-29 {
  width: 25%;
}

.nl-yield-width-30,
.nl-yield-width-31,
.nl-yield-width-32,
.nl-yield-width-33,
.nl-yield-width-34 {
  width: 30%;
}

.nl-yield-width-35,
.nl-yield-width-36,
.nl-yield-width-37,
.nl-yield-width-38,
.nl-yield-width-39 {
  width: 35%;
}

.nl-yield-width-40,
.nl-yield-width-41,
.nl-yield-width-42,
.nl-yield-width-43,
.nl-yield-width-44 {
  width: 40%;
}

.nl-yield-width-45,
.nl-yield-width-46,
.nl-yield-width-47,
.nl-yield-width-48,
.nl-yield-width-49 {
  width: 45%;
}

.nl-yield-width-50,
.nl-yield-width-51,
.nl-yield-width-52,
.nl-yield-width-53,
.nl-yield-width-54 {
  width: 50%;
}

.nl-yield-width-55,
.nl-yield-width-56,
.nl-yield-width-57,
.nl-yield-width-58,
.nl-yield-width-59 {
  width: 55%;
}

.nl-yield-width-60,
.nl-yield-width-61,
.nl-yield-width-62,
.nl-yield-width-63,
.nl-yield-width-64 {
  width: 60%;
}

.nl-yield-width-65,
.nl-yield-width-66,
.nl-yield-width-67,
.nl-yield-width-68,
.nl-yield-width-69 {
  width: 65%;
}

.nl-yield-width-70,
.nl-yield-width-71,
.nl-yield-width-72,
.nl-yield-width-73,
.nl-yield-width-74 {
  width: 70%;
}

.nl-yield-width-75,
.nl-yield-width-76,
.nl-yield-width-77,
.nl-yield-width-78,
.nl-yield-width-79 {
  width: 75%;
}

.nl-yield-width-80,
.nl-yield-width-81,
.nl-yield-width-82,
.nl-yield-width-83,
.nl-yield-width-84 {
  width: 80%;
}

.nl-yield-width-85,
.nl-yield-width-86,
.nl-yield-width-87,
.nl-yield-width-88,
.nl-yield-width-89 {
  width: 85%;
}

.nl-yield-width-90,
.nl-yield-width-91,
.nl-yield-width-92,
.nl-yield-width-93,
.nl-yield-width-94 {
  width: 90%;
}

.nl-yield-width-95,
.nl-yield-width-96,
.nl-yield-width-97,
.nl-yield-width-98,
.nl-yield-width-99 {
  width: 95%;
}

.nl-yield-width-100 {
  width: 100%;
}
