/* The rules our content needs on the site's design, in the design's own tokens. Loaded after the design's stylesheets. */

/* The leaderboard chart on Home and on the leaderboard page (#chart, drawn by FDB.metricChart with framed: true), made to be
   screenshotted. The card carries everything a screenshot needs: Contra Labs' lockup hanging from its top edge and the benchmark's name
   (as the blog's charts have them), the chart's title, the chart, and the site's address at the bottom right. Its type stays small next
   to the bars: a 17px title, 11px values and last line, 12px names. */
/* On Home the chart and its tabs keep to the leaderboard page's column, at most 1080px wide and centred under the section's heading
   and buttons, which keep the page's full width. */
.app--home #chart { justify-self: center; width: 100%; max-width: 1080px; }
#chart .chart-card { --lbc-lockup: 54px; padding: 0 var(--space-48) var(--space-32); }
#chart .lbc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-16); }
#chart .lbc-lockup { display: block; width: auto; height: var(--lbc-lockup); }
/* "Frontier / Design Benchmark", its two lines centred on the wordmark ("contra LABS" sits 32% to 55% down the lockup). */
#chart .lbc-fdb { margin: var(--space-24) 0 0; font-family: var(--font-sans); font-size: var(--fs-text-s); line-height: 1; letter-spacing: var(--tracking-tight); color: var(--black); }
#chart .lbc-title { margin-top: var(--space-24); }
#chart .lbc-title h2 { margin: 0; text-wrap: balance; font-family: var(--font-display-text); font-weight: 400; font-size: 17px; line-height: var(--lh-heading); letter-spacing: var(--tracking-tight); color: var(--black); }
#chart .lbc-title p { margin: var(--space-4) 0 0; font-size: var(--fs-text-s); line-height: var(--lh-ui); color: var(--grey-2); }
/* The bars' height follows the window's, so the tabs and the whole card fit on the screen under the header: 320px on a window 850px
   tall or more, 270px on an 800px one, 220px at the least. */
/* The bars fill the card's width: no empty band at the right (the site's charts keep 64 px there) and a narrower gap, so each bar is
   wider; the names' row keeps the same columns. fitNames() still moves both right where the first names need room. */
#chart :is(.vchart, .vchart__names) { --gap: var(--space-16); padding-right: 0; }
#chart .vchart { height: clamp(220px, 100svh - 530px, 320px); margin-top: calc(var(--space-64) + var(--space-8)); }
#chart .vchart__col::before { font-size: 11px; color: var(--grey-1); }
/* The average's label ("69 · avg") sits on the line at its left end, a little in from the start (at the right end it ran into the last
   bars' marks). fitNames() keeps the bars clear of it. */
#chart .vchart__ref span { left: var(--space-8); right: auto; bottom: var(--space-4); font-size: 11px; line-height: 1; }
#chart .lbc-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-4) var(--space-16); margin: var(--space-32) 0 0; font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: 11px; line-height: var(--lh-text); color: var(--grey-2); }
/* Model names, turned 45 degrees under their bars as on the blog's charts, rising to the right: each ends on its bar's centre line a
   little below the bars' foot, and runs down to the left from there. fitNames() below gives the list the depth the names reach and,
   where the first names would run past the card's left edge, moves the bars right. */
#chart .vchart__names { --turn: -45deg; align-items: start; padding-top: var(--space-8); }
#chart .vchart__names li, #chart .vchart__names li:last-child {
  display: block; justify-self: end; width: max-content; margin-right: 50%; writing-mode: horizontal-tb; transform: rotate(var(--turn)); transform-origin: 100% 50%;
  white-space: nowrap; text-align: right; font-size: var(--fs-text-s); font-weight: 400; line-height: var(--lh-ui); letter-spacing: 0; color: var(--grey-2); }
#chart .vchart__names li.is-active { color: var(--black); }

@media (max-width: 767.98px) {
  #chart .chart-card { --lbc-lockup: 38px; padding: 0 var(--space-24) var(--space-24); }
  #chart .lbc-fdb { font-size: var(--fs-text-xs); }
  #chart .lbc-title { margin-top: var(--space-16); }
  #chart .lbc-title h2 { font-size: 15px; }
  #chart .lbc-title p { font-size: var(--fs-text-xs); }
  /* 17 bars on a phone are about 18px apart: the marks shrink, the values stand on end, and the names turn further. */
  #chart .vchart { height: 260px; margin-top: var(--space-48); }
  #chart .vchart__logo { width: 18px; height: 18px; bottom: calc(var(--ps) * 1% + 34px) !important; }
  #chart .vchart__logo img { width: 12px; height: 12px; }
  #chart .vchart__col::before { left: 50%; right: auto; bottom: calc(var(--ps) * 1% + var(--space-6)); writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-size: var(--fs-text-xs); }
  #chart .vchart__names { --turn: -65deg; padding-top: var(--space-6); }
  #chart .vchart__names li, #chart .vchart__names li:last-child { font-size: 11px; }
  #chart .lbc-foot { margin-top: var(--space-24); font-size: var(--fs-text-xs); }
  /* The metric tabs fill the row with their short names, so none is cut off. */
  #chart .mtabs { width: 100%; }
  #chart .mtabs > li { flex: 1 1 0; }
  #chart .mtabs .chip { width: 100%; justify-content: center; }
  #chart .mtabs__full { display: none; }
  #chart .mtabs__short { display: inline; }
}

