:root {
  color-scheme: light;
  --text: #363636;
  --muted: #686868;
  --link: #2469a0;
  --surface: #f6f6f6;
  --border: #d6d6d6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 5px; }
.container { width: min(100% - 3rem, 960px); margin-inline: auto; }
.prose { max-width: 760px; margin-inline: auto; }
.hero { padding-block: 4.5rem 2.5rem; text-align: center; }
.venue { margin: 0 0 1rem; color: var(--muted); }
h1 { margin: 0 0 1.5rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; letter-spacing: -0.035em; font-weight: 650; }
h1 span { font-weight: 500; }
h3 { margin: 2.25rem 0 0.75rem; font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
.equation { margin: 1.25rem 0; padding: 0.25rem 0; overflow-x: auto; overflow-y: hidden; font-size: 1.05rem; }
.equation mjx-container[display="true"] { margin: 0.5em 0 !important; }
mjx-container { line-height: normal; }
h2 { margin: 0 0 1.5rem; text-align: center; font-size: 2rem; line-height: 1.25; font-weight: 600; }
.authors { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--link); }
.affiliations { margin: 0; }
.author-note { margin: 0.5rem 0 1.5rem; color: var(--muted); font-size: 0.9rem; }
sup { font-size: 0.7em; }
.resources { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.resources a, .resources .disabled { padding: 0.5rem 1.2rem; border: 0; border-radius: 2rem; background: var(--text); color: #fff; font: inherit; font-size: 0.95rem; }
.resources .disabled { opacity: 0.55; cursor: not-allowed; }
.resources a:hover { background: #505050; text-decoration: none; }
.section { padding-block: 3.5rem; }
.shaded { background: var(--surface); }
.teaser { padding-bottom: 3rem; }
figure { margin: 1.75rem 0 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
.figure-placeholder { display: grid; place-items: center; width: 100%; min-height: 260px; aspect-ratio: 16 / 6; padding: 1.5rem; border: 1px dashed var(--border); border-radius: 4px; background: #fafafa; color: var(--muted); text-align: center; }
figcaption { margin-top: 0.75rem; text-align: center; color: var(--muted); }
.placeholder { color: var(--muted); }
pre { padding: 1.25rem 1.5rem; overflow-x: auto; background: #ffffff; color: #1f2328; border: 1px solid #d1d9e0; border-radius: 6px; font-size: 0.85rem; line-height: 1.55; }
pre, code { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }
/* GitHub Light syntax colors for the static token spans in code blocks. */
.code .k, .code .kn, .code .ow, .code .sa { color: #cf222e; }
.code .s, .code .s1, .code .s2 { color: #0a3069; }
.code .c, .code .c1 { color: #59636e; }
.code .kc, .code .mi, .code .mf, .code .o, .code .nb, .code .si, .code .se { color: #0550ae; }
.code .nn { color: #1f2328; }
code { font-size: 0.92em; }
.note { color: var(--muted); font-size: 0.95rem; }
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
table { width: 100%; max-width: 760px; margin-inline: auto; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; }
th { font-weight: 600; }
.demo { display: block; width: 100%; height: 820px; margin-top: 1.5rem; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.footer { padding: 2rem 1.5rem; background: var(--surface); text-align: center; font-size: 0.85rem; color: var(--muted); }
.footer p { max-width: 760px; margin: auto; }
.skip-link { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.5rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 600px) {
  .container { width: calc(100% - 2rem); }
  .hero { padding-top: 3rem; }
  .section { padding-block: 2.5rem; }
  .figure-placeholder { min-height: 180px; }
  .demo { height: 640px; }
}
