/* The paper page (templates/paper_page.html). 13 Nov 2026.

   A page file: linked after core.css by the paper page and by the page that says
   there is no paper at an address. The plate's own styles are in core.css. Colours,
   sizes and widths come from tokens.css. */

/* The reading layout keeps its children to columns 1 to 8; the article runs the
   full twelve so the plate can (class "wide", base.css), and holds its own text to
   a measure. */

.paper-page__head {
  max-width: calc(var(--grid-max) * 5 / 6);
  padding-bottom: var(--space-5);
}

.paper-page__ident {
  color: var(--ink-2);
}

.paper-page__title {
  margin-top: var(--space-2);
}

.paper-page__authors {
  margin-top: var(--space-3);
  font-weight: 600;
}

.paper-page__links {
  margin-top: var(--space-2);
}

.paper-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-4);
}

.paper-page__section {
  padding-top: var(--space-7);
}

.paper-page__section > h2 {
  margin-bottom: var(--space-4);
}

.paper-page__section > .fold:last-of-type {
  border-bottom: var(--rule-hair);
}

.paper-page__sentences {
  margin-top: var(--space-3);
  padding-inline-start: var(--space-5);
  list-style: decimal;
  max-width: var(--measure);
}

.paper-page__sentences > li + li {
  margin-top: var(--space-2);
}

.paper-page__challenges > li {
  padding-block: var(--space-4);
  border-top: var(--rule-hair);
}

.paper-page__challenges > li > * + * {
  margin-top: var(--space-2);
}

.paper-page__foot {
  margin-top: var(--space-7);
  border-top: var(--rule);
}

/* The foot's first fold sits on the foot's own rule: one line, not two. */
.paper-page__foot > .fold:first-child {
  border-top: 0;
}

.paper-page__receipt {
  margin-top: var(--space-2);
  overflow-wrap: anywhere;
}

/* Under the authors: who has verified that the paper is theirs. */
.paper-page__marks {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.paper-page__more-authors {
  margin-top: var(--space-1);
}

/* A notice above the plate: the paper has a newer version than the review read. */
.paper-page__notice {
  max-width: var(--reading);
  margin-bottom: var(--space-5);
  padding: var(--space-4) 0 var(--space-4) var(--space-4);
  border-inline-start: var(--rule-inset);
}

.paper-page__notice > * + * {
  margin-top: var(--space-2);
}

.paper-page__inline-form {
  display: inline;
}

/* Forms on the page: a reply, a link, a comment. One column, the button last. */
.paper-page__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  justify-items: start;
  max-width: var(--reading);
  margin-top: var(--space-4);
}

.paper-page__textarea {
  height: auto;
  min-height: calc(3 * var(--control));
  padding: var(--space-3);
  resize: vertical;
}

.paper-page__method {
  margin-top: var(--space-4);
}

/* The author's reply, the simulated defence's point-by-point answers, comments,
   challenges: lists of entries, a hairline between them. */
.paper-page__reply,
.paper-page__replies > li,
.paper-page__comment-list > li,
.paper-page__item,
.paper-page__claims > li {
  padding-block: var(--space-4);
  border-top: var(--rule-hair);
}

.paper-page__reply > * + *,
.paper-page__replies > li > * + *,
.paper-page__comment-list > li > * + *,
.paper-page__item > * + *,
.paper-page__claims > li > * + * {
  margin-top: var(--space-2);
}

.paper-page__comments {
  margin-top: var(--space-5);
}

/* The compiled record: the authors' sentences with a classifier's labels. */
.paper-page__record > * + * {
  margin-top: var(--space-3);
}

/* The versions of one work: a short list under the facts line. */
.paper-page__versions {
  margin-top: var(--space-3);
}

.paper-page__versions ol {
  margin-block: var(--space-1);
}

.paper-page__versions a {
  overflow-wrap: anywhere;
}

/* A paper's own text, where the record holds it. */
.paper-page__body {
  margin-top: var(--space-5);
  max-width: var(--measure);
  overflow-wrap: anywhere;
}

/* The study in brief: the authors' own words under a classifier's field names. */
.paper-page__card {
  border-top: var(--rule-hair);
  border-bottom: var(--rule-hair);
  padding-block: var(--space-3);
}

.paper-page__card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--space-1);
}

.paper-page__card dd {
  max-width: var(--measure);
}

@media (min-width: 720px) {
  .paper-page__card > div {
    grid-template-columns: 16ch minmax(0, 1fr);
    column-gap: var(--space-4);
  }
}

.paper-page__table td,
.paper-page__table th {
  font-size: inherit;
}

.paper-page__table {
  min-width: 40rem;
}

.paper-page__qualified {
  padding-inline-start: var(--space-4);
  border-inline-start: var(--rule-hair);
}

.paper-page__list {
  padding-inline-start: var(--space-5);
  list-style: disc;
}

.paper-page__list > li + li {
  margin-top: var(--space-1);
}

/* A figure is shown whole. */
.paper-page__figure {
  margin-block: var(--space-5);
}

.paper-page__figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: var(--rule-hair);
}

.paper-page__figure figcaption {
  margin-top: var(--space-2);
}

/* References and the papers that cite this one. */
.paper-page__refs > li,
.paper-page__citing > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
  padding-block: var(--space-3);
  border-top: var(--rule-hair);
  max-width: var(--reading);
}

.paper-page__reflinks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
}

.paper-page__topics {
  margin-top: var(--space-4);
}

/* Two blocks carried as other lanes wrote them (how later papers used this one; how
   the literature uses it) and the newer review form: their own class names, given
   the page's rules and space and nothing else. */
.paper-page__carried {
  margin-top: var(--space-5);
}

.paper-page__carried details {
  border-top: var(--rule-hair);
}

.paper-page__carried summary {
  min-height: var(--target);
  padding-block: var(--space-3);
  font-weight: 600;
}

.paper-page__carried blockquote {
  padding-inline-start: var(--space-4);
  border-inline-start: var(--rule-hair);
  font: var(--type-body-paper);
}

.paper-page__carried .references-meta,
.paper-page__carried .conn-source,
.paper-page__carried .conn-muted {
  font: var(--type-small);
  color: var(--ink-2);
}

/* A passage that a decision withdrew: struck where it stands, with a link to the
   correction. The class names are written by pith/integrity/review_corrections.py. */
.pd2-withdrawn {
  color: var(--apparatus);
}

.pd2-withdrawn-tag {
  font: var(--type-line);
}

.pd2-withdrawn-note {
  max-width: var(--measure);
  font: var(--type-small);
  color: var(--ink-2);
}

/* No paper at this address. */
.absent__more {
  margin-top: var(--space-4);
}

.absent__find {
  margin-top: var(--space-6);
}

/* On paper: every fold open, no controls, ink on white. */
@media print {
  .paper-page__actions,
  .paper-page__links {
    display: none;
  }

  .paper-page .fold::details-content {
    display: block;
    content-visibility: visible;
  }

  .paper-page .fold > summary::before {
    content: none;
  }

  /* The whole abstract is printed once, under "The paper", not a second time beside the verdict. */
  .paper-page .plate__row--head .more {
    display: none;
  }
}
