/* verus homepage and docs. Capture's tokens and components, with a little more light. */

/* The safe area above the page, filled with the page's ground. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--background); }

/* ---------- Docs ---------- */
.docs-tabs { display: flex; gap: var(--space-6); padding-left: max(var(--space-6), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-6), env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--border); background: var(--background); overflow-x: auto; }
.docs-tabs a { padding: var(--space-3) 0; color: var(--muted-foreground); text-decoration: none; font: 500 13px/18px var(--font-sans); white-space: nowrap; }
.docs-tabs a[aria-current="page"] { color: var(--foreground); box-shadow: inset 0 -2px 0 var(--foreground); }
.search { flex: 0 1 340px; margin: 0 auto; position: relative; }
.search input { width: 100%; height: 34px; padding: 0 56px 0 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--foreground); font: 400 13px/18px var(--font-sans); }
.search input::placeholder { color: var(--faint-foreground); }
.search .cap-ico { position: absolute; left: 10px; top: 9px; color: var(--faint-foreground); }
.search kbd { position: absolute; right: 8px; top: 7px; padding: 1px 6px; border: 1px solid var(--border); border-radius: 4px; font: 500 11px/16px var(--font-sans); color: var(--faint-foreground); }

.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: var(--space-12); max-width: 1320px; margin: 0 auto; padding-left: max(var(--space-6), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-6), env(safe-area-inset-right, 0px)); }
.docs-nav { position: sticky; top: calc(60px + 46px); align-self: start; max-height: calc(100vh - 106px); overflow-y: auto; padding-block: var(--space-6); display: grid; gap: var(--space-6); }
.docs-nav__group { display: grid; gap: 2px; }
.docs-nav__group > .small { padding: 0 var(--space-3) var(--space-2); color: var(--faint-foreground); }
.docs-nav a { display: flex; align-items: center; gap: var(--space-3); padding: 7px var(--space-3); border-radius: var(--radius-sm); color: var(--muted-foreground); text-decoration: none; font: 500 13px/18px var(--font-sans); }
.docs-nav a:hover { background: var(--rail-hover); color: var(--foreground); }
.docs-nav a[aria-current="page"] { background: var(--rail-active); color: var(--foreground); box-shadow: var(--shadow-lift); }
.docs-nav a .cap-ico { width: 15px; height: 15px; }

.doc { min-width: 0; max-width: 720px; padding-block: var(--space-12) var(--space-16); }
.doc > * + * { margin-top: var(--space-4); }
.doc h1 { font: 300 40px/46px var(--font-serif); letter-spacing: -0.01em; margin: 0; }
.doc .lede { font: 400 17px/26px var(--font-sans); color: var(--muted-foreground); }
.doc h2 { font: 500 20px/28px var(--font-sans); letter-spacing: -0.01em; margin-top: var(--space-12); scroll-margin-top: 120px; }
.doc h3 { font: 500 15px/22px var(--font-sans); margin-top: var(--space-6); scroll-margin-top: 120px; }
.doc p, .doc li { color: var(--foreground); }
.doc p.muted { color: var(--muted-foreground); }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: var(--space-2); }
.doc a { color: var(--primary); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc code:not(pre code) { padding: 1px 5px; border-radius: 5px; background: var(--card); border: 1px solid var(--border); font-size: 12.5px; }
.doc-actions { display: flex; gap: var(--space-2); }

.prompt-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: linear-gradient(120deg, var(--card), var(--background)); }
.prompt-card__text { grid-column: 1 / -1; margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--code); color: var(--foreground); font: 400 13px/21px var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.card-link { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); text-decoration: none !important; color: var(--foreground) !important; transition: border-color .15s, background-color .15s; }
.card-link:hover { border-color: var(--border-strong); background: var(--rail-hover); }
.card-link .cap-ico { color: var(--muted-foreground); }
.card-link .strong { color: var(--primary); }
.card-link .small { color: var(--muted-foreground); }

