/* FunBCS project page. Base: the Nerfies template (github.com/nerfies/nerfies.github.io, CC BY-SA 4.0).
   Plain white page; light-to-medium blue only for buttons, tabs and table highlights. */
:root {
  --blue-50: #f2f7fe;
  --blue-100: #e3eefb;
  --blue-200: #c6dbf5;
  --blue-500: #2f6fca;   /* medium blue: buttons, active tab */
  --blue-600: #285fae;   /* hover */
  --blue-700: #1d4f91;   /* text accents, links */
  --ink: #111827;
  --ink-2: #263241;
  --ink-soft: #5b6676;
  --line: #e5e9f0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Noto Sans', sans-serif;
  font-size: 1.06rem;
  color: var(--ink);
  background: #ffffff;
}
::selection { background: var(--blue-100); color: var(--ink); }
a { color: var(--blue-700); }
a:hover { color: var(--blue-500); }

/* ---------- header ---------- */
.hero.page-header { background: #ffffff; }
.hero.page-header .hero-body { padding-top: 4rem; padding-bottom: 1.2rem; }
.publication-title {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  color: var(--ink) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.01em;
}
.method-name {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 4px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  color: var(--blue-700);
  background: var(--blue-100);
}
.publication-authors { font-family: 'Source Sans 3', sans-serif; color: var(--ink-2); }
.publication-authors .author-block { display: inline-block; margin: 0 0.35rem; }
.publication-authors sup { font-size: 0.7em; color: var(--blue-700); }
.publication-authors a { color: var(--blue-500); }
.publication-authors a:hover { color: var(--blue-700); text-decoration: underline; }
.publication-affil { color: var(--ink-soft); margin-top: 0.4rem; }
.publication-note { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.35rem; }
.publication-links { margin-top: 1.4rem; }
.publication-links .link-block { display: inline-block; margin: 0.3rem 0.25rem; }
.hero.page-header .button.is-dark {
  background: var(--blue-500);
  border: none;
  color: #ffffff;
  font-weight: 600;
  transition: background 0.2s ease;
}
.hero.page-header .button.is-dark:hover { background: var(--blue-600); color: #ffffff; }

/* ---------- sections ---------- */
.section { padding: 2.1rem 1.5rem; }
.section.first { padding-top: 1.2rem; }
.title.is-3 {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.4rem !important;
}
.title.is-4.sub {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.4rem;
  margin-bottom: 1rem !important;
}
.content { color: var(--ink); }
.content p { line-height: 1.62; }
.content .lead { color: var(--ink-2); }
.content b, .content strong { color: var(--ink); }
.caption { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; margin-top: 0.7rem; }
.caption b, .caption strong { color: var(--ink-2); }
.media-label { font-weight: 600; color: var(--ink-2); margin-top: 0.45rem; font-size: 1rem; }
.fig-img { width: 100%; height: auto; display: block; margin: 0 auto; }
.fig-narrow { max-width: 560px; margin: 0 auto; }
video.wide { width: 100%; height: auto; display: block; }
.teaser-row { margin-top: 1.3rem; }

/* ---------- result tabs ---------- */
.pde-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 1.3rem 0 1.2rem; }
.pde-tab {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--blue-200);
  background: #ffffff;
  color: var(--blue-700);
  cursor: pointer;
  transition: all 0.2s ease;
}
.pde-tab:hover { background: var(--blue-50); }
.pde-tab.active { background: var(--blue-500); border-color: var(--blue-500); color: #ffffff; }
.pde-panel { display: none; }
.pde-panel.active { display: block; }
.pde-panel.active.switched { animation: panel-in 0.3s ease; }     /* fade only on tab switches */
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
.pde-panel video { width: 100%; max-width: 1100px; height: auto; display: block; margin: 0 auto; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-2);
}
table.results th, table.results td { padding: 0.42rem 0.55rem; text-align: center; }
table.results thead th { color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--blue-200); }
table.results thead tr.metrics th { font-weight: 600; color: var(--ink-soft); font-size: 0.88rem; }
table.results td:first-child, table.results th:first-child { text-align: left; }
table.results tbody tr { border-bottom: 1px solid var(--line); }
table.results tbody tr.sep { border-top: 2px solid var(--blue-200); }
table.results tr.ours { background: var(--blue-50); }
table.results tr.ours td:first-child { color: var(--blue-700); font-weight: 600; }
table.results .std { font-size: 0.78em; color: #7b8698; margin-left: 1px; }
table.results .best { font-weight: 700; color: var(--blue-700); }
table.results .second { text-decoration: underline; text-decoration-color: var(--blue-500); text-underline-offset: 3px; }
table.results th.group { border-bottom: 1px solid var(--blue-200); }

/* ---------- misc ---------- */
pre.bibtex {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--ink-2);
}
.footer { background: #ffffff; padding: 2.2rem 1.5rem 3rem; color: var(--ink-soft); font-size: 0.92rem; }
.footer a { color: var(--blue-700); }
.footer .icon-link { color: var(--ink-2); margin: 0 0.4rem; text-decoration: none; }

/* ---------- icons and small screens ---------- */
.svg-icon { width: 1.05em; height: 1.05em; vertical-align: -0.12em; }
.footer .icon-link .svg-icon { width: 26px; height: 26px; }
@media screen and (max-width: 768px) {
  .publication-title { font-size: 1.75rem !important; }
  .content.has-text-justified, .caption.has-text-justified { text-align: left !important; }
  .section { padding: 1.4rem 0.9rem; }
}
