/* The docs at helpdear.com/docs. Plain CSS; pages are generated by scripts/build-docs.mjs. */
:root {
    --accent: #0891b2;
    --accent-strong: #0e7490;
    --accent-soft: #ecfeff;
    --ink: #0f172a;
    --muted: #5b6472;
    --faint: #8b93a1;
    --line: #e6e9ee;
    --bg: #ffffff;
    --raised: #f7f8fa;
    --code: #f4f6f8;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --accent: #22d3ee;
        --accent-strong: #67e8f9;
        --accent-soft: #0b2a31;
        --ink: #ececec;
        --muted: #a3a3a3;
        --faint: #737373;
        --line: #313131;
        --bg: #181818;
        --raised: #1f1f1f;
        --code: #1f1f1f;
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/24px "Geist", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 24px; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: 16px; }
.brand span { color: var(--faint); font-weight: 500; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: background-color 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.links a:hover { color: var(--ink); background: var(--raised); }
.button { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; line-height: 20px; text-decoration: none; transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), background-color 300ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-color-scheme: dark) { .button { color: #000; } }
.button:hover { background: var(--accent-strong); }
.button:active { transform: scale(0.98); }
.menu { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; position: relative; }
.menu span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.menu span:first-child { top: 15px; }
.menu span:last-child { top: 23px; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; max-width: 1280px; margin: 0 auto; }
.sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 32px 16px 32px 24px; }
.nav-group { margin-bottom: 24px; }
.nav-title { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 12px 8px; }
.sidebar a, .toc a { display: block; padding: 4px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 20px; }
.sidebar a { padding: 8px 12px; }
.sidebar a:hover, .toc a:hover { color: var(--ink); }
.sidebar a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 500; }
.toc { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 40px 24px 32px 8px; }
.toc a.active { color: var(--accent-strong); }
.content { min-width: 0; padding: 40px 48px 96px; }
.doc { max-width: 760px; }
.doc h1 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); margin: 0 0 32px; text-wrap: pretty; }
.doc h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 48px 0 12px; letter-spacing: -0.01em; position: relative; }
.doc h3 { font-size: 18px; line-height: 28px; font-weight: 600; margin: 32px 0 8px; position: relative; }
.anchor { position: absolute; left: -24px; color: var(--faint); text-decoration: none; opacity: 0; transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1); }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
.doc p, .doc li { color: var(--ink); text-wrap: pretty; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 24px; margin: 0 0 16px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--accent-strong); text-underline-offset: 2px; }
.doc code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 14px; background: var(--code); border-radius: 4px; padding: 2px 4px; }
.code { position: relative; margin: 0 0 24px; }
.code pre { margin: 0; overflow-x: auto; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px 64px 16px 16px; font-size: 14px; line-height: 20px; }
@media (prefers-color-scheme: dark) { .code pre { background: #000; border: 1px solid var(--line); } }
.code pre code { background: none; padding: 0; color: inherit; }
.copy { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 8px; padding: 4px 8px; background: rgb(255 255 255 / 0.1); color: #e2e8f0; font: 500 12px/16px "Geist", sans-serif; cursor: pointer; transition: background-color 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.copy:hover { background: rgb(255 255 255 / 0.2); }
.table { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 20px; }
th { text-align: left; font-weight: 600; background: var(--raised); }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin-top: 64px; }
.pager a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 500; transition: background-color 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.pager a:hover { background: var(--raised); }
.pager span { display: block; font-size: 12px; line-height: 16px; color: var(--faint); font-weight: 500; }
.pager .next { text-align: right; }
@media (max-width: 1100px) { .layout { grid-template-columns: 240px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 800px) {
    .layout { grid-template-columns: 1fr; }
    .menu { display: inline-block; }
    .links { display: none; }
    .top { padding: 0 16px; gap: 8px; }
    .brand { margin-right: auto; }
    .sidebar { position: fixed; inset: 64px 0 0; height: auto; z-index: 15; background: color-mix(in oklab, var(--bg) 96%, transparent); backdrop-filter: blur(16px); padding: 24px 16px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1), transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
    .sidebar.open { opacity: 1; transform: none; pointer-events: auto; }
    .content { padding: 32px 16px 64px; }
    .doc h1 { font-size: 30px; line-height: 36px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0ms !important; } }
