/* Shared captions beneath videos and figures. */
.carousel-caption,
.video-caption,
.gaze-training-figures figcaption,
.token-density-figure figcaption,
.spatial-distribution figcaption {
    box-sizing: border-box;
    width: 100%;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    color: #777;
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
}

body {
    min-height: 100%;
    padding: 2em 2em;

    background-color: #fff;
    font-family: 'Open Sans',sans-serif;
    color: #333;
    /* 18px matches both pi.website and sunday.ai, and brings line length in the
       800px column from ~113 characters down to ~101 (pi renders ~97). The
       em-based UA heading defaults scale with this, so h1/h2/h3 become
       36/27/21px without needing explicit sizes. */
    font-size: 18px;
    line-height: 1.45;
}

.editorial-note {
    box-sizing: border-box;
    width: 100%;
    margin: 16px 0 24px;
    padding: 12px 16px;
    border-left: 3px solid #c7b874;
    border-radius: 4px;
    background: #fffbea;
    color: #655d42;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}
.teaser-section > .editorial-note { max-width: var(--content-width, 1000px); flex: 0 0 auto; }

:root {
    --content-width: 800px;
}

/* Phones: drop the wide page gutters (2em padding + the UA's 8px margin). */
@media (max-width: 750px) {
    body {
        margin: 0;
        padding: 20px 14px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
}

.section-index {
    position: fixed;
    z-index: 20;
    left: max(18px, calc(50vw - (var(--content-width) / 2) - 224px));
    width: 184px;
    padding: 2px 18px 2px 0;
    border-right: 1px solid #e2e2e2;
    box-sizing: border-box;
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
}

.section-index-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.section-index a {
    display: block;
    color: #aaa;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 140ms ease;
}

.section-index a[data-heading-level="1"] {
    color: #929292;
    font-weight: 500;
}

.section-index a[data-heading-level="2"] {
    padding-left: 8px;
}

.section-index a:hover,
.section-index a:focus-visible {
    color: #555;
}

.section-index a.is-active {
    color: #292929;
}

@media (max-width: 1219px) {
    .section-index {
        display: none;
    }
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: var(--content-width);
    margin: 0 auto;
}
.video-item {
    flex: 1;
    max-width: 50%;
}
.video-item video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.gaze-trajectory-comparison {
    width: 100%;
    max-width: 680px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px auto;
}

.gaze-trajectory-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    width: 100%;
}

.gaze-trajectory-comparison video {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: auto;
    /* Matches the native 610x648 of images/yellow_scene.mp4 + gray_scene.mp4
       (3D scene crop with the middle stereo pair inset top-left). */
    aspect-ratio: 610 / 648;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
}

.gaze-trajectory-label {
    grid-area: 1 / 1;
    position: relative;
    align-self: end;
    justify-self: start;
    margin: 8px;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
    text-align: left;
    z-index: 1;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(35, 35, 35, 0.48);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gaze-trajectory-item > .media-feedback {
    grid-area: 2 / 1;
}

.carousel-caption.gaze-trajectory-caption {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.wrist-view-comparison {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.wrist-view-task {
    min-width: 0;
    margin: 0;
}

.wrist-view-video-wrap {
    position: relative;
}

.wrist-view-labels {
    position: absolute;
    inset: 6px 0 auto;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    pointer-events: none;
}

.wrist-view-labels span {
    justify-self: start;
    margin-left: 6px;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.wrist-view-task-name {
    text-align: center;
    color: #444;
    font-weight: 600;
}

.wrist-view-comparison video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 3;
    object-fit: cover;
    background: #000;
}

.carousel-caption.wrist-view-caption {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    margin-bottom: 20px;
}

.token-density-figure {
    width: 100%;
    margin: 18px 0 28px;
}

.token-density-figure img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
    }
    .video-item {
        max-width: 100%;
    }
}

@media (max-width: 550px) {
    .wrist-view-comparison {
        grid-template-columns: 1fr;
    }
}

.section {
    display: block;
    max-width: var(--content-width);
    margin: 0 auto;
}

.section h1:not(.tldr),
.section h2,
.section h3,
.section h4,
.section h5,
.section h6 {
    width: 100%;
    text-align: left;
}

/* The live carousels are the track-based ones styled in index.html; the
   `overflow-x: auto; white-space: nowrap` here belonged to the old
   .carousel-item implementation (no longer present in the markup) and was
   being inherited by .carousel-caption, so long captions could not wrap. */
.carousel-container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}
.carousel-container .carousel-item video {
    width: 320px;
    height: 180px;
    object-fit: cover;
}

.carousel-item {
    display: inline-block;
}
.carousel-item.show {
    display: block;
  }
  
.carousel-item:not(.show) {
display: none;
}
.click-and-move-overlay {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none; /* Allows clicking through to the iframe */
    text-align: center; /* Centers the text horizontally */
}

.click-and-move-overlay .tldr {
    margin: 0;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    border-radius: 5px;
    font-size: 14px; /* Adjust as needed */
    text-wrap: nowrap;
}

.click-and-move-overlay .inline-image {
    height: 20px;
    vertical-align: middle;
}

/* New styles for centering and consistency */
.video-carousel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0px;
    margin-bottom: 20px;
}

.container hr {
    flex-basis: 100%; height: 0; margin: 0; border: 0;
    page-break-after: always; /* CSS 2.1 syntax */
    break-after: always; /* CSS 3 syntax */
    width: 100%;
}

.iframe-container {
    position: relative;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); /* Uniform shadow in all directions */
    height: 600px;
    border-radius: 20px;
    width: 97%;
    overflow: hidden;
    margin: 10px auto; /* Center the container and add vertical space */
}
@media (max-width: 768px) {
    .iframe-container {
        height: 400px;
    }
}

.iframe-container .iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
iframe.show {
    display: block;
  }
  
iframe:not(.show) {
display: none;
}

/* Title, authors, and links: left-aligned to the content column. */
.masthead {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto 6px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e3e5e7;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    text-align: left;
}

.title {
    margin: 0;
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    color: #1a1a1a;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0;
    text-wrap: pretty;
}

.title-name {
    font-weight: 600;
    text-wrap: nowrap;
}

.tldr {
    font-family: 'Open Sans',sans-serif;
    color: #1a1a1a;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0;
    display: block;
    width: 100%;
    text-wrap: pretty;
}

h1.tldr {
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    font-weight: 400;
    color: #454545;
}

.title-row {
    margin-top: 20px;
}

