/* The claims pages. 14 Nov 2026; the claims record added 3 Dec 2026.

   The page file for templates/claims_page.html (/claims/<paper>, the .claims rules)
   and for the three pages of the claims record (the .clm- rules, below them):
   claims_ledger_page.html (/claims), claims_conflicts_page.html (/claims/conflicts)
   and claim_record_page.html (/claims/record/<slug>), with the parts they share
   (templates/_claims_parts.html). All four are on the reading layout and are built
   from the shared type; this sheet sets the air between their parts, the two lists
   of a paper's page and the rows of the record. Colours, sizes and widths come from
   tokens.css. */

.claims {
  padding-bottom: var(--space-8);
}

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

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

/* A name and what the review wrote under it. */
.claims__said {
  max-width: var(--measure);
  margin-top: var(--space-4);
  border-top: var(--rule-hair);
}

.claims__said > div {
  padding-block: var(--space-3);
  border-bottom: var(--rule-hair);
}

.claims__said dt {
  font: var(--type-line);
  color: var(--apparatus);
}

.claims__said dd {
  margin: var(--space-1) 0 0;
}

.claims__list {
  max-width: var(--measure);
  margin-top: var(--space-4);
  padding-inline-start: var(--space-5);
  list-style: decimal;
}

.claims__list > li + li {
  margin-top: var(--space-3);
}

/* The works: a title in the authors' face, then how it is tied to the paper. */
.claims__works {
  max-width: var(--measure);
  margin-top: var(--space-4);
  border-top: var(--rule-hair);
}

.claims__works > li {
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-3);
  border-bottom: var(--rule-hair);
  overflow-wrap: anywhere;
}

.claims__works cite {
  font-style: normal;
}

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

/* ---- The claims record: /claims, /claims/conflicts, /claims/record/<slug> ----

   Three pages over one record. The reading layout keeps a block to the reading
   column; the head, the counts and every list here ask for the twelve columns
   (.wide) and hold their own sentences to a measure.

   Voices. A paper's own words (its title, its main claim in quotation marks) are
   in the authors' face. A claim in Pith's wording, and every sentence Pith says
   about the record, is in Pith's face. The apparatus face keeps the identifiers:
   a paper's number, a date, a DOI, a span of years. A line of counts is Pith
   speaking, so it is small and quiet in Pith's face (card.css records why).

   Rules. The ink rule is the section's own. Inside a section rows are parted by
   hairlines, and on a phone a paper's own words stand behind the short ink rule
   that marks them everywhere on the site. */

/* The way back. A link that stands by itself is a full touch target. */
.clm-back a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target);
}

/* A head under the way back gives up the air above it: the link has taken it. */
.clm-head--under .page-head {
  padding-top: var(--space-2);
}

/* The front page's head is closed by the search under it, not by its own air. */
.clm-head--find .page-head {
  padding-bottom: var(--space-5);
}

.clm-find {
  padding-bottom: var(--space-7);
}

/* One sentence in place of the record: it is being counted, or it holds nothing. */
.clm-state {
  max-width: 60ch;
  padding-bottom: var(--space-7);
  font: var(--type-lede);
  letter-spacing: var(--track-lede);
  color: var(--ink-2);
}

/* The counts stand side by side while their numbers fit. A row that wraps, not a
   grid of shares: a number is never narrower than its digits, so one too wide for
   its place takes the next row and never runs into its neighbour. */
.clm-counts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--gutter);
  padding-bottom: var(--space-7);
}

.clm-counts > .counter {
  flex: 1 1 10rem;
}

/* What a section holds, in a sentence under its heading. */
.clm-lead {
  max-width: var(--measure);
  margin-bottom: var(--space-5);
}

/* A quiet sentence under a list: what the lines in it are, when it was counted. */
.clm-note {
  max-width: var(--measure);
  margin-top: var(--space-4);
}

.clm-none {
  max-width: var(--measure);
  color: var(--ink-2);
}

/* Where to go from a list: a line of links, each a full target. */
.clm-links {
  margin-top: var(--space-3);
}

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

/* Pairs of papers. Hairlines part the pairs. On a phone the earlier paper stands
   over the later one, each paper's own words behind the short ink rule; what
   Pith's review of that paper found is under them, outside the rule. */
.clm-pairs {
  border-top: var(--rule-hair);
}

.clm-pairs > li {
  border-bottom: var(--rule-hair);
}

.clm-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--space-5);
  padding-block: var(--space-5);
}

