@page {
    margin: 1.5cm;
}

:root {
    color-scheme: light;
}

html,
body {
    color: #000;
    background: #fff;
    font-size: 11pt;
}

body {
    min-width: 0;
}

body,
button,
input,
select,
textarea {
    font-family: Georgia, "Times New Roman", serif;
}

a {
    color: #000;
    text-decoration: none;
}

.site-header,
.main-nav,
.site-footer,
.footer-grid,
.footer-col,
.footer-bottom,
.site-footer__columns,
.site-footer__legal,
.ad-slot,
.consent-banner,
.skip-link,
.toast,
.btn,
.calc-actions,
.mode-tabs,
.nav-toggle,
.breadcrumbs {
    display: none !important;
}

main {
    min-height: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: none;
}

.page-intro {
    max-width: none;
    margin: 0 0 1rem;
}

.page-intro h1 {
    max-width: none;
    margin: 0;
    color: #000;
    font-size: 24pt;
}

.lead {
    margin-top: 0.4rem;
    color: #000;
}

.last-updated {
    color: #000;
}

.calculator-shell {
    margin: 0;
}

.calculator {
    width: 100%;
}

.calc-grid {
    display: block;
}

.calc-inputs,
.calc-results,
.result-card,
.worked-example,
.callout,
.faq__item {
    box-shadow: none;
    border: 1px solid #000;
    border-radius: 0;
}

.calc-inputs {
    margin-bottom: 1rem;
}

.calc-inputs,
.calc-results {
    padding: 0.75rem;
}

.calc-results {
    position: static !important;
}

.fieldset-collapsible,
.faq__item {
    display: block;
    margin-block: 0.75rem;
    padding: 0.5rem;
    border-color: #000;
    border-radius: 0;
}

.fieldset-collapsible > summary,
.faq__q {
    display: none;
}

.fieldset-collapsible > *:not(summary),
.faq__item > *:not(summary) {
    display: block !important;
}

.field {
    margin-block: 0.65rem;
}

.field input,
.field select,
.form input,
.form select,
.form textarea {
    min-height: 2rem;
    padding: 0.25rem 0.4rem;
    color: #000;
    border: 1px solid #000;
    border-radius: 0;
}

.input-group {
    min-height: 2rem;
    border: 1px solid #000;
    border-radius: 0;
}

.input-group input {
    min-height: 1.8rem;
}

.input-prefix,
.input-suffix {
    color: #000;
    background: #fff;
}

.field-hint,
.field-error {
    color: #000;
}

.result-card {
    overflow: visible;
}

.result-primary {
    color: #000;
    background: #fff;
    border-bottom: 1px solid #000;
}

.result-primary .result-label,
.result-primary .result-note,
.result-amount,
.stat dt,
.stat dd,
.result-savings,
.result-savings strong {
    color: #000;
}

.result-amount {
    font-size: 26pt;
}

.result-stats {
    padding: 0.75rem 0;
}

.stat {
    padding: 0.5rem;
    background: #fff;
}

.result-savings {
    margin: 0 0 0.75rem;
    background: #fff;
    border: 1px solid #000;
}

.breakdown-list {
    padding: 0.75rem 0;
}

.chart {
    break-inside: avoid;
    margin-block: 0.75rem;
    padding: 0.5rem;
    border-color: #000;
}

.chart--balance {
    min-height: 8rem;
}

.schedule {
    margin-top: 1rem;
    break-before: auto;
}

.schedule__header {
    margin-bottom: 0.5rem;
}

.schedule-table {
    width: 100%;
    min-width: 0;
    font-size: 8.5pt;
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    border-color: #000;
}

.schedule-table thead {
    position: static;
    color: #000;
    background: #fff;
}

.schedule-table th,
.schedule-table td {
    padding: 0.25rem 0.35rem;
    border-color: #000;
}

.schedule-table thead {
    display: table-header-group;
}

.schedule-table tr {
    break-inside: avoid;
}

.schedule-table tfoot {
    color: #000;
    background: #fff;
}

.prose {
    max-width: none;
}

.prose h2,
.prose h3,
.content-section h2,
.content-section h3 {
    color: #000;
    break-after: avoid;
}

.formula {
    color: #000;
    background: #fff;
    border: 1px solid #000;
}

.worked-example,
.callout {
    padding: 0.75rem;
}

.worked-example th,
.worked-example td,
.prose th,
.prose td {
    border-color: #000;
}

.prose a[href^="http"]::after,
.prose a[href^="/"]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
}

/* Keep the active calculator view legible on paper. */
.calculator noscript,
.calculator .alert--error {
    display: none !important;
}

.calculator .chart--donut {
    width: 10rem;
    height: 10rem;
}

.calculator .chart--donut > div,
.calculator .chart--balance > div {
    width: 100%;
}

.calculator .chart--balance {
    min-height: 10rem;
}

.calculator .schedule {
    break-before: auto;
}

.calculator .schedule-table[data-view="monthly"],
.calculator .schedule-table[data-view="yearly"] {
    display: table;
}
