/* Findings are printed and circulated in meetings. Print for that, not for the screen. */

@page {
  margin: 18mm 16mm 20mm;
}

:root {
  --paper: #fff;
  --vellum: #fff;
  --rule: #999;
  --slate: #444;
  --ink: #000;
  --tail: #000;
}

body {
  background: #fff;
  color: #000;
  font-size: 10.5pt;
  line-height: 1.5;
}

/* The rail itself prints; it carries the provenance a printed report needs.
   Only the on-this-page navigation inside it is dropped. */
.masthead nav,
.skip,
.foot__grid,
.rail__index,
.rail nav,
.form,
.fig__data summary { display: none !important; }

.masthead { border-bottom: 0.5pt solid #000; padding-block: 0 6pt; }
.wordmark { font-size: 11pt; }

.doc { display: block; }

/* Provenance prints as a compact two-column block under the headline. */
.rail {
  border: 0.5pt solid #999;
  padding: 6pt 8pt;
  margin-bottom: 12pt;
  color: #000;
  font-size: 8.5pt;
}
.rail dl { display: block; }
.rail dl > div {
  display: grid;
  grid-template-columns: 26mm 1fr;
  column-gap: 6pt;
  padding: 1.5pt 0;
}
.rail dl > div + div { border-top: 0.5pt solid #ddd; }
.rail dt { font-size: 7.5pt; letter-spacing: 0.08em; }
.rail dd { margin: 0; }

main { padding-bottom: 0; }
.page-head { padding-block: 12pt 10pt; }
h1 { font-size: 20pt; }
h2 { font-size: 13pt; }
h3 { font-size: 11pt; }

/* Keep sections and their caveats together on the page. */
.section, .limits, .fig, .entry, .row, .table { break-inside: avoid; }
h1, h2, h3 { break-after: avoid; }

/* The hatch must survive greyscale, so it becomes real ruled lines. */
.limits {
  background: #fff;
  border: 0.5pt solid #000;
  border-left: 2pt solid #000;
  padding: 8pt 10pt;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.08) 0 0.5pt, transparent 0.5pt 5pt);
}
.limits p { font-weight: 700; }

.plot__hatch { stroke: #000; opacity: 1; }
.plot__ecdf { stroke: #555; }
.plot__ecdf--tail { stroke: #000; stroke-width: 3; }
.plot__note--tail { fill: #000; }

.fig__data { display: block !important; }
.fig__data[open] > summary { display: none; }

.table th, .table td { border-bottom: 0.5pt solid #999; }
.table--access .cannot { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.1) 0 0.5pt, transparent 0.5pt 5pt); }

/* Expand link targets: a printed report has to be followable off-paper. */
a { text-decoration: underline; color: #000; }
.prose a[href^='http']::after,
.entry__links a[href^='http']::after,
.entry__links a[href^='/']::after {
  content: ' <' attr(href) '>';
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8pt;
  word-break: break-all;
}

.foot { border-top: 0.5pt solid #000; padding-block: 8pt 0; }
.foot__bottom { margin-top: 0; border: 0; font-size: 8pt; }
