/* PLNet-12 project page (same layout family as the SATE-Bench page) */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --band: #f4f8f7;
  --ink: #17221f;
  --ink-soft: #42504c;
  --muted: #6a7773;
  --line: #e1e8e6;
  --accent: #0d7c72;
  --accent-soft: #e2f3f1;
  --warm: #d9622b;
  --warm-soft: #fcede5;
  --good: #1f8a4c;
  --bad: #c2412d;
  --stage: #111111;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 40, 35, .06), 0 8px 28px rgba(15, 40, 35, .07);
  --nav-h: 56px;
}

/* The fallback note is only visible when this stylesheet fails to load. */
.file-warning { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; height: auto; display: block; }
p, figcaption { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
code { font-family: "JetBrains Mono", monospace; font-size: .88em; background: var(--band); padding: 1px 5px; border-radius: 5px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

/* ---------------- Sections ---------------- */
.section { padding: 72px 0; scroll-margin-top: var(--nav-h); }
.section.band { background: var(--band); }
#top { scroll-margin-top: var(--nav-h); }
.eyebrow {
  margin: 0 0 6px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 16px; text-align: center; }
h3 { font-size: 18px; margin: 0 0 12px; }
.lead { color: var(--ink-soft); max-width: 820px; margin: 0 auto 36px; text-align: center; text-wrap: pretty; }

/* ---------------- Top navigation ---------------- */
.topnav {
  position: sticky; top: 0; z-index: 10; height: var(--nav-h);
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.topnav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.topnav-brand { font-weight: 800; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.topnav-brand:hover { text-decoration: none; color: var(--accent); }
.topnav-links { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav-links::-webkit-scrollbar { display: none; }
.topnav-links a {
  padding: 6px 12px; border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.topnav-links a:hover { text-decoration: none; background: var(--band); color: var(--ink); }
.topnav-links a.is-active { background: var(--accent-soft); color: var(--accent); }

/* ---------------- Hero ---------------- */
.hero { padding: 64px 0 40px; text-align: center; background: linear-gradient(180deg, #e8f5f2 0%, #ffffff 100%); }
.title { font-size: 40px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; margin: 0 auto 18px; max-width: 980px; }
.title .name { color: var(--accent); }
.venue {
  display: inline-block; margin: 0 0 14px; padding: 5px 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.authors { margin: 0 0 26px; }
.authors p { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.authors sup { font-size: .68em; margin-left: 1px; }
.author-list { gap: 4px 22px; font-size: 18px; font-weight: 600; color: var(--ink); }
.authors .affiliations { gap: 2px 18px; margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.authors .corresponding { margin-top: 6px; font-size: 13px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid var(--ink); transition: transform .15s, background .15s;
}
.btn:hover { text-decoration: none; background: #2f3f3b; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.btn-light:hover { background: var(--band); }

/* ---------------- Figures ---------------- */
.figure { margin: 0 0 40px; }
.figure:last-child { margin-bottom: 0; }
.figure img { border-radius: var(--radius); }
.figure figcaption { color: var(--muted); font-size: 15px; margin: 14px auto 0; max-width: 900px; text-align: center; }
.teaser img { box-shadow: var(--shadow); background: #fff; }
.band .figure img { background: #fff; padding: 14px; box-shadow: var(--shadow); }

/* ---------------- Overview ---------------- */
#overview { padding-top: 16px; }
.stats {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.stats li { padding: 18px 12px; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); line-height: 1.2; }
.stats span { font-size: 14px; color: var(--ink-soft); }
.abstract { max-width: 860px; margin: 64px auto 0; }
.abstract p { text-align: justify; hyphens: auto; color: var(--ink-soft); margin: 0; }

/* ---------------- Movements ---------------- */
.moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.move-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.move-stage { position: relative; background: var(--stage); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.move-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.move-count {
  position: absolute; right: 10px; top: 10px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #e9efed; font-size: 12px; font-weight: 600;
}
.move-body { padding: 14px 16px 16px; }
.move-body h3 { margin: 0 0 4px; font-size: 17px; }
.move-body p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.task-tag {
  display: inline-block; margin-bottom: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.task-tag.count { background: var(--accent-soft); color: var(--accent); }
.task-tag.duration { background: #eef0fb; color: #4553b8; }
.task-tag.distance { background: var(--warm-soft); color: var(--warm); }
.task-tag.displacement { background: #fdf3dc; color: #95650b; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin: 18px auto 0; font-size: 14px; color: var(--muted); }
.legend-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.motion-pause {
  display: block; margin: 16px auto 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}
.motion-pause:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------------- Benchmark ---------------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 0 0 40px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; min-width: 0; }
.panel h3 { margin-bottom: 8px; }
.panel p { margin: 0 0 10px; font-size: 15.5px; color: var(--ink-soft); }
.panel ul { margin: 0; padding-left: 20px; font-size: 15.5px; color: var(--ink-soft); }
.panel li + li { margin-top: 6px; }
.panel .table-wrap { border: none; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
th { background: var(--band); font-weight: 600; color: var(--ink-soft); font-size: 14px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.c, th.c { text-align: center; }
td.yes { color: var(--good); font-weight: 700; text-align: center; }
td.no { color: #b0b8b5; text-align: center; }
tr.ours td { background: var(--accent-soft); font-weight: 600; }
.release { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.release .card { border: 1px solid var(--line); box-shadow: none; }
.privacy {
  max-width: 900px; margin: 22px auto 0; padding: 14px 18px; border-radius: 12px;
  background: var(--warm-soft); color: #7a3a17; font-size: 15px; text-align: center;
}

/* ---------------- Results ---------------- */
.seg { display: flex; justify-content: center; gap: 6px; margin: 0 auto 18px; flex-wrap: wrap; }
.seg button {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}
.seg button:hover { border-color: #b9dcd7; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.results-wrap { max-width: 980px; margin: 0 auto; }
table.results tbody tr:hover td { background: #f8fbfa; }
table.results tr.avg td { font-weight: 700; background: var(--band); }
table.results th { white-space: normal; vertical-align: bottom; }
table.results td.hi { color: var(--accent); font-weight: 700; }
table.results td.lo { color: var(--bad); }
.bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--accent); opacity: .55; vertical-align: middle; margin-left: 8px; }
.table-note { max-width: 980px; margin: 12px auto 0; font-size: 14px; color: var(--muted); text-align: center; }
.subhead { margin: 56px 0 6px; text-align: center; font-size: 22px; }

/* ---------------- Findings ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.section:not(.band) .card { border: 1px solid var(--line); }
.card .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); margin: 0 0 8px; white-space: nowrap; }
.card .big small { font-size: 15px; font-weight: 600; color: var(--muted); }
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.card-no { display: block; margin: 0 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa7a3; }

/* ---------------- Code ---------------- */
.code { position: relative; }
.code pre, .bibtex pre {
  margin: 0; padding: 18px 20px; border-radius: var(--radius); background: #111827; color: #e5e7eb;
  font: 13.5px/1.6 "JetBrains Mono", monospace; overflow-x: auto;
}
.code pre .c { color: #8b95a7; }
.code-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.code-grid h3 { font-size: 17px; }

/* ---------------- BibTeX & footer ---------------- */
.bibtex { position: relative; }
.bibtex pre { padding-top: 46px; }
.copy {
  position: absolute; top: 10px; right: 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 5px 12px; border-radius: 8px; border: 1px solid #374151; background: #1f2937; color: #e5e7eb;
}
.ack-title { margin-top: 56px; scroll-margin-top: var(--nav-h); }
.ack { color: var(--ink-soft); margin: 0; }
.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .moves { grid-template-columns: repeat(3, 1fr); }
  .cards, .release { grid-template-columns: repeat(2, 1fr); }
  .two-col, .code-grid { grid-template-columns: minmax(0, 1fr); }
  table.results th, table.results td { padding: 8px 10px; }
}
@media (max-width: 760px) {
  .topnav-brand { display: none; }
  .topnav-links { margin-left: 0; }
  .moves { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li + li { border-left: none; }
  .stats li { border-top: 1px solid var(--line); }
  .stats li:nth-child(-n+2) { border-top: none; }
  .stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .stats li:last-child { grid-column: 1 / -1; border-left: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --nav-h: 50px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 40px 0 28px; }
  .title { font-size: 25px; }
  h2 { font-size: 24px; }
  .lead { margin-bottom: 24px; }
  .cards, .release { grid-template-columns: 1fr; }
  .abstract { margin-top: 40px; }
  .abstract p { text-align: left; }
  .band .figure img { padding: 6px; }
  .move-body { padding: 10px 12px 12px; }
  .move-body h3 { font-size: 15px; }
  .move-body p { font-size: 13px; }
  table.results th:first-child, table.results td:first-child {
    position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line);
  }
  table.results th:first-child { background: var(--band); }
  table.results tr.avg td:first-child { background: var(--band); }
}

/* compact comparison table inside a half-width panel */
table.compact { font-size: 13.5px; }
table.compact th, table.compact td { padding: 7px 8px; }
table.compact th { font-size: 12.5px; }
.footer-visitors { width: 300px; max-width: 100%; margin: 20px auto 0; }
