/* Scientific Sports - PDF rendering. Loaded only by the print template, which
   Edge/Chrome headless turns into the archival PDF. Fixed light palette on
   purpose: a PDF has no viewer theme to follow. */

@page {
  size: A4;
  margin: 22mm 20mm 24mm;
}

html {
  font-size: 10.5pt;
}

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.paper { max-width: none; margin: 0; padding: 0; }

.masthead-print {
  border-bottom: 0.6pt solid #000000;
  padding-bottom: 6pt;
  margin-bottom: 18pt;
  font-family: "garamond-premier-pro", Garamond, Georgia, serif;
  font-size: 8.5pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  color: #333333;
}

h1 {
  font-size: 17pt;
  line-height: 1.18;
  margin: 0 0 10pt;
  font-weight: 600;
}

address {
  font-style: normal;
  font-size: 10pt;
  line-height: 1.4;
  margin-bottom: 16pt;
}
address .affil { font-size: 9pt; color: #333333; }

.abstract {
  border-top: 0.6pt solid #999999;
  border-bottom: 0.6pt solid #999999;
  padding: 8pt 0;
  margin: 0 0 16pt;
  font-size: 9.5pt;
  line-height: 1.45;
}
.abstract h2 {
  font-family: "garamond-premier-pro", Garamond, Georgia, serif;
  font-size: 8.5pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 4pt;
  color: #555555;
}
.abstract p { margin: 0; }

h2 { font-size: 12pt; margin: 16pt 0 6pt; font-weight: 600; break-after: avoid; }
h3 { font-size: 10.5pt; margin: 12pt 0 4pt; font-weight: 600; break-after: avoid; }
h4 { font-size: 10pt; margin: 10pt 0 3pt; font-style: italic; font-weight: 600; break-after: avoid; }

p { margin: 0 0 8pt; text-align: justify; hyphens: auto; orphans: 3; widows: 3; }

figure { margin: 12pt 0; text-align: center; break-inside: avoid; }
figure img { max-width: 100%; height: auto; }
figcaption { font-size: 8.5pt; text-align: left; margin-top: 4pt; color: #333333; }

img { max-width: 100%; height: auto; }

table { width: 100%; border-collapse: collapse; font-size: 9pt; margin: 12pt 0; break-inside: avoid; }
th, td { border-top: 0.5pt solid #bbbbbb; padding: 3pt 4pt; text-align: left; }
thead th { border-bottom: 0.6pt solid #000000; }

ol, ul { padding-left: 14pt; margin: 0 0 8pt; }

a { color: #000000; text-decoration: none; }

.references { margin-top: 16pt; break-before: auto; }
.references h2 {
  font-family: "garamond-premier-pro", Garamond, Georgia, serif;
  font-size: 8.5pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555555;
}
.references ol { list-style: none; padding-left: 0; font-size: 8.8pt; }
.references li { margin-bottom: 4pt; padding-left: 12pt; text-indent: -12pt; line-height: 1.35; }

.colophon {
  margin-top: 18pt;
  padding-top: 6pt;
  border-top: 0.5pt solid #999999;
  font-family: "garamond-premier-pro", Garamond, Georgia, serif;
  font-size: 8.5pt;
  line-height: 1.5;
  color: #444444;
}

svg { max-width: 100%; height: auto; }

/* Video cannot be printed. Hide the player and say so in the caption, so the
   PDF never shows a silent black rectangle where a figure should be. */
video { display: none; }
figure:has(video) figcaption::after,
td:has(video) > p::after {
  content: " [video; see the HTML edition]";
  font-style: italic;
}

mjx-container[display="true"] { break-inside: avoid; }

/* The site chrome is navigation, not content: it has no place on paper. */
.masthead, .cover-band, .sitenav, .crumbs, .sitefoot, .actions, .paper-head .runninghead { display: none; }
main { max-width: none; margin: 0; padding: 0; }
.paper-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.abstract { background: none; border-left: 0; padding-left: 0; padding-right: 0; }
a[href^="http"]::after { content: ""; }
