/* PageFlow documentation. Opens from the disk: no external resource. */
:root {
    --ink: #1e1b3a;
    --muted: #625f7d;
    --accent: #6d5efc;
    --accent-strong: #5544f0;
    --accent-soft: #efedff;
    --side: #16151f;
    --side-text: #c9c6e6;
    --line: #e7e5f2;
    --bg: #ffffff;
    --soft: #f7f6fc;
    --code: #15132b;
    --code-text: #ece9ff;
    --ok: #12a36a;
    --warn: #c47f00;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff; }
.skip:focus { left: 8px; }

/* Sidebar */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: 290px; background: var(--side); color: var(--side-text); }
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 14px; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(124, 92, 255, .55)); }
.brand span { display: block; font-weight: 700; letter-spacing: .3em; font-size: 16px; color: #b3a3ff; text-shadow: 0 0 14px rgba(124, 92, 255, .7); }
.brand small { display: block; margin-top: 2px; color: #8f8bb3; font-size: 12px; letter-spacing: .02em; }
.brand b { color: #fff; }
.search { position: relative; margin: 6px 18px 12px; }
.search input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid #2d2b40; border-radius: 9px; background: #1f1d2c; color: #fff; font: inherit; font-size: 14px; }
.search input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 0 12px 24px; scrollbar-width: thin; scrollbar-color: #3a3756 transparent; }
.nav-group { margin-top: 14px; }
.nav-group > span { display: block; padding: 0 10px 4px; color: #7e7a9e; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sidebar nav a { display: block; padding: 5px 10px; border-radius: 7px; color: var(--side-text); font-size: 14.5px; text-decoration: none; }
.sidebar nav a:hover { background: #24223a; color: #fff; }
.sidebar nav a.active { background: rgba(124, 92, 255, .2); color: #fff; box-shadow: inset 3px 0 0 #8b6bff; }
.sidebar nav a[hidden] { display: none; }
.topbar { display: none; }

/* Content */
.content { margin-left: 290px; padding: 40px 56px 80px; }
/* The hero spans the whole width; the text keeps a readable measure. */
.content > .section { max-width: 920px; }
.hero { position: relative; overflow: hidden; margin: -40px -56px 40px; padding: 56px 56px 48px; background: radial-gradient(1200px 400px at 85% -10%, rgba(139, 107, 255, .45), transparent 60%), linear-gradient(135deg, #16151f 0%, #23204a 55%, #3b2a9c 100%); color: #fff; }
.hero .eyebrow { color: #b3a3ff; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 10px 0 12px; font-size: 44px; line-height: 1.1; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #c4b5ff, #8b6bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 680px; margin: 0; color: #d9d4ff; font-size: 18px; }
.hero .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero .pills span { padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 30px; color: #fff; font-size: 13px; }
.section { padding-top: 12px; margin-bottom: 48px; }
.section + .section { border-top: 1px solid var(--line); padding-top: 36px; }
h2 { margin: 0 0 14px; font-size: 30px; line-height: 1.2; letter-spacing: -.01em; }
h3 { margin: 30px 0 10px; font-size: 21px; }
h4 { margin: 22px 0 8px; font-size: 17px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 5px; }
.lead { color: var(--muted); font-size: 18px; }
figure { margin: 22px 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(30, 27, 58, .12); }
figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }
code { padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: #3b2fb8; font: .88em/1.5 ui-monospace, Menlo, Consolas, monospace; }
pre { overflow-x: auto; margin: 14px 0 18px; padding: 16px 18px; border-radius: 12px; background: var(--code); color: var(--code-text); font: 13.5px/1.6 ui-monospace, Menlo, Consolas, monospace; tab-size: 4; }
pre code { padding: 0; background: none; color: inherit; font: inherit; }
pre .c { color: #8e88b8; }
pre .s { color: #b9f6a5; }
pre .k { color: #ffb4f0; }
kbd { display: inline-block; min-width: 24px; padding: 1px 7px; border: 1px solid #d4d1e6; border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--ink); font: 600 13px/1.5 ui-monospace, Menlo, Consolas, monospace; text-align: center; }
table { width: 100%; margin: 14px 0 22px; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); font-size: 13px; letter-spacing: .02em; }
td code { white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.card strong { display: block; margin-bottom: 4px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.note, .tip, .warn { margin: 18px 0; padding: 14px 16px 14px 18px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); }
.tip { border-color: var(--ok); background: #e9f8f1; }
.warn { border-color: var(--warn); background: #fff5e0; }
.note p:last-child, .tip p:last-child, .warn p:last-child { margin-bottom: 0; }
.tree { white-space: pre; }
.steps { counter-reset: step; padding-left: 0; list-style: none; }
.steps > li { position: relative; margin-bottom: 14px; padding-left: 40px; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; line-height: 26px; text-align: center; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 600; vertical-align: middle; }
footer { margin-left: 290px; padding: 24px 56px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
    body.menu-open .sidebar { transform: none; }
    .topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--side); color: #fff; }
    .topbar img { width: 30px; height: 30px; }
    .topbar button { padding: 7px 12px; border: 1px solid #3a3756; border-radius: 8px; background: none; color: #fff; font: inherit; font-size: 14px; }
    .content, footer { margin-left: 0; padding-left: 16px; padding-right: 16px; }
    .hero { margin: -40px -16px 32px; padding: 40px 16px 34px; }
    .hero h1 { font-size: 32px; }
    h2 { font-size: 25px; }
    table { display: block; overflow-x: auto; }
}
@media print {
    .sidebar, .topbar { display: none; }
    .content, footer { margin-left: 0; }
}
