/* A model's datasheet (reference-brief.mjs). It follows the scorecard's language: one panel, rows of a measure,
   the field of benchmarked models and the value, then the facts as an open sheet and the reference material behind quiet toggles. */
.has-model-profile{--profile-ink:#172d38;--profile-acid:#dcf594;--profile-muted:#65757a}
.reference-brief{--rb-ink:var(--ink,#203641);--rb-muted:var(--muted,#68777a);--rb-line:var(--line,#d7ded5);color:var(--rb-ink);padding-top:0;padding-bottom:28px;font-family:"DM Sans",sans-serif;scroll-margin-top:24px}
.reference-brief a{color:inherit;text-underline-offset:3px;text-decoration-thickness:1px}
.reference-brief a:hover{color:var(--olive,#4b6244)}
.reference-brief a:focus-visible,.reference-brief summary:focus-visible{outline:2px solid var(--olive,#4b6244);outline-offset:3px}
#model-reference-brief{scroll-margin-top:24px}

/* Outside a model page's overview: the lead, and the score tiles a single result or older generation still needs. */
.rb-lead{padding:28px 0}.rb-kicker{font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;margin:0 0 12px;color:var(--rb-muted)}
.rb-proposition{font-size:23px;line-height:1.5;max-width:850px;margin:0 0 20px}.rb-primary{font-size:13px;font-weight:700;display:inline-flex;gap:24px}
/* Where shown, the score tiles (and an older generation's note above them) sit on the datasheet's top edge. */
.rb-scores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--rb-line);border-bottom:0;border-radius:var(--radius-structure) var(--radius-structure) 0 0;background:#eaf0df;margin:0 22px;overflow:hidden}
.rb-generation+.rb-scores{border-radius:0}
.rb-score{display:grid;gap:10px;padding:25px 30px 24px;text-decoration:none!important;transition:background .2s}
.rb-score:first-child{background:#e0edc7}
.rb-score+.rb-score{border-left:1px solid #ced9be}
/* The scorecard right above shows these totals; they stay only where the scorecard is hidden (a single result, an older generation). */
.has-model-overview .rb-scores{display:none}
.rb-score:hover{background:#dae8c4;color:var(--rb-ink)!important}
.rb-score>span:first-child{display:flex;justify-content:space-between;gap:8px;font-size:11px;font-weight:750}
.rb-score>span:first-child i{font-style:normal;font-size:15px;opacity:.5}
.rb-score>strong{font-size:clamp(38px,4vw,56px);line-height:1.08;font-weight:500;letter-spacing:-2.5px;font-variant-numeric:tabular-nums}
.rb-score strong small{font-size:11px;margin-left:6px;color:var(--rb-muted);letter-spacing:0;font-weight:400}
.rb-score>small{font-size:10px;color:#62725a;line-height:1.4}
.rb-score-track{height:3px;border-radius:var(--radius-structure);background:#cad6ba;overflow:hidden}
.rb-score-track i{display:block;height:100%;width:var(--score);background:#6c8952;border-radius:var(--radius-structure)}
.rb-generation{font-size:11px;color:var(--rb-muted);margin:0 22px;padding:13px 16px;background:#eaf0df;border:1px solid var(--rb-line);border-bottom:0;border-radius:var(--radius-structure) var(--radius-structure) 0 0}

/* The panel */
.rb-panel{--field-focus:var(--rb-ink);border:1px solid var(--rb-line);border-radius:var(--radius-structure);background:#fffefa;padding:26px 30px 22px}
.rb-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,470px);gap:14px 48px;align-items:end;margin-bottom:18px}
.rb-head .eyebrow{margin:0 0 8px;color:var(--olive,#4b6244)}
.rb-head h2{margin:0;font-size:24px;line-height:1.2;font-weight:600;letter-spacing:-.04em}
.rb-fit{margin:0;font-size:14px;line-height:1.6}
.rb-fit>span{display:block;margin-bottom:3px;font-size:11px;font-weight:650;color:var(--rb-muted)}
.rb-legend{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0 0 6px;font-size:12px;color:var(--rb-muted)}
.rb-legend>span{display:inline-flex;align-items:center;gap:8px}
.rb-key{display:inline-block;flex:none}
.rb-key--focus{width:12px;height:12px;border-radius:50%;background:var(--field-focus)}
.rb-key--dot{width:7px;height:7px;border-radius:50%;background:#9aa58a;opacity:.7}
.rb-key--median{width:2px;height:12px;background:#233229;opacity:.85}

/* Measures: price, context and speed against every benchmarked model. Further right is better. */
.rb-measure{position:relative;display:grid;grid-template-columns:72px minmax(190px,1.2fr) minmax(220px,2fr) 178px;grid-template-areas:'icon name strip value' 'icon name strip note';column-gap:20px;row-gap:2px;align-items:center;padding:13px 10px}
.rb-measure-icon{grid-area:icon}.rb-measure-name{grid-area:name}.rb-strip{grid-area:strip}
.rb-measure-value{grid-area:value;align-self:end}
.rb-measure-note{grid-area:note;align-self:start;display:grid;gap:1px;justify-items:end;text-align:right}
.rb-measure-note small{font-size:12px;line-height:1.35;color:var(--rb-muted)}
.rb-measure+.rb-measure::before{content:'';position:absolute;inset:0 10px auto;height:1px;background:var(--rb-line)}
.rb-measure-icon{display:grid;place-items:center;width:72px;height:48px;border:1px solid var(--rb-line);border-radius:var(--radius-structure);background:#f1f2ec;color:var(--olive,#4b6244)}
.rb-measure-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.rb-measure-name{display:grid;gap:3px;min-width:0}
.rb-measure-name strong{font-size:15px;line-height:1.3;font-weight:650}
.rb-measure-name small{font-size:12px;line-height:1.4;color:var(--rb-muted)}
.rb-strip{min-width:0}
.rb-axis{display:flex;justify-content:space-between;margin:4px 6px 0;font-size:9px;font-weight:650;letter-spacing:.1em;text-transform:uppercase;color:var(--rb-muted)}
.rb-measure-value{text-align:right}
.rb-measure-value strong{font-size:20px;line-height:1.15;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.rb-measure-value strong small{font-size:12px;font-weight:400;color:var(--rb-muted)}
.reference-brief .field-strip{position:relative;height:18px;margin:0 6px;background:linear-gradient(var(--field-line,#d9dfd2),var(--field-line,#d9dfd2)) center/100% 2px no-repeat}
.reference-brief .field-dot{position:absolute;top:50%;left:var(--x);width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;background:var(--field-dot,#9aa58a);opacity:.7}
.reference-brief .field-median{position:absolute;top:50%;left:var(--x);width:2px;height:12px;margin:-6px 0 0 -1px;background:var(--field-ink,#233229);opacity:.85}
.reference-brief .field-mark{position:absolute;z-index:1;top:50%;left:var(--x);width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--field-focus);box-shadow:0 0 0 2px #fffefa}

/* The sheet: label and value side by side, three columns, hairlines only. */
.rb-sheet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:32px;margin:14px 0 0;padding:0 10px}
.rb-sheet>div{display:grid;grid-template-columns:118px minmax(0,1fr);gap:12px;align-items:baseline;padding:10px 0;border-top:1px solid var(--rb-line);min-width:0}
.rb-sheet dt{font-size:12px;line-height:1.4;color:var(--rb-muted)}
.rb-sheet dd{margin:0;font-size:14px;line-height:1.45;font-weight:550;overflow-wrap:anywhere}
.rb-sheet .rb-wide{grid-column:1/-1}
.rb-sheet .rb-wide dd{font-weight:450}
.rb-sheet code{font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding:2px 6px;border:1px solid var(--rb-line);border-radius:var(--radius-control);background:#f1f2ec;color:var(--rb-ink)}
.rb-estimate{display:inline-block;margin-left:7px;font-size:11px;font-weight:400;color:#77663f}

/* Running it locally */
.rb-local{margin-top:20px;padding:16px 10px 0;border-top:1px solid var(--rb-line)}
.rb-local h3{margin:0 0 10px;font-size:16px;line-height:1.3;font-weight:650;letter-spacing:-.01em}
.rb-local-facts{display:flex;flex-wrap:wrap;gap:8px 36px;margin:0}
.rb-local-facts>div{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;min-width:0}
.rb-local-facts dt{font-size:12px;color:var(--rb-muted)}
.rb-local-facts dd{margin:0;font-size:14px;font-weight:550;overflow-wrap:anywhere}
.rb-downloads{display:flex;flex-wrap:wrap;gap:8px 24px;margin:12px 0 0;font-size:13px;font-weight:600}
.rb-downloads a{color:var(--olive,#4b6244);text-decoration:underline}

/* Reference material behind quiet toggles */
.rb-more-list{margin-top:20px;border-top:1px solid var(--rb-line)}
.rb-more+.rb-more{border-top:1px solid #ebeee4}
.rb-more summary{display:flex;align-items:center;gap:10px;padding:12px 10px;cursor:pointer;list-style:none;font-size:13px;font-weight:600}
.rb-more summary::-webkit-details-marker{display:none}
.rb-more summary::after{content:'';margin-left:auto;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);opacity:.55;transition:transform .18s}
.rb-more[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.rb-more summary:hover{color:var(--olive,#4b6244)}
.rb-more summary small{padding:1px 8px;border-radius:var(--radius-label);background:#f1f2ec;font-size:11px;font-weight:600;color:var(--rb-muted)}
.rb-more-body{padding:0 10px 18px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.rb-more-body p{margin:8px 0}
.rb-more-body code{font-size:11px;color:var(--rb-muted);overflow-wrap:anywhere}
.rb-pricing-summary{max-width:850px}
.rb-ledger{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 30px}
.rb-ledger>li{border-top:1px solid #ebeee4;padding:12px 0;min-width:0}
.rb-list-heading{display:flex;flex-wrap:wrap;gap:4px 15px;justify-content:space-between;align-items:baseline}
.rb-list-heading>small{font-size:11px;color:var(--rb-muted)}
.rb-rates{display:flex;flex-wrap:wrap;gap:6px 19px;margin-top:8px}
.rb-rates span{color:var(--rb-muted);font-size:11px}
.rb-rates b{color:var(--rb-ink);font-weight:600;font-size:15px;margin-left:3px;font-variant-numeric:tabular-nums}
.rb-ledger p{margin:4px 0}.rb-unit{font-size:11px;color:var(--rb-muted)}
.rb-weights li{display:flex;flex-direction:column}.rb-weights .rb-estimate{margin-left:0}
.rb-routes{display:flex;flex-wrap:wrap;gap:12px 30px;list-style:none;padding:0;margin:14px 0 0}
.rb-routes li{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.rb-routes li>a{font-weight:650}
.rb-artifact-list{flex-direction:column}
.rb-source-list{list-style:none;padding:0;margin:12px 0 0;columns:2;column-gap:30px}
.rb-source-list li{break-inside:avoid;margin-bottom:6px}
.rb-method-links{margin-top:12px;color:var(--rb-muted)}

/* The family: each member's score and the head-to-head comparison */
.rb-family{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px 28px;margin-top:4px;padding:16px 10px 0;border-top:1px solid var(--rb-line)}
.rb-more-list+.rb-family{margin-top:0}
.rb-family h3{margin:0;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--rb-muted)}
.rb-family ol{display:flex;flex-wrap:wrap;gap:10px 32px;list-style:none;margin:0;padding:0}
.rb-family li{display:flex;align-items:baseline;gap:9px}
.rb-family .is-self::before{content:'';flex:none;width:9px;height:9px;border-radius:50%;background:var(--field-focus);align-self:center}
.rb-family .is-self small{font-size:11px;color:var(--rb-muted)}
.rb-family-name{font-size:14px;font-weight:650;text-decoration:none}
.rb-family-name:hover{text-decoration:underline}
.rb-family-score{font-size:13px;color:var(--rb-muted);font-variant-numeric:tabular-nums}
.rb-family-compare{font-size:12px;font-weight:600;color:var(--olive,#4b6244)!important;text-decoration:underline}

.has-model-profile .profile-gallery-nav{background:var(--profile-ink);color:#f2f5e9;border:0;border-radius:var(--radius-structure);margin-top:16px;padding:27px 30px}
.has-model-profile .profile-gallery-kicker{color:var(--profile-acid);font-size:9px;letter-spacing:.16em;margin-bottom:9px}
.has-model-profile .profile-gallery-nav h2{font-size:26px;letter-spacing:-.9px}
.has-model-profile .profile-all-models{background:#ffffff09;border-color:#c9ded32a;color:#ecf3df;box-shadow:none}
.has-model-profile .profile-all-models small{color:#afc2c1}.has-model-profile .profile-all-models:hover{background:#ffffff13;border-color:#acc291}

@media(max-width:1100px){.rb-score{padding:22px}.rb-sheet{grid-template-columns:repeat(2,minmax(0,1fr))}.rb-measure{grid-template-columns:56px minmax(170px,1fr) minmax(180px,1.6fr) 160px;column-gap:16px}.rb-measure-icon{width:56px;height:44px}}
@media(max-width:760px){
  .rb-scores{margin-inline:12px}.rb-score{padding:20px 17px;gap:10px}.rb-score>strong{font-size:39px}.rb-score>span:first-child{font-size:10px;min-height:26px}.rb-score>small{font-size:9px}
  .rb-panel{padding:22px 16px 18px}
  .rb-head{grid-template-columns:1fr;gap:12px}.rb-head h2{font-size:21px}
  .rb-measure{grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:'icon name value' 'strip strip strip' 'note note note';row-gap:8px;column-gap:12px;padding:14px 4px}
  .rb-measure-icon{width:44px;height:40px}.rb-measure-icon svg{width:20px;height:20px}
  .rb-measure-value{align-self:center}
  .rb-measure-note{display:flex;flex-wrap:wrap;gap:2px 14px;justify-content:flex-start;text-align:left}
  .rb-measure+.rb-measure::before{inset:0 4px auto}
  .rb-sheet{grid-template-columns:1fr;padding:0 4px}.rb-sheet>div{grid-template-columns:120px minmax(0,1fr)}
  .rb-local,.rb-family{padding-inline:4px}.rb-more summary{padding-inline:4px}.rb-more-body{padding-inline:4px}
  .rb-ledger{grid-template-columns:1fr}.rb-source-list{columns:1}
  .has-model-profile .profile-gallery-nav{padding:23px}.has-model-profile .profile-gallery-nav h2{font-size:23px}
}
@media(max-width:450px){
  .rb-scores{margin-inline:7px}.rb-score{padding:19px 10px;gap:9px}.rb-score>span:first-child{font-size:9px;line-height:1.4;min-height:28px}.rb-score>span:first-child i{display:none}.rb-score>strong{font-size:34px;letter-spacing:-1.8px}.rb-score strong small{font-size:8px;margin-left:3px}.rb-score>small{font-size:8px}
  .rb-measure-value strong{font-size:18px}.rb-measure-name small,.rb-measure-note small{font-size:11px}
  .rb-sheet>div{grid-template-columns:104px minmax(0,1fr)}.rb-sheet dd{font-size:13px}
  .has-model-profile .profile-gallery-nav{padding:21px 18px}.has-model-profile .profile-gallery-nav h2{font-size:22px}
}
@media(forced-colors:active){.reference-brief .field-dot,.reference-brief .field-median,.reference-brief .field-mark,.rb-key{forced-color-adjust:none}.reference-brief .field-dot,.rb-key--dot{background:GrayText}.reference-brief .field-median,.rb-key--median{background:CanvasText}.reference-brief .field-mark,.rb-key--focus{background:Highlight;box-shadow:0 0 0 2px Canvas}}
@media(prefers-reduced-motion:reduce){.rb-score,.rb-more summary::after{transition:none}}
