/* SplatTether project page */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: #fff;
  color: #363636;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

body::after {
  content: "";
  display: block;
  height: 80px;
  background: #f7f7f7;
}

a {
  color: #1674bc;
  text-underline-offset: 4px;
}

a:focus-visible,
video:focus-visible,
.scene-control select:focus-visible {
  outline: 3px solid #1674bc;
  outline-offset: 5px;
}

.page {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
}

.paper-header {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 0 36px;
  text-align: center;
}

h1 {
  margin: 0 auto 28px;
  color: #252525;
  font-size: clamp(1.25rem, 2.7vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.6px;
  line-height: 1.35;
  text-align: center;
}

.authors {
  max-width: 980px;
  margin: 0 auto 14px;
  font-size: 19px;
  line-height: 1.8;
  text-align: center;
}

.title-line,
.author-row {
  display: block;
}

.author {
  display: inline-block;
  margin-inline: 4px;
  white-space: nowrap;
}

.author a {
  color: hsl(204, 86%, 53%);
  text-decoration: none;
}

.author a:hover {
  text-decoration: underline;
}

sup {
  font-size: 0.65em;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  font-size: 17px;
  text-align: center;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.publication-links a,
.publication-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 23px;
  border-radius: 999px;
  border: 0;
  background: #363636;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  font-family: inherit;
}

.publication-links button:disabled {
  cursor: default;
}

.resource-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.publication-links a:hover {
  background: #171717;
}

h2 {
  margin: 0 0 28px;
  color: #303030;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

section {
  padding: 56px 0 8px;
}

p {
  margin: 0;
}

section > p {
  text-align: justify;
}

figure {
  min-width: 0;
  margin: 0;
}

figure + figure {
  margin-top: 32px;
}

p + figure {
  margin-top: 28px;
}

.teaser {
  margin: 4px auto 0;
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 10px rgb(0 0 0 / 15%);
}

.teaser video {
  border-radius: 4px;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

video {
  aspect-ratio: 16 / 9;
  /* shortcut: a no-op filter works around Chromium video overlay seams while scrolling;
     remove after an upstream rendering fix. */
  filter: grayscale(0);
}

.scene-demo {
  max-width: 960px;
  margin: 0 auto;
}

.scene-demo + .scene-demo {
  margin-top: 40px;
}

.scene-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.scene-toolbar h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.scene-control {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}

.scene-control select {
  min-height: 44px;
  padding: 8px 36px 8px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

.scene-player {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 10px rgb(0 0 0 / 15%);
}

.scene-panel + .scene-panel {
  margin-top: 0;
}

.scene-panel:first-child {
  width: 60%;
  justify-self: center;
}

.scene-panel:nth-child(2) {
  width: 98%;
  justify-self: center;
}

.scene-demo + .scene-demo .scene-panel:first-child {
  width: 50%;
}

.scene-demo video {
  aspect-ratio: auto;
  border-radius: 4px;
  background: #f5f5f5;
}

.trajectory-coming-soon {
  display: grid;
  width: 100%;
  aspect-ratio: 12 / 5;
  place-items: center;
  border-radius: 4px;
  background: #f5f5f5;
  color: #616161;
  font-size: 1rem;
  font-weight: 600;
}

.trajectory-coming-soon[hidden] {
  display: none;
}

.scene-error {
  margin-top: 12px;
  color: #a32020;
  font-size: 0.875rem;
}

.scene-note {
  margin-top: 12px;
  color: #616161;
  font-size: 0.875rem;
}


table {
  width: 100%;
  margin: 28px auto;
  border-collapse: collapse;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

caption {
  margin-bottom: 14px;
  color: #616161;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid #e6e6e6;
  text-align: right;
}

th:first-child {
  text-align: left;
}

thead th {
  border-top: 2px solid #555;
  border-bottom: 1px solid #aaa;
  font-weight: 600;
}

tbody th {
  font-weight: 400;
}

tbody tr:last-child > * {
  border-bottom: 2px solid #555;
}

#citation h2,
#acknowledgements h2 {
  text-align: left;
}

#acknowledgements {
  padding-bottom: 64px;
}

#citation pre {
  margin: 0 auto;
  padding: 24px;
  overflow-x: auto;
  border-radius: 6px;
  background: #f5f5f5;
  font-size: 0.8125rem;
  line-height: 1.35;
}

@media (max-width: 1000px) {
  .author-row {
    display: inline;
  }
}

@media (max-width: 700px) {
  .page {
    width: calc(100% - 32px);
  }

  .paper-header {
    padding-top: 40px;
  }

  .authors {
    font-size: 17px;
  }

  .affiliations {
    font-size: 15px;
  }

  section {
    padding-top: 40px;
  }

  .scene-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .scene-player {
    grid-template-columns: 1fr;
  }

  .scene-control select {
    flex: 1;
    min-width: 0;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 10px 6px;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
