/* ============================================================================
   help-v3.css — PhantomYerra Help Center (Blue/White/Grey/Black redesign)
   v45.1.20  —  © Ravi Yerra. All Rights Reserved.

   HELP SECTION ONLY — main marketing site keeps its crimson identity.
   This file is loaded via <link> and deliberately styles everything under
   .help-body via high-specificity rules so it cannot be defeated by browser
   cache of earlier attempts.

   Palette (ONLY these four families — no crimson, no teal, no amber):
     BLACK   #000000 #0A0E14 #12161D  (base, surface, surface-2)
     BLUE    #2563EB #3B82F6 #60A5FA #1E3A8A  (primary, hover, accent, deep)
     WHITE   #FFFFFF #F9FAFB #E5E7EB  (heading, body, secondary)
     GREY    #D1D5DB #9CA3AF #6B7280 #374151 #1F2937  (greys 300→800)

   Logo: TEXT only. No inline SVG — zero risk of unsized expansion.
============================================================================ */

:root {
  --black-base:       #000000;
  --black-surface:    #0A0E14;
  --black-surface-2:  #12161D;
  --black-surface-3:  #1A1F28;
  --blue-primary:     #2563EB;
  --blue-hover:       #3B82F6;
  --blue-accent:      #60A5FA;
  --blue-deep:        #1E3A8A;
  --blue-dim:         rgba(37, 99, 235, 0.12);
  --blue-soft:        rgba(37, 99, 235, 0.06);
  --white-pure:       #FFFFFF;
  --white-off:        #F9FAFB;
  --white-2:          #E5E7EB;
  --grey-300:         #D1D5DB;
  --grey-400:         #9CA3AF;
  --grey-500:         #6B7280;
  --grey-600:         #4B5563;
  --grey-700:         #374151;
  --grey-800:         #1F2937;
  --grey-900:         #111827;

  --border:           #1F2937;
  --border-hover:     #374151;
  --border-bright:    #4B5563;

  --text-heading:     #FFFFFF;
  --text-body:        #E5E7EB;
  --text-secondary:   #D1D5DB;
  --text-muted:       #9CA3AF;
  --text-faint:       #6B7280;

  --font-head: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  --nav-h: 64px;
  --sidebar-w: 260px;
  --content-max: 820px;

  --motion: 150ms cubic-bezier(.4,0,.2,1);
}

/* ── Hard reset that defeats any cached accordion-header button styling ── */
html, body {
  margin: 0;
  padding: 0;
  background: var(--black-base) !important;
  color: var(--text-body) !important;
  font-family: var(--font-body) !important;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body { padding-top: var(--nav-h); }

*, *::before, *::after { box-sizing: border-box; }

img, svg { max-width: 100%; height: auto; }

/* Normalize all help-page buttons so UA button defaults NEVER override us */
.help-topnav button,
.faq-question,
.accordion-header,
.mode-tab {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

::selection { background: var(--blue-dim); color: var(--white-pure); }

a { color: var(--blue-accent); text-decoration: none; transition: color var(--motion); }
a:hover { color: var(--blue-hover); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--black-surface-2);
  color: var(--blue-accent);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
pre {
  background: var(--black-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey-300);
  margin: 16px 0;
}
pre code { background: transparent; padding: 0; border: 0; color: inherit; }

/* ══════════════════════════════════════════════════════════════════════════
   TOPNAV — Fixed, blue + white + grey + black only
   TEXT-ONLY logo, no SVG size risk
═══════════════════════════════════════════════════════════════════════════ */
.help-topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--black-surface);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03);
}
.help-topnav-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--white-pure);
  white-space: nowrap;
  flex-shrink: 0;
}
.help-topnav-logo .logo-mark {
  color: var(--blue-primary);
  font-weight: 900;
  margin-right: 1px;
}
.help-topnav-logo .logo-tag {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-left: 10px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.help-topnav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2px;
  align-items: center;
}
.help-topnav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: var(--r-sm);
  transition: color var(--motion), background var(--motion);
  white-space: nowrap;
}
.help-topnav-links a:hover {
  color: var(--white-pure);
  background: var(--black-surface-2);
}
.help-topnav-links a.current {
  color: var(--blue-accent);
  background: var(--blue-soft);
}
.help-topnav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-topnav-login {
  color: var(--text-secondary);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: color var(--motion);
  white-space: nowrap;
}
.help-topnav-login:hover { color: var(--white-pure); }
.help-topnav-cta {
  background: var(--blue-primary);
  color: var(--white-pure);
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background var(--motion), transform var(--motion);
  white-space: nowrap;
}
.help-topnav-cta:hover {
  background: var(--blue-hover);
  color: var(--white-pure);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .help-topnav { padding: 0 16px; gap: 12px; }
  .help-topnav-links { display: none; }
  .help-topnav-login { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTENT LAYOUT
═══════════════════════════════════════════════════════════════════════════ */
.help-page,
article.help-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 44px 32px 96px;
}
@media (max-width: 700px) {
  .help-page, article.help-page { padding: 28px 20px 72px; }
}

.help-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.help-breadcrumb a { color: var(--text-muted); }
.help-breadcrumb a:hover { color: var(--text-secondary); }
.help-breadcrumb .sep { color: var(--grey-600); }
.help-breadcrumb .current { color: var(--blue-accent); font-weight: 600; }

.help-page .page-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.help-page .page-header .page-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  border: 1px solid var(--blue-dim);
  border-radius: var(--r-lg);
  color: var(--blue-accent);
}
.help-page .page-header h1 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white-pure);
  margin: 0 0 8px;
  line-height: 1.2;
}
.help-page .page-header p {
  margin: 0;
  color: var(--text-body);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 740px;
}

