/* The results page's overview above its table, two stacks of KPress's own disclosure:
   the last seven days' registrations, one a day (overview_sections.recent_added), then
   the weekly rollup before them, one a week (recent_rollup). Two blocks of a stack share
   one rule. The Changelog page's log is the first stack again, over the whole record,
   with its new record packings, dated rows and site changes
   (overview_sections.changelog_rollup); it drew on the home page until 26 October 2026. */
.kpress .site-rollup {
  margin-block: 1rem var(--site-table-space);
}

.kpress .site-rollup details {
  margin: 0;
}

.kpress .site-rollup details + details {
  border-block-start: 0;
}

.kpress .site-rollup ul {
  font-size: var(--site-font-size-note);
  list-style: none;
  margin: 0;
}

/* A line that wraps keeps its later lines under the first one's ids, indented past
   the name, so each finder still starts a line of their own. */
.kpress .site-rollup li {
  margin-block: 0.35rem;
  padding-inline-start: 1.5em;
  text-indent: -1.5em;
}

/* Each line opens with a finder's name in medium weight, which is mark enough: the
   prose list's drawn square would sit in the hanging indent's margin. */
.kpress .site-rollup li::before {
  content: none;
}

/* A tally is a count, not a toggle's label. KPress sets a summary in the shared
   section-label treatment -- real uppercase, tracked out, at the canonical label size --
   and a count carries none of it: `17 results` reads at the note size in its own case,
   with the number in the sans bold weight, and reads the same wherever a tally appears
   (the owner, 26 October 2026). The same four declarations set a case record's own
   disclosures apart from their labels (`site.css`, `.site-case details > summary`).
   A summary that wraps breaks before its count, never inside it. */
.kpress .site-rollup-count {
  font-size: var(--site-font-size-note);
  font-variant-caps: normal;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
}

.kpress .site-rollup-count b {
  font-weight: var(--site-font-weight-sans-bold);
}

/* A day's toggle sits on the first line of its summary, not centred against a summary
   that wrapped (the owner, 26 October 2026). KPress centres the glyph in the summary's
   flex box, which reads right on the one-line summaries it was drawn for and leaves the
   glyph stranded in the middle of a tallied day on a narrow screen. The offset centres
   it on the first line: KPress's own line box for a summary, less its own glyph, halved.
   Both rules stay on the rollup, because that geometry is what holds here and is what
   was measured here: a result's or a case's disclosure sets its own line height and
   draws its glyph inline rather than as a flex item (`site-result.css`, and
   `.site-case details` in `site.css`), and the same offset would push those down their
   line instead of centring them. */
.kpress .site-rollup summary {
  align-items: flex-start;
}

.kpress .site-rollup summary::before {
  margin-block-start: calc((var(--kpress-caps-heading-line-height, 1.2) * 1em - 0.85em) / 2);
}

.kpress .site-rollup .site-rollup-who {
  color: var(--kpress-doc-text);
  font-weight: var(--site-font-weight-sans-medium);
}

/* An id never breaks at its hyphen, and a rung after it stays with it. */
.kpress .site-rollup-ids a {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* A superseded id is muted and underlined, so it still reads as the link it is. */
.kpress .site-rollup-ids a.site-rollup-superseded {
  color: var(--site-support-color);
  text-decoration-line: underline;
}

.kpress .site-rollup-s {
  color: var(--site-significance);
  font-size: 0.8em;
  font-weight: var(--site-font-weight-sans-medium);
  margin-inline-start: 0.15em;
  white-space: nowrap;
}

/* A day's result: its id and headline, then a quiet line of its cases, rungs and credit
   set under the headline's words, past the id's hanging indent. */
.kpress .site-added li > a:first-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kpress .site-added li small {
  color: var(--site-support-color);
  display: block;
  font-family: var(--kpress-font-sans);
  font-size: inherit;
  text-indent: 0;
}

/* An S4 or S5 score in the significance ink, as the weekly lines set a rung. */
.kpress .site-added li small b {
  color: var(--site-significance);
  font-weight: var(--site-font-weight-sans-medium);
}

/* A superseded entry's text is muted; its id and credit stay link-coloured, and its
   quiet line says "superseded". */
.kpress .site-added li.site-rollup-superseded {
  color: var(--site-support-color);
}

/* The day's link to its own rows in the table, closing the day's block a line's space
   under its last result: the list gives up the padding KPress sets under a disclosure's
   body, which the link takes instead. */
.kpress .site-added details > ul {
  padding-block-end: 0;
}

/* A day with no results, on the home page, has no link to close it: its list keeps the
   space the link would take. */
.kpress .site-added details > ul:last-child {
  padding-block-end: 0.75rem;
}

.kpress .site-added details > p {
  font-size: var(--site-font-size-note);
  margin-block: 0;
  padding-block: 0.35rem 0.75rem;
}

/* Recent Results remains one table. Before enhancement all rows are available;
   the existing head marker reserves its collapsed geometry before first paint. */
.kpress [data-recent-results] [data-recent-toggle-row] {
  display: none;
}
:root[data-site-nav-enhanced] .kpress [data-recent-results] [data-recent-toggle-row],
.kpress [data-recent-results][data-recent-ready] [data-recent-toggle-row] {
  display: table-row;
}
[data-recent-results][data-recent-ready]:not([data-recent-expanded="true"]) > [data-recent-older],
.kpress [data-recent-results] [data-recent-older][hidden],
.kpress [data-recent-results][data-recent-ready] [data-recent-toggle-row][hidden],
:root[data-site-nav-enhanced]
  [data-recent-results]:not([data-recent-expanded="true"])
  > [data-recent-older] {
  display: none;
}

.kpress [data-recent-results] [data-recent-toggle-row] > td {
  padding-block: 1rem;
  text-align: center;
}
@media (width < 48rem) {
  :root[data-site-nav-enhanced] .kpress [data-recent-results] [data-recent-toggle-row],
  .kpress [data-recent-results][data-recent-ready] [data-recent-toggle-row] {
    display: block;
  }
  .kpress [data-recent-results] [data-recent-toggle-row] > td {
    display: block;
  }
  .kpress [data-recent-results][data-recent-ready] [data-recent-toggle-row][hidden] {
    display: none;
  }
}
