body {
  padding: 2em;
  color: #1d2733;
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: normal;
}

a,
a:visited {
  color: #224b8d;
  font-weight: 300;
}

a:hover {
  color: #17376b;
}

.hero-gradient,
.alt-section {
  background: transparent;
}

.hero-body,
.section,
.section-tight {
  padding: 0;
}

.hero-body > .container,
.section > .container {
  width: 1000px;
  max-width: calc(100vw - 4em);
  padding: 25px 50px;
  margin: 25px auto;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 0 10px #999;
}

.publication-title {
  margin-bottom: 1rem !important;
  color: #111;
  font-family: inherit;
  font-size: 32px !important;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.publication-title-line {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.publication-title-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  margin-top: -4px;
}

.publication-title-text {
  display: inline-block;
}

.publication-authors {
  margin-bottom: 16px;
  color: #111;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  text-align: center;
}

.author-block {
  display: inline-block;
  margin: 0 8px;
}

.publication-authors sup,
.publication-affiliations sup {
  margin-left: 1px;
  margin-right: 1px;
  font-size: 12.5px;
}

.publication-affiliations {
  margin-top: 5px;
  color: #111;
  font-size: 16.5px;
  text-align: center;
}

.publication-affiliations a,
.publication-affiliations a:visited {
  color: #111;
  font-weight: normal;
  text-decoration: none;
}

.publication-affiliations a:hover {
  color: #224b8d;
}

.publication-affiliations span {
  display: inline-block;
  margin: 0 10px;
}

.publication-links {
  margin: 0.75rem 0 0;
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
}

.publication-links span {
  display: inline-block;
  margin: 0 14px;
  color: #224b8d;
}

.title,
h1,
h2,
h3 {
  color: #111;
  font-family: inherit;
  font-weight: 700;
}

.title.is-3 {
  margin-bottom: 1rem;
  font-size: 28px;
  font-weight: 700;
}

.title.is-4 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 22px;
  font-weight: 700;
}

.title.is-5 {
  margin-bottom: 0.75rem;
  font-size: 18px;
  font-weight: 700;
}

.section .columns {
  margin-right: 0;
  margin-left: 0;
}

.section .column {
  padding: 0;
}

.section .column.is-four-fifths,
.section .column.is-two-thirds {
  flex: none;
  width: 100%;
}

p,
.paper-copy p,
.section-copy p {
  color: #1d2733;
  font-size: 16.5px;
  line-height: 24px;
  text-align: justify;
}

.section-intro {
  max-width: none;
  margin: 0 0 1rem;
  color: #1d2733;
  font-size: 16.5px;
  line-height: 24px;
  text-align: justify;
}

.section-copy {
  margin-top: 1rem;
}

.media-frame {
  margin: 0 auto 1rem;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
  border-radius: 0.5em;
}

.section-caption {
  margin-top: 0.75rem;
  color: #555;
  font-size: 15px;
  line-height: 23px;
  text-align: center;
}

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

.video-card {
  padding: 10px;
  overflow: hidden;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0 10px #999;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f4f4f4;
  border-radius: 0.5em;
}

.video-card p {
  margin: 0;
  padding-top: 10px;
  color: #333;
  font-size: 15px;
  text-align: center;
}

.interactive-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 1rem;
}

.interactive-viewer iframe,
.interactive-reference video {
  display: block;
  width: 100%;
  height: 620px;
  background: #f4f4f4;
  border: 1px solid #d7d7d7;
  border-radius: 0.5em;
}

.interactive-viewer iframe {
  background: #fff;
}

.interactive-reference video {
  object-fit: contain;
}

.interactive-reference p {
  margin: 0.6rem 0 0;
  color: #555;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.viewer-intro {
  max-width: 760px;
  margin: 0.25rem auto 0.75rem;
  font-size: 16.5px;
  line-height: 24px;
  text-align: center;
}

.viewer-instructions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2em;
  margin: 0.35rem auto 0;
  padding: 0.45rem;
  color: #111;
  font-size: 17px;
  line-height: 24px;
  text-align: center;
}

.viewer-instructions-keys {
  gap: 1em;
  margin-top: -0.2rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  font-size: 15.5px;
}

.viewer-instruction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-width: 0;
  text-align: left;
}

.viewer-instruction em {
  font-style: italic;
}

.viewer-instruction strong {
  font-weight: 700;
}

