/*
 * EncodeLabel: one label paper's own page (paper.php, /paper/<id>).
 *
 * Only what this page needs on top of site.css. Every colour is one of
 * site.css's names, so light and dark both work. The picture of the sheet is
 * the exception the whole site makes: paper is white with black lines in both
 * themes, on the same grey "desk" the tools use.
 *
 *   .pp-trail   the breadcrumb above the heading      .pp-top    the picture beside "Use this paper"
 *   .pp-table   the tables of numbers                 .pp-links  lists of other papers
 *   .pp-list    the lists of advice and tips          .pp-two    Word and Writer side by side
 */

/* The breadcrumb: Label paper > US Letter sheets > this paper. */
.pp-trail { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
.pp-trail ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.pp-trail li { display: inline-flex; align-items: center; min-height: 32px; }
.pp-trail li + li::before { content: "\203A"; margin: 0 8px; color: var(--muted); }
.pp-trail a { display: inline-flex; align-items: center; min-height: 44px; }
@media (pointer: fine) { .pp-trail a { min-height: 32px; } }

.pp-head h1 { overflow-wrap: anywhere; }
.pp-compat { margin-bottom: 4px; }
.pp-codes { margin: 0 0 4px; }
.pp-codes > summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); cursor: pointer; }
.pp-codes > p { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }

/* The sheet and the buttons: side by side on a wide screen, one above the other on a phone. */
.pp-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 761px) {
  .pp-top { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 32px; }
}
.pp-sheet {
  margin: 0; padding: 16px; border: 1px solid var(--desk-line); border-radius: var(--radius);
  background: var(--desk); color-scheme: light;
}
.pp-sheet > img {
  display: block; max-width: 100%; height: auto; margin: 0 auto;
  box-shadow: var(--shadow);
}
/* A tall roll picture shouldn't push the buttons a whole screen down on a phone. */
@media (max-width: 760px) { .pp-sheet > img { max-height: 70vh; width: auto; } }
.pp-sheet > figcaption { margin: 10px 0 0; text-align: center; }

.pp-summary { margin: 0 0 16px; }
.pp-use-title { margin: 0 0 8px; }
.pp-buttons { flex-wrap: wrap; }
.pp-test { margin: 12px 0; }
.pp-test:has(> [hidden]:only-child) { display: none; }

/* Tables of numbers: the name of each number on the left, the figures lined up on the right. */
.pp-table { width: 100%; }
/* The name of each number reads as ordinary words (site.css makes table headings small capitals). */
.pp-table tbody th {
  color: var(--ink); font-size: inherit; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: normal;
}
.pp-table td.num { font-variant-numeric: tabular-nums; }
.pp-measure { max-width: 760px; }
@media (max-width: 560px) {
  .pp-table th, .pp-table td { padding: 8px 8px; }
}

.pp-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 32px; }
@media (min-width: 900px) { .pp-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pp-two h3 { overflow-wrap: anywhere; }

.pp-list { margin: 0; padding-left: 1.2em; }
.pp-list > li { margin: 0 0 10px; }
.pp-list > li > a { white-space: nowrap; }

.pp-links { margin: 0; padding: 0; list-style: none; }
.pp-links > li { padding: 10px 0; border-top: 1px solid var(--line); }
.pp-links > li:last-child { border-bottom: 1px solid var(--line); }
.pp-links > li > a { font-weight: 600; }

.pp-brands { margin-top: 40px; }