.base-row {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.base-col {
    position: relative;
    min-height: 1px;
    padding-left: 0px;
    padding-right: 0px;
    width: 100%;
}

.masthead-authors {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: #777;
}

.author-text {
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.author-text:hover { color: #2563eb; }
.author-text sup { font-size: 0.68em; margin-left: 1px; }

.masthead-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    margin-top: 12px;
}

.masthead-meta {
    display: flex;
    margin: 0;
    flex-wrap: wrap;
    gap: 2px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #6a6f73;
}

.masthead-meta sup { font-size: 0.75em; margin-right: 1px; }
.masthead-dot { color: #b7bcbf; }

#equal-contrib {
    padding-top: 10px;
    font-family: 'Open Sans',sans-serif;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
}

.icon-col {
    width: 33.3%;
}

.icon-img {
    margin-right: auto;
    margin-bottom: 1px;
    margin-left: auto;
    padding-top: 0px;
}

.link-labels {
    width: 60%;
    margin-top: 5px;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 15px 0 12px;
    border: 1px solid #dfe2e4;
    border-radius: 999px;
    background: #fff;
    color: #2c2f31;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.project-link i { font-size: 18px; line-height: 1; }
.project-link:hover { background: #f4f5f6; border-color: #cfd4d7; }

.project-link:focus-visible {
    outline: 2px solid #151719;
    outline-offset: 2px;
}

.viewer-cta-wrap {
    max-width: 580px;
    margin: 24px auto 0;
}

.viewer-cta {
    box-sizing: border-box;
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid #bfc4c8;
    border-radius: 8px;
    background: #fff;
    color: #151719;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(21, 23, 25, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.viewer-cta:hover {
    border-color: #6d7378;
    box-shadow: 0 8px 24px rgba(21, 23, 25, 0.1);
    transform: translateY(-1px);
}

.viewer-cta:focus-visible {
    outline: 2px solid #151719;
    outline-offset: 3px;
}

.viewer-cta-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f0f2f3;
    color: #151719;
    font-size: 23px;
}

.viewer-cta-copy {
    min-width: 0;
    display: grid;
    text-align: left;
}

.viewer-cta-copy strong {
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0;
}

.viewer-cta-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #151719;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.success-scroll-wrap {
    position: relative;
    display: grid;
    width: 100%;
    margin: 18px auto 0;
}

.success-scroll-video {
    grid-area: 1 / 1;
    display: block;
    width: 100%;
    height: auto;
    background: #f3f3f3;
}

.success-scroll-label {
    grid-area: 1 / 1;
    align-self: end;
    justify-self: start;
    margin: 8px;
    white-space: nowrap;
    z-index: 1;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(35, 35, 35, 0.48);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.carousel-caption.success-scroll-caption {
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
    text-align: left;
}

.success-scroll-caption a {
    color: #4f5458;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #b8bbbd;
    text-underline-offset: 2px;
}

.success-scroll-caption a:hover,
.success-scroll-caption a:focus-visible {
    color: #151719;
    text-decoration-color: currentColor;
}

.experiment-figures {
    width: 100%;
    display: grid;
    gap: 20px;
    margin-top: 18px;
}

.experiment-figures img {
    display: block;
    width: 100%;
    height: auto;
}

.experiment-figures img.sim-results-plot {
    width: 80%;
    margin-right: auto;
    margin-left: auto;
}

.real-results-figures {
    gap: 0;
}

.plot-metric-toggle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    justify-self: center;
    padding: 2px;
    border: 1px solid #d7dadd;
    border-radius: 5px;
    background: #f4f5f5;
}

.plot-metric-toggle button {
    min-height: 28px;
    padding: 4px 10px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #666;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
}

.plot-metric-toggle button:hover {
    color: #222;
}

.plot-metric-toggle button.active {
    background: #fff;
    color: #222;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.plot-metric-toggle button:focus-visible {
    outline: 2px solid #555;
    outline-offset: 1px;
}

.spatial-distribution.real-results-plot {
    margin: clamp(-34px, -4.25vw, -10px) 0 0;
}

.spatial-distribution {
    width: 100%;
    margin: 18px 0 22px;
}

.spatial-distribution-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.spatial-distribution-item {
    position: relative;
    min-width: 0;
}

.spatial-distribution-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    object-position: bottom;
}

.spatial-distribution-item span {
    display: block;
    margin-top: 3px;
    color: #666;
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
}

.results-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.results-grid-item {
    position: relative;
    min-width: 0;
    margin: 0;
}

.carousel-container.sim-carousel-container {
    width: 80%;
}

.carousel-container.gaze-probs-carousel-container {
    width: 100%;
}

.carousel-container.policy-carousel-container {
    width: 100%;
    max-width: none;
}

/* A quiet screening area with all seven tasks visible in the filmstrip. */
.carousel-container.real-results-carousel-container {
    width: 100%;
    max-width: none;
    margin-top: 0;
}

.real-results-carousel-container .carousel-track { gap: 0; }
/* Top/right padding leaves room for the inset's shadow inside the clipped track. */
.real-results-carousel-container .carousel-slide { flex: 0 0 100%; min-width: 0; box-sizing: border-box; padding: 12px 16px 0 0; }
.real-results-carousel-container .results-grid-item { width: 100%; }
.real-results-carousel-container .carousel-track-container { border-radius: 8px; }

.real-results-carousel-container .results-grid-item figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.real-results-carousel-container .results-grid-item::after { content: none; }

.results-gaze-composition {
    position: relative;
    aspect-ratio: 100 / 55.625;
}

/* The robot view sits bottom-left; the gaze inset overhangs its top-right
   corner, which is mostly wall and the idle arm rather than the manipulation. */
.results-robot-view {
    box-sizing: border-box;
    position: absolute;
    width: 90%;
    left: 0;
    bottom: 0;
    transform-origin: top left;
}

.real-results-carousel-container .results-robot-view video {
    border-radius: 8px;
}

.results-gaze-inset {
    box-sizing: border-box;
    position: absolute;
    width: 25%;
    right: 0;
    top: 0;
    border: 5px solid #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(29, 44, 57, 0.12);
    transform-origin: top left;
    z-index: 1;
}

.results-gaze-focused .results-gaze-inset {
    width: 90%;
    left: 0;
    right: auto;
    top: auto;
    bottom: 0;
    border-width: 0;
    box-shadow: none;
    z-index: 0;
}

.results-gaze-focused .results-robot-view {
    width: 38%;
    left: auto;
    right: 0;
    top: 0;
    bottom: auto;
    border: 5px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(29, 44, 57, 0.12);
    z-index: 1;
}

.results-focus-toggle {
    border: 1px solid #dce1e5;
    border-radius: 6px;
    background: #f4f6f7;
    color: #596773;
    padding: 6px 10px;
    font: 12px 'Avenir Next', Avenir, sans-serif;
    cursor: pointer;
}

.results-focus-toggle:hover { background: #e8edf0; }
.results-focus-toggle:focus-visible { outline: 2px solid #7894aa; outline-offset: 3px; }

.real-results-carousel-container .results-gaze-inset video {
    width: 200%;
    max-width: none;
    aspect-ratio: 2;
    height: auto;
}

.real-results-carousel-container.results-gaze-focused .results-gaze-inset video {
    width: 100%;
}

.results-gaze-label {
    position: absolute;
    top: 9px;
    left: 10px;
    padding: 4px 7px;
    border-radius: 4px;
    background: rgba(37, 48, 57, 0.7);
    color: #fff;
    font: 11px 'Avenir Next', Avenir, sans-serif;
    pointer-events: none;
}

@media (max-width: 550px) {
    .results-gaze-inset { border-width: 3px; border-radius: 7px; }
    .results-gaze-focused .results-robot-view { border-width: 3px; border-radius: 7px; }
    .results-focus-toggle { padding: 5px 7px; font-size: 10px; }
    .results-gaze-label { top: 5px; left: 5px; padding: 3px 5px; font-size: 9px; }
}

.results-gallery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 14px;
}

.results-gallery-footer .carousel-caption {
    width: auto;
    margin: 0;
}

.results-gallery-arrows { display: flex; gap: 6px; flex-shrink: 0; margin-left: auto; }
.carousel-button {
    position: static;
    transform: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 30px;
    padding: 0;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    background: #fff;
    color: #444;
    font-size: 18px;
    cursor: pointer;
}
.carousel-button:hover { background: #f3f3f3; }

.real-results-carousel-container .results-filmstrip,
.policy-carousel-container .results-filmstrip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.results-thumbnail {
    min-width: 0;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    transition: color 150ms ease, border-color 150ms ease;
}
.results-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    opacity: .65;
    transition: opacity 150ms ease;
}
.results-thumbnail span { display: block; margin-top: 7px; }
.results-thumbnail:hover img, .results-thumbnail.current-slide img { opacity: 1; }
.results-thumbnail.current-slide { border-bottom-color: #333; color: #222; }
.results-thumbnail:focus-visible,
.carousel-button:focus-visible {
    outline: 2px solid #555;
    outline-offset: 3px;
}
@media (max-width: 550px) {
    .real-results-carousel-container .results-filmstrip,
    .policy-carousel-container .results-filmstrip { gap: 5px; }
    .results-thumbnail { font-size: 10px; }
    .carousel-caption,
    .video-caption,
    .gaze-training-figures figcaption,
    .token-density-figure figcaption,
    .spatial-distribution figcaption { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .real-results-carousel-container .carousel-track { transition: none; }
}

.carousel-container.sim-carousel-container {
    margin-top: 8px;
}

.sim-carousel-container .carousel-slide {
    align-items: stretch;
}

.sim-carousel-pair {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.carousel-container.sim-autonomous-carousel-container {
    width: 100%;
    max-width: none;
}

.sim-autonomous-carousel-container .results-grid-item video {
    aspect-ratio: 2 / 1;
}

.distractor-summary {
    width: 80%;
    margin: 20px auto 26px;
}

.distractor-summary .plot-metric-toggle {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.distractor-summary [hidden] { display: none; }

.distractor-results-plot,
.distractor-results-plot img {
    display: block;
    width: 100%;
    height: auto;
}

.distractor-results-plot { margin-top: 6px; }

.distractor-summary figcaption {
    margin-top: 10px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

@media (max-width: 600px) {
    .distractor-summary { width: 100%; }
    .distractor-summary .plot-metric-toggle button { padding: 4px 8px; font-size: 11px; }
    .distractor-results-plot img { aspect-ratio: 320 / 250; }
}

.distractor-comparison {
    position: relative;
    width: 100%;
    margin: 0;
}

.distractor-video::after,
.gaze-live-carousel .gaze-speed-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 1;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(35, 35, 35, 0.48);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.distractor-video::after { content: "1x speed, autonomous"; }

.distractor-policy-labels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 5px;
    color: #666;
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

.distractor-comparison video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 3;
    background: #000;
}

.distractor-playback-controls {
    width: 100%;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 6px 2px 0;
    color: #555;
    white-space: normal;
}

.distractor-play-toggle {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.distractor-play-toggle:hover {
    border-color: #aaa;
    background: #f4f4f4;
    color: #000;
}

.distractor-play-toggle:focus-visible,
.distractor-scrubber:focus-visible {
    outline: 1px solid #555;
    outline-offset: 2px;
}

.distractor-scrubber {
    --seek-progress: 0%;
    width: 100%;
    height: 16px;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
    touch-action: none;
}

.distractor-scrubber::-webkit-slider-runnable-track {
    height: 2px;
    border-radius: 0;
    background: linear-gradient(to right, #333 0 var(--seek-progress), #d0d0d0 var(--seek-progress) 100%);
}

.distractor-scrubber::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -4px;
    border: 0;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: #333;
}

.distractor-scrubber::-moz-range-track {
    height: 2px;
    border: 0;
    border-radius: 0;
    background: #d0d0d0;
}

.distractor-scrubber::-moz-range-progress {
    height: 2px;
    background: #333;
}

.distractor-scrubber::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: #333;
}

.distractor-scrubber:disabled {
    opacity: 0.45;
    cursor: default;
}

.distractor-playback-time {
    color: #777;
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: right;
}

.distractor-carousel-container .carousel-caption {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    white-space: normal;
    overflow-wrap: break-word;
}

@media (max-width: 550px) {
    .carousel-container.sim-carousel-container,
    .carousel-container.policy-carousel-container,
    .carousel-container.gaze-probs-carousel-container {
        width: 100%;
    }


}

.results-grid-item video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    background: #000;
}

.results-grid-item figcaption {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    margin: 0;
    padding: 4px 7px;
    border-radius: 4px;
    background: rgba(35, 35, 35, 0.58);
    color: #fff;
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    text-align: left;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.results-grid-item::after {
    content: "1x speed, autonomous";
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 1;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(35, 35, 35, 0.48);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.teaser-stage {
    flex: 0 0 100%;
    width: 100%;
}

#main-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0;
}

/* Desktop teaser size follows page width, not the height left below the title.
   Short windows scroll naturally to reveal the rest of the hero. */
@media (min-width: 751px) and (pointer: fine) {
    .page-hero {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding-bottom: 12px;
    }
    .page-hero > * { flex-shrink: 0; }
    .page-hero .teaser-section {
        flex: none;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        max-width: none;
    }
    .page-hero .teaser-section::after { display: none; }
    /* One line, overflowing the column evenly; hero-snap.js sets its size. */
    .page-hero h1.tldr {
        display: flex;
        justify-content: center;
        max-width: var(--content-width);
        white-space: nowrap;
        letter-spacing: -0.01em;
        margin-bottom: 16px;
    }
    .page-hero .teaser-stage {
        position: relative;
        flex: none;
        width: 100%;
        max-width: 1100px;
        padding-bottom: 0;
    }
    .page-hero #main-video { width: 100%; }
}

.teaser-section::after {
    width: 100%;
    height: 1px;
    margin-top: 12px;
    background: #d7dadd;
    content: "";
}

#addtl-video {
    width: 100%;
    /* max-width: 750px; */
    margin-top: 0px;
    margin-bottom: 10px;
    border-radius: 15px;
}

#pipeline-img {
    width: 60%;
    max-width: 560px;
    margin-top: 10px;
    margin-right: 20px;
    margin-bottom: 10px;
}

#why-lerf-img {
    width: 30%;
    max-width: 560px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
}
.separator {
    display: block !important;
    height: 1px !important;
    width: 100% !important;
    /* margin: 1em 0 !important;
    background-color: #eee !important;
    clear: both !important; */
  }
#why-lerf{
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

#clip-img {
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
}
#main-img {
    width: 100%;
    max-width: 700px;
    margin-top: 00px;
    margin-bottom: 0px;
}
#double-img {
    width: 40%;
    margin-top: 00px;
    margin-bottom: 0px;
    margin-left: 2%;
    margin-right: 2%;
}
#splash-img {
    width: 100%;
    max-width: 800px;
    margin-top: 0px;
    margin-bottom: 0px;
}
.paragraph {
    margin-top: 0px;
    /* Tighter leading needs more space between paragraphs to keep them reading
       as separate units. */
    margin-bottom: 20px;
    font-family: 'Open Sans',sans-serif;
    color: #333;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: 0;
    text-align: left;
    display: block;
    width: 100%;
}

