/* Research pages are ordinary HTML. Add text and media above the citation. */
.paper-wrap { width: min(100% - 4rem, 860px); margin: 44px auto 80px; }
.paper-heading { padding: 32px 0 30px; border-bottom: 2px solid var(--green); }
.paper-heading h1 { font-size: clamp(2.15rem, 4.3vw, 3.35rem); line-height: 1.18; letter-spacing: -.035em; margin: 20px 0; overflow-wrap: anywhere; }
.paper-authors { color: var(--muted); font-size: 16px; }
.paper-heading .text-links { gap: 10px 24px; }
.paper-section { margin-top: 28px; }
.paper-section h2 { font-size: 25px; margin: 0 0 12px; }
.paper-section p { margin: 14px 0; }
.paper-section ul { padding-left: 22px; }
.paper-section li { margin-block: 10px; }
.paper-equation { padding: 22px 18px; background: #eef4f8; border-left: 3px solid var(--green); margin: 24px 0; overflow-x: auto; }
.paper-equation .katex-display { margin: 0; }
.paper-section figure { margin: 24px 0; }
.paper-section figure img, .paper-section video { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.paper-section video { width: 100%; background: #18251e; border-radius: 4px; }
.paper-section figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.paper-note { font-size: 14px; color: var(--muted); }
.citation { background: #edf3f8; padding: 26px; border-top: 3px solid var(--green); margin-top: 32px; border-radius: 3px; }
.citation h2 { margin-bottom: 16px; }
.citation pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 20px 0; padding: 0; border: 0; background: transparent; font-size: 13px; line-height: 1.75; }
.citation button, .simulation button { min-height: 44px; padding: 9px 16px; font: inherit; font-size: 14px; border: 1px solid var(--green); background: var(--green); color: white; cursor: pointer; border-radius: 3px; }
.citation-status { font-size: 14px; color: var(--green); margin: 0 !important; }
.simulation { padding: 24px; background: #f0f3ef; border: 1px solid var(--line); border-radius: 4px; }
.simulation canvas { display: block; width: 100%; height: 280px; }
.simulation-controls { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 16px; }
.simulation-controls label { display: grid; gap: 4px; flex: 1; min-width: 160px; font-size: 14px; }
.simulation-controls input { min-height: 44px; width: 100%; accent-color: var(--green); }
.simulation-legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.simulation-legend span:first-child { color: #165f9e; }
.simulation-legend span:last-child { color: #965327; }
@media (max-width: 600px) {
  .paper-wrap { width: calc(100% - 2.5rem); margin-top: 30px; }
  .paper-heading { padding-top: 26px; }
  .citation, .simulation { padding: 20px 16px; }
  .paper-equation { padding-inline: 10px; }
  .simulation canvas { height: 240px; }
}
