/* Print stylesheet for crisp white-paper / black-ink PDF or paper export */
@page {
  size: auto;
  margin: 22mm 20mm 24mm 20mm;
}

:root,
:root[data-theme="dark"],
:root[data-theme="light"],
:root[data-theme="sepia"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f5f5f5;
  --ink: #000000;
  --ink-secondary: #333333;
  --ink-muted: #555555;
  --accent: #000000;
  --rule: #cccccc;
  --rule-strong: #666666;
}

body {
  background: #ffffff;
  background-image: none;
  color: #000000;
  font-size: 11pt;
  line-height: 1.55;
}

.site-header,
.site-footer,
.article-footer,
.skip-link,
.theme-switcher,
.topic-filter,
.archive-status,
.edition-card,
.code-bar,
.code-copy,
.heading-anchor,
.toc,
input.margin-toggle {
  display: none !important;
}

.shell,
.prose,
.article-header,
.epigraph,
figure.fullwidth {
  width: auto;
  max-width: 100%;
  margin-inline: 0;
  padding: 0;
}

.article-header {
  text-align: left;
}

.article-meta {
  justify-content: flex-start;
}

.code-block {
  border: 1pt solid #cccccc;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

.prose a[href^="http"]::after {
  content: " (" attr(href) ")";
  font-size: 0.8em;
  color: #444444;
}

h1,
h2,
h3,
figure,
pre,
blockquote,
table {
  break-inside: avoid;
}

h2,
h3 {
  break-after: avoid;
}

.sidenote,
.marginnote {
  display: block;
  float: none;
  width: auto;
  margin: 0.45rem 0 0.75rem 1.25rem;
  padding: 0 0 0 0.65rem;
  border-top: 0;
  border-left: 1pt solid #999999;
  font-size: 9pt;
  color: #333333;
}
