/* Cons docs. Same tokens as the site, standalone because the docs are
   generated into public/ and never pass through the Vite bundle.
   Layout: a grouped browse rail, a reading column and a local outline, the
   usual protocol docs pattern in Cons's own palette and type. */
@font-face { font-family: "Basier"; src: url("/fonts/basier-circle-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Basier"; src: url("/fonts/basier-circle-medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fafafa; --surface: #ffffff; --surface-2: #f5f5f5;
  --ink: 20 20 20; --gold: 171 143 100;
  --line: rgb(20 20 20 / 0.08); --line-2: rgb(20 20 20 / 0.12); --line-3: rgb(20 20 20 / 0.2);
  --text: #333333; --strong: #141414; --muted: #737373; --dim: #a3a3a3;
  --accent: #9c7c4c; --accent-2: #c9a878; --accent-fill: #e8c289;
  --accent-soft: rgb(171 143 100 / 0.1); --accent-line: rgb(171 143 100 / 0.42);
  --hub: #fbf5ea; --hub-2: #f7ecd9;
  --ok: #2f8f5b;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --top: 64px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 24px); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 "Basier", system-ui, sans-serif; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { font: 400 11px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; background: var(--surface); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--strong); color: #fff; font-size: 14px; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------- top bar -- */
.docs-top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr minmax(0, 420px) 1fr; align-items: center; gap: 16px; height: var(--top); padding: 0 24px; background: rgb(250 250 250 / 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-left, .top-right { display: flex; align-items: center; gap: 12px; }
.top-right { justify-content: flex-end; }
.docs-brand img { display: block; height: 22px; width: auto; }
.docs-tag { font: 400 11.5px var(--mono); color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 6px; padding: 3px 8px; }
.search-btn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 14px; box-shadow: 0 1px 2px rgb(var(--ink) / 0.04); transition: border-color 0.2s, box-shadow 0.2s; }
.search-btn span { flex: 1; text-align: left; }
.search-btn:hover { border-color: var(--line-3); box-shadow: 0 4px 16px -8px rgb(var(--ink) / 0.2); }
.top-link { font-size: 14px; color: var(--text); padding: 6px 4px; }
.top-link:hover { color: var(--strong); }
.top-cta { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--strong); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 1px 0 rgb(var(--ink) / 0.4) inset, 0 6px 20px -8px rgb(var(--ink) / 0.35); transition: filter 0.2s, box-shadow 0.2s; }
.top-cta:hover { filter: brightness(1.15); box-shadow: 0 1px 0 rgb(var(--ink) / 0.4) inset, 0 10px 28px -8px rgb(var(--gold) / 0.45); }
.icon-btn { display: none; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--strong); }
.icon-btn svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------- shell -- */
.docs-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr) 232px; max-width: 1400px; margin: 0 auto; min-height: calc(100vh - var(--top)); }
.rail-label { margin: 0 0 8px 12px; font: 400 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }

.docs-rail { position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); border-right: 1px solid var(--line); }
.rail-inner { height: 100%; overflow-y: auto; padding: 28px 16px 40px; scrollbar-width: thin; }
.rail-group + .rail-group { margin-top: 22px; }
.docs-rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.docs-rail a { position: relative; display: block; padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; transition: color 0.15s, background 0.15s; }
.docs-rail a:hover { color: var(--strong); background: rgb(var(--ink) / 0.04); }
.docs-rail a[aria-current="page"] { color: var(--strong); font-weight: 500; background: linear-gradient(90deg, rgb(var(--gold) / 0.14), rgb(var(--gold) / 0.05)); }
.docs-rail a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--accent); }

.docs-main { min-width: 0; padding: 40px clamp(20px, 5vw, 64px) 40px; }
.docs-article { max-width: 760px; margin: 0 auto; }

/* ------------------------------------------------------------- article -- */
.docs-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font: 400 12px var(--mono); color: var(--dim); }
.crumbs { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-3); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs li:last-child { color: var(--accent); }

