/* PixelControl project page — classic academic template */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --ink: #1c1e21;
  --muted: #5a6169;
  --accent: #2a6fb0;
  --accent-dark: #1f5a92;
  --line: #e6e8eb;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --maxw: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 64px 24px 8px;
  border-bottom: 1px solid var(--line);
}
.venue {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 14px;
}
.title {
  max-width: 900px;
  margin: 0 auto 22px;
  font-size: 2.35rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.authors {
  max-width: 820px;
  margin: 0 auto 6px;
  font-size: 1.12rem;
  line-height: 2;
}
.authors span { white-space: nowrap; margin: 0 2px; }
.authors sup { color: var(--muted); font-weight: 600; }
.affil {
  max-width: 820px;
  margin: 6px auto 4px;
  color: var(--muted);
  font-size: 1rem;
}
.affil span { white-space: nowrap; margin: 0 6px; }
.affil sup { margin-right: 1px; }
.note { color: var(--muted); font-size: 0.92rem; margin: 4px 0 0; }

/* ---------- Buttons ---------- */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px auto 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #2b2f36;
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #14171c; color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: var(--accent-dark); }
.btn.disabled {
  background: #eceef1;
  color: #9aa0a6;
  cursor: not-allowed;
  pointer-events: none;
}
.btn .ico { font-size: 1.05rem; line-height: 1; }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
section + section { border-top: 1px solid var(--line); }
.h2 {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.lead { font-size: 1.05rem; }
.abstract p {
  max-width: 820px;
  margin: 0 auto;
  text-align: justify;
}

/* ---------- Figures ---------- */
figure { margin: 28px 0; text-align: center; }
figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
}
figure.plain img { border-radius: 4px; }
figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 14px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
figcaption b, figcaption strong { color: var(--ink); }

.teaser { margin: 34px auto 0; }

/* ---------- Method cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 30px 0 8px;
}
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--accent-dark); }
.card p { margin: 0; font-size: 0.98rem; color: #333; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 8px 0 4px; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  margin: 0 auto;
}
caption { caption-side: bottom; color: var(--muted); font-size: 0.9rem; padding-top: 10px; text-align: left; }
th, td { padding: 9px 14px; text-align: center; border-bottom: 1px solid var(--line); }
thead th { border-bottom: 2px solid #cfd4d9; font-weight: 700; }
tbody tr:last-child td { border-bottom: 2px solid #cfd4d9; }
td:first-child, th:first-child { text-align: left; }
tr.ours { background: #eef5fb; }
tr.ours td { font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-2 figure, .grid-2 > * { margin-top: 0; margin-bottom: 0; }

/* ---------- Citation ---------- */
.bibtex {
  background: #0f1319;
  color: #e6edf3;
  border-radius: 10px;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: 'Roboto Mono', ui-monospace, Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: left;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 34px 24px 48px;
  border-top: 1px solid var(--line);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,12,15,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 100;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: #fff; color: #111; border: none;
  border-radius: 999px; padding: 8px 18px; font-weight: 600; cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .title { font-size: 1.7rem; }
  .cards, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  figcaption { text-align: left; }
}
