/* ============================================================
   NEONBET · Help Centre (/help) — js/help.js renders into #nbh.
   Built from the design tokens only (surfaces, borders, neon
   accents, display face), inside the shared #content-panel.
   ============================================================ */

#content-panel #nbh { max-width: 1040px; margin: 0 auto; }
#content-panel #nbh * { box-sizing: border-box; }
#content-panel #nbh [hidden] { display: none !important; }

/* ---- Hero + search ---- */
#content-panel #nbh .nbh-hero { text-align: center; padding: var(--space-4) 0 var(--space-8); }
#content-panel #nbh .nbh-eyebrow {
  margin: 0 0 var(--space-2); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon-cyan);
}
#content-panel #nbh .nbh-h1 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em;
  font-size: var(--text-3xl); line-height: 1.1; color: var(--text-primary); margin: 0;
}
#content-panel #nbh .nbh-search {
  position: relative; max-width: 620px; margin: var(--space-6) auto 0;
}
#content-panel #nbh .nbh-search .nbh-i {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--text-muted); pointer-events: none;
}
#content-panel #nbh .nbh-search input {
  width: 100%; height: 56px; padding: 0 18px 0 50px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--bg-surface-1); color: var(--text-primary);
  font: inherit; font-size: 16px;          /* 16px: no iOS zoom-on-focus */
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur-fast, .15s) ease, box-shadow var(--dur-fast, .15s) ease;
}
#content-panel #nbh .nbh-search input::placeholder { color: var(--text-muted); }
#content-panel #nbh .nbh-search input:focus { border-color: var(--border-neon); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15); }

/* ---- Sections ---- */
#content-panel #nbh .nbh-sec { margin-top: var(--space-8); }
#content-panel #nbh .nbh-sec-h {
  font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-secondary); margin: 0 0 var(--space-3);
}

/* ---- Question link lists (popular, results) ---- */
#content-panel #nbh .nbh-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 768px) { #content-panel #nbh .nbh-links:not(.nbh-hits) { grid-template-columns: 1fr 1fr; } }
#content-panel #nbh .nbh-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--bg-surface-1); border: 1px solid var(--border-subtle);
  color: var(--text-primary); text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
}
#content-panel #nbh .nbh-links a:hover { border-color: var(--border-neon); background: var(--bg-surface); }
#content-panel #nbh .nbh-links a span { min-width: 0; }
#content-panel #nbh .nbh-links small { display: block; margin-top: 2px; font-size: var(--text-xs); color: var(--text-muted); font-weight: 400; }
#content-panel #nbh .nbh-i-sm { width: 16px; height: 16px; flex: none; color: var(--text-muted); }
#content-panel #nbh .nbh-links a:hover .nbh-i-sm { color: var(--neon-cyan); }

/* ---- Topic cards ---- */
#content-panel #nbh .nbh-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px)  { #content-panel #nbh .nbh-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { #content-panel #nbh .nbh-grid { grid-template-columns: repeat(4, 1fr); } }
#content-panel #nbh .nbh-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto;
  column-gap: 14px; row-gap: 2px; align-content: start;
  padding: 18px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface-1) 100%);
  border: 1px solid var(--border-subtle); color: var(--text-primary); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
#content-panel #nbh .nbh-card:hover { border-color: var(--border-neon); box-shadow: 0 8px 28px rgba(0, 229, 255, 0.08); }
@media (hover: hover) { #content-panel #nbh .nbh-card:hover { transform: translateY(-2px); } }
#content-panel #nbh .nbh-card-ic {
  grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.22); color: var(--neon-cyan);
}
#content-panel #nbh .nbh-card-ic .nbh-i { width: 22px; height: 22px; }
#content-panel #nbh .nbh-card-t { color: var(--text-primary); font-weight: 700; font-size: var(--text-base); line-height: 1.25; }
#content-panel #nbh .nbh-card-d { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.4; }
#content-panel #nbh .nbh-card-n { margin-top: 6px; font-size: var(--text-xs); font-weight: 600; color: var(--neon-cyan); }
@media (min-width: 1024px) {
  /* Desktop: icon above the text, so four narrow columns read cleanly. */
  #content-panel #nbh .nbh-card { grid-template-columns: 1fr; padding: 20px; min-height: 176px; }
  #content-panel #nbh .nbh-card-ic { grid-row: auto; margin-bottom: 12px; }
}

/* ---- Topic page ---- */
#content-panel #nbh .nbh-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: var(--text-sm); color: var(--text-muted); margin: 0 0 var(--space-5);
}
#content-panel #nbh .nbh-crumbs a { color: var(--text-secondary); text-decoration: none; }
#content-panel #nbh .nbh-crumbs a:hover { color: var(--neon-cyan); }
#content-panel #nbh .nbh-topic-head { display: flex; align-items: center; gap: 16px; margin-bottom: var(--space-6); }
#content-panel #nbh .nbh-topic-head .nbh-card-ic { width: 52px; height: 52px; }
#content-panel #nbh .nbh-h1-topic { font-size: var(--text-2xl); }
#content-panel #nbh .nbh-topic-d { margin: 6px 0 0; color: var(--text-secondary); font-size: var(--text-sm); }

