/* Pith field pages and the archive. 14 Nov 2026.

   The page file for templates/field_page.html and templates/archive_page.html. Each
   list is the paper card (components/card.css) and the parts are shared (the page
   head, the field, the button, the tabs); this file sets the air between them, the
   rows of links to a field's parts, the form that narrows the archive, the short
   list of papers a field relies on, and the pager. Colours, sizes and widths come
   from tokens.css. */

/* A list page's head sits tighter over what follows than a section does: the first
   paper should be on the first screen. */
.page-index .page-head {
  padding-block: var(--space-6) var(--space-4);
}

/* The parts of a field: a fold of rows of links that wrap. */
.list-parts {
  border-bottom: var(--rule-hair);
}

.list-parts__of {
  padding-bottom: var(--space-3);
}

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

.list-parts__row + .list-parts__row {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: var(--rule-hair);
}

.list-parts__row a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
  color: var(--ink);
}

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

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

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

.list-feed__all,
.list-feed__more {
  margin-top: var(--space-5);
}

.list-feed__all a,
.list-narrow__go a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}

/* What narrows the archive: a fold. A select keeps the browser's own arrow. */
.list-narrow {
  border-bottom: var(--rule-hair);
}

.list-narrow__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  max-width: var(--reading);
}

.list-narrow select.field__input {
  appearance: auto;
}

.list-narrow__check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  font: var(--type-small);
}

.list-narrow__go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

/* The papers a field relies on most: a title in the authors' face and its counts. */
.list-relied__rows {
  margin-top: var(--space-4);
}

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

.list-relied__rows a {
  color: var(--ink);
}

.list-relied__rows .apparatus {
  display: block;
}

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

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

@media (min-width: 720px) {
  .list-narrow__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--gutter);
  }

  .list-narrow__check,
  .list-narrow__go {
    grid-column: 1 / -1;
  }
}
