/* Shared style for project pages (nieo/, giorom/, gatar/, nosurvey/).
   Typography and borders follow the ICLR-template papers: Computer Modern
   serif body, small-caps title and section heads, typewriter labels, thin
   black rounded frames, booktabs tables. Layout inspired by
   https://www.matthewtancik.com/nerf */
@import url("https://cdn.jsdelivr.net/npm/computer-modern@0.1.2/cmu-serif.css");
@import url("https://cdn.jsdelivr.net/npm/computer-modern@0.1.2/cmu-typewriter-text.css");

:root {
  --ink: #111111;
  --muted: #555555;
  --accent: #2f4aa8;       /* per-page override: set --accent / --accent-soft on <body style> */
  --accent-soft: #eef0fa;
  --rule: #d4d4d4;
  --frame: #c9c9c9;        /* light sub-panel frame */
  --radius: 12px;
  --serif: "CMU Serif", "Latin Modern Roman", "Times New Roman", Times, serif;
  --mono: "CMU Typewriter Text", "Latin Modern Mono", "Courier New", monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--serif); font-weight: 500;
  font-size: 16px; line-height: 1.42;
  -webkit-font-smoothing: antialiased;
}
strong, b, th { font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* running head, like the template's header line */
.home {
  display: block; margin-top: 18px; padding-bottom: 6px;
  border-bottom: 1px solid var(--ink); font-size: 13.5px; color: var(--ink);
}

header { text-align: center; padding: 20px 0 4px; }
.logo { width: 96px; height: 96px; display: block; margin: 0 auto 6px; }
h1.acronym {
  font-size: 54px; font-weight: 500; font-variant: small-caps;
  letter-spacing: 1.5px; margin: 0; line-height: 1.05;
}
h1.acronym span { color: var(--accent); }
.title {
  font-size: 22px; font-weight: 500; font-variant: small-caps; letter-spacing: 0.3px;
  margin: 6px auto 0; max-width: 820px; line-height: 1.22;
}
.venue { margin: 10px 0 0; font-family: var(--mono); font-size: 14.5px; color: var(--accent); }
.authors { margin: 12px auto 0; font-size: 17px; max-width: 840px; }
.authors span { white-space: nowrap; margin: 0 10px; }
.affil { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.affil span { margin: 0 10px; white-space: nowrap; }
sup { font-size: 0.65em; }

/* buttons: the template's rounded label boxes */
.buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 15px;
  border: 1.5px solid var(--ink); border-radius: 10px; background: #fff;
  color: var(--ink); font-family: var(--mono); font-size: 14px;
}
.btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn.disabled { border-style: dashed; border-color: #9a9a9a; color: #9a9a9a; pointer-events: none; }

section { padding: 18px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }
h2 {
  font-size: 24px; font-weight: 500; font-variant: small-caps; letter-spacing: 0.5px;
  margin: 0 0 10px; text-align: center;
}
h3 { font-size: 17px; font-weight: 700; margin: 18px 0 6px; }
h4 { font-weight: 700; }
p { margin: 0 0 9px; }
.lead { max-width: 860px; margin: 0 auto; text-align: justify; hyphens: auto; }
.tldr {
  max-width: 780px; margin: 4px auto 16px; padding: 14px 20px;
  font-size: 16.5px; line-height: 1.5; text-align: left; hyphens: manual;
  background: var(--accent-soft); border-radius: 0 10px 10px 0;
  border-left: 5px solid var(--accent);
  border-left-color: color-mix(in srgb, var(--accent) 65%, #000);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.07);
}

figure { margin: 12px 0 0; }
figure img, figure video {
  display: block; margin: 0 auto;
  width: auto; height: auto; max-width: min(100%, 620px); max-height: 400px;
  border: 1px solid var(--frame); border-radius: var(--radius); background: #fff;
}
figcaption { font-size: 13.5px; line-height: 1.38; color: var(--muted); margin: 6px auto 0; max-width: 680px; text-align: center; }
/* the template's black outer frame, for the hero figure */
.teaser figure {
  border: 1.5px solid var(--ink); border-radius: 16px; padding: 12px;
  max-width: 760px; margin: 4px auto 0;
}
.teaser figure img, .teaser figure video { border: 0; border-radius: 8px; max-width: 100%; max-height: 400px; }
.label { font-family: var(--mono); font-size: 13.5px; text-align: center; display: block; margin-bottom: 6px; }

.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: center; }
.eq {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 2px 14px; margin: 10px 0; overflow-x: auto;
}
ul.hl { max-width: 860px; margin: 0 auto; padding-left: 22px; }
ul.hl li { margin-bottom: 4px; }
.baselines { font-size: 13.5px; color: var(--muted); text-align: center; max-width: 860px; margin: 10px auto 0; }

/* booktabs: heavy top/bottom rules, light mid rule, no row lines */
table.res, table.arch { border-collapse: collapse; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
table.res th, table.res td, table.arch th, table.arch td { border-bottom: 0 !important; }
table.res thead th, table.arch thead th, table.res tr:first-child th, table.arch tr:first-child th {
  border-bottom: 0.8px solid var(--ink) !important; color: var(--ink);
}
table.res tr.ours td { background: var(--accent-soft); }

/* boxed cards (open problems etc.) */
.card { background: var(--accent-soft) !important; border: 0; border-radius: var(--radius); }
.card h4 { font-family: var(--mono); font-weight: 500 !important; color: var(--accent); }

pre.bib {
  font-family: var(--mono); background: #f6f6f4; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 13px 15px; font-size: 12.5px; line-height: 1.4; overflow-x: auto; margin: 0;
}
footer { padding: 18px 0 36px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); text-align: center; }

@media (max-width: 720px) {
  h1.acronym { font-size: 42px; }
  .title { font-size: 18px; }
  .authors { font-size: 15px; }
  .two { grid-template-columns: 1fr; }
}
