
:root {
  --bg: #f7f8f4;
  --paper: #ffffff;
  --ink: #182129;
  --muted: #5b6870;
  --line: #d7dfdc;
  --teal: #007f7f;
  --blue: #175c9d;
  --green: #3f915b;
  --amber: #e2a536;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Aptos, Segoe UI, Arial, sans-serif;
  line-height: 1.58;
}
.layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 22px 18px;
  background: #142331;
  color: white;
}
.brand {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: .2px;
}
.nav-group {
  margin: 22px 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #a9bbb8;
  font-weight: 700;
}
.sidebar a {
  display: block;
  color: #e9f0ed;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  margin: 2px 0;
}
.sidebar a:hover { background: rgba(255,255,255,.09); }
.sidebar a.active { background: var(--teal); color: white; font-weight: 700; }
.content {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 48px 72px;
}
.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 44px 52px;
  box-shadow: 0 10px 28px rgba(24, 33, 41, .06);
}
h1 { font-size: 38px; line-height: 1.12; margin: 0 0 22px; letter-spacing: -.01em; }
h2 { font-size: 26px; margin: 38px 0 12px; border-top: 1px solid var(--line); padding-top: 24px; }
h3 { font-size: 20px; margin: 28px 0 8px; color: var(--blue); }
h4 { font-size: 16px; margin: 22px 0 6px; color: var(--teal); }
p, li { font-size: 16px; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 5px solid var(--amber);
  background: #fff8e6;
  color: #4d3b16;
}
.doc-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 22px auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
code {
  background: #eef3f2;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: .92em;
}
pre {
  overflow: auto;
  padding: 16px;
  background: #12202d;
  color: #edf7f4;
  border-radius: 8px;
}
pre code { background: transparent; color: inherit; padding: 0; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
th { background: #eef3f2; text-align: left; }
.topbar {
  display: none;
  background: #142331;
  color: white;
  padding: 12px 18px;
  font-weight: 800;
}
@media (max-width: 900px) {
  .topbar { display: block; }
  .layout { display: block; }
  .sidebar { position: relative; height: auto; max-height: 360px; }
  .content { padding: 20px 14px 48px; }
  .article { padding: 28px 20px; border-radius: 8px; }
  h1 { font-size: 30px; }
}
