/* Dedicated print sheet. Loaded with media="print", so it never blocks paint. */
@page {
  margin: 18mm 16mm;
}

:root {
  --bg: #fff;
  --fg: #000;
  --fg-soft: #111;
  --muted: #444;
  --line: #bbb;
  --line-soft: #ddd;
  --panel: #fff;
}

html,
body {
  background: #fff !important;
  color: #000 !important;
  font-size: 11pt;
  line-height: 1.55;
}

.hdr,
.ftr,
.skip,
.tool,
.toc,
.toc-mobile,
.next,
.copy,
.palette,
.comments,
.comment-form,
.share,
.related,
.series,
.changelog,
.errata,
.offline-note,
.btn,
.btn-row,
.alert,
form {
  display: none !important;
}

.shell,
.main,
.article,
.prose,
.page-head,
.resume-head,
.intro {
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.article-title,
.page-title {
  font-size: 22pt;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.article-meta,
.row-meta,
.entry-when,
.page-lede,
.article-summary {
  color: #333 !important;
  font-size: 9.5pt;
}

.prose {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11pt;
  line-height: 1.6;
  color: #000;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: inherit;
  break-after: avoid;
  page-break-after: avoid;
}

.prose p,
.prose li {
  orphans: 3;
  widows: 3;
}

.prose img {
  max-width: 100% !important;
  height: auto !important;
  border: 1px solid #999 !important;
  break-inside: avoid;
  page-break-inside: avoid;
}

.prose figure,
.prose blockquote,
.prose table,
.entry,
.disc,
.changelog,
.series {
  break-inside: avoid;
  page-break-inside: avoid;
}

.prose pre,
.prose code,
.shiki {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 8.5pt;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #bbb !important;
  background: #f7f7f7 !important;
  color: #000 !important;
}

.prose pre {
  padding: 0.5rem !important;
}

.prose a {
  color: #000 !important;
  text-decoration: underline;
}

.prose a[href^="http"]::after {
  content: " (" attr(href) ")";
  font-size: 8.5pt;
  font-weight: normal;
  word-break: break-all;
}

.label,
.entry-title,
.disc-title {
  color: #000 !important;
}
