/* MobileWeave project page. Layout follows the Nerfies template; colors follow the paper (MobileWeave blue #2A78D6). */
:root {
  --mw-blue: #2a78d6;
  --mw-blue-light: #e8f3ff;
  --ink: #1f2328;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e5e7eb;
  --alt-bg: #f7f9fc;
  --gain: #2e9140;
  color-scheme: light;
}

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
}
.title, .publication-title { font-family: 'Google Sans', 'Noto Sans', sans-serif; color: var(--ink); }
a { color: var(--mw-blue); }
a:hover { color: #1d5fae; }

/* ---------- Title block ---------- */
.hero-body { padding-top: 4.5rem; padding-bottom: 1.5rem; }
.publication-title { font-size: 2.6rem !important; line-height: 1.22; font-weight: 500; }
.mw-name { color: var(--mw-blue); font-weight: 700; }
.publication-authors { margin-top: 1.4rem; font-family: 'Google Sans', sans-serif; }
.publication-authors .author-block { display: inline-block; margin: 0 0.18rem; }
.publication-affiliations { margin-top: 0.6rem; color: var(--ink-2); }
.publication-affiliations .author-block { display: inline-block; margin: 0 0.55rem; }
.author-notes { margin-top: 0.45rem; color: var(--ink-3); }
.publication-links { margin-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.link-btn { background-color: #363636 !important; }
.link-btn:hover { background-color: #1f1f1f !important; }
.link-btn.is-soon { opacity: 0.55; cursor: default; }
.link-btn.is-soon:hover { background-color: #363636 !important; }

/* ---------- Sections ---------- */
.section { padding: 3rem 1.5rem; }
.section-alt { background: var(--alt-bg); }
.section .title.is-3 { margin-bottom: 1.5rem; }
.section-lead { color: var(--ink-2); text-align: center; max-width: 760px; margin: -0.5rem auto 1.75rem; line-height: 1.6; }
.body-text { margin-top: 1.25rem; line-height: 1.7; }
.content p, .column p { line-height: 1.7; }
.case-title { margin-top: 2.5rem; margin-bottom: 0.9rem !important; }

figure img { display: block; width: 100%; height: auto; }
.teaser { max-width: 620px; margin: 0 auto; }
figcaption { margin-top: 0.75rem; font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; }
.teaser figcaption { text-align: justify; }
.wide-figure { background: #fff; border-radius: 10px; padding: 0.75rem; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
.wide-figure figcaption { padding: 0 0.25rem; }
.chart { background: #fff; border-radius: 10px; padding: 0.9rem; border: 1px solid var(--line); }
.section-alt .chart { border-color: #e3e8ef; }

/* ---------- Stat tiles ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.stat-tile { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; background: #fff; }
.stat-label { font-size: 0.85rem; color: var(--ink-2); }
.stat-value { font-family: 'Noto Sans', sans-serif; font-weight: 600; font-size: 2.1rem; line-height: 1.2; color: var(--ink); margin-top: 0.2rem; }
.stat-delta { font-size: 0.82rem; color: var(--ink-2); margin-top: 0.15rem; }
.stat-delta::before { content: '▲ '; color: var(--gain); font-size: 0.7rem; }
.stat-note { margin-top: 0.7rem; font-size: 0.82rem; color: var(--ink-3); text-align: center; }
@media (max-width: 768px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publication-title { font-size: 1.9rem !important; }
}

/* ---------- Method steps ---------- */
.method-steps { margin-top: 1.75rem; }
.method-steps .column p { font-size: 0.95rem; color: var(--ink-2); }
.method-steps .title.is-5 { margin-bottom: 0.5rem; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--mw-blue); color: #fff; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.6rem; }

/* ---------- Results tables ---------- */
.table-wrap { overflow-x: auto; }
table.results { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; background: #fff; }
table.results th, table.results td { padding: 0.42rem 0.6rem; text-align: center; white-space: nowrap; }
table.results thead th { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); vertical-align: middle; }
table.results thead tr:first-child th { border-top: 2px solid var(--ink); }
table.results th.grp { font-style: italic; font-weight: 500; color: var(--ink-2); }
table.results .left { text-align: left; }
table.results tbody tr:last-child td { border-bottom: 2px solid var(--ink); }
table.results tr.group td { background: #f1f2f4; text-align: center; font-weight: 600; font-size: 0.82rem; color: var(--ink-2); letter-spacing: 0.02em; }
table.results tr.base td, table.results tr.ours td { background: var(--mw-blue-light); }
table.results tr.ours td.left { font-weight: 600; }
table.results tr.gain td { color: var(--gain); font-size: 0.82rem; font-style: normal; background: #f8fafc; }
table.results tr.gain td.left { color: var(--ink-2); font-style: italic; padding-left: 1.4rem; }
table.results .g { color: var(--gain); font-size: 0.78rem; }
table.results.compact th, table.results.compact td { padding: 0.5rem 0.55rem; }
.table-note { margin-top: 0.7rem; font-size: 0.82rem; color: var(--ink-3); line-height: 1.55; }

ul.findings { margin-top: 0.75rem; padding-left: 1.1rem; list-style: disc; }
ul.findings li { margin-bottom: 0.5rem; line-height: 1.6; }

/* ---------- BibTeX ---------- */
.bibtex-wrap { position: relative; }
.bibtex-wrap pre { background: #f5f6f8; border-radius: 8px; padding: 1.1rem 1.2rem; font-size: 0.82rem; white-space: pre-wrap; word-break: break-word; }
.copy-btn { position: absolute; top: 0.55rem; right: 0.55rem; }
.footer { padding: 2rem 1.5rem 3rem; background: #fafafa; font-size: 0.85rem; color: var(--ink-3); }
