/* /models/ and /model/<slug>/ — the model catalog. Builds on styles.css tokens. */

.mc-main {
	padding-block: clamp(40px, 7vw, 84px) clamp(64px, 9vw, 108px);
}
.mc-main a {
	text-underline-offset: 3px;
}

.mc-section {
	margin-top: clamp(56px, 8vw, 104px);
}

/* ───────── A section on paper ─────────
   The page inverts for a section, as /about/ does (styles.css .section-creed): light
   ground, dark ink, edge to edge. It re-points the tokens, so everything inside (tables,
   charts, tiles, tooltips) follows without its own light styles. */
.mc-paper {
	--bg: var(--paper);
	--bg-subtle: var(--paper-warm);
	--surface: oklch(0.975 0.012 85);
	--surface-raised: oklch(0.99 0.008 85);
	--text-strong: var(--paper-ink);
	--text: var(--paper-ink);
	--text-muted: var(--paper-ink-muted);
	--text-dim: var(--paper-ink-dim);
	--border: var(--paper-border);
	--border-strong: var(--paper-border-strong);
	--amber: var(--amber-ink);
	--amber-hover: var(--paper-ink);
	--amber-border: color-mix(in oklch, var(--amber-ink) 45%, transparent);
	--shadow-card: 0 12px 30px -12px rgb(60 45 20 / 0.35), 0 0 0 1px var(--paper-border);
	padding-block: clamp(56px, 8vw, 104px);
	color: var(--paper-ink);
	background: var(--paper);
	/* The ground runs to both edges of the window while the content keeps the column. */
	box-shadow: 0 0 0 100vmax var(--paper);
	clip-path: inset(0 -100vmax);
}
.mc-paper h2,
.mc-paper h3 {
	color: var(--paper-ink);
}
.mc-paper + .mc-section:not(.mc-paper) {
	margin-top: clamp(56px, 8vw, 104px);
}
/* Maker marks are drawn white on the dark page, black on paper. */
.mc-paper .mc-maker img,
.mc-paper .mc-model-mark {
	filter: brightness(0);
}
.mc-paper .mc-rank-track.is-continuous {
	background-image: linear-gradient(var(--border-strong), var(--border-strong));
}
.mc-h2 {
	font-size: clamp(24px, 3vw, 34px);
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 0 14px;
}
.mc-h3 {
	font-size: 17px;
	letter-spacing: -0.015em;
	margin: 0;
	color: var(--text-strong);
}
.mc-note {
	max-width: 68ch;
	margin: 0 0 24px;
	color: var(--text-muted);
}
.mc-note a {
	text-decoration: underline;
	text-decoration-color: var(--amber-border);
}

/* A maker's mark and name. The marks are one-color SVGs, drawn white. */
.mc-maker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text-muted);
	white-space: nowrap;
}
.mc-maker img {
	filter: brightness(0) invert(1);
	opacity: 0.75;
}

.mc-tag {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 7px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
	vertical-align: 2px;
	white-space: nowrap;
}
/* A tag ahead of a right-aligned value, so the values still line up. */
.mc-tag-before {
	margin: 0 10px 0 0;
}
.mc-none {
	color: var(--text-dim);
}
.mc-own {
	color: var(--text-muted);
	font-size: 13.5px;
}

/* ───────── Cards: the newest models, a maker's other models ───────── */

.mc-cards {
	display: grid;
	gap: clamp(14px, 2vw, 24px);
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
}
.mc-cards {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.mc-card {
	display: grid;
	height: 100%;
	border: 1px solid var(--border);
	background: var(--surface);
	color: inherit;
	transition:
		border-color 0.2s var(--ease),
		translate 0.2s var(--ease);
}
.mc-card {
	grid-template-columns: 116px minmax(0, 1fr);
}
.mc-card:hover {
	border-color: var(--amber-border);
	translate: 0 -2px;
	color: inherit;
}
.mc-card > img {
	width: 100%;
	height: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	background: var(--bg-subtle);
}
.mc-card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
}
.mc-card-body .mc-maker {
	font-size: 13px;
}
.mc-card-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 18px;
	letter-spacing: -0.02em;
	color: var(--text-strong);
}
.mc-card-tagline {
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--text-muted);
}
.mc-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: auto;
	padding-top: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.03em;
	color: var(--text-dim);
}

