.mfc-calculator {
    --mfc-ink: #13283d;
    --mfc-muted: #475866;
    --mfc-navy: #102438;
    --mfc-paper: #fffdfa;
    --mfc-parchment: #f7f3eb;
    --mfc-bronze: #79572d;
    --mfc-champagne: #dfbc82;
    --mfc-rule: #d9cdb9;
    --mfc-shadow: 0 16px 36px -25px rgb(16 36 56 / 38%);
    color: var(--mfc-ink);
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    text-align: left;
    font: 400 16px/1.55 MFDMSans, system-ui, sans-serif;
    container-type: inline-size;
}
.mfc-calculator *, .mfc-calculator *::before, .mfc-calculator *::after { box-sizing: border-box; }
.mfc-calculator [hidden] { display: none !important; }
.mfc-calculator .mfc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    gap: clamp(14px, 2.2vw, 28px);
    align-items: stretch;
}
.mfc-calculator :is(.mfc-fields, .mfc-result, .mfc-projection) {
    min-width: 0;
    padding: clamp(20px, 3.4vw, 44px);
    border: 1px solid var(--mfc-rule);
    border-radius: clamp(20px, 2.3vw, 30px);
    box-shadow: var(--mfc-shadow), inset 0 1px rgb(255 255 255 / 85%);
}
.mfc-calculator :is(.mfc-fields, .mfc-projection) {
    background: linear-gradient(145deg, #fff 0, var(--mfc-paper) 64%, #fbf7f0);
}
.mfc-calculator .mfc-fields h2, .mfc-calculator .mfc-projection h3 {
    margin: 0 0 1.4rem;
    color: var(--mfc-ink);
    font: 400 clamp(1.9rem, 3.2vw, 2.85rem)/1.06 MFInstrument, Georgia, serif;
    letter-spacing: -.025em;
}
.mfc-calculator .mfc-fields h2::after, .mfc-calculator .mfc-projection h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    margin-top: .75rem;
    background: var(--mfc-bronze);
}
.mfc-calculator .mfc-pair { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mfc-calculator .mfc-field { display: block; margin: 0 0 .5rem; color: var(--mfc-ink); font-size: .94rem; font-weight: 650; }
.mfc-calculator .mfc-field + .mfc-field { margin-top: 1rem; }
.mfc-calculator .mfc-field .mfc-input, .mfc-calculator .mfc-field select {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: .38rem 0 0;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #9d9588;
    border-radius: 12px;
    color: var(--mfc-ink);
    background: #fff;
    box-shadow: inset 0 1px 3px rgb(42 40 30 / 5%);
    font: inherit;
    font-weight: 500;
}
.mfc-calculator .mfc-field select { display: block; width: 100%; max-width: 100%; height: 48px; padding-right: 26px; }
.mfc-calculator .mfc-input > span { flex: none; color: var(--mfc-muted); font-size: .85rem; font-weight: 500; }
.mfc-calculator .mfc-field .mfc-input input {
    min-width: 0;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 7px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--mfc-ink);
    box-shadow: none;
    font: inherit;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}
