:root {
  --ink: #20242c;
  --muted: #626975;
  --paper: #ffffff;
  --panel: #f6f7f8;
  --line: #dfe3e6;
  --accent: #526e85;
  --link: #526e85;
  --accent-soft: #edf1f4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img, video { display: block; width: 100%; height: auto; }
p, figure, h1, h2, h3 { margin: 0; }
p { line-height: 1.75; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }
.wrap { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: inherit; font-size: 24px; font-weight: 700; letter-spacing: 1.1px; line-height: 1; }
.brand-symbol { flex: 0 0 36px; width: 36px; height: 36px; }
.header nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.header .wordmark:hover { text-decoration: none; }
.header nav a { padding-block: 7px; }
.header nav a[aria-current] { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.eyebrow { font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
h1, h2 { font-family: inherit; font-weight: 600; }
h1 { font-size: clamp(34px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -1.1px; }
h2 { font-size: 29px; line-height: 1.2; letter-spacing: -.4px; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.4; }
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; padding-block: 44px 36px; }
.intro .project-title { font-size: clamp(35px, 4vw, 49px); font-weight: 700; line-height: 1.14; letter-spacing: -1.4px; max-width: 540px; }
.project-title .title-line { display: block; }
.intro-copy p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.intro-copy p + p { font-size: 14px; }
.text-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #a9b8c4; color: var(--link); font-size: 13px; font-weight: 600; display: inline-block; line-height: 1.8; }
.text-link span { padding-left: 10px; }
.contact-lab { border: 1px solid var(--line); }
.lab-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 10px 12px; }
.segmented { display: flex; gap: 4px; }
.segmented button { border: 0; padding: 10px 12px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.2; }
.segmented button[aria-pressed="true"] { background: var(--panel); color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.scenes { flex-wrap: wrap; }
.scenes button { display: flex; gap: 10px; align-items: center; }
.scenes button span { font-weight: 600; }
.compare-hint { font-size: 11px; color: var(--muted); }
.lab-body { display: grid; grid-template-columns: minmax(0, 720px) minmax(260px, 1fr); }
.video-panel { min-width: 0; background: var(--panel); }
.comparison-stage { position: relative; aspect-ratio: 1.6; overflow: hidden; background: #303037; }
.decode-source { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
#comparison-canvas { display: block; width: 100%; height: 100%; }
.comparison-divider { position: absolute; left: var(--split); top: 0; bottom: 0; border-left: 2px solid #fff; pointer-events: none; }
.comparison-divider > span { position: absolute; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 30px; height: 30px; background: #fff; color: var(--ink); border-radius: 50%; box-shadow: 0 1px 6px #0005; font-size: 17px; }
.comparison-slider { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.comparison-stage:focus-within { outline: 3px solid var(--accent); outline-offset: -3px; }
.playback-controls { display: flex; gap: 16px; align-items: center; padding: 9px 12px; background: var(--panel); }
.playback-controls button { border: 1px solid #b7b5c3; background: var(--paper); color: var(--ink); padding: 6px 10px; font-size: 11px; min-width: 54px; }
.playback-controls input { flex: 1; min-width: 50px; accent-color: var(--accent); }
.observation { padding: 30px 26px; align-self: center; }
.observation h2 { font-size: 26px; }
.observation > p:not(.eyebrow) { font-size: 13px; color: var(--muted); margin-top: 18px; }
.observation .legend { font-size: 11px !important; line-height: 1.65; padding-top: 18px; border-top: 1px solid var(--line); margin-bottom: 18px; }
.contact-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff0000; margin-right: 4px; }
.recording-note, #media-status:not(:empty) { padding: 12px; font-size: 12px; color: var(--muted); }
.explanation { padding-block: 48px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.method-grid article { border-top: 1px solid var(--line); padding-top: 22px; }
.method-grid p { font-size: 14px; color: var(--muted); margin-top: 16px; }
.method-grid .text-link { margin-top: 18px; }
.use-section { background: var(--panel); border-block: 1px solid var(--line); padding-block: 40px; }
.use-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.use-grid > div > p { color: var(--muted); font-size: 14px; margin-top: 18px; }
.button { display: inline-flex; align-items: center; gap: 32px; padding: 12px 16px; color: #ffffff; background: var(--accent); font-size: 13px; margin-top: 22px; }
.button:hover { background: #40576a; text-decoration: none; }
.use-grid .license-note { font-size: 11px; }
.code-window { background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.code-title { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); }
.code-title a { color: var(--link); }
pre { margin: 0; overflow-x: auto; line-height: 1.8; tab-size: 2; }
.code-window pre { padding: 18px; font-size: 12px; }
.research { padding-block: 48px; display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.research .text-link { margin-top: 16px; }
.paper-list > a { display: block; position: relative; padding: 20px 28px 20px 0; border-top: 1px solid var(--line); }
.paper-list > a:first-child { padding-top: 0; border-top: 0; }
.paper-list span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.paper-list h3 { font-size: 17px; line-height: 1.5; }
.paper-list .paper-arrow { position: absolute; right: 0; top: 22px; font-size: 17px; }
.footer { padding-block: 26px 32px; border-top: 1px solid var(--line); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.docs-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer p { font-size: 11px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a:not(.wordmark) { font-size: 12px; }
.footer-contributors { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-contributors strong { color: var(--ink); margin-right: 12px; }
.skip { position: absolute; top: -80px; left: 16px; padding: 12px; background: var(--paper); z-index: 10; }
.skip:focus { top: 12px; }
.docs-layout { display: grid; grid-template-columns: 176px minmax(0, 1fr) 140px; gap: 36px; align-items: start; padding-block: 40px 64px; }
.docs-nav, .docs-toc { position: sticky; top: 24px; }
.docs-nav summary { font-size: 12px; font-weight: 600; margin-bottom: 18px; }
.docs-nav nav { display: flex; flex-direction: column; gap: 2px; }
.docs-nav .nav-group { margin: 20px 0 6px; padding-left: 10px; font-size: 11px; font-weight: 600; letter-spacing: .2px; color: var(--muted); }
.docs-nav .nav-group:first-child { margin-top: 0; }
.docs-nav a { font-size: 12px; line-height: 1.5; padding: 8px 10px; border-left: 2px solid transparent; }
.docs-nav a[aria-current] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.docs-toc .eyebrow { margin-bottom: 12px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-toc > .toc > ul > li > a { display: none; }
.docs-toc li a { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); padding: 6px 0; }
.docs-release-notes .docs-toc > .toc > ul > li > a { display: block; }
.docs-release-notes .release-toc-version details > summary { cursor: pointer; color: var(--muted); }
.docs-release-notes .release-toc-version details > summary a { display: inline-block; color: var(--ink); font-weight: 600; }
.docs-release-notes .release-toc-version > a { color: var(--ink); font-weight: 600; }
.docs-release-notes .release-toc-version ul { margin: 2px 0 8px 4px; padding-left: 12px; border-left: 1px solid var(--line); }
.docs-release-notes .release-toc-version ul a { padding: 4px 0; }
.prose { min-width: 0; text-wrap: pretty; }
.prose h1 { font-size: 36px; margin-bottom: 24px; }
.prose h2 { font-size: 26px; margin: 36px 0 16px; }
.prose h3 { font-size: 20px; margin: 28px 0 14px; }
.prose p, .prose li { font-size: 15px; line-height: 1.8; }
.prose p { margin-block: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin-block: 18px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose pre { background: var(--panel); padding: 18px; margin-block: 22px; font-size: 12px; border: 1px solid var(--line); border-left: 3px solid #bec9d1; }
.prose :not(pre) > code { padding: 2px 4px; background: var(--panel); overflow-wrap: anywhere; }
.prose table { display: table; width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; line-height: 1.7; margin-block: 24px; }
.prose td, .prose th { text-align: left; vertical-align: top; overflow-wrap: anywhere; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--panel); font-weight: 600; }
.docs-overview .prose th:nth-child(1) { width: 22%; }
.docs-overview .prose th:nth-child(2) { width: 58%; }
.docs-overview .prose th:nth-child(3) { width: 20%; }
.docs-installation .prose th:nth-child(1) { width: 34%; }
.docs-installation .prose th:nth-child(2) { width: 66%; }
.docs-examples .prose th:nth-child(1) { width: 36%; }
.docs-examples .prose th:nth-child(2),
.docs-examples .prose th:nth-child(3) { width: 32%; }
.docs-model-construction .prose th:nth-child(1) { width: 30%; }
.docs-model-construction .prose th:nth-child(2) { width: 70%; }
.docs-model-construction .prose table:has(th:nth-child(3)) th:nth-child(1) { width: 28%; }
.docs-model-construction .prose table:has(th:nth-child(3)) th:nth-child(2) { width: 22%; }
.docs-model-construction .prose table:has(th:nth-child(3)) th:nth-child(3) { width: 50%; }
.docs-contact-solvers .prose th:nth-child(1) { width: 36%; }
.docs-contact-solvers .prose th:nth-child(2) { width: 64%; }
.docs-contact-solvers .prose td:first-child code { white-space: nowrap; }
.docs-api-reference .prose th:nth-child(1) { width: 36%; }
.docs-api-reference .prose th:nth-child(2) { width: 64%; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 22px 0; padding-left: 18px; }
.page-navigation { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; font-size: 13px; }
.page-navigation a { color: var(--link); text-decoration: none; }
.page-navigation span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.page-next { margin-left: auto; text-align: right; }
@media(max-width:1000px) {
  .docs-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 30px; }
  .docs-toc { display: none; }
  .intro { gap: 32px; }
  .observation { padding: 20px; }
}
@media(max-width:760px) {
  .wrap { width: calc(100% - 40px); }
  .intro { grid-template-columns: 1fr; gap: 20px; padding-block: 32px; }
  .intro-copy { max-width: 560px; }
  .lab-body { grid-template-columns: 1fr; }
  .observation { padding: 22px; }
  .observation .legend { margin-top: 14px; padding-top: 14px; }
  .method-grid, .use-grid { gap: 28px; }
  .research { grid-template-columns: 1fr; gap: 28px; }
  .header nav { gap: 16px; }
  .lab-toolbar { flex-wrap: wrap; gap: 8px; }
  .compare-hint { padding-left: 12px; }
}
@media(max-width:580px) {
  .wrap { width: calc(100% - 32px); }
  .header { flex-direction: column; align-items: stretch; padding-block: 20px; gap: 18px; }
  .header nav { flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; font-size: 12px; }
  .wordmark { font-size: 23px; }
  h1 { font-size: 34px; }
  .project-title .title-line { display: inline; }
  .intro-copy p { font-size: 14px; }
  .scenes { width: 100%; }
  .scenes button { flex: 1 1 calc(50% - 4px); justify-content: center; padding-inline: 8px; }
  .compare-hint { font-size: 10px; }
  .method-grid, .use-grid { grid-template-columns: 1fr; }
  .explanation, .research { padding-block: 36px; }
  .use-section { padding-block: 32px; }
  .footer-main { flex-wrap: wrap; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 24px 40px; }
  .docs-nav { position: static; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .docs-nav summary { margin-bottom: 8px; }
  .docs-nav nav { display: grid; grid-template-columns: 1fr 1fr; }
  .docs-nav .nav-group { grid-column: 1 / -1; }
  .prose h1 { font-size: 32px; }
  .docs-contact-solvers .prose td:first-child code { white-space: normal; }
}
@media(max-width:380px) {
  .header nav { justify-content: flex-start; }
  .scenes button { flex-basis: 100%; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
pre code { font-size: 1em; }
.examples-heading { border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 20px; }
.examples-heading h2 { font-size: 26px; }
.examples-heading p { font-size: 13px; color: var(--muted); margin-top: 8px; }