.paragraph-with-sidenote {
    position: relative;
    width: 100%;
}

.policy-rollout-intro {
    margin-top: 0.5em;
}

.footnote-marker {
    line-height: 0;
}

.footnote-ref {
    margin-left: 2px;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.footnote-ref:hover,
.footnote-ref:focus-visible,
.sidenote-number:hover,
.sidenote-number:focus-visible {
    color: #000;
    text-decoration: underline;
}

.sidenote {
    position: absolute;
    top: 1px;
    left: calc(100% + 28px);
    width: 176px;
    margin: 0;
    color: #666;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.sidenote-number {
    margin-right: 5px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .sidenote {
        position: static;
        width: auto;
        margin: 2px 0 14px;
        padding: 5px 0 5px 12px;
        border-left: 1px solid #bbb;
    }
}

.paragraph-center {
    margin-top: 0px;
    /* margin-bottom: 20px; */
    font-family: 'Open Sans',sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
}

/* ------------------------------------------------------ */
/* All teaser-slider things                               */
/* ------------------------------------------------------ */
.teaser-slide-row {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 88%;
    margin-left: auto;
    margin-right: auto;
}

.teaser-slide-col {
    flex: 1 0 200px;
    height: 200px;
}

.teaser-slide-arrow {
    display: flex;
    top: 0;
    bottom: 0;
    margin-top: 80px;  /* (200 - 40) / 2 */
    height: 40px;
    background-color: #FBE2B1;
    border: none;
    width: 5%;
    font-size: 30px;
    padding: 0;
    cursor: pointer;
    opacity: 1.0;
    transition: color 100ms;
    justify-content: center;
  }
  
.teaser-slide-arrow:hover,
.teaser-slide-arrow:focus {
    background-color: #FBC661;
    opacity: 1;
}

#teaser-slide-arrow-prev {
    left: 0;
    margin-right: 1%;
    border-radius: 2rem 2rem 2rem 2rem;
}

