
:root{color-scheme: light dark;}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.5}
.topbar{position:sticky;top:0;backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid rgba(0,0,0,.12);padding:12px 16px;display:flex;gap:16px;align-items:center;justify-content:space-between;background:rgba(255,255,255,.85)}
@media (prefers-color-scheme: dark){.topbar{background:rgba(18,18,18,.85)}}
.brand{font-weight:700}
.topnav a{margin-left:10px;text-decoration:none}
.layout{display:grid;grid-template-columns:280px 1fr;gap:0}
.sidebar{padding:14px 12px;border-right:1px solid rgba(0,0,0,.12);max-height:calc(100vh - 58px);overflow:auto}
.content{padding:20px 24px;max-width:960px}
@media (max-width: 900px){.layout{grid-template-columns:1fr}.sidebar{border-right:none;border-bottom:1px solid rgba(0,0,0,.12);max-height:none}}
.toc h2{font-size:16px;margin:6px 0 10px}
.toc ul{list-style:none;padding-left:0;margin:0}
.toc li{margin:6px 0}
.toc li ul{padding-left:14px;margin-top:6px}
.toc a{text-decoration:none}
.toc li.active>a{font-weight:700}
h1{font-size:32px;margin:10px 0 12px}
h2{font-size:22px;margin:22px 0 10px}
h3{font-size:18px;margin:18px 0 8px}
p{margin:10px 0}
table{border-collapse:collapse;margin:14px 0;width:100%;font-size:14px}
th,td{border:1px solid rgba(0,0,0,.2);padding:8px;vertical-align:top}
.figure{margin:12px 0}
img{max-width:100%;height:auto;border-radius:10px;border:1px solid rgba(0,0,0,.12)}
.footer{padding:14px 16px;border-top:1px solid rgba(0,0,0,.12);font-size:12px;opacity:.85}