/* ───────── Recently added: a strip of large pictures that drifts and scrolls ───────── */

.mc-carousel {
	display: flex;
	margin-top: 28px;
	overflow-x: auto;
	scrollbar-width: none;
	/* Out of the page's column to both edges of the window (body clips the scrollbar's width). */
	width: 100vw;
	margin-inline: calc(50% - 50vw);
}
.mc-carousel::-webkit-scrollbar {
	display: none;
}
.mc-carousel:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 4px;
}
.mc-carousel-set {
	display: flex;
	flex: none;
	gap: clamp(16px, 2vw, 28px);
	list-style: none;
	margin: 0;
	padding: 0 clamp(8px, 1vw, 14px);
}
.mc-carousel-set li {
	flex: none;
	width: clamp(210px, 22vw, 290px);
}
.mc-slide {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: inherit;
}
.mc-slide > img {
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	margin-bottom: 12px;
	background: var(--bg-subtle);
	transition: opacity 0.2s var(--ease);
}
.mc-slide:hover > img {
	opacity: 0.88;
}
.mc-slide:hover .mc-card-name {
	color: var(--amber);
}
.mc-slide .mc-maker {
	font-size: 13px;
}
.mc-slide .mc-card-meta {
	padding-top: 6px;
}

/* ───────── The table ───────── */

.mc-table-wrap {
	overflow-x: auto;
	border-top: 1px solid var(--border-strong);
	scrollbar-width: thin;
	scrollbar-color: var(--border-strong) transparent;
	padding-bottom: 6px;
}
.mc-table-wrap::-webkit-scrollbar {
	height: 8px;
}
.mc-table-wrap::-webkit-scrollbar-thumb {
	background: var(--border-strong);
	border-radius: 4px;
}
.mc-table-wrap::-webkit-scrollbar-thumb:hover {
	background: var(--text-dim);
}
.mc-table-wrap::-webkit-scrollbar-track {
	background: transparent;
}
.mc-table {
	width: 100%;
	min-width: 940px;
	border-collapse: collapse;
	font-size: 15px;
}
.mc-table th,
.mc-table td {
	padding: 14px 16px 14px 0;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
	font-weight: 400;
}
.mc-table thead th {
	padding-block: 10px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	white-space: nowrap;
}
/* The head's first row names a pair of columns; the second names each one. */
.mc-table thead .mc-group {
	padding-bottom: 0;
	border-bottom: 0;
	text-align: center;
	color: var(--text-dim);
}
.mc-table thead tr:first-child th[rowspan] {
	vertical-align: bottom;
}
.mc-table thead tr + tr th {
	padding-top: 4px;
}
/* A score's cell is shaded by how near it is to the best in its column: one hue, stronger
   toward the top. The number keeps its own color. */
.mc-table td.mc-heat {
	padding-inline: 12px;
	background: color-mix(in oklch, var(--amber) calc(var(--heat, 0) * 0.3%), transparent);
	box-shadow: inset 0 0 0 1px var(--bg);
}
.mc-table thead button {
	all: unset;
	cursor: pointer;
}
.mc-table thead button:hover {
	color: var(--text-strong);
}
.mc-table thead button:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
}
.mc-table thead button::after {
	content: '';
	display: inline-block;
	width: 0.9em;
	margin-left: 4px;
	color: var(--amber);
}
.mc-table th[aria-sort='ascending'] button::after {
	content: '↑';
}
.mc-table th[aria-sort='descending'] button::after {
	content: '↓';
}
.mc-table tbody th a {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: -0.015em;
	color: var(--text-strong);
}
.mc-table tbody th a:hover {
	color: var(--amber);
}
.mc-table tbody tr {
	transition: background 0.15s var(--ease);
}
.mc-table[data-sortable] tbody tr:hover {
	background: var(--bg-subtle);
}
/* The model cell: the maker's mark on the left, the name and what it is for beside it. */
.mc-model-cell {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	column-gap: 14px;
	align-items: start;
	min-width: 280px;
}
.mc-model-cell > * {
	grid-column: 2;
}
.mc-model-cell > a + .mc-tag {
	justify-self: start;
	margin: 4px 0 0;
}
.mc-model-mark {
	grid-column: 1;
	grid-row: 1 / span 3;
	margin-top: 2px;
	filter: brightness(0) invert(1);
	opacity: 0.8;
}
.mc-row-tagline {
	display: block;
	margin-top: 2px;
	font-size: 13.5px;
	color: var(--text-muted);
}
.mc-table .mc-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.mc-table .mc-num:last-child {
	padding-right: 0;
}
.mc-price-table {
	min-width: 560px;
}
.mc-price-table tbody th {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--text-strong);
}

