:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202729;background:#fff;font-synthesis:none;--red:#c82d20;--blue:#edf7ff;--yellow:#fff1b8;--green:#e3f4d9}*{box-sizing:border-box}body{margin:0}a{color:inherit}header{max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:28px 32px;border-bottom:1px solid #e9eceb}.brand{text-decoration:none;font-size:28px;font-weight:750;letter-spacing:-1.2px}.brand span{color:var(--red)}.page-label{background:var(--green);color:#315a27;padding:8px 16px;border-radius:6px;font-size:14px}main{max-width:1000px;padding:42px 32px 60px;margin:auto;min-height:calc(100vh - 165px)}h1{font-size:clamp(30px,4vw,46px);line-height:1.16;letter-spacing:-1.5px;margin:22px 0 14px}.intro{font-size:18px;color:#5e666a;line-height:1.6;margin:0 0 38px}.back{font-size:15px;text-underline-offset:4px;color:#5e666a}.start{text-align:center;padding-top:clamp(60px,13vh,130px)}.start h1{font-size:clamp(40px,6vw,64px);margin:16px 0}.eyebrow{font-size:13px;letter-spacing:2px;font-weight:650;color:#5e666a}.choices{max-width:440px;display:grid;gap:20px;margin:42px auto}.button{display:flex;align-items:center;justify-content:space-between;gap:20px;border:0;background:var(--red);border-radius:8px;padding:19px 24px;text-decoration:none;color:white;font:inherit;font-size:19px;font-weight:650;cursor:pointer;text-align:left}.button:hover{background:#a82318}.button:focus-visible,a:focus-visible,summary:focus-visible,.text-button:focus-visible{outline:3px solid #1375b0;outline-offset:4px}form{margin-top:46px}.form-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(0,1.7fr);gap:24px;margin-bottom:24px;align-items:start}.form-row label{font-size:20px;font-weight:600;padding-top:18px}.input-wrap{display:flex;align-items:center;border:1px solid #9cc8e6;background:var(--blue);border-radius:7px}.input-wrap:focus-within{outline:3px solid #b6dff8;border-color:#1375b0}input:not([type=hidden]){width:100%;min-width:0;padding:18px;border:0;outline:none;background:transparent;font:inherit;font-size:22px;color:#202729}.input-wrap span{font-size:15px;white-space:nowrap;padding-right:18px;color:#4d616c}.hint{font-size:14px;line-height:1.6;color:#5e666a;margin:8px 0 0}.text-button{font:inherit;color:#146396;background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}.text-button[hidden]{display:none}.error-summary{background:#fff0ed;padding:18px 24px;border-left:4px solid var(--red);line-height:1.6}.error-summary ul{margin-bottom:0}.field-error{font-size:14px;color:#a42317;margin:8px 0}.results{margin-top:40px}.result-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(0,1.7fr);gap:24px;align-items:center;margin-bottom:18px}.result-row dt{font-size:21px;font-weight:600;line-height:1.4}.result-row dd{margin:0;padding:20px 24px;text-align:right;font-size:27px;background:var(--yellow);border-radius:7px;font-variant-numeric:tabular-nums}.result-row.total{border-top:1px solid #e0dfd6;padding-top:24px;margin-top:28px}.total dd{background:#ffdb63;font-weight:750;font-size:31px}.note,.rules,.learn{font-size:14px;color:#5e666a;line-height:1.7}.note{margin-top:28px;max-width:850px}.rules{margin-top:22px}.rules summary,.learn summary{cursor:pointer;color:#333;font-weight:600}.rules a{color:#146396}.learn{margin:0 0 20px calc((100% - 24px)/2.7 + 24px)}.learn p{margin:8px 0}.rules p{max-width:850px}footer{max-width:1120px;margin:auto;border-top:1px solid #e9eceb;padding:22px 32px;color:#6b7376;font-size:13px}@media(max-width:640px){header{padding:20px}.brand{font-size:24px}main{padding:30px 20px 44px}.start{padding-top:65px}.form-row{grid-template-columns:1fr;gap:9px}.form-row label{padding-top:0;font-size:17px}.form-row>div:empty{display:none}form{margin-top:28px}.result-row{grid-template-columns:1fr;gap:9px}.result-row dt{font-size:18px}.result-row dd{font-size:25px}.total dd{font-size:28px}.learn{margin-left:0}.intro{font-size:16px;margin-bottom:28px}footer{padding:22px 20px}}

