@font-face { font-family: "Public Sans"; src: url(/static/fonts/public-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/static/fonts/public-sans-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/static/fonts/public-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/static/fonts/public-sans-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --paper: #f6f7f9;        /* cool office paper */
  --sheet: #ffffff;        /* the invoice */
  --ink: #1b2430;          /* graphite */
  --muted: #586473;
  --rule: #d6dce3;
  --carbon: #2340c8;       /* carbon-copy blue: corrections and actions */
  --carbon-dark: #1a2f99;
  --hi: #f7e27c;           /* highlighter */
  --hi-soft: #fbf1bd;
  --ok: #1d6b45;
  --bad: #a3231b;
  --radius: 6px;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--carbon); text-underline-offset: 2px; }
a:hover { color: var(--carbon-dark); }
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h1 { font-weight: 800; letter-spacing: -0.025em; font-size: clamp(2.05rem, 4.6vw, 3.35rem); max-width: 18ch; }
.h2, h2 { font-weight: 800; letter-spacing: -0.015em; font-size: clamp(1.5rem, 3vw, 2rem); }
.h3, h3 { font-weight: 600; font-size: 1.125rem; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.opt { color: var(--muted); font-weight: 400; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.wrap.wide { max-width: 1280px; }
main section { padding: 64px 0; }
main section.band { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Header and footer */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; font-size: 1.1rem; }
.brand .tag { font-weight: 600; font-size: .8rem; color: var(--muted); margin-left: 6px; }
.top nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; }
.top nav a:not(.btn):hover { text-decoration: underline; }
.foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.foot .links a { margin-right: 16px; }
.foot p { max-width: none; }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 20px; border-radius: var(--radius); border: 2px solid var(--carbon);
  background: var(--carbon); color: #fff; text-decoration: none; cursor: pointer; margin: 0 8px 8px 0;
}
.btn:hover { background: var(--carbon-dark); border-color: var(--carbon-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--carbon); }
.btn.ghost:hover { background: #e9edfb; color: var(--carbon-dark); }
.btn.small { padding: 9px 14px; font-size: .9rem; margin: 0; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #fbeceb; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--carbon); text-decoration: underline; cursor: pointer; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.lede { font-size: 1.16rem; color: #2c3746; }

/* The marked-up invoice: the one memorable thing on the page */
.bill {
  margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 3px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(27, 36, 48, .35);
  padding: 22px 22px 16px; font-size: .9rem; transform: rotate(.6deg);
}
.bill-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.bill-head span { color: var(--muted); }
.bill table { width: 100%; border-collapse: collapse; }
.bill th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; padding: 8px 6px; border-bottom: 1px solid var(--rule); }
.bill td { padding: 7px 6px; border-bottom: 1px dotted var(--rule); vertical-align: top; }
.num { text-align: right; white-space: nowrap; }
.bill tr.flag td { background: linear-gradient(transparent 12%, var(--hi) 12%, var(--hi) 88%, transparent 88%); border-bottom: 0; }
.bill tr.flag td:last-child { text-decoration: line-through; text-decoration-color: var(--carbon); text-decoration-thickness: 2px; }
.bill tr.note td { color: var(--carbon); font-size: .86rem; padding: 3px 6px 10px 14px; box-shadow: inset 3px 0 0 var(--carbon); }
.bill tr.note b { font-weight: 600; white-space: nowrap; }
.bill figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; font-size: .85rem; color: var(--muted); }
.bill figcaption strong { color: var(--carbon); font-size: 1rem; }

/* Two-column sections: heading left, content right */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.checks h3 { margin-top: 1.4em; }
.checks h3:first-child { margin-top: 0; }
.checks ul, .prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.checks li, .prose li { margin-bottom: .35em; max-width: var(--measure); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 28px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--carbon); color: var(--carbon); font-weight: 800; display: grid; place-items: center;
}
.steps h3 { margin: 4px 0 .3em; }
.price p:first-child { font-size: 1.2rem; }
.faq dt { font-weight: 600; margin-top: 1.2em; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: .3em 0 0; max-width: var(--measure); }