/* ───────── One prompt, every model ───────── */

.mc-prompt {
	max-width: 68ch;
	margin: 0 0 28px;
	padding: 2px 0 2px 18px;
	border-left: 2px solid var(--amber-border);
	font-size: 15px;
	color: var(--text);
}
.mc-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr));
	gap: clamp(10px, 1.4vw, 18px);
	list-style: none;
	padding: 0;
	margin: 0;
}
.mc-gallery a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 10px;
	color: inherit;
	font-size: 14px;
}
.mc-gallery img {
	grid-column: 1 / -1;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--bg-subtle);
	transition: opacity 0.2s var(--ease);
}
.mc-gallery a:hover img {
	opacity: 0.86;
}
.mc-gallery-name {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--text-strong);
}
.mc-gallery a:hover .mc-gallery-name {
	color: var(--amber);
}
.mc-gallery-price {
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text-muted);
}

/* ───────── A model's own page ───────── */

.mc-model-hero {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: start;
}
.mc-model-hero:not(:has(.mc-model-picture)) {
	grid-template-columns: minmax(0, 1fr);
}
.mc-back {
	display: inline-block;
	margin-bottom: 28px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.04em;
	color: var(--text-muted);
}
.mc-back::before {
	content: '← ';
}
.mc-model-maker {
	margin: 0 0 10px;
	font-size: 16px;
}
.mc-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin: 36px 0 0;
	border-top: 1px solid var(--border-strong);
}
.mc-stats div {
	padding: 16px 16px 16px 0;
	border-bottom: 1px solid var(--border);
}
.mc-stats dt {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.mc-stats dd {
	margin: 6px 0 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 19px;
	letter-spacing: -0.02em;
	color: var(--text-strong);
}
.mc-stats dd span {
	font-weight: 400;
	font-size: 14px;
	color: var(--text-muted);
}
/* A model's own stats: each value on one line, the price's unit under it. */
.mc-model-stats {
	display: flex;
	flex-wrap: wrap;
}
/* A cell is as wide as its label or value needs, so neither wraps: "Generate, edit" and
   "In DepthField since" each stay on one line. */
.mc-model-stats div {
	flex: 1 1 auto;
	padding-right: 28px;
}
.mc-model-stats dt {
	white-space: nowrap;
}
.mc-model-stats dd {
	white-space: nowrap;
}
.mc-model-stats dd span {
	display: block;
	margin-top: 2px;
}
.mc-model-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin: 32px 0 0;
}
/* Out to the maker's own page for the model. */
.mc-maker-page {
	font-size: 15px;
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--border-strong);
	text-underline-offset: 4px;
}
.mc-maker-page::after {
	content: ' ↗';
	color: var(--text-muted);
}
.mc-maker-page:hover {
	color: var(--amber);
}
.mc-model-picture {
	margin: 0;
}
.mc-model-picture img {
	width: 100%;
	height: auto;
}
.mc-model-picture figcaption,
.mc-samples figcaption {
	margin-top: 10px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--text-muted);
}
.mc-samples {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
}
.mc-samples figure {
	margin: 0;
}
.mc-samples img {
	width: 100%;
	height: auto;
	background: var(--bg-subtle);
}
.mc-sample-mode {
	display: block;
	margin-bottom: 4px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--amber);
}