#teaser-slide-arrow-next {
    right: 0;
    margin-left: 1%;
    border-radius: 2rem 2rem 2rem 2rem;
}

.results-slide-row {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    height: 141px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
}

.results-slide-col {
    flex: 1 0 140px;
    height: 140px;
}

.results-slide-arrow {
    display: flex;
    position: absolute;
    height: 50%;
    transform: translateY(-50%);
    top: 50%;
    height: 40px;
    background-color: #FBE2B1;
    border: none;
    width: 5%;
    font-size: 30px;
    padding: 0;
    cursor: pointer;
    opacity: 1.0;
    transition: color 100ms;
    justify-content: center;
  }
  
.results-slide-arrow:hover,
.results-slide-arrow:focus {
    background-color: #FBC661;
    opacity: 1;
}

#results-slide-arrow-prev {
    left: 0;
    margin-right: 1%;
    border-radius: 2rem 2rem 2rem 2rem;
}

#results-slide-arrow-next {
    right: 0;
    margin-left: 1%;
    border-radius: 2rem 2rem 2rem 2rem;
}
.thumbnails {
    /* width: 100%; */
    height: 100px;
    overflow: hidden;
    margin-top: 0px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
}
.thumbnail-btn {
    border: none;
    cursor: pointer;
    outline: none;
    background-color: #fff;
    border-radius: 10px;
    opacity: 0.6;
}

.thumbnail-btn:hover   {
    opacity: 1.0;
}

.thumbnail_label {
    font-family: 'Open Sans',sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: 0;
}


/* ------------------------------------------------------ */

/* ------------------------------------------------------ */
/* Image compare */
/* ------------------------------------------------------ */
.image-compare {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: content-box;
    cursor: pointer;
    user-select: none;
    box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.1);
    border-radius: 15px;
  }
  .image-compare::before {
    /* Prevent selection, similar to user-select: none. */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
  }
  .image-compare img {
    max-width: 100%;
    background: #fff;
    display: block;
  }
  .image-compare img:not(:first-child) {
    position: absolute;
    top: 0;
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: top left;
    width: 50%;
    overflow: hidden;
    z-index: 1;
  }
  .image-compare-handle {
    height: 100%;
    width: 0.5em;
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    z-index: 20;
  }
  .image-compare-handle i {
    background: #fff;
    border-radius: 50%;
    line-height: 2em;
    width: 2em;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
    box-shadow: 0em 0.1em 0.5em rgba(0, 0, 0, 0.1);
  }
  .inline-image {
    display: inline-block;
    vertical-align: top;
    height: 1em;  /* This makes the image height match the text */
    width: auto;  /* Maintain aspect ratio */
    margin: 5px;  /* Add some space around the image */
}
  .image-compare-handle::before {
    /* Centered line! */
    box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.4);
    content: "";
    height: 100%;
    position: absolute;
    left: -1px;
    right: -1px;
    background: #fff;
  }
  .image-compare-before,
  .image-compare-after {
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    position: absolute;
    overflow: hidden;
  }
  .image-compare-before > div,
  .image-compare-after > div {
    position: absolute;
    bottom: 0.5em;
    background: #fff;
    line-height: 1.5em;
    text-align: center;
    padding: 0.2em 0.6em;
    border-radius: 0.5em;
    white-space: nowrap;
    box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.2);
  }
  .image-compare-before > div {
    z-index: 2;
    left: 0.5em;
  }
  .image-compare-after > div {
    z-index: 0;
    right: 0.5em;
  }
/* ------------------------------------------------------ */

:root {
    --opacity: 50;
}

#canvas {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

#canvas-overlay {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    /* opacity: var(--opacity); */
    filter: opacity(var(--opacity));
    transition-property: filter;
    transition-duration: 0.5s;
}

#main-results {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: center;
    background-color: white;
    border-radius: 15px;
    -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
    overflow: hidden;
}

/* #main-results > div {
    height: 200px;
    background-color: red;
} */

.videos {
    visibility: hidden;
    position: absolute;
    width: 1%;
}

#opacity {
    font-family: 'Open Sans',sans-serif;
    color: #3c3c3c;
    font-size: 20px;
    line-height: 20px;
}

.viewer-bar {
    width: 33.3333%;
}

.switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
    margin-left: 15px;
    margin-top: 5px;
  }
  
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .2s;
    transition: .2s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .2s;
    transition: .2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(36px);
    -ms-transform: translateX(36px);
    transform: translateX(36px);
}

