body {
  font-family: 'Noto Sans', sans-serif;
}

[hidden] {
  display: none !important;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-title {
  display: block;
  line-height: 1.15;
}

.publication-logo {
  border-radius: 0.3em;
  display: inline-block;
  height: 1.08em;
  margin-right: 0.16em;
  vertical-align: -0.16em;
  width: 1.08em;
}

.publication-title-text {
  display: inline;
  max-width: none;
  text-align: inherit;
}

.method-name {
  white-space: nowrap;
}

.title-key {
  text-decoration-color: #fb7185;
  text-decoration-line: underline;
  text-decoration-skip-ink: none;
  text-decoration-thickness: 0.09em;
  text-underline-position: under;
}

.publication-authors {
  color: #344054;
  font-family: 'Google Sans', sans-serif;
  margin-top: 0.65rem;
}

.publication-authors .author-block {
  display: inline-block;
}

.publication-links {
  margin-top: 1rem;
}

.publication-links .link-block:not(:last-child) {
  margin-right: 0.5rem;
}

.comparison-heading {
  margin-bottom: 1.5rem;
}

.long-motion-section {
  background: #f6f9fd;
  border-bottom: 1px solid #e8edf5;
  border-top: 1px solid #e8edf5;
}

.long-motion-card {
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  box-shadow: 0 0.6rem 1.5rem rgba(31, 56, 88, 0.07);
  overflow: hidden;
  padding: 1.25rem;
}

.long-motion-card-heading {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.long-motion-card-heading .title {
  margin: 0.55rem 0 0;
}

.long-motion-card-heading p {
  color: #667085;
  font-size: 0.92rem;
  white-space: nowrap;
}

.long-motion-video {
  background: #f2f5f9;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  display: block;
  width: 100%;
}

.long-motion-protocol-note {
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.wild-motion-section {
  background: #f6f9fd;
  border-bottom: 1px solid #e8edf5;
  border-top: 1px solid #e8edf5;
}

.short-motion-section {
  background: #fff;
}

.results-section {
  background: #fff;
  border-bottom: 1px solid #e8edf5;
}

.results-section .container.is-max-widescreen {
  display: flex;
  flex-direction: column;
}

.results-section .comparison-heading { order: 0; }
.results-section .hand-metrics-card { order: 1; }
.results-section .speed-accuracy-card { order: 2; }

.results-card {
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  box-shadow: 0 0.6rem 1.5rem rgba(31, 56, 88, 0.06);
  margin-top: 1.5rem;
  overflow: hidden;
  padding: 1.35rem 1.5rem 1.1rem;
}

.results-card-heading {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.results-card-heading .title {
  margin: 0;
}

.results-card-heading span {
  color: #7a8698;
  font-size: 0.86rem;
}

.results-table {
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.65rem !important;
}

.results-table-protocol {
  color: #667085;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 0.85rem;
}

.results-table-protocol strong {
  color: #475467;
  font-weight: 600;
}

.results-table thead th {
  border-bottom: 1px solid #cfd8e6;
  color: #475467;
  font-size: 0.83rem;
  white-space: nowrap;
}

.results-table tbody th,
.results-table tbody td {
  border-color: #edf1f6;
  vertical-align: middle;
}

.results-table .ours-row {
  background: #f5f9ff;
}

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

.results-table .second {
  text-decoration: underline;
  text-decoration-color: #a8b3c2;
  text-underline-offset: 0.18rem;
}

.results-table .not-applicable {
  color: #98a2b3;
}

.hand-metrics-card .table-container {
  max-height: min(70vh, 34rem);
  overflow: auto;
  position: relative;
}

.hand-metrics-card .results-table {
  border-collapse: separate;
  border-spacing: 0;
}

.hand-metrics-card .results-table thead {
  position: sticky;
  top: 0;
  z-index: 4;
}

.hand-metrics-card .results-table thead th {
  background: #f8fafc;
}

.hand-metrics-card .results-table tbody th:first-child,
.hand-metrics-card .results-table thead tr:first-child > th:first-child {
  background: #fff;
  box-shadow: 0.3rem 0 0.45rem -0.4rem rgba(31, 56, 88, 0.5);
  left: 0;
  min-width: 8rem;
  position: sticky;
  z-index: 3;
}

.hand-metrics-card .results-table thead tr:first-child > th:first-child {
  background: #f8fafc;
  z-index: 6;
}

.hand-metrics-card .results-table .ours-row th:first-child {
  background: #f5f9ff;
}

.method-swatch {
  border-radius: 999px;
  display: inline-block;
  height: 0.62rem;
  margin-right: 0.5rem;
  vertical-align: 0.02rem;
  width: 0.62rem;
}

.method-swatch.is-ours { background: #fb7185; }
.method-swatch.is-hawor { background: #fabf24; }
.method-swatch.is-handflow { background: #a78bfa; }
.method-swatch.is-fourth { background: #34d399; }

.results-note {
  color: #667085;
  font-size: 0.87rem;
  line-height: 1.55;
  margin: 0;
}

.results-metric-notes {
  color: #667085;
  font-size: 0.87rem;
  line-height: 1.5;
  list-style: none;
  margin: 0;
  padding: 0;
}

.results-footnote {
  color: #7a8698;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0 0 0.75rem;
}

.results-footnote.split-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  padding: 0.6rem 0.7rem;
}

.results-metric-notes li + li {
  margin-top: 0.38rem;
}

.results-metric-notes strong {
  color: #475467;
  font-weight: 600;
}

.results-figure {
  margin: 0;
}

.results-figure img {
  background: #f2f5f9;
  display: block;
  height: auto;
  width: 100%;
}

.results-figure figcaption {
  color: #667085;
  font-size: 0.87rem;
  line-height: 1.55;
  margin-top: 0.8rem;
}

.results-plot-stack {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.results-plot-stack .results-figure {
  margin: 0;
  width: 100%;
}

.results-plot-stack .results-figure + .results-figure {
  border-left: 1px solid #e4eaf2;
  padding-left: 1.35rem;
}

.results-plot-title {
  color: #344054;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  text-align: center;
}

[data-lightbox-image] {
  cursor: zoom-in;
  outline-offset: 0.25rem;
}

[data-lightbox-image]:focus-visible {
  outline: 3px solid rgba(50, 115, 220, 0.48);
}

.image-lightbox {
  background: transparent;
  border: 0;
  box-sizing: border-box;
  height: 100vh;
  margin: auto;
  max-height: none;
  max-width: none;
  overflow: hidden;
  padding: 4vh 3vw;
  width: 100vw;
}

.image-lightbox[open] {
  align-items: center;
  display: flex;
  justify-content: center;
}

.image-lightbox::backdrop {
  background: rgba(12, 18, 30, 0.88);
  backdrop-filter: blur(3px);
}

.image-lightbox img {
  display: block;
  height: auto;
  margin: 0;
  max-height: 92vh;
  max-width: 94vw;
  width: auto;
}

.image-lightbox-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cfd8e6;
  border-radius: 999px;
  color: #172033;
  cursor: pointer;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  height: 2.8rem;
  justify-content: center;
  line-height: 1;
  position: fixed;
  right: 1.25rem;
  top: 1.1rem;
  width: 2.8rem;
  z-index: 2;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: #eef5ff;
  outline: 3px solid rgba(124, 155, 193, 0.55);
}

.demo-carousel {
  padding: 0 3.25rem;
  position: relative;
}

.demo-carousel-track {
  min-width: 0;
}

.demo-carousel-slide {
  margin-bottom: 0 !important;
}

.demo-carousel-slide[hidden] {
  display: none !important;
}

.demo-carousel-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cfd8e6;
  border-radius: 999px;
  box-shadow: 0 0.45rem 1.2rem rgba(31, 56, 88, 0.14);
  color: #284461;
  cursor: pointer;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 2.1rem;
  height: 2.8rem;
  justify-content: center;
  line-height: 1;
  padding: 0 0 0.15rem;
  position: absolute;
  top: calc(50% - 2.2rem);
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
  width: 2.8rem;
  z-index: 2;
}

.demo-carousel-arrow:hover,
.demo-carousel-arrow:focus-visible {
  background: #eef5ff;
  border-color: #7c9bc1;
  outline: none;
  transform: scale(1.06);
}

.demo-carousel-arrow.is-previous {
  left: 0;
}

.demo-carousel-arrow.is-next {
  right: 0;
}

.demo-carousel-dots {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}

.demo-carousel-dot {
  background: #b8c4d4;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 0.65rem;
  padding: 0;
  transition: background-color 150ms ease, transform 150ms ease;
  width: 0.65rem;
}

.demo-carousel-dot:hover,
.demo-carousel-dot:focus-visible {
  background: #6f8cad;
  outline: 2px solid #c7d8ec;
  outline-offset: 2px;
}

.demo-carousel-dot.is-active {
  background: #3273dc;
  transform: scale(1.2);
}

.coming-soon-section p {
  color: #667085;
  font-size: 1.05rem;
}

.footer .content {
  font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
  .results-plot-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-plot-stack .results-figure + .results-figure {
    border-left: 0;
    border-top: 1px solid #e4eaf2;
    padding-left: 0;
    padding-top: 1.25rem;
  }

  .publication-logo {
    height: 1em;
    width: 1em;
  }

  .demo-carousel {
    padding: 0 1.15rem;
  }

  .demo-carousel-arrow {
    height: 2.35rem;
    top: calc(50% - 2rem);
    width: 2.35rem;
  }

  .demo-carousel-arrow.is-previous {
    left: -0.35rem;
  }

  .demo-carousel-arrow.is-next {
    right: -0.35rem;
  }

  .long-motion-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .long-motion-card-heading p {
    white-space: normal;
  }

  .publication-links .link-block {
    display: block;
    margin: 0.5rem 0;
  }

  .publication-links .link-block:not(:last-child) {
    margin-right: 0;
  }

  .results-card {
    padding: 1rem 0.9rem 0.9rem;
  }

  .results-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

}
