/* =============================================================================
   HELP BUTTON & SLIDE-IN PANEL
   ============================================================================= */
.help-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.help-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

#help-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#help-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

#help-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: 380px;
  max-width: 90vw;
  background: var(--surface);
  box-shadow: -8px 0 24px rgba(0,0,0,0.12);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#help-panel.open { transform: translateX(0); }

.help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.help-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.help-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.help-close:hover {
  background: var(--surface2);
  color: var(--text);
}

.help-body {
  overflow-y: auto;
  padding: 20px 22px 28px;
  flex: 1;
}
.help-body h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
}
.help-body h3:not(:first-child) { margin-top: 22px; }
.help-body p {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 10px;
}
.help-body ol, .help-body ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
.help-body li {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 6px;
}
.help-body strong {
  color: var(--text);
  font-weight: 600;
}
.help-body code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--surface2);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text);
}
.help-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  transition: border-color 0.15s;
}
.help-link:hover {
  border-bottom-color: var(--accent);
}
.help-tag {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  vertical-align: 1px;
  margin-right: 4px;
}
.help-tag.high { background: var(--high); }
.help-tag.low  { background: var(--low); }

@media (max-width: 420px) {
  #help-panel { width: 100vw; max-width: 100vw; }
}
