/* The site's reading pages (privacy, terms, credits, accessibility): the channel's colours and type
   from style.css, set for long reading. One column, about 70 characters wide, on every screen. */

.page-top { align-items: center; }
.page-top .btn { flex: none; }

.doc {
  max-width: 47rem;
  margin: 0 auto;
  padding: 0.5rem clamp(16px, 4vw, 40px) 3rem;
}

.doc h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--brass-soft);
  margin: 0.25rem 0 0.5rem;
}

.doc .meta { margin: 0 0 1.5rem; color: var(--mist); font-size: 0.95rem; }

.doc h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--brass-soft);
  margin: 2.4rem 0 0.7rem;
  scroll-margin-top: 1rem;
}

.doc h3 { font-size: 1.05rem; line-height: 1.35; color: var(--paper); margin: 1.6rem 0 0.45rem; font-weight: 700; scroll-margin-top: 1rem; }

.doc p, .doc li, .doc dd { color: #dfe3f2; }
.doc p { margin: 0 0 0.95rem; }
.doc ul, .doc ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.doc li { margin: 0.35rem 0; }
.doc li::marker { color: var(--mist); }
.doc a { overflow-wrap: anywhere; text-underline-offset: 0.15em; }
.doc strong { color: var(--paper); }
.doc code { font-size: 0.92em; background: rgba(6, 10, 28, 0.6); border: 1px solid var(--panel-edge); border-radius: 4px; padding: 0.05rem 0.3rem; overflow-wrap: anywhere; }
.doc blockquote { margin: 0 0 1rem; padding: 0.5rem 0 0.5rem 1rem; border-left: 3px solid var(--panel-edge); color: #dfe3f2; }
.doc blockquote p { margin: 0; }

/* "In short": the page in a few lines, before the detail */
.doc .summary {
  background: rgba(18, 27, 69, 0.75);
  border: 1px solid var(--panel-edge);
  border-left: 3px solid var(--brass);
  border-radius: 8px;
  padding: 1rem 1.15rem 0.35rem;
  margin: 0 0 1.75rem;
}
.doc .summary h2 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.doc .summary ul { margin-bottom: 0.75rem; }

/* contents: a compact list of the sections */
.doc .toc { margin: 0 0 1rem; }
.doc .toc ol { columns: 2 16rem; column-gap: 2rem; margin: 0; padding-left: 1.3rem; }
.doc .toc li { margin: 0 0 0.4rem; break-inside: avoid; }
.doc .toc h2 { margin: 0 0 0.5rem; font-size: 0.95rem; color: var(--mist); }

/* tables: a plain grid on wide screens, stacked label-and-value rows on a phone */
.table-wrap { margin: 0 0 1.25rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.doc caption { text-align: left; color: var(--mist); font-size: 0.9rem; padding-bottom: 0.4rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.65rem 0.6rem 0; border-bottom: 1px solid var(--panel-edge); }
.doc thead th { color: var(--mist); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.doc tbody th { color: var(--paper); font-weight: 600; }
.doc td { color: #dfe3f2; }

@media (max-width: 640px) {
  .doc table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .doc table.stack tr { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--panel-edge); }
  .doc table.stack th, .doc table.stack td { display: block; border: 0; padding: 0.15rem 0; }
  .doc table.stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--mist);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
}

/* credits: one entry per source, its credit line set apart so it can be copied exactly */
.doc .credit-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.6rem; }
.doc .credit-list li { min-width: 0; overflow-wrap: anywhere; margin: 0; padding: 0.75rem 0.9rem; border: 1px solid var(--panel-edge); border-radius: 8px; background: rgba(18, 27, 69, 0.5); }
.credit-list .what { display: block; font-weight: 700; color: var(--paper); }
.credit-list .use { display: block; color: var(--mist); font-size: 0.92rem; margin-top: 0.15rem; }
.credit-list .line { display: block; margin-top: 0.45rem; padding-left: 0.7rem; border-left: 2px solid var(--brass); color: #f1ecd9; }
.credit-list .terms { display: block; margin-top: 0.4rem; font-size: 0.9rem; }

.doc .note { color: var(--mist); font-size: 0.92rem; }
.doc .back { margin-top: 2.5rem; }

@media (max-width: 479px) {
  .doc h2 { font-size: 1.25rem; margin-top: 2rem; }
  .page-top .btn { width: 100%; }
}
