/* Deeper — help section.
   Typography-first. Inherits all color/font tokens, the aurora atmosphere,
   and the base reset from ../style.css. Nothing decorative is hardcoded here —
   every color reads from the site's CSS variables so the help pages follow the
   main site's design as it evolves. */

/* Token bridge: this file predates the site revamp's token rename. Map the
   names used below onto the revamp's tokens so both evolve together. */
:root {
  --accent: var(--cyan);
  --accent-border: color-mix(in srgb, var(--cyan) 35%, transparent);
  --accent-glow: color-mix(in srgb, var(--cyan) 16%, transparent);
  --glass: var(--glass-2);
  --glass-heavy: var(--glass-3);
  --hairline: var(--hair);
  --hairline-2: var(--hair-2);
  --radius-sm: 8px;
}

/* ---------- Shell ---------- */
.help-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(14, 6, 8, 0.55);
  border-bottom: 1px solid var(--hairline);
}
.help-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}
.help-nav .help-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.help-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.help-nav .brand .mark {
  color: var(--accent);
  font-size: 14px;
  transform: translateY(0.5px);
}
.help-home {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.help-home:hover { color: var(--text); }

.help-main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

/* ---------- Breadcrumb ---------- */
.crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 34px;
}
.crumbs a { color: var(--text-2); transition: color 0.2s ease; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { margin: 0 8px; color: var(--hairline-2); }

/* ---------- Document typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.doc h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.doc .lede {
  margin-top: 18px;
  font-size: clamp(16px, 2.3vw, 19px);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.55;
}
.doc h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 52px 0 4px;
}
.doc h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 0;
  color: var(--text);
}
.doc p {
  margin-top: 14px;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.65;
}
.doc p strong,
.doc li strong { color: var(--text); font-weight: 500; }
.doc a.inline {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-border);
}
.doc a.inline:hover { border-bottom-color: var(--accent); }

/* UI labels rendered as they appear in the app */
.doc .ui {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}
.doc kbd {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--text);
  background: var(--glass-heavy);
  border: 1px solid var(--hairline-2);
  border-radius: 5px;
  padding: 2px 7px;
}

/* ---------- Lists ---------- */
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 0; list-style: none; }
.doc li {
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.6;
  padding: 10px 0 10px 26px;
  position: relative;
  border-top: 1px solid var(--hairline);
}
.doc li::before {
  content: '\25C6';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-size: 11px;
}
.doc ol { counter-reset: step; }
.doc ol li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--mono);
  font-size: 12px;
  top: 11px;
}

/* ---------- Callout ---------- */
.note {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 2px solid var(--accent-border);
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
}
.note p { margin-top: 0; color: var(--text-2); }
.note p + p { margin-top: 10px; }
.note .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Hub index ---------- */
.hub-intro { margin-bottom: 12px; }
.hub-grid { margin-top: 40px; display: grid; gap: 0; }
.hub-item {
  display: block;
  padding: 22px 4px;
  border-top: 1px solid var(--hairline);
  transition: padding-left 0.2s ease;
}
.hub-grid .hub-item:last-child { border-bottom: 1px solid var(--hairline); }
.hub-item:hover { padding-left: 10px; }
.hub-item h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hub-item h2 .idx { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.hub-item p { margin-top: 8px; padding-left: 24px; color: var(--text-2); font-weight: 300; font-size: 15px; }

/* ---------- Document footer nav ---------- */
.doc-foot {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.doc-foot a { color: var(--text-2); transition: color 0.2s ease; }
.doc-foot a:hover { color: var(--accent); }
