/* Flow-Map GRPO project page. Same design system as the FlowMap-OPD page: accent blue, green = Flow-Map GRPO. */
:root {
  --bg: #ffffff; --band: #f5f7fa; --card: #ffffff; --ink: #141b24; --ink2: #3a4553; --mute: #627084; --line: #e2e7ee; --line2: #cfd6e0;
  --accent: #0072B2; --accent-ink: #005f95; --accent-soft: #e6f1f8; --gold: #E8AC14; --gold-ink: #8a6200; --gold-soft: #fdf4d9;
  --green: #18A064; --green-ink: #0e7a4a; --green-soft: #e3f5ec; --plate: #ffffff; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
  --r: 12px; --nav-h: 52px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1319; --band: #141a22; --card: #171e27; --ink: #e8ecf1; --ink2: #c3cbd6; --mute: #94a0b0; --line: #26303c; --line2: #344050;
    --accent: #4aa8e8; --accent-ink: #7fc3f2; --accent-soft: #14293a; --gold: #f0b92a; --gold-ink: #f3c95a; --gold-soft: #2e2610;
    --green: #2fc084; --green-ink: #56d39e; --green-soft: #11291f; --plate: #ffffff; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
sup { font-size: .68em; line-height: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.wide { width: min(1320px, 100% - 40px); }
.wrap.narrow { width: min(780px, 100% - 40px); }

/* ---------- nav ---------- */
.topnav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topnav-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { font-weight: 700; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.navlinks { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a { color: var(--mute); font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.navlinks a:hover, .navlinks a.on { color: var(--ink); background: var(--band); text-decoration: none; }
.navcta { display: flex; gap: 8px; }
.navcta a { font-size: 13px; font-weight: 600; color: var(--ink); border: 1px solid var(--line2); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.navcta a:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 28px; text-align: center; }
h1 { margin: 0 auto; max-width: 900px; letter-spacing: -.025em; line-height: 1.08; }
h1 .t1 { display: block; font-size: clamp(40px, 7vw, 72px); font-weight: 700; }
h1 .t2 { display: block; margin-top: 14px; font-size: clamp(20px, 2.9vw, 30px); font-weight: 500; color: var(--ink2); letter-spacing: -.015em; line-height: 1.25; }
.authors { margin: 30px 0 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; font-size: 18px; font-weight: 500; }
.authors a { color: var(--ink); border-bottom: 1px solid var(--line2); }
.authors a:hover { color: var(--accent-ink); border-color: var(--accent); text-decoration: none; }
.affil { margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; color: var(--mute); font-size: 15px; }
.links { margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .15s, background .15s, transform .15s; }
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.rule { margin: 44px auto 0; max-width: 760px; padding: 0; border: 0; font: italic 500 clamp(24px, 3.6vw, 36px)/1.25 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.rule::before, .rule::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--accent); margin: 0 auto 18px; }
.rule::after { display: none; }
.teaser { margin: 44px 0 0; }
.plate { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.teaser .plate { padding: 10px; }
figure { margin: 0; }
figcaption { margin-top: 12px; color: var(--mute); font-size: 14px; line-height: 1.55; text-align: left; }
figcaption b, figcaption strong { color: var(--ink2); font-weight: 600; }
.teaser figcaption { max-width: 900px; margin-inline: auto; text-align: center; }

/* ---------- stats ---------- */
.stats { padding: 20px 0 8px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tiles li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.num { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.num .arrow { color: var(--accent); font-weight: 500; }
.num .vs { font-size: .55em; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.lab { color: var(--mute); font-size: 14px; line-height: 1.45; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.stats { padding: 20px 0 8px; }
.band { background: var(--band); border-block: 1px solid var(--line); }
h2 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
h3 { margin: 0 0 8px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
h3.sub { margin: 64px 0 10px; padding-top: 28px; border-top: 1px solid var(--line2); font-size: 23px; letter-spacing: -.015em; }
.sechead + h3.sub { margin-top: 28px; }
p { margin: 0 0 14px; color: var(--ink2); }
.sechead { max-width: 780px; margin-bottom: 30px; }
.sechead p { font-size: 18px; color: var(--mute); margin: 0; }
.lead { max-width: 780px; }
#abstract p { font-size: 16.5px; line-height: 1.75; }
.key { font-weight: 650; padding: 1px 7px; border-radius: 6px; }
.key.gold { background: var(--gold-soft); color: var(--gold-ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.key.green { background: var(--green-soft); color: var(--green-ink); box-shadow: inset 0 0 0 1.5px var(--green); }

/* ---------- wall ---------- */
#wall-section { padding: 56px 0 72px; }
.wall { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.walltile { position: relative; padding: 0; border: 0; background: var(--band); border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.walltile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.walltag { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 9px 7px; font-size: 11.5px; line-height: 1.25; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .2s; }
.walltile:hover img { transform: scale(1.04); }
.walltile:hover .walltag, .walltile:focus-visible .walltag { opacity: 1; }
.walltile:focus-visible { outline-offset: 3px; border-radius: 10px; }

/* ---------- method ---------- */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panels .plate { padding: 6px; box-shadow: none; }
.panels figcaption { font-size: 13.5px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 44px; }
.twocol p { margin: 0; }

/* ---------- tables ---------- */
.tbl { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl.narrowtbl { max-width: 780px; margin-top: 40px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cap { margin: 0; padding: 14px 16px 12px; color: var(--mute); font-size: 13.5px; line-height: 1.5; border-bottom: 1px solid var(--line); }
.cap b { color: var(--ink); font-weight: 650; }
th, td { padding: 8px 14px; text-align: right; white-space: nowrap; }
thead th { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
thead .subhead th { text-transform: none; letter-spacing: 0; font-size: 12.5px; padding-top: 0; }
thead tr:first-child th[rowspan] { vertical-align: bottom; }
thead tr:first-child th[colspan] { text-align: center; border-bottom: 0; padding-bottom: 2px; }
th:first-child, td.l { text-align: left; }
tbody th { font-weight: 500; color: var(--ink); }
tbody td { color: var(--ink2); }
tbody tr + tr > * { border-top: 1px solid var(--line); }
tbody th.ind { padding-left: 30px; color: var(--mute); font-weight: 400; }
tr.grp th { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); background: var(--band); padding-top: 6px; padding-bottom: 6px; white-space: normal; }
tr.spec th { box-shadow: inset 3px 0 0 var(--gold); }
tr.ours > * { background: var(--green-soft); color: var(--ink); }
tr.ours th { font-weight: 650; box-shadow: inset 3px 0 0 var(--green); }
td b { font-weight: 700; color: var(--ink); }
td.na { color: var(--line2); }
.tblgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; align-items: start; }

/* ---------- charts ---------- */
.chart { margin-top: 26px; }
.chart picture { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px 12px; }
.chart img { width: 100%; }
.chart.wide { margin-top: 22px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; margin-top: 18px; }
.split.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.split .chart { margin-top: 0; }
.stack { display: grid; gap: 22px; }
.chart.small { max-width: 440px; }
.tbl.tight th, .tbl.tight td { padding-inline: 10px; }
.nw { white-space: nowrap; }
.points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.points li { color: var(--ink2); font-size: 15px; line-height: 1.6; padding-top: 14px; border-top: 2px solid var(--accent); }
.points b { color: var(--ink); display: block; margin-bottom: 4px; }

/* ---------- gallery ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--band); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; max-width: 100%; }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 550; color: var(--mute); white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.12), 0 0 0 1px var(--line2); }
.viewer { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.promptbar { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); min-height: 118px; }
.prompt { margin: 0 0 10px; font-size: 16.5px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prompt::before { content: "Prompt"; display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.meta span { font-size: 12.5px; color: var(--mute); background: var(--band); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.meta .count { margin-left: auto; background: transparent; border-color: transparent; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink2); }
.stage-scroll { overflow-x: auto; padding: 18px 22px 20px; -webkit-overflow-scrolling: touch; }
.stage { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(136px, 1fr)); gap: 16px; padding: 0 2px 4px; }
.cell { display: flex; flex-direction: column; min-width: 0; }
.cell figcaption { margin: 0 0 8px; min-height: 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; text-align: left; font-size: 13.5px; line-height: 1.25; color: var(--ink2); }
.mname { font-weight: 600; }
.msub { font-size: 12px; color: var(--mute); }
.badge { order: -1; align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; margin-bottom: 3px; }
.cell.specialist .badge { background: var(--gold-soft); color: var(--gold-ink); }
.cell.student .badge { background: var(--green-soft); color: var(--green-ink); }
.cell.student .mname { color: var(--green-ink); }
.tile { display: block; width: 100%; padding: 0; border: 0; background: var(--band); border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; box-shadow: 0 0 0 1px var(--line); transition: transform .15s; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover { transform: translateY(-2px); }
.cell.specialist .tile { box-shadow: 0 0 0 4px var(--gold); }
.cell.student .tile { box-shadow: 0 0 0 4px var(--green); }
.strip { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--band); }
.arrowbtn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); display: grid; place-items: center; transition: border-color .15s, color .15s; }
.arrowbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.arrowbtn:hover { border-color: var(--accent); color: var(--accent-ink); }
.thumbs { flex: 1; display: flex; gap: 8px; overflow-x: auto; padding: 4px; scrollbar-width: thin; position: relative; justify-content: safe center; }
.thumb { flex: none; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--line); opacity: .6; transition: opacity .15s, box-shadow .15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.fine { margin: 16px 0 0; font-size: 13.5px; color: var(--mute); max-width: 900px; }

/* ---------- related, bibtex, footer ---------- */
.relcard { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.relcard:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
.reltitle { font-weight: 650; font-size: 18px; }
.reltext { grid-column: 1; color: var(--ink2); font-size: 15px; line-height: 1.55; }
.relgo { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; color: var(--accent); }
.bib { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.bib pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink2); }
#copy-bib { position: absolute; top: 10px; right: 10px; border: 1px solid var(--line2); background: var(--band); border-radius: 8px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
#copy-bib:hover { border-color: var(--accent); color: var(--accent-ink); }
footer { padding: 34px 0 44px; border-top: 1px solid var(--line); text-align: center; }
footer p { margin: 0; color: var(--mute); font-size: 14px; }

/* ---------- lightbox ---------- */
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; color: var(--ink); }
dialog#lightbox::backdrop { background: rgba(8, 11, 15, .82); }
.lb-in { width: min(820px, 100vw - 24px); background: var(--card); border-radius: 16px; overflow: hidden; }
.lb-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
#lb-label { margin: 0; flex: 1; font-size: 14px; color: var(--mute); }
#lb-label b { color: var(--ink); font-weight: 650; }
#lb-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: var(--band); font-size: 20px; line-height: 1; }
.lb-imgwrap { position: relative; display: grid; place-items: center; background: var(--band); padding: 14px 58px; }
#lb-img { width: min(100%, 100vh - 230px); aspect-ratio: 1; border-radius: 8px; }
#lb-img.specialist { box-shadow: 0 0 0 5px var(--gold); }
#lb-img.student { box-shadow: 0 0 0 5px var(--green); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
#lb-prev { left: 10px; } #lb-next { right: 10px; }
#lb-prompt { margin: 0; padding: 12px 18px 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink2); max-height: 6.4em; overflow: auto; }


/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .wall { grid-template-columns: repeat(6, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tblgrid, .split, .split.rev { grid-template-columns: minmax(0, 1fr); }
  .points { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .wrap, .wrap.wide, .wrap.narrow { width: calc(100% - 32px); }
  section { padding: 52px 0; }
  .hero { padding: 40px 0 16px; }
  .navcta { display: none; }
  .sechead p { font-size: 16.5px; }
  .navlinks a { padding: 6px 8px; }
  .topnav-in { gap: 10px; }
  .panels, .twocol { grid-template-columns: 1fr; gap: 22px; }
  .wall { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .walltag { display: none; }
  .authors { font-size: 16.5px; gap: 2px 18px; }
  .teaser .plate { padding: 5px; }
  .promptbar { padding: 16px 16px 12px; min-height: 0; }
  .prompt { -webkit-line-clamp: 5; font-size: 15.5px; }
  .stage-scroll { padding: 14px 16px 16px; }
  .stage { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
  .cell figcaption { font-size: 12px; min-height: 46px; }
  .badge { font-size: 9.5px; padding: 1px 6px; }
  .cell.specialist .tile, .cell.student .tile { box-shadow: 0 0 0 3px var(--gold); }
  .cell.student .tile { box-shadow: 0 0 0 3px var(--green); }
  .seg { overflow-x: auto; scrollbar-width: none; }
  .seg button { padding: 7px 12px; font-size: 13.5px; }
  .strip { padding: 10px; gap: 6px; }
  .thumbs { justify-content: flex-start; }
  th, td, .tbl.tight th, .tbl.tight td { padding: 7px 8px; }
  th:first-child { padding-left: 14px; }
  tbody th { white-space: normal; }
  table { font-size: 13px; }
  thead th { font-size: 10.5px; letter-spacing: .02em; }
  .scrollx picture { overflow-x: auto; }
  .scrollx img { min-width: 660px; }
  h3.sub { margin-top: 44px; font-size: 20px; }
  .lb-imgwrap { padding: 10px; }
  .lb-nav { background: color-mix(in srgb, var(--card) 85%, transparent); }
  #lb-prev { left: 16px; } #lb-next { right: 16px; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tiles li { padding: 14px; }
  .num { font-size: 22px; }
  .lab { font-size: 13px; }
}

/* ---------- Flow-Map GRPO page ---------- */
.lede { margin: 30px auto 0; max-width: 760px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink2); }
.lede b { color: var(--ink); font-weight: 650; }
.num .arrow { margin: 0 .08em; }
.panels.two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
.panels figcaption { text-align: center; }
.mblock { max-width: 780px; margin: 44px auto 22px; }
.mblock:first-of-type { margin-top: 0; }
.anchors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0 0; }
.anchor { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 8px; min-width: 0; }
.anchor h4 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
.anchor .tag { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 1px 9px; vertical-align: 1px; }
.anchor p { font-size: 15px; margin: 0; }
.eq { overflow-x: auto; overflow-y: hidden; padding: 2px 0; font-size: 15px; }
.tbl.mid { max-width: 780px; }
.figplate { margin-top: 26px; }
.figplate .plate { padding: 8px; box-shadow: none; }
.figplate button.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.stage.pair { grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 22px; }
.cell.ours .badge { background: var(--green-soft); color: var(--green-ink); }
.cell.ours .mname { color: var(--green-ink); }
.cell.ours .tile { box-shadow: 0 0 0 4px var(--green); }
.kbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 0 22px 18px; }
.kbar .klab { font-size: 13.5px; color: var(--mute); font-weight: 550; }
.seg button.train::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-left: 6px; vertical-align: 3px; }
#lb-img.ours { box-shadow: 0 0 0 5px var(--green); }
.walltile { cursor: pointer; }
@media (max-width: 1000px) { .anchors { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .panels.two { grid-template-columns: 1fr; }
  .stage.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cell.ours .tile { box-shadow: 0 0 0 3px var(--green); }
  .kbar { padding: 0 16px 14px; }
  .mblock { margin-top: 32px; }
}
.lb-in.wide { width: min(1500px, 100vw - 24px); }
.lb-in.wide .lb-imgwrap { padding: 12px; }
.lb-in.wide #lb-img { width: 100%; aspect-ratio: auto; }
.lb-in.wide .lb-nav { display: none; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- visual-first layout: folded text and tables ---------- */
section.slim { padding: 8px 0 28px; }
#wall-section { padding-bottom: 36px; }
details.fold { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
section.slim details.fold { margin-top: 0; }
details.fold.mid { max-width: 860px; margin-inline: auto; }
details.fold > summary { list-style: none; cursor: pointer; padding: 14px 20px; font-weight: 650; font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
details.fold[open] > summary::before { transform: rotate(45deg); }
details.fold[open] > summary { border-bottom: 1px solid var(--line); }
details.fold > :not(summary) { margin-left: 20px; margin-right: 20px; }
details.fold > p, details.fold > h3 { font-size: 15px; }
details.fold > h3 { margin-top: 18px; font-size: 16px; }
details.fold > summary + * { margin-top: 18px; }
details.fold > :last-child { margin-bottom: 20px; }
details.fold .tblgrid { margin-top: 18px; }
details.fold table { font-size: 13.5px; }
details.fold th, details.fold td { padding: 6px 10px; }
.foldnote { margin-top: 22px; font-size: 14.5px; color: var(--mute); }
#abstract details.fold p { font-size: 15.5px; line-height: 1.7; }
#method .panels + .panels { margin-top: 22px; }
#results .chart.wide + .chart.wide, #results .chart.wide + .figplate { margin-top: 26px; }

/* ---------- classic academic project-page scale (overrides) ---------- */
:root { --sans: "Noto Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --head: "Google Sans", "Noto Sans", system-ui, sans-serif; --r: 10px; --nav-h: 0px; }
body { font-size: 15px; line-height: 1.6; }
.wrap { width: min(980px, 100% - 40px); }
.wrap.wide { width: min(1080px, 100% - 40px); }
.wrap.narrow { width: min(760px, 100% - 40px); }
h1, h2, h3, .authors, .btn, .seg button, details.fold > summary, .num { font-family: var(--head); }
.hero { padding: 44px 0 16px; }
h1.ptitle { max-width: 900px; font-size: clamp(24px, 3.3vw, 38px); font-weight: 500; line-height: 1.22; letter-spacing: -.005em; }
.authors { margin: 20px 0 2px; font-size: 17px; font-weight: 400; gap: 2px 22px; }
.authors a { color: var(--accent-ink); border-bottom: 0; }
.affil { font-size: 15px; margin-top: 4px; }
.links { margin-top: 18px; gap: 8px; }
.btn { height: 36px; padding: 0 16px; font-size: 14px; font-weight: 500; background: #363636; border-color: #363636; color: #fff; }
.btn:hover { background: #222; border-color: #222; color: #fff; }
.btn svg { width: 15px; height: 15px; }
.lede { margin-top: 22px; max-width: 720px; font-size: 16px; line-height: 1.55; }
.teaser { margin-top: 26px; }
.teaser .plate { padding: 6px; box-shadow: none; }
figcaption { font-size: 13px; margin-top: 9px; }
section { padding: 40px 0; }
section.stats { padding: 12px 0 0; }
section.slim { padding: 4px 0 8px; }
#wall-section { padding: 36px 0 24px; }
h2 { font-size: 26px; font-weight: 500; letter-spacing: 0; text-align: center; margin-bottom: 10px; }
h3 { font-size: 16.5px; font-weight: 500; }
.sechead { max-width: 720px; margin: 0 auto 22px; text-align: center; }
.sechead p { font-size: 15px; color: var(--ink2); }
.tiles { gap: 10px; max-width: 860px; margin-inline: auto; }
.tiles li { padding: 12px 14px 11px; gap: 3px; text-align: center; align-items: center; }
.num { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.lab { font-size: 12.5px; line-height: 1.35; }
.wall { gap: 6px; }
.walltile { border-radius: 6px; }
.controls { justify-content: center; margin-bottom: 14px; gap: 8px 12px; }
.seg { padding: 3px; }
.seg button { padding: 5px 13px; font-size: 13.5px; font-weight: 500; }
.viewer { border-radius: 12px; box-shadow: none; }
.promptbar { padding: 14px 18px 12px; min-height: 96px; }
.prompt { font-size: 14.5px; margin-bottom: 8px; }
.prompt::before { font-size: 10.5px; }
.meta span { font-size: 12px; }
.stage-scroll { padding: 14px 18px 16px; }
.stage.pair { grid-template-columns: repeat(2, minmax(0, 360px)); gap: 18px; }
.cell figcaption { font-size: 13px; min-height: 34px; margin-bottom: 6px; }
.cell.ours .tile { box-shadow: 0 0 0 3px var(--green); }
.thumb { width: 46px; height: 46px; border-radius: 6px; }
.arrowbtn { width: 32px; height: 32px; }
.strip { padding: 9px 12px; }
.fine { font-size: 12.5px; margin: 12px auto 0; text-align: center; max-width: 820px; }
.kbar { padding: 0 18px 14px; }
.kbar .klab { font-size: 13px; }
.panels { gap: 14px; }
.panels figcaption { font-size: 12.5px; }
.panels.two { max-width: 720px; }
.chart picture { padding: 14px 12px 8px; }
#results .chart, #results .figplate { max-width: 900px; margin-inline: auto; }
#results .chart figcaption, #results .figplate figcaption { text-align: center; }
details.fold { margin-top: 22px; }
details.fold > summary { padding: 10px 16px; font-size: 14.5px; font-weight: 500; }
details.fold > p, details.fold > h3, #abstract details.fold p { font-size: 14.5px; line-height: 1.65; }
#abstract details.fold p { text-align: justify; }
details.fold table { font-size: 13px; }
.cap { font-size: 12.5px; padding: 10px 12px 9px; }
thead th { font-size: 11px; }
.anchor h4 { font-size: 15px; font-weight: 500; }
.anchor p, .eq { font-size: 14px; }
.relcard { padding: 14px 18px; }
.reltitle { font-size: 16px; font-weight: 500; }
.reltext { font-size: 14px; }
.bib pre { font-size: 12.5px; padding: 16px 18px; }
footer { padding: 24px 0 30px; }
footer p { font-size: 13px; }
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  section { padding: 32px 0; }
  .hero { padding: 28px 0 10px; }
  h2 { font-size: 22px; }
  .authors { font-size: 15.5px; }
  .stage.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .num { font-size: 17px; }
}
