/* OVGGT Project Page — Custom Styles */

/* ── Fonts ── */
body {
  font-family: 'Noto Sans', sans-serif;
}

.title.is-1 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

/* ── Global Content Width ── */
.section>.container,
.hero-body>.container,
.container.is-max-desktop {
  max-width: 1216px !important;
}

/* ── Hero ── */

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

.publication-authors {
  line-height: 1.8;
}

.publication-authors .author-block {
  display: inline-block;
  margin: 0 2px;
}

.author-block sup {
  margin-left: 1px;
}

/* ── Action Buttons ── */
.link-block {
  display: inline-block;
  margin: 4px;
}

.publication-links .button .icon {
  margin-right: 4px;
}

/* ── TL;DR Box ── */
.tldr-box {
  background: #e8f0fe;
  border-left: 4px solid #4285f4;
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.tldr-box strong.tldr-label {
  color: #1a73e8;
}

/* ── Section Titles ── */
.section .title.is-3 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #eee;
  margin-bottom: 1rem;
}

/* ── Images ── */
.result-image img,
.teaser-image img {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ── Method Component Labels ── */
.method-component {
  margin-bottom: 1rem;
}

.method-component strong {
  color: #333;
}

/* ── Color-coded Method Names ── */
.method-ovggt {
  color: #d32f2f;
  font-weight: 600;
}

.method-stream {
  color: #1565c0;
  font-weight: 600;
}

.method-evict {
  color: #6a1b9a;
  font-weight: 600;
}

.method-infinite {
  color: #2e7d32;
  font-weight: 600;
}

/* ── Tables ── */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.results-table {
  width: 100%;
  font-size: 0.9rem;
  border-collapse: collapse;
}

.results-table th {
  background: #f5f5f5;
  font-weight: 600;
  text-align: center;
  padding: 8px 6px;
  border-bottom: 2px solid #ddd;
  white-space: nowrap;
}

.results-table td {
  text-align: center;
  padding: 6px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.results-table td:first-child,
.results-table th:first-child {
  text-align: left;
  font-weight: 500;
}

.results-table tbody tr:hover {
  background: #fafafa;
}

.results-table .best {
  background: #ffcdd2;
  font-weight: 700;
  border-radius: 3px;
  padding: 2px 5px;
}

.results-table .second {
  background: #ffe0b2;
  font-weight: 600;
  border-radius: 3px;
  padding: 2px 5px;
}

.results-table .oom {
  color: #999;
  font-style: italic;
}

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

.results-table .section-divider td {
  border-bottom: 2px solid #ccc;
}

/* ── Tabs ── */
.tabs li.is-active a {
  border-bottom-color: #4285f4;
  color: #4285f4;
  font-weight: 600;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── BibTeX ── */
.bibtex-box {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-family: 'Castoro', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-x: auto;
  position: relative;
}

.bibtex-box pre {
  margin: 0;
  white-space: pre;
}

.bibtex-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e0e0e0;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.8rem;
}

.bibtex-copy-btn:hover {
  background: #ccc;
}

/* ── Footer ── */
.footer {
  padding: 2rem 1.5rem;
}

.footer .content p {
  font-size: 0.9rem;
  color: #888;
}

/* ── Caption ── */
.image-caption {
  font-size: 0.92rem;
  color: #555;
  margin-top: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

/* ── Responsive ── */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.5rem !important;
  }

  .results-table {
    font-size: 0.78rem;
  }

  .tldr-box {
    font-size: 0.95rem;
    padding: 1rem;
  }

  .tabs ul {
    flex-wrap: wrap;
  }

  .tabs li {
    flex-grow: 1;
  }

  .tabs li a {
    font-size: 0.85rem;
    padding: 0.5em 0.6em;
  }
}