.help-page { background: #f4f5f7; min-height: 100vh; overflow-x: clip; } /* clip: the title band below is 100vw wide (unlike hidden, clip keeps the sticky header working) */

.help-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.help-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.help-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: #4a86c0;
  text-decoration: none;
}
.help-brand .logo-img { height: 28px; width: auto; }

/* Page title: left-aligned and lined up with the content below it, on a
   light brand-tinted band that runs the full width of the screen. By
   default it matches the 760px column used by What's New and the policy
   pages (.whats-new-list / .legal-content); add .help-hero-wide on pages
   whose content spans the full width (Help Center). */
.help-hero {
  position: relative;
  isolation: isolate;
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 36px 20px 30px;
  text-align: left;
}
.help-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #eef4fa;
  border-bottom: 1px solid #d6e4f2;
}
.help-hero-wide { max-width: none; padding-left: 0; padding-right: 0; }
.help-hero h1 { font-size: 28px; font-weight: 800; color: #1a1a1a; margin-bottom: 6px; letter-spacing: -.01em; }
.help-hero p { font-size: 15px; color: #6b7280; }

.help-main { max-width: 1100px; margin: 0 auto; padding: 0 24px 64px; }

.help-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  margin-top: 8px;
  align-items: start;
}
@media (max-width: 720px) {
  .help-page { overflow-x: hidden; }
  .help-main { padding: 0 16px 48px; }
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 0; width: 100%; }

  /* Flip sidebar nav into a horizontal scrollable strip */
  .help-nav {
    position: static;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    width: 100%;
    margin-top: 16px;
  }
  .help-nav::-webkit-scrollbar { display: none; }
  .help-nav-section { display: none; }
  .help-nav-link {
    display: inline-block;
    flex-shrink: 0;
    padding: 10px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
    font-size: 13px;
  }
  .help-nav-link:hover { background: transparent; color: #4a86c0; }
  .help-nav-link.active {
    border-left-color: transparent;
    border-bottom-color: #4a86c0;
    background: transparent;
    font-weight: 600;
  }

  .help-section { padding: 24px 20px; }
  .help-section h2 { font-size: 19px; }
  .help-hero h1 { font-size: 24px; }
}

@media (max-width: 480px) {
  .help-hero { padding: 24px 20px 22px; margin-bottom: 20px; }   /* matches the 20px side padding of .whats-new-list / .legal-content */
  .help-hero-wide { padding-left: 0; padding-right: 0; }
  .help-hero h1 { font-size: 22px; }
  .help-section { padding: 20px 16px; }
  .help-section h3 { margin-top: 18px; }
}

.help-nav {
  position: sticky;
  top: 72px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px 0;
}
.help-nav-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9ca3af;
  padding: 4px 16px 6px;
}
.help-nav-link {
  display: block;
  padding: 7px 16px;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
}
.help-nav-link:hover { background: #f4f5f7; color: #4a86c0; }
.help-nav-link.active { color: #4a86c0; border-left-color: #4a86c0; background: #eff6ff; font-weight: 600; }

.help-content { display: flex; flex-direction: column; gap: 0; min-width: 0; overflow: hidden; }

.help-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 24px;
  scroll-margin-top: 88px;
}
.help-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 24px 0 10px;
}
.help-section p { font-size: 15px; color: #374151; line-height: 1.65; margin-bottom: 14px; overflow-wrap: break-word; }
.help-section p:last-child { margin-bottom: 0; }

.help-cms-icon { width: 24px; height: 24px; object-fit: contain; }

.help-steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
}
.help-steps li { font-size: 15px; color: #374151; line-height: 1.6; padding-left: 4px; overflow-wrap: break-word; }
.help-steps li::marker { color: #4a86c0; font-weight: 700; }

.help-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}
.help-list li { font-size: 15px; color: #374151; line-height: 1.6; overflow-wrap: break-word; }
.help-list li::marker { color: #4a86c0; }

.help-callout {
  background: #f8faff;
  border: 1px solid #c7d9f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0 0;
}
.help-callout > strong { display: block; font-size: 13px; color: #4a86c0; margin-bottom: 10px; }
.help-callout p { font-size: 13px; color: #6b7280; margin-top: 10px; margin-bottom: 0; }
.help-callout-warn { background: #fffbeb; border-color: #fcd34d; }
.help-callout-warn > strong { color: #92400e; }

.help-tip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #166534;
  margin-top: 16px;
  line-height: 1.6;
}
.help-tip strong { color: #15803d; }

pre {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
code {
  background: #f1f5f9;
  color: #1e293b;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

/* Override base active-state left border for mobile nav (must come after base rules) */
@media (max-width: 720px) {
  .help-nav-link.active { border-left: none; }
}

/* Privacy Policy / SMS Terms pages */
.legal-content { max-width: 760px; margin: 0 auto 64px; padding: 0 20px; }
.legal-content .help-section { margin-bottom: 32px; }
.legal-footer-links { font-size: 14px; color: var(--text-muted); text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.optin-figure { margin: 16px 0 8px; text-align: center; }
.optin-figure img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.optin-figure figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.optin-quote { margin: 12px 0; padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--bg); border-radius: 0 8px 8px 0; font-size: 15px; line-height: 1.6; }
.optin-samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.optin-samples pre { color: var(--text); margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; line-height: 1.5; background: #e9f1fb; border-radius: 14px 14px 14px 4px; padding: 12px 14px; }
.help-section h3[id] { scroll-margin-top: 88px; }

/* What's New (/whats-new) */
.whats-new-list { max-width: 760px; margin: 0 auto 64px; padding: 0 20px; display: flex; flex-direction: column; gap: 16px; }
.whats-new-item { background: var(--surface, #fff); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.whats-new-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.whats-new-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #ef4444; border-radius: 999px; padding: 2px 8px; }
.whats-new-item h2 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.whats-new-item p { font-size: 15px; line-height: 1.6; color: var(--text); margin: 0 0 10px; }
.whats-new-item a.whats-new-more { font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; }
.whats-new-item a.whats-new-more:hover { text-decoration: underline; }

/* ── Site look: navy header, dashboard-style cards and section links ── */
.help-page { background: #f1f4f8; }
.help-header { background: #1e293b; border-bottom: none; box-shadow: 0 2px 8px rgba(15,23,42,.25); }
.help-brand { color: #f7f7f7; }
.help-header .btn-outline { background: transparent; color: rgba(255,255,255,.92); border-color: rgba(255,255,255,.3); }
.help-header .btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.help-nav { border: 2px solid var(--border-card, #d6e4f2); border-radius: 12px; padding: 10px 8px; }
.help-nav-link { border-left: none; border-radius: 8px; margin: 1px 0; }
.help-nav-link.active { background: #eef4fa; color: #1e3a5f; box-shadow: inset 0 0 0 1.5px #4a86c0; }
.help-section, .whats-new-item { border: 2px solid var(--border-card, #d6e4f2); border-radius: 12px; }

/* "Can't find what you need?" banner under the Help Center heading */
.help-contact-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; padding: 12px 16px; border: 1px solid #c7dcf0; border-radius: 10px; background: #fff; font-size: 14px; line-height: 1.5; color: #334155; }
.help-hero .help-contact-banner-text { font-size: 14px; color: #334155; }
.help-contact-banner-text strong { color: #1a1a1a; }
.help-contact-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .help-contact-banner-actions { width: 100%; } .help-contact-banner-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; } }
