:root {
  --blue: #0f62fe;
  --text: #161616;
  --muted: #525252;
  --border: #e0e0e0;
  --bg-alt: #f4f4f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  display: flex;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  padding: 1.5rem 1rem;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand { font-size: 1.25rem; font-weight: 600; color: var(--text); text-decoration: none; }
.sidebar .version { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: .15rem 0; }
.sidebar li.group { margin-top: .9rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sidebar li.group ul { margin-top: .25rem; text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; }
.sidebar a { display: block; padding: .25rem .5rem; border-radius: 4px; color: var(--text); text-decoration: none; }
.sidebar a:hover { background: var(--border); }
.sidebar a.active { background: var(--blue); color: #fff; }

.content { flex: 1; max-width: 900px; padding: 2rem 3rem; min-width: 0; }
.content h1 { margin-top: 0; }
.content h2 { margin-top: 2rem; padding-bottom: .3rem; border-bottom: 1px solid var(--border); }
.content a { color: var(--blue); }
.content img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; }
.content pre { background: var(--bg-alt); padding: 1rem; overflow-x: auto; border-radius: 6px; }
.content code { background: var(--bg-alt); padding: .1rem .3rem; border-radius: 3px; font-size: .9em; }
.content pre code { background: none; padding: 0; }
.content table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.content th, .content td { border: 1px solid var(--border); padding: .4rem .7rem; text-align: left; vertical-align: top; }
.content th { background: var(--bg-alt); }
.content .note { border-left: 4px solid var(--blue); background: var(--bg-alt); padding: .6rem 1rem; margin: 1rem 0; }
.content footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

@media (max-width: 800px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--border); }
  .content { padding: 1.5rem 1rem; }
}

/* Version tags */
.tag {
  display: inline-block;
  padding: 0 .5rem;
  margin-left: .25rem;
  border-radius: 999px;
  background: #defbe6;
  color: #0e6027;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}
