/* Docs pages: loaded after ../site.css and uses its tokens. No inline style anywhere (the site's CSP forbids it). */
.docs{padding-block:32px 72px}
.docgrid{display:grid;gap:28px;align-items:start}
.docnav{border:1px solid var(--line);border-radius:var(--rs);background:var(--card);padding:14px 16px;font-size:.9375rem}
.docnav h2{font:600 .75rem/1.2 var(--mono);letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
.docnav ul{display:grid;gap:2px}
.docnav a{display:block;padding:.35em .6em;border-radius:6px;color:var(--fg);text-decoration:none}
.docnav a:hover{background:var(--bg2)}
.docnav a[aria-current=page]{background:color-mix(in srgb,var(--blue) 12%,transparent);color:var(--blue);font-weight:600}
.docnav ul ul{margin:2px 0 6px 14px;border-left:1px solid var(--line);padding-left:6px}
.docnav ul ul a{font-size:.875rem;color:var(--muted)}
.doc{min-width:0;max-width:760px}
.doc h1{font-size:clamp(1.75rem,4vw,2.375rem);line-height:1.12;margin-bottom:14px;max-width:none}
.doc h2{margin:40px 0 12px;padding-top:6px;border-top:1px solid var(--line)}
.doc h3{font-size:1.0625rem;font-weight:650;line-height:1.3;margin:24px 0 8px}
.doc p{margin:0 0 14px}
.doc .intro{font-size:1.0625rem;color:var(--muted)}
.doc ul,.doc ol{margin:0 0 16px;padding-left:1.3em;display:grid;gap:7px}
.doc ul{list-style:disc}
.doc ol{list-style:decimal}
.doc li::marker{color:var(--muted)}
.doc table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:.9375rem}
.doc th,.doc td{text-align:left;vertical-align:top;padding:9px 12px;border-bottom:1px solid var(--line)}
.doc th{font:600 .75rem/1.2 var(--mono);letter-spacing:.05em;text-transform:uppercase;color:var(--muted);border-bottom-color:var(--line2)}
.doc td:first-child{font-weight:600;white-space:nowrap}
.doc .tablewrap{overflow-x:auto;margin:0 0 20px}
.doc .tablewrap table{margin:0;min-width:520px}
.doc pre{margin:0 0 16px;padding:14px;overflow-x:auto;font:.8125rem/1.55 var(--mono);background:var(--bg2);border:1px solid var(--line);border-radius:var(--rs)}
.doc pre code{background:none;padding:0}
.doc hr{border:0;border-top:1px solid var(--line);margin:28px 0}
.doc .pager{display:flex;justify-content:space-between;gap:16px;margin-top:48px;padding-top:18px;border-top:1px solid var(--line);font-weight:600}
.doccards{display:grid;gap:14px;margin:24px 0 8px}
.doccards a{display:grid;gap:4px;border:1px solid var(--line);border-radius:var(--rs);background:var(--card);padding:16px 18px;text-decoration:none;color:var(--fg)}
.doccards a:hover{border-color:var(--line2);background:var(--bg2)}
.doccards b{font-size:1.0625rem;font-weight:650}
.doccards span{color:var(--muted);font-size:.9375rem}
@media (max-width:899px){.docnav ul ul{display:none}}
@media (min-width:900px){
  .docgrid{grid-template-columns:240px minmax(0,1fr);gap:48px}
  .docnav{position:sticky;top:84px}
  .doccards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.doc tbody th{font:inherit;letter-spacing:0;text-transform:none;color:var(--fg);font-weight:600;white-space:nowrap}
.doc tbody th,.doc tbody td{border-bottom:1px solid var(--line)}
.docnav .docnote{margin:10px 0 0;font-size:.875rem;color:var(--muted)}

/* ---- callouts, glance, folds, figures (no inline style, no script) ---- */
.doc aside{margin:0 0 18px;padding:12px 16px;border-radius:var(--rs);background:var(--bg2);border:1px solid var(--line);color:var(--fg);overflow-wrap:anywhere}
.doc aside>:last-child{margin-bottom:0}
.doc aside p,.doc aside ul,.doc aside ol{margin-bottom:10px}
.callout-label,.glance-title{font:700 .75rem/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;margin:0 0 6px;color:var(--fg)}
.callout{border-left-width:6px}
.callout-note{border-left-style:solid;border-left-color:var(--blue);background:var(--accentbg)}
.callout-limit{border-left-style:double;border-left-width:8px;border-left-color:var(--warnfg)}
.callout-tip{border-left-style:dashed;border-left-color:var(--okc)}
.glance{background:var(--card);border:2px solid var(--line2);border-radius:var(--rs);padding:14px 18px}
.glance-title{font:650 1.0625rem/1.3 var(--sans);letter-spacing:0;text-transform:none;margin-bottom:8px}
details.fold{margin:0 0 12px;border:1px solid var(--line);border-radius:var(--rs);background:var(--card)}
details.fold>summary{display:flex;align-items:center;gap:.6em;min-height:44px;padding:10px 14px;cursor:pointer;font-weight:600;list-style:none;border-radius:var(--rs);color:var(--fg)}
details.fold>summary::-webkit-details-marker{display:none}
details.fold>summary::before{content:"";flex:none;width:.5em;height:.5em;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(-45deg);margin-inline:.2em .1em}
details.fold[open]>summary::before{transform:rotate(45deg)}
details.fold>summary:hover{background:var(--bg2)}
details.fold>summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
details.fold[open]>summary{border-bottom:1px solid var(--line);border-bottom-left-radius:0;border-bottom-right-radius:0}
details.fold>:not(summary){margin-inline:14px}
details.fold>summary+*{margin-top:12px}
details.fold>:last-child{margin-bottom:14px}
.doc figure{margin:0 0 20px;max-width:100%}
.doc figure.shot{border:1px solid var(--line);border-radius:var(--rs);background:var(--card);box-shadow:var(--shadow);overflow:hidden}
.doc figure.shot img{display:block;max-width:min(100%,640px);height:auto;margin:0 auto}
.doc figure.shot img[width]{max-width:100%}
.doc figcaption{padding:9px 14px;font-size:.875rem;line-height:1.45;color:var(--muted);border-top:1px solid var(--line);background:var(--bg2)}
.doc figure.shot-missing{border-style:dashed;border-color:var(--line2)}
.shot-placeholder{display:grid;gap:6px;place-items:center;text-align:center;padding:28px 16px;min-height:120px;background:var(--bg2);color:var(--fg);overflow-wrap:anywhere}
.shot-placeholder strong{font:700 .75rem/1.3 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.shot-placeholder span{font-size:.9375rem}
.doc figure.figure-svg{border:1px solid var(--line);border-radius:var(--rs);background:var(--card);overflow:hidden}
.doc figure.figure-svg>svg{display:block;width:100%;height:auto;max-width:100%}
.doc figure.figure-svg.shot-missing{border:1px dashed var(--line2)}
@media (prefers-reduced-motion:reduce){details.fold>summary::before{transition:none}}

/* Inline SVG figures (docs/user/figures/*.svg). The SVGs carry their light colours as attributes (so they stay readable if this file is stale or variables fail); this block adds fonts, weights and the dark-mode colours, as plain values (no var()). The site CSP is style-src 'self': no inline <style> or style= in the SVGs. */
.rkaf text{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif}
.rkaf .m{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.rkaf .b{font-weight:700}
.rkaf .fs15{font-size:15px}
.rkaf .fs16{font-size:16px}
@media (prefers-color-scheme:dark){
.rkaf text{fill:#e8eaed}
.rkaf .mu{fill:#9ba4af}
.rkaf .bl{fill:#7aa8ff}
.rkaf .ok{fill:#7fd69b}
.rkaf .box{fill:#1b1f25;stroke:#47505c;stroke-width:1.5}
.rkaf .end{fill:#13161a;stroke:#7fd69b;stroke-width:2.5}
.rkaf .hl{fill:#1d2a44;stroke:#7aa8ff;stroke-width:1.5}
.rkaf .arr{fill:#7aa8ff;stroke:none}
.rkaf .arrl{stroke:#7aa8ff;stroke-width:2.5;fill:none}
.rkaf .chk{fill:none;stroke:#7fd69b;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
}
.rkba text{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif}
.rkba .m{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.rkba .b{font-weight:700}
.rkba .fs15{font-size:15px}
.rkba .fs16{font-size:16px}
@media (prefers-color-scheme:dark){
.rkba text{fill:#e8eaed}
.rkba .mu{fill:#9ba4af}
.rkba .bl{fill:#7aa8ff}
.rkba .ok{fill:#7fd69b}
.rkba .box{fill:#1b1f25;stroke:#47505c;stroke-width:1.5}
.rkba .end{fill:#13161a;stroke:#7fd69b;stroke-width:2.5}
.rkba .hl{fill:#1d2a44;stroke:#7aa8ff;stroke-width:1.5}
.rkba .arr{fill:#7aa8ff;stroke:none}
.rkba .arrl{stroke:#7aa8ff;stroke-width:2.5;fill:none}
.rkba .chk{fill:none;stroke:#7fd69b;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
}
/* rkfig: shared by the flow-chart figures (what-leaves, admin-setup, custom-labels-flow, problem-report-path). */
.rkfig text{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif}
.rkfig .m{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.rkfig .b{font-weight:700}
.rkfig .fs15{font-size:15px}
.rkfig .fs16{font-size:16px}
@media (prefers-color-scheme:dark){
.rkfig text{fill:#e8eaed}
.rkfig .mu{fill:#9ba4af}
.rkfig .bl{fill:#7aa8ff}
.rkfig .ok{fill:#7fd69b}
.rkfig .box{fill:#1b1f25;stroke:#47505c;stroke-width:1.5}
.rkfig .end{fill:#13161a;stroke:#7fd69b;stroke-width:2.5}
.rkfig .hl{fill:#1d2a44;stroke:#7aa8ff;stroke-width:1.5}
.rkfig .arr{fill:#7aa8ff;stroke:none}
.rkfig .arrl{stroke:#7aa8ff;stroke-width:2.5;fill:none}
.rkfig .chk{fill:none;stroke:#7fd69b;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
}

/* The before-and-after figure is shown smaller than the page column. */
.doc figure.figure-svg:has(>svg.rkba){max-width:520px;margin-left:auto;margin-right:auto}
