.fh-debt-budget {
    box-sizing: border-box;
    min-width: 0;
    scroll-margin-top: 6.5rem;
    border: 1px solid #cbdcec;
    border-radius: 1rem;
    background: #f3f8fd;
    padding: clamp(1rem, 3vw, 1.75rem);
    margin-block: 1.5rem 2rem;
    color: #172e47;
    font-size: 1rem;
    line-height: 1.55;
}

.fh-debt-budget h2,
.fh-debt-budget h3 { margin-block: 0 .5rem; }
.fh-debt-budget p { margin-block: 0 .85rem; }
.fh-debt-budget .fh-debt-budget__hint { color: #405b74; font-size: .9rem; }
.fh-debt-budget p:last-child { margin-bottom: 0; }
.fh-debt-budget fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.fh-debt-budget [hidden] { display: none; }
.fh-debt-budget__fields,
.fh-debt-budget__compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.fh-debt-budget__field,
.fh-debt-budget__scenario { min-width: 0; }
.fh-debt-budget__field label { display: block; font-weight: 650; }
.fh-debt-budget__field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.75rem;
    margin-block: .25rem;
    padding: .5rem .65rem;
    color: #162f4b;
    background: white;
    border: 1px solid #8babc7;
    border-radius: .5rem;
    font: inherit;
}
.fh-debt-budget__field small { display: block; color: #405b74; font-size: .875rem; }
.fh-debt-budget__field .fh-debt-budget__error { color: #a82928; margin-top: .35rem; }
.fh-debt-budget__field input[aria-invalid="true"] { border-color: #a82928; }
.fh-debt-budget :is(input, button):focus-visible { outline: 3px solid #1664b1; outline-offset: 2px; }
.fh-debt-budget__actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1rem; }
.fh-debt-budget__actions button {
    min-height: 2.75rem;
    border: 1px solid #5182b3;
    border-radius: .55rem;
    padding: .5rem .9rem;
    font: inherit;
    font-weight: 650;
    color: #15477a;
    background: #fff;
    cursor: pointer;
}
.fh-debt-budget__actions button[type="submit"] { color: #fff; background: #1c54a3; border-color: #1c54a3; }
.fh-debt-budget [disabled] button,
.fh-debt-budget button:disabled { opacity: .65; cursor: default; }
.fh-debt-budget__scenario {
    background: #fff;
    padding: .9rem;
    border: 1px solid #cbdcec;
    border-radius: .75rem;
    margin-bottom: .85rem;
}
.fh-debt-budget__scenario dl { margin: 0; }
.fh-debt-budget__scenario dl > div { padding-block: .45rem; border-bottom: 1px solid #e0eaf3; }
.fh-debt-budget__scenario dl > div:last-child { border-bottom: 0; }
.fh-debt-budget__scenario dt { color: #405b74; font-size: .9rem; }
.fh-debt-budget__scenario dd { margin: .1rem 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fh-debt-budget__scenario [data-negative] { color: #a82928; }
.fh-debt-budget__status:not(:empty) { font-weight: 650; }
.fh-debt-budget__status:empty { margin: 0; }

@media (max-width: 42rem) {
    .fh-debt-budget__fields,
    .fh-debt-budget__compare { grid-template-columns: minmax(0, 1fr); }
}
