:root,:root[data-theme="light"]{color-scheme:light;--page-background:#ffffff;--page-text:#1f2328;--user:#0b6b78;--accent:#1d5f8a;--error:#b3261e;--warning:#7a4f00;--success:#1a6b2f;--notice:#57606a;--diff-added:#1a6b2f;--diff-removed:#b3261e;--code:#6f42c1;--choice-selected:#1d5f8a;--border:#57606a;--art-fur:#8a5a38;--art-membrane:#2f6f8c;--art-face:#6e5330;--banner-fur:#8a5a38;--banner-membrane:#2f6f8c;--banner-face:#6e5330;--banner-border:#8a5a38}
:root[data-theme="dark"]{color-scheme:dark;--page-background:#0d1117;--page-text:#e6edf3;--user:#56b6c2;--accent:#7fb2c9;--error:#f47067;--warning:#e0af68;--success:#7ec97e;--notice:#8b949e;--diff-added:#7ec97e;--diff-removed:#f47067;--code:#d2a8ff;--choice-selected:#7fb2c9;--border:#8b949e;--art-fur:#b9855f;--art-membrane:#7fb2c9;--art-face:#f1dfc4;--banner-fur:#b9855f;--banner-membrane:#7fb2c9;--banner-face:#f1dfc4;--banner-border:#b9855f}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){color-scheme:dark;--page-background:#0d1117;--page-text:#e6edf3;--user:#56b6c2;--accent:#7fb2c9;--error:#f47067;--warning:#e0af68;--success:#7ec97e;--notice:#8b949e;--diff-added:#7ec97e;--diff-removed:#f47067;--code:#d2a8ff;--choice-selected:#7fb2c9;--border:#8b949e;--art-fur:#b9855f;--art-membrane:#7fb2c9;--art-face:#f1dfc4;--banner-fur:#b9855f;--banner-membrane:#7fb2c9;--banner-face:#f1dfc4;--banner-border:#b9855f}}
.t-dim{opacity:0.72}
.t-bold{font-weight:600}
.t-italic{font-style:italic}
.t-user{color:var(--user);fill:var(--user)}
.t-accent{color:var(--accent);fill:var(--accent)}
.t-error{color:var(--error);fill:var(--error)}
.t-warning{color:var(--warning);fill:var(--warning)}
.t-success{color:var(--success);fill:var(--success)}
.t-notice{color:var(--notice);fill:var(--notice)}
.t-diff-added{color:var(--diff-added);fill:var(--diff-added)}
.t-diff-removed{color:var(--diff-removed);fill:var(--diff-removed)}
.t-code{color:var(--code);fill:var(--code)}
.t-link{text-decoration:underline}
.t-choice-selected{color:var(--choice-selected);fill:var(--choice-selected);font-weight:600}
.t-selection{color:var(--page-background);background:var(--page-text)}
.t-border{color:var(--border);fill:var(--border)}
.t-art-fur{color:var(--art-fur);fill:var(--art-fur)}
.t-art-membrane{color:var(--art-membrane);fill:var(--art-membrane)}
.t-art-face{color:var(--art-face);fill:var(--art-face)}
.t-banner-fur{color:var(--banner-fur);fill:var(--banner-fur)}
.t-banner-membrane{color:var(--banner-membrane);fill:var(--banner-membrane)}
.t-banner-face{color:var(--banner-face);fill:var(--banner-face)}
.t-banner-border{color:var(--banner-border);fill:var(--banner-border)}
.figure text{font-size:20px;text-anchor:middle;dominant-baseline:central}
.figure [data-pose="swing"]{visibility:hidden}
@keyframes tail-rest{0%{visibility:visible}16.667%{visibility:hidden}33.333%{visibility:visible}50%{visibility:hidden}66.667%{visibility:visible}83.333%{visibility:hidden}100%{visibility:visible}}
@keyframes tail-swing{0%{visibility:hidden}16.667%{visibility:visible}33.333%{visibility:hidden}50%{visibility:visible}66.667%{visibility:hidden}83.333%{visibility:visible}100%{visibility:hidden}}
.figure [data-pose="rest"]{animation:tail-rest 1800ms step-end 1}
.figure [data-pose="swing"]{animation:tail-swing 1800ms step-end 1}
.hub{--tail-x:0.6333333333333333}
.hub .figure [data-pose]{animation:none}
.sidebar{--tail-x:0.6333333333333333}
.sidebar .figure [data-pose]{animation:none}
@media (prefers-reduced-motion: reduce){.figure [data-pose]{animation:none}}
:root,
:root[data-theme="light"] {
  --line-subtle: color-mix(in srgb, var(--border) 20%, transparent);
  --line-strong: color-mix(in srgb, var(--border) 38%, transparent);
  --surface-recessed: color-mix(in srgb, var(--border) 6%, var(--page-background));
  --text-body: color-mix(in srgb, var(--page-text) 78%, var(--notice));
}

:root[data-theme="dark"] {
  --line-subtle: color-mix(in srgb, var(--border) 22%, transparent);
  --line-strong: color-mix(in srgb, var(--border) 42%, transparent);
  --surface-recessed: color-mix(in srgb, black 34%, var(--page-background));
  --text-body: color-mix(in srgb, var(--page-text) 72%, var(--notice));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --line-subtle: color-mix(in srgb, var(--border) 22%, transparent);
    --line-strong: color-mix(in srgb, var(--border) 42%, transparent);
    --surface-recessed: color-mix(in srgb, black 34%, var(--page-background));
    --text-body: color-mix(in srgb, var(--page-text) 72%, var(--notice));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--page-background);
  color: var(--page-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

code,
pre,
kbd,
.figure text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.9rem;
  background: var(--page-background);
  border: 1px solid var(--accent);
  border-radius: 6px;
}

.skip:focus {
  top: 0.75rem;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--page-background);
  border-bottom: 1px solid var(--line-subtle);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 92rem;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--page-text);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.top-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.top-nav a {
  color: var(--notice);
  text-decoration: none;
  transition: color 140ms ease;
}

.top-nav a:hover {
  color: var(--page-text);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.search label {
  color: var(--notice);
  font-size: 0.82rem;
}

.search input {
  width: 15rem;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--page-text);
  background: var(--surface-recessed);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

.search input:focus-visible {
  outline-offset: 0;
  border-color: var(--accent);
}

.search-results {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(28rem, calc(100vw - 2rem));
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--surface-recessed);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.search-results a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 5px;
  text-decoration: none;
}

.search-results a:hover,
.search-results a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.result-title {
  display: block;
  color: var(--page-text);
  font-weight: 600;
}

.result-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--notice);
  font-size: 0.85rem;
  line-height: 1.45;
}

