:root {
  --shell-reading: 60rem;
  --shell-wide: 72rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --radius-card: 12px;
  --radius-media: 8px;
  --surface: #fff;
  --surface-muted: #f7f9fc;
  --text: #344054;
  --text-muted: #667085;
  --border: #dfe6f0;
  --border-divider: #e4eaf2;
  --border-soft: #edf1f6;
  --shadow-card: 0 0.6rem 1.5rem rgba(31, 56, 88, 0.06);
  --ours: #fb7185;
  --hawor: #fabf24;
  --handflow: #a78bfa;
  --mint: #34d399;
  --ace: #60a5fa;
}

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

[hidden] {
  display: none !important;
}

.site-shell {
  margin-inline: auto;
  width: 100%;
}

.site-shell--reading {
  max-width: var(--shell-reading);
}

.site-shell--wide {
  max-width: var(--shell-wide);
}

@media screen and (min-width: 1024px) and (max-width: 1215px) {
  .site-shell--wide {
    max-width: 60rem;
  }
}

.publication-title {
  display: block;
  font-family: "Google Sans", sans-serif;
  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: var(--ours);
  text-decoration-line: underline;
  text-decoration-skip-ink: none;
  text-decoration-thickness: 0.09em;
  text-underline-position: under;
}

.publication-authors {
  color: var(--text);
  font-family: "Google Sans", sans-serif;
  margin-top: 0.65rem;
}

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

.publication-links {
  margin-top: var(--space-4);
}

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

.comparison-heading {
  margin-bottom: var(--space-6);
}

.results-section {
  background: var(--surface);
  border-bottom: 1px solid #e8edf5;
}

.results-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-top: 1.4rem;
  overflow: hidden;
  padding: 1.35rem 1.5rem 1.1rem;
}

.results-card-heading {
  align-items: baseline;
  display: flex;
  gap: var(--space-4);
  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 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: var(--border-soft);
  vertical-align: middle;
}

.results-table tbody th {
  white-space: nowrap;
}

.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 .results-table {
  border-collapse: separate;
  border-spacing: 0;
}

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

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

.method-swatch.is-ours { background: var(--ours); }
.method-swatch.is-hawor { background: var(--hawor); }
.method-swatch.is-handflow { background: var(--handflow); }
.method-swatch.is-fourth,
.method-swatch.is-mint { background: var(--mint); }
.method-swatch.is-ace { background: var(--ace); }

.results-note {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.55;
  margin: 0;
}

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

.results-figure {
  margin: 0;
}

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

.results-figure figcaption {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.55;
  margin-top: 0.8rem;
}

[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 {
  backdrop-filter: blur(3px);
  background: rgba(12, 18, 30, 0.88);
}

.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);
}

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

@media screen and (max-width: 768px) {
  .publication-logo {
    height: 1em;
    width: 1em;
  }

  .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;
  }
}
