/* Zero-G project page — hand-written, no framework, no build step. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #1d2228;
  --muted: #5b6470;
  --line: #e3e6ea;
  --accent: #2a78d6;         /* Zero-G blue, matches the figures */
  --accent-soft: #e8f1fc;
  --warn: #9a6200;
  --warn-bg: #fff6e0;
  --warn-line: #f0d48a;
  --ph-bg: repeating-linear-gradient(45deg, #f3f4f6 0 12px, #eceef1 12px 24px);
  --radius: 10px;
  --maxw: 980px;
  --serif: "Castoro", "Georgia", "Times New Roman", serif;
  --sans: "Noto Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- WIP banner ---------- */
.wip-banner {
  position: sticky; top: 0; z-index: 50;
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-line);
  color: var(--warn);
  font-size: 14px;
  text-align: center;
  padding: 7px 16px;
}
.wip-banner strong { font-weight: 700; }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
section { padding: 44px 0 8px; }
section + section { border-top: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; }
h2 { font-size: 30px; text-align: center; margin: 0 0 22px; }
h3 { font-size: 22px; margin: 28px 0 10px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 46px 0 18px; }
.hero h1 { font-size: 42px; margin: 0 auto 18px; max-width: 900px; }
.hero h1 .accent { color: var(--accent); }
.authors { font-size: 19px; margin-bottom: 4px; }
.authors span { white-space: nowrap; margin: 0 9px; }
.affils { color: var(--muted); font-size: 16px; margin-bottom: 4px; }
.affils span { margin: 0 8px; white-space: nowrap; }
.venue { color: var(--muted); font-size: 15px; font-style: italic; margin-bottom: 20px; }
.ph-text { background: #fff3c4; border-radius: 3px; padding: 0 3px; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #24292f; color: #fff;
  border-radius: 999px; padding: 8px 18px;
  font-size: 15px; line-height: 1.2;
  border: 0; cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: #3a4048; text-decoration: none; }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn.disabled { background: #c9ced5; color: #4b525a; cursor: default; }
.btn .tag { font-size: 11px; background: rgba(255,255,255,.55); color: #333; border-radius: 6px; padding: 1px 6px; }

/* ---------- TL;DR ---------- */
.tldr {
  max-width: 820px; margin: 26px auto 0;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 20px;
  text-align: left;
}
.tldr b.k { color: var(--accent); }

/* ---------- section nav ---------- */
.toc {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px;
  margin: 22px auto 0; font-size: 14px;
}
.toc a { color: var(--muted); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.toc a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- media ---------- */
figure { margin: 0 0 18px; }
figcaption { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
figcaption b { color: var(--text); }
.teaser video { width: 100%; max-width: 620px; margin: 0 auto; border-radius: var(--radius); background: #ddd; aspect-ratio: 1 / 1; }
.teaser figcaption { max-width: 760px; margin-left: auto; margin-right: auto; }
.fig { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: #fff; }
.fig img { margin: 0 auto; }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; border-radius: 5px; padding: 1px 7px; vertical-align: 2px;
  font-family: var(--sans);
}
.badge.prelim { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.badge.wip { background: #eef0f3; color: #4b525a; border: 1px solid #d5d9de; }
.badge.done { background: #e6f6ee; color: #136c45; border: 1px solid #b6e3cb; }
.badge.real { background: var(--accent-soft); color: #1b5aa6; border: 1px solid #bcd6f5; }

/* placeholder boxes */
.placeholder {
  background: var(--ph-bg);
  border: 2px dashed #c3c8cf;
  border-radius: var(--radius);
  color: #59616b;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 18px; font-size: 14px; line-height: 1.45;
}
.placeholder strong { color: #39414a; font-size: 15px; margin-bottom: 4px; }
.placeholder.square { aspect-ratio: 1 / 1; }
.placeholder.wide { aspect-ratio: 16 / 7; }

/* ---------- contributions (numbered blocks) ---------- */
.contrib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.contrib > div { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 16px 6px; }
.contrib .n { font-family: var(--serif); font-size: 28px; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.contrib h4 { margin: 0 0 6px; font-size: 16px; }
.contrib p { font-size: 15px; }

/* ---------- method diagram ---------- */
.diagram { width: 100%; height: auto; display: block; margin: 0 auto; }
.diagram text { font-family: var(--sans); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; }
tr:nth-child(even) td { background: #fbfbfc; }
td.c, th.c { text-align: center; }

/* ---------- gallery ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 16px; }
.tab {
  font-family: var(--sans); font-size: 14.5px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.task-desc { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 14px; min-height: 1.6em; }
.arm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.arm-grid figure { margin: 0; }
.arm-grid video, .arm-grid .placeholder { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; background: #ddd; }
.arm-grid figcaption { text-align: center; margin-top: 5px; font-size: 13.5px; }
.arm-grid figcaption b { display: block; font-size: 14px; }
.arm-grid figcaption .envid { font-family: var(--mono); font-size: 11px; word-break: break-all; color: #7a828c; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 0 auto; }
.pair video { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; background: #ddd; }
.pair figcaption { text-align: center; }

/* ---------- research questions ---------- */
.rq { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .05em; text-transform: uppercase; margin: 30px 0 0; }
.rq + h3 { margin-top: 4px; }
.finding { background: var(--bg-soft); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 14px; font-size: 15.5px; }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 6px 0 18px; }
details summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details[open] summary { margin-bottom: 10px; }

/* ---------- status list ---------- */
.status { list-style: none; padding: 0; margin: 0; }
.status li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.status li:last-child { border-bottom: 0; }
.status .badge { justify-self: start; align-self: start; margin-top: 3px; }

/* ---------- datasets ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card h4 { margin: 0 0 6px; font-size: 16px; }
.card p { font-size: 14.5px; margin-bottom: 8px; }
.card code { font-size: 12.5px; word-break: break-all; }
.callout { border-left: 4px solid var(--warn-line); background: var(--warn-bg); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14.5px; margin: 0 0 16px; }

/* ---------- bibtex ---------- */
.bib { position: relative; }
.bib pre {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.5; margin: 0;
}
.copy { position: absolute; top: 8px; right: 8px; font-size: 12.5px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: var(--sans); }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .arm-grid { grid-template-columns: repeat(2, 1fr); }
  .contrib { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 29px; }
  h2 { font-size: 25px; }
  .cards { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr 1fr; gap: 8px; }
  .status li { grid-template-columns: 1fr; gap: 4px; }
  .wip-banner { font-size: 12.5px; }
}

/* contributions, front and center (2026-10-07) */
.contrib-section { padding-top: 28px; }
.contrib.contrib-4 { grid-template-columns: repeat(2, 1fr); }
.contrib.contrib-4 > div { display: flex; flex-direction: column; padding-bottom: 14px; }
.contrib.contrib-4 p { flex: 1; }
.contrib.contrib-4 .badge { align-self: flex-start; }
@media (max-width: 720px) { .contrib.contrib-4 { grid-template-columns: 1fr; } }

/* teaser moved under the title (2026-10-07) */
.teaser-top { margin: 18px auto 20px; max-width: 900px; }
.teaser-top video { width: 100%; border-radius: var(--radius); background: #000; }
.teaser-top figcaption { text-align: center; }

/* headline result figure under the TL;DR (2026-10-08) */
.headline-result { max-width: 820px; margin: 48px auto 30px; padding: 12px 14px 14px; }
.headline-result img { width: 100%; height: auto; }
.headline-result figcaption { text-align: left; font-size: 14px; margin-top: 10px; }

/* >>> headline-tiles (2026-10-09) >>> */
.headline-tiles { max-width: 980px; margin: 0 auto 30px; padding: 10px; }
.headline-tiles video { width: 100%; aspect-ratio: 3 / 1; border-radius: 8px; background: #000; }
.headline-tiles figcaption { text-align: left; font-size: 14px; margin-top: 10px; }
/* <<< headline-tiles <<< */

/* >>> by-range (2026-10-09) >>> */
details.by-range { max-width: 820px; margin: -14px auto 30px; background: #fff; }
details.by-range figcaption { text-align: left; font-size: 14px; margin-top: 8px; }
/* <<< by-range <<< */