.clm-pair__side {
  min-width: 0;
  overflow-wrap: anywhere;
}

.clm-pair__paper {
  padding-inline-start: var(--space-3);
  border-inline-start: var(--rule-inset);
}

.clm-pair__paper > * + * {
  margin-top: var(--space-2);
}

/* The title names the paper and is its side's one link, drawn as a card draws its
   own: ink at rest, the hand's colour and a line when pointed at. */
.clm-pair__title,
.clm-claim__title,
.clm-notice__title {
  font-weight: 600;
  text-wrap: pretty;
}

.clm-pair__title a,
.clm-claim__title a,
.clm-notice__title a,
.clm-paper__title a,
.clm-row__name a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.clm-pair__title a:hover,
.clm-claim__title a:hover,
.clm-notice__title a:hover,
.clm-paper__title a:hover,
.clm-row__name a:hover {
  color: var(--hand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* The paper's own main claim, quoted. It is what the pair is about, so it is the
   largest thing in its side. */
.clm-pair__claim {
  max-width: var(--measure);
  font: var(--type-lede-paper);
}

.clm-pair .clm-review {
  margin-top: var(--space-3);
}

/* The canonical claims, by field. A field's name is a label over its rows; a row
   is the claim's name and what it asks, what the record holds about it, and the
   years its papers span. */
.clm-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  padding-bottom: var(--space-4);
}

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

.clm-group + .clm-group {
  margin-top: var(--space-6);
}

.clm-group > .label {
  padding-bottom: var(--space-3);
}

.clm-rows {
  border-bottom: var(--rule-hair);
}

.clm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2) var(--space-7);
  padding-block: var(--space-4);
  border-top: var(--rule-hair);
}

.clm-row__name {
  font: var(--type-lede);
  font-weight: 700;
  letter-spacing: var(--track-lede);
}

.clm-row__blurb {
  margin-top: var(--space-1);
  max-width: var(--measure);
  color: var(--ink-2);
}

/* Notices. The kind and the day stand before the work the notice names. */
.clm-notices {
  border-top: var(--rule-hair);
}

.clm-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1) var(--gutter);
  padding-block: var(--space-4);
  border-bottom: var(--rule-hair);
}

.clm-notice__when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-3);
}

.clm-notice__kind {
  font: var(--type-small);
  font-weight: 700;
}

.clm-notice__work {
  min-width: 0;
}

.clm-notice__title {
  max-width: var(--measure);
}

/* A DOI is one long word: it breaks where it must. */
.clm-notice__title,
.clm-notice__line {
  overflow-wrap: anywhere;
}

.clm-notice__line {
  margin-top: var(--space-1);
}

/* How the record is made: a name and what it means, parted by hairlines. */
.clm-how__part {
  padding-block: var(--space-3);
  border-top: var(--rule-hair);
}

.clm-how dt {
  font-weight: 700;
}

.clm-how dd {
  margin: var(--space-1) 0 0;
  max-width: var(--measure);
}

/* A claim in Pith's words beside the paper it was read from: a found claim, or a
   claim formalized in Lean. */
.clm-found {
  padding-top: var(--space-5);
}

.clm-found .clm-back {
  margin-top: var(--space-4);
}

.clm-claims {
  border-top: var(--rule-hair);
}

.clm-claim {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4) var(--space-7);
  padding-block: var(--space-5);
  border-bottom: var(--rule-hair);
}

.clm-claim__said,
.clm-claim__source {
  min-width: 0;
}

.clm-claim__said > * + *,
.clm-claim__source > * + * {
  margin-top: var(--space-2);
}

.clm-claim__text {
  max-width: var(--measure);
}

/* "Formalized in Lean" and the declaration's name. The name is one long word: it
   breaks where it must. */
.clm-lean {
  overflow-wrap: anywhere;
}

/* The test that would settle a claim: its name, small and heavy, over the test. */
.clm-claim__said > .clm-settles,
.clm-said__body > .clm-settles {
  margin-top: var(--space-3);
}

.clm-settles {
  max-width: var(--measure);
}

.clm-settles__name {
  font-weight: 700;
}

/* One record, year by year. A hairline opens each year; its name and what was
   counted for it stand over its papers on a phone and in the margin beside them
   from 960px. A paper is the paper card; under it, under Pith's side of the card,
   are the paper's claims on this record and the test for its core claim. */
.clm-year {
  border-top: var(--rule-hair);
}

.clm-year + .clm-year {
  margin-top: var(--space-6);
}

