/* Stage 27.9 - Global contextual page help */
.bnc-help-launcher {
  position: fixed;
  left: 1.15rem;
  bottom: 5.4rem;
  z-index: 1046;
  border: 0;
  border-radius: 999px;
  padding: .72rem 1.05rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(13, 110, 253, .22);
  background: linear-gradient(135deg, #0d6efd 0%, #5b7cfa 100%);
  color: #fff;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.bnc-help-launcher:hover,
.bnc-help-launcher:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(13, 110, 253, .32);
}
.bnc-help-launcher i { font-size: 1.15rem; line-height: 1; }
.bnc-help-launcher .bnc-help-launcher-text { line-height: 1; }
.bnc-help-modal .modal-content {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}
.bnc-help-modal .modal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  color: #fff;
  border: 0;
  padding: 1rem 1.2rem;
}
.bnc-help-modal .modal-header .btn-close { filter: invert(1) grayscale(100%) brightness(200%); opacity: .85; }
.bnc-help-modal .modal-title { font-weight: 800; display:flex; align-items:center; gap:.5rem; }
.bnc-help-modal .modal-body { background: #f6f8fc; padding: 1rem; }
.bnc-help-shell { display: grid; gap: .9rem; }
.bnc-help-section {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  padding: .95rem 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}
.bnc-help-section-title {
  font-weight: 800;
  color: #111827;
  margin-bottom: .65rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.bnc-help-section-title i { color: #2563eb; font-size: 1.1rem; }
.bnc-help-section p { color: #475569; margin-bottom: .45rem; line-height: 1.9; }
.bnc-help-list { margin: 0; padding-right: 1.15rem; color: #334155; }
.bnc-help-list li { margin: .35rem 0; line-height: 1.85; }
.bnc-help-pill-wrap { display:flex; flex-wrap:wrap; gap:.45rem; }
.bnc-help-pill {
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  border-radius: 999px;
  padding: .35rem .65rem;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: .82rem;
  font-weight: 700;
}
.bnc-help-empty { color:#64748b; font-size:.9rem; }
.bnc-help-meta {
  background: rgba(37, 99, 235, .08);
  color: #1e40af;
  border-radius: 14px;
  padding: .65rem .8rem;
  font-size: .9rem;
  line-height: 1.8;
}
.bnc-help-keyword {
  background: #fef3c7;
  color: #92400e;
  border-radius: .45rem;
  padding: .05rem .35rem;
  font-weight: 700;
}
@media (max-width: 768px) {
  .bnc-help-launcher {
    left: .8rem;
    bottom: 4.8rem;
    padding: .68rem .88rem;
  }
  .bnc-help-launcher .bnc-help-launcher-text { display: none; }
  .bnc-help-modal .modal-dialog { margin: .55rem; }
  .bnc-help-modal .modal-body { padding: .75rem; }
}
@media print {
  .bnc-help-launcher,
  .bnc-help-modal { display: none !important; }
}

/* Stage 27.10 - practical playbook help improvements */
.bnc-help-section-playbook {
  border-color: rgba(37, 99, 235, .22);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.bnc-help-section-featured {
  border-color: rgba(245, 158, 11, .28);
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}
.bnc-help-playbook-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 16px;
  padding: .85rem .95rem;
  margin-bottom: .85rem;
}
.bnc-help-playbook-head strong {
  color: #0f172a;
  font-size: 1rem;
}
.bnc-help-playbook-head p {
  margin: .25rem 0 0;
}
.bnc-help-playbook-head > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .35rem .65rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.bnc-help-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .85rem;
}
.bnc-help-two-col > div {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 15px;
  padding: .85rem;
}
.bnc-help-section h6 {
  font-weight: 800;
  color: #1e293b;
  margin-bottom: .55rem;
}
.bnc-help-steps {
  counter-reset: help-step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.bnc-help-steps li {
  counter-increment: help-step;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
  color: #334155;
  line-height: 1.9;
}
.bnc-help-steps li::before {
  content: counter(help-step);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .82rem;
  margin-top: .15rem;
}
.bnc-help-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.bnc-help-field {
  border: 1px solid rgba(148, 163, 184, .18);
  background: #fff;
  border-radius: 13px;
  padding: .65rem .75rem;
}
.bnc-help-field strong {
  display: block;
  color: #0f172a;
  margin-bottom: .15rem;
}
.bnc-help-field small {
  display: block;
  color: #64748b;
  line-height: 1.8;
}
.bnc-help-inline {
  margin-top: .6rem;
}
@media (max-width: 768px) {
  .bnc-help-two-col,
  .bnc-help-field-grid {
    grid-template-columns: 1fr;
  }
  .bnc-help-playbook-head {
    display: block;
  }
  .bnc-help-playbook-head > span {
    margin-top: .5rem;
    white-space: normal;
  }
}
