/* A monthly plan, kept deliberately small. */
.budget-heading .section-intro { max-width: 345px; }
.budget-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 24px; align-items: start; }
.budget-grid > * { min-width: 0; }
.budget-inputs { padding: 27px 30px 23px; border: 1px solid var(--line); border-radius: 8px; background: #fffefa; }
.budget-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.budget-topline .small-label { font-size: 8px; color: #617052; }
.budget-topline .text-button { font-size: 10px; min-height: 36px; }
.budget-income { margin: 19px 0 27px; }
.budget-income > label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; gap: 12px; }
.budget-income > label > span { font-size: 10px; color: var(--muted); }
.budget-income > div { display: flex; gap: 10px; align-items: baseline; border-bottom: 1px solid #b6bfaa; padding: 5px 0; }
.budget-income > div > span { font-size: 32px; color: #728161; }
.budget-income input { border: 0; background: transparent; width: 100%; min-width: 0; font-size: clamp(36px,4vw,49px); letter-spacing: -2px; line-height: 1.2; padding: 0; color: var(--ink); }
.budget-income p { color: #627056; font-size: 10px; margin-top: 9px; }
.budget-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
.budget-fields legend { font-size: 12px; font-weight: 600; padding: 0 0 17px; }
.budget-field { display: grid; grid-template-columns: minmax(0,1fr) 112px; gap: 5px 17px; align-items: center; margin-top: 11px; }
.budget-field > label { font-size: 12px; line-height: 1.45; }
.budget-field > label > span { display: block; font-size: 9px; color: #737c68; margin-top: 2px; }
.budget-field input,.budget-annual input { border: 1px solid #ccd3c1; border-radius: 4px; color: var(--ink); background: #fffefa; padding: 10px 11px; min-height: 44px; width: 100%; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }
.budget-inputs input[type=number],.budget-annual input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.budget-inputs input::-webkit-inner-spin-button,.budget-annual input::-webkit-inner-spin-button { appearance: none; }
.budget-field > p { grid-column: 1 / -1; font-size: 10px; line-height: 1.6; color: #657259; }
.budget-housing-field { margin-top: 0; }
.budget-import { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 12px 0 15px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.budget-import > span { width: 100%; font-size: 9px; color: #617052; }
.budget-import button { min-height: 38px; padding: 8px 13px; border: 1px solid #cdd5c1; background: #f3f5ec; border-radius: 4px; font-size: 10px; color: #485c3a; }
.budget-import button > span { margin-left: 12px; }
.budget-import button:hover { background: #e9efd9; border-color: #8da475; }
.budget-snapshot { padding: 12px 14px; margin: -1px 0 17px; background: #eef1e6; border: 1px solid #dae2cd; border-radius: 4px; color: #536447; font-size: 10px; line-height: 1.65; }
.budget-snapshot p + p { margin-top: 5px; }
.budget-field-note { font-size: 10px; line-height: 1.65; color: #68765b; margin-top: 8px; }
.budget-savings-field { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 17px; }
.budget-private { font-size: 9px; color: #69765c; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 14px; line-height: 1.7; }
.budget-inputs input[aria-invalid=true],.budget-annual input[aria-invalid=true] { outline: 2px solid #a74736; outline-offset: 1px; }
.budget-result { background: var(--pale-blue); border: 1px solid #d4dcef; border-radius: 8px; padding: 30px 32px; }
.budget-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 25px; }
.budget-result-heading > .small-label { font-size: 9px; color: #526692; }
.budget-result-heading > span { font-size: 8px; letter-spacing: 1px; border: 1px solid #b9c6e7; color: #405a9a; border-radius: 20px; padding: 3px 8px; }
.budget-big { display: block; font-size: clamp(45px,5.2vw,70px); line-height: 1.2; letter-spacing: -3px; color: var(--blue); font-weight: 400; margin-top: 10px; overflow-wrap: anywhere; }
.budget-result-caption { font-size: 12px; color: #54698f; line-height: 1.7; margin-top: 9px; min-height: 42px; }
.budget-result.is-short .budget-big { color: #8f4937; }
.budget-result.is-short .budget-result-caption { color: #795947; }
.budget-equation { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 23px; padding: 17px 0; border-block: 1px solid #d3dbed; }
.budget-equation > div:last-child { text-align: right; }
.budget-equation > div > span { display: block; font-size: 10px; color: #596c90; }
.budget-equation strong { display: block; font-size: 19px; font-weight: 400; letter-spacing: -.4px; color: #314b85; margin-top: 3px; overflow-wrap: anywhere; }
.budget-equation > span { color: #8596b6; }
.budget-chart { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; margin-top: 24px; background: #d9e0f1; }
.budget-chart > span { flex-basis: 0; min-width: 0; transition: flex-grow .25s ease; }
.budget-chart-caption { font-size: 9px; color: #65779b; margin-top: 9px; }
.budget-legend { margin: 13px 0 22px; }
.budget-legend > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 11px; }
.budget-legend dt { display: flex; align-items: center; gap: 9px; color: #53688f; }
.budget-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: 0 0 8px; }
.budget-legend dd { margin: 0; color: #314b85; font-variant-numeric: tabular-nums; text-align: right; }
.budget-legend .budget-unassigned { border-top: 1px solid #d3dbed; margin-top: 5px; padding-top: 12px; }
.budget-whatif { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 21px; border: 1px solid #d1dced; background: #fffefa; border-radius: 5px; align-items: center; }
.budget-whatif .small-label { font-size: 8px; color: #5f704d; }
.budget-whatif h3 { font-size: 24px; letter-spacing: -.7px; line-height: 1.15; margin-top: 12px; }
.budget-whatif button { border: 1px solid #b4c0a6; background: #eef2e4; color: #405832; border-radius: 4px; padding: 12px; min-height: 44px; font-size: 10px; white-space: nowrap; }
.budget-whatif button > span { margin-left: 10px; }
.budget-whatif button:hover { background: #e3ebd4; }
.budget-whatif button[aria-pressed=true] { color: #fff; background: var(--blue); border-color: var(--blue); }
.budget-whatif > p { grid-column: 1 / -1; font-size: 11px; color: #5f6e52; line-height: 1.7; }
.budget-result-note { font-size: 10px; color: #63749a; margin-top: 18px; line-height: 1.7; }
.budget-annual { display: grid; grid-template-columns: 1fr 1.15fr; gap: 45px; padding: 32px 35px; border: 1px solid #d8dfca; background: #edf0e4; border-radius: 7px; margin-top: 28px; align-items: center; }
.budget-annual .small-label { color: #62754d; font-size: 9px; }
.budget-annual h3 { margin-top: 12px; font-size: 29px; letter-spacing: -.9px; }
.budget-annual > div:first-child > p:last-child { max-width: 310px; font-size: 11px; line-height: 1.7; color: #657356; margin-top: 13px; }
.budget-annual-math { display: grid; grid-template-columns: minmax(85px,1fr) auto 1.2fr; align-items: center; gap: 14px; }
.budget-annual-math label { display: block; font-size: 10px; color: #58694b; margin-bottom: 7px; }
.budget-annual-math > span { font-family: var(--serif); color: #67795a; font-size: 19px; margin-top: 22px; }
.budget-annual-answer output { display: block; font-size: 34px; letter-spacing: -1px; line-height: 1.3; color: #345333; overflow-wrap: anywhere; }
.budget-annual-answer > span { font-size: 9px; color: #657356; }
.budget-annual-math > p { grid-column: 1 / -1; color: #66745a; font-size: 9px; line-height: 1.7; }
.budget-annual-math > .form-error { color: #963b2f; margin-top: 0; }
.budget-check-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 45px 0 20px; }
.budget-check-heading .eyebrow { font-size: 9px; color: #647650; }
.budget-check-heading h3 { font-size: 27px; letter-spacing: -.8px; margin-top: 10px; }
.budget-check-heading > span { font-size: 10px; color: #627451; white-space: nowrap; }
.budget-quizzes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.budget-quiz { min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; background: #fcfcf6; }
.budget-quiz legend { float: left; width: 100%; font-size: 13px; line-height: 1.6; padding: 0; min-height: 88px; margin-bottom: 12px; }
.budget-quiz legend > span { display: block; font-family: monospace; font-size: 9px; color: #697c50; margin-bottom: 12px; }
.budget-quiz button { text-align: left; min-height: 44px; font-size: 11px; line-height: 1.5; color: #58664b; background: transparent; border: 1px solid #d0d8c3; border-radius: 4px; padding: 11px 12px; margin-top: 7px; }
.budget-quiz button:hover { background: #edf1e4; border-color: #99ac7c; }
.budget-quiz button.is-correct { background: #e3ecd1; border-color: #8ea66a; color: #3c552b; }
.budget-quiz button.is-incorrect { background: #f3e7dd; border-color: #ba8d69; color: #824b32; }
.budget-quiz-feedback { font-size: 11px; line-height: 1.7; color: #476334; margin-top: 13px; }
.budget-quiz-feedback.is-retry { color: #824b32; }
.budget-inputs .small-label,.budget-result .small-label,.budget-annual .small-label { font-size: 10px; }
.budget-topline .text-button,.budget-income p,.budget-field > p,.budget-field-note,.budget-private,.budget-snapshot,.budget-result-note,.budget-chart-caption,.budget-whatif > p,.budget-annual > div:first-child > p:last-child,.budget-annual-math > p,.budget-annual-answer > span,.budget-import > span { font-size: 12px; }
.budget-income > label > span,.budget-field > label > span,.budget-equation > div > span { font-size: 11px; }
.budget-field > label,.budget-annual-math label { font-size: 14px; }
.budget-fields legend,.budget-legend > div,.budget-quiz legend,.budget-quiz button,.budget-quiz-feedback { font-size: 13px; }
.budget-import button,.budget-whatif button,.budget-check-heading > span { font-size: 12px; }
.budget-check-heading .eyebrow { font-size: 10px; }
.budget-result:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.budget-whatif button:disabled { opacity: .6; }
.budget-chart.is-empty { background: repeating-linear-gradient(135deg,#dce2ef,#dce2ef 6px,#e7ebf5 6px,#e7ebf5 12px); }
@media (max-width: 980px) { .budget-inputs,.budget-result { padding: 24px; } .budget-field { grid-template-columns: minmax(0,1fr) 100px; gap: 10px; } .budget-whatif { grid-template-columns: 1fr; } .budget-whatif > button { justify-self: start; } .budget-annual { gap: 24px; padding: 28px; } }
@media (max-width: 760px) { .budget-grid { grid-template-columns: 1fr; } .budget-inputs,.budget-result { padding: 25px; } .budget-field { grid-template-columns: minmax(0,1fr) 120px; } .budget-whatif { grid-template-columns: 1fr auto; } .budget-whatif > button { justify-self: end; } .budget-result-caption { min-height: 0; } .budget-annual { grid-template-columns: 1fr; gap: 24px; } .budget-annual-math { max-width: 450px; width: 100%; } .budget-annual > div:first-child > p:last-child { max-width: none; } .budget-quizzes { grid-template-columns: 1fr; } .budget-quiz legend { min-height: 0; } }
@media (max-width: 420px) { .budget-inputs,.budget-result { padding: 20px; } .budget-topline { align-items: flex-start; } .budget-topline .small-label { max-width: 130px; padding-top: 10px; } .budget-field { grid-template-columns: minmax(0,1fr) 98px; } .budget-whatif { grid-template-columns: 1fr; } .budget-whatif > button { justify-self: start; } .budget-annual { padding: 22px; } .budget-annual-math { grid-template-columns: minmax(78px,1fr) auto 1fr; gap: 10px; } .budget-annual-answer output { font-size: 29px; } .budget-annual-math > span { font-size: 17px; } }
@media (max-width: 620px) { #budget-mobile-total > div > span { font-size: 10px; } #budget-mobile-total button { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .budget-chart > span { transition: none; } }