.result-none {
  padding: 0.45rem 0.6rem;
  color: var(--notice);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.menu {
  padding: 0.3rem 0.7rem;
  background: var(--surface-recessed);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 0.88rem;
}

.bottom {
  margin-top: 4.5rem;
  border-top: 1px solid var(--line-subtle);
}

.bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 92rem;
  margin: 0 auto;
  padding: 1.5rem;
  font-size: 0.88rem;
}

.bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.bottom-nav a {
  color: var(--notice);
  text-decoration: none;
}

.bottom-nav a:hover {
  color: var(--page-text);
}

.theme {
  display: inline-flex;
  background: var(--surface-recessed);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  overflow: hidden;
}

.theme button {
  padding: 0.25rem 0.75rem;
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  color: var(--notice);
}

.theme button + button {
  border-left: 1px solid var(--line-subtle);
}

.theme button[aria-pressed="true"] {
  color: var(--page-text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.2rem 0 0.8rem;
}

h1 {
  font-size: 2.1rem;
  margin-top: 0;
}

h2 {
  font-size: 1.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.2rem;
}

h4,
h5,
h6 {
  font-size: 1rem;
}

p,
ul,
ol,
blockquote,
.table-wrap,
.code-block {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

li + li {
  margin-top: 0.3rem;
}

li > ul,
li > ol {
  margin-top: 0.3rem;
  margin-bottom: 0;
}

li > ul:not(:last-child),
li > ol:not(:last-child) {
  margin-bottom: 1rem;
}

blockquote {
  padding: 1rem 1.25rem;
  background: var(--surface-recessed);
  border: 1px solid var(--line-subtle);
  border-left: 3px solid var(--banner-fur);
  border-radius: 10px;
  color: var(--text-body);
  font-size: 0.93rem;
}

blockquote strong {
  color: var(--page-text);
}

blockquote > :last-child {
  margin-bottom: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-subtle);
  margin: 2.25rem 0;
}

:not(pre) > code {
  padding: 0.14em 0.4em;
  font-size: 0.845em;
  color: var(--code);
  background: var(--surface-recessed);
  border: 1px solid var(--line-subtle);
  border-radius: 5px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.code-block {
  position: relative;
}

pre {
  margin: 0;
  padding: 0.95rem 1.1rem;
  overflow-x: auto;
  font-size: 0.865rem;
  line-height: 1.6;
  background: var(--surface-recessed);
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
}

.code-block pre {
  padding-right: 0;
}

pre code {
  white-space: pre;
}

.code-block pre code {
  display: inline-block;
  min-width: 100%;
  padding-right: 3.25rem;
}

.copy {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: var(--page-background);
  color: var(--notice);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: color 140ms ease, border-color 140ms ease;
}

.copy:hover {
  color: var(--page-text);
  border-color: var(--accent);
}

.copy-icon {
  display: block;
}

.copy-icon-done,
.copy[data-copy-done] .copy-icon-idle {
  display: none;
}

.copy[data-copy-done] .copy-icon-done {
  display: block;
}

.copy[data-copy-done] {
  color: var(--success);
  border-color: var(--success);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0 1.85rem;
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  background: var(--page-background);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.58;
}

th,
td {
  padding: 0.72rem 0.95rem;
  border: 0;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-recessed);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--notice);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

td {
  color: var(--text-body);
}

tbody tr + tr td {
  border-top: 1px solid var(--line-subtle);
}

tbody tr:hover td {
  background: var(--surface-recessed);
}

td code {
  white-space: normal;
  overflow-wrap: normal;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.84rem;
}

td:first-child code {
  color: var(--page-text);
  font-weight: 500;
}

table:not(:has(th:nth-child(3))) td:first-child:has(code) {
  width: 34%;
}

table:has(th:nth-child(5)) td:nth-child(n + 3) code {
  overflow-wrap: anywhere;
}

tr:target td {
  box-shadow: inset 3px 0 0 var(--accent);
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

.docs {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr) 13.5rem;
  gap: 2.75rem;
  max-width: 92rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.docs:not(:has(.toc)) {
  grid-template-columns: 17rem minmax(0, 1fr);
}

.sidebar {
  --sidebar-figure: 4.4rem;
  --trunk: var(--banner-fur);
  --twig: color-mix(in srgb, var(--banner-membrane) 70%, transparent);
  --knot: 1.675rem;
  position: sticky;
  top: 3.6rem;
  align-self: start;
  max-height: calc(100vh - 3.6rem);
  overflow-y: auto;
  padding: 1.5rem 0.5rem 2rem 0;
  font-size: 0.85rem;
}

.sidebar-figure {
  width: var(--sidebar-figure);
}

.sidebar-figure .figure {
  display: block;
  width: 100%;
  height: auto;
}

.sidebar-tree {
  margin: -0.1rem 0 0 calc(var(--sidebar-figure) * var(--tail-x) - 0.75px);
}

.sidebar-group {
  position: relative;
  padding: 1rem 0 0 1.25rem;
}

.sidebar-group:first-child {
  --knot: 1.275rem;
  padding-top: 0.6rem;
}

.sidebar-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 1.5px solid var(--trunk);
}

.sidebar-group::after {
  content: "";
  position: absolute;
  left: 0;
  top: var(--knot);
  width: 0.9rem;
  border-top: 1.5px solid var(--trunk);
}

.sidebar-group:last-child::before {
  bottom: auto;
  height: calc(var(--knot) + 1.5px);
  width: 0.9rem;
  border-bottom: 1.5px solid var(--trunk);
  border-bottom-left-radius: 8px;
}

.sidebar-group:last-child::after {
  display: none;
}

.sidebar .group {
  display: block;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--trunk);
  text-decoration: none;
}

