/* Opus's run, step by step (every experiment): clickable numbers on the run chart and the step chips show the step
   card under the chart (before/after clip, our summary, the editor's own words). Generated by wsp.analysis.blog_steps. */
.runchart .mk { cursor: pointer; outline: none; }
.runchart .mk text { fill: #fff !important; font: 700 12px Inter, ui-sans-serif, system-ui, sans-serif; pointer-events: none; }
.runchart .mk circle { transition: r 0.12s; }
.runchart .mk:hover circle, .runchart .mk:focus-visible circle { r: 13; }
.runchart .mk:focus-visible circle { stroke: var(--ink); stroke-width: 2; }
.stepchips { list-style: none; margin: -0.4rem 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stepchips button { display: inline-flex; align-items: center; gap: 0.45rem; border: 1px solid var(--rule);
  background: var(--bg); border-radius: 999px; padding: 0.22rem 0.7rem 0.22rem 0.25rem; cursor: pointer;
  font: 500 0.84rem/1.3 Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ink); white-space: nowrap; }
.stepchips button:hover, .stepchips button:focus-visible { border-color: var(--opus); }
.stepchips .step-n { width: 1.35rem; height: 1.35rem; font-size: 0.74rem; line-height: 1.35rem; }
.stepchips .sc-s { color: var(--muted); font-size: 0.78rem; }
.runchart .mk.on circle { stroke: var(--ink); stroke-width: 2.5; r: 13; }
.stepchips button.on { border-color: var(--opus); background: color-mix(in srgb, var(--opus) 9%, var(--bg)); font-weight: 600; }
.stephost { margin: 0 0 1.6rem; }
.stephost .step { margin: 0; }
.stephost .step > video { aspect-ratio: 1932 / 720; width: 100%; height: auto; }
.dlg-nav { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0.95rem; border-top: 1px solid var(--rule);
  font: 0.8rem Inter, ui-sans-serif, system-ui, sans-serif; color: var(--muted); background: var(--surface); }
.dlg-nav button { border: 1px solid var(--rule); background: var(--bg); color: var(--ink); border-radius: 8px; padding: 0.25rem 0.7rem;
  font: 500 0.82rem Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.dlg-nav button[disabled] { opacity: 0.35; cursor: default; }
.step h5.own { margin: 0; padding: 0.6rem 0.95rem 0.1rem; border-top: 1px solid var(--rule);
  font: 600 0.84rem Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ink); }
.step .own + .trace { margin: 0.4rem 0.8rem 0.8rem; }
.beat .wts { display: block; margin-top: 0.15rem; font: 0.82rem/1.45 Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ink-2); }
.beat .wts b { color: var(--ink); }
/* A finding after the experiments (loopholes and similar), one card each. */
.finding { border: 1px solid var(--rule); border-left: 3px solid #c58a00; border-radius: 12px; background: var(--bg); margin: 1.2rem 0; overflow: hidden; }
/* Hover card of a chart number. */
.mk-tip { position: absolute; z-index: 50; width: 300px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); overflow: hidden; pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity 0.12s, transform 0.12s; }
.mk-tip.show { opacity: 1; transform: none; }
.mk-tip img { display: block; width: 100%; aspect-ratio: 1932 / 720; object-fit: cover; background: var(--surface); }
.mk-tip-b { padding: 0.55rem 0.75rem 0.6rem; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.mk-tip-h { display: flex; align-items: center; gap: 0.5rem; font-size: 0.98rem; line-height: 1.3; color: var(--ink); }
.mk-tip-h .step-n { flex: none; width: 1.45rem; height: 1.45rem; font-size: 0.78rem; line-height: 1.45rem; }
.mk-tip-s { margin-top: 0.3rem; font-size: 0.82rem; color: var(--ink-2); }
.mk-tip-c { margin-top: 0.2rem; font-size: 0.74rem; color: var(--muted); }
/* Previous / next arrows at the top right of a step card. */
.step-arrows { display: inline-flex; align-items: center; gap: 0; margin-left: 0.7rem; height: 2rem;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); overflow: hidden; }
.step-arrows button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.step-arrows button:hover:not([disabled]) { background: var(--surface); color: var(--opus); }
.step-arrows button[disabled] { color: var(--muted); opacity: 0.4; cursor: default; }
.step-of { display: inline-flex; align-items: center; justify-content: center; height: 2rem; padding: 0 0.45rem;
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  font: 600 0.74rem/1 Inter, ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.step-of span { font-weight: 400; color: var(--muted); margin: 0 0.25em; }
/* Closing of each experiment: numbers of the final edit and Opus's own verdict. */
.final-stats { font-size: 0.97rem; color: var(--ink-2); }
blockquote.selfeval { margin: 1.4rem 0 1.8rem; padding: 0.2rem 0 0.2rem 1.3rem; border-left: 3px solid var(--opus);
  font-size: 1.22rem; line-height: 1.5; font-style: italic; color: var(--ink); }
blockquote.selfeval p { margin: 0.25rem 0; }
blockquote.selfeval p::before { content: "\201C"; } blockquote.selfeval p::after { content: "\201D"; }
blockquote.selfeval footer { margin-top: 0.5rem; font: 600 0.78rem Inter, ui-sans-serif, system-ui, sans-serif; font-style: normal;
  letter-spacing: 0.03em; color: var(--opus); }
/* Separator between the step-by-step analysis and the finished results of an experiment. */
.result-sep { display: flex; align-items: center; gap: 0.8rem; margin: 2.4rem 0 1.2rem;
  font: 650 0.74rem Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.07em; text-transform: uppercase; color: var(--opus); }
.result-sep::before, .result-sep::after { content: ""; flex: 1; height: 2px; background: color-mix(in srgb, var(--opus) 35%, transparent); }
/* "How about other LLMs?": the separator itself is the toggle, with a chevron in a circle that turns when open. */
details.others-fold { margin: 0 0 0.5rem; }
details.others-fold > summary.result-sep { cursor: pointer; list-style: none; }
details.others-fold > summary.result-sep::-webkit-details-marker { display: none; }
details.others-fold > summary.result-sep span { display: inline-flex; align-items: center; gap: 0.5rem; }
details.others-fold > summary.result-sep span::before { content: ""; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  border: 1.5px solid var(--opus); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m6 4 4 4-4 4' fill='none' stroke='%23b0306f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
  transition: transform 0.15s; }
details.others-fold[open] > summary.result-sep span::before { transform: rotate(90deg); }
details.others-fold > summary.result-sep span::after { content: "show"; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
details.others-fold[open] > summary.result-sep span::after { content: "hide"; }
details.others-fold > summary.result-sep:hover span::before { background-color: color-mix(in srgb, var(--opus) 10%, var(--bg)); }
.others-chart .orig-line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.others-chart .origlab { fill: var(--muted); font-size: 11px; }
.others-chart .lab { font-weight: 600; fill: var(--ink); }
.others-chart .note { font-weight: 400; fill: var(--muted); }
.others-chart .dag { font-weight: 600; }
.others-chart .ol circle { transition: r 0.1s; }
.others-chart .ol circle:hover { r: 5; }
/* Learning-loop figure of "Implications for robot learning". */
.loopfig .lp-box rect { fill: var(--surface); stroke: var(--rule); stroke-width: 1.2; }
.loopfig .lp-llm rect { fill: url(#lp-grad); stroke: var(--opus); stroke-width: 1.8; }
.loopfig .lp-ic { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.loopfig .lp-ic .fill { fill: var(--ink-2); stroke: none; }
.loopfig .lp-llm .lp-ic path { fill: var(--opus); stroke: none; }
.loopfig .lp-t { font-weight: 700; fill: var(--ink) !important; font-size: 15px !important; }
.loopfig .lp-sub { fill: var(--ink-2) !important; font-size: 11.5px !important; }
.loopfig .lp-s { fill: var(--muted) !important; }
.loopfig .lp-n { fill: var(--opus) !important; font-weight: 650; }
.loopfig .lp-n2 { fill: var(--opus) !important; font-size: 11px !important; opacity: 0.8; }
.loopfig .lp-a { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.loopfig .lp-old { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; }
.loopfig .lp-new { stroke: var(--opus); stroke-width: 2.6; fill: none; }
.loopfig .lp-flow { stroke: #fff; stroke-opacity: 0.95; stroke-width: 3.4; fill: none; stroke-dasharray: 0.1 13;
  stroke-linecap: round; animation: lp-flow 0.9s linear infinite; }
@keyframes lp-flow { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) { .loopfig .lp-flow { display: none; } }
.pull { font-size: 1.2rem; font-style: italic; color: var(--ink); border-left: 3px solid var(--opus); padding-left: 1.1rem; margin: 1.6rem 0; }

/* LLM switch: each experiment shows Fable 5.2's run (default) or Opus 5.5's; all switches of the page move together. */
.galh.galh-sw { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.llm-sw { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel, #f4f3ef);
  border: 1px solid var(--rule); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; text-transform: none; isolation: isolate; }
.llm-sw::before { content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--fable52); box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.28s cubic-bezier(.4,.1,.2,1), background-color 0.28s; }
.llm-sw[data-llm="opus"]::before { transform: translateX(100%); background: var(--opus); }
.llm-sw button { all: unset; box-sizing: border-box; flex: 1 1 0; min-width: 6.2em; text-align: center; padding: 0.32rem 0.9rem;
  border-radius: 999px; cursor: pointer; color: var(--muted); white-space: nowrap; transition: color 0.2s; }
.llm-sw button[aria-checked="true"] { color: #fff; }
.llm-sw button:focus-visible { outline: 2px solid var(--fg, #222); outline-offset: 1px; }
.llm-pane[hidden] { display: none; }
.llm-pane[data-llm="fable52"] .result-sep::before, .llm-pane[data-llm="fable52"] .result-sep::after { background: color-mix(in srgb, var(--fable52) 45%, transparent); }
