/*
 * Public help center (HelpController, marketing layout) — index + article pages.
 * Markdown prose itself is styled by markdown.css; these rules add the page chrome
 * (hero band, eyebrow, prose card, sticky sidebar, related list, CTA).
 */

/* ── Shared hero band ─────────────────────────────────────────────────────── */
.help-hero {
  background:
    radial-gradient(1200px 300px at 50% -120px, rgba(15, 124, 140, 0.12), transparent 70%),
    linear-gradient(180deg, #f6fafb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
}

.help-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 124, 140, 0.1);
  color: var(--tblr-primary, #0f7c8c);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.help-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: #94a3b8;
}
.help-breadcrumb a {
  color: var(--tblr-primary, #0f7c8c);
  text-decoration: none;
}
.help-breadcrumb a:hover {
  text-decoration: underline;
}
.help-breadcrumb .sep {
  color: #cbd5e1;
}
.help-breadcrumb .current {
  color: #475569;
  font-weight: 500;
}

/* ── Article ──────────────────────────────────────────────────────────────── */
.help-title {
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.help-lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: #64748b;
}

/* The prose card — generous padding, soft shadow so the body reads as a document. */
.help-prose-card {
  border: 1px solid var(--tblr-border-color, #e6e7e9);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -16px rgba(15, 23, 42, 0.18);
}
.help-prose-card .card-body {
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
@media (min-width: 992px) {
  .help-side {
    position: sticky;
    top: 1.5rem;
  }
}

.help-side-card {
  border: 1px solid var(--tblr-border-color, #e6e7e9);
  border-radius: 14px;
  overflow: hidden;
}
.help-side-title {
  margin: 0;
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  border-bottom: 1px solid var(--tblr-border-color, #e6e7e9);
}
.help-related-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #334155;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s ease, color 0.12s ease;
}
.help-related-item:last-child {
  border-bottom: 0;
}
.help-related-item:hover {
  background: #f8fafc;
  color: var(--tblr-primary, #0f7c8c);
}
.help-related-item.is-current {
  background: rgba(15, 124, 140, 0.08);
  color: var(--tblr-primary, #0f7c8c);
  font-weight: 600;
}

/* Contact CTA */
.help-cta {
  border: 1px solid rgba(15, 124, 140, 0.25);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(15, 124, 140, 0.06), rgba(15, 124, 140, 0.02));
  padding: 1.25rem;
}
.help-cta h4 {
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: #0f172a;
}
.help-cta p {
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  color: #64748b;
}

/* ── Index — category cards ───────────────────────────────────────────────── */
.help-cat-card {
  height: 100%;
  border: 1px solid var(--tblr-border-color, #e6e7e9);
  border-radius: 16px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.help-cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 124, 140, 0.4);
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.3);
}
.help-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 124, 140, 0.1);
  color: var(--tblr-primary, #0f7c8c);
}
.help-cat-link {
  display: block;
  padding: 0.625rem 0;
  border-top: 1px solid #f1f5f9;
  text-decoration: none;
}
.help-cat-link:first-of-type {
  border-top: 0;
}
.help-cat-link .t {
  font-weight: 600;
  color: #1f2937;
}
.help-cat-link:hover .t {
  color: var(--tblr-primary, #0f7c8c);
}
.help-cat-link .s {
  font-size: 0.8125rem;
  color: #94a3b8;
}
