/* Signari docs: the pages tools/docsgen writes into docs/. Loaded after site.css, whose tokens, faces, header and
   footer they use. Layout: sidebar | page | "On this page" from 1280 px; sidebar | page from 960 px; one column
   below, where the sidebar opens as an overlay from the header (docs.js) or, without JavaScript, follows the page. */

/* ---------- the frame ---------- */
.dz-page .top .wrap { max-width: 1440px; }
.dz { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; column-gap: clamp(32px, 4vw, 64px);
  max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.dz-main { min-width: 0; padding: 40px 0 104px; outline: none; }
.dz-doc { max-width: 760px; }

/* ---------- header additions: the version, the search button, the docs menu button ---------- */
.top .wrap.dz-top { gap: 0; }
.dz-top .brand-row { gap: 12px; }
.dz-ver { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 12px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.dz-search { display: none; }
.js .dz-search { display: inline-flex; align-items: center; gap: 10px; width: 300px; height: 36px; margin-left: 28px;
  padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  color: var(--faint); font: 400 14px/1 var(--sans); cursor: pointer; text-align: left; transition: border-color .15s; }
.js .dz-search:hover { border-color: var(--line-2); color: var(--muted); }
.dz-search svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dz-search-t { flex: 1; white-space: nowrap; }
.dz-key { flex: none; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel);
  font: 500 11.5px/1 var(--sans); color: var(--muted); white-space: nowrap; }
.k-mac { display: none; }
.mac .k-mac { display: inline; }
.mac .k-other { display: none; }
.dz-top .menu { margin-left: auto; }
.dz-top .top-actions { margin-left: 16px; gap: 6px; }
.dz-burger { display: none; position: relative; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: transparent; color: var(--text); cursor: pointer; }
.dz-burger:hover { border-color: var(--line-2); }
.dz-burger .bar { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: currentColor; border-radius: 1px; }
.dz-burger[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(5.5px) rotate(45deg); }
.dz-burger[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.dz-burger[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- the sidebar ---------- */
.dz-side { position: sticky; top: 65px; align-self: start; height: calc(100vh - 65px); overflow-y: auto;
  overscroll-behavior: contain; padding: 32px 20px 56px 0; border-right: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dz-side-ver { display: none; }
.dz-groups, .dz-items, .dz-site { list-style: none; padding: 0; margin: 0; }
.dz-group + .dz-group { margin-top: 2px; }
.dz-gh { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 5px 8px; margin: 0;
  border: 0; background: none; color: var(--text); font: 500 14.5px/20px var(--sans); letter-spacing: -.01em; text-align: left; }
.dz-gt { flex: 1; }
.dz-gn { flex: none; min-width: 2ch; font: 500 11.5px/1 var(--mono); color: var(--faint); text-align: right; }
button.dz-gh { cursor: pointer; border-radius: var(--r-sm); }
button.dz-gh:hover { background: var(--bg-3); }
button.dz-gh::after { content: ""; flex: none; width: 6px; height: 6px; margin: 0 4px 3px 2px; border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint); transform: rotate(45deg); transition: transform .15s; }
button.dz-gh[aria-expanded="true"]::after { transform: rotate(225deg); margin-bottom: -3px; }
.dz-items { margin: 2px 0 12px 8px; border-left: 1px solid var(--line); }
.dz-items[hidden] { display: none; }
.js .dz-side:not(.dz-ready) .dz-group:not(.is-current) > .dz-items { display: none; }
.dz-items a { display: block; margin-left: -1px; padding: 5px 8px 5px 14px; border-left: 1px solid transparent;
  color: var(--muted); font-size: 14px; line-height: 20px; text-decoration: none; transition: color .12s, border-color .12s; }
.dz-items a:hover { color: var(--text); border-left-color: var(--line-2); }
.dz-items a[aria-current="page"] { color: var(--text); font-weight: 500; border-left: 2px solid var(--accent); padding-left: 13px; }
.dz-items code, .dz-toc code, .dz-pager code, .sx code { padding: 0; border: 0; background: none; font-size: .92em; white-space: normal; }
.dz-site { display: none; }

/* ---------- the page head ---------- */
.dz-jump { display: none; }
.dz-crumb { margin: 4px 0 0; font: 500 13px/18px var(--sans); color: var(--accent); }
.dz-head h1 { margin: 10px 0 0; font-weight: 500; font-size: clamp(32px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: break-word; }
.dz-head h1 code { font-size: .86em; padding: 0 .12em; border: 0; background: none; letter-spacing: -.02em; white-space: normal; }
.dz-lead { margin-top: 14px; font-size: 18px; color: var(--muted); }
.dz-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dz-facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; font-size: 13px; line-height: 20px; color: var(--faint); font-variant-numeric: tabular-nums; }
.dz-facts span + span::before { content: "·"; margin: 0 8px; }
.dz-copy { display: none; }
.js .dz-copy { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); color: var(--text-2);
  font: 500 12.5px/1 var(--sans); cursor: pointer; box-shadow: var(--shadow-sm); }
.js .dz-copy:hover { border-color: var(--line-2); color: var(--text); }
.dz-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- "On this page" ---------- */
.dz-toc-inline { margin: 0; border-bottom: 1px solid var(--line); }
.dz-toc-inline summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; cursor: pointer;
  list-style: none; font-weight: 500; font-size: 14.5px; }
.dz-toc-inline summary::-webkit-details-marker { display: none; }
.dz-toc-inline summary::after { content: ""; width: 6px; height: 6px; margin-right: 4px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.dz-toc-inline[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.dz-toc-inline ul { list-style: none; padding: 0 0 16px; margin: 0; columns: 2; column-gap: 32px; }
.dz-toc-inline li { break-inside: avoid; }
.dz-toc-inline a { display: block; padding: 4px 0; font-size: 14px; line-height: 20px; color: var(--muted); text-decoration: none; }
.dz-toc-inline a:hover { color: var(--text); }
.dz-toc-inline .l3 a { padding-left: 14px; }
@media (max-width: 640px) { .dz-toc-inline ul { columns: 1; } }

.dz-aside { position: sticky; top: 65px; align-self: start; max-height: calc(100vh - 65px); overflow-y: auto;
  padding: 40px 0 40px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dz-toc-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text); }
.dz-toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.dz-toc a { display: block; margin-left: -1px; padding: 4px 0 4px 14px; border-left: 1px solid transparent;
  color: var(--muted); font-size: 13px; line-height: 19px; text-decoration: none; overflow-wrap: anywhere; transition: color .12s; }
.dz-toc .l3 a { padding-left: 26px; }
.dz-toc a:hover { color: var(--text); }
.dz-toc a[aria-current="true"] { color: var(--text); border-left-color: var(--accent); }

/* ---------- the page's text ---------- */
.prose { margin-top: 28px; font-size: 16px; line-height: 1.75; color: var(--text-2); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 16px 0 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--faint); }
.prose li > ul, .prose li > ol { margin-top: 6px; }
.prose li > p { margin-top: 6px; }
.prose ul.contains-task-list { list-style: none; padding-left: 0; }
.prose a { color: var(--text); font-weight: 500; text-decoration-color: rgb(var(--accent-rgb) / .45); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose a code { text-decoration: underline; text-decoration-color: rgb(var(--accent-rgb) / .45); text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--text); }
.prose :not(pre) > code { font-size: .85em; color: var(--text); }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.prose code.ws { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose code .nw { white-space: nowrap; }
.prose img.figure { display: block; max-width: 100%; height: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }

.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { position: relative; color: var(--text); }
.prose h2 { margin: 56px 0 0; font-weight: 500; font-size: 26px; line-height: 32px; letter-spacing: -.028em; }
.prose h3 { margin: 36px 0 0; font-weight: 600; font-size: 19px; line-height: 27px; letter-spacing: -.018em; }
.prose h4 { margin: 28px 0 0; font-weight: 600; font-size: 16.5px; line-height: 25px; letter-spacing: -.01em; }
.prose h5, .prose h6 { margin: 24px 0 0; font-weight: 600; font-size: 16px; line-height: 24px; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 + p, .prose h3 + p, .prose h4 + p { margin-top: 10px; }
.prose h2 code, .prose h3 code, .prose h4 code { font-size: .86em; white-space: normal; }
.prose a.anchor { color: inherit; font-weight: inherit; text-decoration: none; }
.prose a.anchor code { text-decoration: none; }
.prose a.anchor::before { content: "#"; position: absolute; left: -1em; width: 1em; color: var(--faint); font-weight: 400; opacity: 0; transition: opacity .12s; }
.prose a.anchor:hover::before, .prose a.anchor:focus-visible::before { opacity: 1; }
.prose a.anchor:focus-visible { outline-offset: 4px; }
.prose a.anchor-only { margin-left: .3em; color: var(--faint); text-decoration: none; font-weight: 400; }

.prose blockquote { margin: 20px 0 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--line-2); color: var(--muted); }
.prose blockquote > :first-child { margin-top: 0; }

/* Notes and warnings: an icon in a small tile, the word, and a tinted panel. */
.callout { margin: 24px 0 0; padding: 14px 18px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.callout > :nth-child(2) { margin-top: 0; }
.callout-h { display: flex; align-items: center; gap: 10px; margin: 0 0 6px !important; font-size: 14px; line-height: 22px; color: var(--text); }
.callout-h strong { font-weight: 600; }
.callout-h svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: var(--r-sm); background: var(--bg-3); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout-h svg .dot { stroke-width: 2.4; }
.callout-warning { border-color: rgb(var(--accent-rgb) / .28); background: rgb(var(--accent-rgb) / .045); }
.callout-warning .callout-h svg { background: var(--accent); color: #fff; }

/* Code: dark panels with the generator's palette, in both themes. */
.prose pre.code, .prose .codebox { margin: 20px 0 0; --code-bg: #18181B; --code-text: #E4E4E7; --code-muted: #8A8A93; --code-line: #27272A; color-scheme: dark; }
.prose .codebox { background: var(--code-bg); border-color: var(--code-line); }
.prose pre.code { background: var(--code-bg); color: var(--code-text); border-color: var(--code-line); font-size: 13.5px; }
.prose .codebox pre.code { margin: 0; }
.prose .codebar { border-bottom: 1px solid var(--code-line); padding-bottom: 6px; }
.prose .codebox pre.code { padding-top: 14px; }
.prose .copy { background: transparent; border-color: #3f3f46; color: #d4d4d8; }
.prose .copy:hover { border-color: #71717a; color: #fafafa; }
.prose li pre.code, .prose li .codebox { margin-top: 10px; }

.tw { margin: 22px 0 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); scrollbar-width: thin; }
.tw:focus-visible { outline-offset: 2px; }
.tw table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.tw table.c3 { min-width: 560px; }
.tw table.c4 { min-width: 680px; }
.tw table.c5, .tw table.c6 { min-width: 820px; }
.tw th { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-weight: 500; font-size: 13px; color: var(--muted); text-align: left; vertical-align: bottom; }
.tw td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.tw tr:last-child td { border-bottom: 0; }
.tw .al-r { text-align: right; }
.tw .al-c { text-align: center; }
.tw table.nohead.c2 td:first-child { width: 34%; font-weight: 500; color: var(--text); }
.tw td > code:only-child { white-space: nowrap; }
@media (max-width: 600px) {
  .tw table.nohead.c2, .tw table.nohead.c2 tbody, .tw table.nohead.c2 tr, .tw table.nohead.c2 td { display: block; width: auto; }
  .tw table.nohead.c2 tr { padding: 11px 14px; border-bottom: 1px solid var(--line); }
  .tw table.nohead.c2 td { padding: 0; border: 0; }
  .tw table.nohead.c2 td + td { margin-top: 6px; }
}

.prose .footnotes { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.prose .footnotes hr { display: none; }
.prose sup a { text-decoration: none; }
.prose p.lines { white-space: pre-wrap; padding-left: 16px; border-left: 2px solid var(--line); }

/* ---------- previous and next ---------- */
.dz-pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 72px; }
.dz-pager a { display: block; padding: 14px 18px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s, background-color .15s; }
.dz-pager a:hover { border-color: var(--line-2); background: var(--bg-2); }
.dz-pager .dz-next { grid-column: 2; text-align: right; }
.dz-pager small { display: block; margin-bottom: 2px; font-size: 12.5px; line-height: 18px; color: var(--faint); }
.dz-pager a > span { font-weight: 500; font-size: 15.5px; line-height: 22px; color: var(--text); }

/* ---------- search: a native modal dialog ---------- */
.sx { width: min(640px, calc(100vw - 32px)); max-width: none; max-height: min(600px, calc(100dvh - 120px)); margin: 96px auto auto;
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--panel); color: var(--text); box-shadow: 0 24px 64px -12px rgb(0 0 0 / .35); }
.sx[open] { display: flex; flex-direction: column; }
.sx::backdrop { background: rgb(10 10 10 / .4); backdrop-filter: blur(2px); }
.sx-bar { display: flex; flex: none; align-items: center; gap: 10px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); }
.sx-bar > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; }
.sx-q { flex: 1; min-width: 0; height: 54px; padding: 0; border: 0; background: transparent; color: var(--text); font: 400 16px/1 var(--sans); outline: none; }
.sx-q::placeholder { color: var(--faint); }
.sx-q::-webkit-search-cancel-button { display: none; }
.sx-close { flex: none; min-height: 26px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-2);
  color: var(--muted); font: 500 11.5px/1 var(--sans); cursor: pointer; }
.sx-close:hover { color: var(--text); }
.sx-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 0 10px; }
.sx-status { margin: 0; padding: 6px 16px; font-size: 13px; line-height: 18px; color: var(--muted); }
.sx-status:empty { display: none; }
.sx-list[hidden], .sx-start[hidden] { display: none; }
.sx-group { margin: 0; padding: 0; list-style: none; }
.sx-group + .sx-group { margin-top: 4px; }
.sx-gl { display: flex; gap: 8px; align-items: baseline; margin: 0; padding: 10px 16px 4px; font-size: 12px; line-height: 16px; }
.sx-gl b { font-weight: 500; color: var(--text-2); }
.sx-gl span { color: var(--faint); }
.sx-opt { margin: 0 8px; }
.sx-opt a { display: block; padding: 8px 10px 9px; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.sx-h { display: block; font-weight: 500; font-size: 14.5px; line-height: 20px; }
.sx-c { display: block; margin-top: 1px; font-size: 12px; line-height: 16px; color: var(--faint); }
.sx-x { display: -webkit-box; margin-top: 3px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  font-size: 13px; line-height: 18px; color: var(--muted); }
.sx mark { background: none; color: var(--accent); font-weight: 500; }
.sx-opt[aria-selected="true"] a, .sx-opt a:hover { background: var(--bg-3); }
.sx-opt[aria-selected="true"] a { box-shadow: inset 2px 0 0 var(--accent); }
.sx-start { padding: 6px 16px 4px; }
.sx-start-h { margin: 0 0 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--faint); }
.sx-start ul { list-style: none; margin: 0; padding: 0; }
.sx-start a { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: var(--radius); font-weight: 500; font-size: 14.5px; text-decoration: none; }
.sx-start a:hover { background: var(--bg-3); }
.sx-foot { display: flex; flex: none; gap: 18px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bg-2);
  font-size: 12px; line-height: 16px; color: var(--faint); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.sx-foot kbd, .sx-close kbd { display: inline-block; min-width: 20px; margin-right: 4px; padding: 2px 4px; border: 1px solid var(--line);
  border-radius: 4px; background: var(--panel); font: 500 11px/1 var(--sans); text-align: center; }
html.dz-locked { overflow: hidden; }

/* ---------- widths ---------- */
@media (max-width: 1279px) {
  .dz { grid-template-columns: 244px minmax(0, 1fr); }
  .dz-aside { display: none; }
}
@media (min-width: 1280px) {
  .dz-toc-inline { display: none; }
}
@media (max-width: 1100px) {
  .js .dz-search { width: 220px; margin-left: 20px; }
}
@media (max-width: 959px) {
  .dz { grid-template-columns: minmax(0, 1fr); }
  .dz-main { padding-top: 24px; }
  .dz-top .menu { display: none; }
  .js .dz-search { width: 36px; margin-left: auto; padding: 0; justify-content: center; }
  .dz-search .dz-search-t, .dz-search .dz-key, .mac .dz-search .k-mac { display: none; }
  .dz-top .top-actions { margin-left: 8px; }
  .js .dz-top .top-actions { margin-left: 8px; }
  html:not(.js) .dz-top .top-actions { margin-left: auto; }
  .js .dz-burger { display: inline-block; }
  .dz-side { position: static; order: 2; height: auto; overflow: visible; padding: 28px 0 40px; border-right: 0; border-top: 1px solid var(--line); }
  .dz-jump { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
  .js .dz-jump { display: none; }
  .js .dz-side { position: fixed; inset: 65px 0 0; z-index: 19; display: none; align-self: normal; height: auto; overflow-y: auto;
    padding: 20px var(--gutter) 48px; border-top: 0; background: var(--bg); }
  .js .dz-side.open { display: block; }
  .dz-side-ver { display: block; margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--muted); }
  .dz-site { display: block; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
  .dz-site a { display: block; padding: 10px 0; font-weight: 500; text-decoration: none; }
  .dz-items a, .dz-gh { font-size: 15.5px; }
  .dz-items a { padding-top: 8px; padding-bottom: 8px; }
  .prose a.anchor::before { display: none; }
}
@media (max-width: 600px) {
  .dz-ver { display: none; }
  .dz-top .gh { display: none; }
  .dz-pager { grid-template-columns: minmax(0, 1fr); }
  .dz-pager .dz-next { grid-column: 1; }
  .dz-head h1 { font-size: 32px; }
  .prose h2 { font-size: 23px; line-height: 29px; margin-top: 48px; }
  .sx { width: 100vw; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .sx-foot { display: none; }
}
@media print {
  .dz-side, .dz-aside, .dz-pager, .dz-copy, .dz-search, .dz-toc-inline, .sx, .dz-burger { display: none !important; }
  .dz { display: block; }
}
