/* The record's own shape, then the record.
 *
 * 103 acts in one flat column is a wall, not a proof: the numbers above the list say what the page
 * is, the filter says where to look, and the labelled facts under each claim stop five monospace
 * values reading as noise. Nothing here invents a figure — every one is counted from PROVEN. */
.proven-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	margin: 32px 0 0;
	padding: 0;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
}
.proven-stats .fact {
	padding: 16px 18px;
	background: var(--paper);
}
.proven-stats .fact {
	min-width: 0;
}
.proven-stats dt {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	overflow-wrap: anywhere;
}
.proven-stats dd {
	margin: 6px 0 0;
	font-size: 26px;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}
/* The span is a date range, so it is text rather than a figure and must not shout. */
.proven-stats .fact:last-child dd {
	font-size: 15px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	padding-top: 6px;
}

.proven-filter {
	display: grid;
	gap: 10px;
	margin: 28px 0 0;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--paper-raised, #fff);
}
.proven-filter-label {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
#proven-search {
	min-height: 44px;
	width: 100%;
	padding: 10px 12px;
	font: inherit;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 8px;
}
#proven-search:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.proven-sort {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.proven-sort button {
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	font: inherit;
	font-size: 13px;
	color: var(--ink);
	cursor: pointer;
}
.proven-sort button:hover {
	border-color: var(--accent);
}
.proven-sort button[aria-pressed="true"] {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--button-fg, #fff);
}
.proven-sort button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.proven-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.chip {
	min-height: 44px;
	padding: 8px 14px;
	font: inherit;
	font-size: 14px;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
}
.chip:hover {
	border-color: var(--accent);
}
.chip[aria-pressed="true"] {
	color: var(--button-fg, #fff);
	background: var(--accent);
	border-color: var(--accent);
}
.chip:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.proven-shown {
	margin: 0;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}

/* One act. The digest, the peers and the capture time are labelled facts, not a sentence. */
.act-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 10px 20px;
	margin: 14px 0 0;
}
.act-meta .fact {
	margin: 0;
}
.act-meta dt {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.act-meta dd {
	margin: 3px 0 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	color: var(--ink);
	overflow-wrap: anywhere;
}
/* The limit is the differentiator, so it is not another grey paragraph. */
.act-limit {
	margin: 10px 0 0;
	padding: 8px 0 8px 12px;
	border-left: 3px solid var(--accent);
	font-size: 14px;
	color: var(--ink);
	background: linear-gradient(90deg, rgb(34 97 203 / 6%), transparent 60%);
}
.act-target {
	scroll-margin-top: 24px;
	box-shadow: inset 3px 0 0 var(--accent);
	padding-left: 12px;
}
.act-ev {
	text-decoration: none;
}
.act-ev:hover,
.act-ev:focus-visible {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.proven-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.proven-filter {
		padding: 14px;
	}
}
@media (prefers-reduced-motion: no-preference) {
	.act-target {
		animation: act-arrive 900ms ease-out;
	}
}
@keyframes act-arrive {
	from { background: rgb(34 97 203 / 10%); }
	to { background: transparent; }
}

/* The record. Each act is a card rather than a row, because the claim, its limit and its
 * provenance are three different things a reader compares across acts. The order inside the
 * card is deliberate: claim → what it does not prove → where it came from → how to re-run it. */
.proven {
	padding-bottom: 80px;
}
.proven h1 {
	margin-top: 10px;
}
.proven-intro {
	max-width: 72ch;
	margin-top: 20px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--muted);
}
.proven-note {
	max-width: 90ch;
	color: var(--muted);
}
#proven-count {
	margin-top: 24px;
	font-size: 14px;
	color: var(--ink);
}
.proven-legend {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
}
.proven-legend li {
	background: var(--paper);
	padding: 16px 18px;
}
.proven-legend span {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--accent);
}
.proven-legend strong {
	display: block;
	margin-top: 4px;
	font-size: 16px;
	color: var(--ink);
}
.proven-legend p {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--muted);
}
.acts {
	display: grid;
	gap: 14px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}
.act {
	padding: 22px 24px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 10px;
}
.act-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px 14px;
}
.act-head h2 {
	font-size: 20px;
	letter-spacing: -0.02em;
}
.act-ev {
	display: inline-block;
	padding: 3px 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	letter-spacing: 0.02em;
	color: var(--accent);
	background: var(--paper);
}
.act-proves {
	margin: 12px 0 0;
	max-width: 95ch;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
}
.act-command {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin: 12px 0 0;
}
.act-command span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.act-command code {
	padding: 3px 8px;
	border-radius: 5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	color: var(--ink);
	background: #e9f1fd;
	overflow-wrap: anywhere;
}
.act-copy {
	min-height: 44px;
	padding: 4px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	color: var(--accent);
	cursor: pointer;
}
.act-copy:hover {
	border-color: var(--accent);
}
.act-copy:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.act-copy[data-copied="true"] {
	border-color: #9ac9a8;
	background: #e8f5ec;
	color: #1d6b34;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.act {
		transition:
			border-color 0.18s ease,
			box-shadow 0.18s ease;
	}
	.act:has(.act-ev:hover) {
		border-color: #a9c2e4;
		box-shadow: 0 10px 24px #102a5010;
	}
	.act-command code {
		transition: background-color 0.18s ease;
	}
	.act:has(.act-ev:hover) .act-command code {
		background: #dfeafc;
	}
}
@media (max-width: 640px) {
	.proven-legend {
		grid-template-columns: 1fr;
	}
	.act {
		padding: 18px;
	}
}