.icon-mouse {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.key-pair-img {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.key-pair-img img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.key-pair-img img + img {
  margin-left: -10px;
}

.sequence-carousel {
  position: relative;
  margin-top: 1.25rem;
  padding: 0;
}

.sequence-slides {
  display: grid;
  position: relative;
}

.sequence-slide {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.sequence-slide.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.sequence-slide-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.sequence-slide-header .title {
  margin-bottom: 0;
}

.sequence-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sequence-panel-card {
  min-width: 0;
}

.sequence-panel-card h4 {
  margin: 0 0 0.45rem;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.sequence-media-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 0.5em;
}

.sequence-media-box video,
.sequence-media-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 0;
}

.sequence-media-box video {
  object-fit: contain;
}

.sequence-tabs,
.contact-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.contact-evolution {
  margin-top: 1.25rem;
}

.sequence-tabs button,
.contact-tabs button,
.contact-play-button {
  padding: 7px 18px;
  color: #224b8d;
  background: #fff;
  border: 1px solid #cfd7e6;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.sequence-tabs button.is-active,
.contact-tabs button.is-active,
.contact-play-button {
  color: #fff;
  background: #224b8d;
  border-color: #224b8d;
}

.contact-play-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.contact-evolution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.contact-card {
  min-width: 0;
}

.contact-card .title {
  margin-bottom: 0.45rem;
  text-align: center;
}

.contact-reference-frame,
.contact-viewer-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 0.5em;
}

.contact-reference-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.contact-viewer-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #555;
  background: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  text-align: center;
}

.contact-status[hidden] {
  display: none;
}

.contact-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 0.6rem;
  color: #333;
  font-size: 14px;
}

.contact-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.contact-swatch-current {
  background: #00d1f2;
}

.contact-swatch-body {
  background: #c9cccc;
}

.contact-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 1.15rem;
}

.contact-controls input[type="range"] {
  width: 100%;
  accent-color: #224b8d;
}

.contact-controls output {
  min-width: 190px;
  color: #333;
  font-size: 14.5px;
  text-align: right;
}

.table-note {
  margin-bottom: 1rem;
  color: #333;
  font-size: 15px;
  line-height: 23px;
}

.table-note code {
  display: inline;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
}

.table-block {
  margin-bottom: 2rem;
}

.table-scroll {
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.results-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
}

.compact-table {
  min-width: 0;
}

.results-table th,
.results-table td {
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #ddd;
}

.results-table th {
  color: #111;
  font-weight: 600;
  background: #f5f5f5;
}

.results-table tr.ours td {
  font-weight: 600;
  background: #f8fbf8;
}

.results-table .best {
  color: #111;
  font-weight: 700;
}

.results-table .second-best {
  color: #333;
  font-weight: 600;
}

@media (max-width: 768px) {
  body {
    padding: 1em;
  }

  .hero-body > .container,
  .section > .container {
    width: auto;
    max-width: none;
    padding: 18px;
    margin: 18px auto;
  }

  .publication-title {
    font-size: 26px !important;
  }

  .publication-authors {
    font-size: 17px;
  }

  .publication-affiliations {
    font-size: 15.5px;
  }

  .publication-links {
    font-size: 16px;
  }

  .title.is-3 {
    font-size: 24px;
  }

  p,
  .paper-copy p,
  .section-copy p,
  .section-intro {
    font-size: 15.5px;
    line-height: 23px;
  }

  .publication-title-line {
    align-items: center;
    gap: 10px;
  }

  .publication-title-icon {
    width: 48px;
    height: 48px;
    margin-top: 0;
  }

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

  .interactive-layout {
    grid-template-columns: 1fr;
  }

  .interactive-viewer iframe {
    height: 460px;
  }

  .interactive-reference video {
    height: auto;
    max-height: 520px;
  }

  .viewer-instructions {
    justify-content: flex-start;
    gap: 8px;
    font-size: 15px;
    padding-right: 0;
    padding-left: 0;
  }

  .viewer-instruction {
    justify-content: flex-start;
  }

  .icon-mouse {
    width: 32px;
    height: 32px;
  }

  .key-pair-img img {
    width: 26px;
    height: 26px;
  }

  .sequence-carousel {
    padding: 0;
  }

  .sequence-slide-header {
    display: block;
    text-align: center;
  }

  .sequence-panel-grid {
    grid-template-columns: 1fr;
  }

  .contact-evolution-grid,
  .contact-controls {
    grid-template-columns: 1fr;
  }

  .contact-controls output {
    min-width: 0;
    text-align: center;
  }

  .results-table {
    font-size: 12px;
  }
}