.sidebar a.group {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin: -0.2rem 0 -0.2rem -0.5rem;
  border-radius: 6px;
  transition: color 130ms ease, background-color 130ms ease;
}

.sidebar a.group:hover,
.sidebar a.group:focus-visible {
  color: var(--page-text);
  background: var(--surface-recessed);
}

.sidebar a.group[aria-current="page"] {
  color: var(--page-text);
  background: var(--surface-recessed);
  font-weight: 700;
}

.sidebar ul {
  margin: 0.2rem 0 0 0.35rem;
  padding: 0;
  list-style: none;
}

.sidebar li {
  position: relative;
  padding-left: 1rem;
}

.sidebar li + li {
  margin-top: 0;
}

.sidebar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 1.5px solid var(--twig);
}

.sidebar li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.7rem;
  border-top: 1.5px solid var(--twig);
}

.sidebar li:last-child::before {
  bottom: auto;
  height: calc(0.95rem + 1.5px);
  width: 0.7rem;
  border-bottom: 1.5px solid var(--twig);
  border-bottom-left-radius: 7px;
}

.sidebar li:last-child::after {
  display: none;
}

.sidebar ul a {
  display: block;
  padding: 0.25rem 0.55rem;
  margin-left: -0.25rem;
  line-height: 1.4rem;
  color: var(--notice);
  text-decoration: none;
  border-radius: 6px;
  transition: color 130ms ease, background-color 130ms ease;
}

