/* Stream Chaos Controls Help Center */
:root {
  --help-bg: #08111f;
  --help-panel: #0e1b2f;
  --help-panel-2: #13233c;
  --help-text: #eaf2ff;
  --help-muted: #9eb3d1;
  --help-border: rgba(119, 162, 228, 0.22);
  --help-accent: #62b0ff;
  --help-accent-2: #7ef0c8;
  --help-radius: 16px;
  --help-max: 1200px;
  --help-nav-w: 280px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.help-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--help-accent);
  color: #041018;
  font-weight: 700;
  border-radius: 8px;
}
.help-skip-link:focus {
  left: 12px;
  top: 12px;
}

.help-shell {
  width: min(calc(100% - 24px), var(--help-max));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.help-header-bar {
  border: 1px solid var(--help-border);
  background: linear-gradient(145deg, rgba(19, 35, 60, 0.96), rgba(10, 22, 39, 0.98));
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 18px;
}

.help-header-bar h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  color: var(--help-text);
}

.help-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 240, 200, 0.25);
  color: var(--help-accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-lead {
  color: var(--help-muted);
  line-height: 1.55;
  max-width: 52rem;
}

.help-muted {
  color: var(--help-muted);
  font-size: 14px;
}

.help-search-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.help-search-wrap {
  flex: 1;
  min-width: min(100%, 280px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--help-border);
  background: rgba(8, 17, 31, 0.65);
}

.help-search-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--help-text);
  font-size: 15px;
  outline: none;
  min-height: 44px;
}

.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(98, 176, 255, 0.35);
  background: rgba(98, 176, 255, 0.14);
  color: var(--help-text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}
.help-btn:hover,
.help-btn:focus-visible {
  background: rgba(98, 176, 255, 0.24);
  outline: 2px solid var(--help-accent);
  outline-offset: 2px;
}
.help-btn--secondary {
  background: rgba(8, 17, 31, 0.55);
}
.help-btn--sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}

.help-layout {
  display: grid;
  grid-template-columns: var(--help-nav-w) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.help-sidebar {
  position: sticky;
  top: 88px;
  border: 1px solid var(--help-border);
  background: var(--help-panel);
  border-radius: var(--help-radius);
  padding: 16px;
}

.help-sidebar h2 {
  font-size: 14px;
  margin: 0 0 10px;
  color: var(--help-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.help-nav-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
}

.help-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-nav-link {
  display: block;
  padding: 10px 12px;
  min-height: 44px;
  line-height: 24px;
  border-radius: 10px;
  color: var(--help-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.help-nav-link:hover,
.help-nav-link:focus-visible {
  background: rgba(98, 176, 255, 0.1);
  outline: 2px solid var(--help-accent);
  outline-offset: 1px;
}
.help-nav-link.is-active {
  background: rgba(98, 176, 255, 0.18);
  color: var(--help-accent);
  font-weight: 700;
}

.help-main {
  border: 1px solid var(--help-border);
  background: var(--help-panel);
  border-radius: var(--help-radius);
  padding: 22px;
  min-height: 420px;
}
.help-main:focus {
  outline: none;
}

.help-view-title {
  margin: 0 0 12px;
  font-size: 1.6rem;
  color: var(--help-text);
}

.help-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.help-card {
  display: block;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--help-border);
  background: var(--help-panel-2);
  color: var(--help-text);
  text-decoration: none;
  min-height: 44px;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.help-card:hover,
.help-card:focus-visible {
  border-color: rgba(98, 176, 255, 0.5);
  outline: 2px solid var(--help-accent);
  outline-offset: 2px;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.help-card-title {
  margin: 0 0 6px;
  font-size: 1rem;
}
.help-card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--help-muted);
  line-height: 1.45;
}

.help-home-block {
  margin-bottom: 32px;
}

.help-article-title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  line-height: 1.15;
}
.help-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.help-hub-path {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--help-muted);
  background: rgba(8, 17, 31, 0.55);
  border: 1px solid var(--help-border);
  border-radius: 8px;
  padding: 4px 10px;
  margin: 0 0 16px;
}
.help-home-block h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--help-text);
}
.help-home-hero {
  margin-bottom: 28px;
}
.help-home-hero h2 {
  font-size: 1.35rem;
  margin: 0 0 6px;
}

.help-section {
  margin: 26px 0;
  padding-top: 20px;
  border-top: 1px solid rgba(119, 162, 228, 0.12);
}
.help-section:first-of-type {
  border-top: none;
  padding-top: 8px;
  margin-top: 16px;
}
.help-section h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--help-text);
}
.help-section-body {
  color: var(--help-muted);
  line-height: 1.6;
}
.help-section-body ul,
.help-section-body ol {
  padding-left: 1.25rem;
}
.help-section-body code,
.help-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(8, 17, 31, 0.7);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--help-accent-2);
}