.qsteps { list-style: none; padding: 0 !important; margin-top: var(--space-6) !important; counter-reset: q; display: grid; gap: 0 !important; }
.qsteps > li { counter-increment: q; position: relative; padding: 0 0 var(--space-8) 44px; }
.qsteps > li::before { content: counter(q); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-full); background: var(--card); border: 1px solid var(--border-strong); font: 500 12px/1 var(--font-sans); color: var(--foreground); }
.qsteps > li::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: 6px; width: 1px; background: var(--border); }
.qsteps > li:last-child::after { display: none; }
.qsteps > li > * + * { margin-top: var(--space-3); }
.qsteps h3 { margin: 2px 0 0 !important; }

.codebox { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--code); overflow: hidden; }
.codebox__bar { display: flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-2) 0 var(--space-3); border-bottom: 1px solid var(--border); background: var(--card); }
.codebox__bar button.tab { padding: var(--space-2) var(--space-2); border: 0; background: none; color: var(--muted-foreground); font: 500 12px/18px var(--font-sans); cursor: pointer; }
.codebox__bar button.tab[aria-selected="true"] { color: var(--foreground); box-shadow: inset 0 -2px 0 var(--foreground); }
.codebox__bar .file { padding: var(--space-2) 0; color: var(--muted-foreground); font: 500 12px/18px var(--font-mono); }
.codebox__bar .cap-btn--quiet { margin-left: auto; height: 30px; font-size: 12px; }
.codebox pre { margin: 0; padding: var(--space-4); overflow-x: auto; font: 400 13px/21px var(--font-mono); color: var(--foreground); }
.codebox pre.codebox__wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.tok-s { color: var(--primary); }
.tok-c { color: var(--faint-foreground); }
.tok-k { color: var(--orb-ice); }

.callout { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--highlight-soft); }
.callout .cap-ico { margin-top: 3px; color: var(--muted-foreground); }

.doc-soon { display: inline-block; margin-left: var(--space-2); padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-full); color: var(--muted-foreground); font: 500 11px/16px var(--font-sans); letter-spacing: 0; white-space: nowrap; vertical-align: 2px; }
.doc p > .doc-soon:first-child { margin: 0 var(--space-2) 0 0; }
.doc p[data-soon], .doc li[data-soon] p:not(.strong) { color: var(--muted-foreground); }

.defs { border-top: 1px solid var(--border); }
.defs > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.defs dt { font-weight: 500; }
.defs dd { margin: 0; color: var(--muted-foreground); }

.tool { padding: var(--space-4) 0; border-bottom: 1px solid var(--border); display: grid; gap: var(--space-2); }
.tool__name { font: 500 14px/20px var(--font-mono); color: var(--foreground); }
.args { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.args code { font-size: 12px !important; color: var(--muted-foreground); }

.toc { position: sticky; top: calc(60px + 46px); align-self: start; padding-block: var(--space-12); display: grid; gap: var(--space-2); }
.toc .small { color: var(--faint-foreground); }
.toc button { padding: 2px 0 2px var(--space-3); border: 0; border-left: 1px solid var(--border); background: none; color: var(--muted-foreground); font: 400 13px/18px var(--font-sans); text-align: left; cursor: pointer; }
.toc button:hover { color: var(--foreground); border-left-color: var(--foreground); }
.pager { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-12) !important; padding-top: var(--space-6); border-top: 1px solid var(--border); }
.pager a { display: grid; gap: 2px; padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--foreground) !important; min-width: 0; }
.pager a .small { color: var(--muted-foreground); }
.pager a.next { text-align: right; margin-left: auto; }

