/* Vertical sticking belongs outside the gallery's horizontal scroll area. */
.benchmarks-page{--benchmark-page-gutter:clamp(24px,calc(10vw - 128px),64px);--benchmark-masthead-gutter:clamp(24px,1.6667vw,32px);--masthead-height:93px;--control-height:0px;--benchmark-heading-height:0px}
.benchmarks-page .wrap{width:calc(100% - 2 * var(--benchmark-page-gutter));max-width:none}
.bench-hero>div:first-child{max-width:960px}
/* A model summary leaves room for the measurements directly below it. */
.has-model-detail .bench-hero{display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:32px;padding:24px 0;margin-top:0;margin-bottom:20px;border-bottom:1px solid #d8ddce}
.has-model-detail .bench-hero:has(.hero-samples:empty){grid-template-columns:minmax(0,1fr)}
.has-model-detail .hero-contact-sheet:has(.hero-samples:empty){display:none}
.has-model-detail .bench-hero .eyebrow{display:flex;align-items:center;gap:9px;color:var(--olive);font-size:10px;letter-spacing:.12em;margin:0}
.has-model-detail .bench-hero h1{font-size:clamp(30px,3.2vw,44px);font-weight:600;line-height:1.15;letter-spacing:-.035em;margin:10px 0 0;max-width:none;overflow-wrap:anywhere;text-wrap:balance}
.has-model-detail .bench-intro{max-width:850px;color:var(--muted);font-size:14px;line-height:1.65;margin:14px 0 0}
.has-model-detail .bench-intro a{color:var(--olive);text-decoration:underline;text-underline-offset:3px}
.profile-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-top:16px}
.profile-actions[hidden]{display:none}
.profile-primary,.profile-details-link{display:inline-flex;align-items:center;gap:12px;padding:8px 0;color:var(--olive);font-size:12px;font-weight:600;text-decoration:none}
.profile-primary{padding:9px 13px;border:1px solid #cbd5be;border-radius:var(--radius-control);background:#e9efdf}
.profile-primary:hover{background:#dfe9d2}
.profile-details-link:hover{text-decoration:underline;text-underline-offset:4px}
.has-model-detail .bench-tally{color:var(--muted);font-size:11px;gap:20px;margin-top:14px;flex-wrap:wrap}
.has-model-detail .bench-tally>span:first-child{display:none}
.has-model-detail .bench-tally strong{font-size:12px;color:var(--ink);font-weight:600}
.has-model-detail .hero-contact-sheet{display:block;min-width:0;width:100%;max-width:none;transform:none;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.has-model-detail .hero-samples{display:block;margin:0}
.has-model-detail .profile-sample{display:block;min-width:0;text-decoration:none;color:var(--olive)}
.has-model-detail .profile-sample figure{margin:0;min-width:0}
.has-model-detail .profile-sample img{display:block;width:100%;height:160px;max-height:none;object-fit:contain;border:1px solid #e1e4d8;border-radius:var(--radius-structure);background:#eeeee5}
.has-model-detail .profile-sample figcaption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 2px 0;font-size:10px;line-height:1.4;color:var(--olive)}
.has-model-detail .profile-sample figcaption>span{font-size:14px;transform:none}
.profile-sample:focus-visible,.profile-actions a:focus-visible{outline:2px solid var(--olive);outline-offset:4px}
@media(max-width:650px){
  .has-model-detail .bench-hero{grid-template-columns:minmax(0,1fr) 88px;gap:0 16px;padding:20px 0;margin-bottom:16px}
  .has-model-detail .bench-hero>div:first-child{display:contents}
  .has-model-detail .bench-hero .eyebrow{grid-column:1;grid-row:1;font-size:9px;align-self:end}
  .has-model-detail .bench-hero h1{grid-column:1;grid-row:2;align-self:start;font-size:30px;margin-top:9px}
  .has-model-detail .bench-intro{grid-column:1/-1;grid-row:3;font-size:13px;margin-top:16px}
  .has-model-detail .profile-actions{grid-column:1/-1;grid-row:4;margin-top:12px;gap:12px 20px}
  .has-model-detail .bench-tally{grid-column:1/-1;grid-row:5;font-size:10px;margin-top:12px;gap:16px}
  .has-model-detail .hero-contact-sheet{grid-column:2;grid-row:1/3;align-self:center}
  .has-model-detail .profile-sample img{height:80px}
  .has-model-detail .profile-sample figcaption{font-size:9px;padding-top:5px}
}
/* The title and its version form one readable identity at every width. */
.bench-hero:has(.bench-title-brand){grid-template-columns:minmax(0,1fr) minmax(300px,410px);gap:clamp(28px,4vw,64px);padding-block:clamp(28px,3vw,42px) 36px}
.bench-hero h1:has(.bench-title-brand){margin-top:16px;font-size:clamp(40px,4.45vw,64px);font-weight:600;line-height:1.08;letter-spacing:-.04em}
.bench-title-brand{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.bench-title-description{display:block;margin-top:10px;font-size:clamp(23px,2.1vw,30px);font-weight:500;line-height:1.25;letter-spacing:-.025em}
.bench-hero [data-stealthmark-version]{display:inline-block;flex:none;padding:5px 9px;border:1px solid #cfd6c5;border-radius:var(--radius-label);background:#edf0e5;color:#4b6040;font:600 14px/1.25 "DM Sans",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.035em;white-space:nowrap}
.bench-hero [data-stealthmark-version]:empty{display:none}
.bench-hero:has(.bench-title-brand) .bench-intro{max-width:65ch;margin-top:20px;font-size:15px;line-height:1.7}
.bench-hero:has(.bench-title-brand) .bench-tally{margin-top:22px}
@media(max-width:650px){
  .bench-title-brand{column-gap:12px}
  .bench-title-description{margin-top:8px}
  .bench-hero:has(.bench-title-brand) .bench-intro{font-size:14px;line-height:1.65}
}
/* Keep the site's identity above the tools, with stable document geometry. */
.benchmarks-page .masthead.hub-masthead{position:sticky;top:0;z-index:20;width:100%;max-width:none;margin:0;padding-inline:var(--benchmark-masthead-gutter);background:var(--paper)}
.benchmarks-page .masthead.hub-masthead.is-compact{min-height:59px;padding-block:7px}
.benchmarks-page .hub-masthead.is-compact .hub-brand{font-size:23px;gap:8px}
.benchmarks-page .hub-masthead.is-compact .hub-brand img{width:32px;height:32px}
.benchmarks-page>main{padding-top:var(--masthead-compensation,0px)}
.benchmarks-page .bench-controls{top:var(--masthead-height)}
.gallery-header{position:sticky;top:var(--control-height);z-index:14;background:#fffefa;border-radius:var(--radius-structure) var(--radius-structure) 0 0;box-shadow:0 5px 12px #2937240c}
.gallery-heading-scroll{overflow-x:auto;scrollbar-width:none;padding:12px 16px 10px;border:1px solid #d8ddce;border-bottom:0;border-radius:inherit}
.gallery-heading-scroll::-webkit-scrollbar{display:none}
.benchmark-table>.gallery-scroll{border-top:0;border-radius:0 0 var(--radius-structure) var(--radius-structure);padding-top:0}
.prompt-headings .sort-heading>small{white-space:pre-line;line-height:1.4}
.result-measure{display:none}
.result-continuation{font-size:9px;font-weight:400;color:var(--muted);white-space:nowrap}
.result-card{scroll-margin-top:calc(var(--control-height) + var(--benchmark-heading-height) + 12px)}
.prompt-headings .sort-heading[data-theme]{position:relative}
.prompt-headings .sort-heading[data-theme]>strong{padding-right:20px}
.scene-heading-info{position:absolute;inset:0;display:flex;align-items:flex-start;justify-content:flex-end;width:100%;height:100%;padding:9px 8px;border:0;border-radius:inherit;background:transparent;color:var(--olive);cursor:pointer}
.scene-heading-info svg,.gallery-page-info svg,.scene-result-info svg{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;opacity:.65}
.scene-heading-info:hover svg,.scene-heading-info:focus-visible svg{opacity:1}
.scene-heading-info:focus-visible{outline:2px solid var(--copper);outline-offset:-3px}
.scene-heading-detail{position:fixed;inset:auto;margin:0;padding:18px 48px 18px 18px;border:1px solid #ccd5bf;border-radius:var(--radius-structure);background:#fffefa;color:var(--ink);box-shadow:0 8px 28px #29372424;z-index:25;max-width:calc(100vw - 24px)}
.scene-heading-detail[hidden]{display:none}
.scene-heading-detail h2{margin:0 0 7px;font-size:14px;font-weight:650;line-height:1.35}
.scene-heading-detail p{margin:0;white-space:pre-line;font-size:13px;line-height:1.5;color:var(--muted)}.scene-heading-detail p+p{margin-top:8px}
.scene-detail-close{position:absolute;top:2px;right:2px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:var(--radius-control);background:transparent;color:var(--olive);font-size:22px;cursor:pointer}
.scene-detail-close:focus-visible{outline:2px solid var(--copper);outline-offset:-3px}
.scene-result-info{display:none}

@media(min-width:951px){
  /* Include the full grid in each scroll surface, including trailing padding. */
  .gallery-heading-scroll .prompt-headings,.benchmark-table #benchmark-results{min-width:min-content}
  /* A pinned header meets the straight toolbar edge; floating cards stay round. */
  .gallery-header.is-docked,.gallery-header.is-docked .gallery-heading-scroll{border-radius:0}
  .gallery-header.is-docked .gallery-heading-scroll{border-top-color:transparent}
  .gallery-header.is-compact .gallery-heading-scroll{height:72px;padding-block:7px 8px;scrollbar-width:none}
  .gallery-header.is-compact .gallery-heading-scroll::-webkit-scrollbar{display:none}
  .gallery-header.is-compact .sort-heading{height:56px;padding:7px 10px;gap:4px}
  .gallery-header.is-compact .model-sort-heading{padding:0}
  .gallery-header.is-compact .sort-heading[data-theme]>small{display:none}
  .gallery-header.is-compact .family-profile{margin-top:0}
  .gallery-header.is-compact+.gallery-scroll{padding-top:var(--benchmark-header-compensation,0px)}
}

@media(max-width:950px){
  .benchmarks-page{--benchmark-page-gutter:12px;--benchmark-masthead-gutter:12px}
  .gallery-header{display:none}
  .bench-controls{padding-top:env(safe-area-inset-top,0px)}
  /* Clip rounded corners without introducing an ancestor scroll container. */
  .model-row .result-card{overflow:clip}
  .model-row .result-heading{position:sticky;top:var(--control-height);z-index:5;min-height:50px;height:50px;padding-block:0;background:#fffefa;border-bottom:1px solid #e2e7d8;gap:4px}
  .model-row .result-heading>span{min-width:0}
  .model-row .result-heading .result-measure{display:none}
  .model-row .result-share{flex:none}
  .gallery-enhanced.single-view .scene-result-info{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:var(--radius-control);background:transparent;color:var(--olive);cursor:pointer}
  .scene-result-info:focus-visible{outline:2px solid var(--copper);outline-offset:-3px}
}

@media(max-width:760px){
  .benchmarks-page .masthead.hub-masthead.is-compact{min-height:0;padding-block:4px;gap:0}
  .benchmarks-page .hub-masthead.is-compact .hub-brand{min-height:32px;font-size:21px}
  .benchmarks-page .hub-masthead.is-compact .hub-brand img{width:28px;height:28px}
}