.mfc-calculator .mfc-field .mfc-input:focus-within, .mfc-calculator :is(select, summary, a, .mfc-slider):focus-visible {
    outline: 3px solid #3e6381;
    outline-offset: 2px;
}
.mfc-calculator .mfc-input input:focus { outline: none; }
.mfc-calculator .mfc-input:has(input[aria-invalid="true"]) { border-color: #9a382f; }
.mfc-calculator .mfc-input:has(input[readonly]) { background: var(--mfc-parchment); }
.mfc-calculator input.mfc-slider {
    display: block;
    width: 100%;
    height: 24px;
    margin: -.15rem 0 .72rem;
    padding: 0;
    border: none;
    accent-color: var(--mfc-bronze);
    cursor: pointer;
    box-shadow: none;
    background: transparent;
}
@media (forced-colors: none) {
    .mfc-calculator input.mfc-slider { appearance: none; }
    .mfc-calculator .mfc-slider::-webkit-slider-runnable-track {
        height: 4px;
        border-radius: 99px;
        background: #c5b8a2;
    }
    .mfc-calculator .mfc-slider::-webkit-slider-thumb {
        appearance: none;
        width: 18px;
        height: 18px;
        margin-top: -7px;
        border: 2px solid #213e58;
        border-radius: 50%;
        background: #dfbc82;
        box-shadow: 0 1px 4px rgb(16 36 56 / 20%);
    }
    .mfc-calculator .mfc-slider::-moz-range-track { height: 4px; border-radius: 99px; background: #c5b8a2; }
    .mfc-calculator .mfc-slider::-moz-range-thumb {
        width: 14px;
        height: 14px;
        border: 2px solid #213e58;
        border-radius: 50%;
        background: #dfbc82;
        box-shadow: 0 1px 4px rgb(16 36 56 / 20%);
    }
}
.mfc-calculator :is(.mfc-hint, .mfc-error) { font-size: .875rem; margin: 1rem 0 0; }
.mfc-calculator .mfc-hint { color: var(--mfc-muted); }
.mfc-calculator .mfc-error { color: #913129; font-weight: 650; }
.mfc-calculator .mfc-rates {
    min-inline-size: 0;
    margin: .3rem 0 1.3rem;
    padding: .65rem clamp(12px, 1.8vw, 22px) 1rem;
    border: 1px solid #c8b79e;
    border-radius: 16px;
    background: var(--mfc-parchment);
}
.mfc-calculator .mfc-rates legend { padding: 0 .4rem; color: var(--mfc-bronze); font-size: .95rem; font-weight: 700; }
.mfc-calculator .mfc-rates .mfc-field { font-size: .88rem; }
.mfc-calculator .mfc-rates p { margin: .5rem 0 0; color: var(--mfc-muted); font-size: .875rem; line-height: 1.5; }
.mfc-calculator .mfc-rate-details { margin-top: .7rem; }
.mfc-calculator .mfc-rate-attribution { margin-top: .75rem; padding-top: .4rem; border-top: 1px solid var(--mfc-rule); }
.mfc-calculator .mfc-rate-attribution p { margin-top: .22rem; font-size: .82rem; }
.mfc-calculator .mfc-rate-attribution p:empty { display: none; }
.mfc-calculator .mfc-rate-attribution a, .mfc-calculator .mfc-assumptions a {
    color: var(--mfc-bronze);
    text-decoration: underline;
    text-underline-offset: .18em;
}
.mfc-calculator .mfc-result {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-color: #394953;
    background: radial-gradient(ellipse at 100% 0%, #2e4960, transparent 56%), linear-gradient(140deg, #172e44, var(--mfc-navy) 73%, #172d43);
    color: var(--mfc-paper);
    box-shadow: var(--mfc-shadow), inset 0 0 0 5px #182e41, inset 0 0 0 6px rgb(223 188 130 / 34%);
}
.mfc-calculator .mfc-result::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    margin-bottom: clamp(15px, 2vw, 24px);
    background: var(--mfc-champagne);
}
.mfc-calculator .mfc-result-label {
    margin: 0 0 .55rem;
    color: #f0d8af;
    font-size: .81rem;
    font-weight: 650;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.mfc-calculator .mfc-payment {
    margin: 0;
    color: #fffdf8;
    font: 400 clamp(2.4rem, 4.8vw, 4.9rem)/1.06 MFInstrument, Georgia, serif;
    letter-spacing: -.026em;
    overflow-wrap: anywhere;
}
.mfc-calculator .mfc-period { margin: .3rem 0 1.25rem; color: #e4eaf0; font-size: .98rem; }
.mfc-calculator .mfc-result .mfc-rate-basis { margin: -.25rem 0 1.2rem; color: #efd6a9; font-size: .9rem; line-height: 1.5; }
.mfc-calculator .mfc-totals { display: block; margin: 0; padding-top: .8rem; }
.mfc-calculator .mfc-totals > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .2rem .8rem;
    padding: .78rem 0;
    border-top: 1px solid rgb(223 188 130 / 33%);
}
.mfc-calculator .mfc-totals dt { max-width: 70%; margin: 0; color: #e0e6eb; font-size: .87rem; font-weight: 450; }
.mfc-calculator .mfc-totals dd { margin: 0 0 0 auto; color: #fff; font-size: 1.03rem; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.mfc-calculator .mfc-result-foot { margin: .72rem 0 0; color: #cbd3dc; font-size: .8rem; }
.mfc-calculator .mfc-result .mfc-apply {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .65rem;
    min-height: 46px;
    margin: 1rem 0 0;
    padding: .67rem 1.1rem;
    border: 1px solid #f5dfb2;
    border-radius: 100px;
    color: var(--mfc-navy);
    background: linear-gradient(120deg, #f0dcb7, #dcb77c);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 650;
}
.mfc-calculator .mfc-result .mfc-apply:hover { background: #f5e4c8; color: #102438; }
.mfc-calculator .mfc-result .mfc-apply:focus-visible { outline-color: #fff2d8; }
.mfc-calculator .mfc-projection { margin: clamp(14px, 2.2vw, 28px) 0 0; }
.mfc-calculator .mfc-projection h3 { margin-bottom: .95rem; }
.mfc-calculator .mfc-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; margin: 0 0 .85rem; color: var(--mfc-muted); font-size: .88rem; }
.mfc-calculator .mfc-legend span::before { display: inline-block; content: ''; width: 22px; margin-right: 6px; border-top: 2px dashed #79572d; vertical-align: middle; }
.mfc-calculator .mfc-legend span + span::before { border-top: 3px solid #213e58; }
.mfc-calculator .mfc-chart { display: block; width: 100%; max-width: none; height: 178px; margin-bottom: 1rem; }
.mfc-calculator .mfc-scroll { overflow: auto; max-height: 320px; }
.mfc-calculator .mfc-scroll table { width: 100%; margin: .75rem 0; border-collapse: collapse; border: none; color: var(--mfc-ink); font-size: .875rem; }
.mfc-calculator .mfc-scroll :is(td, th) { padding: .5rem; border: none; border-bottom: 1px solid var(--mfc-rule); text-align: right; font-variant-numeric: tabular-nums; }
.mfc-calculator .mfc-scroll thead { background: #f1e8da; }
.mfc-calculator .mfc-scroll tr > :first-child { text-align: left; }
.mfc-calculator .mfc-assumptions, .mfc-calculator .mfc-projection details {
    margin: 1rem 0 0;
    padding: 0 16px;
    border: 1px solid var(--mfc-rule);
    border-radius: 16px;
    background: var(--mfc-parchment);
}
.mfc-calculator div.mfc-assumptions { padding-block: .8rem; }
.mfc-calculator .mfc-assumptions p, .mfc-calculator .mfc-assumptions a { margin: .65rem 0; font-size: .91rem; line-height: 1.6; }
.mfc-calculator details[open] { padding-bottom: 12px; }
.mfc-calculator details > summary { padding-block: 12px; min-height: 46px; color: var(--mfc-ink); font-weight: 650; cursor: pointer; }
.mfc-calculator .mfc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (min-width: 701px) {
    .mfc-calculator .mfc-result { align-self: start; }
}
@container (max-width: 700px) { .mfc-calculator .mfc-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .mfc-calculator .mfc-layout { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 400px) {
    .mfc-calculator .mfc-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .mfc-calculator .mfc-totals dt { max-width: 100%; }
}