.clm-year__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-5);
  padding-block: var(--space-4) var(--space-3);
}

.clm-year__name {
  font: var(--type-verdict);
  letter-spacing: var(--track-verdict);
  font-variant-numeric: tabular-nums;
}

.clm-year__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
}

.clm-year__nothing {
  padding-bottom: var(--space-4);
}

.clm-papers > li:last-child > .plate.plate--one.paper-card {
  border-bottom: 0;
}

/* A paper whose card could not be drawn: its title in the authors' face and its
   number, with a hairline above it as a card has. */
.clm-paper {
  padding-block: var(--space-4);
  border-top: var(--rule-hair);
}

.clm-paper__title {
  max-width: var(--reading);
  font: var(--type-lede-paper);
  font-weight: 600;
}

.clm-paper__ident {
  margin-top: var(--space-2);
}

.clm-said {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: var(--space-5);
}

.clm-said__body > * + * {
  margin-top: var(--space-2);
}

.clm-said__list > li + li {
  margin-top: var(--space-3);
}

.clm-said__list p,
.clm-rest {
  max-width: var(--measure);
}

.clm-rest {
  margin-top: var(--space-5);
}

.clm-rest a {
  font-weight: 600;
}

/* What the record does not hold yet, said once. */
.clm-absent > li {
  max-width: var(--measure);
}

.clm-absent > li + li {
  margin-top: var(--space-2);
}

.clm-beside__rows > li {
  padding-block: var(--space-2);
  max-width: var(--measure);
}

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

/* The pairs page: the sentence that says how many pairs there are, over them. */
.clm-listed {
  padding-bottom: var(--space-7);
}

.clm-summary {
  max-width: 60ch;
  padding-block: var(--space-5);
  font: var(--type-lede);
  letter-spacing: var(--track-lede);
}

@media (min-width: 720px) {
  /* The kind over its day, in a column before the work. */
  .clm-notice {
    grid-template-columns: 10.5rem minmax(0, 1fr);
  }

  .clm-notice__when {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

@media (min-width: 960px) {
  /* Two papers side by side: the plate's two cells, a hairline between them. */
  .clm-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: var(--space-2);
  }

  .clm-pair__side {
    padding-inline-end: var(--gutter);
  }

  .clm-pair__side + .clm-pair__side {
    padding-inline: var(--gutter) 0;
    border-inline-start: var(--rule-hair);
  }

  .clm-pair__paper {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  /* A canonical claim reads across: its name and what it asks, what the record
     holds, the years. The three stand on one baseline. */
  .clm-row {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 2fr);
    align-items: baseline;
  }

  .clm-row__span {
    text-align: end;
  }

  .clm-how__part {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: var(--gutter);
  }

  .clm-how dd {
    margin-top: 0;
  }

  /* The claim on the left in Pith's words, its paper on the right. */
  .clm-claim {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  /* The year in the margin, two columns of twelve; its papers in the other ten.
     The year's hairline is the first paper's too. */
  .clm-year {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 10fr);
    column-gap: var(--gutter);
  }

  .clm-year__head {
    display: block;
    padding-bottom: var(--space-4);
  }

  .clm-year__facts {
    display: block;
    margin-top: var(--space-2);
  }

  .clm-year__nothing {
    padding-top: var(--space-4);
  }

  .clm-papers > li:first-child > .plate.plate--one.paper-card,
  .clm-papers > li:first-child > .clm-paper {
    border-top: 0;
  }

  /* The card's own split, five to seven, so a paper's claims stand under the
     column the review stands in. */
  .clm-said {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--space-7);
  }

  .clm-said__body {
    grid-column: 2;
  }
}

/* Where a browser can share a grid's rows with a child, the two papers of a pair
   keep the same four rows: number, title, claim, review. The two claims then begin
   on one line however long either title runs. Elsewhere each side stacks its own. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 960px) {
    .clm-pair {
      grid-template-rows: repeat(4, auto);
    }

    .clm-pair__side {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: subgrid;
      grid-row: 1 / span 4;
      row-gap: var(--space-2);
    }

    .clm-pair__paper {
      display: contents;
    }

    .clm-pair__paper > * + *,
    .clm-pair .clm-review {
      margin-top: 0;
    }

    .clm-pair__line {
      grid-row: 1;
    }

    .clm-pair__title {
      grid-row: 2;
    }

    .clm-pair__claim {
      grid-row: 3;
    }

    .clm-pair .clm-review {
      grid-row: 4;
    }
  }
}
