:root {
  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-accent: #1a56c4;
  --color-card: #ffffff;
  --color-card-border: rgba(0, 0, 0, .12);
  --color-code-bg: #f4f5f7;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 16px rgba(0, 0, 0, .05);
  --radius: 14px;
  --transition: all 0.15s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Google Sans', sans-serif;
}


.footer {
    background-color: #ffffff;
    border-top: 1px solid var(--color-card-border);
}

.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser-video {
  display: block;
  width: 100%;
  height: auto;
}

.teaser .subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin: 1rem auto 0;
}

.tldr {
    width: fit-content;
    max-width: 1300px;
    margin: 1.75rem auto 0;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-card-border);
    border-bottom: 1px solid var(--color-card-border);
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--color-muted);
}

.tldr strong {
    color: var(--color-text);
}

.publication-title {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    font-size: 3.6rem;
    line-height: 1.15;
}

.section .title {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 400;
}

#hero-header .container.is-max-desktop {
    max-width: 1300px;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors + .publication-authors {
    margin-top: 0.35rem;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors a {
   color: inherit !important;
   text-decoration: none;
   border-bottom: 1px solid transparent;
   transition: border-color 0.15s ease;
}

.publication-authors a:hover {
    border-bottom-color: var(--color-accent);
}

.author-block {
  display: inline-block;
}

.eql-cntrb {
  font-size: smaller;
  display: block;
  margin-top: 0.25rem;
}

.institution-logo {
  height: 38px;
  vertical-align: middle;
  margin: 0 8px;
}

/* --- Link buttons (arXiv / Code) --- */
.link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-card-border);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-card);
  cursor: default;
  text-decoration: none;
}

a.link-btn {
  cursor: pointer;
  transition: var(--transition);
}

a.link-btn:hover {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .2);
  text-decoration: none;
}

.link-btn.is-disabled {
  color: var(--color-muted);
  background: rgba(0, 0, 0, .03);
}

/* --- Model dropdown --- */
.link-menu {
  position: relative;
  display: inline-flex;
}

.link-menu-trigger {
  cursor: pointer;
  transition: var(--transition);
  font: inherit;
}

.link-menu-trigger:hover {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .2);
}

.link-menu-trigger .caret {
  font-size: 0.7rem;
  transition: transform 0.18s ease;
}

.link-menu-trigger[aria-expanded="true"] {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .2);
}

.link-menu-trigger[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

.link-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -4px);
  min-width: 220px;
  padding: 6px;
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 80;
  text-align: left;
}

.link-menu:hover .link-menu-panel,
.link-menu:focus-within .link-menu-panel,
.link-menu-trigger[aria-expanded="true"] + .link-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.link-menu-panel .lm-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: default;
}

.link-menu-panel .lm-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-menu-panel .lm-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.link-menu-panel .lm-meta {
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* --- BibTeX / code card --- */
.code-card {
  position: relative;
  background: var(--color-code-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
}

.code-card pre {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0;
  font-size: 0.9rem !important;
}

.code-card code {
  background: transparent !important;
  color: var(--color-muted) !important;
  font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Cascadia Code', monospace !important;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .15);
  background: var(--color-card);
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.copy-btn.is-copied {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* --- Scroll to top --- */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-card-border);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.scroll-to-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

