:root {
  --ink: #0f1b2d;
  --muted: #4b6075;
  --line: #c8d5e4;
  --card: #f4f8fc;
  --accent: #117a8b;
  --accent-soft: #d8eef2;
  --bg-1: #f8fbff;
  --bg-2: #e6f2ff;
  --bg-3: #fffdf7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
  line-height: 1.6;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle at 12% 20%, rgba(17, 122, 139, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(31, 99, 163, 0.14), transparent 30%),
    radial-gradient(circle at 55% 78%, rgba(234, 184, 76, 0.12), transparent 35%);
}

.hero {
  padding: 4rem 1.25rem 2rem;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.venue {
  margin: 0;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-family: "Space Grotesk", sans-serif;
  color: var(--muted);
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.2;
}

h1 {
  margin: 0.7rem auto 1rem;
  max-width: 900px;
  font-size: clamp(1.8rem, 4.8vw, 3.25rem);
}

.subtitle {
  margin: 0 auto;
  color: var(--muted);
  max-width: 760px;
}

.meta-row {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.96rem;
}

.quick-links {
  margin-top: 1.45rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.quick-links a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.quick-links a:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.section {
  margin-top: 1.6rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.35rem;
  backdrop-filter: blur(2px);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
}

.placeholder {
  border: 1.5px dashed #8ca8c2;
  background: var(--card);
  min-height: 120px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  padding: 0.8rem;
}

.placeholder-image {
  min-height: 260px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.empty-copy {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

pre {
  margin: 0;
  background: #111723;
  color: #e6ecf5;
  border-radius: 12px;
  padding: 1rem;
  overflow: auto;
  font-size: 0.9rem;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.2rem 1rem 2.25rem;
}

@media (max-width: 760px) {
  .hero {
    padding-top: 2.9rem;
  }

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

  .placeholder-image {
    min-height: 190px;
  }
}

/* Content additions use the original page's palette, typography, and card layout. */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.authors span {
  white-space: nowrap;
}

sup {
  margin-left: 0.15em;
  font-size: 0.7em;
}

.affiliations,
.corresponding {
  color: var(--muted);
  font-size: 0.85rem;
}

.affiliations {
  margin-top: 0.8rem;
}

.affiliations p {
  margin: 0.2rem 0;
}

.corresponding {
  margin: 0.6rem 0 0;
}

.quick-links button,
.copy-button,
.dialog-close {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
}

.quick-links button:disabled {
  color: var(--muted);
  opacity: 0.65;
}

.section h3 {
  margin: 1.35rem 0 0.65rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.4;
}

.section p {
  margin: 0.85rem 0 0;
}

.paper-figure,
.result-figure {
  margin: 0;
  min-width: 0;
}

.paper-figure + .paper-figure,
.section p + .paper-figure {
  margin-top: 1rem;
}

.figure-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: white;
  cursor: zoom-in;
}

.figure-link img {
  width: 100%;
}

figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.result-figure .figure-link img {
  height: 170px;
  object-fit: contain;
}

.result-figure figcaption {
  font-size: 0.8rem;
}

.enlarge-hint {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0;
}

.figure-link:hover .enlarge-hint,
.figure-link:focus-visible .enlarge-hint {
  opacity: 1;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: right;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

thead {
  background: var(--card);
}

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

tbody th {
  font-weight: normal;
}

tbody th span {
  color: var(--muted);
  font-size: 0.8rem;
}

tbody tr:last-child > * {
  border-bottom: 0;
}

.ours {
  background: var(--accent-soft);
}

.table-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.result-block + .result-block,
.limitations {
  margin-top: 1.4rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.copy-button {
  margin-top: 0.85rem;
  cursor: pointer;
}

.copy-button:hover,
.dialog-close:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.copy-status {
  color: var(--muted);
  font-size: 0.85rem;
}

.copy-status:empty {
  display: none;
}

dialog {
  width: min(1400px, 96vw);
  max-height: 94vh;
  padding: 3.5rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  overflow: auto;
}

dialog::backdrop {
  background: rgba(15, 27, 45, 0.75);
}

dialog img {
  width: 100%;
}

dialog p {
  color: var(--muted);
  font-size: 0.85rem;
}

.dialog-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  cursor: pointer;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .desktop-break {
    display: none;
  }

  .result-figure .figure-link img {
    height: auto;
    max-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
