/* ── Header (guide page uses same header structure as index) ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand { font-size: 17px; font-weight: 700; color: var(--accent); text-decoration: none; }

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

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--accent); background: var(--accent-light); }
.nav-link.active-page { color: var(--accent); font-weight: 600; background: var(--accent-light); }

.btn-primary {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 7px 16px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  display: inline-block;
}
.btn-outline:hover { background: var(--accent-light); }

/* ── Layout ── */
.guide-layout {
  display: flex;
  min-height: calc(100vh - 52px);
}

/* ── Sidebar ── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 28px 0;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
}

.sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 20px;
  margin-bottom: 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.12s, background 0.12s;
}
.sidebar-item:hover { background: var(--bg); color: var(--accent); }
.sidebar-item.active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
  background: var(--accent-light);
}

.sidebar-icon { font-size: 15px; }

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 20px;
}

/* ── Content ── */
.guide-content {
  flex: 1;
  padding: 48px;
  max-width: 720px;
}

/* ── Section ── */
.guide-section {
  margin-bottom: 64px;
  scroll-margin-top: 72px;
}

.guide-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-light);
}

.guide-section-intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── Sub-section ── */
.sub-section { margin-top: 28px; }

.sub-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.sub-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sub-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 15px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Steps ── */
.step-list { display: flex; flex-direction: column; }

.step-item { display: flex; gap: 14px; align-items: flex-start; }

.step-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.step-body { flex: 1; padding-bottom: 16px; }

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-connector {
  width: 2px;
  height: 16px;
  background: var(--accent-light);
  margin-left: 13px;
}

/* ── Feature cards ── */
.feature-list { display: flex; flex-direction: column; gap: 8px; }

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.feature-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.feature-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.feature-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── Callouts ── */
.callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 16px 0;
}
.callout strong { color: var(--accent); }

.callout-warn { background: #fff8e6; border-left-color: #d97706; }
.callout-warn strong { color: #d97706; }

/* ── Inline code ── */
.guide-content code {
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  color: var(--text);
}

/* ── Footer ── */
footer {
  background: #1A1917;
  padding: 20px 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { font-size: 14px; font-weight: 700; color: #4ade80; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ── Mobile nav ── */
.mobile-nav { display: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .guide-content { padding: 24px 20px; max-width: 100%; }
  .mobile-nav {
    display: block;
    padding: 10px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav select {
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    width: 100%;
  }
}