.sidebar ul a:hover,
.sidebar ul a:focus-visible {
  color: var(--page-text);
  background: var(--surface-recessed);
}

.sidebar ul a[aria-current="page"] {
  color: var(--page-text);
  background: var(--surface-recessed);
  font-weight: 600;
}

.sidebar li:has(> a:hover)::after,
.sidebar li:has(> a:focus-visible)::after,
.sidebar li:has(> a[aria-current="page"])::after,
.sidebar li:last-child:has(> a:hover)::before,
.sidebar li:last-child:has(> a:focus-visible)::before,
.sidebar li:last-child:has(> a[aria-current="page"])::before {
  border-color: var(--banner-membrane);
  border-width: 2px;
}

.article {
  min-width: 0;
  width: 100%;
  max-width: 54rem;
  padding: 2.5rem 0 1.5rem;
  color: var(--text-body);
}

.article:has(table th:nth-child(5)) {
  max-width: none;
}

.article strong {
  color: var(--page-text);
}

.diagram-frame {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  background: var(--surface-recessed);
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
  overflow-x: auto;
}

.diagram {
  display: block;
  width: 100%;
  min-width: 38rem;
  height: auto;
}

.screenshot-frame {
  margin: 1.5rem 0 2rem;
  padding: 0.75rem;
  background: var(--surface-recessed);
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
}

.screenshot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.screenshot-frame figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--notice);
  text-align: center;
}

.article h1 {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--page-text);
  margin-bottom: 1rem;
}

.article h1 + p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1.75rem;
}

.article h2 {
  margin: 3rem 0 1rem;
  padding-bottom: 0.55rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--page-text);
  border-bottom: 1px solid var(--line-subtle);
}

.article h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--page-text);
}

.article [data-source] > ul {
  padding-left: 0;
  list-style: none;
  margin: 1.1rem 0 1.65rem;
}

.article [data-source] > ul > li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.article [data-source] > ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.15rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--banner-membrane);
}

.article [data-source] > ul > li:nth-child(even)::before {
  background: var(--banner-fur);
}

.article [data-source] > ul > li + li {
  margin-top: 0.8rem;
}

.article [data-source] > ul > li > strong:first-child,
.article [data-source] > ul > li > p:first-child > strong:first-child {
  color: var(--page-text);
  font-weight: 650;
}

.article [data-source] > ol {
  counter-reset: doc-step;
  padding-left: 0;
  list-style: none;
  margin: 1.35rem 0 1.75rem;
}

.article [data-source] > ol > li {
  position: relative;
  counter-increment: doc-step;
  padding: 0 0 1.4rem 2.7rem;
}

.article [data-source] > ol > li:last-child {
  padding-bottom: 0;
}

.article [data-source] > ol > li + li {
  margin-top: 0;
}

.article [data-source] > ol > li::before {
  content: counter(doc-step);
  position: absolute;
  top: 0.05rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--banner-membrane);
  background: var(--surface-recessed);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.article [data-source] > ol > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.05rem;
  bottom: 0.25rem;
  left: 0.85rem;
  width: 1px;
  background: var(--line-subtle);
}

.toc {
  position: sticky;
  top: 3.6rem;
  align-self: start;
  max-height: calc(100vh - 3.6rem);
  overflow-y: auto;
  padding: 2.5rem 0;
  font-size: 0.83rem;
}

.toc-title {
  margin-bottom: 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--notice);
}

