: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; }
.wordmark { color: #13243c !important; font-size: 1.05rem; font-weight: 800; letter-spacing: -.04em; }
.page-nav { display: flex; gap: .8rem; }
.page-nav a:hover, .sources a, .related-tools a, .site-info-nav a { color: #1754a5; }
.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 #4f7fd4; border-radius: 1rem; box-shadow: 0 .75rem 2rem rgb(19 47 88 / 10%); padding: 1.5rem; margin: 1.5rem 0 2.5rem; }
label { display: block; font-weight: 700; margin-bottom: .5rem; }
label span { color: #4b5b70; font-size: .875rem; font-weight: 400; }
input, button { width: 100%; min-height: 3rem; font: inherit; border-radius: .45rem; padding: .65rem .8rem; }
input { border: 1px solid #8999af; color: inherit; min-width: 0; }
input[aria-invalid="true"] { border-color: #b42318; }
button { background: #132f58; border: 0; color: white; cursor: pointer; font-weight: 700; margin-top: 1rem; }
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, #four-major-insurance-result:empty { display: none; }
#four-major-insurance-result:not(:empty) { border-top: 1px solid #d9e0eb; margin-top: 1.5rem; padding-top: 1rem; }
.result-number { font-size: clamp(2rem, 8vw, 2.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.2; font-variant-numeric: tabular-nums; margin-bottom: .35rem; }
.result-summary { color: #31445f; font-weight: 700; margin-top: 0; }
.deduction-list { border-top: 1px solid #d9e0eb; margin-top: 1.25rem; padding-top: .55rem; }
.deduction-list p { align-items: baseline; display: flex; gap: 1rem; justify-content: space-between; margin: .45rem 0; }
.deduction-list strong { font-variant-numeric: tabular-nums; text-align: right; }
.deduction-list p:last-child { border-top: 1px solid #d9e0eb; margin-top: .75rem; padding-top: .75rem; }
.result-warning { background: #fff5e6; border-left: 3px solid #c26a00; color: #573600; font-size: .875rem; padding: .75rem .9rem; }
article section { margin: 2rem 0; }
details { border-bottom: 1px solid #cbd5e1; padding: .8rem 0; }
summary { cursor: pointer; font-weight: 600; min-height: 2rem; }
.sources { padding-left: 1.15rem; }
footer { border-top: 1px solid #cbd5e1; padding-top: 1rem; }
.site-info-nav { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: .65rem; }
.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; }
@media (max-width: 36rem) { main { padding-top: 1rem; } .page-intro { padding-top: 3rem; } .calculator { padding: 1rem; } }
