/* ─────────────────────────────────────────────────────────────────────────
   In-app help center — /show-clock/help[/topic]
   Renders inside .p-shell, so it inherits the platform design tokens
   (--accent #e3a948, --tile, --tile-2, --line, --line-soft, --text/--muted/
   --faint, --serif/--sans/--mono). No new tokens invented (DESIGN-GUIDE).
   ───────────────────────────────────────────────────────────────────────── */

.help-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 0 72px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ── Sidebar / topic nav ─────────────────────────────────────────────────── */
.help-side {
  position: sticky;
  top: 16px;
}

.help-side-card {
  border: 1px solid var(--line);
  background: var(--tile);
  border-radius: 14px;
  padding: 18px 16px;
}

.help-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2px;
}

.help-side-card h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

.help-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.help-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.help-nav a:hover {
  color: var(--text);
  background: var(--tile-2);
}

.help-nav a.is-active {
  color: var(--text);
  background: var(--tile-2);
  border-color: var(--line);
  box-shadow: inset 2px 0 0 var(--accent);
}

.help-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #1a1509;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: filter .12s ease;
}

.help-open-btn:hover { filter: brightness(1.06); }
.help-open-btn svg { width: 16px; height: 16px; }

/* ── Main article ────────────────────────────────────────────────────────── */
.help-main { min-width: 0; }

.help-crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 6px;
}

.help-head h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 8px;
}

.help-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 62ch;
}

/* Prose defaults inside the article body */
.help-body { color: var(--text); }

.help-body h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 12px;
  padding-top: 8px;
}

.help-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
  letter-spacing: 0.01em;
}

.help-body p,
.help-body li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.help-body p { margin: 0 0 14px; max-width: 68ch; }

.help-body strong { color: var(--text); font-weight: 600; }

.help-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.help-body a:hover { border-bottom-color: var(--accent); }

.help-body ul,
.help-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  max-width: 68ch;
}
.help-body li { margin: 0 0 6px; }
.help-body li::marker { color: var(--faint); }

.help-body code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--tile-2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--text);
  word-break: break-word;
}

kbd {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--text);
  white-space: nowrap;
}

/* ── Callouts ────────────────────────────────────────────────────────────── */
.help-note,
.help-warn {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--tile);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 20px 0;
}
.help-note { border-left: 3px solid var(--accent); }
.help-warn { border-left: 3px solid #d98a5b; }

.help-note svg,
.help-warn svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}
.help-note svg { color: var(--accent); }
.help-warn svg { color: #d98a5b; }

.help-note p,
.help-warn p { margin: 0; color: var(--muted); }
.help-note p:not(:last-child),
.help-warn p:not(:last-child) { margin-bottom: 8px; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.help-table-wrap {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.help-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 460px;
}

.help-body thead th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  background: var(--tile);
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.help-body tbody td {
  padding: 11px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.help-body tbody tr:last-child td { border-bottom: none; }
.help-body tbody td strong { color: var(--text); }

/* ── Cards / step lists ──────────────────────────────────────────────────── */
.help-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 22px;
  max-width: none;
}
.help-steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 42px;
  margin: 0 0 14px;
  color: var(--muted);
}
.help-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tile);
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 4px 0 24px;
}
.help-card {
  border: 1px solid var(--line);
  background: var(--tile);
  border-radius: 12px;
  padding: 16px;
}
.help-card h3 { margin: 0 0 6px; }
.help-card p { margin: 0; font-size: 14px; }

.help-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .help-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .help-side { position: static; }
  .help-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .help-nav a.is-active { box-shadow: none; }
  .help-head h1 { font-size: 25px; }
}
