:root {
  --brand: #3c76af;
  --brand-deep: #24548a;
  --brand-gradient: linear-gradient(120deg, #24548a 0%, #3c76af 45%, #5aa6dc 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: #363636;
}

.title, .publication-name, .publication-authors, .highlight-num, .copy-button {
  font-family: 'Google Sans', sans-serif;
}

.hero {
  background: linear-gradient(180deg, #edf3fa 0%, #f6f9fd 55%, #ffffff 100%);
}

.publication-name {
  display: inline-block;
  margin-bottom: 0.6rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
}

.publication-title {
  line-height: 1.3;
}

.brand {
  color: var(--brand);
}

.publication-authors a {
  color: var(--brand);
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
  margin: 0 0.3rem;
}

.notes {
  margin-top: 0.3rem;
  line-height: 1.6;
}

.notes a, .notes a:hover {
  color: inherit !important;
  text-decoration: none;
}

.venue {
  color: rgb(177, 44, 44);
  font-weight: 700;
}

.publication-links {
  margin-top: 1.2rem;
}

.publication-links .button {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.publication-links .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

section.section {
  padding: 1.5rem;
}

.section h2.title {
  margin-top: 1.5rem;
}

.section h2.title::after {
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0.6rem auto 0;
  border-radius: 3px;
  background: var(--brand-gradient);
  content: '';
}

.section h2.title:not(.has-text-centered)::after {
  margin-left: 0;
}

.section h3.title {
  margin-top: 2.5rem;
}

video, figure img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

figure {
  margin: 1rem 0;
}

.media-card {
  padding: 1rem 1rem 0.75rem;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.highlights {
  margin-top: 1.5rem;
  color: #666;
}

.highlight-num {
  display: inline-block;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.6rem;
  font-weight: 700;
}

.caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.clip-title {
  margin-bottom: 0.4rem;
  font-weight: 600;
  text-align: center;
}

.table-container {
  border: 1px solid #e3e8ef;
  border-radius: 10px;
}

.table thead {
  background: #f5f8fc;
}

.table th:not([align]), .table td:not([align]) {
  text-align: center;
  vertical-align: middle;
  font-size: 0.88rem;
}

.table.is-narrow td, .table.is-narrow th {
  padding: 0.4em 0.45em;
}

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

.table td.ours {
  background: #e8f0f8;
  font-weight: 600;
}

.table small {
  color: #888;
}

.tabs.is-toggle li.is-active a {
  background-color: var(--brand);
  border-color: var(--brand);
}

mjx-container[display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
}

.bibtex {
  position: relative;
}

.bibtex pre {
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  background: #f6f8fb;
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid #d7dfe9;
  border-radius: 8px;
  background: #fff;
  color: #4d5866;
  font-size: 0.78rem;
  cursor: pointer;
}

.copy-button:hover, .copy-button:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.footer a {
  color: var(--brand);
}

@media (max-width: 768px) {
  .publication-name {
    font-size: 2.6rem;
  }

  .has-text-justified {
    text-align: left !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .publication-links .button {
    transition: none;
  }
}