@media (max-width: 960px) {
	.mc-model-hero {
		grid-template-columns: minmax(0, 1fr);
	}
	.mc-model-picture {
		max-width: 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mc-card {
		transition: none;
	}
	.mc-card:hover {
		translate: none;
	}
}

/* ───────── The tests ───────── */

.mc-tests,
.mc-tested {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr));
	gap: clamp(12px, 1.8vw, 24px);
	list-style: none;
	padding: 0;
	margin: 0;
}
.mc-test,
.mc-tested a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: inherit;
}
.mc-test img,
.mc-tested img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--bg-subtle);
	margin-bottom: 8px;
	transition: opacity 0.2s var(--ease);
}
.mc-test:hover img,
.mc-tested a:hover img {
	opacity: 0.86;
}
.mc-test:hover .mc-card-name,
.mc-tested a:hover .mc-card-name {
	color: var(--amber);
}
.mc-test .mc-card-meta,
.mc-tested .mc-card-meta {
	padding-top: 0;
}
/* ───────── A model's standing: its place in each kind of benchmark, its medals ───────── */

.mc-ranks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: clamp(16px, 2.4vw, 32px);
	margin-top: 24px;
}
.mc-rank {
	padding: clamp(18px, 2.4vw, 28px);
	border: 1px solid var(--border-strong);
	background: var(--surface);
}
.mc-rank p {
	margin: 0;
}
.mc-rank-kind {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.mc-rank-place {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 10px !important;
	color: var(--text-muted);
}
.mc-rank-place strong {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(40px, 5vw, 60px);
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--text-strong);
}
.mc-rank-place .mc-medal {
	--medal: 48px;
}
/* One tick a model, best on the left; this model's is the tall bright one. */
.mc-rank-track {
	display: flex;
	align-items: end;
	gap: 3px;
	height: 22px;
	margin-top: 20px;
}
.mc-rank-track span {
	flex: 1;
	height: 8px;
	background: var(--border-strong);
}
.mc-rank-track .is-this {
	height: 22px;
	background: var(--amber);
}
.mc-rank-score {
	margin-top: 12px !important;
	font-size: 13.5px;
	color: var(--text-muted);
}

/* Arena ranks dozens of models: one bar, a marker where this model sits. */
.mc-rank-track.is-continuous {
	position: relative;
	display: block;
	background: linear-gradient(var(--border-strong), var(--border-strong)) left bottom / 100% 8px
		no-repeat;
}
.mc-rank-track.is-continuous span {
	position: absolute;
	left: clamp(0px, calc(var(--at) - 4px), calc(100% - 8px));
	bottom: 0;
	width: 8px;
	height: 22px;
	background: var(--amber);
}

