/* ===== WUR-AV-Bench project page ===== */
:root {
  --green:      #2f7d32;
  --green-dark: #1b5e20;
  --green-soft: #e8f3e9;
  --ink:        #1a1f1b;
  --muted:      #5c665e;
  --line:       #e2e8e3;
  --bg:         #ffffff;
  --bg-alt:     #f6f9f6;
  --max:        1080px;
  --radius:     14px;
  --shadow:     0 2px 10px rgba(20, 40, 25, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

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

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

/* ---------- Header / hero ---------- */
header.hero {
  background: linear-gradient(160deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 58px 0 46px;
  text-align: center;
}
header.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 12px;
}
header.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 8px;
  font-weight: 800;
}
header.hero h1 .name { color: #d6f5d8; }
header.hero .subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  opacity: 0.95;
  margin: 0 auto 26px;
  max-width: 720px;
}

/* authors */
.authors { margin: 20px 0 6px; font-size: 1.05rem; }
.authors a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.affil { font-size: 0.9rem; opacity: 0.9; margin-bottom: 2px; }
.authors sup, .affil sup { font-size: 0.7em; }
.venue { font-size: 0.9rem; opacity: 0.9; font-style: italic; }

/* resource buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: rgba(255,255,255,0.28); text-decoration: none; transform: translateY(-1px); }
.btn .ic { font-size: 1.1rem; line-height: 1; }
.btn.soon { opacity: 0.72; }
.btn.soon .tag {
  font-size: 0.68rem;
  background: rgba(0,0,0,0.22);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 4px;
}

/* ---------- Sections ---------- */
section { padding: 52px 0; border-bottom: 1px solid var(--line); }
section:nth-of-type(even) { background: var(--bg-alt); }
section h2 {
  font-size: 1.6rem;
  margin: 0 0 6px;
  color: var(--green-dark);
  text-align: center;
}
section .lead {
  text-align: center;
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 30px;
}

/* hero figure */
.hero-figure { margin: 6px auto 0; max-width: 940px; }
.hero-figure img {
  width: 100%;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
/* abstract box */
.abstract {
  max-width: 820px;
  margin: 34px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 28px;
  box-shadow: var(--shadow);
}
.abstract h3 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}
.abstract p { margin: 0; color: var(--ink); font-size: 1.02rem; text-align: justify; }

figure { margin: 0; }
figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background:#fff; }
figcaption { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 auto;
  max-width: 900px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat .num { font-size: 1.8rem; font-weight: 800; color: var(--green); line-height: 1.1; }
.stat .lbl { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* task cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.card .tnum {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* two-column feature */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}
.feature.reverse .txt { order: 2; }
.feature .txt h3 { margin-top: 0; color: var(--green-dark); }
.feature ul { padding-left: 20px; margin: 12px 0 0; }
.feature ul li { margin-bottom: 6px; }

/* tools — tiered emphasis */
.tools-stack { display: flex; flex-direction: column; gap: 16px; }
.tools-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.tool code { font-size: 0.85rem; background: var(--green-soft); color: var(--green-dark); padding: 2px 6px; border-radius: 6px; font-weight: 500; }
.tool p { margin: 8px 0 0; color: var(--muted); }
.tool h3, .tool h4 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }

/* tier 1 — primary (evaluation) */
.tool.tier1 { border-left: 5px solid var(--green); background: linear-gradient(180deg, var(--green-soft), #fff 60%); padding: 24px 26px; }
.tool.tier1 h3 { font-size: 1.3rem; color: var(--green-dark); }
.tool.tier1 p { font-size: 1rem; }

/* tier 2 — secondary (occlusion scoring) */
.tool.tier2 { border-left: 4px solid var(--green); }
.tool.tier2 h3 { font-size: 1.1rem; color: var(--green-dark); }
.tool.tier2 p { font-size: 0.95rem; }

/* tier 3 — supporting tools */
.tool.tier3 h4 { font-size: 0.98rem; color: var(--ink); }
.tool.tier3 p { font-size: 0.88rem; }

/* detector-dataset subcard */
.subcard {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin-top: 26px;
}
.subcard h3 { margin: 0 0 6px; color: var(--green-dark); font-size: 1.1rem; }
.subcard p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* code / bibtex block */
pre.cite {
  background: #12261a;
  color: #e7f3e9;
  padding: 20px 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.5;
}

.note {
  background: #fff8e6;
  border: 1px solid #f0e0a8;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #6b5a10;
  margin-top: 18px;
}

footer {
  text-align: center;
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.reverse .txt { grid-template-columns: 1fr; order: initial; }
  .feature { gap: 18px; }
  .tools { grid-template-columns: 1fr; }
}
