/* Robots’ Last Exam — leaderboard.
   Same shell and type as the redesigned homepage. The tokens, top band, mark, navigation, and button rules mirror /home-redesign.css; when those change, change them here too.
   This page is a light "paper" surface throughout, so the top band is always paper with ink type. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono-latin-var.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

.lb2-root { background: #ffffff; -webkit-text-size-adjust: 100%; }
.lb2-page {
  --ink: #1d1d1f;
  --paper: #ffffff;
  --cream: #f5f5f7;
  --panel: #1d1d1f;
  --brass: #2997ff; --night: #000000; --accent: #0071e3;

  --rail: 78px;                 /* left layout gutter */
  --top: 76px;                  /* height of the top band */
  --right: 14.4vw;              /* the footer's right vertical line */
  --pad: 32px;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --muted: color-mix(in srgb, var(--ink) 68%, var(--paper));
  --faint: color-mix(in srgb, var(--ink) 54%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 24%, transparent);     /* the homepage's hairline */
  --hair: color-mix(in srgb, var(--ink) 11%, transparent);
  
  --accent-soft: color-mix(in srgb, var(--accent) 34%, var(--paper));
  --track: color-mix(in srgb, var(--ink) 7%, var(--paper));
  --track-edge: color-mix(in srgb, var(--ink) 14%, var(--paper));
  /* The two measurements, in the site's blue but far apart in lightness, so they are told apart at a glance
     in the bar chart, its key and the table: a deep navy and the palette's bright blue. Do not point them
     at --accent / --brass: those two blues are too close to each other. */
  --long: #51368b;              /* complete workflows */
  --sub: #a993da;               /* independent subtasks */
  --ease: cubic-bezier(.2, .7, .2, 1);

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15.4px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lb2-page *, .lb2-page *::before, .lb2-page *::after { box-sizing: border-box; }
/* resets carry no weight of their own (:where), so every rule below can override them */
:where(.lb2-page) a { color: inherit; text-decoration: none; }
:where(.lb2-page) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.lb2-page) :is(h1, h2, p) { margin: 0; padding: 0; }
.lb2-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--cream); border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- fixed top band: mark, navigation, call to action (as on the homepage) ---------- */
.band { position: fixed; top: 0; left: 0; right: 0; z-index: 35; height: var(--top); background: var(--paper); border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); pointer-events: none; }
.mark { position: fixed; left: 0; top: 0; z-index: 40; display: grid; place-items: center; width: var(--rail); height: var(--top); border-right: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink); font: 600 16px/1 var(--display); letter-spacing: -0.02em; }
.topbar { position: fixed; top: 0; right: 0; left: var(--rail); z-index: 40; display: flex; align-items: center; justify-content: flex-end; gap: 34px; height: var(--top); padding: 0 29px 0 var(--pad); color: var(--ink); }
.topbar nav { display: flex; gap: 30px; }
.topbar nav a { position: relative; padding: 6px 0; font: 500 10.5px/1.32 var(--mono); letter-spacing: .19em; text-transform: uppercase; }
.topbar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.topbar nav a:hover::after, .topbar nav a:focus-visible::after, .topbar nav a[aria-current="page"]::after { transform: scaleX(1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 16px; border-radius: 4px; background: var(--ink); color: #f5f5f7; font: 500 15px/1.25 var(--sans); white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s; }
.btn .arr { flex: none; font: 1em/1 var(--sans); }
.btn:hover { background: #161617; }

/* ---------- page ---------- */
.lb2 { position: relative; width: min(1320px, calc(100% - 2 * (var(--rail) + var(--pad)))); margin: 0 auto; padding: calc(var(--top) + 72px) 0 88px; }
.lb2-eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; opacity: .86; }

/* ---------- hero ---------- */
.lb2 h1 { margin-top: 24px; font: 600 clamp(44px, 5vw, 88px)/1.05 var(--display); letter-spacing: -0.022em; }
.lb2-analysis { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 6px 12px 6px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule); font-size: 15px; transition: box-shadow .25s; }
.lb2-analysis:hover, .lb2-analysis:focus-visible { box-shadow: inset 0 0 0 1px var(--ink); }
.lb2-analysis span { padding: 7px 8px 6px; border-radius: 3px; background: var(--ink); color: #f5f5f7; font: 500 13px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.lb2-analysis i { font-style: normal; transition: transform .25s; }
.lb2-analysis:hover i { transform: translate(2px, -2px); }

/* ---------- pill switches ---------- */
.lb2-tabs { display: inline-flex; flex: none; gap: 2px; padding: 4px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--rule); }
.lb2-tabs button { padding: 11px 14px 10px; border-radius: 4px; font: 500 13px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: background .25s, color .25s; }
.lb2-tabs button:hover { color: var(--ink); }
.lb2-tabs button[aria-pressed="true"] { background: var(--ink); color: #f5f5f7; }
.lb2-tabs-small button { padding: 9px 12px; font-size: 14px; }

/* ---------- sections ---------- */
.lb2-card { padding: 56px 0 64px; border-top: 1px solid var(--rule); }
#ranking { margin-top: 64px; }
.lb2-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.lb2 h2 { font: 600 clamp(28px, 2.6vw, 44px)/1.07 var(--display); letter-spacing: -0.02em; }
.lb2-card-note { color: var(--muted); font-size: 14px; }
#efficiency-note { margin-top: 12px; }
.lb2-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.key-frontier { display: inline-block; width: 22px; height: 0; border-top: 2px solid var(--accent); }

/* ---------- ranking: two bars per model ---------- */
.lb2-sortby { display: flex; align-items: center; gap: 12px; font: 500 13px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lb2-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 36px 0 0; }
.lb2-key > div { padding-top: 18px; border-top: 1px solid var(--rule); }
.lb2-key dt { display: flex; align-items: center; gap: 10px; font: 500 13px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.lb2-key dt i { width: 12px; height: 12px; border-radius: 2px; background: var(--long); }
.lb2-key .k-sub dt i { background: var(--sub); }
.lb2-key dd { max-width: 38em; margin: 11px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

.lb2-bars { margin: 24px 0 0; }
.lb2-bars .col, .lb2-bars .mode-head { display: grid; column-gap: 16px; align-items: center; }
/* Reserve the same measure for the right-hand heading and every score. */
.lb2-bars { --emb-column: max(8.25rem, 13ch); }
.lb2-bars .col, .lb2-bars .mode-head { grid-template-columns: minmax(150px, 26%) minmax(0, 1fr) var(--emb-column); }
.lb2-bars .mode-head { align-items: baseline; row-gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font: 600 16px/1.25 var(--sans); }
.lb2-bars .mode-head > span { grid-row: 1; white-space: nowrap; }
.lb2-bars .mode-head small { grid-row: 2; color: var(--muted); font: 400 14px/1.3 var(--sans); }
.lb2-bars .agent-scope { grid-column: 2; }
.lb2-bars .emb-scope { grid-column: 3; }
.lb2-bars .mode-head > :nth-child(3), .lb2-bars .emb-scope, .lb2-bars .emb-result { text-align: right; }
.lb2-bars .emb-result { font: 550 16px/1.25 var(--sans); font-variant-numeric: tabular-nums; }
.lb2-bars .emb-result .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lb2-bars .col { padding: 9px 0; border-bottom: 1px solid var(--hair); }
.lb2-bars .who { display: flex; align-items: center; gap: 8px; font: 550 18px/1.25 var(--sans); }
.lb2-bars .rank { color: var(--muted); font: 14px var(--mono); }
.lb2-bars .who img { width: 20px; height: 20px; flex: none; }
.lb2-bars .bar { display: flex; gap: 10px; align-items: center; }
.lb2-bars .pair { display: grid; gap: 3px; }
.lb2-bars .track { flex: 1; height: 6px; background: var(--track); border-radius: 4px; overflow: hidden; }
.lb2-bars .track i { display: block; height: 100%; background: var(--long); }
.lb2-bars .sub .track i { background: var(--sub); }
.lb2-bars .bar b { width: 6ch; flex: none; text-align: right; font: 550 16px/1.25 var(--sans); font-variant-numeric: tabular-nums; }
.lb2-bars .is-active { background: var(--track); }
#results, #ranking { scroll-margin-top: calc(var(--top) + 12px); }
#results { display: block; }
/* ---------- every metric, folded away under the chart ---------- */
.lb2-details { margin-top: 36px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lb2-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; font: 500 13px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.lb2-details summary::-webkit-details-marker { display: none; }
.lb2-details summary i { position: relative; flex: none; width: 21px; height: 21px; border: 1px solid var(--rule); border-radius: 3px; transition: background .25s, border-color .25s, color .25s; }
.lb2-details summary i::before, .lb2-details summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1px; margin: -.5px 0 0 -4.5px; background: currentColor; transition: transform .35s var(--ease); }
.lb2-details summary i::after { transform: rotate(90deg); }
.lb2-details[open] summary i::after { transform: none; }
.lb2-details summary:hover i { background: var(--ink); border-color: var(--ink); color: #f5f5f7; }
.lb2-details .lb2-table-scroll { padding-top: 10px; }
.lb2-details .lb2-legend { margin-bottom: 22px; }

/* ---------- metrics table: one table, the two measurements side by side ---------- */
.lb2-table-scroll { overflow-x: auto; }
.lb2-table { width: 100%; min-width: 1240px; border-collapse: collapse; table-layout: fixed; font-size: 16px; }
.lb2-table col.w-model { width: 228px; }
.lb2-table col.w-rate { width: 150px; }      /* the figure and its meter, plus the group's left padding */
.lb2-table col.w-end { width: calc((100% - 528px) / 8 + 14px); }   /* extra padding beside the divider */
.lb2-table th { padding: 0; text-align: left; font-weight: 400; vertical-align: bottom; }
.lb2-table .c-model { width: 236px; }
.lb2-table .c-rate { width: 132px; }
.lb2-table .g-start { padding-left: 30px; }
.lb2-table .g-sub { border-left: 1px solid var(--hair); }
.lb2-table :is(th, td):has(+ .g-sub) { padding-right: 30px; }   /* the same air on both sides of the divider */
/* first header row: what each half of the table measures, in the colours of the chart above */
.lb2-table .groups th.g-start { padding-top: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font: 700 13px/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.lb2-table .groups th i { display: inline-block; width: 11px; height: 11px; margin-right: 10px; border-radius: 2px; background: var(--long); vertical-align: -1px; }
.lb2-table .groups .g-sub i { background: var(--sub); }
.lb2-table .groups th small { margin-left: 12px; color: var(--muted); font: 400 13px/1 var(--sans); letter-spacing: 0; text-transform: none; }
/* second header row: the columns, each one sortable */
.lb2-table .cols th, .lb2-table th.c-model { border-bottom: 1px solid var(--ink); }
.lb2-table th button { display: block; width: 100%; padding: 14px 0 12px; text-align: left; color: var(--ink); white-space: nowrap; }
.lb2-table th button span { position: relative; display: inline-block; font: 700 13px/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; }   /* bold: the text face, the mono has no bold cut */
/* the sort arrow shows only on the sorted column and on hover, on the side away from the figures;
   beside a right-aligned heading it hangs to the left without taking any room */
.lb2-table th button span::after, .lb2-table th.c-num button span::before { content: "↕"; display: inline-block; width: 12px; font-size: 13px; letter-spacing: 0; opacity: 0; transition: opacity .2s; }
.lb2-table th button span::after { margin-left: 5px; }
.lb2-table th.c-num button span::before { position: absolute; right: 100%; top: 0; text-align: left; }
.lb2-table th.c-num button span::after { content: none; }
.lb2-table th button:hover span::after, .lb2-table th button:hover span::before, .lb2-table th button:focus-visible span::after, .lb2-table th button:focus-visible span::before { opacity: .45; }
.lb2-table th[aria-sort] button span::after, .lb2-table th[aria-sort] button span::before { opacity: 1; }
.lb2-table th:not(.c-num)[aria-sort="descending"] button span::after, .lb2-table th.c-num[aria-sort="descending"] button span::before { content: "↓"; }
.lb2-table th:not(.c-num)[aria-sort="ascending"] button span::after, .lb2-table th.c-num[aria-sort="ascending"] button span::before { content: "↑"; }
.lb2-table th.c-num button { padding-right: 16px; text-align: right; }
.lb2-table th[aria-sort] button, .lb2-table th button:hover { color: var(--ink); }

.lb2-table td { height: 58px; padding: 0; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.lb2-table tbody tr { transition: background .15s; }
.lb2-table tbody tr.is-active { background: color-mix(in srgb, var(--brass) 22%, transparent); }
.lb2-model { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.008em; white-space: nowrap; }
.lb2-model .rank { width: 24px; flex: none; font: 500 13px var(--mono); letter-spacing: .08em; color: var(--faint); }
.lb2-model img { width: 22px; height: 22px; flex: none; }
tr.is-top .lb2-model .rank { color: var(--ink); }
/* success: the figure, and a hairline meter in the measurement's colour (full width = 100%) */
.lb2-table td.c-rate .figure { display: block; font: 600 16px/1.2 var(--display); letter-spacing: -0.012em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb2-table td.c-rate .figure small { margin-left: 7px; color: var(--muted); font: 400 13px var(--mono); letter-spacing: 0; }
.lb2-table td.c-rate.is-zero .figure { color: var(--faint); font-weight: 500; }
.lb2-table td.c-rate.is-zero .figure small { color: var(--faint); }
.lb2-table .meter { display: block; width: 78px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--track-edge); overflow: hidden; }
.lb2-table .meter i { display: block; height: 100%; border-radius: 2px; background: var(--long); }
.lb2-table .g-sub .meter i { background: var(--sub); }
/* figures: the text face with tabular numerals, one size up from the labels, nothing but the number */
.lb2-table td.c-num { padding-right: 16px; text-align: right; font: 500 16px/1.2 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.004em; white-space: nowrap; }
.lb2-table td.c-num .num { position: relative; display: inline-block; }
.lb2-table td.c-num .u { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
/* hovering a figure says how many of the model's runs reported it */
.lb2-table .num[data-tip]::after { content: attr(data-tip); position: absolute; z-index: 3; right: -10px; bottom: calc(100% + 10px); padding: 7px 9px 6px; border-radius: 4px; background: var(--ink); color: var(--cream); font: 400 13px/1.2 var(--sans); letter-spacing: 0; white-space: nowrap; opacity: 0; transform: translateY(3px); pointer-events: none; transition: opacity .18s, transform .18s; }
.lb2-table td:hover > .num[data-tip]::after { opacity: 1; transform: none; }
/* a model that was not run on a measurement: one hatched band across that half, as in the chart */
.lb2-table td.c-none span { display: flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 3px; background: repeating-linear-gradient(-45deg, transparent 0 4px, color-mix(in srgb, var(--ink) 9%, transparent) 4px 5px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); color: var(--muted); font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- efficiency chart ---------- */
.lb2-plot { position: relative; margin-top: 26px; min-width: 0; }
.lb2-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.lb2-plot .grid { stroke: var(--hair); stroke-width: 1; }
.lb2-plot .vgrid { stroke: var(--hair); stroke-width: 1; stroke-dasharray: 2 5; }
.lb2-plot .label-leader { stroke: var(--muted); stroke-opacity: .45; pointer-events: none; }
.lb2-plot .axis { stroke: var(--ink); stroke-width: 1; }
.lb2-plot .tick { fill: var(--muted); font: 400 13px var(--mono); }
.lb2-plot .axis-title, .lb2-plot .better { font: 500 13px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.lb2-plot .axis-title { fill: var(--muted); }
.lb2-plot .better { fill: var(--accent); }
/* the frontier: a line that draws itself, over a wash that fades down to nothing */
.lb2-plot .a0 { stop-color: var(--accent); stop-opacity: .2; }
.lb2-plot .a1 { stop-color: var(--accent); stop-opacity: 0; }
.lb2-plot .area { fill: url(#lb2-area); opacity: 0; pointer-events: none; transition: opacity 1.2s ease .7s; }
.lb2-plot.is-in .area { opacity: 1; }
.lb2-plot .frontier { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; pointer-events: none; transition: stroke-dashoffset 1.7s cubic-bezier(.45, .05, .2, 1) .15s; }
.lb2-plot.is-in .frontier { stroke-dashoffset: 0; }
/* the models: a logo in a disc; ringed in the accent when on the frontier */
.lb2-plot .pt { cursor: pointer; outline: none; transition: opacity .25s; }
.lb2-plot .pt .dot { transform-box: fill-box; transform-origin: center; transform: scale(.35); opacity: 0; transition: transform .7s var(--ease) calc(var(--i) * 120ms + .2s), opacity .35s ease calc(var(--i) * 120ms + .2s); }
.lb2-plot.is-in .pt .dot { transform: none; opacity: 1; }
.lb2-plot .pt .label { opacity: 0; transition: opacity .6s ease calc(var(--i) * 120ms + .5s); }
.lb2-plot.is-in .pt .label { opacity: 1; }
.lb2-plot.is-done .pt .dot, .lb2-plot.is-done .pt .label { transition-delay: 0s; transition-duration: .25s; }
.lb2-plot .pt .tile { fill: var(--cream); stroke: color-mix(in srgb, var(--ink) 22%, var(--paper)); stroke-width: 1; }
.lb2-plot .pt.on-frontier .tile { stroke: var(--accent); stroke-width: 1.75; filter: drop-shadow(0 3px 5px rgba(0, 113, 227, .2)); }
.lb2-plot .pt .name { fill: var(--ink); font: 600 14px var(--sans); letter-spacing: -0.006em; }
.lb2-plot .pt .stat { fill: var(--muted); font: 400 13px var(--mono); }
.lb2-plot .pt:not(.on-frontier) .name { fill: var(--muted); font-weight: 500; font-size: 13px; }
.lb2-plot .pt:not(.on-frontier) image { opacity: .75; }
.lb2-plot .pt.zero .tile { fill: var(--paper); }
.lb2-plot .pt.zero image { opacity: .55; }
.lb2-plot svg.has-active .pt:not(.is-active) { opacity: .32; }
.lb2-plot .pt.is-active .dot, .lb2-plot .pt:focus-visible .dot { transform: scale(1.14); }
.lb2-plot .pt.is-active .tile, .lb2-plot .pt:focus-visible .tile { stroke: var(--ink); stroke-width: 2; }
.lb2-plot .pt.is-active .name { fill: var(--ink); font-weight: 600; }
/* a model with a success rate but no cost or time yet: a dashed level across the plot, its logo at the end */
.lb2-plot .ghost { outline: none; transition: opacity .25s; }
.lb2-plot .ghost .level { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: .008 .008; stroke-dashoffset: 0; opacity: 0; transition: opacity .9s ease 1.5s; }
.lb2-plot.is-in .ghost .level { opacity: .75; }
.lb2-plot .ghost .dot > * { transform-box: fill-box; }
.lb2-plot .ghost .dot { opacity: 0; transition: opacity .5s ease 1.9s; }
.lb2-plot .ghost .label { opacity: 0; transition: opacity .6s ease 2.1s; }
.lb2-plot.is-in .ghost .dot, .lb2-plot.is-in .ghost .label { opacity: 1; }
.lb2-plot.is-done .ghost .level, .lb2-plot.is-done .ghost .dot, .lb2-plot.is-done .ghost .label { transition-delay: 0s; transition-duration: .25s; }
.lb2-plot .ghost .tile { fill: var(--cream); stroke: var(--accent); stroke-width: 1.75; stroke-dasharray: 3.5 3; }
.lb2-plot .ghost .name { fill: var(--ink); font: 600 14px var(--sans); letter-spacing: -0.006em; }
.lb2-plot .ghost .stat { fill: var(--muted); font: 400 13px var(--mono); }
.lb2-plot svg.has-active .ghost:not(.is-active) { opacity: .32; }
.lb2-plot .ghost.is-active .level { opacity: 1; }
.key-level { display: inline-block; width: 22px; height: 0; margin-left: 14px; border-top: 2px dashed var(--accent); }
.lb2-plot .guide line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity .2s; }
.lb2-plot .guide.on line { opacity: .5; }
.lb2-tip { position: absolute; z-index: 2; min-width: 196px; padding: 11px 12px; border-radius: 4px; background: var(--ink); color: var(--cream); box-shadow: 0 14px 40px rgba(0,0,0,.22); font-size: 14px; pointer-events: none; }
.lb2-tip b { display: block; margin-bottom: 6px; font: 600 15px/1.2 var(--display); letter-spacing: -0.01em; }
.lb2-tip span { display: flex; justify-content: space-between; gap: 16px; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.lb2-tip span strong { color: var(--cream); font: 500 13px var(--sans); font-variant-numeric: tabular-nums; }
.lb2-tip[hidden] { display: none; }

/* ---------- method line: everything else is explained in the blog article ---------- */
.lb2-method { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.lb2-method a { margin-left: 10px; color: var(--accent); font-weight: 500; white-space: nowrap; }
.lb2-method a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lb2-method i { font-style: normal; }
#efficiency-note[hidden] { display: none; }

/* ---------- small windows: usable, not polished (as on the homepage) ---------- */
@media (max-width: 900px) {
  .lb2-page { --rail: 44px; --top: 60px; --right: 0px; --pad: 18px; }
  .topbar nav { display: none; }
  .mark { font-size: 15px; }
  .lb2 { padding-top: calc(var(--top) + 44px); width: calc(100% - var(--rail) - 2 * var(--pad)); margin: 0 var(--pad) 0 calc(var(--rail) + var(--pad)); }
  .lb2-key { grid-template-columns: 1fr; gap: 20px; }
  .lb2-bars-scroll { overflow-x: auto; }
  .lb2-bars { min-width: 0; }
  .lb2-tabs { flex-wrap: wrap; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lb2-page * { transition: none !important; } }

/* RLE-MARK:BEGIN (generated by scripts/homepage/make_rle_mark.py) */
/* The mark is the impossible triangle; the letters stay in the markup for assistive technology. */
.mark, .rle-shell .mark { font-size: 0 !important; letter-spacing: 0; }
.mark::before { content: ""; position: absolute; inset: 0; margin: auto; display: block; width: 34px; height: 34px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 9.52 9.52%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%220.26%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M0.76 0.863L8.76 0.863L9.26 1.729L8.26 1.729L5.26 6.925L4.76 6.059L7.26 1.729L1.26 1.729Z%22/%3E%3Cpath d=%22M9.26 1.729L5.26 8.657L4.26 8.657L4.76 7.791L1.76 2.595L2.76 2.595L5.26 6.925L8.26 1.729Z%22/%3E%3Cpath d=%22M4.26 8.657L0.26 1.729L0.76 0.863L1.26 1.729L7.26 1.729L6.76 2.595L1.76 2.595L4.76 7.791Z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 9.52 9.52%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%220.26%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M0.76 0.863L8.76 0.863L9.26 1.729L8.26 1.729L5.26 6.925L4.76 6.059L7.26 1.729L1.26 1.729Z%22/%3E%3Cpath d=%22M9.26 1.729L5.26 8.657L4.26 8.657L4.76 7.791L1.76 2.595L2.76 2.595L5.26 6.925L8.26 1.729Z%22/%3E%3Cpath d=%22M4.26 8.657L0.26 1.729L0.76 0.863L1.26 1.729L7.26 1.729L6.76 2.595L1.76 2.595L4.76 7.791Z%22/%3E%3C/svg%3E") center / contain no-repeat; transform-origin: 50.00% 39.39%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.mark:hover::before, .mark:focus-visible::before { transform: rotate(120deg); }
@media (max-width: 900px) { .mark::before { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .mark::before { transition: none; } .mark:hover::before, .mark:focus-visible::before { transform: none; } }
/* RLE-MARK:END */

@media (max-width: 600px) {
  .lb2-bars .col, .lb2-bars .mode-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 74px; gap: 6px; }
  .lb2-bars .mode-head { font-size: 15px; }
  .lb2-bars .mode-word { display: none; }
  .lb2-bars .mode-head small { font-size: 13px; }
  .lb2-bars .bar { gap: 4px; }
  .lb2-bars .bar b, .lb2-bars .emb-result { font-size: 15px; }
  .lb2-bars .who { gap: 5px; font-size: 16px; }
  .lb2-bars .who span:last-child { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 700px) {
  .lb2 { width: auto; margin-inline: 16px; }
  .lb2-sortby { flex-wrap: wrap; }
}