.help-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(126, 240, 200, 0.12);
  color: var(--help-accent-2);
  border: 1px solid rgba(126, 240, 200, 0.25);
}
.help-badge--viewer {
  background: rgba(98, 176, 255, 0.12);
  color: var(--help-accent);
  border-color: rgba(98, 176, 255, 0.25);
}
.help-badge--moderator {
  background: rgba(255, 200, 120, 0.12);
  color: #ffd89a;
  border-color: rgba(255, 200, 120, 0.3);
}

.help-related {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(8, 17, 31, 0.45);
  border: 1px solid var(--help-border);
}
.help-related h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--help-muted);
}
.help-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.help-related li a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(98, 176, 255, 0.28);
  background: rgba(98, 176, 255, 0.08);
  color: var(--help-accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.help-related li a:hover,
.help-related li a:focus-visible {
  background: rgba(98, 176, 255, 0.18);
  border-color: rgba(98, 176, 255, 0.5);
  outline: 2px solid var(--help-accent);
  outline-offset: 2px;
}

.help-link {
  color: var(--help-accent);
}

.help-search-results {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.help-search-result-link {
  display: block;
  color: var(--help-text);
  text-decoration: none;
  font-weight: 600;
}
.help-search-result-link:hover,
.help-search-result-link:focus-visible {
  color: var(--help-accent);
  outline: none;
}
.help-search-result-meta {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--help-muted);
  margin-top: 2px;
}
.help-search-excerpt {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--help-muted);
  line-height: 1.45;
}
.help-search-excerpt mark {
  background: rgba(126, 240, 200, 0.25);
  color: var(--help-text);
  padding: 0 2px;
  border-radius: 2px;
}

.help-empty {
  padding: 20px;
  border-radius: 12px;
  background: rgba(8, 17, 31, 0.45);
  border: 1px dashed var(--help-border);
}

.help-feature-group {
  margin-bottom: 24px;
}
.help-feature-group h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--help-accent-2);
}

.help-cmd-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.help-input,
.help-select {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--help-border);
  background: rgba(8, 17, 31, 0.65);
  color: var(--help-text);
  font-size: 14px;
}
.help-input {
  flex: 1;
  min-width: 200px;
}

.help-table-wrap {
  overflow-x: auto;
}
.help-cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.help-cmd-table th,
.help-cmd-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(119, 162, 228, 0.12);
  text-align: left;
  vertical-align: top;
}
.help-cmd-table th {
  color: var(--help-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.help-cmd-aliases {
  font-size: 12px;
  color: var(--help-muted);
  margin-top: 4px;
}

.help-cmd-cards {
  display: none;
}

.help-tutorial-grid {
  margin-bottom: 24px;
}
.help-tutorial-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--help-border);
  background: var(--help-panel-2);
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.help-tutorial-card:hover {
  border-color: rgba(98, 176, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.help-tutorial-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}
.help-tutorial-card-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--help-muted);
  line-height: 1.5;
}
.help-tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.help-tutorial-iframe,
.help-playlist-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  margin-top: 12px;
  background: #000;
}

.help-callout {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--help-border);
  background: rgba(8, 17, 31, 0.45);
}
.help-callout h4 {
  margin: 0 0 8px;
}

.help-footer-note {
  margin-top: 28px;
  padding: 20px 16px;
  font-size: 14px;
  color: var(--help-muted);
  text-align: center;
  border-top: 1px solid var(--help-border);
}
.help-footer-note a {
  color: var(--help-accent);
  text-decoration: none;
}
.help-footer-note a:hover {
  text-decoration: underline;
}
.help-search-result {
  padding: 14px 0;
  border-bottom: 1px solid rgba(119, 162, 228, 0.12);
  transition: padding-left 0.1s ease;
}
.help-search-result:hover {
  padding-left: 4px;
}

@media (max-width: 900px) {
  .help-layout {
    grid-template-columns: 1fr;
  }
  .help-nav-toggle {
    display: inline-flex;
  }
  .help-sidebar .help-nav-list {
    display: none;
  }
  .help-layout.help-nav-open .help-nav-list {
    display: flex;
  }
  .help-sidebar {
    position: static;
  }
  .help-cmd-table {
    display: none;
  }
  .help-cmd-cards {
    display: grid;
    gap: 12px;
  }
  .help-cmd-card {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--help-border);
    background: var(--help-panel-2);
  }
  .help-cmd-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
  }
}

.help-tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 0.92rem;
}

.help-tier-table th,
.help-tier-table td {
  border: 1px solid var(--help-border);
  padding: 8px 10px;
  text-align: center;
  vertical-align: top;
}

.help-tier-table th[scope="row"] {
  text-align: left;
  font-weight: 600;
  background: var(--help-panel-2);
}

.help-tier-table thead th {
  background: var(--help-panel-2);
  font-weight: 600;
}

.help-tier-note {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--help-muted, #888);
}

@media (max-width: 640px) {
  .help-tier-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
