/* SplatSlopes additions on top of the Nerfies template (bulma + index.css). Plain ASCII only. */
:root {
  --ink: #1f2328; --muted: #5b6470; --rule: #d5d9df; --panel: #f5f6f8;
  --base: #2f6fd0; --ft: #e8692a;      /* chart series, validated for a light surface */
}
.ss-name { font-family: "Google Sans", sans-serif; font-weight: 700; }
.publication-title { line-height: 1.25 !important; }
.publication-links .button[disabled] { opacity: 0.45; }
.teaser video { width: 100%; border-radius: 8px; }
.teaser .subtitle { margin-top: 1rem; }
.ss-alt { background: #fafafb; }
.section .content p { line-height: 1.65; }
.ss-caption { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 1.5rem; }
.ss-video { width: 100%; display: block; border-radius: 8px; background: #fff; }
h3.title.is-4 { margin-top: 2.5rem; }

/* pills */
.ss-controls { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 0.6rem 0; }
.ss-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 0.6rem; }
.ss-controls .ss-pills { margin-bottom: 0; }
.ss-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin-right: 2px; }
.ss-pill { border: 1px solid var(--rule); background: #fff; color: var(--ink); padding: 4px 13px; border-radius: 999px;
  font: inherit; font-size: 0.9rem; cursor: pointer; line-height: 1.5; }