/* Forms */
.start { background: var(--ink); color: #eef1f5; }
.start a { color: #b9c6ff; }
.start .form { background: var(--sheet); color: var(--ink); padding: 28px; border-radius: var(--radius); }
.start .form a { color: var(--carbon); }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.form input:not([type=checkbox]), .form select, .form textarea, .uploader select {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--ink);
  padding: 11px 12px; border: 1px solid #aeb7c2; border-radius: var(--radius); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid #c7d0fa; border-color: var(--carbon); }
.form input[aria-invalid=true], .form select[aria-invalid=true] { border-color: var(--bad); border-width: 2px; }
.form label .err { display: block; margin: 6px 0 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--carbon); }
.err { display: block; color: var(--bad); font-weight: 600; font-size: .92rem; margin: -6px 0 14px; }
.callout .err, section > .wrap > .err { margin: 0 0 16px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signin { max-width: 380px; margin: 0 auto; background: var(--sheet); padding: 28px; border: 1px solid var(--rule); border-radius: var(--radius); }

/* Upload page */
.callout { background: var(--hi-soft); border-left: 4px solid var(--hi); padding: 16px 18px; margin: 0 0 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout.ok { background: #e6f2eb; border-left-color: var(--ok); }
.callout p:last-child { margin-bottom: 0; }
.linkbox { display: flex; gap: 8px; max-width: none; }
.linkbox input { flex: 1; min-width: 0; font: inherit; font-size: .9rem; padding: 9px 10px; border: 1px solid #aeb7c2; border-radius: var(--radius); background: #fff; }
.need-list { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--rule); }
.need-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.need-list p { margin: .2em 0 0; color: var(--muted); font-size: .95rem; }
.have, .need { flex: none; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.have { color: var(--ok); }
.need { color: var(--muted); }
.uploader { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; margin-bottom: 28px; }
.uploader > label { display: block; font-weight: 600; margin-bottom: 14px; }
.drop { border: 2px dashed #9aa6b5; border-radius: var(--radius); padding: 22px; text-align: center; cursor: pointer; background: var(--paper); }
.drop:hover, .drop.over { border-color: var(--carbon); background: #eef1fd; }
.drop input { display: block; margin: 10px auto 0; font: inherit; font-weight: 400; max-width: 100%; }
.hint { color: var(--muted); font-size: .9rem; }
.progress { height: 8px; background: var(--rule); border-radius: 4px; overflow: hidden; margin: 0 0 14px; }
.progress div { height: 100%; width: 0; background: var(--carbon); transition: width .2s; }
.submit-row { margin: 28px 0 20px; }

/* Tables */
.list { width: 100%; border-collapse: collapse; margin: 0 0 24px; background: var(--sheet); font-size: .95rem; }
.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: .85rem; padding: 10px; border-bottom: 2px solid var(--ink); }
.list td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: break-word; }
.list tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); }
.list .sub { display: block; color: var(--muted); font-size: .85rem; }
.list.small { font-size: .85rem; }
.mono-cut { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }

/* Sample report */
.sample-tag { display: inline-block; background: var(--hi); padding: 4px 10px; border-radius: 3px; font-weight: 600; font-size: .9rem; }
.total { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 16px 0; margin: 8px 0 24px; }
.total strong { font-size: 2.4rem; font-weight: 800; color: var(--carbon); letter-spacing: -0.02em; }
.total span { color: var(--muted); }
.finding { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 18px; }
.finding h3 { display: flex; justify-content: space-between; gap: 16px; }
.finding .amt { color: var(--carbon); white-space: nowrap; }
.ev-title { font-size: .9rem; color: var(--muted); }
.list.ev td { font-size: .88rem; }
.letter { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; }

/* Legal pages */
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }

/* Admin */
.admin .facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.admin .facts dt { color: var(--muted); }
.admin .facts dd { margin: 0; overflow-wrap: anywhere; }
.admin-cols { margin-bottom: 32px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.st { font-size: .85rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; background: var(--paper); border: 1px solid var(--rule); white-space: nowrap; }
.st-submitted { background: var(--hi-soft); border-color: var(--hi); }
.st-customer { background: #e6f2eb; border-color: #a9d0b8; }

@media (max-width: 900px) {
  .hero .wrap, .cols { grid-template-columns: 1fr; gap: 32px; }
  .bill { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  main section { padding: 44px 0; }
  .hero { padding: 36px 0 48px; }
  .wrap { padding: 0 16px; }
  .row2 { grid-template-columns: 1fr; }
  .bill { padding: 14px 10px 10px; font-size: .8rem; margin: 0 -4px; }
  .bill th:nth-child(4), .bill td:nth-child(4):not([colspan]) { display: none; }
  .bill th, .bill td { padding-left: 4px; padding-right: 4px; }
  .start .form { padding: 18px; }
  .top .wrap { flex-wrap: nowrap; min-height: 58px; }
  .top nav a:not(.btn) { display: none; }
  .admin-list th:nth-child(4), .admin-list td:nth-child(4), .admin-list th:nth-child(5), .admin-list td:nth-child(5) { display: none; }
  .linkbox { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Audit screens */
.audit details { margin: 18px 0; }
.audit summary { cursor: pointer; font-weight: 600; }
.audit summary.h3 { display: list-item; }
.status-line { font-size: 1.05rem; }
.scroll { overflow-x: auto; margin-bottom: 16px; }
.list.edit td { padding: 6px; vertical-align: middle; }
.list.edit input, .list.edit select { width: 100%; min-width: 90px; font: inherit; font-size: .88rem; padding: 6px 8px; border: 1px solid #aeb7c2; border-radius: 4px; background: #fff; margin: 0; }
.list.edit td:first-child input { min-width: 220px; }
.list.edit .w-num { min-width: 70px; text-align: right; }
.list.edit .w-date { min-width: 108px; }
.quote { color: var(--muted); font-size: .82rem; font-style: italic; max-width: 40ch; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.warn { color: var(--bad); font-weight: 600; }
.sub.warn { font-size: .85rem; }
.good { color: var(--ok); font-weight: 600; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 1px 8px; border-radius: 10px; margin-left: 6px; vertical-align: 2px; }
.pill-certain { background: #e6f2eb; color: var(--ok); }
.pill-likely { background: var(--hi-soft); color: #6b5a00; }
.pill-check { background: #eceff3; color: var(--muted); }
.admin-finding .check { display: flex; gap: 10px; align-items: baseline; font-weight: 400; margin-bottom: 6px; }
.admin-finding .check input { width: 20px; height: 20px; flex: none; accent-color: var(--carbon); }
.admin-finding .check .amt { margin-left: auto; color: var(--carbon); font-weight: 800; white-space: nowrap; }
textarea.letter { width: 100%; font: inherit; font-size: .95rem; line-height: 1.55; color: var(--ink); resize: vertical; }
.report-ready .btn { margin-bottom: 0; }
@media (max-width: 900px) { .row3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr; } }
.inline-kind { display: flex; gap: 8px; align-items: center; }
.inline-kind select { font: inherit; font-size: .88rem; padding: 4px 6px; border: 1px solid #aeb7c2; border-radius: 4px; background: #fff; }

/* ---------- Report ---------- */
.report-sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; padding: 40px 44px; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgba(27, 36, 48, .35); }
.report-wrap { max-width: 860px; }
.rep-head h1 { max-width: 22ch; }
.fbars { list-style: none; padding: 0; margin: 4px 0 10px; }
.fbars li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.fb-title { font-weight: 600; }
.fb-title .sub { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.fb-title .pill { margin-left: 2px; vertical-align: 0; }
.fb-bar { height: 12px; background: var(--paper); border-radius: 2px; overflow: hidden; }
.fb-fill { display: block; height: 100%; border-radius: 2px; }
.fb-certain { background: var(--carbon); }
.fb-likely { background: #c9a800; }
.fb-check { background: #9aa6b5; }
.fb-amt { font-weight: 800; text-align: right; white-space: nowrap; min-width: 6.5em; }
.rep-actions { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 18px 0 8px; }
.rep-section { margin-top: 2.2em; padding-top: 1.2em; border-top: 2px solid var(--ink); }
.finding .bill.flat { transform: none; box-shadow: none; padding: 0; border: 0; margin: 10px 0 0; }
.bill.flat table { font-size: .86rem; }
.bill.flat .sub { display: block; color: var(--muted); font-size: .78rem; }
.bill.flat tr.flag td:last-child { text-decoration: none; }
.bill.flat tr.flag td { background: linear-gradient(transparent 8%, var(--hi-soft) 8%, var(--hi-soft) 92%, transparent 92%); }
.more { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.email { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: #fff; margin: 12px 0 14px; }
.email-head { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--rule); font-size: .92rem; }
.email-head dt { color: var(--muted); }
.email-head dd { margin: 0; font-weight: 600; }
.email-body { white-space: pre-wrap; padding: 18px 20px; font-size: .95rem; line-height: 1.6; max-width: 72ch; }
ul.plain { padding-left: 1.2em; }

/* ---------- Sample walkthrough ---------- */
.sample-intro { padding-bottom: 36px; }
.sample-intro h1 { max-width: 20ch; margin-top: 14px; }
.step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.step-head h2 { margin-bottom: .25em; }
.step-head p { margin: 0; color: var(--muted); }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--carbon); color: var(--carbon); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; margin-top: 2px; }
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.doc { margin: 0; display: flex; flex-direction: column; }
.doc-visual { display: block; position: relative; height: 280px; overflow: hidden; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); text-decoration: none; }
.doc-visual::after { content: ""; position: absolute; inset: auto 0 0 0; height: 56px; background: linear-gradient(transparent, rgba(246, 247, 249, .95)); pointer-events: none; }
.doc-visual:hover { border-color: var(--carbon); }
.doc-visual { color: var(--ink); }
.doc-visual.pages { background: #fff; }
.doc-visual.pages img { position: absolute; left: -6%; top: -4%; width: 150%; max-width: none; height: auto; transform-origin: top left; transition: transform .25s ease; }
.doc-visual.pages:hover img { transform: translateY(-3%); }
.doc-visual .badge { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 10px; }
.doc figcaption { padding-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.doc figcaption span { color: var(--muted); font-size: .92rem; }
.doc figcaption a { font-size: .9rem; margin-top: 2px; }
.sheet { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.sheet table { border-collapse: collapse; font-size: .7rem; white-space: nowrap; }
.sheet th, .sheet td { border: 1px solid #dfe3e8; padding: 4px 7px; text-align: left; }
.sheet th { background: #eef1f4; color: #69737f; font-weight: 400; text-align: center; }
.sheet td:first-child { background: #eef1f4; color: #69737f; text-align: center; min-width: 22px; }
.sheet tr.hdr td:not(:first-child) { font-weight: 600; background: #f6f8fa; }
.ledger { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.ledger dt, .ledger dd { padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.ledger dt { font-weight: 600; padding-right: 28px; }
.report-wrap { padding-bottom: 20px; }

/* ---------- Landing teaser ---------- */
.teaser { padding-top: 72px; }
.teaser-visual { position: relative; display: block; height: 360px; text-decoration: none; color: var(--ink); }
.teaser-visual .paper { position: absolute; width: 46%; max-width: 280px; background: #fff; box-shadow: 0 1px 2px rgba(27, 36, 48, .18), 0 14px 30px -16px rgba(27, 36, 48, .45); }
.teaser-visual .paper img { display: block; width: 100%; height: auto; }
.teaser-visual .p1 { left: 4%; top: 18px; transform: rotate(-3deg); }
.teaser-visual .p2 { left: 20%; top: 0; transform: rotate(1.5deg); }
.mini-report { position: absolute; right: 0; bottom: 6px; width: 62%; max-width: 380px; background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--carbon); border-radius: 4px; padding: 16px 18px; box-shadow: 0 20px 40px -22px rgba(27, 36, 48, .5); display: flex; flex-direction: column; gap: 6px; font-size: .8rem; }
.mini-report .mr-label { color: var(--muted); }
.mini-report strong { font-size: 2rem; font-weight: 800; color: var(--carbon); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 4px; }
.mr-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mr-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-bar { height: 7px; background: var(--paper); border-radius: 2px; overflow: hidden; }
.mr-bar span { display: block; height: 100%; background: var(--carbon); }
.mr-row span:last-child { font-weight: 600; text-align: right; }
.mr-more { color: var(--muted); }
.teaser-visual:hover .mini-report { border-top-color: var(--carbon-dark); }

@media (max-width: 900px) {
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teaser-visual { height: 340px; max-width: 560px; }
}
@media (max-width: 560px) {
  .report-sheet { padding: 22px 16px; margin: 0 -8px; }
  .fbars li { grid-template-columns: minmax(0, 1fr) auto; }
  .fb-bar { grid-column: 1 / -1; grid-row: 2; }
  .docs { grid-template-columns: 1fr; }
  .doc-visual { height: 240px; }
  .ledger { grid-template-columns: 1fr; }
  .ledger dt { padding-bottom: 0; border-bottom: 0; }
  .teaser-visual { height: 300px; }
  .teaser-visual .paper { width: 52%; }
  .mini-report { width: 78%; padding: 12px 14px; }
  .mini-report strong { font-size: 1.6rem; }
  .bill.flat table { font-size: .8rem; }
  .bill.flat th:nth-child(2), .bill.flat tr.flag td:nth-child(2) { display: none; }
}

.w0 { width: 0%; }
.w1 { width: 1%; }
.w2 { width: 2%; }
.w3 { width: 3%; }
.w4 { width: 4%; }
.w5 { width: 5%; }
.w6 { width: 6%; }
.w7 { width: 7%; }
.w8 { width: 8%; }
.w9 { width: 9%; }
.w10 { width: 10%; }
.w11 { width: 11%; }
.w12 { width: 12%; }
.w13 { width: 13%; }
.w14 { width: 14%; }
.w15 { width: 15%; }
.w16 { width: 16%; }
.w17 { width: 17%; }
.w18 { width: 18%; }
.w19 { width: 19%; }
.w20 { width: 20%; }
.w21 { width: 21%; }
.w22 { width: 22%; }
.w23 { width: 23%; }
.w24 { width: 24%; }
.w25 { width: 25%; }
.w26 { width: 26%; }
.w27 { width: 27%; }
.w28 { width: 28%; }
.w29 { width: 29%; }
.w30 { width: 30%; }
.w31 { width: 31%; }
.w32 { width: 32%; }
.w33 { width: 33%; }
.w34 { width: 34%; }
.w35 { width: 35%; }
.w36 { width: 36%; }
.w37 { width: 37%; }
.w38 { width: 38%; }
.w39 { width: 39%; }
.w40 { width: 40%; }
.w41 { width: 41%; }
.w42 { width: 42%; }
.w43 { width: 43%; }
.w44 { width: 44%; }
.w45 { width: 45%; }
.w46 { width: 46%; }
.w47 { width: 47%; }
.w48 { width: 48%; }
.w49 { width: 49%; }
.w50 { width: 50%; }
.w51 { width: 51%; }
.w52 { width: 52%; }
.w53 { width: 53%; }
.w54 { width: 54%; }
.w55 { width: 55%; }
.w56 { width: 56%; }
.w57 { width: 57%; }
.w58 { width: 58%; }
.w59 { width: 59%; }
.w60 { width: 60%; }
.w61 { width: 61%; }
.w62 { width: 62%; }
.w63 { width: 63%; }
.w64 { width: 64%; }
.w65 { width: 65%; }
.w66 { width: 66%; }
.w67 { width: 67%; }
.w68 { width: 68%; }
.w69 { width: 69%; }
.w70 { width: 70%; }
.w71 { width: 71%; }
.w72 { width: 72%; }
.w73 { width: 73%; }
.w74 { width: 74%; }
.w75 { width: 75%; }
.w76 { width: 76%; }
.w77 { width: 77%; }
.w78 { width: 78%; }
.w79 { width: 79%; }
.w80 { width: 80%; }
.w81 { width: 81%; }
.w82 { width: 82%; }
.w83 { width: 83%; }
.w84 { width: 84%; }
.w85 { width: 85%; }
.w86 { width: 86%; }
.w87 { width: 87%; }
.w88 { width: 88%; }
.w89 { width: 89%; }
.w90 { width: 90%; }
.w91 { width: 91%; }
.w92 { width: 92%; }
.w93 { width: 93%; }
.w94 { width: 94%; }
.w95 { width: 95%; }
.w96 { width: 96%; }
.w97 { width: 97%; }
.w98 { width: 98%; }
.w99 { width: 99%; }
.w100 { width: 100%; }

/* ---------- Feedback: spinners, busy buttons, toasts ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -0.15em; flex: none; }
.spinner.big { width: 26px; height: 26px; border-width: 3px; color: var(--carbon); }
.btn.busy { opacity: .85; cursor: progress; }
.toasts { position: fixed; z-index: 50; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px 11px 38px; border-radius: 6px; font-size: .95rem; font-weight: 600; box-shadow: 0 12px 28px -12px rgba(27, 36, 48, .55); transform: translateY(12px); opacity: 0; transition: transform .25s ease, opacity .25s ease; position: relative; max-width: min(420px, calc(100vw - 40px)); }
.toast::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #3ccf8e; box-shadow: inset 0 0 0 3px var(--ink); }
.toast-err::before { background: #ff6b5e; }
.toast.in { transform: none; opacity: 1; }
@keyframes flash { 0% { background: var(--hi); } 100% { background: transparent; } }
.flash { animation: flash 2.2s ease-out; }
.crumbs { font-size: .92rem; color: var(--muted); }
.crumbs a { margin-right: 4px; }

/* ---------- Stage tracker ---------- */
.stepper { list-style: none; padding: 0; margin: 8px 0 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: none; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.stepper li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--rule); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.st-done::before, .stepper li.st-current::before, .stepper li.st-failed::before { background: var(--carbon); }
.st-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--paper); border: 2px solid var(--rule); color: var(--muted); }
.st-dot svg { width: 18px; height: 18px; }
.st-done .st-dot { background: var(--carbon); border-color: var(--carbon); color: #fff; }
.st-done { color: var(--ink); }
.st-current .st-dot { border-color: var(--carbon); color: var(--carbon); background: #fff; box-shadow: 0 0 0 5px #e3e8fb; }
.st-current { color: var(--ink); font-weight: 600; }
.st-failed .st-dot { border-color: var(--bad); color: var(--bad); background: #fff; }

/* ---------- Live run panel ---------- */
.run { background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 22px 24px; margin-bottom: 28px; box-shadow: 0 18px 40px -30px rgba(27, 36, 48, .5); }
.run-head { display: flex; align-items: center; gap: 14px; }
.run-head > div { flex: 1; min-width: 0; }
.run-head strong { display: block; font-size: 1.05rem; }
.run-eta { color: var(--muted); font-size: .88rem; }
.run-pct { font-size: 1.9rem; font-weight: 800; color: var(--carbon); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.run-bar { height: 10px; background: var(--paper); border-radius: 5px; overflow: hidden; margin: 14px 0 18px; position: relative; }
.run-bar > span { display: block; height: 100%; background: var(--carbon); border-radius: 5px; transition: width .6s ease; position: relative; overflow: hidden; }
.run-bar > span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-100%); animation: shimmer 1.6s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.run.is-done .run-bar > span { background: var(--ok); }
.run.is-done .spinner, .run.is-failed .spinner { animation: none; border-color: var(--ok); }
.run.offline { opacity: .75; }
.run-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.run-stats div { background: var(--paper); border-radius: 6px; padding: 10px 12px; }
.run-stats dt { font-size: .8rem; color: var(--muted); }
.run-stats dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.run-items { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.run-items li { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--rule); font-size: .93rem; }
.ri-name { font-weight: 600; overflow-wrap: anywhere; }
.ri-detail { color: var(--muted); font-size: .88rem; }
.ri-working .ri-detail { color: var(--carbon); }
.ri-waiting { opacity: .6; }
.ri-parts { grid-column: 2 / -1; height: 5px; background: var(--paper); border-radius: 3px; overflow: hidden; }
.ri-parts > span { display: block; height: 100%; background: var(--carbon); transition: width .5s ease; }
.ico { width: 18px; height: 18px; display: inline-block; }
.ico.spinner { width: 16px; height: 16px; color: var(--carbon); margin-left: 1px; }
.ico-wait { border: 2px solid var(--rule); border-radius: 50%; width: 16px; height: 16px; }
.ico-done circle { fill: var(--ok); }
.ico-warn circle { fill: #c9a800; }
.ico-failed circle { fill: var(--bad); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.just-done .ico { animation: pop .35s ease-out; }
.run-log { margin-top: 14px; }
.run-log summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.run-log ol { list-style: none; padding: 0; margin: 8px 0 0; max-height: 220px; overflow: auto; font-size: .86rem; }
.run-log li { padding: 3px 0; color: var(--ink); }
.run-log time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }

/* ---------- Findings review ---------- */
.admin-finding { transition: opacity .2s ease; }
.admin-finding.excluded { opacity: .45; }
.admin-finding.excluded .amt { text-decoration: line-through; }
.sticky-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px 8px 0 0; margin-top: 24px; box-shadow: 0 -10px 30px -18px rgba(27, 36, 48, .6); }
.sticky-bar > span:first-child { flex: 1; }
.sticky-bar strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.sticky-bar .btn { background: #fff; color: var(--ink); border-color: #fff; }
.save-state { font-size: .88rem; color: #b8c2cf; min-width: 7em; text-align: right; }
.save-state.saving::before { content: ""; display: inline-block; width: .8em; height: .8em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; margin-right: 6px; vertical-align: -0.1em; }
.save-state.saved { color: #7fe0b2; }
.save-state.err { color: #ffb3ab; }
tr.changed td { background: var(--hi-soft); }
td.edited input, td.edited select { border-color: var(--carbon); background: #f3f5fe; }

/* ---------- Upload box ---------- */
.uploader .drop { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.drop-title { font-weight: 600; }
.drop-hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
.drop.has-files { border-style: solid; border-color: var(--carbon); }
.drop.over { transform: scale(1.01); }
.chosen { list-style: none; padding: 0; margin: 12px 0; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.chosen li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--rule); font-size: .92rem; background: #fff; }
.chosen li:last-child { border-bottom: 0; }
.chosen .ext { font-size: .7rem; font-weight: 800; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 2px 6px; color: var(--muted); }
.chosen .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chosen .fsize { color: var(--muted); font-size: .85rem; }
.chosen li.bad { background: #fbeceb; }
.chosen li.bad .fsize { color: var(--bad); font-weight: 600; }
.progress-text { font-size: .9rem; color: var(--carbon); font-weight: 600; margin: -6px 0 14px; }
.uploader.uploading .drop { opacity: .5; pointer-events: none; }

/* ---------- Brand timeline ---------- */
.timeline { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 20px 22px 8px; margin-bottom: 28px; }
.timeline ol { list-style: none; padding: 0; margin: 16px 0 10px; }
.timeline li { position: relative; padding: 0 0 18px 34px; display: flex; flex-direction: column; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--rule); }
.timeline li:last-child::before { display: none; }
.timeline li.tl-done::before { background: var(--ok); }
.tl-dot { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rule); background: #fff; }
.tl-done .tl-dot { background: var(--ok); border-color: var(--ok); }
.tl-done .tl-dot::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tl-current .tl-dot { border-color: var(--carbon); border-width: 3px; }
.tl-current .tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--carbon); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.55); opacity: .5; } }
.tl-label { font-weight: 600; line-height: 22px; }
.tl-todo .tl-label { color: var(--muted); font-weight: 400; }
.tl-detail { color: var(--carbon); font-size: .92rem; }
.tl-bar { display: block; height: 6px; background: var(--paper); border-radius: 3px; overflow: hidden; max-width: 320px; margin-top: 6px; }
.tl-bar > span { display: block; height: 100%; background: var(--carbon); transition: width .6s ease; }

@media (max-width: 720px) {
  .stepper { grid-template-columns: 1fr; gap: 0; }
  .stepper li { flex-direction: row; text-align: left; gap: 12px; padding: 4px 0; }
  .stepper li::before { left: 15px; right: auto; top: -12px; width: 3px; height: 16px; }
  .st-dot { width: 28px; height: 28px; font-size: .85rem; }
  .run { padding: 16px; }
  .run-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-items li { grid-template-columns: 20px minmax(0, 1fr); }
  .ri-detail { grid-column: 2; }
  .toasts { left: 16px; right: 16px; bottom: 16px; align-items: stretch; }
  .sticky-bar { border-radius: 0; margin-left: -16px; margin-right: -16px; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner, .run-bar > span::after, .tl-current .tl-dot::after, .save-state.saving::before { animation: none !important; }
  .flash, .just-done .ico { animation: none !important; }
}

/* ---------- Content pages ---------- */
.doc-page { padding: 40px 0 64px; }
.doc-head { max-width: 860px; margin-bottom: 28px; }
.doc-head h1 { max-width: 24ch; font-size: clamp(1.9rem, 4vw, 2.7rem); margin-top: 10px; }
.doc-meta { color: var(--muted); font-size: .9rem; }
.doc-grid { display: block; }
.doc-page.has-toc .doc-grid { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 48px; align-items: start; }
.toc { position: sticky; top: 20px; font-size: .9rem; border-left: 2px solid var(--rule); padding-left: 16px; }
.toc-title { font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0 0 8px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--carbon); text-decoration: underline; }
.doc-body { max-width: 760px; }
.doc-body h2 { font-size: 1.5rem; margin-top: 1.8em; scroll-margin-top: 16px; }
.doc-body h3 { margin-top: 1.4em; scroll-margin-top: 16px; }
.doc-body p, .doc-body li { max-width: 70ch; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.doc-body li { margin-bottom: .4em; }
.doc-body li > ul { margin: .4em 0 0; }
.doc-body .content-table { font-size: .93rem; margin: 6px 0 22px; }
.doc-body .content-table td { vertical-align: top; }
.doc-body .callout { margin: 18px 0; }
.doc-body a.ext::after { content: "↗"; font-size: .75em; margin-left: 2px; text-decoration: none; display: inline-block; }
.doc-body code { background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; padding: 1px 5px; font-size: .9em; }
.codeblock { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; white-space: pre-wrap; font: .92rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; }
.inline-bill { margin: 24px 0; max-width: 620px; }
.inline-bill .bill { transform: none; }
.faq-block details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.faq-block summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq-block details p { margin: 8px 0 0; }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related a { display: block; border: 1px solid var(--rule); background: var(--sheet); border-radius: 6px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.related a:hover { border-color: var(--carbon); }
.related strong { display: block; color: var(--carbon); }
.related span { color: var(--muted); font-size: .9rem; }
#sources + ul { font-size: .9rem; color: var(--muted); }

.cta-box { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 18px 28px; align-items: center; background: var(--ink); color: #eef1f5; border-radius: 10px; padding: 26px 28px; margin: 34px 0; }
.cta-box h2 { color: #fff; margin: 0 0 .4em; font-size: 1.35rem; }
.cta-box p { margin: 0; color: #cdd5df; }
.cta-box .cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-box .btn.ghost { color: #fff; border-color: #fff; }
.cta-box .btn.ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Calculators ---------- */
.tool { min-width: 0; max-width: 100%; background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--carbon); border-radius: 8px; padding: 20px 22px; margin: 22px 0 28px; }
.tool-title { font-size: 1.15rem; margin: 0 0 14px; }
.doc-body .tool .tool-title { margin-top: 0; }
.tf[hidden] { display: none; }
@media (max-width: 560px) { .tf.full { grid-column: 1 / -1; } }
.tf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; }
.tf { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; min-width: 0; }
.tf.wide { margin-top: 14px; }
.tf-label { font-weight: 600; }
.tf-hint { color: var(--muted); font-size: .8rem; }
.tf-input { display: flex; align-items: stretch; min-width: 0; width: 100%; border: 1px solid #aeb7c2; border-radius: 6px; background: #fff; overflow: hidden; }
.tf-input:focus-within { outline: 3px solid #c7d0fa; border-color: var(--carbon); }
.tf-input input, .tf-input select { flex: 1; min-width: 0; border: 0; padding: 9px 10px; font: inherit; font-size: 1rem; background: transparent; color: var(--ink); outline: none; }
.affix { background: var(--paper); color: var(--muted); padding: 9px 10px; border-right: 1px solid var(--rule); font-size: .92rem; }
.tf-input .affix:last-child { border-right: 0; border-left: 1px solid var(--rule); }
.tf textarea { font: inherit; font-size: .95rem; padding: 9px 10px; border: 1px solid #aeb7c2; border-radius: 6px; resize: vertical; }
.tool-out { margin-top: 16px; background: var(--paper); border-radius: 8px; padding: 16px 18px; }
.tool-out .big { display: flex; flex-direction: column; gap: 2px; }
.tool-out .big > span:first-child { color: var(--muted); font-size: .88rem; }
.tool-out .big strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--carbon); font-variant-numeric: tabular-nums; }
.tool-out .big strong.bad { color: var(--bad); }
.tool-out .big strong.good { color: var(--ok); }
.tool-out .big > span:last-child { font-size: .92rem; max-width: 70ch; }
.tool-out table { margin: 12px 0 0; background: transparent; }
.tool-out tr.strong td { font-weight: 800; border-top: 2px solid var(--ink); }
.tool-note { color: var(--muted); font-size: .8rem; margin: 10px 0 0; }

/* ---------- Hubs and footer ---------- */
.hub { padding-top: 40px; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 28px 0; }
.cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.cards a:hover { border-color: var(--carbon); transform: translateY(-2px); }
.cards strong { color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.cards span { color: var(--muted); font-size: .92rem; }
.cards em { font-style: normal; font-size: .8rem; color: var(--carbon); font-weight: 600; margin-top: auto; }
.fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 22px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.fcols ul { list-style: none; padding: 0; margin: 0; }
.fcols li { margin: 0 0 6px; }
.fcols a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.fcols a:hover { color: var(--carbon); text-decoration: underline; }
.fcol-title { font-weight: 700; margin: 0 0 8px; }
.home-learn .cards { margin-bottom: 8px; }

@media (max-width: 960px) {
  .doc-page.has-toc .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc a { overflow-wrap: anywhere; }
  .toc { position: static; margin-bottom: 24px; }
  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cta-box { grid-template-columns: 1fr; padding: 22px 18px; }
  .tool { padding: 16px; }
  .tf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcols { grid-template-columns: 1fr 1fr; }
}

/* Printing a checklist or template: just the content */
@media print {
  .top, .foot, .toc, .cta-box, .related, .crumbs, .toasts, .tool-note, .doc-meta { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .doc-page.has-toc .doc-grid { display: block; }
  .doc-page { padding: 0; }
  a { color: inherit; text-decoration: none; }
  .doc-body a.ext::after { content: none; }
  h2, h3 { break-after: avoid; }
  li, tr { break-inside: avoid; }
}
