* { box-sizing: border-box; }
:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f2eb;
  color: #243126;
}
body { margin: 0; }
.docs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #243126;
  color: white;
}
.docs-header h1, .docs-header p { margin: 0; }
.docs-header p { margin-top: .25rem; color: #dfe8df; }
.docs-header a {
  display: inline-flex;
  border-radius: 10px;
  padding: .72rem .95rem;
  background: #e8e2d6;
  color: #243126;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.docs-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 3rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
}
.docs-nav, .doc-content {
  background: white;
  border: 1px solid #ded8cc;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(36,49,38,.07);
}
.docs-nav {
  padding: .75rem;
  display: grid;
  gap: .45rem;
  align-content: start;
  position: sticky;
  top: 1rem;
}
.docs-nav button {
  width: 100%;
  border: 1px solid #e3ddcf;
  border-radius: 10px;
  padding: .65rem .75rem;
  text-align: left;
  background: #fbf9f3;
  color: #243126;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.docs-nav button.active { background: #406a45; color: white; }
.doc-content { padding: 1.25rem; min-height: 70vh; line-height: 1.62; }
.doc-content h1, .doc-content h2, .doc-content h3 { line-height: 1.2; }
.doc-content h1 { margin-top: 0; }
.doc-content code {
  background: #f1ecdf;
  border-radius: 5px;
  padding: .08rem .28rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.doc-content pre {
  background: #243126;
  color: #fff;
  border-radius: 10px;
  padding: .9rem;
  overflow: auto;
}
.doc-content pre code { background: transparent; padding: 0; color: inherit; }
.doc-content a { color: #315f38; font-weight: 700; }
.doc-content blockquote {
  margin-left: 0;
  border-left: 4px solid #cfc6b5;
  padding-left: 1rem;
  color: #566357;
}
@media (max-width: 850px) {
  .docs-header { align-items: flex-start; flex-direction: column; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
}

.docs-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.docs-actions a {
  white-space: nowrap;
}