@media (max-width: 1100px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 860px) {
  .search { display: none; }
  .docs, .docs-tabs { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-nav { position: static; max-height: none; grid-auto-flow: column; overflow-x: auto; padding-block: var(--space-3); border-bottom: 1px solid var(--border); }
  .docs-nav__group { grid-auto-flow: column; } .docs-nav__group > .small { display: none; }
  .doc { padding-top: var(--space-8); }
  .defs > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .prompt-card { grid-template-columns: auto minmax(0, 1fr); } .prompt-card .cap-btn { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- Docs inside the app, beside the rail ---------- */
.docs-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; align-items: center; gap: var(--space-6); padding: 0 var(--space-8); border-bottom: 1px solid var(--border); background: var(--background); }
.docs-head .docs-tabs { padding: 0; border-bottom: 0; flex: 1; }
.docs-head .search { margin: 0; flex: 0 1 300px; }
.cap-main .docs { grid-template-columns: 210px minmax(0, 1fr) 180px; gap: var(--space-8); max-width: 1240px; margin: 0; padding: 0 var(--space-8); }
.cap-main .docs-nav, .cap-main .toc { top: 46px; max-height: calc(100vh - 46px); }
@media (max-width: 1360px) { .cap-main .docs { grid-template-columns: 210px minmax(0, 1fr); } .cap-main .toc { display: none; } }
@media (max-width: 860px) {
  .docs-head { padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); position: static; }
  .docs-head .search { display: none; }
  .cap-main .docs { grid-template-columns: minmax(0, 1fr); padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
}

/* ---------- The live check: a proof tree, built as verus's online flow plays ---------- */
.live { position: relative; z-index: 1; min-width: 0; }
.live[hidden] { display: none !important; }
.live__panel { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); box-shadow: var(--shadow-float); }
.live__head { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.live__subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pt-badge { flex: none; padding: 1px 8px; border-radius: var(--radius-full); background: var(--background); border: 1px solid var(--border); font: 500 11px/16px var(--font-sans); color: var(--muted-foreground); }
.pt-verdict { flex: none; margin-left: auto; font: 500 13px/18px var(--font-sans); color: var(--muted-foreground); transition: color .3s; }
.pt-verdict[data-tone="needs-you"] { color: var(--warning); }
.pt-verdict[data-tone="holds"] { color: var(--orb-ice); }

.live__steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.live__steps span { display: grid; gap: 4px; font: 500 10px/12px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--faint-foreground); transition: color .3s; }
.live__steps i { height: 3px; border-radius: var(--radius-full); background: var(--border); transition: background-color .35s; }
.live__steps [data-state="done"] { color: var(--muted-foreground); }
.live__steps [data-state="done"] i { background: var(--muted-foreground); }
.live__steps [data-state="now"] { color: var(--foreground); }
.live__steps [data-state="now"] i { background: var(--orb-ice); box-shadow: 0 0 8px #9dcbd680; }

.live__fit { position: relative; overflow: visible; }
.pt-canvas { position: relative; transform-origin: top left; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 48px; column-gap: 10px; padding: 4px 0 86px; }
.pt-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pt-edge { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-linecap: round; transition: stroke-dashoffset .55s cubic-bezier(.3, .7, .2, 1), stroke .4s ease; }
.pt-edge[data-state="holds"] { stroke: var(--orb-ice); filter: drop-shadow(0 0 4px #9dcbd680); }
.pt-edge[data-state="unknown"] { stroke: var(--warning); }

.pt-node { position: relative; justify-self: center; width: 100%; max-width: 200px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: start; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card);
  opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .4s ease, transform .45s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .4s; }
.pt-node[data-state] { opacity: 1; transform: none; }
.pt-node--root { grid-column: 1 / -1; max-width: 320px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.pt-node--root .pt-text { font: 400 18px/24px var(--font-serif); }
.pt-node--fact { background: var(--background); }
.pt-node__main { display: grid; gap: 2px; min-width: 0; }
.pt-kicker { font: 500 11px/14px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--faint-foreground); }
.pt-text { font: 400 13px/18px var(--font-sans); color: var(--foreground); }
.pt-text mark, .pt-ask mark { background: var(--highlight-soft); color: var(--foreground); border-radius: 4px; padding: 0 3px; }
.pt-val { font: 500 12px/16px var(--font-sans); color: var(--muted-foreground); }
.pt-val:empty { display: none; }
.pt-mark { display: grid; place-items: center; width: 16px; height: 16px; font: 600 12px/1 var(--font-sans); color: var(--muted-foreground); }
.pt-mark .cap-ico { width: 14px; height: 14px; stroke-width: 2; }
.pt-spin { width: 10px; height: 10px; border-radius: var(--radius-full); border: 1.5px solid var(--orb-periwinkle); border-right-color: transparent; animation: pt-turn .8s linear infinite; }
@keyframes pt-turn { to { transform: rotate(1turn); } }
.pt-node[data-state="pending"] { border-style: dashed; }
.pt-node[data-state="checking"] { border-color: var(--orb-periwinkle); box-shadow: 0 0 0 3px #8ca1c526; overflow: hidden; }
.pt-node[data-state="checking"]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #9dcbd61f 50%, transparent 70%); background-size: 220% 100%; animation: pt-shimmer 1.1s linear infinite; pointer-events: none; }
@keyframes pt-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.pt-node[data-state="holds"] { border-color: #9dcbd680; box-shadow: 0 0 22px #9dcbd61f; }
.pt-node[data-state="holds"] .pt-mark { color: var(--orb-ice); }
.pt-node[data-state="unknown"] { border-color: var(--warning); border-style: dashed; box-shadow: 0 0 22px #d69a3c1a; }
.pt-node[data-state="unknown"] .pt-mark, .pt-node[data-state="unknown"] .pt-val { color: var(--warning); }
.pt-node--root[data-state="holds"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 0 40px #e6decc26; }
.pt-node.is-flash { animation: pt-flash 1s ease-out; }
@keyframes pt-flash { from { box-shadow: 0 0 0 6px #9dcbd655; } to { box-shadow: 0 0 0 0 transparent; } }

.pt-ask { position: absolute; z-index: 2; top: calc(100% + 12px); left: 0; width: 250px; display: grid; gap: 4px; padding: 9px 11px; border: 1px solid var(--warning); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-float); font: 400 13px/18px var(--font-sans);
  opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease, border-color .3s; }
.pt-ask::before { content: ""; position: absolute; top: -6px; left: 24px; width: 10px; height: 10px; background: var(--card); border-left: 1px solid; border-top: 1px solid; border-color: inherit; transform: rotate(45deg); }
.pt-ask.is-on { opacity: 1; transform: none; }
.pt-ask.is-answered { border-color: var(--orb-ice); }
.pt-ask .pt-kicker { color: var(--warning); }
.pt-ask.is-answered .pt-kicker { color: var(--orb-ice); }

.pt-sweep { position: absolute; inset: -6px; pointer-events: none; border-radius: var(--radius-md); opacity: 0; background: linear-gradient(100deg, transparent 35%, #e6decc1f 50%, transparent 65%); background-size: 250% 100%; }
.pt-canvas.is-frozen .pt-sweep { animation: pt-sweep 1.2s ease-out forwards; }
@keyframes pt-sweep { 0% { opacity: 1; background-position: 130% 0; } 100% { opacity: 0; background-position: -130% 0; } }

.live__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 36px; padding-top: var(--space-3); border-top: 1px solid var(--border); }
.pt-now { flex: 1 1 260px; min-width: 0; }
.pt-now__line { display: grid; grid-template-columns: 14px auto minmax(0, 1fr); align-items: baseline; column-gap: var(--space-2); animation: pt-say .35s ease; }
@keyframes pt-say { from { opacity: 0; transform: translateY(4px); } }
.pt-now__mark { align-self: center; display: grid; place-items: center; color: var(--orb-ice); }
.pt-now__mark .cap-ico { width: 13px; height: 13px; stroke-width: 2; }
.pt-q { color: var(--warning); font: 600 12px/1 var(--font-sans); }
.pt-now__call { font: 500 12px/16px var(--font-mono); color: var(--foreground); }
.pt-now__text { font: 400 13px/18px var(--font-sans); color: var(--muted-foreground); }
.pt-actions { display: flex; gap: var(--space-2); }
.pt-actions[hidden] { display: none !important; }

@media (max-width: 860px) {
  .live__subject { display: none; }
  .pt-now__line { grid-template-columns: 14px minmax(0, 1fr); }
  .pt-now__text { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-node.is-flash, .pt-canvas.is-frozen .pt-sweep, .pt-now__line, .pt-node[data-state="checking"]::after, .pt-spin { animation: none; }
}

/* ---------- Docs as a tree in the rail; the docs header is search alone ---------- */
.shell > .cap-rail { overflow-y: auto; }
.rail-tree { display: grid; gap: var(--space-2); margin: 2px 0 var(--space-2) 19px; padding: var(--space-1) 0 var(--space-1) var(--space-3); border-left: 1px solid var(--border); }
.rail-tree__group { display: grid; gap: 1px; }
.rail-tree__label { padding: var(--space-1) var(--space-2) 2px; font: 500 11px/14px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--faint-foreground); }
.rail-tree__item { position: relative; display: block; padding: 5px var(--space-2); border-radius: 6px; color: var(--muted-foreground); text-decoration: none; font: 400 13px/18px var(--font-sans); transition: background-color 150ms ease; }
.rail-tree__item:hover { background: var(--rail-hover); color: var(--foreground); transition-duration: 0ms; }
.rail-tree__item[aria-current="page"] { background: var(--rail-active); color: var(--foreground); font-weight: 500; box-shadow: var(--shadow-lift); }
.rail-tree__item[aria-current="page"]::before { content: ""; position: absolute; left: calc(var(--space-3) * -1 - 1px); top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--foreground); }
.rail-tree__item[hidden], .rail-tree__group[hidden] { display: none !important; }

.docs-head { justify-content: center; padding-block: var(--space-3); }
.docs-head .search { flex: 0 1 560px; }
.docs-head .search input { height: 38px; font-size: 14px; }
.docs-head .search .cap-ico { top: 11px; }
.docs-head .search kbd { top: 9px; }
.docs-jump { display: none; }
.cap-main .docs { grid-template-columns: minmax(0, 760px) 180px; justify-content: center; gap: var(--space-12); max-width: none; }
.cap-main .toc { top: 64px; }
@media (max-width: 1240px) { .cap-main .docs { grid-template-columns: minmax(0, 760px); } .cap-main .toc { display: none; } }
@media (max-width: 860px) {
  .rail-tree { display: none; }
  .docs-head { padding: var(--space-3) max(16px, env(safe-area-inset-right, 0px)) var(--space-3) max(16px, env(safe-area-inset-left, 0px)); }
  .docs-head .search { display: none; }
  .docs-jump { display: block; }
}

/* The tree is placed absolutely so its fixed width never widens the panel; ptFit scales it to fit and sets the height. */
.live__panel, .live__head, .live__foot { min-width: 0; }
.live__fit { width: 100%; min-width: 0; }
.live__fit > .pt-canvas { position: absolute; top: 0; left: 0; }

/* ---------- The rail stays a sidebar at every width ----------
   Capture's frosted glass is an absolute ::before on the rail, so the rail must always stay
   positioned (sticky); a static rail let the glass spread over the whole page. */
@media (max-width: 860px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .shell > .cap-rail { position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; width: 200px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; padding: var(--space-6) var(--space-3); border-right: 1px solid var(--border); border-bottom: 0; }
  .cap-rail__brand { width: auto; padding: 0 var(--space-3) var(--space-6); }
  .cap-rail__item, button.cap-rail__item, a.cap-rail__item { width: 100%; }
  .cap-rail__foot { display: block; }
  .rail-tree { display: grid; }
  .docs-head .search { display: block; }
  .docs-jump { display: none; }
}
@media (max-width: 480px) {
  .shell { grid-template-columns: 60px minmax(0, 1fr); }
  .shell > .cap-rail { width: 60px; padding: var(--space-4) var(--space-2); }
  .cap-rail__brand { justify-content: center; padding: 0 0 var(--space-4); }
  .cap-rail__brand .title, .cap-rail__meta, .rail-tree, .cap-rail__foot > div.cap-rail__item { display: none; }
  .cap-rail__item { justify-content: center; gap: 0; padding: 0; font-size: 0; }
  .cap-rail__item .cap-ico { width: 18px; height: 18px; }
  .docs-head .search { display: none; }
  .docs-jump { display: block; }
}

/* Keep the rail foot clear of the last item when the docs tree makes the rail tall. */
.cap-rail__foot { padding-top: var(--space-6); }
.live__head > .label { white-space: nowrap; flex: none; }
.qsteps { grid-template-columns: minmax(0, 1fr); }
.qsteps > li { min-width: 0; }
