/* ============================================================
   HELP CENTER — Layout, Articles, Cards, Steps, Breadcrumbs
   ============================================================ */

/* --- Breadcrumb Bar --- */
.lb-help-breadcrumb {
  padding: var(--lb-space-md) 0 !important;
  border-bottom: 1px solid var(--lb-gray-100);
}
.lb-breadcrumb__list {
  display: flex;
  gap: var(--lb-space-sm);
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.lb-breadcrumb__item + .lb-breadcrumb__item::before {
  content: "/";
  color: var(--lb-gray-300);
  margin-right: var(--lb-space-sm);
  font-size: var(--lb-text-sm);
}
.lb-breadcrumb__link {
  color: var(--lb-gray-500);
  font-size: var(--lb-text-sm);
  text-decoration: none;
  transition: color var(--lb-transition);
}
.lb-breadcrumb__link:hover {
  color: var(--lb-primary);
}
.lb-breadcrumb__item--current {
  font-size: var(--lb-text-sm);
  color: var(--lb-gray-800);
  font-weight: 500;
}

/* --- Article Two-Column Layout --- */
.lb-help-article__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--lb-space-3xl);
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
}

/* --- Sidebar (sticky) --- */
.lb-help-article__sidebar {
  position: sticky;
  top: var(--lb-space-2xl);
}

/* --- Sidebar Widgets --- */
.lb-help-widget {
  background: var(--lb-gray-50);
  border: 1px solid var(--lb-gray-100);
  border-radius: var(--lb-radius-lg);
  padding: var(--lb-space-lg);
  margin-bottom: var(--lb-space-lg);
}
.lb-help-widget__title {
  font-size: var(--lb-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lb-gray-500);
  margin: 0 0 var(--lb-space-md);
}
.lb-help-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lb-help-toc__list li {
  padding: 6px 0;
}
.lb-help-toc__list li + li {
  border-top: 1px solid var(--lb-gray-100);
}
.lb-help-toc__list a {
  color: var(--lb-gray-700);
  font-size: var(--lb-text-sm);
  text-decoration: none;
  transition: color var(--lb-transition);
  line-height: 1.4;
}
.lb-help-toc__list a:hover {
  color: var(--lb-primary);
}
.lb-help-related__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lb-help-related__list li {
  padding: 6px 0;
}
.lb-help-related__list li + li {
  border-top: 1px solid var(--lb-gray-100);
}
.lb-help-related__list a {
  color: var(--lb-gray-700);
  font-size: var(--lb-text-sm);
  text-decoration: none;
  transition: color var(--lb-transition);
  line-height: 1.4;
}
.lb-help-related__list a:hover {
  color: var(--lb-primary);
}

/* --- Prerequisites Box --- */
.lb-help-prereq {
  background: var(--lb-primary-50);
  border-left: 3px solid var(--lb-primary);
  border-radius: 0 var(--lb-radius-md) var(--lb-radius-md) 0;
  padding: var(--lb-space-lg);
  margin-bottom: var(--lb-space-2xl);
}
.lb-help-prereq strong {
  color: var(--lb-gray-900);
}
.lb-help-prereq ul {
  margin: var(--lb-space-sm) 0 0 var(--lb-space-lg);
  padding: 0;
}
.lb-help-prereq li {
  font-size: var(--lb-text-sm);
  color: var(--lb-gray-700);
  line-height: 1.6;
}

/* --- Numbered Steps --- */
.lb-help-steps {
  display: flex;
  flex-direction: column;
  gap: var(--lb-space-xl);
}
.lb-help-step {
  display: flex;
  gap: var(--lb-space-lg);
}
.lb-help-step__number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lb-primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--lb-text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.lb-help-step__body {
  flex: 1;
  min-width: 0;
}
.lb-help-step__title {
  font-size: var(--lb-text-lg);
  font-weight: 600;
  color: var(--lb-gray-900);
  margin: 0 0 var(--lb-space-xs);
  line-height: 1.3;
}
.lb-help-step__body p {
  font-size: var(--lb-text-base);
  color: var(--lb-gray-600);
  line-height: 1.7;
  margin: 0;
}
.lb-help-step__tip {
  background: var(--lb-gray-50);
  border-radius: var(--lb-radius-md);
  padding: var(--lb-space-sm) var(--lb-space-md);
  margin-top: var(--lb-space-sm);
  font-size: var(--lb-text-sm);
  color: var(--lb-gray-600);
}
.lb-help-step__tip strong {
  color: var(--lb-gray-800);
}

