/* LC-IL project page — NTU Robot Learning Lab palette (crimson / white), serif type. */
@font-face { font-family: "DM Serif Text"; src: url("fonts/DMSerifText-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Text"; src: url("fonts/DMSerifText-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("fonts/Gelasio[wght].ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("fonts/Gelasio-Italic[wght].ttf") format("truetype"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --crimson: #990001; --dark: #690102; --rose: #CD8C90; --pale: #F4CCCC; --blush: #FBEDED;
  --ink: #2E2E2E; --gray: #595959; --muted: #8A8A8A; --faint: #BDBDBD; --line: #D6D5D4; --light: #F2F2F2; --bg: #FFFFFF;
  --T: #990001; --A: #38761D; --M: #0B5394;
  --head: "DM Serif Text", Georgia, "Times New Roman", serif;
  --body: "Gelasio", Georgia, "Times New Roman", serif;
  --wrap: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--crimson); text-decoration: none; }
a:hover { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; margin: 0; line-height: 1.15; color: var(--ink); }
h2 { font-size: 1.9rem; margin-bottom: 14px; }
h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--crimson); margin-bottom: 14px; border-radius: 2px; }
h3 { font-size: 1.3rem; margin: 34px 0 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sec { padding: 56px 24px; border-top: 1px solid var(--line); }
.lead { color: var(--gray); margin: 0 0 22px; font-size: 1.05rem; max-width: 70ch; }
.prose { margin: 0 0 1em; max-width: 78ch; }
.prose:last-child { margin-bottom: 0; }
.prose.small, .small { font-size: 0.95rem; color: var(--gray); }
b, strong { font-weight: 700; }
sup { font-size: 0.68em; line-height: 0; }
sub { font-size: 0.72em; line-height: 0; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 20px; }
.top__brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; white-space: nowrap; font-family: var(--head); font-size: 1.15rem; color: var(--crimson); }
.top__brand:hover { text-decoration: none; }
.top__nav { display: flex; gap: 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.top__nav::-webkit-scrollbar { display: none; }
.top__nav a { color: var(--gray); font-size: 0.92rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.top__nav a:hover { color: var(--crimson); text-decoration: none; }
.top__nav a.is-active { color: var(--crimson); border-bottom-color: var(--crimson); }

/* ---------- hero ---------- */
.hero { padding: 60px 24px 48px; text-align: center; }
.venue { display: inline-block; margin: 0 0 18px; padding: 5px 14px; border-radius: 999px; background: var(--blush); color: var(--crimson); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.venue a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.venue a:hover { color: var(--dark); }
.title { font-size: clamp(1.9rem, 4.4vw, 3rem); color: var(--crimson); max-width: 36ch; margin: 0 auto; }
.title br.br-wide { display: none; }
@media (min-width: 900px) { .title br.br-wide { display: inline; } }
.authors { list-style: none; margin: 36px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 20px; max-width: 980px; }
.au { width: 144px; text-align: center; }
.au img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 10px; border: 3px solid var(--pale); background: #fff; }
.au__n { font-size: 1rem; line-height: 1.25; color: var(--ink); }
.au__n a { color: inherit; }
.au__n a:hover { color: var(--crimson); }
.affils { margin: 20px auto 0; color: var(--gray); font-size: 0.92rem; max-width: 70ch; line-height: 1.6; }
.links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; padding: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--crimson); color: var(--crimson); background: #fff; font: inherit; font-size: 0.95rem; cursor: pointer; }
.btn:hover { background: var(--blush); text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.logos { display: flex; justify-content: center; align-items: center; gap: 36px; flex-wrap: wrap; margin-top: 40px; }
.logos img { height: 56px; width: auto; }

/* ---------- video ---------- */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.video video, .video .yt { display: block; width: 100%; height: 100%; border: 0; }
.video video[hidden] { display: none; }
.video.is-placeholder { background: var(--light); }
.video__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video__ph[hidden] { display: none; }
.video__ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; filter: grayscale(1); }
.video__ph-card { position: relative; background: #fff; border: 1.5px dashed var(--rose); border-radius: 14px; padding: 26px 34px; text-align: center; display: grid; gap: 6px; justify-items: center; color: var(--gray); }
.video__ph-card strong { font-family: var(--head); font-size: 1.35rem; color: var(--crimson); font-weight: 400; }
.video__ph-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--crimson); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.video__ph-icon svg { width: 26px; height: 26px; margin-left: 3px; }
.video__meta { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }

/* ---------- idea ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; align-items: center; }
.two--text { align-items: start; margin-bottom: 26px; }
.two--tables { align-items: start; }
.fig { margin: 0 0 18px; }
.fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px; }
.fig figcaption { margin-top: 10px; color: var(--gray); font-size: 0.92rem; line-height: 1.55; }
.pts p { margin: 0 0 14px; }
.pts p:last-child { margin-bottom: 0; }
.pts--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; margin-top: 18px; font-size: 0.97rem; }
.pts--grid p { margin: 0; }
.pts--grid + .prose { margin-top: 14px; }
.crit { margin: 0 0 14px; padding: 18px 24px; background: var(--blush); border-left: 4px solid var(--crimson); border-radius: 0 10px 10px 0; font-size: 1.2rem; line-height: 1.5; }
.pT { color: var(--T); } .pA { color: var(--A); } .pM { color: var(--M); }
.key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; font-size: 0.93rem; color: var(--gray); }
.key b { color: var(--ink); }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.sw--T { background: var(--T); } .sw--A { background: var(--A); } .sw--M { background: var(--M); }

/* ---------- equations (plain HTML) ---------- */
.eq { margin: 14px 0 18px; padding: 16px 22px; background: var(--light); border-radius: 10px; font-size: 1.12rem; text-align: center; overflow-x: auto; }
.eq__note { display: block; margin-top: 10px; font-size: 0.9rem; color: var(--gray); }
.tl { position: relative; display: inline-block; }
.tl::before { content: "\02DC"; position: absolute; left: 0; right: 0; top: 0.12em; text-align: center; line-height: 1; }

/* ---------- environments ---------- */
.envs { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.envs li { text-align: center; font-size: 0.9rem; line-height: 1.3; }
.envs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; }
.envs b { display: block; }
.envs span { color: var(--muted); font-size: 0.82rem; }

/* ---------- chart ---------- */
.chartwrap { border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 0; background: #fff; }
.chart { width: 100%; height: auto; display: block; font-family: var(--body); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 22px; font-size: 0.86rem; color: var(--gray); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

/* ---------- tables ---------- */
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; }
.res { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res th, .res td { padding: 8px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.res th { background: var(--light); color: var(--ink); font-weight: 700; font-size: 0.82rem; }
.res th.grp { border-bottom: 1px solid var(--line); background: var(--blush); color: var(--crimson); }
.res th:first-child, .res td.m { text-align: left; }
.res td.c { color: var(--gray); }
.res tr.fam td { text-align: left; background: #FAFAFA; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; }
.res tbody tr:last-child td { border-bottom: 0; }
.res tr.ours td { background: var(--blush); }
.res tr.ours td.m { color: var(--crimson); font-weight: 700; }
.res .n b { color: var(--crimson); }
.res .sd { color: var(--muted); font-size: 0.78em; margin-left: 3px; }
.res--narrow { max-width: 520px; }
.tcap { margin: 10px 0 0; color: var(--gray); font-size: 0.88rem; line-height: 1.55; }
.more { margin-top: 18px; font-size: 0.93rem; color: var(--gray); }
.more summary { cursor: pointer; color: var(--crimson); font-weight: 700; }
.more ul { margin: 10px 0 0; padding-left: 20px; }
.more li { margin: 4px 0; }
.more b { color: var(--ink); }

/* ---------- qualitative ---------- */
.qual { margin-top: 10px; padding: 16px 0 6px; }
.qual + .qual { border-top: 1px solid var(--line); }
.qual__row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; margin-bottom: 14px; }
.qual__lab { display: grid; gap: 2px; font-size: 0.95rem; line-height: 1.25; }
.qual__lab b { font-family: var(--head); font-weight: 400; font-size: 1.1rem; }
.qual__lab span { color: var(--gray); }
.qual__lab em { font-style: normal; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.qual__lab em.bad { color: var(--crimson); } .qual__lab em.good { color: var(--A); }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.fr { margin: 0; position: relative; }
.fr img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.fr figcaption { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,0.5); color: #fff; font-size: 0.72rem; padding: 1px 7px; border-radius: 5px; }

/* ---------- citation ---------- */
.cite { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.cite pre { margin: 0; padding: 16px 20px; background: var(--light); border-radius: 10px; font-size: 0.82rem; line-height: 1.55; overflow-x: auto; }
.cite__side { display: grid; gap: 12px; justify-items: center; }
.cite__side img { border: 1px solid var(--line); border-radius: 8px; }

/* ---------- footer ---------- */
.foot { background: var(--dark); color: #fff; font-size: 0.9rem; margin-top: 30px; }
.foot__in { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.foot a { color: #fff; opacity: 0.9; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .envs { grid-template-columns: repeat(4, 1fr); }
  .two, .pts--grid, .key { grid-template-columns: 1fr; }
  .qual__row { grid-template-columns: 1fr; gap: 8px; }
  .qual__lab { grid-auto-flow: column; justify-content: start; gap: 12px; align-items: baseline; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .cite { grid-template-columns: 1fr; }
  .cite__side { grid-auto-flow: column; justify-content: start; align-items: center; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .sec, .hero { padding-left: 16px; padding-right: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .envs { grid-template-columns: repeat(3, 1fr); }
  .au { width: 104px; }
  .au img { width: 84px; height: 84px; }
  .logos img { height: 44px; }
  .top__brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