/* Arena rating against price. */
.mc-charts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: clamp(20px, 3vw, 40px);
}
.mc-charts figure {
	margin: 0;
}
.mc-charts figcaption {
	margin-bottom: 8px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.mc-chart {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.mc-chart-grid {
	stroke: var(--border);
	stroke-width: 1;
}
.mc-chart-tick,
.mc-chart-axis {
	font-family: var(--font-mono);
	font-size: 11px;
	fill: var(--text-muted);
}
.mc-chart-frontier {
	fill: none;
	stroke: var(--amber);
	stroke-width: 2;
	stroke-dasharray: 5 5;
	opacity: 0.7;
}
.mc-chart-dot {
	fill: var(--text-muted);
	stroke: var(--bg);
	stroke-width: 2;
	transition:
		r 0.12s var(--ease),
		fill 0.12s var(--ease);
}
.mc-chart-dot.is-frontier {
	fill: var(--amber);
}
.mc-chart-hit {
	fill: transparent;
}
/* On a model's own page: its dot, larger and ringed. */
.mc-chart-dot.is-focus {
	fill: var(--amber);
}
.mc-chart-ring {
	fill: none;
	stroke: var(--amber);
	stroke-width: 1.5;
	opacity: 0.6;
}
.mc-frontier-h {
	margin: clamp(40px, 5vw, 64px) 0 8px;
	font-size: 20px;
}
.mc-chart a:hover .mc-chart-dot,
.mc-chart a:focus-visible .mc-chart-dot {
	r: 8px;
	fill: var(--text-strong);
}
.mc-chart a:focus-visible {
	outline: none;
}
/* A frontier model's name: a link, haloed in the page color so the grid doesn't cut it. */
.mc-chart-label text {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 14.5px;
	letter-spacing: -0.015em;
	fill: var(--text-strong);
	paint-order: stroke;
	stroke: var(--bg);
	stroke-width: 5px;
	stroke-linejoin: round;
	transition: fill 0.15s var(--ease);
}
.mc-chart-label:hover text,
.mc-chart-label:focus-visible text {
	fill: var(--amber);
	text-decoration: underline;
	text-underline-offset: 3px;
}
/* The tooltip a dot shows the moment it is pointed at (models.js places it). */
.mc-chart-figure {
	position: relative;
}
.mc-tip {
	position: absolute;
	z-index: 3;
	left: 0;
	top: 0;
	translate: var(--tip-x, 0) var(--tip-y, 0);
	padding: 8px 12px 9px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	box-shadow: var(--shadow-card);
	font-size: 13px;
	line-height: 1.35;
	color: var(--text-muted);
	white-space: nowrap;
	pointer-events: none;
}
.mc-tip strong {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 14.5px;
	letter-spacing: -0.015em;
	color: var(--text-strong);
}
.mc-credit {
	max-width: 76ch;
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--text-dim);
}
.mc-credit a {
	color: var(--text-muted);
	text-decoration: underline;
	text-decoration-color: var(--border-strong);
}

/* A medal: a picture of one (gold, silver or bronze) with the place engraved on its disc.
   The disc is as wide as the picture and sits at its foot, so the number is centered on a
   point 65% of the way down; it scales with the medal through the container's width. */
.mc-medal {
	position: relative;
	display: inline-block;
	flex: none;
	width: var(--medal, 44px);
	aspect-ratio: 192 / 273;
	container-type: inline-size;
	--engraving: oklch(0.4 0.09 75);
}
.mc-medal-silver {
	--engraving: oklch(0.36 0.012 250);
}
.mc-medal-bronze {
	--engraving: oklch(0.3 0.06 50);
}
/* `.mc-tested img` styles a card's picture (square, on a backing color); the medal on the
   card is a picture too and must not take it. */
.mc-medal img,
.mc-tested .mc-medal img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	margin: 0;
	background: none;
	opacity: 1;
}
.mc-medal-place {
	position: absolute;
	inset: 65% 0 auto;
	translate: 0 -50%;
	text-align: center;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 40cqw;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--engraving);
	text-shadow: 0 0.03em 0 rgb(255 255 255 / 0.4);
}
/* On a benchmark's card the medal hangs in the picture's corner. */
.mc-tested-picture {
	position: relative;
	display: block;
}
.mc-tested-picture .mc-medal {
	--medal: 64px;
	position: absolute;
	top: -10px;
	right: 10px;
	filter: drop-shadow(0 6px 12px rgb(0 0 0 / 0.6));
}
.mc-standing .mc-tested {
	margin-top: clamp(28px, 4vw, 44px);
}
.mc-tested-place {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	color: var(--text-strong);
}
.mc-tested-place span {
	font-weight: 400;
	color: var(--text-muted);
}
.mc-standing-note {
	margin: 24px 0 0;
}

/* Checks passed across a kind of test: a bar a model, longest first. */
.mc-totals-h {
	margin: clamp(36px, 5vw, 56px) 0 12px;
}
.mc-totals {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr) max-content;
	gap: 6px 16px;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
	max-width: 760px;
	font-size: 14.5px;
}
.mc-totals li {
	display: contents;
}
.mc-totals a {
	color: var(--text);
}
.mc-totals a:hover {
	color: var(--amber);
}
.mc-bar {
	height: 8px;
	background: linear-gradient(to right, var(--text-muted) var(--share), var(--border) var(--share));
}
.mc-totals .mc-num {
	font-variant-numeric: tabular-nums;
	color: var(--text-muted);
}