.docs-article h1 { margin: 0 0 16px; font-size: clamp(34px, 4.2vw, 46px); line-height: 1.06; letter-spacing: -0.045em; font-weight: 500; color: var(--strong); }
.docs-lede { font-size: 18.5px; line-height: 1.62; color: var(--text); margin: 0 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.docs-article h2, .docs-article h3, .docs-article h4 { position: relative; color: var(--strong); font-weight: 500; }
.docs-article h2 { margin: 52px 0 14px; font-size: 26px; line-height: 1.2; letter-spacing: -0.035em; }
.docs-article h3 { margin: 34px 0 10px; font-size: 19px; letter-spacing: -0.02em; }
.docs-article h4 { margin: 26px 0 8px; font-size: 16px; }
.docs-anchor { position: absolute; left: -28px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--dim); opacity: 0; transition: opacity 0.15s, color 0.15s; }
.docs-anchor svg { width: 14px; height: 14px; }
h2:hover .docs-anchor, h3:hover .docs-anchor, h4:hover .docs-anchor, .docs-anchor:focus-visible { opacity: 1; }
.docs-anchor:hover { color: var(--accent); }
.docs-article :target { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 30% { background: var(--accent-soft); box-shadow: -10px 0 0 var(--accent-soft), 10px 0 0 var(--accent-soft); } 100% { background: transparent; } }

