:root {
  --rd-help-bg: #0b1220;
  --rd-help-panel: rgba(14, 23, 38, 0.85);
  --rd-help-border: rgba(255,255,255,0.10);
  --rd-help-text: rgba(255,255,255,0.92);
  --rd-help-muted: rgba(255,255,255,0.70);
  --rd-help-accent: #199ef0;
}

/* Override Room Designer app-shell rules on the Help page (room-designer.css locks scrolling) */
html, body {
  overflow: auto !important;
  height: auto !important;
  max-height: none !important;
}

/* Help page header should not lock the page */
.nav-header {
  position: sticky !important;
  top: 0 !important;
}

.rd-help-page {
  padding: 16px;
  background: var(--rd-help-bg);
  color: var(--rd-help-text);
  min-height: calc(100vh - 64px);
}

.rd-help-hero {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 14px;
  border: 1px solid var(--rd-help-border);
  background: var(--rd-help-panel);
  border-radius: 12px;
  margin: 0 auto 14px auto;
  max-width: 1200px;
}

.rd-help-hero-title h1 {
  margin: 0;
  font-size: 20px;
}
.rd-help-hero-title p {
  margin: 6px 0 0 0;
  color: var(--rd-help-muted);
  font-size: 13px;
  max-width: 70ch;
}

.rd-help-search {
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rd-help-search label {
  font-size: 12px;
  color: var(--rd-help-muted);
}
.rd-help-search input {
  width: 100%;
  padding: 10px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.22);
  color: var(--rd-help-text);
  outline: none;
}
.rd-help-search input:focus {
  border-color: rgba(25,158,240,0.65);
  box-shadow: 0 0 0 3px rgba(25,158,240,0.18);
}
.rd-help-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--rd-help-muted);
  font-size: 12px;
}

.rd-help-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.rd-help-sidebar-card {
  border: 1px solid var(--rd-help-border);
  background: var(--rd-help-panel);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.rd-help-sidebar-title {
  font-size: 12px;
  color: var(--rd-help-muted);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rd-help-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rd-help-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: var(--rd-help-text);
  text-decoration: none;
  font-size: 13px;
}
.rd-help-nav a:hover {
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.09);
}
.rd-help-nav a.active {
  border-color: rgba(25,158,240,0.6);
  background: rgba(25,158,240,0.14);
}

.rd-help-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rd-help-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--rd-help-text);
  cursor: pointer;
  font-size: 12px;
  user-select: none;
}
.rd-help-chip:hover {
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.09);
}

.rd-help-content {
  border: 1px solid var(--rd-help-border);
  background: var(--rd-help-panel);
  border-radius: 12px;
  padding: 12px;
}

.rd-help-section {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  margin-bottom: 12px;
  overflow: hidden;
}
.rd-help-section summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rd-help-section summary::-webkit-details-marker { display: none; }
.rd-help-section-title {
  font-size: 14px;
  font-weight: 700;
}
.rd-help-section-meta {
  color: var(--rd-help-muted);
  font-size: 12px;
}
.rd-help-items {
  padding: 0 12px 12px 12px;
}
.rd-help-item {
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  margin-top: 10px;
}
.rd-help-item h4 {
  margin: 0;
  font-size: 13px;
}
.rd-help-item p, .rd-help-item li {
  color: var(--rd-help-muted);
  font-size: 13px;
  line-height: 1.45;
}
.rd-help-item ul {
  margin: 8px 0 0 18px;
}
.rd-help-item code {
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.10);
}
.rd-help-item mark {
  background: rgba(245,158,11,0.25);
  color: var(--rd-help-text);
  padding: 0 2px;
  border-radius: 3px;
}

@media (max-width: 980px) {
  .rd-help-layout {
    grid-template-columns: 1fr;
  }
  .rd-help-search {
    min-width: 0;
    width: 100%;
  }
  .rd-help-hero {
    flex-direction: column;
    align-items: stretch;
  }
}


