/* Print / PDF — from Web Designer (docs/web-designer-snippets/print.css); .sections/.crumbs/.theme added for this site. Include as <link rel="stylesheet" media="print" href="/assets/print.css">, or concatenate into site.css inside @media print. */
@page { size: A4; margin: 22mm 20mm 24mm; }
@page :first { margin-block-start: 30mm; }
@media print {
  :root, :root[data-theme="dark"] { color-scheme: light; --bg:#fff; --surface:#fff; --text:#000; --text-muted:#333; --border:#bbb; --border-strong:#666; --link:#000; --accent:#000; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.45; }
  .site-header, .site-nav, .sections, .crumbs, .theme, .skip, .theme-toggle, .lang-picker, .skip-link, .toc-mobile, footer .social, audio, video, button { display: none !important; }
  article { max-inline-size: none; }
  h1, h2, h3, h4 { break-after: avoid; } 
  p { orphans: 3; widows: 3; }
  .ex, .gl, figure, table, pre, blockquote, .chip { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  a[href^="http"]:not(.no-url)::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; color: #333; }
  a[href^="#"]::after { content: none; }
  .sn { display: none; } .fn-list.has-sidenotes { display: block; }   /* sidenotes become footnotes on paper */
  details { display: block; } details > summary { display: none; }      /* expand collapsed asides */
  .chip { border-color: #000; color: #000; }                           /* chips keep glyph + word, which survive greyscale */
  /* running header/footer + page numbers: Chromium 131+ and WeasyPrint support margin boxes */
  @page { @bottom-center { content: counter(page) " / " counter(pages); font: 9pt system-ui; color: #444; }
          @top-right { content: string(essay-title); font: 9pt system-ui; color: #444; } }
  h1.essay-title { string-set: essay-title content(); }                  /* WeasyPrint / Paged.js; ignored elsewhere */
}
/* WeasyPrint only (real footnotes + live cross-reference numbers); put in a separate pdf.css that only the PDF build loads:
   .fn-body   { float: footnote; footnote-display: block; font-size: 9pt; }
   .exref::after { content: "(" target-counter(attr(href), example) ")"; } */
