/* Three releases form one chronological row, joined by two vector arrows. */
.benchmark-board { align-self:start; min-width:0; width:100%; margin:24px 0 0; padding:16px 20px; border:1px solid #dee3f0; border-top-color:#a6b2d2; border-radius:8px; background:#fff; scroll-margin-top:110px; }
/* The benchmark name leads; its plain-language definition belongs with the title. */
.benchmark-heading { margin-bottom:16px; padding-bottom:13px; border-bottom:1px solid var(--profile-line); text-align:center; }
.benchmark-heading h2 { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:center; gap:4px 12px; margin:0; font-family:var(--english-font); font-size:calc(29px * var(--type-scale,1)); font-weight:550; line-height:1.25; }
.benchmark-name { flex:none; color:var(--profile-iris); letter-spacing:-.015em; white-space:nowrap; }
.benchmark-heading a.benchmark-name { color:var(--profile-iris); text-decoration:none; text-underline-offset:.16em; text-decoration-thickness:1px; }
.benchmark-heading a.benchmark-name:hover, .benchmark-heading a.benchmark-name:focus-visible { color:var(--profile-iris); text-decoration:underline; }
.benchmark-heading a.benchmark-name:focus-visible { outline:2px solid var(--profile-iris); outline-offset:4px; border-radius:2px; }
.benchmark-definition { min-width:0; max-width:100%; color:var(--profile-text); font-family:var(--reading-font); font-size:calc(17px * var(--type-scale,1)); font-weight:500; line-height:1.6; text-wrap:balance; overflow-wrap:anywhere; }
.benchmark-separator { align-self:center; color:var(--profile-iris); font-size:18px; font-weight:400; line-height:1; opacity:.65; }
.benchmark-comparison { position:relative; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x proximity; scrollbar-width:thin; scrollbar-color:var(--profile-line) transparent; }
/* Let thumbnail shadows breathe without moving the comparison's content. */
@media (hover:hover) and (pointer:fine) { .benchmark-comparison { padding-block:8px 14px; margin-block:-8px -14px; } }
.benchmark-comparison:focus-visible { outline:2px solid var(--profile-accent); outline-offset:4px; }
/* Keep the charts close together without shrinking the release graphics. */
.benchmark-panels { display:grid; grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 32px minmax(0,1fr); width:100%; min-width:880px; max-width:1040px; margin-inline:auto; }
.benchmark-panel { display:flex; flex-direction:column; min-width:0; padding:0 6px; scroll-snap-align:start; }
/* Closed, hollow block arrows follow the T1 method figure's vector geometry. */
.benchmark-step { position:relative; z-index:1; display:grid; place-items:center; color:#5b6780; pointer-events:none; }
.benchmark-step svg { display:block; width:32px; height:34px; overflow:visible; transform:translateX(var(--benchmark-step-offset,0px)); }
.benchmark-step path { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
/* Share heading, plot and legend rows across all three releases. */
@supports (grid-template-rows:subgrid) {
  .benchmark-panels { grid-template-rows:auto minmax(0,1fr) auto; }
  .benchmark-panel { display:grid; grid-template-rows:subgrid; grid-row:1 / span 3; }
  .benchmark-step { grid-row:2; }
}
.benchmark-swipe-note { display:none; margin:0 0 8px; color:var(--profile-muted); font-family:var(--ui-font); font-size:12px; line-height:1.6; text-align:center; }
.benchmark-model-heading { display:flex; flex:none; align-items:baseline; justify-content:center; gap:12px; margin-bottom:8px; }
.benchmark-model-heading h3 { display:flex; align-items:baseline; gap:8px; margin:0; color:var(--profile-text); font-family:var(--english-font); font-size:calc(22px * var(--type-scale,1)); font-weight:550; line-height:1.2; }
.benchmark-model-heading .benchmark-model-link { color:inherit; text-decoration:none; text-underline-offset:.16em; text-decoration-thickness:1px; white-space:nowrap; }
.benchmark-model-heading .benchmark-model-link:is(:hover,:focus-visible) { color:var(--profile-accent); text-decoration:underline; }
.benchmark-model-heading .benchmark-model-link:focus-visible { outline-offset:3px; }
.benchmark-year { color:var(--profile-muted); font-family:var(--ui-font); font-size:calc(11px * var(--type-scale,1)); font-weight:400; font-variant-numeric:tabular-nums; white-space:nowrap; }
.benchmark-result { display:inline-flex; align-items:baseline; white-space:nowrap; color:var(--profile-iris); font-family:var(--english-font); font-size:calc(26px * var(--type-scale,1)); line-height:1; font-weight:550; font-variant-numeric:lining-nums tabular-nums; }
.benchmark-result small { margin-left:2px; font-family:var(--ui-font); font-size:12px; font-weight:400; }
/* Reserve the final number's width so the heading and percent sign stay still. */
.benchmark-count { position:relative; display:inline-grid; vertical-align:baseline; isolation:isolate; }
.benchmark-count::before { content:attr(data-benchmark-count); visibility:hidden; }
.benchmark-count::before, .benchmark-count-value { grid-area:1 / 1; text-align:right; }
.benchmark-count::after { content:""; position:absolute; z-index:-1; inset:-.18em -.3em; border-radius:50%; pointer-events:none; background:radial-gradient(ellipse,#a48adc55 0%,#a48adc20 40%,transparent 72%); opacity:var(--count-aura,0); transform:scale(var(--count-aura-scale,.8)); }
.benchmark-reels { position:absolute; inset:0; display:flex; justify-content:flex-end; align-items:flex-start; visibility:hidden; pointer-events:none; filter:drop-shadow(0 0 .08em #9671dc24); }
.benchmark-digit { position:relative; flex:none; width:1ch; height:1em; overflow:hidden; mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent); -webkit-mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent); }
.benchmark-digit-strip { display:block; will-change:transform; filter:blur(var(--reel-blur,0px)); }
.benchmark-digit-strip > span { display:block; height:1em; line-height:1; text-align:center; }
.benchmark-reel-point { flex:none; line-height:1; }
.benchmark-count:is([data-count-state="running"],[data-count-state="settling"]) .benchmark-count-value { visibility:hidden; }
.benchmark-count:is([data-count-state="running"],[data-count-state="settling"]) .benchmark-reels { visibility:visible; }
.benchmark-count[data-count-state="landed"] .benchmark-count-value {
  color:transparent;
  background:linear-gradient(110deg,var(--profile-iris) 37%,#b5a1ee 45%,#c9f0ff 50%,#a995e5 55%,var(--profile-iris) 63%);
  background-size:270% 100%;
  background-position:var(--count-shine-x,100%) center;
  background-clip:text;
  -webkit-background-clip:text;
  transform:scale(var(--count-land-scale,1));
  transform-origin:center 75%;
  filter:drop-shadow(0 0 var(--count-land-glow,0em) #8b6ecf66);
}
@media (prefers-reduced-motion:reduce) {
  .benchmark-reels,.benchmark-count::after { display:none; }
  .benchmark-count .benchmark-count-value { visibility:visible !important; color:var(--profile-iris) !important; background:none !important; transform:none !important; filter:none !important; }
}
@media print {
  .benchmark-count::before { visibility:visible; }
  .benchmark-count .benchmark-count-value { visibility:hidden !important; }
  .benchmark-reels,.benchmark-count::after { display:none; }
}
.benchmark-plot { display:flex; flex:1 0 auto; align-items:center; justify-content:center; min-height:0; }
.publication-figure.benchmark-figure { align-self:center; width:100%; max-width:none; margin-inline:auto; }
/* The widest source sets a shared frame; contain keeps every original chart intact. */
.publication-figure.benchmark-figure > a { position:relative; aspect-ratio:1286 / 846; max-height:228px; padding:2px; border:0; border-radius:4px; box-shadow:none; background:#fff; }
.publication-figure.benchmark-figure img { position:absolute; inset:2px; width:calc(100% - 4px); height:calc(100% - 4px); max-height:none; margin:0; object-fit:contain; }
/* Keep the narrow crops' frames close to the artwork at the shared chart height. */
@supports (width:1cqw) {
  .benchmark-panels { --benchmark-first-share:calc(1.3 / 3.3); container-type:inline-size; grid-template-columns:minmax(0,1.3fr) 32px minmax(0,1fr) 32px minmax(0,1fr); max-width:940px; }
  .publication-figure.benchmark-figure { --benchmark-frame-height:min(228px,calc(((100cqw - 64px) * var(--benchmark-first-share) - 12px) * 846 / 1286)); }
  .publication-figure.benchmark-figure > a { height:var(--benchmark-frame-height); }
  .publication-figure:is(.benchmark-figure--glm47,.benchmark-figure--glm5) { width:calc((var(--benchmark-frame-height) - 4px) * var(--benchmark-image-ratio) + 4px); max-width:100%; }
}
.benchmark-release-key { display:flex; flex:none; justify-content:center; align-items:start; min-width:0; margin:10px -12px 0; }
.benchmark-aggregate-note { margin:0; color:var(--profile-muted); font-family:var(--ui-font); font-size:calc(14px * var(--type-scale,1)); line-height:1.6; text-align:center; text-wrap:balance; }
.benchmark-aggregate-note p { margin:0; }
.benchmark-aggregate-note .benchmark-aggregate-title { margin-bottom:4px; color:var(--profile-text); font-size:calc(15px * var(--type-scale,1)); font-weight:600; }
.benchmark-legend { display:flex; flex-wrap:wrap; justify-content:center; gap:5px 8px; padding:0; margin:0; list-style:none; font-family:var(--ui-font); font-size:calc(14px * var(--type-scale,1)); line-height:1.6; }
.benchmark-legend li { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.benchmark-swatch { width:10px; height:10px; flex-shrink:0; border:1px solid #00000018; border-radius:2px; background:var(--model-color); }
html[data-user-color-scheme="dark"] .benchmark-board { background:#232d40; border-color:#43516d; border-top-color:#8fa1d9; }
html[data-user-color-scheme="dark"] .benchmark-step { color:#bac7df; }
@media (max-width:1100px) { .benchmark-board { padding-inline:18px; } }
@media (max-width:960px) { .benchmark-swipe-note { display:block; } }
@media (max-width:850px) { .benchmark-board { margin-top:26px; } }
@media (max-width:700px) {
  .benchmark-board { padding-inline:14px; }
  .benchmark-heading { margin-bottom:13px; padding-bottom:11px; }
  .benchmark-heading h2 { flex-direction:column; align-items:center; gap:3px; font-size:calc(27px * var(--type-scale,1)); }
  .benchmark-definition { font-size:calc(16px * var(--type-scale,1)); }
  .benchmark-separator { display:none; }
  .benchmark-comparison { scroll-snap-type:x mandatory; }
  .benchmark-panel { padding-inline:6px; }
  .benchmark-swipe-note { display:block; }
}
@media (max-width:520px) {
  .benchmark-panels { --benchmark-first-share:calc(1 / 3); grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 32px minmax(0,1fr); width:calc(300% + 64px); min-width:0; max-width:none; }
  .benchmark-panel { padding-inline:6px; }
  .benchmark-release-key { margin-inline:0; }
  .benchmark-legend { column-gap:5px; }
}
@media (max-width:380px) {
  .benchmark-board { padding-inline:10px; }
  html[lang="zh-CN"] .benchmark-aggregate-note p:not(.benchmark-aggregate-title) { letter-spacing:-.02em; }
}
