:root {
  --text-color: #262626;
  --text-light: #666666;
  --theme-color: #a02020;
  --bg-color: #ffffff;
  --divider-color: rgba(38, 38, 38, 0.12);
  --code-bg: rgba(160, 32, 32, 0.055);
  --font-sans: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Charter, "Iowan Old Style", Palatino, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --content-width: 900px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }
body {
  color: var(--text-color);
  background: var(--bg-color);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--theme-color); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
sup { font-size: 0.68em; line-height: 0; }
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.prose-container { max-width: 788px; }
.section {
  margin: 3.5rem 0;
  scroll-margin-top: 1.5rem;
}
.hero-inner { padding: 3.5rem 1.5rem 0; text-align: center; }
.publication-title, .section-title, .result-heading, .detail-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-variant-numeric: lining-nums;
}
.publication-title {
  margin: 0 auto 1.1rem;
  font-size: 2rem;
  line-height: 1.25;
}
.publication-authors { font-size: 1.1rem; }
.author-block { display: inline; }
.author-block:not(:last-child)::after { content: ","; color: var(--text-light); }
.publication-affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.75rem;
  margin-top: 0.35rem;
  color: var(--text-light);
  font-size: 0.95rem;
}
.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--divider-color);
  border-radius: 5px;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
}
.link-button.primary, .link-button:hover, .link-button:focus-visible {
  border-color: var(--theme-color);
  color: var(--theme-color);
  text-decoration: none;
}
.icon { display: inline-flex; width: 1rem; justify-content: center; }
.abstract-section { margin-top: 2.75rem; }
.abstract-card {
  padding: 1.5rem;
  border: 1px solid var(--divider-color);
  border-radius: 8px;
  background: #fafafa;
}
.section-title { margin-bottom: 0.85rem; font-size: 1.5rem; line-height: 1.3; }
.section-heading { max-width: 74ch; margin-bottom: 1.5rem; }
.section-heading p, .prose, .content p { text-align: left; }
.content p + p { margin-top: 1rem; }
.prose { max-width: 74ch; }
.result-heading {
  margin: 2rem 0 0.7rem;
  font-size: 1.18rem;
  line-height: 1.35;
}
.detail-heading { margin: 1.5rem 0 0.65rem; font-size: 1.08rem; }
.paper-figure { margin: 1.5rem 0 0; text-align: center; }
.paper-figure img { margin: 0 auto; }
.paper-figure a { display: block; cursor: zoom-in; }
.figure-caption {
  margin: 0.65rem auto 0;
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}
.workspace-goals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.65rem;
  margin: 1.1rem 0 2.5rem;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.workspace-goals li::before { content: "✓"; margin-right: 0.4rem; color: var(--theme-color); }
.action-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--divider-color);
  border-bottom: 1px solid var(--divider-color);
}
.action-list dt { color: var(--theme-color); font-weight: 600; }
.action-list dd { margin-top: 0.2rem; color: var(--text-light); font-size: 0.9rem; }
.result-highlight {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.25rem 0;
}
.highlight-number {
  flex-shrink: 0;
  color: var(--theme-color);
  font-family: var(--font-serif);
  font-size: 2.65rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
}
.highlight-number span { font-size: 1.2rem; }
.result-highlight p { color: var(--text-light); font-size: 0.95rem; line-height: 1.4; }
.figure-grid { display: grid; gap: 1.25rem; }
.figure-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reuse-figures { align-items: start; }
.reuse-figures .paper-figure { min-width: 0; margin-top: 0; }
.takeaway { max-width: 74ch; margin: 1.5rem 0 0; }
.example-heading { margin-top: 2.75rem; }
.table-scroll {
  max-width: 100%;
  margin-top: 0.8rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.table-scroll:focus-visible, .result-details summary:focus-visible {
  outline: 2px solid var(--theme-color);
  outline-offset: 3px;
}
.results-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.4;
  font-variant-numeric: lining-nums tabular-nums;
}
.compact-table { min-width: 460px; }
.summary-table { min-width: 0; font-size: 1rem; }
.results-table th, .results-table td { padding: 0.55rem 0.75rem; text-align: right; white-space: nowrap; }
.results-table thead th {
  border-bottom: 2px solid var(--text-color);
  font-weight: 600;
}
.results-table tbody th, .results-table td { border-bottom: 1px solid var(--divider-color); }
.results-table tbody th { font-weight: 400; }
.results-table th:first-child { text-align: left; }
.results-table tbody tr:hover { background: #fafafa; }
.average-row th, .average-row td { border-top: 1px solid var(--text-color); }
.results-table .average-row th { font-weight: 600; }
.best { color: var(--theme-color); font-weight: 700; }
.table-note { margin-top: 0.7rem; color: var(--text-light); font-size: 0.85rem; line-height: 1.5; }
.result-details { margin: 1.25rem 0; }
.result-details summary {
  width: fit-content;
  min-height: 44px;
  padding: 0.55rem 0;
  color: var(--theme-color);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}
.result-details > p, .result-details > .content { margin-top: 0.8rem; }
.result-details > p { max-width: 74ch; }
.bibtex {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--divider-color);
  border-radius: 5px;
  background: #f8f8f8;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-variant-numeric: lining-nums tabular-nums;
}
.footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--divider-color);
  color: var(--text-light);
  font-size: 0.85rem;
  text-align: center;
}
.section-nav {
  position: fixed;
  top: 50%;
  left: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.55rem;
  width: 140px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-0.35rem, -50%);
  font-size: 0.75rem;
  line-height: 1.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.section-nav.is-visible { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.section-nav-track {
  position: relative;
  flex: 0 0 2px;
  margin: 0.2rem 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--divider-color);
}
.section-nav-progress { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--theme-color); }
.section-nav-links { min-width: 0; }
.section-nav a { display: block; padding: 0.24rem 0; color: #929292; text-decoration: none; }
.section-nav a:hover, .section-nav a:focus-visible, .section-nav a.is-active { color: var(--text-color); }
.section-nav a.is-active { font-weight: 700; }
@media (max-width: 1200px) {
  .section-nav { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 1.1rem; }
  .hero-inner { padding: 2.5rem 1.1rem 0; }
  .publication-title { font-size: 1.8rem; }
  .publication-authors { font-size: 1rem; }
  .publication-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 340px;
    gap: 0.5rem;
    margin: 1.25rem auto 0;
  }
  .link-button { justify-content: center; min-height: 44px; padding: 0.5rem 0.8rem; }
  .section { margin: 2.75rem 0; }
  .abstract-section { margin-top: 2.25rem; }
  .abstract-card { padding: 1.1rem; }
  .workspace-goals { justify-content: flex-start; gap: 0.4rem 1rem; font-size: 0.85rem; }
  .action-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-highlight { display: block; }
  .highlight-number { display: block; font-size: 2.15rem; }
  .highlight-number span { font-size: 1rem; }
  .result-highlight p { padding-top: 0.45rem; }
  .figure-grid-two { grid-template-columns: 1fr; gap: 1.5rem; }
  .results-table { font-size: 0.82rem; }
  .summary-table { font-size: 0.95rem; }
  .results-table th, .results-table td { padding: 0.55rem 0.45rem; }
  .summary-table th, .summary-table td { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-nav { transition: none; }
}
@media print {
  .section-nav, .publication-links, .footer { display: none; }
  .section { margin: 2rem 0; }
  .hero-inner { padding-top: 0; }
}