/* --- Persona Badges --- */
.lb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--lb-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--lb-radius-full);
}
.lb-badge--owner {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}
.lb-badge--tenant {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}
.lb-badge--vendor {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}
.lb-badge--general {
  background: rgba(148, 163, 184, 0.15);
  color: var(--lb-gray-600);
}
.lb-badge--category {
  background: rgba(255, 255, 255, 0.12);
  color: var(--lb-gray-300);
}

/* --- Hub Page: Persona Filter Tabs --- */
.lb-help-filters {
  display: flex;
  gap: var(--lb-space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--lb-space-lg);
}
.lb-help-filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--lb-gray-300);
  font-size: var(--lb-text-sm);
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--lb-radius-full);
  cursor: pointer;
  transition: all var(--lb-transition);
}
.lb-help-filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.lb-help-filter-btn.active {
  background: var(--lb-primary);
  border-color: var(--lb-primary);
  color: #fff;
}

/* --- Hub Page: Article Cards --- */
.lb-help-article-card {
  display: block;
  padding: var(--lb-space-lg);
  background: #fff;
  border: 1px solid var(--lb-gray-200);
  border-radius: var(--lb-radius-lg);
  text-decoration: none;
  transition: border-color var(--lb-transition), box-shadow var(--lb-transition);
}
.lb-help-article-card:hover {
  border-color: var(--lb-primary);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
}
.lb-help-article-card__title {
  font-size: var(--lb-text-base);
  font-weight: 600;
  color: var(--lb-gray-900);
  margin: 0 0 var(--lb-space-xs);
  line-height: 1.35;
}
.lb-help-article-card__desc {
  font-size: var(--lb-text-sm);
  color: var(--lb-gray-500);
  line-height: 1.5;
  margin: 0;
}
.lb-help-article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--lb-space-sm);
  margin-top: var(--lb-space-sm);
}

/* --- Hub Page: Persona Section Header --- */
.lb-help-persona-header {
  display: flex;
  align-items: center;
  gap: var(--lb-space-md);
  margin-bottom: var(--lb-space-xl);
}
.lb-help-persona-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--lb-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lb-help-persona-icon--owner { background: rgba(34, 197, 94, 0.1); color: #15803d; }
.lb-help-persona-icon--tenant { background: rgba(59, 130, 246, 0.1); color: #1d4ed8; }
.lb-help-persona-icon--vendor { background: rgba(245, 158, 11, 0.1); color: #b45309; }

/* --- Article FAQ Section --- */
.lb-help-faqs {
  margin-top: var(--lb-space-3xl);
  padding-top: var(--lb-space-2xl);
  border-top: 1px solid var(--lb-gray-100);
}
.lb-help-faqs h2 {
  font-size: var(--lb-text-xl);
  font-weight: 600;
  color: var(--lb-gray-900);
  margin: 0 0 var(--lb-space-lg);
}

/* --- Hub: Hidden state for filtering --- */
.lb-help-persona-section.lb-hidden {
  display: none;
}
.lb-help-article-card.lb-search-hidden {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .lb-help-article__layout {
    grid-template-columns: 1fr;
  }
  .lb-help-article__sidebar {
    position: static;
    order: -1;
  }
}
@media (max-width: 767px) {
  .lb-help-step {
    gap: var(--lb-space-md);
  }
  .lb-help-step__number {
    width: 32px;
    height: 32px;
    font-size: var(--lb-text-xs);
  }
}