/* Section headings */
.help-page h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white-pure);
  margin: 56px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.help-page h2:first-of-type { margin-top: 0; }
.help-page h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--white-pure);
  margin: 32px 0 10px;
}
.help-page h4 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 22px 0 10px;
}
.help-page p {
  color: var(--text-body);
  margin: 12px 0;
  line-height: 1.75;
  font-size: 15px;
}
.help-page p strong { color: var(--white-pure); font-weight: 600; }
.help-page ul, .help-page ol {
  padding-left: 22px;
  color: var(--text-body);
}
.help-page ul li, .help-page ol li { margin: 8px 0; line-height: 1.7; }
.help-page ul li::marker { color: var(--blue-primary); }
.help-page ol li::marker { color: var(--blue-primary); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   STEP CARDS — Clean numbered flow
═══════════════════════════════════════════════════════════════════════════ */
.help-page .mode-step,
.help-page .step,
.step-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  background: var(--black-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin: 12px 0;
  transition: border-color var(--motion), background var(--motion);
}
.help-page .mode-step:hover,
.help-page .step:hover,
.step-card:hover {
  border-color: var(--blue-primary);
  background: var(--black-surface-2);
}
.help-page .step-number {
  width: 40px;
  height: 40px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-primary);
  color: var(--blue-accent);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.help-page .step-content h3 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white-pure);
}
.help-page .step-content p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   MODE TABS
═══════════════════════════════════════════════════════════════════════════ */
.help-page .mode-tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--black-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: 26px 0;
  width: fit-content;
}
.help-page .mode-tab {
  padding: 8px 18px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--motion), color var(--motion);
}
.help-page .mode-tab:hover { color: var(--white-pure); background: var(--black-surface-2); }
.help-page .mode-tab.active {
  background: var(--blue-primary);
  color: var(--white-pure);
}

/* ══════════════════════════════════════════════════════════════════════════
   CALLOUTS
═══════════════════════════════════════════════════════════════════════════ */
.callout,
.help-page .info-box,
.help-page .warn-box,
.help-page .danger-box,
.help-page .callout-tip,
.help-page .callout-warn,
.help-page .callout-danger,
.help-page .callout-info {
  background: var(--black-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-primary);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin: 20px 0;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
}
.callout strong, .help-page .info-box strong, .help-page .warn-box strong,
.help-page .danger-box strong, .help-page .callout-tip strong,
.help-page .callout-warn strong, .help-page .callout-danger strong,
.help-page .callout-info strong { color: var(--white-pure); font-weight: 600; }
.help-page .warn-box, .help-page .callout-warn { border-left-color: var(--blue-accent); }
.help-page .danger-box, .help-page .callout-danger { border-left-color: var(--white-2); }
.help-page .info-box, .help-page .callout-info, .help-page .callout-tip { border-left-color: var(--blue-primary); }

/* ══════════════════════════════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════════════════════════════ */
.help-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  background: var(--black-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.help-table th {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: var(--black-surface-2);
}
.help-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-body);
  vertical-align: top;
}
.help-table tr:last-child td { border-bottom: 0; }
.help-table td strong { color: var(--white-pure); font-weight: 600; }
.help-table tr:hover td { background: var(--black-surface-2); }

/* ══════════════════════════════════════════════════════════════════════════
   FAQ / COMMON ISSUES / ACCORDION
   Uses all:unset + !important on color to defeat every UA + cached override
═══════════════════════════════════════════════════════════════════════════ */
.help-page .accordion-item,
.faq-card {
  background: var(--black-surface) !important;
  border: 1px solid var(--border-hover) !important;
  border-radius: var(--r-md) !important;
  overflow: hidden;
  margin-bottom: 10px;
  transition: border-color var(--motion), background var(--motion);
}
.help-page .accordion-item:hover,
.faq-card:hover {
  border-color: var(--blue-primary) !important;
  background: var(--black-surface-2) !important;
}
.help-page .accordion-item.open,
.faq-card.open {
  border-left: 3px solid var(--blue-primary) !important;
  background: var(--black-surface-2) !important;
}

