/* Citations — the reference number, the list, and the rail section.
 *
 * A separate stylesheet on purpose. post.css is frozen: it holds the
 * locked frame measurements and a test fails the build if the served
 * copy drifts from design/post-prototype/post.css. Anything new goes
 * in its own file (publication-ops, rule 6). channel.css exists for
 * the same reason.
 *
 * No hex values here either. Colours come from the theme only.
 */

/* The mark is a bracketed reference number, never a word. It points
 * down the page to the reference list, and nowhere else. A link in the
 * prose points out to the source. Two jobs, two targets (D-21). */
.cite {
  font-family: var(--wc-mono);
  font-size: 13px;
  color: var(--wc-accent);
  text-decoration: none;
  margin-left: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color var(--wc-dur-fast) var(--qe-ease);
}
.cite:hover { color: var(--qe-accent-deep); }

.sources { display: flex; flex-direction: column; gap: 18px; padding-top: 10px; }
.sources h2 { margin: 0; }

.sourcelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sourcelist li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 8px;
  row-gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--wc-line);
  transition: border-color var(--wc-dur-base) var(--qe-ease),
              background var(--wc-dur-base) var(--qe-ease);
}
/* The entry you landed on, so a click can be seen to have answered. */
.sourcelist li:target { border-left-color: var(--wc-accent); background: var(--qe-highlight); }
.sourcelist .n {
  font-family: var(--wc-mono);
  font-size: 13px;
  color: var(--wc-accent);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.sourcelist .t { grid-column: 2; font-size: 17px; line-height: 1.4; color: var(--wc-ink); }
.sourcelist .t a { color: var(--wc-accent); text-decoration: none; }
.sourcelist .t a:hover { text-decoration: underline; }
.sourcelist .m {
  grid-column: 2;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
  font-family: var(--wc-mono);
  font-size: 11.5px;
  color: var(--wc-faint);
}
.sourcelist .m a {
  color: var(--wc-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--wc-line-strong);
}
.sourcelist .m a:hover { color: var(--wc-accent); border-color: var(--wc-accent); }

/* Further reading carries no number, so it needs no number column. */
.further { font-size: 19px; font-weight: 500; color: var(--wc-ink); margin: 6px 0 0; }
.further-list li { grid-template-columns: 1fr; }
.further-list .t,
.further-list .m { grid-column: 1; }

/* The Sources section of the left rail. It reuses the contents
 * section's classes; only the row shape is new. */
.srcrail a {
  font-size: 14px;
  line-height: 1.35;
  color: var(--wc-muted);
  text-decoration: none;
  font-style: italic;
  display: flex;
  gap: 8px;
}
.srcrail a:hover { color: var(--wc-accent); }
.srcrail .num {
  font-family: var(--wc-mono);
  font-size: 12px;
  font-style: normal;
  color: var(--wc-accent);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  flex: 0 0 auto;
}
