/*
 * Help pages (vanzen.ai/help). Loaded after legal.css and uses its tokens, so
 * light and dark follow the device the same way.
 */

.help-skip {
  position: absolute;
  left: 8px;
  top: -48px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  z-index: 10;
}

.help-skip:focus {
  top: 8px;
}

.help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.help-top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
}

.help-top-nav a {
  color: var(--muted);
  text-decoration: none;
}

.help-top-nav a:hover,
.help-top-nav a[aria-current="page"] {
  color: var(--text);
}

.help-top-nav a.help-open {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.help-top-nav a.help-open:hover {
  border-color: var(--muted);
}

.help-top-nav a:focus-visible,
.help-topic a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.help-crumb {
  margin: 0 0 8px;
  font-size: 15px;
}

.help-toc {
  border-left: 2px solid var(--line);
  padding-left: 14px;
  margin: 0 0 8px;
}

.help-toc h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
}

.help-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-toc li {
  margin: 0 0 4px;
}

.help-steps li {
  padding-left: 4px;
}

.help-main strong {
  font-weight: 650;
}

.help-note {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
}

.help-note a {
  color: var(--accent-on-surface);
}

.help-stuck {
  margin-top: 40px;
}

/* Index */
.help-filter {
  margin: 0 0 20px;
}

.help-filter[hidden] {
  display: none;
}

.help-filter label {
  display: block;
  font-weight: 650;
  margin-bottom: 6px;
}

.help-filter input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px;
}

.help-filter input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.help-filter input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.help-filter-status {
  margin: 8px 0 0;
  color: var(--muted);
}

.help-filter-status:empty {
  display: none;
}

.help-topics {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 12px;
}

.help-topic {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 18px 6px;
  margin: 0;
}

.help-topic[hidden] {
  display: none;
}

.help-topic h2 {
  margin: 0 0 4px;
  font-size: 1.125rem;
}

.help-topic h2 a {
  color: var(--text);
  text-decoration: none;
}

.help-topic h2 a:hover {
  text-decoration: underline;
}

.help-topic p {
  color: var(--muted);
  margin-bottom: 8px;
}

.help-topic-sections {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 14px;
}

.help-topic-sections li {
  margin: 0 0 6px;
}

.help-topic-sections a {
  color: var(--accent-on-surface);
}

@media print {
  .help-top-nav,
  .help-filter,
  .help-skip {
    display: none;
  }
}