.docs-article p, .docs-article li { color: var(--text); }
.docs-article p { margin: 0 0 16px; }
.docs-article ul, .docs-article ol:not(.crumbs) { margin: 0 0 20px; padding-left: 0; list-style: none; }
.docs-article li:not(.crumbs li) { position: relative; padding-left: 22px; margin: 6px 0; }
.docs-article ul > li::before { content: ""; position: absolute; left: 6px; top: 0.72em; width: 5px; height: 5px; border-radius: 2px; background: var(--accent-2); }
.docs-article ol:not(.crumbs) { counter-reset: n; }
.docs-article ol:not(.crumbs) > li { counter-increment: n; padding-left: 30px; }
.docs-article ol:not(.crumbs) > li::before { content: counter(n); position: absolute; left: 0; top: 0.25em; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 400 11px var(--mono); }
.docs-article strong { color: var(--strong); font-weight: 500; }
.docs-article a:not(.docs-anchor):not(.home-card) { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.docs-article a:not(.docs-anchor):not(.home-card):hover { text-decoration-color: currentColor; }
.docs-article :not(pre) > code { font: 400 0.86em var(--mono); background: rgb(var(--ink) / 0.05); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; color: var(--strong); }
.docs-article hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* Callouts */
.docs-callout { margin: 24px 0; padding: 16px 18px 16px 20px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent-2); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgb(var(--ink) / 0.04); }
.docs-callout p { margin: 0; }
.docs-callout p + p { margin-top: 8px; }
.docs-callout.is-key { border-color: var(--accent-line); border-left-color: var(--accent); background: linear-gradient(135deg, var(--hub), var(--surface) 70%); }
.docs-callout-title { font: 400 11px var(--mono) !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: 6px !important; }
.docs-callout.is-key p:not(.docs-callout-title) { font-size: 17.5px; color: var(--strong); letter-spacing: -0.015em; }
.docs-rule { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; padding: 14px 16px; border: 1px dashed var(--accent-line); border-radius: 12px; background: var(--accent-soft); font: 400 14px/1.6 var(--mono); color: var(--strong); }
.docs-rule span { flex: none; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* Code */
.docs-code { margin: 20px 0 24px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: 0 1px 2px rgb(var(--ink) / 0.04); }
.docs-code-bar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font: 400 11.5px var(--mono); color: var(--muted); }
.docs-copy { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 7px; color: var(--muted); font: 400 11.5px var(--mono); transition: background 0.15s, color 0.15s; }
.docs-copy svg { width: 14px; height: 14px; }
.docs-copy:hover { background: rgb(var(--ink) / 0.06); color: var(--strong); }
.docs-copy.done { color: var(--ok); }
.docs-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.docs-code code { font: 400 13.5px/1.7 var(--mono); color: #2b2b2b; }
.tok-k { color: #8a5a1e; } .tok-s { color: #2f7a52; } .tok-n { color: #9c4c7c; } .tok-p { color: var(--dim); } .tok-t { color: #3b64a8; }

/* Tables */
.docs-table-wrap { margin: 20px 0 26px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgb(var(--ink) / 0.04); }
.docs-article table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs-article th { padding: 10px 14px; text-align: left; background: var(--surface-2); border-bottom: 1px solid var(--line-2); font: 400 11px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.docs-article td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-article tr:last-child td { border-bottom: 0; }
.docs-article tbody tr:hover td { background: rgb(var(--gold) / 0.04); }
.docs-article td:first-child { color: var(--strong); font-weight: 500; }

/* Diagrams, drawn from the doc set's ASCII */
.docs-diagram { margin: 24px 0 28px; padding: 28px 20px; border: 1px solid var(--line-2); border-radius: 14px; background-color: var(--surface); background-image: radial-gradient(rgb(var(--ink) / 0.07) 1px, transparent 1px); background-size: 16px 16px; background-position: center; box-shadow: 0 1px 2px rgb(var(--ink) / 0.04); }
.docs-diagram figcaption { margin-top: 16px; text-align: center; font: 400 12px var(--mono); color: var(--muted); }
.dg-flow { display: flex; flex-direction: column; align-items: center; margin: 0 !important; padding: 0; list-style: none; }
.dg-flow > li { margin: 0 !important; padding: 0 !important; }
.dg-flow > li::before { content: none !important; }
.dg-node { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 176px; max-width: 100%; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--strong); font-size: 14px; font-weight: 500; line-height: 1.35; text-align: center; box-shadow: 0 1px 0 rgb(var(--ink) / 0.03), 0 8px 18px -12px rgb(var(--ink) / 0.3); }
.dg-node small { margin-top: 2px; font: 400 11px var(--mono); color: var(--muted); }
.dg-node.is-cons { border-color: var(--accent-line); background: linear-gradient(180deg, var(--hub), var(--hub-2)); color: #6b5230; box-shadow: 0 0 0 4px rgb(var(--gold) / 0.1), 0 10px 24px -12px rgb(var(--gold) / 0.7); }
.dg-node.is-state { font: 400 12.5px var(--mono); letter-spacing: 0.02em; }
.dg-link { position: relative; display: grid; place-items: center; width: 1px; height: 30px; background: linear-gradient(var(--line-3), var(--accent-2)); }
.dg-link::after { content: ""; position: absolute; bottom: -1px; left: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--accent-2); border-bottom: 1.5px solid var(--accent-2); transform: translate(-50%, -2px) rotate(45deg); }
.dg-link span { position: absolute; left: 12px; white-space: nowrap; font: 400 11px var(--mono); color: var(--accent); background: var(--surface); border: 1px solid var(--accent-line); border-radius: 5px; padding: 0 6px; }
.dg-row { position: relative; display: grid !important; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; width: min(100%, calc(var(--n) * 170px)); padding: 12px !important; border: 1px dashed var(--line-3); border-radius: 12px; background: rgb(250 250 250 / 0.8); }
.dg-row .dg-node { min-width: 0; padding: 9px 10px; }
.dg-row em { position: absolute; left: 50%; bottom: -9px; translate: -50% 0; padding: 0 6px; background: var(--surface); font: normal 400 10.5px var(--mono); letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.dg-tree { display: flex; flex-direction: column; align-items: center; }
.dg-tree ul { position: relative; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 30px 0 0 !important; padding: 0; }
.dg-tree ul::before { content: ""; position: absolute; top: -30px; left: 50%; width: 1px; height: 15px; background: var(--line-3); }
.dg-tree li { position: relative; margin: 0 !important; padding: 0 !important; }
.dg-tree li::before { content: "" !important; position: absolute; top: -15px !important; left: 50% !important; width: 1px !important; height: 15px !important; border-radius: 0 !important; background: var(--line-3) !important; }
.dg-tree li::after { content: ""; position: absolute; top: -15px; left: -6px; right: -6px; border-top: 1px solid var(--line-3); }
.dg-tree li:first-child::after { left: 50%; }
.dg-tree li:last-child::after { right: 50%; }
.dg-tree li:only-child::after { display: none; }
.dg-tree .dg-node { min-width: 150px; }

/* Docs home */
.docs-home { margin-top: 56px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgb(var(--ink) / 0.04); transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.home-card:hover { border-color: var(--accent-line); box-shadow: 0 16px 36px -20px rgb(var(--gold) / 0.6); transform: translateY(-2px); }
.home-num { font: 400 11px var(--mono); color: var(--accent); }
.home-card strong { font-size: 18px; letter-spacing: -0.02em; }
.home-card p { margin: 0 !important; font-size: 14px; color: var(--muted) !important; }
.home-card ul { margin: 10px 0 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.home-card li { margin: 0 !important; padding: 2px 8px !important; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--text); background: var(--surface-2); }
.home-card li::before { content: none !important; }
.home-go { position: absolute; top: 18px; right: 18px; color: var(--dim); transition: color 0.2s, transform 0.25s var(--ease); }
.home-card:hover .home-go { color: var(--accent); transform: translateX(3px); }

/* Pager and footer */
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; margin: 64px auto 0; }
.docs-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); transition: border-color 0.2s, box-shadow 0.25s var(--ease); }
.docs-pager a:hover { border-color: var(--accent-line); box-shadow: 0 12px 30px -20px rgb(var(--gold) / 0.7); }
.docs-pager span { font: 400 11px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); }
.docs-pager strong { display: flex; align-items: center; gap: 8px; color: var(--strong); font-weight: 500; }
.docs-pager svg { color: var(--accent); }
.pager-next { grid-column: 2; text-align: right; align-items: flex-end; }
.docs-foot { display: flex; justify-content: space-between; max-width: 760px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font: 400 12px var(--mono); color: var(--dim); }

