@font-face {
  font-family: "Navigation symbols";
  src: url("assets/fonts/navigation-symbols.ttf") format("truetype");
  unicode-range: U+2190-2193, U+2197, U+2161, U+25B6, U+2713, U+00D7;
}
:root {
  --text: #20242a;
  --muted: #505963;
  --link: #245584;
  --rule: #dce0e4;
  --light: #f5f7f9;
  --sans: "Navigation symbols", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body { margin: 0; color: var(--text); background: #fff; font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
button:disabled { cursor: default; color: #929aa1; }
[hidden] { display: none !important; }
.wrap { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; z-index: 20; top: -80px; left: 8px; background: white; padding: 8px 15px; }
.skip:focus { top: 8px; }
.topbar { position: sticky; top: 0; z-index: 5; background: white; border-bottom: 1px solid var(--rule); }
.nav-wrap, footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.nav-wrap { min-height: 49px; }
.brand { color: #26313c; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.nav-wrap nav { display: flex; gap: 23px; }
.nav-wrap nav a { color: var(--muted); font-size: 13px; padding: 7px 0; }
.nav-wrap nav a.active, .nav-wrap nav a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.hero { padding: 37px 0 28px; text-align: center; }
.venue { color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 12px; }
h1 { font-size: clamp(32px,3.3vw,43px); line-height: 1.14; letter-spacing: -.035em; color: #1c2126; font-weight: 700; text-wrap: balance; }
h1 span { display: block; max-width: 850px; margin: 6px auto 0; font-size: clamp(21px,2vw,28px); line-height: 1.24; letter-spacing: -.021em; font-weight: 550; }
.authors { margin: 18px auto 9px; font-size: 17px; font-weight: 500; line-height: 1.55; }
.author-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 17px; }
.author-line > span { white-space: nowrap; }
sup { font-size: .65em; line-height: 0; vertical-align: super; }
.authors sup { margin-left: 2px; }
.affiliations { font-size: 13px; color: #444c54; line-height: 1.5; }
.affiliations div { display: flex; justify-content: center; gap: 0 15px; flex-wrap: wrap; }
.affiliations sup { margin-right: 2px; }
.credits { margin-top: 5px; color: var(--muted); font-size: 12px; }
.credits span { margin: 0 6px; }
.resources { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.resource, .controls button, .trial-picker button, .bibbox button { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--link); border: 1px solid #cbd3da; border-radius: 4px; font-weight: 550; }
.resource { padding: 5px 15px; font-size: 14px; min-height: 34px; }
.resource.primary, .controls .play, .trial-picker button[aria-pressed=true] { background: var(--link); color: #fff; border-color: var(--link); }
.resource:hover, .controls button:not(:disabled):hover, .trial-picker button:hover, .bibbox button:hover { background: var(--light); color: var(--link); text-decoration: none; }
.teaser { padding-top: 20px; border-top: 1px solid var(--rule); }
.teaser a, .paper-figure a { display: block; cursor: zoom-in; }
.teaser img, .paper-figure img { width: 100%; height: auto; }
figcaption { font-size: 14px; color: var(--muted); line-height: 1.55; }
figcaption strong { color: var(--text); }
.teaser figcaption, .paper-figure figcaption { margin: 9px auto 0; max-width: 860px; }
.section { padding-block: 34px 0; }
.section h2 { font-size: 27px; line-height: 1.26; font-weight: 650; color: var(--text); letter-spacing: -.022em; border-bottom: 1px solid var(--rule); padding-bottom: 7px; margin-bottom: 14px; }
.reading { max-width: 85ch; margin-inline: auto; font-size: 16px; line-height: 1.66; }
.paper-figure { margin-top: 20px; }
.method-list { margin: 16px auto 0; max-width: 85ch; }
.method-list article + article { margin-top: 8px; }
.method-list h3, .method-list p { display: inline; font-size: 15px; line-height: 1.6; }
.method-list h3 { font-weight: 650; }
.method-list h3::after { content: "."; }
.episode-layout { margin-top: 18px; display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: 25px; align-items: center; }
.ep-map { border: 1px solid var(--rule); min-width: 0; }
.pane-head, .ep-legend { display: flex; align-items: center; font-size: 12px; padding: 6px 11px; }
.pane-head { justify-content: space-between; font-weight: 600; background: var(--light); }
#step-code { font-variant-numeric: tabular-nums; }
.ep-map > img { width: 100%; height: 265px; object-fit: contain; background: black; }
.ep-legend { gap: 16px; }
.ep-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.red { background: #e7483f; }
.yellow { background: #f4cf17; }
.blue { background: #376bcd; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--text); }
.ep-context { min-width: 0; }
.ep-context blockquote { margin-block: 4px 13px; font-size: 15px; line-height: 1.55; }
.view-label { margin-bottom: 4px; }
.ep-context > img { width: 100%; height: auto; }
.timeline { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-block: 12px; }
.timeline button { min-height: 31px; border-bottom: 2px solid var(--rule); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline button[aria-pressed=true] { color: var(--link); border-color: var(--link); font-weight: 700; background: #f1f5fa; }
.controls, .controls > div { display: flex; align-items: center; gap: 6px; }
.controls { justify-content: space-between; }
.controls button, .trial-picker button, .bibbox button { font-size: 13px; padding: 5px 11px; }
.controls button:disabled { color: #929aa1; }
.switcher { display: flex; flex-wrap: wrap; gap: 4px; margin: 15px 0 13px; border-bottom: 1px solid var(--rule); }
.switcher button { padding: 7px 12px; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); }
.switcher button[aria-pressed=true] { border-color: var(--link); color: var(--link); font-weight: 600; }
.switcher button:hover { background: var(--light); }
.robot-frames { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
.robot-frames img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.robot-panel figcaption { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 22px; padding: 11px 0; border-bottom: 1px solid var(--rule); color: var(--text); }
.robot-stat { align-self: center; }
.robot-stat strong, .robot-stat small { display: block; }
.robot-stat strong { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.robot-stat small, .trial-picker { font-size: 12px; color: var(--muted); }
.trial-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.trial-picker span { margin-right: 5px; }
.trial-picker button { font-size: 12px; padding: 3px 9px; }
.table-outer { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 600; padding: 0 0 7px; }
thead { border-top: 2px solid #626b74; border-bottom: 1px solid #949da5; }
th, td { padding: 8px 12px; text-align: right; }
th:first-child { text-align: left; }
thead th { white-space: nowrap; color: #303942; }
tbody th { font-weight: 500; }
tbody tr + tr { border-top: 1px solid #e9ecef; }
tbody { border-bottom: 2px solid #626b74; }
.table-note { margin: 8px 0; font-size: 13px; color: var(--muted); }
.figure-link { font-size: 14px; }
.bibbox { background: var(--light); border: 1px solid var(--rule); }
.bibbox > div, .dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 13px; border-bottom: 1px solid var(--rule); }
.bibbox pre { margin: 0; padding: 13px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.6 var(--mono); }
footer { margin-top: 45px; border-top: 1px solid var(--rule); }
footer .wrap { min-height: 58px; font-size: 12px; color: var(--muted); }
footer .brand { font-size: 15px; }
dialog { padding: 0; width: min(1230px,96vw); max-height: 92vh; color: var(--text); border: 1px solid var(--rule); border-radius: 4px; }
dialog::backdrop { background: #18212c99; }
dialog img { width: 100%; max-height: 80vh; object-fit: contain; padding: 8px; }
.dialog-top { font-size: 14px; }
.dialog-top button { font-size: 22px; line-height: 1; }
@media (max-width: 700px) {
  html { scroll-padding-top: 82px; }
  .wrap { width: calc(100% - 32px); }
  .nav-wrap { min-height: 44px; }
  .nav-wrap nav { gap: 12px; }
  .nav-wrap nav a { font-size: 12px; }
  .hero { padding: 28px 0 23px; }
  .hero h1 span { font-size: 23px; line-height: 1.25; }
  .authors { font-size: 15px; }
  .author-line { gap: 1px 11px; }
  .affiliations { font-size: 12px; }
  .affiliations div { gap: 0 10px; }
  .section { padding-top: 27px; }
  .section h2 { font-size: 24px; }
  .teaser { padding-top: 16px; }
  .episode-layout { grid-template-columns: 1fr; gap: 14px; }
  .ep-map > img { height: 235px; }
  .robot-frames { grid-template-columns: repeat(2,1fr); }
  .robot-panel figcaption { grid-template-columns: 1fr 1fr; gap: 10px; }
  .robot-panel figcaption > div:first-child { grid-column: 1 / -1; }
  th, td { padding: 7px; }
}
@media (max-width: 440px) {
  .nav-wrap { flex-direction: column; justify-content: center; gap: 0; padding-block: 3px; }
  .nav-wrap nav { width: 100%; justify-content: space-between; gap: 3px; }
  .nav-wrap nav a { padding: 2px 0; }
  .hero h1 { font-size: 31px; }
  .hero h1 span { font-size: 21px; }
  .resources { gap: 5px; }
  .resource { padding: 5px 11px; }
  .switcher button { padding: 7px 8px; }
  .author-line { display: inline; }
  .author-line > span { display: inline-block; margin: 0 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
