:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #13243c; background: #f6f8fc; line-height: 1.65; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2rem, 46rem); margin: 0 auto; padding: 1.25rem 0 3rem; overflow-wrap: anywhere; }
.site-header { display: flex; justify-content: space-between; align-items: center; color: #526178; font-size: .9rem; }
.site-header a { color: inherit; text-decoration: none; }
.site-header .wordmark { color: #13243c; font-size: 1.05rem; font-weight: 800; letter-spacing: -.04em; }
.page-nav { display: flex; gap: .8rem; }
.page-nav a { color: inherit; text-decoration: none; }
.page-nav a:hover { color: #1754a5; text-decoration: underline; text-underline-offset: .2rem; }
.page-intro { padding: 3.5rem 0 1.5rem; }
h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.055em; line-height: 1.18; margin: .5rem 0 1rem; }
h2 { font-size: 1.25rem; line-height: 1.5; }
p { margin: .6rem 0 1rem; }
.eyebrow { font-size: .875rem; font-weight: 700; color: #1754a5; }
.calculator { background: white; border: 1px solid #d9e0eb; border-top: 4px solid #d98d20; border-radius: 1rem; box-shadow: 0 .75rem 2rem rgb(19 47 88 / 10%); padding: 1.5rem; margin: 1.5rem 0 2.5rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.wide-field { grid-column: 1 / -1; }
label { display: block; font-weight: 700; margin-bottom: .5rem; }
label span { font-size: .875rem; color: #4b5b70; font-weight: 400; }
input, select, button { width: 100%; min-height: 3rem; font: inherit; border-radius: .4rem; padding: .65rem .8rem; }
input, select { border: 1px solid #8999af; background: #fff; color: inherit; min-width: 0; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #b42318; }
button { background: #132f58; color: white; font-weight: 700; border: 0; cursor: pointer; }
button:hover { background: #0f4eaf; }
button:disabled { background: #56677f; cursor: not-allowed; }
:focus-visible { outline: 3px solid #172033; outline-offset: 3px; }
.muted, footer { color: #4b5b70; font-size: .875rem; }
.error { color: #b42318; font-size: .875rem; margin: .4rem 0; }
.error:empty, #loan-interest-result:empty { display: none; }
#loan-interest-result:not(:empty) { border-top: 1px solid #d9e0eb; margin-top: 1.5rem; padding-top: 1rem; }
.result-number { font-size: 1.65rem; font-weight: 750; line-height: 1.5; font-variant-numeric: tabular-nums; }
.result-summary { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0; }
.result-summary > div { background: #f3f6fb; border-radius: .5rem; display: grid; gap: .25rem; padding: .75rem; }
.result-summary span { color: #4b5b70; font-size: .8rem; }
.result-summary strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.schedule { border-top: 1px solid #d9e0eb; margin-top: 1.25rem; padding-top: 1rem; }
summary { cursor: pointer; font-weight: 700; min-height: 2rem; }
.table-wrap { overflow-x: auto; margin-top: .75rem; }
table { border-collapse: collapse; font-size: .85rem; min-width: 37rem; width: 100%; }
th, td { border-bottom: 1px solid #d9e0eb; padding: .55rem; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: center; }
article section { margin: 2rem 0; }
details:not(.schedule) { border-bottom: 1px solid #cbd5e1; padding: .8rem 0; }
footer { border-top: 1px solid #cbd5e1; padding-top: 1rem; }
.site-info-nav { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: .65rem; }
.site-info-nav a { color: #1754a5; }
.related-tools { border-top: 1px solid #cbd5e1; margin-top: 3rem; padding-top: 1.25rem; }
.related-tools h2 { margin: 0 0 .5rem; }
.related-tools ul { display: grid; gap: .55rem; margin: 0; padding-left: 1.2rem; }
.related-tools a { color: #1754a5; }
.sources { padding-left: 1.2rem; }
.sources a { color: #1754a5; }
.repayment-comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.repayment-comparison > section { min-width: 0; padding: .8rem; background: #f3f6fb; border: 1px solid #d9e0eb; border-radius: .5rem; }
.repayment-comparison h4 { margin: 0 0 .75rem; line-height: 1.5; }
.repayment-comparison section > div { display: grid; margin-top: .6rem; }
.repayment-comparison span { color: #4b5b70; font-size: .8rem; }
.repayment-comparison strong { font-variant-numeric: tabular-nums; }
@media (max-width: 36rem) { .repayment-comparison { grid-template-columns: 1fr; } }
@media (max-width: 36rem) { main { padding-top: 1rem; } .page-intro { padding-top: 3rem; } .fields, .result-summary { grid-template-columns: 1fr; gap: .8rem; } .calculator { padding: 1rem; } }