.ss-pill:hover { border-color: #9aa3ad; }
.ss-pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* wipe compare */
.ss-wipe { position: relative; border-radius: 8px; overflow: hidden; background: #fff; cursor: ew-resize; user-select: none; touch-action: none; border: 1px solid #eceef1; }
.ss-wipe canvas { display: block; width: 100%; height: auto; }
.ss-wipe .bar { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: 0.55; pointer-events: none; }
.ss-wipe .knob { position: absolute; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.3); pointer-events: none; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.ss-wipe .tag { position: absolute; top: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(31,35,40,0.8); color: #fff; font-size: 0.8rem; pointer-events: none; }
.ss-wipe .tag.l { left: 10px; } .ss-wipe .tag.r { right: 10px; }
.ss-wipe .loading, .ss-viewer .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* 3D viewer */
.ss-viewer { position: relative; height: 540px; border-radius: 8px; overflow: hidden; background: linear-gradient(#f3f5f8, #e2e6eb); }
@media (max-width: 768px) { .ss-viewer { height: 400px; } }
.ss-viewer canvas { display: block; width: 100%; height: 100%; }
.ss-viewer .hud { position: absolute; left: 10px; bottom: 10px; font-size: 0.78rem; color: var(--muted); background: rgba(255,255,255,0.85); padding: 3px 9px; border-radius: 6px; }
.ss-viewer .tip { position: absolute; pointer-events: none; background: rgba(31,35,40,0.92); color: #fff; padding: 5px 9px; border-radius: 6px;
  font-size: 0.85rem; white-space: nowrap; transform: translate(12px, 12px); display: none; }
.ss-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 0.6rem; min-height: 0; }
.ss-legend button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--rule); background: #fff; padding: 3px 11px 3px 7px;
  border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.85rem; color: var(--ink); }
.ss-legend button.off { opacity: 0.4; }
.ss-legend .sw { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.ss-legend .mu { color: var(--muted); font-size: 0.78rem; }

/* tables rendered from the paper's LaTeX */
.ss-table { margin: 1rem 0 0.5rem; }
.ss-table img { width: 100%; height: auto; display: block; background: #fff; }
.ss-table figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 0.5rem; }
.ss-details { margin: 0.5rem 0 1rem; }
.ss-details summary { cursor: pointer; color: #3273dc; font-size: 0.95rem; }
.ss-details[open] summary { margin-bottom: 0.5rem; }

/* charts */
.ss-chart { position: relative; }
.ss-chart svg { width: 100%; height: auto; display: block; overflow: visible; font-family: "Noto Sans", sans-serif; }
.ss-chart .axis text { fill: var(--muted); font-size: 12px; }
.ss-chart .grid line { stroke: #d4d8de; stroke-width: 1; }
.ss-chart .ood { fill: #f3f1ea; }
.ss-chart .oodlabel { fill: #8a8577; font-size: 11px; }
.ss-chart .bar { transition: opacity 0.12s; }
.ss-chart.hovering .bar { opacity: 0.35; }
.ss-chart.hovering .bar.hot { opacity: 1; }
.ss-chart .ci { stroke: var(--ink); stroke-width: 1.2; }
.ss-chart.hovering .ci { opacity: 0.3; }
.ss-chart.hovering .ci.hot { opacity: 1; }
.ss-tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--rule); box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  border-radius: 8px; padding: 7px 10px; font-size: 0.85rem; display: none; z-index: 5; white-space: nowrap; }
.ss-tip .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.ss-chart-legend { display: flex; gap: 16px; font-size: 0.88rem; margin: 0.4rem 0 0; flex-wrap: wrap; }
.ss-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ss-chart-legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.ss-chart-legend .oodsw { width: 14px; height: 12px; background: #f3f1ea; border: 1px solid #e3e0d6; border-radius: 2px; }

/* scene selector for the layer wipe: three equal buttons filling the row */
.ss-scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 1rem 0 0.7rem; }
.ss-scenes .ss-pill { width: 100%; font-size: 1.05rem; padding: 8px 12px; border-radius: 8px; }
.ss-row { margin-bottom: 0.5rem; }
.ss-row .ss-label { display: inline-block; width: 3.2rem; }

/* environment labels */
.ss-envhead { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); margin: 1rem 0 -0.4rem; }
.ss-row .ss-label { width: auto; min-width: 3.2rem; margin-right: 6px; }
.ss-envtitle { margin: 1.6rem 0 0.6rem !important; }
.ss-envtitle .ss-note { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
#ch-env-wrap { gap: 6px; }

/* 3D viewer: static preview until the user loads it; unload button once loaded */
.ss-viewer .poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #fff; }
.ss-viewer .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0.55; }
.ss-load { position: relative; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 1rem;
  padding: 10px 20px; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.ss-load span { opacity: 0.7; font-size: 0.85rem; }
.ss-load:hover { background: #000; }
.ss-unload { position: absolute; right: 10px; bottom: 10px; display: none; border: 1px solid var(--rule); background: rgba(255,255,255,0.9);
  color: var(--ink); border-radius: 999px; font: inherit; font-size: 0.8rem; padding: 3px 11px; cursor: pointer; }
.ss-unload:hover { border-color: #9aa3ad; }
/* layer wipe pause */
.ss-pause { position: absolute; left: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(31,35,40,0.8);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
/* hero: authors and affiliation logos */
.ss-authors { font-size: 1.45rem; margin-top: 1.2rem; }
.ss-authors .author-block { margin: 0 0.9rem; }
.ss-authors a { color: inherit; border-bottom: 1px solid var(--rule); }
.ss-authors a:hover { color: #3273dc; border-color: #3273dc; }
.ss-affil { display: flex; justify-content: center; align-items: center; gap: 44px; margin: 1.3rem 0 0.4rem; }
.ss-affil img { height: 64px; width: auto; display: block; }
.ss-affil a { opacity: 0.92; } .ss-affil a:hover { opacity: 1; }
.ss-soon { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.6px; opacity: 0.85; margin-left: 4px; }
/* full video caption toggle */
.ss-cc-row { display: flex; justify-content: flex-end; margin-top: 0.6rem; }
#fullvideo::cue { background: rgba(0, 0, 0, 0.72); color: #fff; font-family: "Noto Sans", sans-serif; line-height: 1.35; }
.ss-size { font-size: 0.85rem; opacity: 0.85; margin-left: 2px; }
/* interactive teleop demo (static/js/teleop.js): frames streamed from the simulation server */
.ss-teleop { outline: none; }
.ss-teleop:focus-visible { box-shadow: 0 0 0 2px var(--base); }
.ss-teleop .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: grab; user-select: none; }
.ss-teleop.dragging .frame { cursor: grabbing; }
.ss-teleop .poster { background: transparent; gap: 12px; }
.ss-teleop .ss-tele-msg { color: var(--muted); font-size: 0.9rem; max-width: 30rem; text-align: center; }
.ss-teleop .tag { position: absolute; left: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(31,35,40,0.8);
  color: #fff; font-size: 0.8rem; pointer-events: none; font-variant-numeric: tabular-nums; }
.ss-teleop .tag.cmd { top: 10px; } .ss-teleop .tag.vel { top: 38px; }
.ss-teleop .tag:empty { display: none; }
.ss-tele-fall, .ss-tele-focus { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.ss-tele-fall span, .ss-tele-focus span { background: rgba(255,255,255,0.92); color: var(--ink); border-radius: 999px;
  padding: 6px 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.15); font-size: 0.95rem; }
.ss-tele-fall { pointer-events: none; }
.ss-tele-focus { cursor: pointer; background: rgba(243,245,248,0.35); }
.ss-keys { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0.7rem 0 0; font-size: 0.88rem; color: var(--muted); }
.ss-keys kbd { display: inline-block; min-width: 1.6em; text-align: center; border: 1px solid var(--rule); border-bottom-width: 2px;
  border-radius: 5px; background: #fff; color: var(--ink); font: inherit; font-size: 0.8rem; padding: 0 5px; margin-right: 3px; }
/* in-browser simulator (static/sim): three.js canvas, terrain-loading note, policy depth inset */
.ss-teleop canvas.frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.ss-tele-load { position: absolute; inset: 0; display: none; align-items: flex-start; justify-content: center; padding-top: 14px; pointer-events: none; }
.ss-tele-load span { background: rgba(31,35,40,0.85); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 0.85rem; }
.ss-tele-depth { position: absolute; top: 10px; right: 10px; width: 128px; height: 72px; image-rendering: pixelated; display: none;
  border-radius: 4px; border: 1px solid rgba(31,35,40,0.6); background: #000; }
.ss-teleop canvas.ss-tele-depth { position: absolute; inset: auto; top: 10px; right: 10px; width: 128px; height: 72px; }
/* motivation: prior-work table */
.ss-prior { font-size: 0.92rem; background: transparent; }
.ss-prior td:last-child { color: var(--muted); }
.ss-prior tr.ours td { font-weight: 600; color: inherit; background: rgba(60,180,75,0.10); }
#tele-legend button:disabled { opacity: 1; }
.ss-pill:disabled { opacity: 0.55; cursor: default; }
/* linked text: darker blue (overrides bulma's #485fc7 and index.css's light author blue) */
a:not(.button) { color: #1d4f91; }
a:not(.button):hover { color: #143a6e; }
.publication-authors a, .ss-authors a { color: #1d4f91 !important; border-color: rgba(29,79,145,0.35); }
.publication-authors a:hover, .ss-authors a:hover { color: #143a6e !important; border-color: #143a6e; }
/* robot camera RGB inset (top right), depth inset moves below it */
.ss-teleop canvas.ss-tele-rgb { position: absolute; top: 10px; right: 10px; width: 224px; height: auto; aspect-ratio: 16 / 9; display: none;
  border-radius: 4px; border: 1px solid rgba(31,35,40,0.6); background: #000; }
.ss-teleop canvas.ss-tele-rgb + canvas.ss-tele-depth { width: 224px; height: 126px; }   /* top: set by teleop_ui.js */
.ss-teleop canvas.ss-tele-rgb { image-rendering: pixelated; }
