/* Minimal, readable layout (no build step). */

:root {
  --bg: #0b0f17;
  --panel: #0f172a;
  --panel2: #0b1224;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --link: #60a5fa;
  --border: rgba(255, 255, 255, 0.08);
  --codebg: rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 10% 10%, rgba(96,165,250,.12), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(34,197,94,.10), transparent 55%),
              var(--bg);
  color: var(--text);
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.app {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

aside {
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  padding: 20px 16px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}
.brand h1 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.2px;
}
.brand .sub {
  font-size: 12px;
  color: var(--muted);
}

.aside-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 10px 0 16px;
}

.doclist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.doclist a {
  display: block;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.doclist a:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.doclist a.active {
  background: rgba(96, 165, 250, 0.10);
  border-color: rgba(96, 165, 250, 0.25);
}
.doclist .title {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.doclist .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

main {
  padding: 24px 28px;
}

.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.topbar .current {
  font-size: 14px;
  color: var(--muted);
}

.topbar .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 999px;
}

.content {
  max-width: 980px;
  line-height: 1.6;
}

.content h1, .content h2, .content h3 {
  line-height: 1.25;
}

.content code {
  background: var(--codebg);
  padding: 2px 6px;
  border-radius: 6px;
}
.content pre {
  background: var(--codebg);
  padding: 14px 14px;
  border-radius: 12px;
  overflow: auto;
}
.content pre code {
  background: transparent;
  padding: 0;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
}
th, td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 13px;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}
tr:last-child td { border-bottom: 0; }

.error {
  padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  border-radius: 12px;
  color: #fecaca;
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  aside { border-right: 0; border-bottom: 1px solid var(--border); }
}