/* One test: what was asked. */
.mc-brief .mc-prompt {
	margin-bottom: 20px;
}
.mc-sources {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 20px;
}
.mc-sources figure {
	margin: 0;
}
.mc-sources img {
	height: 180px;
	width: auto;
}
.mc-sources figcaption,
.mc-takes figcaption {
	margin-top: 8px;
	font-size: 13.5px;
	color: var(--text-muted);
}
.mc-checks summary,
.mc-takes summary {
	cursor: pointer;
	width: fit-content;
}
.mc-checks summary {
	color: var(--amber);
}
.mc-checks ol {
	max-width: 76ch;
	margin: 14px 0 18px;
	padding-left: 22px;
	color: var(--text);
}
.mc-checks li {
	margin-bottom: 4px;
}

/* A picture that opens larger. */
.mc-zoomable {
	all: unset;
	display: block;
	cursor: zoom-in;
}
.mc-zoomable:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
}
.mc-zoomable img {
	transition: opacity 0.2s var(--ease);
}
.mc-zoomable:hover img {
	opacity: 0.88;
}
.mc-zoom {
	padding: 0;
	border: 0;
	background: none;
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	color: #fff;
}
.mc-zoom[open] {
	display: grid;
	place-items: center;
}
.mc-zoom::backdrop {
	background: rgb(0 0 0 / 0.9);
}
.mc-zoom-frame {
	display: grid;
	justify-items: center;
	gap: 12px;
}
.mc-zoom-stage {
	position: relative;
	--split: 50%;
	line-height: 0;
	user-select: none;
}
.mc-zoom-after {
	display: block;
	max-width: min(92vw, 1500px);
	max-height: 82vh;
	width: auto;
	height: auto;
}
/* An edit opens under a before / after divider, the look of the home page's (.lp-sweep). */
.mc-zoom-before,
.mc-zoom-divider,
.mc-zoom-tag {
	display: none;
}
.has-before {
	cursor: ew-resize;
	touch-action: pan-y;
}
.has-before .mc-zoom-before {
	display: block;
	position: absolute;
	inset: 0;
	clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.mc-zoom-before img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}
.has-before .mc-zoom-tag {
	display: block;
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 9px;
	border-radius: 4px;
	background: rgb(0 0 0 / 0.62);
	font:
		600 11px/1 system-ui,
		-apple-system,
		sans-serif;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	pointer-events: none;
}
.has-before .mc-zoom-tag.is-after {
	left: auto;
	right: 12px;
	clip-path: none;
}
.has-before .mc-zoom-divider {
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--split);
	width: 1.5px;
	margin-left: -0.75px;
	background: #fff;
	box-shadow: 0 0 4px rgb(0 0 0 / 0.7);
	pointer-events: none;
}
.mc-zoom-divider svg {
	position: absolute;
	max-width: none;
	top: calc(50% - 18px);
	left: -17.25px;
	border-radius: 50%;
	background: rgb(0 0 0 / 0.45);
	filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.6));
}
.mc-zoom-caption {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: rgb(255 255 255 / 0.8);
}
.mc-zoom-step,
.mc-zoom-close {
	all: unset;
	position: fixed;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.1);
	font-size: 20px;
	cursor: pointer;
	transition: background 0.15s var(--ease);
}
.mc-zoom-step:hover,
.mc-zoom-close:hover {
	background: rgb(255 255 255 / 0.22);
}
.mc-zoom-step:focus-visible,
.mc-zoom-close:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 2px;
}
.mc-zoom-step[hidden] {
	display: none;
}
.mc-zoom-step {
	top: calc(50% - 22px);
}
.mc-zoom-step.is-prev {
	left: 16px;
}
.mc-zoom-step.is-next {
	right: 16px;
}
.mc-zoom-close {
	top: 16px;
	right: 16px;
	font-size: 26px;
}

