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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #e6e6e6;
  background-color: #1a1a1a;
}

.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Section */
.header-section {
  padding: 4rem 0 0.5rem;
  text-align: center;
}

.header-content {
  padding: 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  line-height: 1.2;
}

.authors {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #b3b3b3;
}

.author {
  display: inline-block;
  margin-right: 0.5rem;
}

.author a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s;
}

.author a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.author sup {
  margin-left: 0.15rem;
  font-size: 1.15rem;
  vertical-align: super;
  color: #e6e6e6;
  font-weight: 700;
}

.author sup.diamond {
  font-size: 0.9rem;
  font-weight: 800;
  font-family: inherit;
}

.affiliations sup {
  font-size: 1.15rem;
  font-weight: 700;
  vertical-align: super;
  color: #e6e6e6;
}

.affiliations sup.diamond {
  font-size: 0.9rem;
  font-weight: 800;
  font-family: inherit;
}

.affiliations {
  font-size: 0.95rem;
  color: #b3b3b3;
  margin-bottom: 2rem;
}

.affiliations span {
  margin-right: 0.5rem;
}

/* Links Section */
.links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.button-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.link-button.paper {
  background-color: #1f1f1f;
  color: #fff;
  border-color: #353535;
}

.link-button.paper:hover {
  background-color: #2d2d2d;
  border-color: #404040;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.link-button.alphaxiv {
  background-color: #e8e8e8;
  color: #1a1a1a;
  border-color: #d0d0d0;
}

.link-button.alphaxiv:hover {
  background-color: #f0f0f0;
  border-color: #c0c0c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.link-button.arxiv {
  background-color: #3a3a3a;
  color: #ffffff;
  border-color: #505050;
}

.link-button.arxiv:hover {
  background-color: #4a4a4a;
  border-color: #606060;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.link-button.code {
  background-color: #2563eb;
  color: #fff;
}

.link-button.code:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.code-disclaimer {
  text-align: center;
  margin-top: 1rem;
  color: #b3b3b3;
  font-size: 0.85rem;
  font-style: italic;
}

/* Media */
.image-card {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0;
}

.main-section:has(.table-large) {
  padding-top: 0.5rem;
}

.main-section:has(.table-large) .figure-caption {
  margin-bottom: 0.5rem;
}

.cover-image {
  width: 100%;
  max-width: 1100px;
  border-radius: 12px;
  box-shadow: none;
  object-fit: contain;
}

.cover-image.table-large {
  max-width: 1000px;
}

.cover-image.small-image {
  max-width: 1000px;
}

.cover-image.single-image {
  max-width: 900px;
}

.figure-caption {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
  margin-left: auto !important;
  margin-right: auto !important;
  color: #b3b3b3;
  font-size: 0.95rem;
  max-width: 800px !important;
  display: block;
}

.main-section:has(.content-section:has(.figure-caption:last-child)) {
  padding-bottom: 0.5rem;
}

.content-section .figure-caption:last-child {
  margin-bottom: 0.5rem;
}

/* Content Sections */
.main-section {
  padding: 1.75rem 0;
}

.main-section:has(.image-card:has(.cover-image:not(.table-large):not(.single-image):not(.small-image))) {
  padding-top: 0.5rem;
}

.content-section {
  max-width: 100%;
  margin: 0 auto;
}

.content-section > p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e6e6e6;
  line-height: 1.65;
}

.image-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.image-row .image-card {
  flex: 1;
  min-width: 280px;
  margin: 1rem 0;
}

.image-row .cover-image {
  width: 100%;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.content {
  color: #e6e6e6;
  line-height: 1.65;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.metric-highlight {
  color: #fbbf24;
  font-weight: 600;
}

.tldr-box {
  background-color: #2d2d2d;
  border: 1px solid #404040;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.bullet-list {
  padding-left: 1.25rem;
  margin: 0;
}

.bullet-list li {
  margin-bottom: 0.75rem;
}

.bullet-list.nested {
  list-style-type: disc;
  margin-top: 0.5rem;
}

.bullet-list.nested li {
  margin-bottom: 0.35rem;
  margin-left: 1rem;
}

.bullet-list.numbered {
  list-style-type: decimal;
  padding-left: 1.25rem;
}

.content p {
  margin-bottom: 0.9rem;
}

.content a {
  color: #60a5fa;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

/* BibTeX Section */
.bibtex {
  background-color: #2d2d2d;
  border: 1px solid #404040;
  border-radius: 6px;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e6e6e6;
}

.bibtex code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* Citation Section */
.citation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.citation-card {
  border: 1px solid #404040;
  border-radius: 8px;
  padding: 1rem;
  background-color: #2d2d2d;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.citation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.copy-button {
  border: 1px solid #404040;
  background-color: #404040;
  color: #e6e6e6;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-button:hover {
  background-color: #555555;
}

.copy-button:active {
  transform: translateY(1px);
}

.citation-text {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e6e6e6;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background-color: #2d2d2d;
  border-top: 1px solid #404040;
  margin-top: 3rem;
}

.footer-content {
  text-align: center;
  color: #b3b3b3;
  font-size: 0.9rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer a {
  color: #60a5fa;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .main-container {
    padding: 0 1.5rem;
  }

  .title {
    font-size: 2rem;
  }

  .header-section {
    padding: 3rem 0 2rem;
  }

  .main-section {
    padding: 2rem 0;
  }

  .links {
    flex-direction: column;
    align-items: center;
  }

  .link-button {
    width: 100%;
    max-width: 200px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.75rem;
  }

  .authors {
    font-size: 1rem;
  }
}
