/* ============================================================
   AGiLe project page — custom styles
   Palette:  ink #0f1b2d  ·  coral #ff6b5d  ·  teal #2bb3a3  ·  paper #fbfaf7
   ============================================================ */

:root {
  --ink:   #0f1b2d;
  --coral: #ff6b5d;
  --teal:  #2bb3a3;
  --paper: #fbfaf7;
  --muted: #5b6573;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans', 'Google Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
}

/* ---------- Hero / title ---------- */
.hero { background: var(--paper); }

.publication-title {
  font-family: 'Castoro', serif;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.4rem !important;
}

.publication-subtitle {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.6rem !important;
}

.publication-authors { margin-top: 0.6rem; }

.publication-authors a {
  color: var(--teal);
  font-weight: 600;
}
.publication-authors a:hover { color: var(--coral); }

.author-block { margin: 0 0.35rem; }

.publication-venue { margin-top: 1.1rem; }

.venue-badge {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* ---------- Link buttons ---------- */
.publication-links { margin-top: 1.6rem; }

.publication-links .link-block { margin: 0.3rem; display: inline-block; }

.publication-links .button.is-dark {
  background: var(--ink);
  border: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.publication-links .button.is-dark:hover {
  background: var(--coral);
  transform: translateY(-2px);
}

/* ---------- Teaser ---------- */
.teaser { padding-top: 0; }

.teaser-media {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 27, 45, 0.14);
}

.teaser-caption {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.agile-name { color: var(--coral); font-weight: 700; }

/* ---------- Section headings ---------- */
.section .title.is-3 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
  margin-bottom: 1.6rem;
}
.section .title.is-3::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 52px;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
}

/* ---------- Figures ---------- */
.method-figure {
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto 0.8rem;
  border-radius: 10px;
}

.caption {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- BibTeX ---------- */
#BibTeX pre {
  background: var(--ink);
  color: #e8edf4;
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}
#BibTeX code { color: inherit; background: transparent; }

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  color: var(--muted);
  border-top: 1px solid rgba(15, 27, 45, 0.08);
}
.footer a { color: var(--teal); }
.footer a:hover { color: var(--coral); }

/* ---------- Accessibility ---------- */
a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .publication-links .button.is-dark:hover { transform: none; }
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 768px) {
  .publication-title { font-size: 2.6rem !important; }
  .publication-subtitle { font-size: 1.3rem !important; }
  .author-block { display: inline-block; }
}

/* ---------- Added: note / contributions / acknowledgements ---------- */
.publication-note {
  color: var(--muted);
  margin-top: 0.4rem;
}

.contributions-section { background: #f3f1ec; }

.contrib-list { list-style: none; margin-left: 0; }
.contrib-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.9rem;
  line-height: 1.55;
}
.contrib-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 9px;
  background: var(--coral);
  border-radius: 2px;
  transform: rotate(45deg);
}

.ack-section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.ack-text { color: var(--muted); font-size: 0.85rem; max-width: 820px; margin: 0 auto; }

/* ---------- Real-world demo video ---------- */
.demo-video {
  display: block;
  width: 100%;
  max-width: 880px;
  margin: 0 auto 0.8rem;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 27, 45, 0.16);
  background: #000;
}