.toc ul {
  margin: 0;
  padding: 0 0 0 0.75rem;
  list-style: none;
  border-left: 1px solid var(--line-subtle);
}

.toc li + li {
  margin-top: 0.4rem;
}

.toc a {
  color: var(--notice);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color 130ms ease;
}

.toc a:hover {
  color: var(--page-text);
}

.hub {
  --hub-figure: 9.4rem;
  --trunk: var(--banner-fur);
  --twig: color-mix(in srgb, var(--banner-membrane) 70%, transparent);
  --knot: 2.4rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.hub-head {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.hub-figure {
  flex: none;
  width: var(--hub-figure);
}

.hub-figure .figure {
  display: block;
  width: 100%;
  height: auto;
}

.hub h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--page-text);
}

.hub-tree {
  margin: -0.15rem 0 0 calc(var(--hub-figure) * var(--tail-x) - 1px);
}

.branch {
  position: relative;
  padding: 1.6rem 0 0 2.6rem;
}

.branch-solo {
  --knot: 2.95rem;
}

.branch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 2px solid var(--trunk);
}

.branch::after {
  content: "";
  position: absolute;
  left: 0;
  top: var(--knot);
  width: 1.9rem;
  border-top: 2px solid var(--trunk);
}

.branch:last-child::before {
  bottom: auto;
  height: calc(var(--knot) + 2px);
  width: 1.9rem;
  border-bottom: 2px solid var(--trunk);
  border-bottom-left-radius: 12px;
}

.branch:last-child::after {
  display: none;
}

.hub .branch-name {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.05rem;
  line-height: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--trunk);
}

.leaves {
  --twig: color-mix(in srgb, var(--banner-membrane) 70%, transparent);
  list-style: none;
  margin: 0.35rem 0 0 0.55rem;
  padding: 0;
}

.article > .leaves {
  margin-top: 1.5rem;
}

.leaves > li {
  position: relative;
  padding-left: 1.6rem;
}

.leaves > li + li {
  margin-top: 0;
}

.leaves > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 1.5px solid var(--twig);
}

.leaves > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 1.15rem;
  border-top: 1.5px solid var(--twig);
}

.leaves > li:last-child::before {
  bottom: auto;
  height: calc(1.35rem + 1.5px);
  width: 1.15rem;
  border-bottom: 1.5px solid var(--twig);
  border-bottom-left-radius: 9px;
}

.leaves > li:last-child::after {
  display: none;
}

.leaf {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  column-gap: 1.5rem;
  align-items: baseline;
  padding: 0.5rem 0.85rem;
  margin-left: -0.85rem;
  border-radius: 8px;
  color: var(--page-text);
  text-decoration: none;
}

.branch-solo .leaf {
  grid-template-columns: calc(13.5rem + 2.15rem) minmax(0, 1fr);
}

.leaf-title {
  font-weight: 600;
  line-height: 1.7rem;
}

.leaf-text {
  color: var(--notice);
  font-size: 0.93rem;
  line-height: 1.55;
}

.leaf:hover,
.leaf:focus-visible {
  background: var(--surface-recessed);
}

.leaf:hover .leaf-title,
.leaf:focus-visible .leaf-title {
  color: var(--banner-membrane);
}

.leaves > li:has(> .leaf:hover)::after,
.leaves > li:has(> .leaf:focus-visible)::after,
.leaves > li:last-child:has(> .leaf:hover)::before,
.leaves > li:last-child:has(> .leaf:focus-visible)::before {
  border-color: var(--banner-membrane);
  border-width: 2px;
}

.page-landing {
  position: relative;
  overflow-x: clip;
}

.landing {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  padding: 2.75rem 0 1rem;
  text-align: center;
}

.hero-stage {
  position: relative;
  max-width: 22.5rem;
  margin: 0 auto 2rem;
  background: var(--surface-recessed);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.hero-stage:hover {
  border-color: var(--banner-membrane);
  transform: translateY(-2px);
}

.hero-stage[data-wag] {
  border-color: var(--accent);
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line-subtle);
}

.stage-dots {
  display: inline-flex;
  gap: 0.42rem;
}

.stage-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  opacity: 0.9;
}

.stage-dot-close {
  background: var(--error);
}

.stage-dot-min {
  background: var(--warning);
}

.stage-dot-max {
  background: var(--success);
}

