/* The Documentation view in the orange design of September 26, 2026 (the owner's archive, site/Docs.dc.html), inside the site's
   one header and footer. Under the header sits the documentation's own bar: the sections of the documentation as tabs in their
   own scroll region, and a search control that is a field on a wide screen and an icon on a phone. The index shows the pages as a
   compact grid of cards. A page has the list of pages on its left, the page itself in a reading column of 760 pixels, and its
   contents list on its right, so the title, the one-line summary and the contents list are in the first screen of a wide window.
   Below 1240 pixels the contents list folds above the page; below 1000 pixels the list of pages moves under the page. No part of
   the view is wider than a 320 pixel screen: a table or an example scrolls inside its own frame.

   Every colour, typeface, radius and shadow is a token from the top of service.css. A token the orange foundation adds has its
   design value written beside it, so this file reads the same before and after that block lands. */
main:has(> [data-view="docs"]:not([hidden])){max-width:none;padding:0}
[data-view="docs"]{overflow-wrap:anywhere}
.docs-band{padding:64px max(var(--band-gutter),calc((100% - var(--content-max)) / 2))}

/* The documentation bar: tabs for the sections, and the search control. */
.docs-bar{position:relative;z-index:1;background:var(--header-bg,var(--paper));border-bottom:1px solid var(--rule)}
.docs-bar-inner{display:flex;align-items:center;gap:1rem;padding:0 max(var(--band-gutter),calc((100% - var(--content-max)) / 2))}
/* The site's rule for every nav moves a nav to its own row on a narrow screen; these two lists keep their places. */
.docs-tabs,.docs-nav{order:0}
.docs-tabs{display:flex;flex:1 1 auto;min-width:0;gap:.25rem;margin-left:-.75rem;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.docs-tabs::-webkit-scrollbar{display:none}
.docs-tabs a{flex:none;display:flex;align-items:center;min-height:44px;padding:0 .75rem;border-bottom:2px solid transparent;color:var(--muted);font-size:.875rem;line-height:1.2;text-decoration:none;white-space:nowrap}
.docs-tabs a:hover{color:var(--ink)}
.docs-tabs a[aria-current]{border-bottom-color:var(--accent);color:var(--ink);font-weight:600;box-shadow:none}
.docs-tabs a:focus-visible{outline-offset:-3px}
.docs-search-open{flex:0 1 20rem;display:flex;align-items:center;gap:.625rem;min-width:0;min-height:40px;margin:.375rem 0;padding:0 .5rem 0 .875rem;border:1px solid var(--line-strong);border-radius:var(--radius-field);background:var(--paper);color:var(--muted);font-size:.875rem;font-weight:400;text-align:left}
.docs-search-open:not(:disabled):hover{border-color:var(--accent);color:var(--ink)}
.docs-search-icon{flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.docs-search-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.docs-search-key{flex:none;min-width:1.5rem;padding:.0625rem .375rem;border:1px solid var(--border);border-radius:5px;background:var(--bg);color:var(--muted);font-family:var(--font-mono);font-size:.75rem;line-height:1.4;text-align:center}

/* The index. */
.docs-intro{display:flex;flex-direction:column;gap:.75rem}
.docs-intro>*{margin:0}
.docs-index .docs-intro{background:var(--band);border-bottom:1px solid var(--rule)}
.docs-intro h1{max-width:none;margin:0;font-size:clamp(2rem,3.4vw,2.75rem);font-weight:600;line-height:1.08;letter-spacing:-.03em;text-wrap:balance}
.docs-lede{max-width:47.5rem;margin:0;color:var(--muted);font-size:clamp(1.0625rem,1.35vw,1.1875rem);line-height:1.55;text-wrap:pretty}
.docs-actions{margin:.5rem 0 0;gap:.75rem 1.5rem}
.docs-quickstarts{padding-top:40px;padding-bottom:0}
.docs-quickstarts h2{margin:0 0 .5rem;font-size:1.25rem;letter-spacing:-.015em}
.docs-quickstarts p{max-width:47.5rem;margin:0;color:var(--muted);line-height:1.6}
.docs-cards-band{padding-top:32px;border-bottom:1px solid var(--rule)}
.docs-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;list-style:none;margin:0;padding:0}
.docs-card{position:relative;display:flex;flex-direction:column;gap:.375rem;min-width:0;padding:1.125rem 1.25rem;background:var(--paper);border:1px solid var(--border);border-radius:var(--radius-card);transition:border-color .15s}
.docs-card:hover,.docs-card:focus-within{border-color:var(--accent)}
.docs-card.is-first{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.docs-card-section{margin:0;color:var(--subtle);font-size:.75rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.docs-card.is-first .docs-card-section{color:var(--accent)}
.docs-card-title{margin:0;font-size:1rem;line-height:1.3}
.docs-card-title a{color:var(--ink);text-decoration:none}
.docs-card-title a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.docs-card-title a:focus-visible{outline:none}
.docs-card:has(a:focus-visible){outline:3px solid var(--accent);outline-offset:3px}
.docs-card-summary{margin:0;color:var(--muted);font-size:.875rem;line-height:1.5}
.docs-status{margin:1rem 0 0;color:var(--muted)}
.docs-status:empty{display:none}

/* Below the cards: the engine a reader can install, and the technical runtime reference, side by side. */
.docs-developer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2.5rem;background:var(--band)}
.docs-developer>section{min-width:0}
.docs-developer h2{margin:0 0 .5rem;font-size:1.25rem;letter-spacing:-.015em}
.docs-developer p{margin:.5rem 0;color:var(--muted)}
.docs-developer .runtime-disclosure{padding:.75rem 0}
.docs-developer .layer-notes{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem;margin-top:1rem;font-size:.9375rem}
.docs-code,.docs-article pre{margin:0;padding:1rem;max-height:none;background:var(--code-bg);border:0;border-radius:12px;color:var(--code-ink);font-family:var(--font-mono);font-size:.8125rem;line-height:1.7;white-space:pre;overflow-x:auto;overflow-wrap:normal;word-break:normal}
.docs-code{margin:1rem 0}
.docs-code:focus-visible,.docs-article pre:focus-visible,.docs-table:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* A page. The areas name where each part stands at each width. */
.docs-page-band{padding-top:2rem;padding-bottom:4rem}
.docs-layout{display:grid;grid-template-columns:15.5rem minmax(0,47.5rem) 13rem;grid-template-areas:"nav intro toc" "nav article toc" "nav pager toc" "nav meta toc";column-gap:3rem;align-items:start;justify-content:space-between}
.docs-page-intro{grid-area:intro;margin-bottom:1.5rem}
.docs-trail{display:flex;flex-wrap:wrap;gap:.35rem;margin:0;color:var(--subtle);font-size:.8125rem}
.docs-trail a{color:inherit;text-decoration:none}
.docs-trail a:hover{color:var(--accent);text-decoration:underline}
.docs-nav{grid-area:nav;position:sticky;top:calc(var(--header-height,72px) + 1.5rem);align-self:start;display:flex;flex-direction:column;gap:1.375rem;max-height:calc(100vh - var(--header-height,72px) - 3rem);overflow:auto;padding:.25rem .25rem 1rem 0;font-size:.875rem}
.docs-nav-section{margin:0 0 .375rem;padding:0 .625rem;color:var(--subtle);font-size:.75rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.docs-nav ul{display:flex;flex-direction:column;gap:.125rem;list-style:none;margin:0;padding:0}
.docs-nav a{display:flex;align-items:center;min-height:36px;padding:.375rem .625rem;border-radius:8px;color:var(--muted);line-height:1.35;text-decoration:none}
.docs-nav a:hover{background:var(--tint,#FFECDD);color:var(--ink)}
.docs-nav a[aria-current=page]{background:var(--tint,#FFECDD);color:var(--ink);font-weight:600;box-shadow:none}
.docs-article{grid-area:article;min-width:0;font-size:1rem;line-height:1.7}
.docs-toc{grid-area:toc;position:sticky;top:calc(var(--header-height,72px) + 2rem);align-self:start;min-width:0;font-size:.8125rem}
.docs-toc summary{padding:0 0 .5rem;color:var(--ink);font-size:.8125rem;font-weight:600;list-style:none;cursor:default;pointer-events:none}
.docs-toc summary::-webkit-details-marker{display:none}
.docs-toc ul{display:flex;flex-direction:column;gap:.125rem;list-style:none;margin:0;padding:0 0 0 .875rem;border-left:1px solid var(--border)}
.docs-toc a{display:flex;align-items:center;min-height:32px;color:var(--muted);line-height:1.35;text-decoration:none}
.docs-toc a:hover{color:var(--accent)}
.docs-pager{grid-area:pager;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:2.5rem}
.docs-pager a{display:flex;flex-direction:column;gap:.125rem;min-width:0;padding:1rem 1.125rem;background:var(--paper);border:1px solid var(--border);border-radius:12px;text-decoration:none;transition:border-color .15s}
.docs-pager a:hover{border-color:var(--accent)}
.docs-pager-next{grid-column:2;text-align:right}
.docs-pager-word{color:var(--subtle);font-size:.8125rem}
.docs-pager-previous .docs-pager-word::before{content:"\2190\00a0"}
.docs-pager-next .docs-pager-word::after{content:"\00a0\2192"}
.docs-pager-title{color:var(--ink);font-size:.9375rem;font-weight:600}
.docs-page-meta{grid-area:meta;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.75rem;margin:1rem 0 0;padding-top:1rem;border-top:1px solid var(--rule);color:var(--subtle);font-size:.8125rem}

/* The page itself. */
.docs-article>:first-child{margin-top:0}
.docs-article>:last-child{margin-bottom:0}
.docs-article h2{margin:2.5rem 0 .75rem;font-size:1.5rem;font-weight:600;line-height:1.25;letter-spacing:-.02em;scroll-margin-top:calc(var(--header-height,72px) + 1.5rem)}
.docs-article h3{margin:2rem 0 .5rem;font-size:1.125rem;font-weight:600;line-height:1.3;scroll-margin-top:calc(var(--header-height,72px) + 1.5rem)}
.docs-article h4{margin:1.5rem 0 .5rem;font-size:1rem;scroll-margin-top:calc(var(--header-height,72px) + 1.5rem)}
.docs-article p,.docs-article li{color:var(--ink);line-height:1.7}
.docs-article p{margin:.875rem 0}
.docs-article strong{color:var(--ink);font-weight:600}
.docs-article ul,.docs-article ol{margin:.875rem 0;padding-left:1.35rem}
.docs-article li+li{margin-top:.375rem}
.docs-article li::marker{color:var(--accent)}
.docs-article code{padding:.0625rem .3125rem;border-radius:5px;background:var(--planned-soft);color:var(--ink);font-family:var(--font-mono);font-size:.875em;overflow-wrap:anywhere}
.docs-article pre code{padding:0;background:none;color:inherit;font-size:inherit;overflow-wrap:normal}
.docs-code-frame{margin:1rem 0;border-radius:12px;background:var(--code-bg);overflow:hidden}
.docs-code-bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.25rem .375rem .25rem 1rem;border-bottom:1px solid var(--code-rule)}
.docs-code-label{color:var(--code-ink);font-family:var(--font-mono);font-size:.75rem;opacity:.85}
.docs-code-copy{min-height:36px;padding:0 .75rem;border:1px solid var(--code-rule);border-radius:8px;background:transparent;color:var(--code-ink);font-size:.75rem;font-weight:500}
.docs-code-copy:not(:disabled):hover{border-color:var(--code-ink)}
.docs-code-frame pre{border-radius:0}
.docs-table{margin:1rem 0;overflow-x:auto;border:1px solid var(--border);border-radius:12px;background:var(--paper)}
.docs-table table{width:100%;min-width:32rem;border-collapse:collapse;font-size:.875rem}
.docs-table th{padding:.625rem 1rem;overflow-wrap:normal;word-break:normal;border-bottom:1px solid var(--border);background:var(--band);color:var(--ink);font-size:.8125rem;font-weight:600;text-align:left;vertical-align:bottom}
.docs-table td{padding:.75rem 1rem;border-top:1px solid var(--line-soft,var(--border));color:var(--ink);vertical-align:top;line-height:1.55}
.docs-table tbody tr:first-child td{border-top:0}
.docs-table td:first-child code{white-space:nowrap}
.docs-note{color:var(--muted)}
.docs-article[aria-busy=true]{min-height:12rem}
.docs-article[aria-busy=true]::after{content:"";display:block;height:6.5rem;margin-top:1rem;border-radius:7px;background:linear-gradient(var(--planned-soft) 0 14px,transparent 14px 26px,var(--planned-soft) 26px 40px,transparent 40px 52px,var(--planned-soft) 52px 66px,transparent 66px);background-size:100% 104px;opacity:.9}
.docs-article [data-docs-refused]{padding:1rem 1.125rem;border-radius:12px;background:var(--warn-soft,#FEF2DD);color:var(--warn,#6C4300)}
.docs-article [data-docs-refused] a{color:inherit;font-weight:600}

/* Search: a dialog over the page. The first result is chosen by Enter; the arrow keys move between results. */
.docs-search{width:min(40rem,calc(100vw - 2rem));max-width:none;max-height:min(72vh,40rem);margin:10vh auto auto;padding:0;border:0;border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:var(--panel-shadow)}
.docs-search[open]{display:flex;flex-direction:column}
.docs-search::backdrop{background:rgba(32,22,16,.45)}
.docs-search-bar{display:flex;align-items:center;gap:.625rem;padding:0 .75rem 0 1rem;border-bottom:1px solid var(--rule);color:var(--muted)}
.docs-search-bar input{flex:1 1 auto;min-width:0;min-height:60px;padding:0;border:0;outline:none;background:transparent;color:var(--ink);font-size:1.0625rem}
.docs-search-bar input::-webkit-search-cancel-button{display:none}
.docs-search-close{flex:none;min-height:36px;padding:0 .75rem;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--muted);font-size:.8125rem;font-weight:500}
.docs-search-status{margin:0;padding:.75rem 1.25rem 0;color:var(--subtle);font-size:.8125rem}
.docs-search-status:empty{display:none}
.docs-search-results{flex:1 1 auto;min-height:0;overflow:auto;margin:0;padding:.5rem;list-style:none}
.docs-search-results a{display:flex;flex-direction:column;gap:.125rem;padding:.75rem .875rem;border-radius:10px;color:var(--ink);text-decoration:none}
.docs-search-results a:hover,.docs-search-results a[aria-selected=true]{background:var(--tint,#FFECDD)}
.docs-search-results a:focus-visible{outline-offset:-3px}
.docs-search-crumb{color:var(--subtle);font-size:.75rem}
.docs-search-title{font-size:.9375rem;font-weight:600}
.docs-search-snippet{color:var(--muted);font-size:.8125rem;line-height:1.5}
.docs-search-empty{padding:1.5rem;color:var(--muted);font-size:.9375rem;text-align:center}

@media(max-width:1239px){
  .docs-layout{grid-template-columns:14rem minmax(0,1fr);grid-template-areas:"nav intro" "nav toc" "nav article" "nav pager" "nav meta";column-gap:2.5rem}
  .docs-toc{position:static;margin:0 0 1.5rem;padding:.25rem 1rem;background:var(--paper);border:1px solid var(--border);border-radius:12px}
  .docs-toc summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0;pointer-events:auto;cursor:pointer}
  .docs-toc summary::after{content:"+";font-size:1rem;line-height:1}
  .docs-toc[open] summary::after{content:"\2212"}
  .docs-toc ul{columns:2;column-gap:1.5rem;display:block;border-left:0;padding:0 0 .75rem}
  .docs-toc li{break-inside:avoid}
  .docs-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:999px){
  .docs-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "toc" "article" "pager" "nav" "meta"}
  .docs-nav{position:static;max-height:none;overflow:visible;margin-top:2.5rem;padding:1.5rem 0 0;border-top:1px solid var(--rule)}
  .docs-developer{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:860px){
  .docs-bar-inner{gap:.5rem;padding-right:max(.5rem,calc(var(--band-gutter) - .5rem))}
  .docs-search-open{flex:none;justify-content:center;width:44px;min-height:44px;margin:0;padding:0;border-color:transparent;background:transparent;color:var(--ink)}
  .docs-search-label,.docs-search-key{display:none}
  .docs-tabs a{padding:0 .625rem}
}
@media(max-width:680px){
  .docs-band{padding-top:40px;padding-bottom:40px}
  .docs-quickstarts{padding-top:32px;padding-bottom:0}
  .docs-cards-band{padding-top:24px}
  .docs-page-band{padding-top:1.5rem}
  .docs-intro h1{font-size:1.875rem}
  .docs-lede{font-size:1.0625rem}
  .docs-cards{grid-template-columns:minmax(0,1fr);gap:.625rem}
  .docs-card{padding:1rem 1.125rem}
  .docs-article h2{margin-top:2rem;font-size:1.25rem}
  .docs-toc ul{columns:1}
  .docs-pager{grid-template-columns:minmax(0,1fr)}
  .docs-pager-next{grid-column:1}
  .docs-developer .layer-notes{grid-template-columns:minmax(0,1fr);gap:0}
  .docs-search{margin-top:4vh;max-height:84vh}
  .docs-search-bar input{min-height:56px;font-size:1rem}
}
@media(prefers-reduced-motion:reduce){.docs-card,.docs-pager a{transition:none}}