/* One test: every model's two pictures, best first. */
.mc-results {
	list-style: none;
	padding: 0;
	margin: 0;
}
.mc-result {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(20px, 4vw, 56px);
	padding: clamp(24px, 3.5vw, 40px) 0;
	border-top: 1px solid var(--border-strong);
	scroll-margin-top: 96px;
}
.mc-result:target {
	border-top-color: var(--amber);
}
.mc-result-head {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 4px 18px;
	align-content: start;
}
.mc-result-place {
	grid-row: span 2;
	min-width: 1.4em;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--text-dim);
	font-variant-numeric: tabular-nums;
}
.mc-result-name {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(19px, 2vw, 23px);
	letter-spacing: -0.02em;
	color: var(--text-strong);
}
.mc-result-name:hover {
	color: var(--amber);
}
.mc-result-facts {
	grid-column: 2;
	display: grid;
	gap: 8px;
	margin: 14px 0 0;
}
.mc-result-facts div {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: baseline;
}
.mc-result-facts dt {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.mc-result-facts dd {
	margin: 0;
	color: var(--text-strong);
	font-variant-numeric: tabular-nums;
}
.mc-result-facts dd span {
	color: var(--text-muted);
	font-size: 13.5px;
}
.mc-takes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(10px, 1.6vw, 20px);
	align-items: start;
}
.mc-takes figure {
	margin: 0;
}
.mc-takes img {
	width: 100%;
	height: auto;
	background: var(--bg-subtle);
}
.mc-take-score {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.03em;
	color: var(--text);
}
.mc-takes ul {
	margin: 10px 0 0;
	padding-left: 18px;
}
.mc-takes li {
	margin-bottom: 8px;
	color: var(--text);
}
.mc-takes li span {
	display: block;
	color: var(--text-muted);
}