.stage-live {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
  animation: stage-pulse 2.6s ease-in-out infinite;
}

.stage-body {
  position: relative;
  padding: 1.75rem 1.25rem 0.9rem;
}

.stage-bob {
  animation: momonga-glide 4.2s ease-in-out infinite;
}

.hero .figure {
  display: block;
  width: 11.75rem;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  transform-origin: center bottom;
}

.hero-stage[data-wag] .figure {
  animation: momonga-hop 650ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}

.hero-stage[data-wag="copied"] {
  border-color: var(--success);
}

.hero-stage .figure text[data-row="1"][data-col="6"],
.hero-stage .figure text[data-row="1"][data-col="8"] {
  transform-box: fill-box;
  transform-origin: center;
  animation: momonga-blink 5s ease-in-out infinite;
}

.hero-stage:hover .figure [data-pose="rest"] {
  animation: tail-rest-hover 1200ms step-end infinite;
}

.hero-stage:hover .figure [data-pose="swing"] {
  animation: tail-swing-hover 1200ms step-end infinite;
}

.hero-stage[data-wag] .figure [data-pose="rest"] {
  animation: tail-rest-wag 600ms step-end 3;
}

.hero-stage[data-wag] .figure [data-pose="swing"] {
  animation: tail-swing-wag 600ms step-end 3;
}

.stage-prompt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--banner-membrane);
  border-top: 1px solid var(--line-subtle);
}

.stage-prompt::before {
  content: ">";
  font-weight: 700;
  opacity: 0.85;
}

.stage-cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1em;
  background: var(--banner-membrane);
  border-radius: 1px;
  animation: cursor-blink 1.1s steps(2, start) infinite;
}

.hero-stage[data-wag] .stage-cursor {
  background: var(--success);
}

@keyframes momonga-glide {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-6px) rotate(-1.2deg);
  }
}

@keyframes momonga-hop {
  0% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }

  18% {
    transform: translateY(4px) scale(1.06, 0.92) rotate(0deg);
  }

  46% {
    transform: translateY(-18px) scale(0.96, 1.07) rotate(-3deg);
  }

  74% {
    transform: translateY(2px) scale(1.03, 0.97) rotate(1.5deg);
  }

  100% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
}

@keyframes tail-rest-hover {
  0%,
  50% {
    visibility: visible;
  }

  25%,
  75% {
    visibility: hidden;
  }
}

@keyframes tail-swing-hover {
  0%,
  50% {
    visibility: hidden;
  }

  25%,
  75% {
    visibility: visible;
  }
}

@keyframes tail-rest-wag {
  0%,
  50% {
    visibility: visible;
  }

  25%,
  75% {
    visibility: hidden;
  }
}

@keyframes tail-swing-wag {
  0%,
  50% {
    visibility: hidden;
  }

  25%,
  75% {
    visibility: visible;
  }
}

@keyframes momonga-blink {
  0%,
  44%,
  48%,
  52%,
  56%,
  100% {
    transform: scaleY(1);
  }

  46%,
  54% {
    transform: scaleY(0.12);
  }
}

@keyframes stage-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

@keyframes cursor-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero > [data-source] > p {
  max-width: 60ch;
  text-wrap: balance;
  margin-left: auto;
  margin-right: auto;
}

.hero > [data-source] > h1 + p {
  font-size: 1.12rem;
  color: var(--text-body);
}

.version {
  font-size: 0.9rem;
  margin-top: 1.1rem;
}

.version a {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface-recessed);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 140ms ease;
}

.version a:hover {
  border-color: var(--accent);
}

.install {
  max-width: 42rem;
  margin: 2rem auto 1.25rem;
  text-align: left;
}

.tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 0.65rem;
  background: var(--surface-recessed);
  border: 1px solid var(--line-subtle);
  border-radius: 9px;
}