/* ------------------------------------------------------------- outline -- */
.docs-outline { position: sticky; top: var(--top); align-self: start; max-height: calc(100vh - var(--top)); overflow-y: auto; padding: 40px 20px 40px 8px; scrollbar-width: thin; }
.docs-outline ul { list-style: none; margin: 0 0 16px; padding: 0; border-left: 1px solid var(--line); }
.docs-outline li a { display: block; margin-left: -1px; padding: 5px 0 5px 12px; border-left: 1px solid transparent; font-size: 13px; line-height: 1.4; color: var(--muted); transition: color 0.15s, border-color 0.15s; }
.docs-outline li.d3 a { padding-left: 24px; font-size: 12.5px; }
.docs-outline li a:hover { color: var(--strong); }
.docs-outline li a.is-active { color: var(--accent); border-left-color: var(--accent); }
.outline-top { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; font: 400 12px var(--mono); color: var(--dim); }
.outline-top svg { width: 13px; height: 13px; }
.outline-top:hover { color: var(--accent); }

/* -------------------------------------------------------------- search -- */
.search { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgb(20 20 20 / 0.28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade 0.18s ease; }
.search[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.search-panel { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); box-shadow: 0 30px 80px -20px rgb(var(--ink) / 0.45); overflow: hidden; animation: pop 0.22s var(--ease); }
@keyframes pop { from { transform: translateY(8px) scale(0.98); opacity: 0; } }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-field svg { width: 18px; height: 18px; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 16px "Basier", system-ui, sans-serif; color: var(--strong); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; }
.search-results li[aria-selected="true"] a { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.search-results .r-path { display: block; font: 400 11px var(--mono); color: var(--dim); }
.search-results .r-title { display: block; margin: 1px 0 2px; color: var(--strong); font-weight: 500; font-size: 15px; }
.search-results .r-text { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-results mark { background: rgb(var(--gold) / 0.24); color: var(--strong); border-radius: 3px; padding: 0 1px; }
.search-empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.search-group { padding: 10px 12px 4px; font: 400 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.search-hint { display: flex; gap: 16px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.search-hint kbd { margin-right: 3px; }

/* -------------------------------------------------------------- reveal -- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 1200px) {
  .docs-shell { grid-template-columns: 248px minmax(0, 1fr); }
  .docs-outline { display: none; }
}
@media (max-width: 900px) {
  :root { --top: 60px; }
  .docs-top { grid-template-columns: 1fr auto; padding: 0 16px; }
  .search-btn, .top-link { display: none; }
  .icon-btn { display: grid; }
  .docs-shell { grid-template-columns: minmax(0, 1fr); }
  .docs-rail { position: fixed; top: 0; left: 0; bottom: 0; z-index: 30; width: min(300px, 84vw); height: 100%; background: var(--bg); box-shadow: 20px 0 60px -20px rgb(var(--ink) / 0.3); transform: translateX(-102%); transition: transform 0.3s var(--ease); }
  .docs-rail.open { transform: none; }
  .rail-scrim { position: fixed; inset: 0; z-index: 25; background: rgb(20 20 20 / 0.25); }
  .rail-scrim[hidden] { display: none; }
  .docs-main { padding: 28px 16px 32px; }
  .docs-anchor { display: none; }
  .docs-lede { font-size: 17px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next { grid-column: 1; }
  .dg-node { min-width: 0; }
  .dg-row { gap: 8px; padding: 10px 10px 18px !important; }
  .dg-row .dg-node { font-size: 12.5px; padding: 8px 6px; }
  .search { padding-top: 16px; }
  .search-hint { display: none; }
}
@media (max-width: 420px) {
  .docs-tag { display: none; }
  .top-cta { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
