:root {
  color: #1f2328;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --accent: #6351b5;
  --muted: #626570;
  --rule: #e3e3eb;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #fff; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-nav, .site-footer {
  width: min(960px, calc(100% - 48px));
  margin-inline: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(14px, 3vw, 32px);
  min-height: 78px;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { text-decoration: none; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: inherit;
  font-weight: 750;
  font-size: 19px;
  white-space: nowrap;
  letter-spacing: -.03em;
}
.release-version {
  flex: 0 0 auto;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}
.site-nav nav {
  display: flex;
  flex: 1 0 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(10px, 2.2vw, 22px);
  font-size: 14px;
  white-space: nowrap;
}
.site-nav nav a { color: var(--muted); }
.site-nav a[aria-current] { color: var(--accent); font-weight: 650; }
.release-panel[hidden] { display: none !important; }
.release-panel > :first-child { margin-top: 0; }
.release-unavailable { color: var(--muted); }

.readme {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 64px;
  font-size: 16px;
  line-height: 1.7;
}
.readme > :first-child { margin-top: 0; }
.readme h1, .readme h2 { padding-bottom: .3em; border: 0; }
.readme h1 { font-size: 2.25rem; letter-spacing: -.035em; line-height: 1.2; }
.readme h2 { margin-top: 2em; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.35; }
.readme h3 { margin-top: 1.45em; font-size: 1.25em; line-height: 1.35; }
.readme :is(h1, h2, h3, h4) { scroll-margin-top: 24px; }
.readme p { margin: 1em 0; }
.readme img { max-width: 100%; height: auto; }
.readme-video { margin: 1.25rem 0; }
.readme-video video {
  display: block;
  width: 100%;
  max-height: min(75vh, 760px);
  border-radius: 10px;
  background: #05070b;
}
.readme-video figcaption { margin-top: .45rem; color: var(--muted); font-size: .88rem; }
.readme blockquote {
  margin-left: 0;
  border-left: 4px solid var(--rule);
  padding-left: 1em;
  color: var(--muted);
}
.readme code, .readme pre, .readme textarea {
  font: 14px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.readme > pre {
  overflow: auto;
  border-radius: 6px;
  padding: 16px;
  background: #f6f8fa;
}
.readme > pre.vkf-static { color: #e6edf3; background: #0d1117; }
.readme :not(pre) > code { border-radius: 4px; padding: .15em .35em; background: #eff1f3; }
.table-scroll { margin-block: 20px; overflow-x: auto; }
.readme table { width: 100%; border-collapse: collapse; font-size: 14px; }
.readme th, .readme td { border: 1px solid var(--rule); padding: 6px 13px; text-align: left; }
.readme th { white-space: nowrap; }
.readme tr:nth-child(2n) { background: #f6f8fa; }
.benchmark-table table { width: max-content; min-width: max(100%, 62rem); }
.benchmark-table th, .benchmark-table td { min-width: 8rem; vertical-align: top; white-space: nowrap; }
.benchmark-table th:first-child, .benchmark-table td:first-child { min-width: 18rem; }

.readme-example { margin: 16px 0; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.readme-example-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-bottom: 1px solid var(--rule);
  padding: 0 10px 0 14px;
  background: #f6f8fa;
  color: var(--muted);
  font: 600 12px/1 sans-serif;
}
.readme-example-play {
  min-height: 34px;
  margin-block: 5px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 7px 17px;
  color: #fff;
  background: var(--accent);
  font: 600 12px/1 sans-serif;
  cursor: pointer;
}
.readme-example-play:disabled { cursor: wait; opacity: .65; }
.readme-example-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.readme-example-layout.has-result { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); }
.readme-example-workspace { min-width: 0; }
.readme-example-editor { position: relative; min-height: 100px; overflow: hidden; background: #0d1117; }
.readme-example-highlight, .readme-example-source {
  width: 100%;
  min-height: 100px;
  margin: 0;
  border: 0;
  padding: 16px;
  overflow: auto;
  white-space: pre;
  tab-size: 4;
  font: 16px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.readme-example-highlight { position: absolute; inset: 0; color: #e6edf3; pointer-events: none; overflow: hidden; }
.readme-example-source {
  position: relative;
  z-index: 1;
  display: block;
  max-height: 420px;
  resize: vertical;
  color: transparent;
  caret-color: #e6edf3;
  background: transparent;
  outline: none;
  -webkit-text-fill-color: transparent;
}
.readme-example-source::selection { color: transparent; background: #264f78; -webkit-text-fill-color: transparent; }
.readme-example-terminal { border-top: 1px solid #30363d; padding: 10px 16px 14px; color: #e6edf3; background: #010409; }
.readme-example-terminal > span { color: #8b949e; font: 600 11px/1 sans-serif; text-transform: uppercase; }
.readme-example-output { margin: 8px 0 0; overflow: auto; white-space: pre-wrap; }
.readme-example-result { min-height: 220px; border-left: 1px solid var(--rule); padding: 16px; background: transparent; }
.readme-example-view-shell { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); gap: 12px; }
.readme-example-view-selector { display: flex; flex-direction: column; gap: 6px; padding-right: 10px; border-right: 1px solid var(--rule); }
.readme-example-view-selector__label { padding: 2px 10px 4px; color: var(--muted); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.readme-example-view-selector button { min-height: 36px; border: 1px solid var(--rule); border-radius: 6px; padding: 7px 10px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.readme-example-view-selector button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.readme-example-retained-layer { position: relative; width: 100%; min-height: 328px; overflow: hidden; }
.readme-example-retained-layer > .vf-frame { inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; clip-path: none; }
.readme-example-retained-layer > .vf-frame[hidden] { display: none !important; }
.readme-example-retained-layer .vf-frame__body { padding: 0; background: transparent; }
.readme-example-retained-layer canvas { background: transparent; touch-action: none; }
.readme-example-enlarge, .readme-result-close {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.readme-example-enlarge { margin-top: 8px; }
.readme-result-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border: 0;
  color: #e6edf3;
  background: #0d1117;
  overflow: hidden;
}
.readme-result-dialog[open] { display: flex; flex-direction: column; gap: 8px; }
.readme-result-dialog::backdrop { background: #010409; }
.readme-result-close { align-self: flex-end; flex: 0 0 auto; }
.readme-result-dialog > .readme-example-retained-layer { flex: 1; min-height: 0; }
.readme-result-dialog > .readme-example-view-shell { flex: 1; min-height: 0; width: 100%; }
.readme-result-dialog > .readme-example-view-shell > .readme-example-retained-layer { min-height: 0; }

.vf-token.comment { color: #8b949e; }
.vf-token.string { color: #a5d6ff; }
.vf-token.number { color: #79c0ff; }
.vf-token.keyword, .vf-token.operator { color: #ff7b72; }
.vf-token.boolean { color: #7ee787; }
.vf-token.binding, .vf-token.function { color: #d2a8ff; }
.vf-token.builtin, .vf-token.type { color: #ffa657; }
.vf-token.dimension { color: var(--vf-dimension-color, #56d4dd); font-weight: 650; }
.vf-token.anonymous-dimension { color: #8b949e; font-style: italic; }
.vf-token.punctuation { color: #c9d1d9; }

.landing .readme { max-width: 720px; padding: 66px 0 62px; font-size: 18px; }
.landing .readme h1 { margin-bottom: 20px; font-size: clamp(38px, 7vw, 58px); }
.landing .readme > p:first-of-type { font-size: 23px; line-height: 1.4; letter-spacing: -.025em; }
.landing .readme > p:last-child { color: var(--muted); font-size: 14px; }
.site-footer { padding: 24px 0 32px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.contents { width: min(860px, calc(100% - 48px)); margin: 28px auto -18px; color: var(--muted); font-size: 14px; }
.contents summary { cursor: pointer; }
.contents nav { display: grid; gap: 4px; margin: 12px 0; }
.skip-link { position: absolute; top: -70px; left: 20px; z-index: 5; padding: 10px; background: #fff; }
.skip-link:focus { top: 12px; }

@media (prefers-color-scheme: dark) {
  :root { color: #e6edf3; background: #0d1117; --accent: #b7a6fa; --muted: #a5a8b6; --rule: #2a2b36; }
  body { background: #0d1117; }
  .readme > pre, .readme tr:nth-child(2n), .readme-example-bar { background: #161b22; }
  .readme :not(pre) > code { background: #21262d; }
  .readme-example-play { color: #fff; background: #7962c8; border-color: #7962c8; }
  .skip-link { background: #0d1117; }
}

@media (max-width: 760px) {
  .readme { width: min(100% - 32px, 860px); padding-top: 24px; }
  .readme-example-layout.has-result { grid-template-columns: 1fr; }
  .readme-example-result { border-top: 1px solid var(--rule); border-left: 0; }
}

@media (max-width: 620px) {
  .site-nav { display: grid; grid-template: "brand release" auto "nav nav" auto / minmax(0, 1fr) auto; gap: 8px 12px; min-height: 0; padding-block: 12px; }
  .site-nav .wordmark { grid-area: brand; align-self: center; font-size: 17px; }
  .site-nav .release-version { grid-area: release; align-self: center; justify-self: end; padding: 2px 6px; font-size: 11px; }
  .site-nav nav { grid-area: nav; justify-content: space-between; gap: 8px; width: 100%; font-size: 12px; }
  .site-nav, .site-footer, .readme, .contents { width: calc(100% - 24px); }
  .landing .readme { padding: 36px 0 40px; font-size: 17px; }
  .landing .readme > p:first-of-type { font-size: 21px; }
  .readme h1 { font-size: 30px; }
}

.release-unavailable[aria-disabled="true"]{color:#888;opacity:.65;cursor:not-allowed;text-decoration:none}