.tabs [role="tab"] {
  padding: 0.35rem 0.85rem;
  background: transparent;
  color: var(--notice);
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.86rem;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.tabs [role="tab"]:hover {
  color: var(--page-text);
}

.tabs [role="tab"][aria-selected="true"] {
  color: var(--page-text);
  background: var(--page-background);
  border-color: var(--line-strong);
  font-weight: 600;
}

.install-label {
  margin: 0 0 0.4rem;
  color: var(--notice);
  font-size: 0.9rem;
}

.install-panel + .install-panel {
  margin-top: 1rem;
}

[data-script] .install-label {
  display: none;
}

[data-script] .install-panel + .install-panel {
  margin-top: 0;
}

.install pre {
  padding: 1rem 0 1rem 1.15rem;
  font-size: 0.95rem;
  background: var(--surface-recessed);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 160ms ease;
}

.install .code-block:hover pre {
  border-color: var(--banner-membrane);
}

.install pre code {
  padding-right: 3.75rem;
}

.install pre code.language-sh::before {
  content: "$ ";
  color: var(--banner-membrane);
  font-weight: 600;
  user-select: none;
}

.install pre code.language-powershell::before {
  content: "PS> ";
  color: var(--banner-membrane);
  font-weight: 600;
  user-select: none;
}

.install .copy {
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
}

.landing-section {
  padding-top: 3.75rem;
}

.landing-section > h2 {
  margin: 0 0 0.75rem;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.landing-intro {
  margin: 0 auto 2rem;
  text-wrap: balance;
  color: var(--notice);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.9rem;
  margin-top: 2rem;
}

.tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 4.4rem;
  padding: 0.9rem 1.05rem;
  color: var(--page-text);
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  text-decoration: none;
  background: var(--surface-recessed);
  border: 1px solid var(--line-subtle);
  border-radius: 12px;
  transition: border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.tile::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0.65rem;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background-color 160ms ease;
}

.tile:hover,
.tile:focus-visible {
  color: var(--accent);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.tile:hover::before,
.tile:focus-visible::before {
  background: var(--banner-membrane);
}

.tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card {
  position: relative;
  display: block;
  padding: 1.85rem 2rem;
  color: var(--page-text);
  text-decoration: none;
  background: var(--surface-recessed);
  border: 1px solid var(--line-subtle);
  border-left: 3px solid var(--banner-membrane);
  border-radius: 14px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:nth-child(even) {
  border-left-color: var(--banner-fur);
}

.card:hover,
.card:focus-visible {
  border-color: var(--line-strong);
  border-left-color: var(--banner-membrane);
  transform: translateY(-3px);
}

.card:nth-child(even):hover,
.card:nth-child(even):focus-visible {
  border-left-color: var(--banner-fur);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-title {
  margin: 0 0 0.6rem;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: balance;
}

.card:hover .card-title {
  color: var(--accent);
}

.card-text {
  margin: 0;
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage,
  .stage-bob,
  .hero-stage .figure,
  .hero-stage .figure text,
  .hero-stage .figure [data-pose],
  .stage-live,
  .stage-cursor,
  .card,
  .tile,
  .copy {
    animation: none !important;
    transition: none;
  }

  .hero-stage:hover,
  .card:hover,
  .card:focus-visible,
  .tile:hover,
  .tile:focus-visible {
    transform: none;
  }
}

.not-found {
  max-width: 40rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
  text-align: center;
}

.not-found p {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

@media (max-width: 64rem) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 50rem) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 32rem) {
  .tiles {
    gap: 0.75rem;
  }

  .tile {
    min-height: 4rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 75rem) {
  .docs,
  .docs:not(:has(.toc)) {
    grid-template-columns: 16.5rem minmax(0, 1fr);
  }

  .toc {
    display: none;
  }
}

@media (max-width: 50rem) {
  .top-inner {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    padding: 0.6rem 1rem;
  }

  .search {
    order: 5;
    flex: 1 1 100%;
    margin-left: 0;
  }

  .search input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .search-results {
    left: 0;
    right: 0;
    width: auto;
  }

  .docs {
    display: block;
    padding: 0 1rem;
  }

  .sidebar {
    position: static;
    max-height: none;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
  }

  .hub {
    --hub-figure: 6rem;
    padding-top: 2rem;
  }

  .hub-head {
    gap: 1rem;
  }

  .branch {
    padding-left: 1.9rem;
  }

  .branch::after,
  .branch:last-child::before {
    width: 1.3rem;
  }

  .leaf,
  .branch-solo .leaf {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.1rem;
  }

  [data-script] .sidebar:not([data-open]) {
    display: none;
  }

  .article {
    padding-top: 1.5rem;
  }

  .landing {
    padding: 0 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.3rem;
  }
}

@media (min-width: 50.0625rem) {
  .menu {
    display: none;
  }
}