/* The chart card until every model is ranked: where each model stands (the home and the leaderboard). */
.lb-empty { padding: var(--space-32) var(--space-4) var(--space-24); }
.lb-wait__title { margin: 0; font-family: var(--font-display-text); font-weight: 400; font-size: var(--fs-h4); line-height: var(--lh-ui); letter-spacing: var(--tracking-tight); }
.lb-wait__line { margin: var(--space-12) 0 0; max-width: 36em; font-size: var(--fs-text-s); line-height: var(--lh-text); color: var(--grey-2); }
.lb-wait__list { list-style: none; margin: var(--space-32) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-24); }
@media (max-width: 767.98px) { .lb-wait__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lb-wait__list span { display: block; font-size: var(--fs-text-s); }
.lb-wait__list small { display: block; margin-top: var(--space-2); font-variant-numeric: tabular-nums; font-size: var(--fs-text-s); color: var(--grey-2); }

/* The leaderboard's rows while no model is ranked: the votes a model has in place of its bar. */
.lb.is-wait .bar__track { display: flex; align-items: center; }
.lb.is-wait .bar__track::after, .lb.is-wait .lb-axis { display: none; }
.lb .bar__note { font-variant-numeric: tabular-nums; font-size: var(--fs-text-s); color: var(--grey-2); }
.lb-note { margin: var(--space-16) 0 0; max-width: 48em; font-size: var(--fs-text-s); line-height: var(--lh-heading); color: var(--grey-2); }

/* A task with no golden yet leads with its brief, never with a model's output: the brief's opening where a golden's first screen goes. */
.brief-sheet { position: absolute; inset: 0; display: block; overflow: hidden; padding: var(--space-16) var(--space-16) 0; background: var(--white); text-align: left; transition: transform var(--dur-600) var(--ease); }
.brief-sheet > span { display: block; height: 100%; font-size: var(--fs-text-s); line-height: var(--lh-text); color: var(--grey-1); -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.spec__media .brief-sheet { inset: 50% 0 auto; aspect-ratio: 16 / 10; border-radius: var(--radius-xs); transform: translateY(-50%); }
.spec:hover .spec__media .brief-sheet { transform: translateY(-50%) scale(1.02); }
.work__media .brief-sheet { background: var(--surface-2); }
.work:hover .brief-sheet { transform: scale(1.03); }

/* The work page: the brief in the viewer for a task with no golden, a golden's live site in the viewer, paragraphs in the prompt. */
.viewer.is-brief { width: 100%; }
.viewer__brief { position: absolute; inset: var(--space-64) var(--space-48) var(--space-48); overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.viewer__brief[hidden] { display: none; }
.viewer__brief p { max-width: 40em; margin: 0 0 var(--space-12); font-size: var(--fs-text-l); line-height: var(--lh-text); color: var(--grey-1); white-space: pre-line; }
.viewer__live { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: var(--white); }
.viewer__live[hidden] { display: none; }
.viewer__live iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; }
.viewer.is-live img[data-r="img"] { visibility: hidden; }
/* The viewer's loading state (detail/view.js?h=ff9ef928ca): until the shown picture has loaded, its small one (the card's), blurred, in its place under a
   shimmer; never the picture shown before. On a phone the viewer is as tall as its picture: before the first has loaded it keeps the
   picture's shape (--ar), so nothing below it moves. */
.viewer .viewer__ph { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; pointer-events: none; opacity: 0; filter: blur(12px); transform: scale(1.04); }
.viewer.is-loading .viewer__ph[src] { opacity: 1; transition: opacity var(--dur-200) var(--ease); }
.viewer.is-loading img[data-r="img"] { visibility: hidden; }
.viewer.is-loading::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .5) 50%, transparent 62%) 0 0 / 250% 100% no-repeat;
  animation: viewer-shimmer 1.4s var(--ease) infinite;
}
@keyframes viewer-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .viewer.is-loading::after { animation: none; background: rgb(255 255 255 / .25); } }
@media (min-width: 1024px) { .d-stage .viewer.is-compare .viewer__ph { left: auto; right: var(--space-16); } }
@media (max-width: 1023.98px) {
  .viewer img[data-r="img"]:not([src]) { width: 100%; aspect-ratio: var(--ar, 16 / 10); }
  .viewer.is-compare.is-full .viewer__ph { display: none; }
}
/* A card's picture (the gallery's and home page's works, a job page's outputs and golden): until it has loaded, its box (which keeps the
   picture's shape: aspect-ratio, or the picture's width and height) shimmers; then the picture fades in over it (js/shell.js?h=d015e07a36 marks it
   .is-loaded). Only with the script (html.fdb-cards), so a page without it shows its pictures as before. (!important: the gallery's own
   layouts give the box a background with an id in their selectors; this is only while it waits.) */
html.fdb-cards :is(.work__media, .spec__media, .mcard__media):has(> img:not(.is-loaded)) {
  background-color: var(--surface-3) !important;
  background-image: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .6) 50%, transparent 62%) !important;
  background-size: 250% 100% !important; background-repeat: no-repeat !important;
  animation: viewer-shimmer 1.4s var(--ease) infinite;
}
html.fdb-cards :is(.work__media, .spec__media, .mcard__media) > img:not(.is-loaded) { opacity: 0; }
html.fdb-cards :is(.work__media, .spec__media, .mcard__media) > img.is-loaded { animation: card-in var(--dur-300) var(--ease); }
@keyframes card-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html.fdb-cards :is(.work__media, .spec__media, .mcard__media):has(> img:not(.is-loaded)) { animation: none; background-image: none !important; }
  html.fdb-cards :is(.work__media, .spec__media, .mcard__media) > img.is-loaded { animation: none; }
}
/* The picture opens its site's live copy in a new tab (it is a link over the picture; the Live button is gone). A pill says so on hover and
   focus, and always where there is no hover (a phone). */
.viewer__open { position: absolute; inset: 0; z-index: 1; border-radius: inherit; color: var(--black); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.viewer__open[hidden] { display: none; }
.viewer__open:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--black), inset 0 0 0 4px var(--white); }
.viewer.is-dragging .viewer__open { cursor: grabbing; }
.viewer__hint {
  position: absolute; top: var(--space-16); right: var(--space-16); display: inline-flex; align-items: center; height: var(--control-l);
  padding: 0 var(--space-16); border-radius: var(--radius-pill); background: var(--label-bg, var(--white)); font-size: var(--fs-text-m); white-space: nowrap;
  opacity: 0; transform: translateY(calc(-1 * var(--space-4))); transition: opacity var(--dur-150), transform var(--dur-150) var(--ease);
}
.viewer__open:is(:hover, :focus-visible) .viewer__hint { opacity: 1; transform: none; }
.viewer:is(.is-dragging, .is-long) .viewer__hint { opacity: 0; }
@media (hover: none) { .viewer__hint { opacity: 1; transform: none; } }
@media (max-width: 1023.98px) { .viewer__hint { top: var(--space-12); right: var(--space-12); height: var(--control-m); padding: 0 var(--space-12); font-size: var(--fs-text-s); } }
/* Our pictures are websites' first screens: where the viewer crops one to fill its frame, it keeps the top (the site's header) rather
   than the middle. Long file names shorten with an ellipsis instead of running into the next column. */