.help-page .accordion-header,
.faq-question {
  all: unset;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  width: 100% !important;
  padding: 16px 20px !important;
  cursor: pointer !important;
  font-family: var(--font-head) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: #FFFFFF !important;
  text-align: left !important;
  box-sizing: border-box !important;
  line-height: 1.45 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
}
.help-page .accordion-header:hover,
.faq-question:hover { color: #FFFFFF !important; }
.help-page .accordion-header:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid var(--blue-primary) !important;
  outline-offset: -2px !important;
}

.help-page .accordion-chevron,
.faq-icon {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-muted) !important;
  transition: transform var(--motion), color var(--motion);
}
.help-page .accordion-item.open .accordion-chevron,
.faq-card.open .faq-icon {
  transform: rotate(180deg);
  color: var(--blue-accent) !important;
}

.help-page .accordion-body,
.faq-answer {
  display: none;
  padding: 0 20px 18px !important;
  color: var(--text-body) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}
.help-page .accordion-item.open .accordion-body,
.faq-card.open .faq-answer {
  display: block;
  border-top: 1px solid var(--border);
  padding-top: 14px !important;
}
.help-page .accordion-body p,
.faq-answer p { margin: 10px 0; color: var(--text-body) !important; }
.help-page .accordion-body code,
.faq-answer code { background: var(--black-surface-3); color: var(--blue-accent); }

/* ══════════════════════════════════════════════════════════════════════════
   ISSUES SECTION HEADING
═══════════════════════════════════════════════════════════════════════════ */
.help-page .issues-section {
  margin-top: 56px;
}
.help-page .issues-section h2 {
  color: var(--blue-accent);
  border-bottom-color: var(--border);
}

/* ══════════════════════════════════════════════════════════════════════════
   PREREQ BOX
═══════════════════════════════════════════════════════════════════════════ */
.help-page .prereq-box {
  background: var(--black-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 24px 0;
}
.help-page .prereq-box h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-accent);
}
.help-page .prereq-box ul { list-style: none; padding: 0; margin: 0; }
.help-page .prereq-box li {
  position: relative;
  padding: 5px 0 5px 22px;
  color: var(--text-body);
  font-size: 14px;
}
.help-page .prereq-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--blue-primary);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════════
   RELATED TOPICS (bottom of page)
═══════════════════════════════════════════════════════════════════════════ */
.help-page .related-section {
  margin-top: 64px;
  padding: 26px 28px;
  background: var(--black-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.help-page .related-section h2 {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.help-page .related-section a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 4px 6px 4px 0;
  background: var(--black-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-body);
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--motion), color var(--motion), transform var(--motion);
}
.help-page .related-section a:hover {
  border-color: var(--blue-primary);
  color: var(--white-pure);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════════
   HELP SIDEBAR (when present)
═══════════════════════════════════════════════════════════════════════════ */
.help-sidebar {
  background: var(--black-surface);
  border-right: 1px solid var(--border);
  padding: 24px 18px 40px;
}
.help-sidebar h3 {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 0 8px;
  padding: 0 10px;
}
.help-sidebar h3:first-child { margin-top: 0; }
.help-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--motion), background var(--motion);
}
.help-sidebar a:hover {
  color: var(--white-pure);
  background: var(--black-surface-2);
}
.help-sidebar a.current {
  color: var(--blue-accent);
  background: var(--blue-soft);
  border-left: 2px solid var(--blue-primary);
  padding-left: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */
.help-footer {
  padding: 36px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: var(--black-base);
  margin-top: 80px;
}
.help-footer a { color: var(--text-secondary); text-decoration: none; margin: 0 10px; }
.help-footer a:hover { color: var(--white-pure); }

/* ══════════════════════════════════════════════════════════════════════════
   ANCHOR OFFSET  (account for fixed topnav)
═══════════════════════════════════════════════════════════════════════════ */
h1[id], h2[id], h3[id], h4[id], [id]:target {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* Print */
@media print {
  .help-topnav, .help-sidebar, .help-footer { display: none; }
  body { background: #fff !important; color: #000 !important; padding-top: 0 !important; }
  .help-page h1, .help-page h2, .help-page h3 { color: #000 !important; }
  .help-page p, .help-page li { color: #1a1a1a !important; }
  .help-page .accordion-item, .faq-card { background: #fff !important; border: 1px solid #ccc !important; }
  .help-page .accordion-header, .faq-question { color: #000 !important; }
  .help-page .accordion-body, .faq-answer { display: block !important; color: #222 !important; }
}
