:root {
  --bg: #0e1016;
  --bg-2: #161a24;
  --bg-3: #1e2433;
  --line: #2c3448;
  --gold: #e8c36a;
  --gold-2: #f3d98a;
  --text: #e8e4d9;
  --muted: #9aa3b8;
  --ok: #6ee7a8;
  --warn: #f5b942;
  --err: #ff7b7b;
  --code: #0a0c12;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #0e1016; }
body {
  margin: 0;
  font: 15px/1.55 "Segoe UI", system-ui, sans-serif;
  color: #e8e4d9;
  background-color: #0e1016;
}
a { color: #e8c36a; text-decoration: none; }
a:hover { text-decoration: underline; }
.layout {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  min-height: 100vh;
}
nav {
  position: sticky; top: 0; height: 100vh; overflow: auto;
  background: #161a24; border-right: 1px solid #2c3448; padding: 20px 14px;
}
nav .brand { font-weight: 700; color: #f3d98a; letter-spacing: .04em; margin-bottom: 4px; }
nav .sub { color: #9aa3b8; font-size: 12px; margin-bottom: 12px; }
nav .search { margin: 0 0 10px; }
nav .search input {
  width: 100%; border: 1px solid #2c3448; background: #1e2433; color: #e8e4d9;
  border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; outline: none;
}
nav .search input:focus { border-color: #e8c36a; }
nav .search input::placeholder { color: #9aa3b8; }
nav a { display: block; color: #9aa3b8; padding: 6px 8px; border-radius: 6px; }
nav a:hover { background: #1e2433; color: #e8e4d9; text-decoration: none; }
nav .group { color: #e8c36a; font-size: 11px; letter-spacing: .08em; margin: 14px 8px 6px; text-transform: uppercase; }
nav .empty { display: none; color: #9aa3b8; font-size: 12px; padding: 8px; }
main { min-width: 0; max-width: 980px; padding: 32px 36px 80px; }
h1 { font-size: 32px; margin: 0 0 8px; color: #f3d98a; }
h2 { margin: 42px 0 12px; padding-top: 8px; border-top: 1px solid #2c3448; color: #e8c36a; font-size: 22px; }
h3 { margin: 24px 0 8px; font-size: 17px; }
p, li { color: #d5d1c6; }
.lead { font-size: 16px; color: #9aa3b8; max-width: 70ch; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 999px; background: #3a2e12; color: #e8c36a; vertical-align: middle;
  margin-right: 6px;
}
.callout {
  border: 1px solid #2c3448; border-left: 4px solid #e8c36a;
  background: #161a24; padding: 12px 14px; border-radius: 8px; margin: 14px 0;
}
.callout.warn { border-left-color: #f5b942; }
.callout.ok { border-left-color: #6ee7a8; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
th, td { border: 1px solid #2c3448; padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #1e2433; color: #f3d98a; font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: #1e2433; padding: 1px 5px; border-radius: 4px; }
pre {
  background: #0a0c12; border: 1px solid #2c3448; border-radius: 10px;
  padding: 14px 16px; overflow: auto; font-size: 12.5px; line-height: 1.45; color: #d7e0ea;
}
.steps { counter-reset: s; padding-left: 0; list-style: none; }
.steps li { position: relative; padding: 8px 0 8px 42px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 8px; width: 26px; height: 26px;
  border-radius: 50%; background: #3a2e12; color: #e8c36a; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin: 16px 0 28px;
}
.card {
  display: block; background: #161a24; border: 1px solid #2c3448; border-radius: 12px;
  padding: 14px 16px; color: #e8e4d9;
}
.card:hover { border-color: #e8c36a; text-decoration: none; }
.card strong { display: block; color: #f3d98a; margin-bottom: 4px; }
.card span { color: #9aa3b8; font-size: 13px; }
footer { margin-top: 48px; color: #9aa3b8; font-size: 12px; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  nav { position: relative; height: auto; max-height: none; }
}
