
:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-soft:#f8f9fb;
  --text:#1a1a1a;
  --muted:#5b6470;
  --border:#e6e8ee;
  --accent:#0f62fe;
  --code:#f5f7fb;
  --shadow:0 8px 24px rgba(16,24,40,0.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
}
.layout{display:flex;min-height:100vh;background:#fff}
.sidebar{
  width:280px;position:fixed;inset:0 auto 0 0;overflow-y:auto;
  padding:24px 20px 28px;background:#fff;border-right:1px solid var(--border)
}
.brand{margin:0 0 8px;font-size:1.2rem}
.tagline{margin:0 0 18px;color:var(--muted);font-size:.95rem}
.search{
  width:100%;padding:10px 12px;border:1px solid var(--border);
  border-radius:10px;outline:none;background:#fff;margin:0 0 18px
}
.nav-section-title{
  font-size:.82rem;color:var(--muted);text-transform:uppercase;
  letter-spacing:.05em;margin:18px 0 10px
}
.sidebar ul{list-style:none;padding:0;margin:0}
.sidebar li{margin:6px 0}
.sidebar a{
  display:block;text-decoration:none;color:var(--text);
  padding:9px 10px;border-radius:10px
}
.sidebar a:hover,.sidebar a.active{background:var(--surface-soft);color:#000}
.content{width:100%;margin-left:280px;padding:42px 48px 64px}
.container{max-width:980px}
.hero{
  background:linear-gradient(180deg,#ffffff 0%, #fafbff 100%);
  border:1px solid var(--border);border-radius:20px;padding:30px;
  box-shadow:var(--shadow);margin-bottom:28px
}
.hero h1{margin:0 0 10px;font-size:2rem;line-height:1.2}
.hero p{margin:0;color:var(--muted);max-width:760px}
.grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;margin:24px 0 30px
}
.card{
  display:block;padding:20px;text-decoration:none;color:inherit;background:#fff;
  border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow)
}
.card:hover{transform:translateY(-2px);transition:all .15s ease}
.card h3{margin:0 0 8px;font-size:1.05rem}
.card p{margin:0;color:var(--muted)}
h1,h2,h3{line-height:1.25;color:#111827}
h2{margin-top:34px;margin-bottom:10px}
p,li{font-size:1rem}
.panel{
  background:#fff;border:1px solid var(--border);border-radius:18px;
  padding:24px;box-shadow:var(--shadow);margin:18px 0
}
.callout{
  border-left:4px solid var(--accent);background:#fbfcff;padding:14px 16px;
  border-radius:12px;color:#263245;margin:16px 0
}
table{
  width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--border);
  border-radius:14px;overflow:hidden;box-shadow:var(--shadow);margin:18px 0 24px
}
th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--border);vertical-align:top}
th{background:#fafbff;font-weight:700}
tr:last-child td{border-bottom:none}
pre{
  background:var(--code);border:1px solid var(--border);border-radius:14px;
  padding:18px;overflow:auto;white-space:pre-wrap;word-break:break-word;
  font-size:.95rem;line-height:1.55
}
code{font-family:Consolas,"Courier New",monospace}
.copy-btn{
  border:none;background:var(--accent);color:#fff;border-radius:10px;
  padding:9px 12px;cursor:pointer;margin:10px 0 0;font-weight:600
}
.kicker{color:var(--accent);font-weight:700;margin-bottom:8px;display:inline-block}
.footer-note{color:var(--muted);margin-top:26px;font-size:.95rem}
@media (max-width: 980px){
  .sidebar{position:relative;width:100%;inset:auto;border-right:none;border-bottom:1px solid var(--border)}
  .content{margin-left:0;padding:28px 18px 48px}
  .layout{display:block}
  .hero{padding:22px}
}