.video-bar {
    width: 100%;
    margin-top: -50px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 20px;
    height: 40px;
    position: relative;
    z-index: 41;  /* the image-compare bar is 40. */
}

.video-btn {
    width: 40px;
    height: 40px;
    padding: 8px 6px 8px 6px;
    margin: 0px 10px 0px 0px;
    cursor: pointer;
    outline: none;
    border: none;
    color: #000;
    background-color: #FBE2B1;
    padding-bottom: 8px;
    border-radius: 10px;
    box-shadow: 0em 0.1em 0.5em rgba(0, 0, 0, 0.4);
}

.video-btn:hover {
    background-color: #FBC661;
}

.video-export {
    text-align: right;
}

#play-btn {
    border-radius: 20px;
    padding: 0px;
}

.switch .labels {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-family: sans-serif;
    transition: all 0.2s ease-in-out;
}

.switch .labels::after {
    content: attr(data-off);
    position: absolute;
    right: 8px;
    color: #4d4d4d;
    opacity: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease-in-out;
}

.switch .labels::before {
    content: attr(data-on);
    position: absolute;
    left: 11px;
    color: #ffffff;
    opacity: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease-in-out;
}

.switch input:checked~.labels::after {
    opacity: 0;
}

.switch input:checked~.labels::before {
    opacity: 1;
}

#opacity-col {
    text-align: left;
}

.citation {
    /* // set background color to gray; */
    background-color: #eaeaea;
    text-align: left;
    border-radius: 10px;
    padding-top: 3px;
}

.citation > h1 {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    padding: 10px;
}
.citation > pre {
    margin-bottom: 10px;
    margin-left: 10px;
    padding: 10px;
}

.citation > p {
    margin-left: 20px;
}

/* The margins above would otherwise push these past the box's right edge. */
.section.citation > h1,
.section.citation > p {
    box-sizing: border-box;
    width: auto;
}

#codecell0 {
    margin-bottom: 10px;
    margin-left: 10px;
    overflow-y: scroll;
}

.add-top-padding{
    margin-top: 10px;
}

@media screen and (max-width: 750px) {
    .title { font-size: 26px; }
    .masthead-dot { display: none; }

    .results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .gpt-query {
        height: 30px;
        font-size: 2.5vw;
    }

    .slide-arrow {
        margin-top: 20px;
    }
}

@media screen and (max-width: 550px) {
    .viewer-cta {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .viewer-cta-copy strong {
        font-size: 16px;
    }

    .viewer-cta-action {
        grid-column: 2;
        justify-self: start;
        white-space: normal;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .spatial-distribution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* .author-text {
        font-size: 12px;
    }

    .author-row {
        height: 35px;
    } */

    /* #uc-berkeley {
        font-size: 12px;
    } */

    #pipeline-img {
        width: 90%;
        max-width: 560px;
        margin-top: 20px;
        margin-right: 0px;
    }

    #why-lerf-img {
        width: 60%;
        max-width: 560px;
        margin-top: 20px;
        margin-left: 0px;
    }

    .slide-arrow {
        margin-top: 15px;
      }
}
/* Image compare utility. */

.image-compare {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: content-box;
    cursor: pointer;
    user-select: none;
    box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.1);
  }
  .image-compare::before {
    /* Prevent selection, similar to user-select: none. */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
  }
  .image-compare img {
    max-width: 100%;
    background: #fff;
    display: block;
  }
  .image-compare img:not(:first-child) {
    position: absolute;
    top: 0;
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: top left;
    width: 50%;
    overflow: hidden;
    z-index: 1;
  }
  .image-compare-handle {
    height: 100%;
    width: 0.5em;
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    z-index: 20;
  }
  .image-compare-handle i {
    background: #fff;
    border-radius: 50%;
    font-size: 20px;
    line-height: 2em;
    width: 2em;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
    box-shadow: 0em 0.1em 0.5em rgba(0, 0, 0, 0.4);
  }
  .image-compare-handle::before {
    /* Centered line! */
    box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.4);
    content: "";
    height: 100%;
    position: absolute;
    left: -2px;
    right: -2px;
    background: #fff;
  }
  .image-compare-before,
  .image-compare-after {
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    position: absolute;
    overflow: hidden;
  }
  .image-compare-before > div,
  .image-compare-after > div {
    position: absolute;
    top: 0.5em;
    background: #fff;
    line-height: 1.5em;
    text-align: center;
    padding: 0.2em 0.6em;
    border-radius: 0.5em;
    white-space: nowrap;
    box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.2);
    font-size: 16px;
    height: 24px;
  }
  .image-compare-before > div {
    z-index: 2;
    left: 0.5em;
  }
  .image-compare-after > div {
    z-index: 0;
    right: 0.5em;
  }

  .switcher {
    position: relative;
    overflow: hidden;
    /* box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.1); */
    margin-top: 0em;
    margin-bottom: 0.5em;
    display: block;
    background-color: #FBE2B1;
    border-radius: 10px;
  }
  .switcher > *:not(.switcher-labels) {
    opacity: 1;
    transition: 0.5s all;
    z-index: 1;
  }
  .switcher > *:not(:first-child):not(.switcher-labels) {
    position: absolute;
    top: 0;
  }
  
  .switcher > .switcher-hidden {
    opacity: 0;
    z-index: 0;
  }

  .switcher .switcher-labels {
    text-align: center;
    font-weight: 600;
    padding: 1em 1.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 0.75em;
  }
  
  .switcher .switcher-labels > div {
    white-space: nowrap;
  }
  
  .switcher .switcher-labels label {
    transition: 0.5s all;
    cursor: pointer;
    padding: 0 0.3em;
    color: #000;
    font-size: 16px;
  }
  .switcher .switcher-labels label.switcher-hidden {
    opacity: 0.3;
  }
  .switcher .switcher-labels input {
    vertical-align: middle;
    transform: translateY(-1px);
  }

  label {
    font-size: 18px;
    vertical-align: middle;
  }
  
  input[type="radio"] {
    vertical-align: middle;
  }

  .video-scroll {
    width: 88%;
    max-height: 500px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
}

.video-scroll-card {
    display: inline-block;
    object-fit: cover;
    flex: 1;
    max-width: 100%;
}

.video-scroll-card video{
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* .video-scroll-card img {
    width: 100%;
    cursor: pointer;
} */

/* Abridged takeaway callout at the end of the intro section */
.takeaway-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 28px;
    padding: 18px 22px;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    background: #fafafa;
    text-align: left;
}

.takeaway-text {
    flex: 1 1 320px;
    min-width: 0;
}


.takeaway-statement {
    margin: 0 0 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 19px;
    line-height: 26px;
    font-weight: 600;
    color: #222;
}

.takeaway-detail {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 21px;
    color: #555;
}

.takeaway-experiments {
    margin-top: 12px;
}

.takeaway-detail a {
    color: inherit;
    text-decoration: underline;
}

.takeaway-figure {
    flex: 0 0 260px;
    margin: 0;
}

