/* The arthur.law skin for the bench components.
 *
 * The same class names and the same rules as themes/jubarte.css, with the
 * arthur.law look: the tokens of
 * /Users/arthrod/temp/T/briefs_agreements/benchmarks-law/src/styles/site.css
 * (commit 11835e5) — --bg #FAFAF8, --ink #0A0A0A, --muted #6B6B6B,
 * --faint #E8E8E5, --mark #FFD400 — Libre Franklin for the text, Roboto Mono
 * for the numbers and the kickers, square corners, 1px hairlines, and the
 * mark on the rows we made.
 */

:root {
  color-scheme: light;

  /* arthur.law's palette. */
  --bg: #fafaf8;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --faint: #e8e8e5;
  --mark: #ffd400;
  --mark-text: #0a0a0a;
  --mark-on-dark: #ffd400;
  /* The mark, thinned to sit behind a row of text. */
  --mark-soft: #fbf1ba;

  /* The bench components' names, mapped onto that palette. */
  --line: var(--faint);
  --line-strong: var(--ink);
  --surface: #ffffff;
  --hover: #f2f2ef;
  --primary: var(--ink);
  --hl-soft: var(--mark-soft);

  /* arthur.law's type. */
  --sans: "Libre Franklin", system-ui, -apple-system, sans-serif;
  --ff: var(--sans);
  --mono: "Roboto Mono", "Departure Mono", "Space Mono", ui-monospace, monospace;
  --mono-weight: 600;
  --display-weight: 700;
  --max: 1180px;
  --radius: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
.note a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  background: var(--mark);
  color: var(--mark-text);
}

/* ── type ─────────────────────────────────────────────────────────────── */
.mono {
  font-family: var(--mono);
  font-weight: var(--mono-weight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: var(--mono-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
/* arthur.law's h1 and lede. */
.h1 {
  font-weight: var(--display-weight, 700);
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 30px 0 0;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.62;
  color: #2a2a2a;
  margin-top: 16px;
  max-width: 46ch;
  text-wrap: pretty;
}
.small {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 36px;
  max-width: 75ch;
  text-wrap: pretty;
}

/* ── layout ───────────────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 56px);
  padding-right: clamp(20px, 5vw, 56px);
}
main.wrap {
  flex: 1;
  padding-top: 56px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 14px;
}
.section-head > :first-child {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head > :last-child:not(:first-child) {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cells {
  display: grid;
  gap: 1px;
  background: var(--faint);
  border: 1px solid var(--faint);
}
.cells.no-top {
  border-top: 0;
}
.cells > * {
  background: var(--bg);
  min-width: 0;
}
.cols-auto-200 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.cols-auto-220 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cols-auto-240 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cell-pad {
  padding: 28px 24px 30px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-56 {
  margin-top: 56px;
}
.mt-72 {
  margin-top: 72px;
}
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── tables ───────────────────────────────────────────────────────────── */
.t-row {
  display: grid;
  gap: 0 14px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--faint);
  align-items: center;
}
.t-row.head {
  padding: 12px 12px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: var(--mono-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-row:not(.head):hover {
  background: var(--hover);
}
.num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: var(--mono-weight);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.bar {
  height: 10px;
  background: var(--faint);
}
.bar > div {
  height: 100%;
  background: var(--ink);
}
.bar.hi > div {
  background: var(--mark);
}
.bar.thin {
  height: 6px;
  margin-top: 4px;
}

/* ── shared bits ──────────────────────────────────────────────────────── */
.strong {
  font-weight: 700;
}
.r {
  text-align: right;
}
.note-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.cell-pad > .note-title:first-child {
  margin-top: 0;
}

/* ── benchmark ────────────────────────────────────────────────────────── */
.headline-v {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.headline-v > span:first-child {
  font-variant-numeric: tabular-nums;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  /* arthur.law's mark: a highlighter stroke under the number. */
  color: var(--mark-text);
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat;
  background-size: 100% 0.78em;
  background-position: 0 62%;
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.headline-v .mono {
  font-size: 11px;
}
.bench-table {
  min-width: 720px;
}
.bench-cols {
  grid-template-columns: 34px minmax(170px, 1.1fr) minmax(200px, 1.6fr) 70px 70px 70px 60px;
}
.bench-cols .r,
.bench-cols .num {
  text-align: right;
}
/* Our rows carry the mark. */
.t-row.ours {
  background: var(--mark-soft);
  box-shadow: inset 3px 0 0 var(--mark);
}
.tool-name {
  font-size: 0.875rem;
  font-weight: 600;
}
.t-row.ours .tool-name {
  color: var(--ink);
  font-weight: 700;
}
.tool-pin {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.bar-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.bar-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  max-width: 75ch;
}
.num.failed {
  font-weight: 700;
}
.state-name {
  font-size: 0.875rem;
  font-weight: 600;
}
.state-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.state-row > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted);
}
.state-row.ours > div:first-child {
  color: var(--ink);
  font-weight: 700;
}

/* ── home page bar groups ─────────────────────────────────────────────── */
.bench-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  font-weight: 600;
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.bar-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
}
.bar-row > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-row.ours {
  color: var(--ink);
  font-weight: 700;
}

/* ── bench-viewer's own marks ─────────────────────────────────────────── */
.bench-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: var(--mono-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bench-legend {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 10px;
}
.bench-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bench-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--faint);
}

/* ── leaderboard page (arthur-law) ────────────────────────────────────── */
/* The line that names the leader of a table. */
.lb-leader {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 18px;
}
.lb-leader .lb-tool {
  color: var(--ink);
  font-weight: 700;
}
.lb-leader .mono {
  font-size: 13px;
}
/* The heading over the tables scored on the release's own samples. */
.lb-samples-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 72px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--faint);
}
.lb-samples-head h2 {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lb-samples-head span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: var(--mono-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) {
  main.wrap {
    padding-top: 36px;
    padding-bottom: 48px;
  }
  .bar-row {
    grid-template-columns: 110px minmax(0, 1fr) 56px;
  }
}
