@media print {
  @page { margin: 18mm 16mm; }

  html, body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }
  h1, h2, h3, th, .meta dd, .post-lede { color: #000; }
  a { color: #000; text-decoration-color: #000; }

  .skip, .masthead nav, .colophon, .toc, .pager, .filterbar, .filter-count,
  .copy-button, .motion-row, .figure-riso, .tape::after, .backdrop, .loader, .figure-canvas,
  .guest-shell, .shell-dialog { display: none !important; }
  .masthead { border: 0; padding: 0 0 12pt; }
  .mask { display: none; }

  .post-body { display: block; padding-top: 0; padding-bottom: 0; }
  .prose { max-width: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; overflow-wrap: anywhere; }

  .term, .terminal {
    background: #fff;
    border: 1px solid #999;
    break-inside: avoid;
  }
  .term-bar { color: #000; border-color: #999; }
  .term pre, .terminal-screen { color: #000; white-space: pre-wrap; overflow: visible; }
  .token { color: #000 !important; text-decoration: none !important; }

  .prose :not(pre) > code, .tags a { background: none; border-color: #999; color: #000; }
  .insert { clip-path: none; border: 1px solid #000; background: #fff; }
  .insert::before { display: none; }
  .sticker { background: none; color: #000; border: 1px solid #000; transform: none; clip-path: none; }
  img { break-inside: avoid; }
}