.takeaway-figure img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 640px) {
    .takeaway-figure {
        flex-basis: 100%;
    }
}

/* Camera comparison plot sticks to the top while scrolling its subsections.
   Pure CSS (position: sticky), no scroll listeners. */
.camera-comparison-scope {
    width: 100%;
}

.camera-comparison-scope .real-results-figures {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding: 8px 0 10px;
    border-bottom: 1px solid #eee;
}

/* On narrow or short screens the plot would eat too much of the viewport; let it scroll normally. */
@media (max-width: 700px), (max-height: 640px) {
    .camera-comparison-scope .real-results-figures {
        position: static;
        padding: 0;
        border-bottom: none;
    }
}

.policy-architecture {
    width: 100%;
    margin: 4px 0 26px;
    padding: 24px 0 0;
    border-top: 1px solid #e6e8e9;
    text-align: left;
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
}

.policy-architecture-flow {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 28px minmax(0, .8fr) 28px minmax(0, 1.5fr);
    align-items: center;
}

.policy-architecture h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.policy-inputs {
    position: relative;
    display: grid;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.policy-inputs::after {
    position: absolute;
    top: 50%;
    bottom: 18px;
    right: -12px;
    width: 1px;
    background: #b1b8be;
    content: "";
}

.policy-stereo,
.policy-state,
.policy-target {
    position: relative;
}

.policy-encoder::after,
.policy-state::after,
.policy-target::after {
    position: absolute;
    right: -12px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: #b1b8be;
    content: "";
}

.policy-encoder {
    position: relative;
}

.policy-stereo h3,
.policy-network h3,
.policy-output h3,
.policy-output {
    text-align: center;
}

.policy-stereo img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 8px;
}

.policy-encoder,
.policy-state {
    padding: 9px 10px;
    border: 1px solid #c8d7ce;
    border-radius: 6px;
    background: #edf4ef;
    text-align: center;
}

.policy-encoder strong,
.policy-state strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.policy-encoder span,
.policy-state span {
    color: #69766e;
    font-size: 12px;
}

.policy-state {
    border-color: #dedfe1;
    background: #fafafa;
}

.policy-state span {
    color: #73777b;
}

.policy-target {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
    border: 1px dashed #e6c4b1;
    border-radius: 6px;
}

.policy-target span {
    color: #93674c;
}

.policy-flow-arrow {
    position: relative;
    display: block;
    height: 1px;
    margin: 0 6px;
    background: #949da4;
}

.policy-inputs + .policy-flow-arrow {
    margin-left: 12px;
}

.policy-flow-arrow::after {
    position: absolute;
    right: 0;
    top: -3px;
    width: 6px;
    height: 6px;
    border-top: 1px solid #949da4;
    border-right: 1px solid #949da4;
    transform: rotate(45deg);
    content: "";
}

.policy-network {
    padding: 18px 10px 14px;
    border: 1px solid #a8bed1;
    border-radius: 9px;
    background: #e3edf5;
    text-align: center;
    color: #35526b;
}

.policy-network p {
    margin: 5px 0 18px;
    font-size: 13px;
    line-height: 1.4;
}

.policy-attention {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.35;
}

.policy-attention svg {
    display: block;
    width: 100%;
    max-width: 160px;
    height: auto;
    margin: 8px auto;
}

.policy-training {
    display: block;
    padding-top: 12px;
    border-top: 1px solid #c6d6e3;
    font-size: 12px;
}

.policy-output img {
    display: block;
    width: 100%;
    height: auto;
    margin: 8px 0 6px;
}

.policy-output p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.5;
}

.policy-frame-label {
    display: inline-block;
    color: #77848e;
    font-size: 12px;
}

.policy-architecture .carousel-caption {
    margin-top: 20px;
}

