/* ==========================================================================
   GAU - HELP PAGE STYLES
   ========================================================================== */

/* Layout Wrapper (Left Floating Sidebar + Main Content centered) */
.help-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* Transparent Floating Left Sidebar */
.help-sidebar {
  position: sticky;
  top: 80px;
  width: 210px;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.help-sidebar::-webkit-scrollbar {
  width: 3px;
}

.help-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-divider);
  border-radius: 4px;
}

.sidebar-group {
  margin-bottom: 20px;
}

.sidebar-group:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sidebar-nav a::before {
  content: "";
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: transparent;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.sidebar-nav a:hover {
  color: var(--accent-red);
}

.sidebar-nav a:hover::before {
  background: var(--accent-red);
}

.sidebar-nav a.active {
  color: var(--accent-red);
  font-weight: 500;
}

.sidebar-nav a.active::before {
  background: var(--accent-red);
}

/* Main Area Bounded to 768px */
.help-main {
  flex: 1;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
}

.news-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.news-intro {
  font-size: 16px;
  line-height: 22px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Card Box */
.help-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  box-shadow: var(--shadow-card-large);
  overflow: hidden;
}

.help-section {
  padding: 24px 32px;
  scroll-margin-top: 80px;
}

.help-section:not(:first-child) {
  border-top: 1px solid var(--border-subtle);
}

.help-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-section h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin: 18px 0 6px;
}

.help-section p {
  font-size: 16px;
  line-height: 22px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.help-section ul,
.help-section ol {
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.help-section ul:last-child,
.help-section ol:last-child {
  margin-bottom: 0;
}

.help-section li {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 6px;
}

.help-section li:last-child {
  margin-bottom: 0;
}

.help-section a {
  color: var(--accent-red);
  text-decoration: underline;
}

/* Helpers & Badges */
.help-alert {
  background: var(--accent-red-light);
  border-left: 3px solid var(--accent-red);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 14px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.help-alert.tip {
  background: rgba(43, 147, 72, 0.12);
  border-left-color: #2b9348;
}

.help-alert.warning {
  background: rgba(230, 57, 70, 0.12);
  border-left-color: #e63946;
}

.keycap {
  display: inline-block;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--kbd-color);
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-border);
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  margin: 0 2px;
}

.code-pill {
  background: var(--bg-code);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* Comparison Table */
.help-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.help-table th,
.help-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.help-table th {
  background: var(--bg-table-header);
  font-weight: 600;
  color: var(--text-primary);
}

.help-table td {
  color: var(--text-secondary);
}

/* Mobile section select (replaces sidebar on small screens) */
.mobile-section-select {
  display: none;
}

.mobile-section-select select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23575757' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 8 10 13 15 8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 40px 12px 16px;
  box-shadow: var(--shadow-card);
}

/* Mobile Breakdown */
@media (max-width: 900px) {
  .help-wrapper {
    flex-direction: column;
    padding: 16px 16px 60px;
    gap: 16px;
  }

  .help-sidebar {
    display: none;
  }

  .mobile-section-select {
    display: block;
    width: 100%;
    margin-bottom: 8px;
  }

  .help-section {
    padding: 20px 16px;
  }

  .help-section h2 {
    margin-bottom: 18px;
  }

  .help-section h3 {
    margin: 27px 0 9px;
  }

  .help-section p {
    margin-bottom: 18px;
  }

  .help-section ul,
  .help-section ol {
    margin-bottom: 18px;
  }

  .help-section li {
    margin-bottom: 9px;
  }

  .help-alert {
    margin: 21px 0;
  }

  .news-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
}
