/* Pith citation pages. 14 Nov 2026.

   The page file for templates/cited_work_page.html and templates/citations_page.html.
   The lists are the paper card (components/card.css) and the parts are shared (the
   page head, the field, the fold); this file sets the cited work's own head, the rows
   of links that narrow the list, the line under a row that says how it cites the
   work, the short lists beside it and the pager. Colours, sizes and widths come from
   tokens.css. */

.cited-head {
  padding-block: var(--space-6) var(--space-4);
}

.cited-list {
  padding-bottom: var(--space-7);
}

.cited-head > * + * {
  margin-top: var(--space-3);
}

.cited-head__by {
  font: var(--type-small);
  color: var(--ink-2);
}

.cited-head__narrative {
  font: var(--type-lede);
}

.cited-head__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
}

.cited-head > p:first-child a,
.cited-head__links a,
.cited-narrow__clear a,
.cited-list__as a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}

.cited-how > * + * {
  margin-top: var(--space-3);
}

.cited-how__sub {
  margin-top: var(--space-5);
}

.cited-how__claims > li {
  max-width: var(--measure);
  padding-block: var(--space-2);
  border-top: var(--rule-hair);
}

/* What narrows the list: rows of links that wrap, each with its count. */
.cited-narrow {
  border-bottom: var(--rule-hair);
}

.cited-narrow__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  margin-bottom: var(--space-3);
}

.cited-narrow__row > li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
}

.cited-narrow__row a {
  color: var(--ink);
}

.cited-narrow__row a[aria-current] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

/* The list: the sentence that says how it is ordered stands above it. */
.cited-list__order {
  margin-block: var(--space-4) var(--space-5);
  max-width: var(--measure);
}

/* How a row cites the work: a foot line under the row it belongs to. */
.cited-list__as {
  padding-block: var(--space-2) var(--space-3);
  border-top: var(--rule-hair);
}

/* A row with no review beside it has the paper's cell alone. */
.cited-plain .plate__paper {
  margin-bottom: var(--space-4);
}

.cited-beside__rows > li {
  padding-block: var(--space-3);
  border-top: var(--rule-hair);
}

.cited-beside__rows a {
  color: var(--ink);
}

.cited-beside__rows .apparatus {
  display: block;
}

.cited-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.cited-pager a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  font-weight: 600;
}

.cited-index__counted {
  padding-bottom: var(--space-4);
}

.cited-index__find {
  max-width: var(--reading);
  padding-bottom: var(--space-5);
}

.page-index .page-head {
  padding-block: var(--space-6) var(--space-3);
}

@media (min-width: 960px) {
  .cited-plain .plate__paper {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
}
