:root { color-scheme: light; --ink: #282b24; --muted: #585f52; --line: #d4d9cd; --paper: #fff; --accent: #397352; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; background: #eeede6; color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-wrap: break-word; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.document-tools { max-width: 1056px; margin: 0 auto; padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; }
.download-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; background: var(--ink); color: #fff; border-radius: 6px; text-decoration: none; }
.proposal { max-width: 1000px; margin: 0 auto 40px; padding: 40px; background: var(--paper); }
.proposal-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; gap: 10px; align-items: center; font: 24px Georgia, "Times New Roman", serif; text-decoration: none; }
.brand img { display: block; width: 40px; height: 40px; border-radius: 6px; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font: 12px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.status { color: var(--muted); text-align: right; font-size: 12px; margin: 0; }
h1 { margin: 28px 0 12px; font: 46px/1.06 Georgia, "Times New Roman", serif; }
.lead { max-width: 52ch; margin: 0 0 14px; font-size: 21px; line-height: 1.35; }
.purpose { color: var(--muted); margin: 0; }
.headline-facts { display: grid; grid-template-columns: 0.8fr 1.3fr 0.8fr; gap: 24px; margin: 26px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.headline-facts dt { font-size: 14px; color: var(--muted); }
.headline-facts dd { margin: 6px 0 0; font: 26px/1.2 Georgia, "Times New Roman", serif; }
.proposal-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; }
.proposal-columns > * { min-width: 0; }
section + section { margin-top: 22px; }
h2 { margin: 0 0 10px; font-size: 16px; line-height: 1.3; }
section p { margin: 0 0 12px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { font-size: 12px; color: var(--muted); text-align: left; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
th, td { padding: 9px 0; vertical-align: top; }
tbody th { font-weight: 400; text-align: left; border-bottom: 1px solid var(--line); }
tbody td { border-bottom: 1px solid var(--line); }
th:first-child { padding-right: 16px; }
th:last-child, td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.subtotal th, .subtotal td { font-weight: 600; }
tfoot th, tfoot td { padding-top: 12px; color: var(--accent); font-weight: 700; }
.budget-note { font-size: 14px; }
.budget-exclusions { margin-top: 16px; }
.proposal-footer { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; font-size: 12px; color: var(--muted); }
.proposal-footer p { margin: 0 0 16px; }
.proposal-contact { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; color: var(--ink); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media screen and (max-width: 700px) {
  .document-tools { padding: 16px 20px; }
  .proposal { margin-bottom: 0; padding: 28px 20px; }
  h1 { font-size: 36px; }
  .lead { font-size: 20px; }
  .headline-facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .proposal-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  table { font-size: 16px; }
  th small, thead th, .brand small, .status { font-size: 14px; }
  .proposal-footer { font-size: 14px; }
}
@page { size: A4; margin: 13mm; }
@media print {
  html { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body { background: #fff; font-size: 9pt; line-height: 1.36; }
  .document-tools { display: none; }
  .proposal { max-width: none; margin: 0; padding: 0; }
  .brand { font-size: 19pt; }
  .brand img { width: 32px; height: 32px; }
  .brand small, .status { font-size: 8pt; }
  h1 { margin: 18px 0 9px; font-size: 30pt; }
  .lead { font-size: 13pt; margin-bottom: 9px; max-width: 66ch; }
  .headline-facts { margin: 17px 0; padding: 12px 0; gap: 18px; }
  .headline-facts dt { font-size: 8pt; }
  .headline-facts dd { font-size: 17pt; margin-top: 4px; }
  .proposal-columns { gap: 24px; }
  h2 { font-size: 10pt; margin-bottom: 7px; }
  section + section { margin-top: 15px; }
  section p { margin-bottom: 8px; }
  table { font-size: 9pt; }
  th, td { padding: 7px 0; }
  thead th, th small { font-size: 8pt; }
  .budget-note { font-size: 8pt; }
  .budget-exclusions { margin-top: 11px; }
  .proposal-footer { margin-top: 17px; padding-top: 11px; font-size: 8pt; }
  .proposal-footer p { margin-bottom: 10px; }
  .proposal-contact { font-size: 9pt; gap: 10px; }
  section, tr, .proposal-footer { break-inside: avoid; }
}