.annual-results{margin-top:52px;padding-top:32px;border-top:1px solid #e9eceb}.annual-results h2{font-size:clamp(28px,4vw,42px);line-height:1.2;letter-spacing:-1px;margin:0 0 24px}.annual-results .results{margin-top:24px}
.section-heading{font-size:clamp(25px,3.5vw,34px);letter-spacing:-.7px;margin:32px 0 16px}.change-results h3{font-size:22px;margin:32px 0 18px}.calculated-hint{margin:0;background:#edf7ff;border:1px solid #9cc8e6;border-radius:7px;padding:18px;font-size:18px}.comparison{margin-top:32px;background:#fff1b8;border-radius:8px;padding:24px}.comparison h3{margin:0 0 18px}.difference{font-size:clamp(26px,4vw,38px);font-weight:700;line-height:1.4;margin:0 0 12px}.difference span{font-size:18px;font-weight:400}.change-results{scroll-margin-top:24px}.change-results:focus{outline:none}

/* Compact purchase form and page actions. */
.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.clear-form{margin:0}.small-button{font:inherit;font-size:14px;font-weight:600;border:1px solid #bcc8ce;border-radius:6px;background:#fff;color:#35454d;padding:8px 12px;cursor:pointer;min-height:36px}.small-button:hover{background:#edf7ff;border-color:#7ba9c8}.small-button:focus-visible{outline:3px solid #1375b0;outline-offset:3px}.small-button[hidden]{display:none}.deposit-button{margin-top:8px}.purchase-page .intro{max-width:720px;margin-bottom:22px}.purchase-page form:not(.clear-form){margin-top:26px}.purchase-page .form-row{margin-bottom:16px;gap:20px}.purchase-page .form-row label{padding-top:11px;font-size:18px}.purchase-page input:not([type=hidden]){padding:10px 14px;font-size:19px;min-height:44px}.purchase-page .hint{margin-top:5px;line-height:1.45}.purchase-page .input-wrap span{padding-right:14px}.page-label{text-align:right}@media(max-width:640px){.purchase-page .form-row{gap:7px;margin-bottom:15px}.purchase-page .form-row label{padding-top:0}.page-label{font-size:13px;max-width:190px}.page-toolbar .small-button{font-size:13px}}

/* Compact inputs and results across all calculator pages. */
.form-row,.purchase-page .form-row{margin-bottom:10px;column-gap:20px}
.form-row label,.purchase-page .form-row label{font-size:16px;line-height:1.3;padding-top:9px}
input:not([type=hidden]),.purchase-page input:not([type=hidden]){font-size:16px;line-height:1.25;padding:8px 12px;min-height:36px}
.input-wrap span,.purchase-page .input-wrap span{font-size:14px;padding-right:12px}
.hint,.purchase-page .hint{font-size:14px;line-height:1.35;margin-top:4px}
.results,.annual-results .results{margin-top:18px;margin-bottom:16px}
.result-row{margin-bottom:10px;column-gap:20px}
.result-row dt{font-size:16px;line-height:1.3}
.result-row dd{font-size:18px;line-height:1.25;padding:9px 14px}
.result-row.total{padding-top:14px;margin-top:16px}
.total dd{font-size:20px}
.calculated-hint{padding:9px 12px;font-size:16px;line-height:1.3}
.note,.rules,.learn{line-height:1.45}
.note{margin-top:16px}.learn{margin-bottom:14px}
.change-results h3{font-size:20px;margin:24px 0 14px}
.comparison{padding:18px;margin-top:22px}
.difference{font-size:26px;line-height:1.25;margin-bottom:8px}.difference span{font-size:16px}
@media(max-width:640px){.form-row,.purchase-page .form-row{row-gap:5px;margin-bottom:10px}.form-row label,.purchase-page .form-row label{padding-top:0}.result-row{row-gap:5px;margin-bottom:10px}}

/* Size numeric fields for ten characters, plus padding and the unit. */
.input-wrap{display:inline-flex;width:max-content;max-width:100%}
.input-wrap input:not([type=hidden]),.purchase-page .input-wrap input:not([type=hidden]){width:calc(10ch + 24px);flex:0 1 auto;font-variant-numeric:tabular-nums}
.input-wrap span{flex:0 0 auto}
.result-row dd{width:calc(13ch + 28px);max-width:100%;justify-self:start;overflow-wrap:anywhere}
.calculated-hint{width:fit-content;max-width:100%}

/* Header navigation and About dialog. */
header{gap:24px;flex-wrap:wrap}.top-menu{margin-right:auto}.top-menu button{border:0;background:none;padding:8px 0;font:inherit;font-size:15px;color:#35454d;cursor:pointer}.top-menu button:hover{text-decoration:underline;text-underline-offset:5px}.top-menu button:focus-visible{outline:3px solid #1375b0;outline-offset:4px}
#about-dialog,#interest-tax-dialog,#cookie-dialog{border:1px solid #d9e1e5;border-radius:12px;padding:0;width:min(680px,calc(100% - 32px));max-height:85vh;max-height:85dvh;color:#202729;box-shadow:0 20px 80px #142f4233}
#about-dialog::backdrop,#interest-tax-dialog::backdrop,#cookie-dialog::backdrop{background:rgb(15 28 36 / 55%)}
.about-header{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;background:#fff;border-bottom:1px solid #e9eceb}.about-header h2{font-size:25px;line-height:1.2;margin:0;letter-spacing:-.5px}.about-header button{white-space:nowrap}.about-content{padding:4px 24px 24px;font-size:16px;line-height:1.6}.about-content h3{font-size:18px;margin:24px 0 8px}.about-content p{margin:14px 0}.about-content a{color:#146396}body.about-open{overflow:hidden}
@media(max-width:640px){header{gap:12px 20px}.top-menu{margin-right:0;margin-left:auto}.page-label{flex-basis:100%;max-width:none}.about-header{padding:16px}.about-header h2{font-size:22px}.about-content{padding:0 16px 20px}}

/* Keep About at the right edge and the purchase action compact. */
header .brand{order:0}header .page-label{order:1}header .top-menu{order:2;margin-left:auto;margin-right:0}
.purchase-page #button21,#button41,#button42{font-size:16px;line-height:1.25;padding:8px 12px;min-height:38px;width:calc(10ch + 4rem);max-width:100%;justify-self:start;justify-content:center;gap:8px;font-weight:600}
.purchase-page #button21>span,#button41>span,#button42>span{display:none}
@media(max-width:640px){header .page-label{order:3}}

/* Annual interest and its tax estimate sit side by side. */
.result-row dd.annual-interest-detail{display:flex;align-items:flex-start;gap:18px;width:100%;max-width:100%;padding:0;background:none;text-align:left;font-weight:400;overflow-wrap:normal}
.interest-amount{display:block;flex:0 0 auto;width:calc(13ch + 28px);max-width:100%;padding:9px 14px;background:var(--yellow);border-radius:7px;text-align:right;overflow-wrap:anywhere}
.interest-tax-info{flex:1;min-width:0;padding:12px 14px;background:#f3f7fa;border:1px solid #dce5eb;border-radius:7px;font-size:14px;line-height:1.45}
.interest-tax-info p{margin:7px 0}.interest-tax-info .tax-estimate{font-size:17px;font-weight:650}.interest-tax-info summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}.interest-tax-info a{color:#146396}.interest-tax-info .tax-assumption{color:#5e666a}
@media(max-width:850px){.result-row dd.annual-interest-detail{flex-direction:column;gap:10px}.interest-tax-info{width:100%}}

.annual-tax-card{width:fit-content;max-width:100%;margin:12px 0 0 calc((100% - 20px)/2.7 + 20px)}
@media(max-width:640px){.annual-tax-card{margin-left:0}}

/* Necessary-cookie notice and accessible cookie information. */
footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cookie-banner{position:sticky;bottom:0;z-index:20;background:#fff;border-top:1px solid #cbd8df;box-shadow:0 -4px 24px #142f4214;padding:18px max(20px,calc((100% - 1056px)/2));display:flex;align-items:center;gap:24px}
.cookie-banner h2{font-size:18px;margin:0 0 6px;line-height:1.3}.cookie-banner p{font-size:14px;line-height:1.45;margin:0;max-width:710px}.cookie-actions{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}.cookie-notice-form{margin:0}.cookie-confirm{background:#c82d20;border-color:#c82d20;color:#fff}.cookie-confirm:hover{background:#a82318;border-color:#a82318}.cookie-status{display:inline-block;font-size:13px;color:#315a27;background:#e3f4d9;border-radius:4px;padding:4px 8px;margin-left:6px}.cookie-list{font-size:14px;line-height:1.5}.cookie-list dt{font-weight:650;margin-top:16px;overflow-wrap:anywhere}.cookie-list dd{margin:6px 0 0}.cookie-error{color:#a42317}.cookie-banner[hidden],.cookie-error[hidden]{display:none}body.cookies-open{overflow:hidden}
@media(max-width:800px){.cookie-banner{flex-direction:column;align-items:stretch;gap:12px;padding:16px 20px}.cookie-actions{gap:8px}.cookie-banner{max-height:45dvh;overflow:auto}}
