/* Project page styles — layered on top of the site stylesheet. */

:root {
  --paper-maxw: 980px;
  --fig-bg: #ffffff;
}

html[data-theme="dark"] {
  --fig-bg: #f4f5f7; /* figures are drawn on white; keep a light mat in dark mode */
}

main .wrap { max-width: var(--paper-maxw); }

/* Title block ------------------------------------------------------------ */

.paper-head {
  text-align: center;
  padding-top: 44px;
}

.venue-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  color: var(--text-soft);
}

.paper-head h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 18px;
}

.methodname {
  font-variant: small-caps;
  letter-spacing: 0.4px;
}

.paper-head .authors {
  font-size: 1.02rem;
  margin: 0 0 6px;
  color: var(--text);
}

.paper-head .affil {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0 0 22px;
}

.paper-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.93rem;
}
.btn:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--text);
}

/* Figures ---------------------------------------------------------------- */

.fig {
  margin: 26px 0;
}

.fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--fig-bg);
  padding: 10px;
}

.fig figcaption {
  margin-top: 10px;
  font-size: 0.89rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* Abstract --------------------------------------------------------------- */

.abstract {
  text-align: justify;
  hyphens: auto;
}

/* Key-idea cards --------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.card {
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
}

.card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* Sub-headings ----------------------------------------------------------- */

h3.sub {
  font-size: 1.08rem;
  margin: 30px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--rule);
}

/* Result tables ---------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
  -webkit-overflow-scrolling: touch;
}

table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

table.results caption {
  caption-side: top;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-soft);
  padding-bottom: 8px;
}

table.results th,
table.results td {
  padding: 7px 12px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

table.results thead th {
  border-bottom: 2px solid var(--text-soft);
  font-size: 0.86rem;
}

table.results thead th.sub-th {
  font-weight: 400;
  font-style: italic;
  border-bottom: 1px solid var(--rule);
  font-size: 0.82rem;
}

table.results tbody th[scope="row"] {
  text-align: left;
  font-weight: 400;
}

table.results td.best {
  font-weight: 700;
  color: var(--text);
}

table.results tr.ours {
  background: var(--bg-soft);
}
table.results tr.ours th[scope="row"] {
  font-weight: 700;
}

/* Findings list ---------------------------------------------------------- */

.findings {
  padding-left: 20px;
  margin: 14px 0;
}

.findings li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.setup-list li {
  font-size: 0.94rem;
  margin-bottom: 8px;
}

/* BibTeX ----------------------------------------------------------------- */

pre.bibtex {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

pre.bibtex code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Small screens ---------------------------------------------------------- */

@media (max-width: 640px) {
  .paper-head { padding-top: 30px; }
  .paper-head h1 { font-size: 1.5rem; }
  .paper-head h1 br { display: none; }
  .paper-head .authors { font-size: 0.95rem; }
  .abstract { text-align: left; }
  .fig img { padding: 6px; }
}
