div.tio.tio-credit {
  --tio-paper: #f3eee4;
  --tio-paper-2: #fbf8f2;
  --tio-ink: #1c1914;
  --tio-muted: #5e584e;
  --tio-line: #ddd4c4;
  --tio-forest: #1a4032;
  --tio-forest-2: #e7f0ea;
  --tio-copper: #8c4522;
  --tio-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --tio-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --tio-ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
  max-width: 100%;
  min-width: 0;
  container: tio-credit / inline-size;
  box-sizing: border-box;
  margin: 1.75rem 0;
  padding: 22px 22px 16px;
  color: var(--tio-ink);
  font-family: var(--tio-sans);
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 110px),
    var(--tio-paper);
  border: 1px solid var(--tio-line);
  border-left: 4px solid var(--tio-forest);
}

div.tio.tio-credit *,
div.tio.tio-credit *::before,
div.tio.tio-credit *::after {
  box-sizing: border-box;
}

div.tio.tio-credit p,
div.tio.tio-credit ul,
div.tio.tio-credit ol,
div.tio.tio-credit li,
div.tio.tio-credit dl,
div.tio.tio-credit dt,
div.tio.tio-credit dd,
div.tio.tio-credit fieldset {
  margin: 0;
  padding: 0;
}

div.tio.tio-credit fieldset {
  border: 0;
  min-width: 0;
}

div.tio.tio-credit p.tio-kicker,
div.tio.tio-credit p.tio-label {
  margin: 0 0 6px;
  color: var(--tio-copper);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

div.tio.tio-credit p.tio-kicker {
  font-size: 1.5rem;
  line-height: 1.15;
}

div.tio.tio-credit p.tio-label {
  font-size: 1.25rem;
  line-height: 1.2;
}

div.tio.tio-credit p.tio-credit__title {
  margin: 0 0 6px;
  font-family: var(--tio-serif);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

div.tio.tio-credit p.tio-intro,
div.tio.tio-credit p.tio-help,
div.tio.tio-credit p.tio-assumptions,
div.tio.tio-credit p.tio-hero__sub,
div.tio.tio-credit p.tio-scenario__note {
  color: var(--tio-muted);
  font-size: 13px;
}

div.tio.tio-credit p.tio-intro {
  margin: 0 0 12px;
}

div.tio.tio-credit p.tio-help {
  margin-top: 4px;
}

div.tio.tio-credit p.tio-country-lock {
  display: inline-block;
  margin: 4px 0 14px;
  padding-bottom: 4px;
  color: var(--tio-forest);
  border-bottom: 3px solid var(--tio-copper);
  font-size: 1.125rem;
  font-weight: 600;
}

div.tio.tio-credit .tio-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 8px 0 16px;
  border-bottom: 1px solid var(--tio-line);
}

div.tio.tio-credit button.tio-choice,
div.tio.tio-credit button.tio-print {
  width: auto;
  max-width: 100%;
  font-family: inherit;
  cursor: pointer;
}

div.tio.tio-credit button.tio-choice {
  margin: 0 0 -1px;
  padding: 10px 0 8px;
  color: var(--tio-forest);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color 160ms ease, border-color 160ms ease;
}

div.tio.tio-credit button.tio-choice:hover,
div.tio.tio-credit button.tio-choice.is-selected {
  color: var(--tio-copper);
}

div.tio.tio-credit button.tio-choice.is-selected {
  border-bottom-color: var(--tio-copper);
}

div.tio.tio-credit button.tio-choice:focus {
  outline: none;
}

div.tio.tio-credit button.tio-choice:focus-visible,
div.tio.tio-credit button.tio-print:focus-visible {
  outline: 2px solid var(--tio-forest);
  outline-offset: 3px;
}

div.tio.tio-credit .tio-credit__form,
div.tio.tio-credit .tio-credit__results,
div.tio.tio-credit .tio-scenarios,
div.tio.tio-credit .tio-ledger {
  min-width: 0;
  max-width: 100%;
}

div.tio.tio-credit .tio-credit__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 8px;
}

div.tio.tio-credit .tio-field--wide {
  grid-column: 1 / -1;
}

div.tio.tio-credit .tio-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

div.tio.tio-credit .tio-control {
  position: relative;
  background: #fff;
  border: 1px solid #8f8474;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(28, 25, 20, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

div.tio.tio-credit .tio-control:focus-within {
  border-color: var(--tio-forest);
  box-shadow: 0 0 0 3px rgba(26, 64, 50, 0.16);
}

div.tio.tio-credit .tio-control:has(input[aria-invalid="true"]) {
  border-color: var(--tio-copper);
  box-shadow: 0 0 0 3px rgba(140, 69, 34, 0.14);
}

div.tio.tio-credit input:not([type="checkbox"]),
div.tio.tio-credit select.tio-select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 3.6em 12px 12px;
  color: var(--tio-ink);
  background: #fff;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
}

