:root {
  --text: #303039;
  --muted: #62626e;
  --primary: #6552a3;
  --border: #dcdde3;
  --surface: #f5f5f7;
  --reading-width: 660px;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.65 "Noto Sans", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 14px; }
sup { font-size: .66em; line-height: 0; }
strong, b { font-weight: 600; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 30; background: #fff; padding: 8px 12px; }
.skip-link:focus { top: 8px; }
.topbar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #ecedf1; }
.topbar-inner { max-width: 1000px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 16px; min-height: 48px; }
.brand { font-size: 14px; color: var(--text); font-weight: 600; white-space: nowrap; }
main { max-width: 1000px; margin: 0 auto; padding: 0 20px 36px; }
main > section { max-width: var(--reading-width); margin: 0 auto; padding: 44px 0 8px; }
main > section:not(.hero) { position: relative; }
main > section:not(.hero)::before { content: ""; position: absolute; top: 20px; left: 0; right: 0; border-top: 1px solid #ececf0; }
main > .hero { padding: 0; }
.hero-inner { padding: 52px 0 28px; text-align: center; }
h1 { margin: 0 auto 18px; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.paper-subtitle { margin: 0 auto 24px; font-size: 21px; font-weight: 500; line-height: 1.4; text-wrap: balance; }
.authors { margin: 0 auto 4px; font-size: 17px; line-height: 1.7; }
.authors > span { display: inline-block; white-space: nowrap; }
.affiliation { margin: 0 auto 6px; color: var(--muted); font-size: 14.5px; }
.notes { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.venue-line { margin: 0 0 22px; font-size: 19px; font-weight: 700; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border: 1px solid var(--text); border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.2; min-height: 36px; }
.button:hover { color: #fff; background: #444450; text-decoration: none; }
.button.secondary { background: #fff; color: var(--text); }
.button.secondary:hover { background: var(--surface); }
.tldr { margin: 64px 0 0; text-align: left; }
.plain-summary { margin: 30px 0 0; text-align: left; }
.tldr p, .plain-summary p:last-child { margin-bottom: 0; }
h2 { margin: 0 0 14px; font-size: 24px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
h3 { margin: 30px 0 10px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.figure { width: 100%; margin: 24px auto; }
.figure > a { display: block; cursor: zoom-in; }
.figure img { width: 100%; }
.figure.compact { max-width: 500px; }
.figure.medium { max-width: 550px; }
.figure.geometry > a { max-width: 360px; margin: 0 auto; }
/* Stack the two halves of the original wide pipeline at readable sizes. */
.pipeline-panels { display: grid; justify-items: center; gap: 24px; }
.pipeline-panels a { position: relative; display: block; overflow: hidden; width: 100%; cursor: zoom-in; }
.pipeline-panels img { position: absolute; top: 0; max-width: none; height: 100%; }
.pipeline-generation { max-width: 560px; aspect-ratio: 1743 / 1054; }
.pipeline-generation img { left: 0; width: 178.141%; }
.pipeline-extraction { max-width: 440px; aspect-ratio: 1362 / 1054; }
.pipeline-extraction img { right: 0; width: 227.974%; }
figcaption, .caption, .note { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.note { margin-top: 22px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 20px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
caption { text-align: left; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
th, td { padding: 9px 10px; border-bottom: 1px solid #ececf0; text-align: right; }
thead th { background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; vertical-align: bottom; }
th:first-child { text-align: left; }
tbody th { font-weight: 400; }
.scale { font-size: 12px; font-weight: 400; white-space: nowrap; }
.diversity-table { min-width: 560px; }
.citation-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.citation-actions { display: flex; gap: 16px; font-size: 13px; }
.citation-actions button { border: 0; padding: 0; background: none; color: var(--primary); font: inherit; cursor: pointer; }
.citation-actions button:hover { text-decoration: underline; }
pre { margin: 0; padding: 18px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
#copy-status { min-height: 1.55em; }
@media (max-width: 760px) {
  .hero-inner { padding-top: 36px; }
  .paper-subtitle { font-size: 19px; }
}
@media (max-width: 480px) {
  main, .topbar-inner { padding-left: 18px; padding-right: 18px; }
  .topbar-inner { gap: 8px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .paper-subtitle { font-size: 18px; margin-bottom: 20px; }
  .authors { font-size: 15px; }
  .affiliation { font-size: 13px; }
  .notes { font-size: 12px; }
  .venue-line { font-size: 17px; }
  .button { padding: 8px 13px; }
  .tldr { margin-top: 44px; }
  table { font-size: 12px; }
  th, td { padding: 8px; }
  thead th { font-size: 12px; }
}
@media print {
  .hero-inner { padding-top: 0; }
  .figure { break-inside: avoid; }
  .citation-actions, #copy-status { display: none; }
}