@media (max-width: 600px) {
    .policy-architecture-flow {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .policy-inputs,
    .policy-network,
    .policy-output {
        box-sizing: border-box;
        width: 100%;
        max-width: 300px;
    }

    .policy-inputs {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 8px;
    }

    .policy-stereo {
        grid-column: 1 / -1;
    }

    .policy-inputs::after,
    .policy-encoder::after,
    .policy-state::after,
    .policy-target::after {
        display: none;
    }

    .policy-stereo img {
        width: 200px;
        max-width: 100%;
        margin: 8px auto 0;
    }

    .policy-state,
    .policy-target {
        padding: 8px 6px;
        align-content: center;
    }

    .policy-state strong {
        font-size: 12px;
    }

    .policy-state span {
        display: block;
        font-size: 11px;
        margin-top: 3px;
    }

    .policy-target {
        display: grid;
        justify-content: center;
        gap: 4px;
        font-size: 12px;
        text-align: center;
    }

    .policy-flow-arrow {
        width: 1px;
        height: 22px;
        margin: 10px 0;
    }

    .policy-inputs + .policy-flow-arrow {
        margin-left: 0;
    }

    .policy-flow-arrow::after {
        top: auto;
        right: -3px;
        bottom: 0;
        transform: rotate(135deg);
    }

    .policy-network {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
        column-gap: 14px;
        padding: 14px 12px 10px;
    }

    .policy-network h3 {
        align-self: end;
        grid-column: 1;
        grid-row: 1;
    }

    .policy-network p {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        margin: 6px 0 0;
    }

    .policy-attention {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin-bottom: 10px;
    }

    .policy-attention svg {
        max-width: 160px;
    }

    .policy-training {
        grid-column: 1 / -1;
        padding-top: 7px;
    }

    .policy-output img {
        width: 100%;
        max-width: 100%;
        margin: 8px auto;
    }

    .policy-output p {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

.gaze-rendering-figure {
    display: block;
    width: 100%;
    height: auto;
    margin: 10px 0 24px;
}

.gaze-training-figures {
    width: 80%;
    margin: 8px auto 20px;
}

.gaze-training-figures figure {
    min-width: 0;
    margin: 0;
}

.gaze-training-figures img,
.gaze-policy-wrap-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.goal-conditioned-intro {
    margin-top: 20px;
    display: flow-root;
    width: 100%;
    margin-bottom: 0;
}

.goal-conditioned-intro .paragraph {
    margin-bottom: 0;
}

.gaze-policy-wrap-figure {
    float: right;
    width: 42%;
    max-width: 360px;
    margin: 0 0 0 24px;
}

@media (max-width: 640px) {
    .goal-conditioned-intro { display: flex; flex-direction: column; }
    .gaze-policy-wrap-figure {
        float: none;
        order: 1;
        width: 100%;
        max-width: 360px;
        margin: 0 auto 12px;
    }
}

.gaze-sequencing-heading {
    margin: 28px 0 12px;
}

.gaze-sequencing-figure {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 20px;
    border-radius: 12px;
}

.ablation-sankeys {
    width: 100%;
    margin: 24px 0;
}
.ablation-task-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.ablation-task-picker button {
    padding: 6px 12px;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    background: #fff;
    color: #666;
    font: 12px 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    cursor: pointer;
}
.ablation-task-picker button[aria-pressed="true"] {
    background: #333;
    border-color: #333;
    color: #fff;
}
.ablation-task-picker button:focus-visible,
.ablation-sankey a:focus-visible {
    outline: 2px solid #555;
    outline-offset: 3px;
}
.ablation-task-panel[hidden] { display: none; }
.ablation-sankeys .ablation-reading-guide {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
}
.ablation-sankey { margin: 0 0 10px; }
.ablation-sankey figcaption {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 2px;
    color: #444;
    font: 500 12px/1.4 'Avenir Next', Avenir, 'Open Sans', sans-serif;
}
.ablation-sankey figcaption span:last-child { color: #777; }
.ablation-sankey a { display: block; overflow-x: auto; }
.ablation-sankey img { display: block; width: 100%; min-width: 580px; height: auto; }

#action-frame-ablation { scroll-margin-top: 24px; }

/* Selected clutter examples: task tabs and captions belong to each video. */
.distractor-video { position: relative; }
.distractor-carousel-container [hidden] { display: none !important; }
.distractor-task-tabs { margin: 0 auto 16px; }
.distractor-carousel-container .distractor-example-caption {
    margin: 12px 0 0;
    text-align: left;
    line-height: 1.5;
}
.distractor-example-index {
    margin: 0;
    font-family: "Avenir Next", Avenir, "Open Sans", sans-serif;
    font-size: 12px;
    color: #7b7b7b;
}

/* Curated behavior examples share the main results controls and video treatment. */
.behavior-carousel-container .distractor-behavior-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
    margin: 8px auto 20px;
}
.behavior-carousel-container .distractor-behavior-tabs button {
    padding: 9px 8px;
    font-size: 13px;
}
.behavior-carousel-container .carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
}
.behavior-carousel-container .distractor-behavior-heading {
    width: 100%;
    margin: 0 0 20px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}
.behavior-carousel-container .distractor-example-caption {
    margin: 12px 0 0;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .behavior-carousel-container .distractor-behavior-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .behavior-carousel-container .carousel-track { transition: none; }
}

/* Final task outcomes, aligned with the left/right policy views. */
.distractor-outcomes {
    position: absolute;
    inset: 8px 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    pointer-events: none;
}
.distractor-outcome {
    justify-self: start;
    margin-left: 8px;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}
.distractor-outcome--success { color: #32634d; }
.distractor-outcome--failure { color: #87554d; }
@media (max-width: 550px) {
    .distractor-outcomes { top: 5px; }
    .distractor-outcome { margin-left: 5px; padding: 2px 4px; font-size: 10px; }
}

/* Match the bottom failure examples to the inset video carousels. */
.carousel-container.failures-carousel-container {
    width: 80%;
}
.failures-carousel-container video { border-radius: 4px; }
.distractor-video {
    overflow: hidden;
    border-radius: 4px;
}
@media (max-width: 550px) {
    .carousel-container.failures-carousel-container {
        width: 100%;
    }
}

/* Blank media slots for the introduction layout draft. */
.intro-placeholder {
    width: 100%;
    margin: 24px 0 32px;
}

.intro-placeholder-space {
    height: clamp(140px, 25vw, 240px);
    box-sizing: border-box;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background: #f7f7f7;
}

.intro-placeholder figcaption {
    margin-top: 10px;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: break-word;
}

.intro-problem-heading {
    font-weight: 600;
}

/* Quiet numbered gutter, aligned with the first line of each concern. */
.intro-problems {
    margin: 0 0 24px;
    padding-left: 2.25rem;
    list-style-type: decimal-leading-zero;
}

.intro-problems > li {
    padding-left: 0.5rem;
}

.intro-problems > li::marker {
    color: #999;
    font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.intro-problems > li:last-child > .paragraph {
    margin-bottom: 0;
}

/* An HTML crop guide connects two synchronized resolution-sweep videos. */
.intro-resolution-figure.intro-resolution-inset { width: 80%; margin: 24px auto 32px; }
.intro-resolution-composition { position: relative; width: 100%; aspect-ratio: 20 / 9; }
.intro-resolution-overview-panel { position: absolute; left: 0; top: 0; width: 60%; height: 100%; }
.intro-resolution-detail-panel { position: absolute; left: 62%; top: 18.333333%; width: 38%; height: 63.333333%; }
.intro-resolution-panel video { display: block; width: 100%; height: 100%; border-radius: 4px; }
.intro-token-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.intro-resolution-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-resolution-inset .media-feedback:not(.is-visible) { display: none; }

.intro-baseline-callout { margin: 24px 0 32px; }

.carousel-container.wrist-design-carousel { width: 80%; max-width: none; margin: 20px auto 16px; }
.wrist-design-carousel .carousel-track-container { border-radius: 6px; }
.wrist-design-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; padding: 24px; box-sizing: border-box; background: #e6e6e6; color: #666; text-align: center; font-size: clamp(14px, 1.5vw, 20px); line-height: 1.5; }
.wrist-design-placeholder span { max-width: 420px; }
.wrist-design-carousel .results-gallery-footer { margin: 10px 0 0; }
.wrist-design-carousel > .media-feedback:not(.is-visible) { display: none; }
.wrist-design-carousel .carousel-nav { margin-top: 4px; }
.wrist-occlusion-video { position: relative; width: 100%; aspect-ratio: 8 / 3; }
.wrist-occlusion-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #eee; }
.wrist-occlusion-labels { position: absolute; top: 6px; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; text-align: center; pointer-events: none; }
.wrist-occlusion-labels span { justify-self: center; padding: 2px 7px; border-radius: 3px; color: white; background: #0008; font-size: 11px; }
.wrist-occlusion-carousel .wrist-design-placeholder { aspect-ratio: 8 / 3; }
@media (max-width: 650px) {
    .carousel-container.wrist-design-carousel { width: 100%; }
    .wrist-design-placeholder { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .wrist-design-carousel .carousel-track { transition: none; }
}

/* Static wrist-camera comparison; selected patches match exo frame 363. */
.intro-wrist-tokens { width: 80%; margin: 24px auto 32px; font-family: 'Avenir Next', Avenir, sans-serif; }
.intro-wrist-frame img { display: block; width: 100%; height: auto; border-radius: 4px; }
.intro-wrist-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-wrist-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.intro-wrist-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.intro-wrist-tokens figcaption { margin: 16px 0 0; padding: 0; color: #c26722; text-align: center; font-size: 17px; font-style: italic; line-height: 1.4; }
@media (max-width: 650px) {
    .intro-wrist-tokens { width: 100%; }
    .intro-wrist-pair { gap: 15px; }
    .intro-wrist-tokens figcaption { font-size: 14px; }
}

/* The problem callout recedes so the answer card below carries the emphasis. */
.intro-baseline-callout { background: #fff; border-color: #ececec; }
.intro-baseline-callout .takeaway-statement { color: #444; font-weight: 600; font-size: 17px; }

/* The intro's question, set apart, then answered by an accented card. */
.intro-question { box-sizing: border-box; padding-left: 18px; border-left: 3px solid #d9dee1; }
.intro-answer-card { margin: 28px 0 32px; padding: 30px 30px 24px; border: 1px solid #e8e8e8; border-radius: 12px; background: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05); text-align: left; }
.intro-answer-line { margin: 0; font-family: 'Avenir Next', Avenir, 'Open Sans', sans-serif; font-size: 2em; font-weight: 700; line-height: 1.3; color: #333; text-align: left; text-wrap: balance; }
.intro-answer-line em { font-style: normal; color: #c26722; }
.intro-answer-body { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 12px; }
.intro-answer-text { flex: 1 1 320px; min-width: 0; }
.intro-answer-text .paragraph { margin-bottom: 12px; }
.intro-answer-card .takeaway-detail a { color: #555; }
@media (max-width: 640px) {
    .intro-answer-card { padding: 22px 18px 18px; }
}

@media (max-width: 550px) {
    .intro-resolution-figure.intro-resolution-inset { width: 100%; }
}

@media (max-width: 550px) {
    .intro-resolution-composition { display: flex; flex-direction: column; gap: 20px; aspect-ratio: auto; }
    .intro-resolution-panel { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; }
    .intro-resolution-guide { display: none; }
    .intro-resolution-detail-panel { border: 1px solid #bdc5ca; border-radius: 4px; box-sizing: border-box; }
}

.intro-token-title { position: absolute; bottom: calc(100% + 9px); left: 0; width: 100%; text-align: center; color: #455762; font: 500 14px/1.25 'Avenir Next', Avenir, sans-serif; }
.intro-token-title span { display: block; margin-top: 2px; color: #77838b; font-size: 11px; font-weight: 400; }
.intro-token-note { position: absolute; top: calc(100% + 8px); left: 8%; width: 92%; margin: 0; color: #536672; text-align: center; font: italic 15px/1.35 'Avenir Next', Avenir, sans-serif; transform: rotate(-2deg); }
.intro-token-density { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; margin: 0; color: #c26722; text-align: center; font: italic 16px/1.35 'Avenir Next', Avenir, sans-serif; transform: rotate(-2deg); opacity: 0; pointer-events: none; }
.intro-token-callout { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity 120ms ease; }
@media (max-width: 550px) {
    /* Reserve space for the overview callout before the detail view's heading. */
    .intro-resolution-overview-panel { margin-bottom: 32px; }
    .intro-resolution-detail-panel { margin-top: 36px; margin-bottom: 40px; }
    .intro-token-title { font-size: 15px; }
    .intro-token-note { font-size: 15px; }
}

/* A lightweight overview of the three policy modules. */
.method-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; width: 100%; margin: 8px 0 16px; }
.method-mini { position: relative; display: flex; flex-direction: column; min-width: 0; color: #444; text-decoration: none; padding: 8px 0; }
.method-mini:not(:last-child)::after { content: '→'; position: absolute; right: -25px; top: 44px; color: #a2aaae; font-size: 20px; }
.method-mini svg { width: 100%; height: auto; fill: none; stroke: #89959c; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.method-mini strong { font: 600 16px/1.4 'Avenir Next', Avenir, sans-serif; margin: 8px 0 6px; }
.method-mini strong span { color: #9aa3a9; font-size: 13px; }
.method-mini-description { margin-top: 0; }
.method-mini:hover strong, .method-mini:focus-visible strong { color: #355e7d; }
.method-mini:focus-visible { outline: 2px solid #a2bfd7; outline-offset: 5px; border-radius: 4px; }
@media (max-width: 640px) {
    .method-overview { grid-template-columns: 1fr; gap: 20px; }
    .method-mini { display: grid; grid-template-columns: minmax(110px, 36%) 1fr; column-gap: 16px; align-items: center; }
    .method-mini svg { grid-row: 1 / 3; }
    .method-mini strong { margin: 0 0 4px; align-self: end; }
    .method-mini-description { margin-top: 0; }
    .method-mini:not(:last-child)::after { content: '↓'; top: auto; bottom: -22px; left: 17%; right: auto; }
}

/* Light emphasis for the two fixation-relative policy representations. */
.policy-emphasis { font-weight: 600; }

/* Static target-selection and reward overview. */
.gaze-sequencing-static { width: 100%; margin: 20px 0 26px; }
.gaze-sequencing-static img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
    .gaze-sequencing-static { width: calc(100vw - 8px); margin-left: calc((100% - 100vw) / 2 + 4px); }
}

/* Real-world stereo gaze examples, using the site's shared carousel player. */
.gaze-live-carousel .gaze-behavior-tabs { justify-content: center; gap: 5px; margin: 0 auto 16px; }
.gaze-live-carousel .carousel-track-container { border-radius: 8px; }
.gaze-live-carousel .carousel-slide { position: relative; flex: 0 0 100%; min-width: 0; }
.gaze-live-carousel .gaze-goal-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 6px 10px;
    border-radius: 5px;
    background: rgba(35, 35, 35, 0.8);
    color: #fff;
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
}
.gaze-live-carousel video { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; box-sizing: border-box; border: 1px solid #e3e3e3; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
    .gaze-live-carousel .carousel-track { transition: none; }
}

/* Task stages sit below the footage, aligned with the large view. */
.results-subtasks {
    width: 90%;
    display: flex;
    gap: 16px;
    box-sizing: border-box;
    margin-top: 8px;
}
.results-subtasks button {
    display: flex;
    flex: 1;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 8px 2px;
    border: 0;
    border-bottom: 2px solid #ededed;
    border-radius: 0;
    background: none;
    color: #777;
    font-family: 'Avenir Next', Avenir, sans-serif;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}
.results-subtask-number { font-size: 9px; opacity: .65; }
.results-subtask-label { font-size: 12px; line-height: 1.4; }
.results-subtasks button[aria-current="step"] { color: #444; border-bottom-color: #888; font-weight: 600; }
.results-subtasks button:hover { color: #444; background: #f7f7f7; }
.results-subtasks button:focus-visible { outline: 2px solid #888; outline-offset: 2px; }
@media (max-width: 650px) {
    .results-subtasks { gap: 8px; margin-top: 5px; }
    .results-subtasks button { gap: 4px; padding: 8px 0; }
    .results-subtask-number { font-size: 8px; }
    .results-subtask-label { font-size: 11px; }
}

/* Alternate intro composition: exo context with the distractor-style wrist cards. */
.wrist-occlusion-exo-layout .wrist-occlusion-video,
.wrist-occlusion-exo-layout .wrist-design-placeholder { aspect-ratio: 4 / 3; }

/* Direct enlargement of the small results view; playback controls remain below. */
.results-inset-expand {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: zoom-in;
}
.results-inset-expand[hidden] { display: none; }
.results-inset-expand span {
    position: absolute;
    right: 7px;
    bottom: 7px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    color: white;
    background: rgba(37, 48, 57, .8);
    font: 20px system-ui, sans-serif;
}
.results-inset-expand:hover { box-shadow: inset 0 0 0 2px #b9d9ed; }
.results-inset-expand:focus-visible { outline: 3px solid #73b7e0; outline-offset: -3px; }
