/*
 * .seq-notes — operator notes on a run (run_notes), oldest first. Run show only. Never inside
 * the viewer surfaces. The latest values of the short fields are not repeated above the list:
 * the notes show them (the review of 2026-09-24).
 *
 * A note is never edited, so the list is a record of what was believed when: each item
 * carries its author, time and basis (contemporaneous, or reconstructed and from what),
 * its short fields, and its markdown body rendered and sanitised by RunNotesHelper.
 *
 * Markup:
 *   <ol class="seq-notes">
 *     <li class="seq-notes__note" id="run-note-12">
 *       <p class="seq-notes__title">chr20 on the GPU through the service</p>
 *       <p class="seq-notes__meta">martin@bubb.la · <time>2026-09-23 08:12:00</time> · contemporaneous</p>
 *       <dl class="seq-notes__fields">…seq-notes__field rows…</dl>
 *       <div class="seq-notes__body"><p>…</p></div>
 *     </li>
 *   </ol>
 */

.seq-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
  max-width: var(--width-740);
}

.seq-notes__note {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
  padding-inline-start: var(--spacing-24);
  border-inline-start: var(--stroke-weight-1) solid var(--border-default);
}

.seq-notes__title {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-600);
  color: var(--text-primary);
}

.seq-notes__meta {
  margin: 0;
  font-family: var(--font-family-body);   /* an author and a time are not identifiers: small prose, not mono (2026-09-24) */
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-400);
  font-variant-numeric: var(--numerals);
  color: var(--text-secondary);
}

.seq-notes__fields {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: var(--spacing-12);
  row-gap: var(--spacing-4);
  margin: 0;
  max-width: var(--width-740);
}

.seq-notes__field {
  display: contents;
}

.seq-notes__label {
  font-family: var(--font-family-body);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-400);
  color: var(--text-secondary);
}

.seq-notes__value {
  margin: 0;
  white-space: pre-line;
  font-family: var(--font-family-body);
  font-size: var(--font-size-14);
  font-weight: var(--font-weight-400);
  color: var(--text-primary);
}

.seq-notes__body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-400);
  line-height: 1.5;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.seq-notes__body > * {
  margin-block: 0 var(--spacing-8);
}
.seq-notes__body :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-family-display);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-600);
}
.seq-notes__body :is(code, pre) {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-12);
  font-weight: var(--font-weight-400);
}
.seq-notes__body pre {
  overflow-x: auto;
  padding: var(--spacing-12);
  border: var(--stroke-weight-1) solid var(--border-subtle);
}
.seq-notes__body blockquote {
  margin-inline: 0;
  padding-inline-start: var(--spacing-12);
  border-inline-start: var(--stroke-weight-1) solid var(--border-default);
  color: var(--text-secondary);
}
.seq-notes__body table {
  border-collapse: collapse;
}
.seq-notes__body :is(th, td) {
  padding: var(--spacing-4) var(--spacing-12);
  border-block-end: var(--stroke-weight-1) solid var(--border-subtle);
  text-align: start;
}

/* Touch: the form's summary ("Add a note") is one line of text; on a coarse pointer it is
   at least 44px tall (WCAG 2.5.5, README.md § Touch targets). */
@media (pointer: coarse) {
  .seq-notes__form > summary {
    display: flex;
    align-items: center;
    min-block-size: 44px;
  }
}

@media print {
  .seq-notes__form {
    display: none;
  }
}
