@page { size: Letter; margin: 0.5in; }

:root { background: white; --paper: white; --pencil: #444; }
body { padding: 0; font-size: 9pt; line-height: 1.25; }
.napkin {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  background: white;
  transform: none;
  box-shadow: none;
}
.napkin::before, .napkin::after, header:not(.print-heading),
.saved-deals, #shared-banner, #history, #history-list, #compare, #comparison, #portfolio, #starter-home, #empty-deal, [data-starter], .syntax-hint,
.listing-tools, #listing-panel, #missing, #way-out, #write-it-in, .writing-area, footer, #download-csv, #download-comparison,
#tally-period, [data-explain="year-assumptions"] { display: none; }
/* These extra checks push the example past one page; keep the print summary compact. */
#lender, #stress, #rules-of-thumb, #loan-schedules { display: none; }
/* Optional context must not push the deal summary onto another sheet. */
#comps { display: none; }
.print-comps #comps:not([hidden]) { display: block; margin-top: 9pt; break-inside: avoid; }
#comps th, #comps td { padding: 1pt 4pt; }
#comps dl { margin-top: 3pt; }
#comps dd small { display: inline; margin-left: 5pt; font-size: 8pt; }
#comp-summary { margin-top: 3pt; font-size: 8pt; line-height: 1.3; }
/* Leave room for the refi arithmetic on the shared one-pager. */
.napkin:has(#refi:not([hidden])), .napkin:has(#brrrr:not([hidden])) { zoom: 0.9; }
.print-heading { display: block; margin: 0 0 12pt; padding-bottom: 6pt; border-bottom: 1px solid #777; }
#print-title { margin: 0 0 3pt; font-size: 15pt; line-height: 1.2; overflow-wrap: anywhere; }
.print-heading p { font-size: 8pt; line-height: 1.3; }
.workspace { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4pt 18pt; align-items: start; }
.notepad { display: block; grid-column: 1; grid-row: 2; }
/* The note uses the spare room above the inputs on the printed one-pager. */
.tally { display: contents; }
#rental-tally { grid-column: 2; grid-row: 1 / span 2; }
.workspace:has(#flip:not([hidden])) .tally { display: block; grid-column: 2; grid-row: 1 / span 2; }
#verdict { grid-column: 1; grid-row: 1; margin-bottom: 6pt; font-size: 8pt; line-height: 1.3; break-inside: avoid; }
#verdict .verdict-headline { font-size: 9pt; }
#verdict small { margin-top: 2pt; font-size: 7pt; }
.column-labels { grid-template-columns: 54% 46%; margin-bottom: 5pt; font-size: 9pt; }
.column-labels span { padding-left: 6pt; }
#readings-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
#print-lines { display: grid; grid-template-columns: 54% 46%; align-items: baseline; row-gap: 2pt; }
#print-lines dt, #print-lines dd { min-width: 0; max-width: none; font-size: 9pt; line-height: 1.35; overflow-wrap: anywhere; }
#print-lines dt { color: #1d3c8f; padding-right: 6pt; }
#print-lines dt[data-kind="note"] { color: var(--pencil); }
#print-lines dd { padding-left: 6pt; border-left: 1px solid #bbb; color: var(--pencil); text-align: left; }
h2, h3 { margin-bottom: 4pt; font-size: 10pt; line-height: 1.3; }
h2 span, h3 span { font-size: 8pt; }
.tally-group-heading { margin: 6pt 0 3pt; font-size: 9pt; break-after: avoid; }
dl > div { padding: 0.5pt 0; gap: 5pt; font-size: 9pt; line-height: 1.25; break-inside: avoid; }
dd, .total dd { max-width: none; font-size: 9.5pt; }
.total { border-bottom-width: 3px; margin-bottom: 3pt; }
.subtraction dt { padding-left: 5pt; }
.rate { margin-bottom: 4pt; }
.cash-in { margin-top: 4pt; }
.debt small, .target-row dd small { margin-top: 1pt; font-size: 8pt; }
#sale-title, #targets, #partners { margin-top: 6pt; }
#refi, #brrrr { margin-top: 6pt; break-inside: avoid; }
.refi-timing { margin: 0 0 2pt; font-size: 8pt; }
.refi-summary dt small { margin-top: 1pt; font-size: 7pt; }
#refi-cash-in { margin-top: 2pt; font-size: 8pt; line-height: 1.3; }
.refi-year-note { display: inline; margin-left: 3pt; font-size: 7pt; }
.target-row { row-gap: 0; }
.target-row p, .explanation, .total .explanation { font-size: 8pt; line-height: 1.3; }
[data-explain], .explain-row:hover [data-explain], [data-explain]:focus-visible { text-decoration: none; outline: none; }
[data-explain]::after { display: none; }
table { font-size: 9pt; line-height: 1.2; break-inside: avoid; }
caption { padding-bottom: 3pt; font-size: 10pt; }
caption span { margin-top: 1pt; font-size: 8pt; }
#year-caption { font-size: 8pt; font-weight: 400; }
th, td { padding: 1pt 6pt; }
#sensitivity, .projection { margin-top: 9pt; }
#sensitivity { font-size: 9pt; }
#sensitivity th, #sensitivity td { padding: 1pt 3pt; }
#sensitivity td > span { padding: 1pt 4pt; }
#sensitivity .full-price { display: inline; }
#sensitivity .short-price { display: none; }
#sensitivity .price-change { display: inline; font-size: inherit; }
#sensitivity .axis-change { display: inline; margin-top: 0; }
.year-table-scroll { overflow: visible; }
tr, #targets { break-inside: avoid; }

/* Share the year table's space so the sketch adds no extra printed rows. */
.projection:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12pt; align-items: start; }
.hold-charts { display: block; margin-bottom: 4pt; break-inside: avoid; }
.hold-charts .cash-flow-sketch { display: none; }
.ink-chart figcaption { font-size: 9pt; }
.ink-chart figcaption span { display: none; }
.ink-chart svg { height: 96pt; max-height: none; margin-top: 0; }
#expiry-ladder { margin-top: 9pt; break-inside: avoid; }

#partners { break-inside: avoid; }
#split-rule, #split-missing { margin: 3pt 0; font-size: 8pt; line-height: 1.3; }

#ruler { display: none !important; }
