/* LIDA Tools — documentation layout (same tokens as site.css).
   The page is the only visible scroll: the sidebar and the on-page contents stick and scroll quietly (no visible bar). */

.docs .site-footer { margin-top: 0; }
.docs-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr) 230px; gap: clamp(24px, 3vw, 56px); max-width: 1480px; margin: 0 auto; padding: calc(var(--header-h) + 28px) var(--gutter) 64px; }
.docs-nav { position: relative; }
.docs-nav-inner { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 4px 8px 40px 2px;
  -webkit-mask: linear-gradient(transparent, #000 12px, #000 calc(100% - 40px), transparent); mask: linear-gradient(transparent, #000 12px, #000 calc(100% - 40px), transparent); }
.docs-nav-inner::-webkit-scrollbar { display: none; }
.docs-product { padding: 8px 0 18px; }
.dp { display: flex; align-items: center; gap: 12px; }
.dp img { width: 34px; height: 34px; }
.dp b { display: block; font: 600 1.0625rem/1.1 var(--f-display); letter-spacing: .05em; }
.dp small { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--text-3); }
.dp-switch { display: flex; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.dp-switch a { flex: 1; text-align: center; padding: 7px 0; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); transition: color .2s, background .2s; }
.dp-switch a:hover { color: var(--text); }
.dp-switch a[aria-current] { background: rgba(255,255,255,.09); color: var(--text); }
.docs-search { position: relative; margin-bottom: 20px; }
.docs-search > .i { position: absolute; left: 13px; top: 12px; width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.docs-search input { width: 100%; height: 42px; padding: 0 40px 0 40px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.035); color: var(--text); font: 500 var(--fs-sm) var(--f-text); outline: none; transition: border-color .2s, background .2s; }
.docs-search input:focus { border-color: rgba(188, 212, 255, .5); background: rgba(255,255,255,.06); }
.docs-search kbd { position: absolute; right: 10px; top: 10px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); font: 600 11px/18px var(--f-text); color: var(--text-3); }
.search-results { position: absolute; left: 0; right: -120px; top: calc(100% + 6px); z-index: 30; max-height: 60vh; overflow: auto; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(12, 15, 30, .97); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); scrollbar-width: thin; }
.search-results a { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.search-results a:last-child { border-bottom: 0; }
.search-results a[aria-selected="true"], .search-results a:hover { background: rgba(75, 149, 255, .14); }
.search-results b { display: block; font-size: var(--fs-sm); color: var(--text); }
.search-results .sr-s { font-size: var(--fs-xs); color: var(--ice); }
.search-results .sr-x { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; }
.search-results mark { background: rgba(75, 149, 255, .3); color: #fff; border-radius: 3px; }
.search-results .sr-none { padding: 14px; font-size: var(--fs-sm); color: var(--text-3); }

.nav-group { margin-top: 18px; }
.nav-label { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; padding: 0 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--text); cursor: default; }
.nav-label .i { width: 15px; height: 15px; color: var(--text-3); }
.nav-group ul { list-style: none; display: grid; gap: 1px; }
.nav-group li a { display: block; padding: 6px 10px 6px 32px; border-radius: 8px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.35; transition: color .15s, background .15s; }
.nav-group li a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-group li a[aria-current="page"] { color: #fff; background: rgba(75, 149, 255, .14); box-shadow: inset 2px 0 0 var(--blue); }
.nav-ref > summary, .nav-sub > summary { list-style: none; cursor: pointer; }
.nav-ref > summary::-webkit-details-marker, .nav-sub > summary::-webkit-details-marker { display: none; }
.nav-ref > summary::after, .nav-sub > summary::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(-45deg); transition: transform .25s; }
.nav-ref[open] > summary::after, .nav-sub[open] > summary::after { transform: rotate(45deg); }
.nav-sub > summary { display: flex; align-items: center; padding: 6px 10px 6px 32px; font-size: var(--fs-sm); color: var(--text-2); border-radius: 8px; }
.nav-sub > summary:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-sub ul { padding-left: 12px; }

.docs-main { min-width: 0; outline: none; }
.doc { max-width: 780px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: #fff; }
.doc-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -.035em; line-height: 1.08; }
.doc-meta { margin-top: 12px; font-size: var(--fs-xs); color: var(--text-3); }
.doc-body { margin-top: 32px; font-size: 1rem; line-height: 1.72; color: #c5cbda; }
.doc-body > * + * { margin-top: 18px; }
.doc-body .lead { font-size: 1.1875rem; color: var(--text-2); line-height: 1.65; }
.doc-body h2 { margin-top: 56px; padding-top: 8px; font-size: 1.625rem; letter-spacing: -.025em; color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-body h3 { margin-top: 36px; font-size: 1.25rem; letter-spacing: -.015em; color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-body h4, .doc-body h5, .doc-body h6 { margin-top: 28px; font-size: 1.0625rem; color: var(--text); }
.doc-body .anchor { float: left; margin-left: -1.1em; width: 1.1em; color: var(--text-3); opacity: 0; transition: opacity .2s; text-decoration: none; }
.doc-body h2:hover .anchor, .doc-body h3:hover .anchor { opacity: 1; }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body ul, .doc-body ol { padding-left: 1.4em; }
.doc-body li + li { margin-top: 6px; }
.doc-body li > ul, .doc-body li > ol { margin-top: 6px; }
.doc-body li::marker { color: var(--text-3); }
.doc-body code { font: 500 .86em/1.4 var(--f-mono); padding: .14em .42em; border-radius: 6px; background: rgba(188, 212, 255, .08); border: 1px solid var(--line); color: #dbe6ff; }
.doc-body hr { border: 0; height: 1px; background: var(--line); margin-block: 40px; }
.doc-body blockquote { margin-inline: 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--line-2); color: var(--text-2); }
.code { border-radius: 14px; border: 1px solid var(--line-2); background: #080a14; overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-3); }
.code-bar .copy { height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text-2); font-size: 12px; cursor: pointer; }
.code-bar .copy:hover { color: #fff; background: rgba(255,255,255,.08); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13px/1.65 var(--f-mono); color: #d6deef; scrollbar-width: thin; }
.code pre code { padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.t-com { color: #6e7891; font-style: italic; } .t-str { color: #9fdcaa; } .t-kw { color: #c9a3ff; } .t-num { color: #ffb98a; } .t-type { color: #8cc3ff; } .t-fn { color: #ffe08a; } .t-mac { color: #ff9eb5; } .t-pre { color: #ff9eb5; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; scrollbar-width: thin; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; }
.doc-body th, .doc-body td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-body thead th { background: rgba(255,255,255,.03); color: var(--text); font-weight: 600; white-space: nowrap; }
.doc-body tbody tr:last-child > * { border-bottom: 0; }
.doc-body table.kv th[scope="row"] { width: 32%; color: var(--text); font-weight: 600; }
.callout { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.callout > * + * { margin-top: 10px; }
.callout-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.callout-title .i { width: 17px; height: 17px; }
.callout-note, .callout-important { border-color: rgba(75, 149, 255, .35); background: rgba(75, 149, 255, .07); }
.callout-note .i, .callout-important .i { color: var(--blue); }
.callout-tip { border-color: rgba(79, 209, 139, .32); background: rgba(79, 209, 139, .06); }
.callout-tip .i { color: var(--ok); }
.callout-warning, .callout-caution { border-color: rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .06); }
.callout-warning .i, .callout-caution .i { color: var(--warn); }
.shot { margin: 28px 0; }
.shot a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0d16; cursor: zoom-in; }
.shot img { width: 100%; transition: transform .8s var(--ease-out); }
.shot a:hover img { transform: scale(1.012); }
.shot figcaption { margin-top: 10px; font-size: var(--fs-xs); color: var(--text-3); text-align: center; }
.toc-mobile { display: none; margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
.toc-mobile summary { cursor: pointer; padding: 10px 0; font-size: var(--fs-sm); font-weight: 600; }
.toc-mobile ul { list-style: none; padding: 0 0 12px; }
.toc-mobile li { padding: 4px 0; font-size: var(--fs-sm); }
.toc-mobile .lvl3 { padding-left: 14px; }
.toc-mobile a { color: var(--text-2); }
.toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: none; font-size: var(--fs-xs); }
.toc::-webkit-scrollbar { display: none; }
.toc-label { font-weight: 600; color: var(--text); margin-bottom: 10px; }
.toc ul { list-style: none; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-3); line-height: 1.4; transition: color .2s, border-color .2s; }
.toc li.lvl3 a { padding-left: 26px; }
.toc li a:hover { color: var(--text); }
.toc li a.on { color: #fff; border-left-color: var(--ice); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; }
.pn { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: border-color .2s, background .2s; }
.pn:hover { border-color: var(--line-3); background: rgba(255,255,255,.04); }
.pn-next { text-align: right; align-items: flex-end; }
.pn-dir { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.pn-dir .i { width: 14px; height: 14px; }
.pn-title { font-weight: 600; color: var(--text); }
.doc-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(20, 25, 50, .5), rgba(10, 12, 24, .5)); }
.doc-help h2 { font-size: var(--fs-md); }
.doc-help p { margin-top: 4px; font-size: var(--fs-sm); color: var(--text-2); max-width: 56ch; }
.docs-toggle { display: none; }
.nav-scrim { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 4vh 4vw; background: rgba(3, 4, 8, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 12px; border: 1px solid var(--line-2); }
.lightbox figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--text-2); }
.lb-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); cursor: pointer; }

@media (max-width: 1180px) {
  .docs-shell { grid-template-columns: 270px minmax(0, 1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 900px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--header-h) + 20px); }
  .docs-nav { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(340px, 88vw); padding: 20px 16px; background: rgba(8, 10, 20, .97); border-right: 1px solid var(--line-2); transform: translateX(-102%); transition: transform .45s var(--ease-out); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .docs-nav-inner { position: static; max-height: 100%; height: 100%; -webkit-mask: none; mask: none; }
  .nav-open .docs-nav { transform: none; }
  .nav-scrim { position: fixed; inset: 0; z-index: 55; display: block; background: rgba(0,0,0,.5); }
  .nav-scrim[hidden] { display: none; }
  .docs-toggle { position: fixed; left: 50%; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; transform: translateX(-50%); border-radius: 999px; border: 1px solid var(--line-2); background: rgba(12, 15, 30, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--text); font-weight: 600; font-size: var(--fs-sm); box-shadow: 0 16px 40px -10px rgba(0,0,0,.7); cursor: pointer; }
  .docs-toggle .i { width: 18px; height: 18px; }
  .search-results { right: 0; }
  .prevnext { grid-template-columns: 1fr; }
}

/* docs hub */
.hub-search { position: relative; max-width: 640px; margin-top: var(--s4); }
.hub-search input { width: 100%; height: 58px; padding: 0 20px 0 52px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font: 500 var(--fs-md) var(--f-text); outline: none; }
.hub-search input:focus { border-color: rgba(188, 212, 255, .5); }
.hub-search > .i { position: absolute; left: 20px; top: 19px; width: 20px; height: 20px; color: var(--text-3); }
.hub-search .search-results { right: 0; }
.manual { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); border-radius: var(--r-xl); border: 1px solid var(--line); background: radial-gradient(120% 80% at 50% 0%, rgba(40, 60, 120, .22), transparent 60%), linear-gradient(180deg, rgba(18, 22, 44, .7), rgba(9, 11, 22, .7)); }
.manual-head { display: flex; align-items: center; gap: 16px; }
.manual-head img { width: 56px; height: 56px; }
.manual-head h2 { font-size: var(--fs-2xl); }
.manual-head small { display: block; margin-top: 4px; font: 500 var(--fs-sm)/1.3 var(--f-text); color: var(--text-2); letter-spacing: 0; }
.manual > p { margin-top: var(--s3); color: var(--text-2); }
.manual .links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; margin-top: var(--s3); list-style: none; }
.manual .links a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-sm); transition: color .2s; }
.manual .links a:hover { color: #fff; }
.manual .links .i { width: 16px; height: 16px; color: var(--text-3); }
.manual .btn-row { margin-top: var(--s4); }
@media (max-width: 560px) { .manual .links { grid-template-columns: 1fr; } }
.doc-body { overflow-wrap: break-word; }
.doc-body code { overflow-wrap: anywhere; }
.doc-body pre code { overflow-wrap: normal; }

/* ================================================================ v2 "blueprint" skin for the manuals */
.docs .guides { display: none; }
.docs .bg-scene .bg-static { opacity: .8; }
.docs-shell { position: relative; z-index: 2; }
.docs-nav-inner { padding-right: 14px; }
.dp { padding: 10px; margin: 0 -2px; border: 1px solid var(--line-2); border-radius: 12px; background: linear-gradient(180deg, rgba(14,17,26,.85), rgba(9,11,17,.94)); transition: border-color .3s; }
.dp:hover { border-color: rgba(110,175,255,.4); }
.dp img { width: 36px; height: 36px; border-radius: 8px; }
.dp b { font: 600 1rem/1.1 var(--f-display); letter-spacing: -.01em; }
.dp small { font: 500 10.5px/1.3 var(--f-mono); color: var(--text-3); }
.dp-switch { border-radius: 10px; border-color: var(--line-2); }
.dp-switch a { border-radius: 7px; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; padding: 8px 0; }
.dp-switch a[aria-current] { background: #fff; color: #000; font-weight: 600; }
.docs-search input { border-radius: 10px; font-size: var(--fs-xs); }
.docs-search input:focus, .hub-search input:focus { border-color: rgba(110,175,255,.6); box-shadow: 0 0 0 4px rgba(75,149,255,.12); }
.docs-search kbd, .hub-search kbd { font-family: var(--f-mono); background: none; }
.search-results { border-radius: 12px; background: rgba(12,14,21,.97); }
.search-results .sr-s { font-family: var(--f-mono); font-size: 11px; color: var(--sky); }
.nav-label { font: 500 10px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #7b8396; margin-bottom: 8px; }
.nav-label .i { color: rgba(110,175,255,.7); }
.nav-group { margin-top: 22px; }
.nav-group li a { border-radius: 6px; font-size: var(--fs-xs); }
.nav-group li a[aria-current="page"] { background: rgba(75,149,255,.1); box-shadow: inset 2px 0 0 var(--blue), 0 0 0 1px rgba(75,149,255,.18); }
.nav-sub > summary { font-size: var(--fs-xs); border-radius: 6px; }
.crumbs { font: 500 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.crumbs a { color: var(--sky); }
.doc-head { position: relative; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.doc-head::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--line-bp); }
.doc-head h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); letter-spacing: -.03em; }
.doc-meta { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.doc-body { color: #c4c8d2; }
.doc-body h2 { position: relative; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1.5rem; }
.doc-body h2::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--line-bp); }
.doc-body h3 { font-size: 1.1875rem; }
.doc-body li::marker { color: var(--cyan); }
.doc-body code { border-radius: 5px; background: rgba(159,180,255,.08); border-color: rgba(159,180,255,.12); color: #bfe0ff; }
.doc-body blockquote { border-left-color: var(--blue); }
.code { border-radius: 12px; background: #050609; }
.code-bar { font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.02); }
.code-bar .copy { border-radius: 4px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.code-bar .copy:hover { background: var(--cyan); color: #000; border-color: var(--cyan); }
.table-wrap { border-color: var(--line-2); border-radius: 12px; background: rgba(9,11,16,.72); }
.doc-body thead th { font: 500 10px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #7b8396; padding: 12px 14px; }
.doc-body tbody tr { transition: background-color .3s; }
.doc-body tbody tr:hover { background: rgba(75,149,255,.05); }
.doc-body tbody tr:hover > :first-child { box-shadow: inset 2px 0 0 var(--blue); }
.callout { border-radius: 10px; border-left-width: 2px; }
.callout-title { font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.shot a { border-radius: 12px; }
.shot figcaption { font: 500 11px/1.5 var(--f-mono); letter-spacing: .04em; }
.toc-label { font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #7b8396; }
.toc li a.on { color: #fff; border-left-color: var(--blue); box-shadow: -1px 0 8px -2px var(--blue); }
.toc-mobile { border-radius: 10px; border-color: var(--line-2); }
.toc-mobile summary { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.pn { position: relative; overflow: hidden; border-radius: 12px; border-color: var(--line-2); background: linear-gradient(180deg, rgba(14,17,26,.85), rgba(9,11,17,.94)); }
.pn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--blue) 30%, var(--cyan) 70%, transparent); transform: scaleX(0); transition: transform .6s var(--ease); }
.pn:hover { border-color: rgba(110,175,255,.4); }
.pn:hover::after { transform: scaleX(1); }
.pn-dir { font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.doc-help { border-radius: 12px; border-color: var(--line-2); background: radial-gradient(ellipse 70% 120% at 50% 130%, rgba(52,92,190,.22), transparent 70%), linear-gradient(180deg, rgba(14,17,26,.85), rgba(9,11,17,.94)); }
.doc-help a:not(.btn) { color: var(--ice); }
.docs-toggle { font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.lightbox img { border-radius: 10px; }
.lb-close { border-radius: 8px; }
/* hub */
.hub-search { margin-top: 32px; }
.hub-search input { height: 54px; border-radius: 12px; font-size: var(--fs-sm); }
.hub-search kbd { position: absolute; right: 14px; top: 16px; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--line-2); font-size: 11px; color: var(--text-3); }
.hub-search > .i { top: 17px; }
.manual { border-radius: var(--r-lg); border-color: var(--line-2); background: radial-gradient(120% 80% at 50% 0%, rgba(40,60,120,.18), transparent 60%), linear-gradient(180deg, rgba(14,17,26,.85), rgba(9,11,17,.94)); }
.manual-head { align-items: center; }
.manual-head .tag-mono { margin-left: auto; align-self: flex-start; }
.manual-head .logo-gl { width: 60px; height: 60px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); }
.manual-head h2 { font-size: var(--fs-xl); }
.manual-head small { font: 500 11px/1.3 var(--f-mono); color: var(--text-3); }
.manual .links a { font-size: var(--fs-xs); }
.manual .links .i { color: rgba(110,175,255,.75); }
.manual .links a:hover .i { color: var(--cyan); }
.docs .site-header .wrap { max-width: 1480px; padding-inline: var(--gutter); }

/* manuals: justified text with clear paragraph spacing */
.doc-body p, .doc-body li, .doc-body blockquote { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
.doc-body > p + p { margin-top: 1.25em; }
.doc-body > p + ul, .doc-body > p + ol, .doc-body > ul + p, .doc-body > ol + p { margin-top: 1.1em; }
.doc-body li + li { margin-top: .55em; }
.doc-body .callout p + p { margin-top: .9em; }
.doc-body td p, .doc-body th p, .doc-body figcaption, .doc-body .callout-title { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
@media (max-width: 600px) { .doc-body .lead { text-align: left; -webkit-hyphens: manual; hyphens: manual; } }

/* ---------------------------------------------------------------- v5: on-this-page indicator, lightbox motion */
.toc li a { position: relative; transition: color .25s, background-color .35s; }
.toc li a.on { box-shadow: none; border-left-color: transparent; background: linear-gradient(90deg, rgba(75,149,255,.12), rgba(75,149,255,.03) 60%, transparent); }
.toc li a::before { content: ""; position: absolute; left: -1px; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(180deg, var(--blue), var(--ice)); transform: scaleY(0); transition: transform .45s cubic-bezier(.22,1,.36,1); }
.toc li a.on::before { transform: scaleY(1); box-shadow: 0 0 6px 0 var(--blue), 0 0 14px 1px rgba(75,149,255,.45); }
.toc li a:hover::before { transform: scaleY(.6); }
.lightbox { background: rgba(3,4,8,.92); }
.lightbox img { object-fit: contain; will-change: transform; }
.lightbox figcaption { opacity: 0; transform: translateY(8px); transition: opacity .5s .25s, transform .6s .25s cubic-bezier(.22,1,.36,1); }
.lightbox.is-open figcaption { opacity: 1; transform: none; }
.lb-close { z-index: 2; color: var(--text-2); transition: color .25s, border-color .25s, background-color .25s, box-shadow .3s, transform .25s cubic-bezier(.22,1,.36,1); opacity: 0; }
.lightbox.is-open .lb-close { opacity: 1; transition-delay: 0s, 0s, 0s, 0s, 0s; }
.lb-close svg { transition: transform .5s cubic-bezier(.22,1,.36,1); }
.lb-close:hover { color: #fff; border-color: rgba(110,175,255,.6); background: rgba(75,149,255,.14); box-shadow: 0 0 22px rgba(75,149,255,.45); }
.lb-close:hover svg { transform: rotate(90deg); }
.lb-close:active { transform: scale(.86); background: rgba(75,149,255,.32); box-shadow: 0 0 30px rgba(110,175,255,.75), inset 0 0 12px rgba(110,175,255,.4); }
.lb-close:active svg { transform: rotate(180deg) scale(.9); }
.lightbox { transition: none; }

/* v9.15 — sidebar search: the results stay inside the sidebar (the sidebar clips anything wider) and the focus ring
   has room at the top */
.search-results { right: 0; }
.search-results .sr-none { line-height: 1.5; }
.docs-search { padding-top: 4px; }
/* custom clear button (the browser's own is hidden), no "/" hint */
.docs-search input::-webkit-search-cancel-button, .hub-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.docs-search input, .hub-search input { padding-right: 44px; }
.ds-clear { position: absolute; right: 7px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--text-3); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, color .2s, border-color .2s, background .2s; }
.docs-search .ds-clear { top: calc(4px + 21px); }
.ds-clear svg { width: 11px; height: 11px; }
.has-q > .ds-clear { opacity: 1; pointer-events: auto; }
.ds-clear:hover { color: #fff; border-color: rgba(110,175,255,.45); background: rgba(75,149,255,.12); }
html[data-theme="light"] .ds-clear:hover { color: #0b1020; }
/* v9.18 — the drawn magnifier, centred in the field; it lights up while the field has focus */
.docs-search > .i-seek, .hub-search > .i-seek { top: 50%; translate: 0 -50%; transition: color .2s; }
.docs-search > .i-seek { top: calc(4px + 21px); width: 15px; height: 15px; left: 14px; }
.hub-search > .i-seek { width: 19px; height: 19px; left: 21px; }
.docs-search:focus-within > .i-seek, .hub-search:focus-within > .i-seek { color: var(--ice); }
/* v9.19 — search fields react to the pointer: the border and the magnifier light up a little and a faint blue glow
   rises from the field; focus stays the stronger state */
.docs-search input, .hub-search input { transition: border-color .25s, background-color .25s, box-shadow .3s; }
.docs-search:hover input:not(:focus), .hub-search:hover input:not(:focus) { border-color: rgba(125,180,255,.4); background-color: rgba(75,149,255,.05); box-shadow: 0 0 0 3px rgba(75,149,255,.06), 0 8px 26px -14px rgba(75,149,255,.55); }
.docs-search:hover > .i-seek, .hub-search:hover > .i-seek { color: #9fd0ff; }
.docs-search > .i-seek, .hub-search > .i-seek { transition: color .25s, transform .3s var(--ease); }
.docs-search:hover > .i-seek, .hub-search:hover > .i-seek { transform: rotate(-8deg) scale(1.08); }
html[data-theme="light"] .docs-search:hover input:not(:focus), html[data-theme="light"] .hub-search:hover input:not(:focus) { border-color: rgba(40,110,240,.38); background-color: rgba(40,110,240,.04); box-shadow: 0 0 0 3px rgba(40,110,240,.06), 0 8px 24px -14px rgba(40,110,240,.4); }
html[data-theme="light"] .docs-search:hover > .i-seek, html[data-theme="light"] .hub-search:hover > .i-seek { color: #2f6fe0; }
/* v9.25 — "On this page": soft fade at the top / bottom edge while there is more list to scroll */
.toc { --ft: 0px; --fb: 0px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft), #000 calc(100% - var(--fb)), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft), #000 calc(100% - var(--fb)), transparent 100%); padding-bottom: 8px; }