@media (min-width: 1024px) { .d-stage .viewer.is-wide:not(.is-compare) img { object-position: 50% 0; } }
.files { grid-template-columns: minmax(0, 1fr); }
.files a span { min-width: 0; }
@media (max-width: 1023.98px) {
  .viewer.is-brief { min-height: min(70svh, 34rem); }
  .viewer__brief { inset: var(--space-24) var(--space-16) var(--space-16); }
  .viewer__brief p { font-size: var(--fs-text-s); }
}
.prompt__text { white-space: pre-line; }
.files__more { margin-top: var(--space-12); }
.fork__note, .outputs__note { margin: 0; max-width: 40em; font-size: var(--fs-text-s); line-height: var(--lh-text); color: var(--grey-2); }
.outputs__note { margin-top: var(--space-12); font-size: var(--fs-text-s); line-height: var(--lh-heading); }

/* Pages the design named and never built: its top bar and its foundations page's blocks (a heading with its small line, then the content). */
.h-specs { padding-top: var(--space-48); }
.h-specs .spec { position: static; grid-column: 1 / -1; display: grid; gap: var(--space-32); aspect-ratio: auto; overflow: visible; border-radius: 0; background: none; color: inherit; }
@media (min-width: 1024px) { .h-specs .spec { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); } .h-specs .spec > h3 { grid-column: 1 / span 3; } .h-specs .spec > div { grid-column: 4 / -1; } }
.h-specs .spec + .spec { margin-top: var(--space-48); padding-top: var(--space-32); border-top: 1px solid var(--divider); }
.h-specs .spec h3 { font-weight: 400; font-size: var(--fs-text-l); }
.h-specs--levels .spec:not(.spec--sub) > h3 { font-size: var(--fs-h4); line-height: var(--lh-heading); }
.h-specs .spec + .spec--sub { margin-top: var(--space-64); padding-top: 0; border-top: 0; }
.h-specs .spec--sub > h3 { color: var(--grey-1); }
@media (min-width: 1024px) { .h-specs .spec--sub > h3 { padding-left: var(--space-16); } }
/* A page's backdrop: one whole figure from the branding collages (content.json backdrops), large and faint. It sits over the
   page's sticky title bar (19) and the site's header (20) so neither crops it, and under the header's open menu (22); clicks pass through. */
.page-backdrop { position: fixed; z-index: 21; right: calc(max(var(--space-24), 4vw) - 20vw); top: -2vh; height: 80vh; width: auto; max-width: none; opacity: .05; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent); mask-image: linear-gradient(to bottom, #000 75%, transparent); }
.h-specs .spec h3 small { display: block; margin-top: var(--space-8); font-size: var(--fs-text-s); color: var(--grey-2); line-height: var(--lh-heading); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-text-s); }
.tbl th, .tbl td { text-align: left; padding: var(--space-12) var(--space-12) var(--space-12) 0; border-bottom: 1px solid var(--divider); font-weight: 400; }
.tbl th { color: var(--grey-2); }
.tbl td.num { font-variant-numeric: tabular-nums; font-size: var(--fs-text-s); text-align: right; }
.tbl tr[hidden] { display: none; }
.h-prose { display: grid; gap: var(--space-12); max-width: 40em; }
.h-prose p, .h-prose li { margin: 0; font-size: var(--fs-text-l); line-height: var(--lh-text); color: var(--grey-1); }
.h-prose ul, .h-prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-8); }
.h-links, .h-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12) var(--space-24); margin-top: var(--space-8); }
.h-row { gap: var(--space-8); }
.h-status { justify-self: start; display: inline-flex; align-items: center; gap: var(--space-8); padding: var(--space-6) var(--space-12); border-radius: var(--radius-pill); background: var(--surface-2); font-size: var(--fs-text-s); letter-spacing: var(--tracking-caps-s); text-transform: uppercase; color: var(--grey-1); }
.h-status i { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--grey-3); }
.h-more { appearance: none; margin-top: var(--space-16); padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-text-s); color: var(--grey-2); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.h-more:hover, .h-more:focus-visible { color: var(--black); }
.m-chart { margin-top: var(--space-24); }
.m-bars { padding: var(--space-8) 0 var(--space-12); }
.m-bars .bar { grid-template-columns: 3ch minmax(9em, 16em) minmax(0, 1fr) 7ch; }
.m-bars .bar__track { overflow: visible; }
/* A count of votes, not a ranking: no bar is set apart as the design sets apart the first place. */
.m-bars .bar:first-child .bar__fill { background: var(--surface-4); }
.m-mark { position: absolute; top: -6px; bottom: -6px; border-left: 1px dashed var(--accent); }
@media (max-width: 767.98px) { .m-bars .bar { grid-template-columns: 3ch minmax(0, 1fr) 7ch; } }
/* The rules the Next.js site adds on the design, in its own tokens. The vote page, the invitation page and the people page are ours; the
   other pages are the design's. */