/* ---- Accordion ---- */
#content-panel #nbh .nbh-list { display: grid; gap: 10px; }
#content-panel #nbh .nbh-item {
  border-radius: var(--radius-md); background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle); transition: border-color .15s ease;
}
#content-panel #nbh .nbh-item.is-open { border-color: rgba(0, 229, 255, 0.35); background: var(--bg-surface); }
#content-panel #nbh .nbh-q { margin: 0; font-family: var(--font-sans); font-size: inherit; letter-spacing: normal; text-transform: none; }
#content-panel #nbh .nbh-q button {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--text-primary); font: inherit; font-size: var(--text-base); font-weight: 600; line-height: 1.35;
  border-radius: var(--radius-md);
}
#content-panel #nbh .nbh-q button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
#content-panel #nbh .nbh-chev { width: 20px; height: 20px; flex: none; color: var(--text-muted); transition: transform .2s ease; }
#content-panel #nbh .nbh-item.is-open .nbh-chev { transform: rotate(180deg); color: var(--neon-cyan); }
#content-panel #nbh .nbh-a { padding: 0 16px 16px; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; }
#content-panel #nbh .nbh-a p { margin: 0 0 10px; }
#content-panel #nbh .nbh-steps, #content-panel #nbh .nbh-bullets { margin: 0 0 10px; padding-left: 1.3em; }
#content-panel #nbh .nbh-steps li, #content-panel #nbh .nbh-bullets li { margin: 4px 0; }
#content-panel #nbh .nbh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
#content-panel #nbh .nbh-act { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
/* Route actions are <a class="btn">: the panel's generic link colour (cyan) would
   otherwise beat the button's own text colour. Restate the design-system values. */
#content-panel #nbh a.btn-primary.nbh-act,
#content-panel #nbh a.btn-primary { color: var(--text-inverse); }
#content-panel #nbh a.btn-secondary.nbh-act { color: var(--text-primary); }
#content-panel #nbh .nbh-act .nbh-i-sm { color: currentColor; }
#content-panel #nbh .nbh-copy {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 0;
  background: none; border: 0; cursor: pointer; font: inherit; font-size: var(--text-xs);
  color: var(--text-muted);
}
#content-panel #nbh .nbh-copy:hover { color: var(--neon-cyan); }
#content-panel #nbh .nbh-copy .nbh-i-sm { color: currentColor; width: 14px; height: 14px; }

/* ---- Other topics ---- */
#content-panel #nbh .nbh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#content-panel #nbh .nbh-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  color: var(--text-secondary); text-decoration: none; font-size: var(--text-sm);
}
#content-panel #nbh .nbh-chip:hover { border-color: var(--border-neon); color: var(--text-primary); }

/* ---- Empty results ---- */
#content-panel #nbh .nbh-empty {
  padding: 20px; border-radius: var(--radius-md); background: var(--bg-surface-1);
  border: 1px dashed var(--border-strong); color: var(--text-secondary); font-size: var(--text-sm);
}
#content-panel #nbh .nbh-empty p { margin: 0 0 8px; }
#content-panel #nbh .nbh-empty b { color: var(--text-primary); }

/* ---- Still need help? ---- */
#content-panel #nbh .nbh-help {
  display: flex; align-items: center; gap: 16px; margin-top: var(--space-10);
  padding: 20px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(139, 92, 255, 0.16), rgba(0, 229, 255, 0.10));
  border: 1px solid rgba(139, 92, 255, 0.35);
}
#content-panel #nbh .nbh-help-ic {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); color: var(--text-primary);
}
#content-panel #nbh .nbh-help-ic .nbh-i { width: 22px; height: 22px; }
#content-panel #nbh .nbh-help-t { flex: 1; min-width: 0; }
#content-panel #nbh .nbh-help h2 { margin: 0; font-family: var(--font-sans); letter-spacing: normal; text-transform: none; font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); }
#content-panel #nbh .nbh-help p { margin: 2px 0 0; font-size: var(--text-sm); color: var(--text-secondary); }
#content-panel #nbh .nbh-help-btn { flex: none; }
@media (max-width: 559px) {
  #content-panel #nbh .nbh-help { flex-wrap: wrap; }
  #content-panel #nbh .nbh-help-ic { display: none; }
  #content-panel #nbh .nbh-help-btn { width: 100%; }
}

/* ---- Small phones ---- */
@media (max-width: 400px) {
  #content-panel #nbh .nbh-hero { padding-bottom: var(--space-6); }
  #content-panel #nbh .nbh-card { padding: 14px; }
  #content-panel #nbh .nbh-q button { padding: 12px 14px; }
  #content-panel #nbh .nbh-a { padding: 0 14px 14px; }
}
