/* PREDIKTO Docs: same violet, near-black look as the app, in a GitBook-like layout. Hand-written (the pages are made on the server). */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #0a0a0b; --card: #151517; --inner: #0e0e10; --raised: #1d1d20;
  --line: rgba(255, 255, 255, .07);
  --t1: #f1f1f4; --t2: #c4c4cd; --t3: #9a9aa6; --t4: #8a8a96;
  --v300: #c4b5fd; --v400: #a78bfa; --v500: #8b5cf6; --v600: #7c3aed;
  --amber: #fbbf24; --green: #4ade80; --red: #f87171;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ink); color: var(--t2); font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.7; font-size: 16px; }
a { color: var(--v300); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--v500); outline-offset: 2px; border-radius: 6px; }

.top { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 20px; background: rgba(10, 10, 11, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.01em; flex-shrink: 0; }
.brand em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(139, 92, 246, .16); color: var(--v300); padding: 3px 10px; border-radius: 999px; }
.menu { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--raised); color: var(--t2); cursor: pointer; font-size: 16px; }
.search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.search .mag { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--t4); font-size: 14px; pointer-events: none; }
.search input { width: 100%; height: 44px; background: var(--inner); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 0 16px 0 42px; color: #fff; font: inherit; font-size: 15px; }
.search input::placeholder { color: #5d5d67; }
.search input:focus { outline: none; border-color: var(--v500); }
.results { position: absolute; top: 52px; left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px; max-height: 70vh; overflow: auto; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.results a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--t2); }
.results a:hover, .results a.hl { background: rgba(255, 255, 255, .05); }
.results b { display: block; color: #fff; font-size: 15px; }
.results small { display: block; color: var(--t3); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.results .sec { color: var(--v400); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.results .none { padding: 14px; color: var(--t3); font-size: 14px; }
.open { flex-shrink: 0; background: var(--v600); color: #fff; font-weight: 700; text-decoration: none; height: 44px; padding: 0 22px; border-radius: 16px; display: inline-flex; align-items: center; transition: background .15s; }
.open:hover { background: var(--v500); color: #fff; }

.wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr) 230px; gap: 0; max-width: 1480px; margin: 0 auto; align-items: start; }
.side { position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; padding: 28px 18px 40px 24px; border-right: 1px solid var(--line); }
.nav-sec { margin-bottom: 22px; }
.nav-h { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5d5d67; margin: 0 0 8px 12px; }
.side a { display: block; padding: 8px 12px; border-radius: 12px; color: var(--t3); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.side a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.side a.on { color: #fff; background: rgba(139, 92, 246, .16); box-shadow: inset 3px 0 0 var(--v500); }

.doc { padding: 40px 48px 70px; min-width: 0; }
.crumb { color: var(--v400); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 8px; }
.doc h1 { color: #fff; font-size: 38px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 0 0 22px; }
article h2 { color: #fff; font-size: 25px; line-height: 1.25; font-weight: 800; margin: 44px 0 14px; padding-top: 6px; letter-spacing: -.01em; }
article h3 { color: #fff; font-size: 18px; font-weight: 800; margin: 28px 0 8px; }
article h2, article h3 { position: relative; }
article .anchor { position: absolute; left: -24px; opacity: 0; padding-right: 8px; color: var(--v400); text-decoration: none; font-weight: 600; }
article h2:hover .anchor, article h3:hover .anchor { opacity: 1; }
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 18px; padding-left: 24px; }
article li { margin: 6px 0; }
article li::marker { color: var(--v400); }
article strong { color: #fff; }
article code { background: var(--raised); color: var(--v300); padding: 2px 7px; border-radius: 8px; font-size: .88em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-word; }
article pre { background: var(--inner); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; overflow-x: auto; margin: 0 0 18px; }
article pre code { background: none; padding: 0; color: var(--t2); }
article hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
article blockquote { margin: 0 0 18px; padding: 4px 18px; border-left: 3px solid var(--v500); background: rgba(139, 92, 246, .06); border-radius: 0 14px 14px 0; }
.tbl { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--inner); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 460px; }
.tbl th { text-align: left; color: var(--t3); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, .04); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.callout { border-radius: 18px; padding: 16px 20px 6px; margin: 0 0 20px; border: 1px solid var(--line); background: var(--card); }
.callout p:last-child { margin-bottom: 12px; }
.callout-t { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; }
.callout-note { border-color: rgba(139, 92, 246, .35); background: rgba(139, 92, 246, .07); } .callout-note .callout-t { color: var(--v300); }
.callout-tip { border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .06); } .callout-tip .callout-t { color: var(--green); }
.callout-warn { border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); } .callout-warn .callout-t { color: var(--amber); }
.callout-money { border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); } .callout-money .callout-t { color: var(--amber); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 54px; }
.pn a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: #fff; text-decoration: none; font-weight: 800; }
.pn a:hover { border-color: rgba(139, 92, 246, .55); }
.pn a span { display: block; color: var(--t4); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.pn .next { text-align: right; grid-column: 2; }
.foot { margin-top: 36px; color: #5d5d67; font-size: 13px; }

.toc { position: sticky; top: 68px; padding: 36px 20px 40px 8px; max-height: calc(100vh - 68px); overflow-y: auto; }
.toc a { display: block; padding: 5px 12px; color: var(--t4); text-decoration: none; font-size: 13.5px; line-height: 1.4; border-left: 2px solid var(--line); }
.toc a:hover { color: #fff; }
.toc a.on { color: var(--v300); border-left-color: var(--v500); }

@media (max-width: 1180px) { .wrap { grid-template-columns: 260px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 860px) {
  .menu { display: inline-flex; align-items: center; justify-content: center; }
  .top { padding: 0 14px; gap: 10px; } .brand em { display: none; } .open { display: none; }
  .wrap { display: block; }
  .side { position: fixed; z-index: 50; top: 68px; left: 0; bottom: 0; width: 290px; height: auto; background: var(--ink); transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 60px rgba(0, 0, 0, .7); }
  .side.show { transform: none; }
  .doc { padding: 26px 16px 60px; } .doc h1 { font-size: 30px; }
  article .anchor { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .side { transition: none; } }
