/* drape.digital theme documentation — static layout */
:root {
  --sidebar-bg: #f6f8fa;
  --sidebar-border: #e8ecf0;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --link: #346ddb;
  --link-hover: #254fad;
  --accent: #dbaf36;
  --content-max: 740px;
  --sidebar-w: 280px;
  --topbar-h: 56px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: #fff;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}
.docs-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  overflow-y: auto;
  z-index: 100;
  padding: 1rem 0 2rem;
  transition: transform 0.2s ease;
}
.sidebar-brand {
  padding: 0.75rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 0.5rem;
}
.sidebar-brand a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}
.sidebar-brand a:hover {
  color: var(--accent);
}
.sidebar-brand small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.nav-section {
  margin-top: 1rem;
  padding: 0 0.75rem;
}
.nav-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
}
.nav-list a:hover {
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: var(--text);
}
.nav-list a.active {
  background: #fff;
  box-shadow: 0 0 0 1px var(--sidebar-border);
  font-weight: 600;
  color: var(--link);
}
.main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sidebar-border);
  z-index: 50;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--sidebar-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}
.content {
  max-width: var(--content-max);
  padding: 2rem 1.75rem 4rem;
  margin: 0 auto;
}
.content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.25;
}
.content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--sidebar-border);
}
.content h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}
.content p {
  margin: 0 0 1rem;
  color: var(--text);
}
.content ul,
.content ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
.content li {
  margin-bottom: 0.35rem;
}
.content blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: #fffdf8;
  color: var(--text-muted);
  font-style: italic;
}
.content code {
  font-size: 0.88em;
  background: var(--sidebar-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--sidebar-border);
}
.content pre {
  background: #1e1e1e;
  color: #e8e8e8;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.82rem;
  margin: 1rem 0;
}
.content pre code {
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
}
.callout {
  border: 1px solid var(--sidebar-border);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  background: var(--sidebar-bg);
}
.callout strong {
  display: block;
  margin-bottom: 0.35rem;
}
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }
  .main-area {
    margin-left: 0;
  }
}
body.sidebar-open .sidebar-overlay {
  display: block;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99;
}