@media (max-width: 860px) {
	.mc-result {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ───────── A model's benchmark results, one at a time ─────────
   Tabs of the benchmarks it ran; the chosen one large, with its place, and a second
   picture beside it: the model's other take, or another model's. */
.mc-explorer {
	border: 1px solid var(--border-strong);
	background: var(--surface);
}
.mc-explorer-tabs {
	display: flex;
	gap: 2px;
	/* Scrolls sideways when the tabs don't fit, and never up and down: the top padding
	   holds the medals that hang above the thumbnails. */
	overflow: auto hidden;
	padding: 16px 10px 0;
	/* The line under the strip is painted, so the chosen tab can cover it. */
	background:
		linear-gradient(var(--border-strong), var(--border-strong)) bottom / 100% 1px no-repeat,
		var(--bg-subtle);
	scrollbar-width: thin;
	scrollbar-color: var(--border-strong) transparent;
}
.mc-explorer-tabs [role='tab'] {
	all: unset;
	box-sizing: border-box;
	flex: 1 0 104px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 8px 10px;
	border: 1px solid transparent;
	border-bottom: 0;
	cursor: pointer;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--text-muted);
	transition:
		background 0.15s var(--ease),
		color 0.15s var(--ease);
}
.mc-explorer-tabs [role='tab']:hover {
	color: var(--text-strong);
}
.mc-explorer-tabs [role='tab']:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: -2px;
}
.mc-explorer-tabs [role='tab'][aria-selected='true'] {
	background: var(--surface);
	border-color: var(--border-strong);
	color: var(--text-strong);
}
.mc-explorer-thumb {
	position: relative;
	display: block;
	margin-bottom: 6px;
}
.mc-explorer-thumb > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--bg-subtle);
	opacity: 0.7;
	transition: opacity 0.15s var(--ease);
}
[role='tab']:hover .mc-explorer-thumb > img,
[role='tab'][aria-selected='true'] .mc-explorer-thumb > img {
	opacity: 1;
}
.mc-explorer-thumb .mc-medal {
	--medal: 26px;
	position: absolute;
	top: -5px;
	right: 5px;
	filter: drop-shadow(0 3px 6px rgb(0 0 0 / 0.6));
}
.mc-explorer-tab-name {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.01em;
}
.mc-explorer-tab-place {
	color: var(--text-dim);
}
.mc-explorer-panel {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(20px, 3.4vw, 44px);
	align-items: start;
}
.mc-explorer-panel[hidden] {
	display: none;
}
.mc-explorer-pictures {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(10px, 1.6vw, 20px);
	align-items: start;
}
.mc-explorer-pictures figure {
	margin: 0;
}
.mc-explorer-pictures figure[hidden] {
	display: none;
}
.mc-explorer-pictures img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--bg-subtle);
}
.mc-explorer-pictures figcaption {
	margin-top: 8px;
	font-size: 13.5px;
	color: var(--text-muted);
}
.mc-explorer-pictures figcaption strong {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--text-strong);
}
.mc-explorer-pictures figcaption a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--border-strong);
	text-underline-offset: 3px;
}
.mc-explorer-info p {
	margin: 0;
}
.mc-explorer-title {
	margin: 8px 0 0;
	font-size: clamp(24px, 2.6vw, 32px);
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.mc-explorer-place {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px !important;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border);
	color: var(--text-muted);
}
.mc-explorer-place strong {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(32px, 3.6vw, 44px);
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--text-strong);
}
.mc-explorer-place .mc-medal {
	--medal: 40px;
}
.mc-explorer-beside {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	margin-top: 20px;
}
.mc-explorer-beside .mc-rank-kind {
	margin-bottom: 4px;
}
/* A one-hot choice: the pressed one is marked by its bar and weight, not by color alone. */
.mc-choice {
	all: unset;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 9px 12px;
	border: 1px solid var(--border);
	border-left: 3px solid var(--border);
	cursor: pointer;
	font-size: 14.5px;
	color: var(--text);
	transition:
		border-color 0.15s var(--ease),
		background 0.15s var(--ease);
}
.mc-choice span {
	font-size: 12.5px;
	color: var(--text-dim);
	white-space: nowrap;
}
.mc-choice:hover {
	border-color: var(--border-strong);
}
.mc-choice:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 2px;
}
.mc-choice[aria-pressed='true'] {
	border-color: var(--border-strong);
	border-left-color: var(--amber);
	background: var(--bg-subtle);
	font-weight: 600;
	color: var(--text-strong);
}
.mc-explorer-brief {
	margin-top: 20px;
	font-size: 14px;
	color: var(--text-muted);
}
.mc-explorer-brief summary {
	cursor: pointer;
	width: fit-content;
	color: var(--text);
}
.mc-explorer-brief p {
	margin-top: 8px;
}
.mc-explorer-more {
	margin-top: 16px !important;
	font-size: 14.5px;
}
.mc-explorer-more a {
	text-decoration: underline;
	text-decoration-color: var(--amber-border);
}
@media (max-width: 900px) {
	.mc-explorer-panel {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The providers a model runs on with your own key: their marks, black on paper. */
.mc-providers {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	list-style: none;
	padding: 0;
	margin: 4px 0 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: -0.01em;
	color: var(--text-strong);
}
.mc-providers li {
	display: flex;
	align-items: center;
	gap: 10px;
}
.mc-providers img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: 0.85;
}
.mc-paper .mc-providers img {
	filter: brightness(0);
}

/* What an edit benchmark started from, small, in the explorer's side column. */
.mc-explorer-sources {
	margin-top: 20px;
}
.mc-explorer-sources > div {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}
.mc-explorer-sources img {
	display: block;
	width: auto;
	height: 72px;
	background: var(--bg-subtle);
}

/* A color the prompt asked for by hex code, pinned to each result as the reference: a chip
   of the exact color with its code. */
.mc-take-picture {
	position: relative;
	display: block;
}
.mc-swatch {
	position: absolute;
	z-index: 1;
	bottom: 10px;
	left: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 9px 5px 5px;
	border-radius: 4px;
	background: rgb(0 0 0 / 0.72);
	font-family: var(--font-mono);
	font-size: 11.5px;
	line-height: 1;
	letter-spacing: 0.03em;
	color: #fff;
	pointer-events: none;
}
.mc-swatch::before {
	content: '';
	width: 30px;
	height: 30px;
	border-radius: 2px;
	background: var(--swatch);
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.85);
}
.mc-swatch-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}