/* The vote page: the job, the pair side by side (live, scaled from the width it was built for), the golden as a third view, the choices. */
.vote { padding-top: var(--space-24); row-gap: var(--space-16); }
.vote > * { grid-column: 1 / -1; }
.vote__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-8) var(--space-24); }
.vote__job { margin: 0; display: grid; gap: var(--space-4); }
.vote__job b { font-weight: 400; font-size: var(--fs-h4); line-height: var(--lh-ui); letter-spacing: var(--tracking-tight); }
.vote__cat { font-size: var(--fs-text-s); letter-spacing: var(--tracking-caps-s); text-transform: uppercase; color: var(--grey-2); }
.vote__left { margin: 0; font-size: var(--fs-text-s); font-variant-numeric: tabular-nums; color: var(--grey-1); }
.vote__brief { max-width: 56em; }
.vote__brief p { margin: 0; font-size: var(--fs-text-s); line-height: var(--lh-text); color: var(--grey-1); white-space: pre-line; }
.vote__brief .prompt__link, .vote__status .prompt__link { appearance: none; margin-top: var(--space-8); padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-text-s); color: var(--grey-2); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.vote__brief .prompt__link:hover, .vote__status .prompt__link:hover { color: var(--black); }
.vote__status .prompt__link { margin: 0 0 0 var(--space-8); font-size: inherit; }
.vote__tabs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); margin: 0; padding: 0; }
.vote__tabs .chip[aria-selected="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.vote__width { display: inline-flex; gap: var(--space-8); margin-left: auto; }
.vote__stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
.vote__stage[data-tab="a"], .vote__stage[data-tab="b"], .vote__stage[data-tab="golden"] { grid-template-columns: minmax(0, 1fr); }
.vote__stage[data-tab="a"] [data-side="b"], .vote__stage[data-tab="b"] [data-side="a"], .vote__stage[data-tab="golden"] [data-side="a"], .vote__stage[data-tab="golden"] [data-side="b"] { display: none; }
.vote__side { margin: 0; display: grid; gap: var(--space-8); min-width: 0; }
.vote__side[hidden] { display: none; }
.vote__side figcaption { font-size: var(--fs-text-s); color: var(--grey-1); }
.vote__side figcaption b { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 var(--space-6); border-radius: var(--radius-pill); background: var(--surface-2); font-weight: 500; color: var(--black); }
.vote__side--golden figcaption b { background: var(--accent); color: var(--white); }
.vote__frame { position: relative; overflow: hidden; height: min(72svh, 760px); border-radius: var(--radius-s); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--divider); }
.vote__stage[data-width="390"] .vote__frame { width: 100%; max-width: 390px; justify-self: center; }
.vote__stage[data-width="390"] .vote__side { justify-items: center; }
.vote__frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: var(--white); }
.vote__bar-note { margin: 0; max-width: 48em; font-size: var(--fs-text-s); line-height: var(--lh-heading); color: var(--grey-2); }
.vote__bar-note[hidden] { display: none; }
.vote__form { display: grid; gap: var(--space-16); padding: var(--space-16) 0 var(--space-48); }
.vote__form[hidden] { display: none; }
.vote__form.is-busy { opacity: .6; pointer-events: none; }
.vote__choices { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.vote__words { display: grid; gap: var(--space-6); max-width: 40em; font-size: var(--fs-text-s); color: var(--grey-2); }
.vote__words textarea { font: inherit; font-size: var(--fs-text-s); color: var(--black); padding: var(--space-12) var(--space-12); border: 1px solid var(--divider); border-radius: var(--radius-s); background: var(--white); resize: vertical; }
.vote__words textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vote__status { margin: 0; min-height: 1.4em; font-size: var(--fs-text-s); color: var(--grey-1); }
.vote__done, .vote__err { padding: var(--space-48) 0; display: grid; gap: var(--space-16); justify-items: start; }
.vote__done[hidden], .vote__err[hidden] { display: none; }
.vote__done h2 { margin: 0; font-weight: 400; font-size: var(--fs-h3, var(--fs-h4)); letter-spacing: var(--tracking-tight); }
.vote__done p, .vote__err p { margin: 0; max-width: 40em; font-size: var(--fs-text-l); line-height: var(--lh-text); color: var(--grey-1); }
@media (max-width: 767.98px) {
  .vote__stage { grid-template-columns: minmax(0, 1fr); }
  .vote__frame { height: min(68svh, 700px); }
  .vote__width { margin-left: 0; }
  .vote__choices .btn { flex: 1 1 40%; justify-content: center; }
}

/* The invitation page and the people page: one column on the design's page colour. */
.gate { min-height: 100svh; display: grid; place-items: center; padding: var(--space-48) var(--margin); background: var(--surface-2, #F4F4F2); }
.gate__card { width: min(100%, 34rem); display: grid; gap: var(--space-16); padding: var(--space-48) var(--space-32); border-radius: var(--radius-l, 12px); background: var(--white); }
.gate__brand { margin: 0 0 var(--space-16); font-size: var(--fs-text-s); line-height: 1.15; color: var(--black); }
.gate h1 { margin: 0; font-weight: 400; font-size: var(--fs-h4); line-height: var(--lh-ui); letter-spacing: var(--tracking-tight); }
.gate p { margin: 0; font-size: var(--fs-text-s); line-height: var(--lh-text); color: var(--grey-1); }
.gate .btn { justify-self: start; }
.gate__msg { min-height: 1.4em; color: var(--grey-2); }
.people { padding: var(--space-48) var(--margin) var(--space-96); max-width: 72rem; margin: 0 auto; display: grid; gap: var(--space-32); }
.people h1 { margin: 0; font-weight: 400; font-size: var(--fs-h3, var(--fs-h4)); letter-spacing: var(--tracking-tight); }
.people__sub { margin: var(--space-8) 0 0; color: var(--grey-2); font-size: var(--fs-text-s); }
.people__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--space-8); align-items: end; }
.people__form label { display: grid; gap: var(--space-6); font-size: var(--fs-text-s); color: var(--grey-2); }
.people__form input { font: inherit; font-size: var(--fs-text-s); color: var(--black); padding: var(--space-12) var(--space-12); border: 1px solid var(--divider); border-radius: var(--radius-s); background: var(--white); }
.people__new { display: grid; gap: var(--space-8); padding: var(--space-16); border-radius: var(--radius-s); background: var(--surface-2); font-size: var(--fs-text-s); }
.people__new code { overflow-wrap: anywhere; font-size: var(--fs-text-s); }
.people__h { margin: 0 0 var(--space-12); font-weight: 400; font-size: var(--fs-text-l); letter-spacing: var(--tracking-tight); }
.people__table th.num { text-align: right; }
.people__table td small { color: var(--grey-2); }
.people__table tr.is-off td { color: var(--grey-3); }
@media (max-width: 767.98px) { .people__form { grid-template-columns: minmax(0, 1fr); } .people__table th:nth-child(2), .people__table td:nth-child(2), .people__table th:nth-child(4), .people__table td:nth-child(4) { display: none; } }

/* The pages the design never built: a block's content may shrink below its widest word (a table at 390), and long cells wrap. */
.h-specs .spec > div { min-width: 0; }
.h-specs .tbl td, .h-specs .tbl th { overflow-wrap: anywhere; }

/* A work page's remixes: their own list under the model outputs, and a remix's idea and references under the viewer. */
.outputs__head--remix { margin-top: var(--space-32); }
/* The remixes are a plain list, not cards: rows on rules, a small first screen beside each one's name and title. The one in the viewer has
   its picture framed in the mark colour. */
.outputs--remix { display: block; border-top: 1px solid var(--divider); }
/* Ours: a job with no remixes shows no remix list, so no stray divider under its model outputs. */
.outputs--remix:empty { display: none; }
.outputs--remix > li { border-bottom: 1px solid var(--black-a08); }
.outputs--remix .mcard { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "media head" "media foot"; align-content: center; column-gap: var(--space-12); row-gap: var(--space-4); padding: var(--space-8) 0; border: 0; border-radius: 0; background: none; }
.outputs--remix .mcard:hover, .outputs--remix .mcard[aria-pressed="true"] { border: 0; background: none; }
.outputs--remix .mcard__head { grid-area: head; align-self: end; }
.outputs--remix .mcard__media { grid-area: media; aspect-ratio: 16 / 10; }
.outputs--remix .mcard[aria-pressed="true"] .mcard__media { outline: 2px solid var(--accent); outline-offset: 1px; }
.outputs--remix .mcard__viewing { display: none !important; }
.outputs--remix .mcard__foot { grid-area: foot; align-self: start; }
.outputs--remix .mcard__org { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.outputs__head[hidden], .outputs[hidden], .refs[hidden], .d-info__main > section[hidden] { display: none; }
.refs__title { margin: 0 0 var(--space-8); font-size: var(--fs-text-l); line-height: var(--lh-heading); color: var(--black); }
.refs__idea { margin: 0 0 var(--space-16); max-width: 40em; font-size: var(--fs-text-s); line-height: var(--lh-text); color: var(--grey-1); }
.refs__list { display: grid; gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.refs__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-4) var(--space-12); padding-bottom: var(--space-8); border-bottom: 1px solid var(--black-a08); font-size: var(--fs-text-s); line-height: var(--lh-heading); }
.refs__list a { color: var(--black); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.refs__list small { font-family: var(--font-mono); font-size: var(--fs-text-s); color: var(--grey-2); }
.refs__note { margin: var(--space-12) 0 0; font-size: var(--fs-text-s); line-height: var(--lh-heading); color: var(--grey-2); }

/* Text at AA: 4.5:1 on every light surface the pages use (white, #F9F8F8, #F4F4F2). The design’s two lighter greys go one step
   darker, in its own warm grey; nothing else of the palette changes. */
:root { --grey-3: #6A6A66; --text-dim: #6A6A66; --grey-2: #66665F; }
.chart-card__head b, .app--home .chart-card__head b, :root .lb-chart .chart-card__head b { color: #6A6A66; }
/* The research block after the standings gets more room above it than the sections before it. */
.app--home .sec:has(> .research) { padding-top: calc(var(--section) * 1.5); }
/* On the dark surfaces (the footer, the header's capsule) the design's own light greys already pass, at 7:1. */
.foot, .chead__capsule { --grey-3: #8A8A86; --text-dim: #999999; --grey-2: #999999; }
/* The home page's carousel fades the cards beside the centre one; their words would fade below AA, so only the centre card keeps its
   label and plate, and the others show their pictures. */
.arc__item:not(.is-center) :is(.arc__label, .spec__ref) { visibility: hidden; }

/* Sign in with Contra: the modal a vote or a like opens when signed out, the header's account menu, and a short message at the bottom. */
.authm { width: min(100% - 2 * var(--margin), 26rem); max-width: none; padding: 0; border: 0; border-radius: var(--radius-l); background: var(--white); color: var(--black); box-shadow: 0 24px 64px var(--black-a20); }
.authm::backdrop { background: var(--black-a50); backdrop-filter: blur(2px); }
.authm[open] { animation: authm-in var(--dur-300) var(--ease); }
@keyframes authm-in { from { opacity: 0; translate: 0 var(--space-8); } }
@media (prefers-reduced-motion: reduce) { .authm[open] { animation: none; } }
.authm__card { position: relative; display: grid; gap: var(--space-12); padding: var(--space-32); }
.authm__brand { margin: 0 0 var(--space-12); font-size: var(--fs-text-s); line-height: var(--lh-solid); letter-spacing: var(--tracking-tight); color: var(--grey-2); }
.authm h2 { margin: 0; font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-h4); line-height: var(--lh-heading); letter-spacing: var(--tracking-tight); }
.authm__text { margin: 0 0 var(--space-12); font-size: var(--fs-text-m); line-height: var(--lh-text); color: var(--grey-2); }
.authm__go { justify-content: center; width: 100%; }
.authm__later { justify-self: center; padding: var(--space-8); border: 0; background: none; font: inherit; font-size: var(--fs-text-s); color: var(--grey-2); cursor: pointer; }
.authm__later:hover { color: var(--black); }
.authm__x { position: absolute; top: var(--space-12); right: var(--space-12); width: var(--control-m); height: var(--control-m); border: 0; border-radius: var(--radius-pill); background: none; font: inherit; font-size: var(--fs-text-xl); line-height: 1; color: var(--grey-2); cursor: pointer; }
.authm__x:hover { background: var(--black-a08); color: var(--black); }
.who { position: relative; }
.who__pop { position: absolute; right: 0; top: calc(100% + var(--space-8)); z-index: 30; display: grid; gap: var(--space-8); min-width: 14rem; }
.who__name { margin: 0; font-size: var(--fs-text-m); color: var(--black); overflow-wrap: anywhere; }
.mnav__who { margin: var(--space-12) 0 0; color: var(--white); }
.authtoast { position: fixed; left: 50%; bottom: calc(var(--space-24) + env(safe-area-inset-bottom, 0px)); z-index: 60; translate: -50% var(--space-16); max-width: min(100% - 2 * var(--margin), 32rem); margin: 0; padding: var(--space-12) var(--space-16); border-radius: var(--radius-pill); background: var(--black); color: var(--white); font-size: var(--fs-text-s); line-height: var(--lh-ui); text-align: center; opacity: 0; pointer-events: none; transition: opacity var(--dur-300) var(--ease), translate var(--dur-300) var(--ease); }
.authtoast.is-on { opacity: 1; translate: -50% 0; }
@media (max-width: 1023.98px) { .authtoast { bottom: calc(var(--mnav-h, 72px) + var(--space-16) + env(safe-area-inset-bottom, 0px)); } }

/* What the public site holds back (compose/visibility.mjs): a quiet line where it was, and an output card with its model's name only. */
.held-note { margin: var(--space-8) 0 0; font-size: var(--fs-text-xs); line-height: var(--lh-text); color: var(--grey-2); }
.held-note b { font-weight: 500; color: var(--black); }
.held-note--files { margin: 0 0 var(--space-8); }
.mcard--held { cursor: default; }
.mcard--held .mcard__media { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, var(--black-a04, rgb(0 0 0 / .04)) 0 1px, transparent 1px 8px), var(--surface-2); }
.mcard__held { font-family: var(--font-mono); font-size: var(--fs-text-2xs); letter-spacing: var(--tracking-caps-s, .04em); text-transform: uppercase; color: var(--grey-2); }
.mcard--held .mcard__viewing { display: none; }
.rep__dim--held h4 { color: var(--grey-2); }

/* The launch banner (js/shell.js?h=d015e07a36; compose/content.json's launch): links to the launch posts on X and LinkedIn, in one of three
   styles. None of them moves the page: the bar sits inside the sticky (on home, fixed) header, the pills sit beside sign-in, and the
   toast floats above the page. */
.launch svg { flex: none; width: 14px; height: 14px; }
.launch__links { display: flex; align-items: center; gap: var(--space-16); }
/* Only the words are underlined; the arrow follows them, in the same type, without a line of its own. */
.launch__link { display: inline-flex; align-items: center; gap: var(--space-6); color: inherit; text-decoration: none; white-space: nowrap; }
.launch__link span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.launch__link::after { content: "↗"; margin-left: calc(-1 * var(--space-2)); transition: translate var(--dur-200) var(--ease); }
@media (hover: hover) {
  .launch__link:hover { color: inherit; }
  .launch__link:hover span { text-decoration-thickness: 2px; }
  .launch__link:hover::after { translate: 3px 0; }
}
.launch__link:focus-visible::after { translate: 3px 0; }
.launch__hide { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-pill); background: none; color: inherit; font: inherit; font-size: var(--fs-text-m); line-height: 1; cursor: pointer; opacity: .7; }
@media (hover: hover) { .launch__hide:hover { opacity: 1; background: var(--white-a08); } }
.launch__hide:focus-visible, .launch__link:focus-visible, .launch__pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Bar: a slim strip across the top of the header, the whole width, --launch-h tall and flush with the top of the screen (it takes back
   the header's top padding, --chead-pad, and keeps to the top of its row). Under it Contra Labs' ribbon hangs from the strip's bottom
   edge, not from the top of the screen: the lockup's row starts --chead-pad plus the header's 24px row gap down, so the ribbon rises
   that much less the strip. It starts 4px up, under the strip (which is drawn over it), and is 4px longer, so no hairline shows
   between them and its foot stays where it was. */
.chead:has(> .launch--bar) { --launch-h: 28px; }
.chead:has(> .launch--bar) .labs-lockup {
  --labs-pad: calc(var(--chead-pad) + var(--space-24) - var(--launch-h) + var(--space-4));
  --ribbon-h: calc(var(--control-l) + 2 * var(--space-24) + var(--space-4)); }
.chead .launch--bar {
  position: relative; z-index: 1; grid-column: 1 / -1; align-self: start; display: flex; align-items: center; justify-content: center; gap: var(--space-24);
  height: var(--launch-h); margin: calc(-1 * var(--chead-pad)) calc(-1 * var(--margin)) 0; padding: 0 var(--margin);
  background: var(--black); color: var(--white); font-size: var(--fs-text-s); line-height: var(--lh-ui);
}
.chead .launch--bar p { margin: 0; }
.chead .launch--bar .launch__hide { position: absolute; top: 50%; right: calc(var(--margin) - var(--space-6)); translate: 0 -50%; }

/* Pills: X and LinkedIn buttons beside sign-in; on phones, icons only, in the top bar. */
.launch--pills { display: inline-flex; align-items: center; gap: var(--space-6); }
.launch__pill {
  display: inline-flex; align-items: center; gap: var(--space-6); height: var(--control-m); padding: 0 var(--space-12);
  border: 1px solid var(--black); border-radius: var(--radius-pill); background: var(--white); color: var(--black);
  font-size: var(--fs-text-s); line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-200) var(--ease), color var(--dur-200) var(--ease);
}
@media (hover: hover) { .launch__pill:hover { background: var(--black); color: var(--white); } }
.mhead .launch--pills { margin-left: auto; margin-right: var(--space-8); }
.mhead .launch__pill { width: 32px; height: 32px; padding: 0; justify-content: center; }
.mhead .launch__pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Toast: a card in the bottom-left corner (on phones, above the menu bar), under the sign-in modal. */
.launch--toast {
  position: fixed; left: var(--margin); bottom: calc(var(--space-24) + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: var(--space-8) var(--space-12);
  width: min(100% - 2 * var(--margin), 22rem); padding: var(--space-16); border-radius: var(--radius-l);
  background: var(--black); color: var(--white); box-shadow: var(--shadow-pop); font-size: var(--fs-text-s); line-height: var(--lh-ui);
  animation: launch-in var(--dur-400) var(--ease) both;
}
.launch--toast p { grid-column: 1; margin: 0; font-size: var(--fs-text-m); line-height: var(--lh-heading); }
.launch--toast .launch__hide { grid-column: 2; grid-row: 1; margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) 0 0; }
.launch--toast .launch__links { grid-column: 1 / -1; flex-wrap: wrap; gap: var(--space-8) var(--space-16); }
@keyframes launch-in { from { opacity: 0; translate: 0 var(--space-16); } }
@media (max-width: 767.98px) { .launch--toast { bottom: calc(var(--mnav-bar-h) + var(--space-8) + var(--space-16) + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .launch--toast { animation: none; } .launch__pill, .launch__link::after { transition: none; } }

/* Ours: the leaderboard's quality and cost chart (leaderboard.html, from the designer panel). */
.cost-chart { padding-bottom: var(--space-8); background: var(--white); }  /* no dot matrix behind this chart */
.cost { display: block; width: 100%; height: auto; font-size: 12px; }
.cost__grid { stroke: var(--surface-3); stroke-width: 1; }
.cost__tick { fill: var(--grey-3); }
.cost__dot { fill: var(--white); stroke: var(--black); stroke-width: 1; }
.cost__pt.is-front .cost__dot { stroke: var(--accent); stroke-width: 2.5; }
.cost__front { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.cost__golden { stroke: var(--black); stroke-width: 1; stroke-dasharray: 4 4; }
.cost__label { fill: var(--black); }
.cost__label.is-golden { font-weight: 600; }
/* A model's dot and name show a card with its Elo and cost on hover or focus; the dot fills like Home's chart logos do. */
#cost { position: relative; }
.cost__pt { outline: none; }
.cost__pt .cost__dot { transition: fill var(--dur-200), stroke var(--dur-200); }
.cost__pt.is-active .cost__dot { fill: var(--accent); stroke: var(--accent); }
.cost__pt.is-active image { filter: brightness(0) invert(1); }
.cost__pt:focus-visible .cost__dot { stroke-width: 3; }
.cost__tip { position: absolute; z-index: 5; display: grid; gap: var(--space-4); padding: var(--space-12) var(--space-16); border: 1px solid var(--black-a08); border-radius: var(--radius-s); background: var(--white); box-shadow: var(--shadow-pop); font-family: var(--font-mono); font-size: var(--fs-text-xs); line-height: var(--lh-ui); white-space: pre; color: var(--black); transform: translate(var(--space-16), -50%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-200), visibility var(--dur-200); }
.cost__tip.is-left { transform: translate(calc(-100% - var(--space-16)), -50%); }
.cost__tip.is-on { opacity: 1; visibility: visible; }
.cost__tip-name { display: flex; align-items: center; gap: var(--space-8); margin-bottom: var(--space-4); font-family: var(--font-sans); font-size: var(--fs-text-s); white-space: nowrap; color: var(--grey-1); }
.cost__tip-name i { display: grid; place-items: center; width: var(--icon-box-s); height: var(--icon-box-s); border: 1px solid var(--divider); border-radius: var(--radius-pill); background: var(--white); font-style: normal; }
.cost__tip-name img { width: var(--icon-m); height: var(--icon-m); }
.cost__tip-note { color: var(--accent); }

/* Ours: the makers' marks beside a model's name in the gallery's winner pill, and BenchFlow's mark beside its name. */
.spec__pill-logo { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
.bf-mark { display: inline-block; width: 1em; height: 1em; margin-right: 0.3em; vertical-align: -0.14em; }
/* The leaderboard: with its metric tabs over the chart (no category chips), the "Updated" line keeps to the right. */
.page-tools > .lb-tools__meta { margin-left: auto; }

/* Ours: the human golden's Contra Labs mark is a dark square with a white glyph, so the active state's whitening filter would turn it into a
   blank white square; it keeps its own colours. */
.score-chart .vchart__col.is-active .vchart__logo img.is-own, .vchart__col.is-active .vchart__logo img.is-own, .lb .bar.is-active .bar__logo img.is-own { filter: none; }

/* Ours: the home's specimen, stacked (768-1023px wide): the bouquet reaches about 5% of its width above its box, so the visual starts
   a little lower and the flowers clear the text above them by about 30px. Wider, the text sits beside the bouquet; narrower, the buttons sit between. */
@media (min-width: 768px) and (max-width: 1023.98px) { .specimen__vis { margin-top: calc(4.87vw - 20px); } }
/* Ours: the specimen's paragraphs run the full width of their column (no 30em measure). */
.specimen__text p { max-width: none; }

/* Ours: the dataset page's content list has no divider above it. */
.h-specs #holdings { border-top: 0; }

/* Ours: the partnership link after a note that something isn't published. */
.held-note__more { color: var(--black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; white-space: nowrap; }

/* Ours: the home page's gallery cards use the gallery page's layout (gallery.html): the picture runs the card's width, under its label,
   above its title. Phones keep theirs (home.css?h=c5fc94bb15). */
@media (min-width: 768px) {
  .refs #works.specs .spec { aspect-ratio: auto; padding: 46px 0 108px; }
  .refs #works.specs .spec { container-type: inline-size; }
  .refs #works.specs .spec__pills { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
  .refs #works.specs .spec__pill { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .refs #works.specs .spec__pill:first-child { flex-shrink: 0; }
  .refs #works.specs .spec__pill svg, .refs #works.specs .spec__pill .spec__pill-logo { display: inline-block; margin-right: 4px; vertical-align: -2px; }
  /* A narrower card says less rather than cut every tag short: no category (the gallery's filters say it), then no remix count. */
  @container (max-width: 459.98px) { .refs #works.specs .spec__pill--cat { display: none; } }
  @container (max-width: 339.98px) { .refs #works.specs .spec__pill-rest { display: none; } }
  .refs #works.specs .spec__media { position: relative; inset: auto; display: block; aspect-ratio: 16 / 10; margin: 0 var(--space-12); overflow: hidden; border: 1px solid var(--black-a08); border-radius: var(--radius-xs); background: var(--white); }
  .refs #works.specs .spec__media img { object-fit: cover; object-position: top; }
}

/* Ours: on a job page the hovered bar's name badge is cut to the bar's width; the tooltip beside it gives the model's name in full. */
.d-rank .vchart .vchart__col.is-active .vchart__bar::after { max-width: 100%; box-sizing: border-box; overflow: hidden; }

/* Ours: the article format (blog, methodology), after Core Automation's long reads. One centred column of 720px; the page's own title bar
   gives way to the article's header; sections 88px apart; figures as wide as the text column, and a chart taller than 90vh shrinks to fit
   the screen (--ar is width / height). */
.app--tools main:has(.art) > .top { display: none; }
.art-wrap { padding-block: var(--space-64) var(--space-96); }
.art { grid-column: 1 / -1; width: 100%; max-width: 720px; margin-inline: auto; color: var(--grey-1); font-size: var(--fs-text-l); line-height: var(--lh-text); }
.art p, .art ul, .art ol { margin: 0 0 var(--space-24); }
.art ul, .art ol { padding-left: 1.3em; }
.art li + li { margin-top: var(--space-8); }
.art b { font-weight: 500; color: var(--black); }
.art a:not(.link-arrow) { color: var(--black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .art a:not(.link-arrow):hover { color: var(--accent); } }
.art__title { font-family: var(--font-display-text); font-weight: 400; font-size: clamp(32px, 2.6vw, 46px); line-height: 1.12; letter-spacing: var(--tracking-tight); color: var(--black); }
.art__meta { margin: var(--space-24) 0 0 !important; font-size: var(--fs-text-m); line-height: 1.5; color: var(--grey-2); }
.art__head { margin-bottom: var(--space-48); }
.art__toc { margin: var(--space-48) 0 var(--space-24); padding: 28px 0; border-block: 1px solid var(--divider); font-size: 17px; line-height: 1.55; }
.art__toc h2 { margin: 0 0 var(--space-12); font-family: var(--font-sans); font-weight: 500; font-size: 17px; color: var(--black); }
.art__toc ol { margin: 0; padding-left: 1.6em; }
.art__toc li + li { margin-top: var(--space-4); }
.art__toc li::marker { color: var(--accent); }
.art__toc a { color: var(--black) !important; text-decoration: none !important; }
@media (hover: hover) { .art__toc a:hover { color: var(--accent) !important; } }
.art__sec { margin-top: 88px; scroll-margin-top: calc(var(--chead-h, 72px) + var(--space-24)); }
.art__sec--sub { margin-top: var(--space-48); }
.art__sec h2 { margin: 0 0 var(--space-24); font-family: var(--font-display-text); font-weight: 400; font-size: clamp(26px, 2vw, 32px); line-height: 1.2; letter-spacing: var(--tracking-tight); color: var(--black); }
.art__sec h3 { margin: 0 0 var(--space-16); font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-text-xl); line-height: 1.3; color: var(--black); }
.art__links { display: flex; flex-wrap: wrap; gap: var(--space-12) var(--space-24); }
.art__fig { display: flex; justify-content: center; margin: var(--space-48) 0; }
.art__fig a { display: block; width: min(100%, calc(90vh * var(--ar, 1.6))); }
.art__fig img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); }
@media (max-width: 767.98px) {
  .art-wrap { padding-top: var(--space-32); }
  .art__sec { margin-top: var(--space-64); }
  .art__fig { margin-block: var(--space-32); }
}

/* Ours: the rubric page under its wheel, in the article format. Its two charts sit in the text column like the figures; the rubric-vs-Elo
   chart draws like the leaderboard's Pareto chart, its type a little larger since the column is narrower. */
.art .rb-chart { margin: var(--space-32) 0 var(--space-48); }
.rb-scatter .cost { font-size: 15px; }
.rb-scatter { position: relative; }
.cost__fit { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 4; }
.cost__r { fill: var(--accent); font-family: var(--font-mono); }
/* Phones: the rubric-vs-Elo chart keeps a readable size and scrolls sideways. */
@media (max-width: 767.98px) { .rb-chart.cost-chart { overflow-x: auto; } .rb-scatter { min-width: 640px; } }

/* Ours: the version picker sits above the viewer's bottom bar (the pager), and its menu scrolls inside the viewer when the list is
   long (detail/view.js?h=ff9ef928ca sets its max-height when it opens). */
.viewer__label { z-index: 3; }
.vpick__menu { overflow-y: auto; overscroll-behavior: contain; }

/* The version picker's menu sits 8px below its button, and it scrolls (max-height), which clips the ::before the design bridges that gap
   with: the pointer crossing it left the picker and the menu closed. The bridge is on the picker instead, while the menu is open. */
.vpick:has(> .vpick__menu:not([hidden]))::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--space-8) + 2px); }

/* Ours: the viewer, scrolled into view when a card is chosen far from it, lands under the header (detail/view.js?h=ff9ef928ca). */
@media (min-width: 768px) { .viewer { scroll-margin-top: calc(var(--chead-h, 0px) + var(--space-16)); } }

/* Ours: the quality report's model tabs wrap onto more lines instead of running off the edge (15 models need about 2,000px; the row
   scrolled sideways with its scrollbar hidden, so most models were out of sight). Phones use the model picker (detail.css?h=92d79c8b80). */
@media (min-width: 768px) {
  .d-report .rep__tabs { flex-wrap: wrap; overflow: visible; border-radius: var(--radius-l); }
}

/* Ours: on a phone the bar charts have no right margin for the average's label, which then sits on the last bars. The line stays and the
   label goes, on every page as on Home. */
@media (max-width: 767.98px) { .vchart__ref span { display: none; } }

/* Ours: a bar chart with more than ten bars (the leaderboard has 17) leaves each name less room than its words need, and names ran into
   their neighbours. Those names run bottom to top, each centred under its bar. A job's ranking chart is one of them (16 or 17 bars); the
   version it adds to a name follows the name on the same line. */
ol.vchart__names.vchart__names--up { align-items: start; }
ol.vchart__names.vchart__names--up li, ol.vchart__names.vchart__names--up li:last-child {
  display: block; justify-self: center; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; text-align: right; font-size: var(--fs-text-xs); line-height: 1; }
@media (min-width: 1024px) {
  ol.vchart__names.vchart__names--up:not(.rb-chart .vchart__names) li { font-size: var(--fs-text-s); }
}
ol.vchart__names.vchart__names--up small { display: inline; margin: 0 0 var(--space-4); font-size: inherit; }

/* Ours: Gestalt's mark is a folded delta in greys on the circle's white. It is a slim shape, so it takes three quarters of its circle
   where the other marks take a little over half. */
:is(.vchart__logo, .lb .bar__logo) img[src*="/logos/gestalt"] { width: 75%; height: 75%; }

/* Ours: the dataset page is short, so it isn't stretched to a full screen (.app's 100vh, main's 100svh): the footer follows its list,
   with the space the articles leave before it (.art-wrap's bottom padding, then the footer's margin). */
.chead[data-page="dataset"] + .app, .chead[data-page="dataset"] + .app > main { min-height: 0; }
.chead[data-page="dataset"] + .app > main { padding-bottom: var(--space-96); }