div.tio.tio-credit .tio-control:not(:has(.tio-suffix)) input {
  padding-right: 12px;
}

div.tio.tio-credit input:not([type="checkbox"])::placeholder {
  color: #8a8174;
  opacity: 1;
}

div.tio.tio-credit input:not([type="checkbox"]):focus,
div.tio.tio-credit select.tio-select:focus {
  outline: none;
}

div.tio.tio-credit .tio-suffix {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--tio-forest);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

div.tio.tio-credit select.tio-select {
  padding-right: 2.2em;
  border: 1px solid #8f8474;
  box-shadow: inset 0 1px 2px rgba(28, 25, 20, 0.06);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a4032' d='M1 1.2 6 6.8 11 1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

div.tio.tio-credit select.tio-select:focus {
  border-color: var(--tio-forest);
  box-shadow: 0 0 0 3px rgba(26, 64, 50, 0.16);
}

div.tio.tio-credit [hidden] {
  display: none !important;
}

div.tio.tio-credit p.tio-assumptions {
  margin: 14px 0 8px;
}

div.tio.tio-credit .tio-hero {
  margin: 6px 0 12px;
}

div.tio.tio-credit p.tio-hero__value {
  margin: 0;
  color: var(--tio-forest);
  font-family: var(--tio-serif);
  font-size: clamp(2.3rem, 6vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

div.tio.tio-credit p.tio-hero__sub {
  margin-top: 8px;
}

div.tio.tio-credit p.tio-insight {
  margin: 0 0 16px;
  font-family: var(--tio-serif);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.35;
}

div.tio.tio-credit .tio-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

div.tio.tio-credit .tio-scenario {
  min-width: 0;
  padding: 12px;
  background: var(--tio-paper-2);
  border: 1px solid var(--tio-line);
}

div.tio.tio-credit .tio-scenario.is-base {
  background: var(--tio-forest-2);
  border-color: transparent;
  box-shadow: inset 3px 0 0 var(--tio-forest);
}

div.tio.tio-credit p.tio-scenario__name {
  color: var(--tio-copper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

div.tio.tio-credit p.tio-scenario__years {
  margin-top: 2px;
  font-size: 13px;
}

div.tio.tio-credit p.tio-scenario__pay {
  margin: 4px 0;
  font-family: var(--tio-serif);
  font-size: 1.35rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

div.tio.tio-credit p.tio-delta,
div.tio.tio-credit .tio-delta {
  color: var(--tio-copper);
  font-size: 13px;
  font-weight: 600;
}

div.tio.tio-credit .tio-scenario dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0 0;
  margin-top: 6px;
  border-top: 1px solid var(--tio-line);
}

div.tio.tio-credit .tio-scenario dt {
  color: var(--tio-muted);
  font-size: 12px;
}

div.tio.tio-credit .tio-scenario dd {
  min-width: 0;
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

div.tio.tio-credit .tio-scenario dd .tio-delta {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

div.tio.tio-credit .tio-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  margin: 8px 0 18px;
}

div.tio.tio-credit .tio-ledger div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--tio-line);
}

div.tio.tio-credit .tio-ledger dt {
  color: var(--tio-muted);
}

div.tio.tio-credit .tio-ledger dd {
  text-align: right;
}

div.tio.tio-credit .tio-ledger div.is-strong dt,
div.tio.tio-credit .tio-ledger div.is-strong dd {
  color: var(--tio-ink);
  font-weight: 600;
}

div.tio.tio-credit .tio-ledger div.is-strong dd {
  color: var(--tio-copper);
  font-family: var(--tio-serif);
  font-size: 1.05rem;
}

div.tio.tio-credit p.tio-section {
  margin: 20px 0 10px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

div.tio.tio-credit .tio-mix {
  display: flex;
  width: 100%;
  height: 14px;
  overflow: hidden;
  background: var(--tio-line);
}

div.tio.tio-credit .tio-mix span {
  display: block;
  min-width: 2px;
  height: 100%;
}

div.tio.tio-credit .tio-mix .is-capital { background: var(--tio-forest); }
div.tio.tio-credit .tio-mix .is-premium { background: #c4a15a; }
div.tio.tio-credit .tio-mix .is-interest { background: var(--tio-copper); }
div.tio.tio-credit .tio-mix .is-insurance { background: #7d8f72; }
div.tio.tio-credit .tio-mix .is-tax { background: var(--tio-ink); }

div.tio.tio-credit ul.tio-legend,
div.tio.tio-credit ul.tio-notes {
  margin-top: 8px;
  list-style: none;
}

div.tio.tio-credit ul.tio-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

div.tio.tio-credit ul.tio-legend li {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-size: 13px;
}

div.tio.tio-credit ul.tio-legend li span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: currentColor;
}

div.tio.tio-credit ul.tio-legend li.is-capital span { color: var(--tio-forest); }
div.tio.tio-credit ul.tio-legend li.is-premium span { color: #c4a15a; }
div.tio.tio-credit ul.tio-legend li.is-interest span { color: var(--tio-copper); }
div.tio.tio-credit ul.tio-legend li.is-insurance span { color: #7d8f72; }
div.tio.tio-credit ul.tio-legend li.is-tax span { color: var(--tio-ink); }

div.tio.tio-credit .tio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  margin-bottom: 4px;
}

div.tio.tio-credit .tio-bars span {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  background: var(--tio-forest);
}

div.tio.tio-credit .tio-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

div.tio.tio-credit table {
  width: 100%;
  min-width: 520px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: transparent;
  font-size: 13px;
}

div.tio.tio-credit th,
div.tio.tio-credit td {
  padding: 7px 8px;
  color: var(--tio-ink);
  text-align: right;
  vertical-align: top;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--tio-line);
}

div.tio.tio-credit th:first-child,
div.tio.tio-credit td:first-child {
  text-align: left;
}

div.tio.tio-credit th {
  color: var(--tio-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

div.tio.tio-credit tr.tio-month-row td {
  padding-top: 0;
  padding-bottom: 10px;
  border-bottom: 0;
  text-align: left;
}

div.tio.tio-credit tr.tio-month-row table {
  min-width: 480px;
  margin-top: 4px;
}

div.tio.tio-credit summary {
  display: inline-block;
  padding: 2px 0 6px;
  color: var(--tio-forest);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

div.tio.tio-credit summary::-webkit-details-marker {
  display: none;
}

div.tio.tio-credit ul.tio-notes li {
  position: relative;
  margin: 0;
  padding: 6px 0 6px 14px;
  color: var(--tio-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--tio-line);
}

div.tio.tio-credit ul.tio-notes li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--tio-copper);
}

div.tio.tio-credit a {
  color: var(--tio-copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

div.tio.tio-credit p.tio-empty {
  margin: 16px 0 4px;
  padding: 14px 16px;
  color: var(--tio-ink);
  background: #fff;
  border: 1px dashed #8f8474;
}

div.tio.tio-credit p.tio-error {
  margin: 12px 0;
  color: var(--tio-copper);
  font-weight: 600;
}

div.tio.tio-credit .tio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin: 16px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--tio-line);
}

div.tio.tio-credit button.tio-print {
  min-height: 44px;
  padding: 12px 16px;
  color: #f6f1e7;
  background: var(--tio-forest);
  border: 0;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: transform 160ms var(--tio-ease), background-color 160ms ease;
}

div.tio.tio-credit button.tio-print:hover {
  background: #143528;
}

div.tio.tio-credit button.tio-print:active {
  transform: scale(0.98);
}

div.tio.tio-credit button.tio-print:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

div.tio.tio-credit label.tio-check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--tio-ink);
  font-size: 13px;
  font-weight: 500;
}

div.tio.tio-credit label.tio-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--tio-forest);
  border: 0;
  appearance: auto;
  -webkit-appearance: auto;
}

div.tio.tio-credit p.tio-disclaimer {
  margin-top: 8px;
  color: var(--tio-muted);
  font-size: 12px;
  line-height: 1.45;
}

@container tio-credit (max-width: 560px) {
  div.tio.tio-credit .tio-credit__form,
  div.tio.tio-credit .tio-ledger,
  div.tio.tio-credit .tio-scenarios {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  div.tio.tio-credit {
    padding: 18px 14px 12px;
  }

  div.tio.tio-credit .tio-credit__form,
  div.tio.tio-credit .tio-ledger,
  div.tio.tio-credit .tio-scenarios {
    grid-template-columns: 1fr;
  }
}

@media print {
  div.tio.tio-credit {
    margin: 0;
    background: #fff !important;
    color: #000 !important;
  }

  div.tio.tio-credit p.tio-hero__value,
  div.tio.tio-credit .tio-ledger div.is-strong dd {
    color: #000 !important;
  }

  div.tio.tio-credit .tio-hero,
  div.tio.tio-credit .tio-scenario,
  div.tio.tio-credit .tio-ledger div,
  div.tio.tio-credit tr {
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  div.tio.tio-credit button.tio-choice,
  div.tio.tio-credit button.tio-print,
  div.tio.tio-credit input,
  div.tio.tio-credit select.tio-select {
    transition: none;
  }
}
