/* LANCER paper pages: same palette as the other LANCER pages */
:root {
  --bg: #0d1117; --surface: #161b22; --border: #30363d; --accent: #58a6ff; --accent2: #3fb950;
  --warn: #d29922; --text: #c9d1d9; --text-dim: #8b949e; --code-bg: #1f2937; --tag-bg: #1c3040;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }
nav { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 1.5rem; padding: 0 2rem; height: 52px; overflow-x: auto; white-space: nowrap; }
nav .brand { font-weight: 700; font-size: 1rem; color: #fff; text-decoration: none; letter-spacing: .5px; }
nav a { color: var(--text-dim); text-decoration: none; font-size: .875rem; transition: color .15s; }
nav a:hover, nav a.active { color: var(--accent); }

main { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem 2rem; }
.kicker { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .72rem; font-weight: 600; background: var(--tag-bg); color: var(--accent); border: 1px solid #1e3a5f; }
.badge.green { background: #0d2318; color: var(--accent2); border-color: #1a4a2e; }
h1 { font-size: 2rem; line-height: 1.25; color: #fff; margin-bottom: .9rem; }
h2 { font-size: 1.3rem; color: #fff; border-bottom: 1px solid var(--border); padding-bottom: .4rem; margin: 2.8rem 0 1.1rem; }
h3 { font-size: 1.02rem; color: var(--accent); margin: 1.6rem 0 .5rem; }
p { margin-bottom: .95rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: #fff; }
.authors { font-size: 1.05rem; color: #fff; }
.authors sup { color: var(--text-dim); }
.affil, .venue { color: var(--text-dim); font-size: .92rem; margin-bottom: .3rem; }
.venue { margin-bottom: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 .4rem; }
.btn { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .15s, transform .15s; }
.btn:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.btn.primary:hover { background: #388bfd; border-color: #388bfd; }
.abstract { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 1.1rem 1.3rem; margin: 1.6rem 0 0; }
.abstract p { margin: 0; color: var(--text); }
.keywords { color: var(--text-dim); font-size: .88rem; margin-top: .8rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; margin: 1.2rem 0 1.4rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; }
.stat b { display: block; font-size: 1.55rem; line-height: 1.2; color: #fff; }
.stat span { display: block; font-size: .83rem; color: var(--text-dim); margin-top: .3rem; line-height: 1.45; }
.stat.warn b { color: var(--warn); }
.stat.ok b { color: var(--accent2); }

figure { margin: 1.5rem 0 1.8rem; }
figure .frame { background: #fff; border-radius: 8px; padding: .6rem; border: 1px solid var(--border); }
figure img, figure video { display: block; width: 100%; height: auto; border-radius: 4px; }
figure.plain .frame { background: none; padding: 0; border: 0; }
figure.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
figcaption { font-size: .85rem; color: var(--text-dim); margin-top: .6rem; line-height: 1.55; }
figcaption b { color: var(--text); }

ul.points { margin: 0 0 1rem 1.2rem; }
ul.points li { margin-bottom: .55rem; }
.note { background: #2a2210; border: 1px solid #5c4a14; border-radius: 8px; padding: .8rem 1.1rem; font-size: .9rem; margin: 1.2rem 0; }
.note p { margin: 0; }
table.facts { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .8rem 0 1.4rem; }
table.facts th, table.facts td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.facts th { color: var(--text-dim); font-weight: 600; width: 34%; }
pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.2rem; overflow-x: auto; font-size: .8rem; line-height: 1.6; margin: .6rem 0 1rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
footer { border-top: 1px solid var(--border); text-align: center; padding: 2rem; font-size: .8rem; color: var(--text-dim); max-width: 860px; margin: 2rem auto; }
footer p { margin-bottom: .5rem; line-height: 1.6; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
@media (max-width: 600px) { h1 { font-size: 1.55rem; } nav { padding: 0 1rem; gap: 1rem; } main { padding-top: 2rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
