@charset "UTF-8";

* { box-sizing: border-box; }

html { scrollbar-gutter: stable; }

body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

main {
  max-width: 860px;
  margin: 48px auto 72px;
  padding: 0 24px;
}

header { margin-bottom: 40px; }
.project-name, .subtitle { color: #666; }
.project-name { margin: 0 0 12px; font-size: 14px; }
.subtitle { margin: 14px 0 0; }
.article-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; margin: 18px 0 10px; font-size: 14px; }
.article-authors { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0; }
.article-authors span { color: #aaa; }
.article-byline time { color: #777; font-size: 13px; white-space: nowrap; }
.article-date-links { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.github-link { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 4px; line-height: 1; }
.github-link:hover { background: #f3f3ef; }
.github-link img { display: block; width: 20px; height: 20px; }

h1, h2, h3, h4 { line-height: 1.4; font-weight: 600; }
h1 { margin: 0; font-size: 32px; }
h2 { margin: 40px 0 16px; font-size: 24px; }
h3 { margin: 30px 0 14px; font-size: 20px; }
h4 { margin: 0 0 8px; font-size: 17px; }
p { margin: 0 0 18px; }
strong { font-weight: 600; }
.task-label { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .92em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.article-nav { position: sticky; top: 12px; z-index: 10; display: flex; align-items: center; gap: 16px; margin: 0 0 28px; padding: 10px 14px; border: 1px solid #e3e3df; border-radius: 5px; background: #fff; font-size: 13px; line-height: 1.5; }
.article-contents { flex: none; }
.article-contents summary { color: #444; font-weight: 600; cursor: pointer; }
.article-contents summary::marker { color: #888; }
.article-contents summary:focus-visible { outline: 2px solid #777; outline-offset: 4px; }
.reading-section { min-width: 0; flex: 1; color: #6b6b65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav a { color: #555; font-weight: 500; }
.article-nav a:hover { color: #222; background: #f3f3ef; }
.article-nav a:focus-visible { outline: 2px solid #777; outline-offset: 2px; }
.article-nav .back-to-top { flex: none; padding: 2px 4px; border-radius: 3px; font-size: 12px; }
.contents-menu { position: absolute; top: calc(100% + 6px); left: 0; width: 360px; max-width: 100%; max-height: min(65vh, var(--contents-available-height, 480px)); overflow-y: auto; overscroll-behavior-y: contain; border: 1px solid #e3e3df; border-radius: 5px; padding: 10px; background: #fff; box-shadow: 0 6px 20px #2222220d; }
.contents-menu.is-above { top: auto; bottom: calc(100% + 6px); }
.contents-list { list-style: none; margin: 0; padding: 0; }
.contents-list a { display: block; padding: 7px 10px; border-radius: 3px; line-height: 1.45; }
.contents-list a[aria-current="location"] { background: #f1f1eb; color: #292d26; font-weight: 700; }
.contents-list ol { list-style: none; margin: 0 0 0 16px; padding: 0; border-left: 1px solid #e4e4dd; }
.contents-list ol a { border-radius: 0 3px 3px 0; color: #72726b; font-size: 12px; }
.results-subsection > h4 { margin: 28px 0 12px; }
#article [id] { scroll-margin-top: 84px; }
.article-destination:focus { outline: none; }
.article-destination:focus-visible > h2, .article-destination:focus-visible > h3, .article-destination:focus-visible > figcaption h3, h1.article-destination:focus-visible, h3.article-destination:focus-visible { text-decoration: underline; text-decoration-color: #c9b36a; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.section-takeaway { margin: 0 0 22px; padding: 12px 16px; border-left: 3px solid #c9b36a; background: #fcf9ed; color: #4c4838; font-size: 14px; line-height: 1.75; }
.section-takeaway p { margin: 0; }
.findings-summary { margin-top: 24px; }
.findings-summary h3 { margin: 0 0 8px; font-size: 16px; }
.findings-summary ul { margin: 0; padding-left: 20px; }
.findings-summary li + li { margin-top: 7px; }
.takeaway-label { margin-right: 8px; color: #766329; font-weight: 700; }

a { color: #6b9bc3; font-weight: 700; text-decoration: none; }
a:hover, .demo-link.has-rollouts-open { color: #5686ae; }
a:focus-visible, video:focus-visible { outline: 2px solid #28649c; outline-offset: 4px; }
.concept-term { display: inline; margin: 0; padding: 0; border: 0; background: transparent; color: #7b6096; font: inherit; font-weight: 700; line-height: inherit; text-align: inherit; cursor: pointer; }
.concept-term:hover, .concept-term.is-active { color: #5e427b; background: #f1ebf7; border-radius: 2px; }
.concept-term:focus-visible { outline: 2px solid #8b73a3; outline-offset: 3px; }
.concept-note-slot { margin: 18px 0 24px; }
.concept-note { margin: 0 0 16px; padding: 14px 15px; border: 1px solid #e5dfeb; border-left: 3px solid #b49dc5; border-radius: 4px; background: #fcfaff; color: #51475a; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.concept-note:last-child { margin-bottom: 0; }
.concept-note-title { margin: 0 0 10px; color: #705587; font-size: 14px; font-weight: 600; line-height: 1.5; }
.concept-note-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.concept-note-close { flex: none; margin: -3px -4px 0 0; padding: 0; width: 24px; height: 24px; border: 0; border-radius: 3px; background: transparent; color: #7b6096; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.concept-note-close:hover { background: #eee7f5; }
.concept-note-close:focus-visible { outline: 2px solid #8b73a3; outline-offset: 2px; }
.concept-note-body p { margin: 0 0 12px; }
.concept-note-body p:last-child { margin-bottom: 0; }
.concept-note.is-active { border-left-color: #795a93; background: #f6f0fb; }
.concept-note:focus { outline: none; }
.concept-note:focus-visible { outline: 2px solid #8b73a3; outline-offset: 3px; }
main.has-margin-notes { position: relative; }
.has-margin-notes .concept-note-slot { display: contents; }
.has-margin-notes .concept-note { position: absolute; margin: 0; }
.table-note { margin: 16px 0 10px; color: #666; font-size: 13px; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.table-scroll:focus-visible { outline: 2px solid #28649c; outline-offset: 4px; }
.task-table { width: 2110px; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.6; }
.task-table .id-column { width: 65px; }
.task-table .name-column { width: 155px; }
.task-table .instruction-column { width: 270px; }
.task-table .illustration-column { width: 200px; }
.task-table .purpose-column { width: 310px; }
.task-table .levels-column { width: 800px; }
.task-table .score-column { width: 310px; }
.task-table th, .task-table td { padding: 14px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.task-table thead th { background: #f7f7f7; font-weight: 600; }
.task-table tbody th { font-weight: 400; }
.task-table img { display: block; width: 170px; max-width: 100%; height: auto; }
.task-table .level-designs { margin: 0; padding: 0; list-style: none; }
.task-table .level-designs li + li { margin-top: 7px; }
.table-footnote { margin: 10px 0 0; color: #666; font-size: 13px; }

.performance-summary { margin: 24px 0 36px; }
.performance-summary figcaption h3 { margin: 0 0 8px; font-size: 19px; }
.performance-summary figcaption p { color: #666; font-size: 14px; }
.performance-table-scroll { border: 1px solid #deded7; border-radius: 10px; }
.performance-table { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.performance-table th, .performance-table td { border-bottom: 1px solid #e5e6de; }
.performance-table thead th { padding: 14px 8px; background: #f5f5f1; text-align: center; color: #51574b; }
.performance-table thead th span { display: block; font-size: 11px; font-weight: 400; }
.performance-table th:first-child { width: 27%; text-align: left; padding-left: 16px; }
.performance-table tbody th { position: sticky; left: 0; z-index: 1; padding: 12px 16px; background: #fff; font-weight: 500; box-shadow: 1px 0 #e5e6de; }
.performance-task-id { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: #767d6e; }
.performance-table td { padding: 4px; vertical-align: middle; }
.performance-table tbody tr:last-child > * { border-bottom: 0; }
.performance-cell { display: block; width: 100%; min-height: 72px; padding: 12px 4px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #30372c; cursor: pointer; font: inherit; text-align: center; }
.performance-cell:hover { background: #f3f5ef; border-color: #d8ddce; }
.performance-cell:focus-visible { outline: 2px solid #28649c; outline-offset: -2px; }
.performance-cell.has-rollouts-open { background: #edf2e7; border-color: #687c55; }
.performance-value { display: block; white-space: nowrap; }
.performance-sr { font-weight: 650; }
.performance-count { display: block; margin-top: 5px; color: #787d70; font-size: 10px; }
.performance-summary .table-footnote { font-size: 12px; }
.molmoact2-table thead th:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 #e5e6de; }
.performance-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.performance-compare-toggle { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: #555; font-size: 13px; cursor: pointer; }
.performance-compare-toggle input { width: 15px; height: 15px; margin: 0; accent-color: #527764; cursor: pointer; }
.performance-compare-toggle input:focus-visible { outline: 2px solid #28649c; outline-offset: 3px; }
.is-comparing .performance-value, .is-comparing .performance-count { display: none; }
.performance-comparison { display: grid; gap: 8px; }
.performance-comparison-row { display: flex; align-items: baseline; justify-content: center; white-space: nowrap; }
.is-comparing .performance-task-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.performance-comparison-models { display: grid; gap: 8px; color: #5d655a; font-size: 11px; line-height: 19.5px; font-weight: 400; }
.performance-comparison-score { display: inline-flex; align-items: baseline; gap: 3px; font-weight: 650; }
.performance-comparison-score[data-outcome="higher"] { color: #267044; }
.performance-comparison-score[data-outcome="lower"] { color: #b23d47; }
.performance-comparison-score[data-outcome="equal"] { color: #68716a; }
.performance-comparison-marker { font-size: 11px; }

figure { margin: 30px 0 36px; }
figcaption p { margin-bottom: 12px; }
.control-planning-figure > a { display: block; }
.control-planning-figure img { display: block; width: 100%; height: auto; }
video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 32 / 9;
  background: #171717;
  object-fit: contain;
}
/* Preserve the source figures, with swipeable panels on narrow screens. */
.state-space-figure img { display: block; width: 100%; height: auto; }
.state-space-overview { display: block; }
.state-space-panels { display: none; }
.state-space-figure figcaption { margin-top: 10px; color: #666; font-size: 13px; line-height: 1.65; }
.state-space-reading-note { color: #666; font-size: 13px; line-height: 1.75; }
@media (max-width: 760px) {
  .state-space-overview { display: none; }
  .state-space-panels { display: flex; gap: 12px; scroll-snap-type: x proximity; }
  .state-space-panels > a { flex: 0 0 92%; min-width: 0; scroll-snap-align: start; }
}
.student-demo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 30px 0 36px; align-items: start; }
.student-demo-grid > figure { grid-column: span 2; margin: 0; min-width: 0; }
.student-demo-grid > .student-demo-baseline { grid-column: 2 / span 2; }
.student-demo-grid figcaption { min-height: 3.8em; font-size: 14px; line-height: 1.5; }
.video-caption { margin: 8px 0 0; font-size: 12px; color: #666; }
.media-error { margin-top: 10px; font-size: 14px; color: #8a2929; }
.media-viewer-open { overflow: hidden; }
.media-viewer {
  width: min(1600px, calc(var(--media-viewport-width, 100vw) - 40px));
  right: calc(100vw - var(--media-viewport-width, 100vw));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #222;
  overflow: hidden;
  box-shadow: 0 16px 64px #0003;
}
.media-viewer[open] { display: flex; flex-direction: column; }
.media-viewer::backdrop { background: #17191bc9; }
.media-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 16px; border-bottom: 1px solid #eee; }
.media-viewer-header h2 { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.media-viewer-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.media-viewer-actions button { min-height: 36px; padding: 6px 10px; border: 0; border-radius: 4px; background: #f3f3f1; color: #444; font: inherit; font-size: 13px; cursor: pointer; }
.media-viewer-actions button:hover { background: #e9e9e6; }
.media-viewer-actions button:focus-visible { outline: 2px solid #6b9bc3; outline-offset: 2px; }
.media-viewer-content { min-height: 0; overflow: auto; overscroll-behavior: contain; background: #f7f7f5; }
.media-viewer-image, .media-viewer-video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 112px); margin: auto; aspect-ratio: auto; object-fit: contain; }
.media-viewer-image { cursor: zoom-in; }
.media-viewer-content.is-zoomed .media-viewer-image { width: auto; max-width: none; max-height: none; margin: 0; cursor: zoom-out; }
.media-viewer-placeholder { display: block; }
.media-viewer-error { margin: 0; padding: 12px 16px; color: #8a2929; font-size: 14px; }
@media (max-width: 600px) {
  .media-viewer { width: calc(var(--media-viewport-width, 100vw) - 16px); max-height: calc(100dvh - 16px); }
  .media-viewer-header { gap: 8px; padding: 8px; }
  .media-viewer-actions { gap: 4px; }
  .media-viewer-image, .media-viewer-video { max-height: calc(100dvh - 84px); }
}
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.experiment-figure { margin: 28px 0 36px; }
:is(.control-extra-time, .control-demo, .article-details) { margin: 28px 0 36px; border: 1px solid #e3e3df; border-radius: 5px; background: #fafaf8; }
:is(.control-extra-time, .control-demo, .article-details) > summary { padding: 13px 16px; color: #555; font-size: 15px; font-weight: 600; cursor: pointer; }
:is(.control-extra-time, .control-demo, .article-details) > summary::marker { color: #888; }
:is(.control-extra-time, .control-demo, .article-details) > summary:focus-visible { outline: 2px solid #777; outline-offset: 3px; }
:is(.control-extra-time, .control-demo, .article-details)[open] > summary { border-bottom: 1px solid #e3e3df; }
.control-extra-time-content, .control-demo-content, .article-details-content { padding: 18px 16px 0; }
.control-extra-time-content .experiment-figure { margin: 24px 0 20px; }
.experiment-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: start;
  overflow: hidden;
  border: 1px solid #383a3a;
  border-radius: 8px;
  background: #202222;
  color: #f2f2ef;
}
.chart-plot { min-width: 0; padding: 20px 12px 16px 16px; }
.chart-sidebar { min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 18px; padding: 20px 16px; border-left: 1px solid #3a3d3d; background: #232525; }
.chart-filters { min-width: 0; margin: 0; padding: 0; border: 0; }
.chart-filters > legend { padding: 0; margin-bottom: 12px; font-size: 12px; font-weight: 600; }
.chart-filter-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.chart-filter-options.is-grouped { gap: 16px; }
.chart-filter-mode, .chart-filter-time { min-width: 0; margin: 0; padding: 0; border: 0; }
.chart-filter-mode > legend { max-width: 100%; padding: 0; margin-bottom: 8px; color: #d9ded7; font-size: 12px; font-weight: 500; line-height: 1.5; }
.chart-filter-time > legend { padding: 0; margin-bottom: 7px; color: #aeb9ad; font-size: 11px; font-weight: 500; line-height: 1.5; }
.chart-filter-group-options { display: grid; gap: 7px; padding-left: 10px; border-left: 1px solid #485047; }
.chart-filter-time + .chart-filter-time { margin-top: 5px; }
.chart-filter-label { display: flex; align-items: baseline; gap: 8px; cursor: pointer; font-size: 12px; line-height: 1.5; }
.chart-filter-label input { flex-shrink: 0; width: 12px; height: 12px; margin: 0; accent-color: #8db5d6; cursor: pointer; }
.chart-filter-label input:focus-visible { outline: 2px solid #d9ba83; outline-offset: 3px; }
.chart-filter-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.chart-filter-actions button { padding: 2px 0; border: 0; background: transparent; color: #9bbfdd; font: inherit; font-size: 11px; font-weight: 500; cursor: pointer; }
.chart-filter-actions button:focus-visible { outline: 2px solid #d9ba83; outline-offset: 3px; }
.chart-empty { padding: 24px 12px; margin: 0; color: #c7c9c5; font-size: 13px; }
.experiment-chart-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.experiment-chart-scroll:focus-visible { outline: 2px solid #d9ba83; outline-offset: -3px; }
.experiment-chart svg { display: block; width: 100%; min-width: 500px; height: auto; font-family: inherit; }
.chart-performance-background { fill: #242626; }
.chart-grid { stroke: #414444; stroke-width: .65; stroke-dasharray: 2 5; }
.chart-axis { stroke: #aeb3b0; stroke-width: .85; }
.chart-axis-secondary { opacity: .4; }
.chart-axis-arrow { fill: none; stroke: #aeb3b0; stroke-width: .85; }
.chart-zero { stroke: #e2e5e0; stroke-width: 1; }
.chart-axis-title { fill: #e3e6e0; font-size: 13px; font-weight: 500; }
.chart-tick { fill: #b4bab5; font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-bar { stroke: none; }
.chart-line { fill: none; stroke: #e9ece6; stroke-width: 1.35; stroke-linejoin: round; }
.chart-line-cost { stroke-dasharray: 4 4; }
.chart-line-underlay { stroke: #202222; stroke-width: 3; stroke-opacity: .7; }
.chart-dot { fill: #e9ece6; stroke: #303333; stroke-width: 1; }
.chart-hit { fill: transparent; stroke: transparent; stroke-width: 1; pointer-events: all; }
.chart-variant { cursor: pointer; outline: none; }
.chart-variant-label { fill: #bac0ba; font-size: 12px; }
.chart-horizon-label { color: #bac0ba; font-size: 12px; overflow: visible; }
.chart-horizon-content { display: flex; align-items: center; justify-content: center; height: 26px; white-space: nowrap; }
.chart-shared-labels { pointer-events: none; }
.chart-group-bracket { stroke: #737b74; stroke-width: .75; }
.chart-mode-label { fill: #cbd0cb; font-size: 12px; font-weight: 500; }
.chart-variant.is-active .chart-hit { fill: #fff; fill-opacity: .025; }
.chart-variant.is-active .chart-variant-label { fill: #fff; font-weight: 600; }
.chart-variant.is-active .chart-horizon-label { color: #fff; font-weight: 600; }
.chart-variant:focus-visible .chart-hit { stroke: #e6c48a; stroke-width: 1; }
.chart-legend-swatch { display: block; align-self: start; width: 20px; height: 0; margin-top: 8px; }
.chart-legend-swatch.is-bar { width: 12px; height: 8px; margin: 5px 4px 0; background: #bfc4bd; }
.chart-legend-swatch.is-bar.is-hatched { background: repeating-linear-gradient(135deg, transparent 0 3px, #bfc4bd 3px 4px, transparent 4px 6px), rgba(191, 196, 189, .12); }
.chart-legend-swatch.is-line { border-top: 1.35px solid #e9ece6; }
.chart-legend-swatch.is-dashed { border-top-style: dashed; }
.chart-readout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-content: start;
  padding-top: 16px;
  border-top: 1px solid #3a3d3d;
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.chart-readout > .chart-metric { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: baseline; gap: 2px 6px; }
.chart-metric .chart-legend-swatch { align-self: center; margin-top: 0; }
.chart-metric-name { color: #c5ccc3; font-size: 11px; line-height: 1.4; }
.chart-metric-value { font-size: 12px; font-weight: 500; white-space: nowrap; }
.chart-metric-axis { grid-column: 2 / -1; color: #9ea79d; font-size: 10px; line-height: 1.4; }
.chart-selected-variant { grid-column: 1 / -1; margin-bottom: 3px; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.chart-selected-mode, .chart-selected-detail { display: block; }
.chart-selected-detail { margin-top: 5px; color: #b8c3b6; font-size: 11px; font-weight: 400; }
.experiment-table-scroll { margin-top: 18px; }
.experiment-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.experiment-table th, .experiment-table td { padding: 12px 14px; border-bottom: 1px solid #e6e6e6; text-align: right; }
.experiment-table thead th { background: #f5f5f3; color: #555; font-weight: 600; }
.experiment-table th:first-child { text-align: left; white-space: nowrap; }
.control-grouped-table thead th:first-child { width: 20%; }
.control-grouped-table .table-group-row th { padding: 12px 14px; background: #f5f5f1; color: #454c42; font-weight: 600; text-align: left; white-space: normal; }
.control-grouped-table tbody + tbody .table-group-row th { border-top: 2px solid #dddeda; }
.control-grouped-table tr[data-variant] > th { padding-left: 26px; }
.control-table-caption { padding: 0 14px 12px; color: #454c42; font-size: 13px; font-weight: 600; text-align: left; }
.experiment-table tbody th { font-weight: 500; }
.experiment-table .chart-row-active { background: #f3f3ee; }
#memory-one-shot h4 { margin: 28px 0 12px; }
.one-shot-results-table { min-width: 600px; }
.one-shot-results-table th:first-child { width: 34%; white-space: normal; }
.one-shot-results-table :is(th, td):nth-child(2) { text-align: left; }
.one-shot-results-table td:last-child { white-space: nowrap; }
.memory-distance-figure > a { display: block; }
.memory-distance-figure img { display: block; width: 100%; height: auto; }
.trajectory-error-table { min-width: 0; }
.trajectory-error-table th:first-child { white-space: normal; }
.trajectory-error-table td { white-space: nowrap; }
.section-footnote { margin: -22px 0 24px; color: #666; font-size: 12px; line-height: 1.6; }
.control-definitions { margin: 28px 0; }
.control-equation { max-width: 100%; overflow-x: auto; padding: 12px 16px; background: #f5f5f3; font-family: "Cambria Math", "STIX Two Math", Georgia, serif; font-size: 17px; line-height: 1.8; }
.control-equation sub, .control-equation sup { font-size: .75em; }
.math .katex { font-size: 1.06em; }
.math .katex-display { max-width: 100%; margin: .8em 0; padding: .15em 0; overflow-x: auto; overflow-y: hidden; }

.chart-variant.has-rollouts-open .chart-hit { stroke: #d9ba83; stroke-width: 2; }
body { --rollout-panel-width: 520px; }
.rollout-panel {
  position: fixed;
  z-index: 20;
  inset: 16px 16px 16px auto;
  display: flex;
  flex-direction: column;
  width: min(var(--rollout-panel-width), calc(100% - 32px));
  background: #fafaf8;
  border: 1px solid #deded7;
  border-radius: 14px;
  box-shadow: 0 16px 56px #17202726;
  overflow: hidden;
  line-height: 1.5;
}
.rollout-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0; padding: 22px 22px 18px; border-bottom: 1px solid #e4e4dd; }
.rollout-eyebrow { margin: 0 0 6px; color: #717466; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.rollout-header h2 { margin: 0; font-size: 21px; overflow-wrap: anywhere; }
.rollout-close { flex: none; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #53574b; cursor: pointer; font: inherit; font-size: 12px; }
.rollout-close span { margin-left: 4px; font-size: 22px; vertical-align: -2px; }
.rollout-close:hover { background: #eaece3; }
.rollout-panel button:focus-visible { outline: 2px solid #28649c; outline-offset: 3px; }
.rollout-content { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 20px 22px 24px; }
.rollout-status { margin: 0; font-size: 14px; color: #62665a; }
.rollout-status:empty { display: none; }
.rollout-context { margin: 0 0 6px; color: #3f4538; font-size: 13px; font-weight: 600; }
.rollout-scope { margin: 0 0 18px; color: #777b6d; font-size: 12px; }
.rollout-player-figure { margin: 0 0 24px; }
.rollout-player-figure video { border-radius: 8px; }
.rollout-player-figure figcaption { margin-top: 13px; }
.rollout-current-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.rollout-outcome { flex: none; border-radius: 20px; background: #ecebe5; color: #62645d; padding: 3px 8px; font-size: 11px; }
.rollout-outcome.is-success { background: #e1ebd9; color: #3e622c; }
.rollout-current-metrics { margin: 8px 0 6px; font-size: 12px; color: #73776b; font-variant-numeric: tabular-nums; }
.rollout-player-figure a { font-size: 12px; }
.rollout-video-error { margin: 10px 0 0; font-size: 13px; color: #8a2929; }
.rollout-list-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 12px; font-size: 15px; }
.rollout-list-title span { font-size: 11px; font-weight: 400; color: #777b6d; }
.rollout-clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rollout-clip { min-width: 0; overflow: hidden; padding: 0; border: 1px solid #dfe1d7; border-radius: 8px; background: #fff; color: #30372c; text-align: left; cursor: pointer; font: inherit; }
.rollout-clip:hover { border-color: #8e9981; }
.rollout-clip.is-selected { border-color: #60724e; box-shadow: 0 0 0 1px #60724e; background: #f0f3eb; }
.rollout-clip img { display: block; width: 100%; height: auto; aspect-ratio: 32 / 9; object-fit: contain; background: #202222; }
.rollout-clip-text { display: block; padding: 10px; }
.rollout-clip-text strong { display: block; margin-bottom: 3px; font-size: 12px; }
.rollout-clip-text > span { display: block; font-size: 11px; color: #747a6a; font-variant-numeric: tabular-nums; }
.rollout-backdrop { position: fixed; z-index: 19; inset: 0; background: #10170f55; }
.rollout-modal-open { overflow: hidden; }

.model-output-section { margin: 0 0 24px; padding-top: 16px; border-top: 1px solid #e4e4dd; }
.model-output-options { margin-top: 10px; }
.model-output-toggle, .model-output-section button, .model-output-section select, .model-output-open {
  border: 1px solid #d6dbe0;
  border-radius: 5px;
  padding: 7px 10px;
  background: #fff;
  color: #3f617d;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.model-output-toggle:hover, .model-output-section button:hover, .model-output-open:hover { background: #f0f5f9; }
.model-output-section button:disabled { opacity: .45; cursor: default; }
.model-output-section select:focus-visible, .model-output-code:focus-visible, .model-output-open:focus-visible { outline: 2px solid #28649c; outline-offset: 3px; }
.model-output-status { margin: 12px 0; color: #666; font-size: 12px; }
.model-output-nav { display: flex; align-items: center; gap: 8px; }
.model-output-nav select { min-width: 0; flex: 1; }
.model-output-time { margin: 10px 0 0; color: #666; font-size: 12px; font-variant-numeric: tabular-nums; }
.model-output-jump { margin-top: 10px; }
.model-output-download { display: inline-block; margin: 10px 0 0 8px; font-size: 12px; }
.model-output-caption { margin: 12px 0 8px; color: #666; font-size: 11px; }
.model-output-code { max-height: 380px; margin: 0; padding: 12px; overflow: auto; border: 1px solid #e1e4e6; border-radius: 5px; background: #f5f7f8; color: #28333d; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.model-output-open { margin-top: 10px; }

@media (max-width: 760px) {
  .experiment-chart { grid-template-columns: minmax(0, 1fr); }
  .chart-plot { padding: 16px 12px; }
  .chart-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border-left: 0; border-top: 1px solid #3a3d3d; padding: 18px 16px; }
  .chart-filters { grid-column: 1 / -1; }
  .chart-filter-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .chart-filter-mode:only-child { grid-column: 1 / -1; }
  .chart-readout { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding-top: 0; border-top: 0; }
  .chart-readout > .chart-metric { grid-template-columns: 20px minmax(0, 1fr); row-gap: 4px; }
  .chart-metric-value, .chart-metric-axis { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .student-demo-grid { grid-template-columns: minmax(0, 1fr); }
  .student-demo-grid > figure, .student-demo-grid > .student-demo-baseline { grid-column: auto; }
  .student-demo-grid figcaption { min-height: 0; }
  main { margin: 28px auto 48px; padding: 0 20px; }
  header { margin-bottom: 30px; }
  h1 { font-size: 27px; }
  h2 { margin-top: 32px; font-size: 22px; }
  h3 { font-size: 19px; }
  .article-nav { top: 8px; gap: 10px; margin-bottom: 22px; padding: 10px; }
  .section-takeaway { padding: 10px 13px; }
  .rollout-panel { inset: 10px 10px 10px auto; width: calc(100% - 20px); }
  .rollout-header { padding: 18px 16px 14px; }
  .rollout-header h2 { font-size: 19px; }
  .rollout-content { padding: 16px; }
  .rollout-current-metrics { font-size: 11px; }
}

/* Supporting context stays compact alongside the article. */
.motion-unit-values { margin: 0 0 14px; }
.motion-unit-values dt { margin-top: 12px; font-weight: 600; }
.motion-unit-values dd { margin: 3px 0 0; }
.citation { color: #487696; font-size: .95em; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.citation a { color: inherit; font-weight: inherit; }
.citation a:hover { color: #2c526f; text-decoration: underline; text-underline-offset: 2px; }
.references-list { padding-left: 2.7em; font-size: 14px; }
.references-list > li { margin-bottom: 16px; padding-left: 4px; }
.references-list > li::marker { content: "[" counter(list-item) "]  "; color: #555; font-variant-numeric: tabular-nums; }
.references-list > li:target { background: #fcf9ed; border-radius: 3px; }
.references-list a { font-weight: 500; }
.citation-code { margin: 0; padding: 16px 18px; border: 1px solid #e6e6e6; border-radius: 5px; background: #f5f5f3; font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.citation-code code { font: inherit; }
.citation-code:focus-visible { outline: 2px solid #777; outline-offset: 3px; }

.control-illustrations { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; margin: 28px 0 32px; }
.control-illustrations > * { min-width: 0; margin: 0; }
.control-illustrations h3 { margin: 0 0 14px; font-size: 18px; }

.control-schematic video, [data-control-demo-group] video { aspect-ratio: auto; background: #fff; }
.control-schematic img { display: block; width: 100%; height: auto; background: transparent; }
[data-control-demo-group] figure { margin: 20px 0; }
.execution-step-example { margin: 18px 0; padding: 12px 16px; border-left: 2px solid #d9dfe4; font-size: 14px; }
.execution-step-example > div { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0; }
.execution-step-example dt { flex: 0 0 136px; color: #607080; }
.execution-step-example dd { flex: 1 1 260px; min-width: 0; margin: 0; }
.execution-step-example code { font-size: 13px; font-variant-numeric: tabular-nums; white-space: normal; }

.control-demo-selector { display: flex; gap: 8px; align-items: center; }
.control-demo-selector button { padding: 6px 15px; border: 1px solid #d9dfe4; border-radius: 4px; background: #fff; color: #607080; font: inherit; font-size: 14px; cursor: pointer; }
.control-demo-selector button[aria-pressed="true"] { border-color: #477dad; background: #edf4fa; color: #35648b; font-weight: 600; }
.control-demo-selector button:focus-visible { outline: 2px solid #477dad; outline-offset: 3px; }

.memory-context-example { margin: 28px 0 36px; border: 1px solid #e0e3e5; border-radius: 6px; line-height: 1.6; }
.memory-context-example > summary { padding: 13px 16px; color: #555; font-size: 15px; font-weight: 600; cursor: pointer; }
.memory-context-example > summary::marker { color: #888; }
.memory-context-example[open] > summary { border-bottom: 1px solid #e0e3e5; }
.memory-context-body { padding: 18px; }
.memory-context-caption { margin: 0 0 16px; }
.memory-context-caption, .memory-context-status { color: #777; font-size: 12px; }
.memory-context-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.memory-context-controls > span { margin-right: 4px; color: #666; }
.memory-context-controls button, .memory-context-retry { padding: 4px 14px; border: 1px solid #d9dfe4; border-radius: 4px; background: #fff; color: #607080; font: inherit; cursor: pointer; }
.memory-context-controls button[aria-pressed="true"] { border-color: #477dad; background: #edf4fa; color: #35648b; font-weight: 600; }
.memory-context-example button:focus-visible, .memory-context-example summary:focus-visible, .memory-context-example pre:focus-visible { outline: 2px solid #477dad; outline-offset: 3px; }
.memory-context-example .memory-context-status { margin: 0 0 10px; }
.memory-context-timeline { display: flex; position: relative; gap: 8px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; padding: 4px 3px 12px; margin-bottom: 14px; }
.memory-context-turn { flex: 0 0 108px; padding: 5px; border: 1px solid #dfe3e6; border-radius: 4px; background: #fff; color: #6e757b; font: inherit; cursor: pointer; text-align: left; line-height: 1.5; }
.memory-context-turn.is-current { border-style: dashed; }
.memory-context-turn[aria-pressed="true"] { border-color: #477dad; background: #edf4fa; }
.memory-context-turn img { display: block; width: 96px; height: 54px; object-fit: contain; margin-bottom: 5px; }
.memory-context-turn strong, .memory-context-turn span { display: block; font-size: 11px; }
.memory-context-turn strong { color: #333; }
.memory-context-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding-top: 16px; border-top: 1px solid #e6e8ea; }
.memory-context-detail h4 { margin: 0 0 10px; font-size: 13px; }
.memory-context-cameras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.memory-context-cameras figure { margin: 0; }
.memory-context-cameras img { display: block; width: 100%; height: auto; }
.memory-context-cameras figcaption { margin: 3px 0 0; color: #777; font-size: 11px; }
.memory-context-example details { margin-top: 10px; font-size: 12px; }
.memory-context-example details summary { color: #5b6873; cursor: pointer; }
.memory-context-example pre { max-height: 350px; overflow: auto; margin: 8px 0 0; padding: 10px 12px; background: #f6f7f8; color: #424a50; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.memory-context-example .memory-context-output { margin-top: 0; }
.memory-context-awaiting { padding: 14px; background: #f6f7f8; color: #777; font-size: 12px; }
.memory-context-example .memory-context-source { margin: 12px 0 0; color: #858585; font-size: 11px; }

@media (max-width: 600px) {
  .memory-context-body { padding: 12px; }
  .memory-context-detail { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .memory-context-turn { flex-basis: 92px; }
  .memory-context-turn img { width: 80px; height: 45px; }
}
