/* Help hub (#view-help) — styles for js/mv-help.js.
 * Tokens only (css/tokens.css); no hex, no off-scale radius, no bespoke shadow.
 * Namespaced .mvhelp-* so nothing here can leak into another view. */

.mvhelp-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* ---- hero + search ---- */
.mvhelp-hero { text-align: center; }
.mvhelp-hero h1 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--text);
  margin: 0 0 var(--space-2);
}
.mvhelp-hero p { color: var(--text-2); margin: 0 0 var(--space-5); }

.mvhelp-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mvhelp-search:focus-within {
  border-color: var(--purple);
  box-shadow: var(--shadow-sm);
}
.mvhelp-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
}
.mvhelp-search input::placeholder { color: var(--muted); }

.mvhelp-results {
  max-width: 560px;
  margin: var(--space-3) auto 0;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mvhelp-none { color: var(--text-3); padding: var(--space-4); margin: 0; }
.mvhelp-fail { color: var(--text-3); margin: var(--space-3) 0 0; }

/* ---- shared article row ---- */
.mvhelp-hit {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.12s ease;
}
.mvhelp-hit:last-child { border-bottom: none; }
.mvhelp-hit:hover, .mvhelp-hit:focus-visible { background: var(--panel); }
.mvhelp-hit-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mvhelp-hit-main strong { font-weight: 600; }
.mvhelp-hit-sum {
  color: var(--text-3);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mvhelp-hit-cat {
  flex: none;
  color: var(--text-3);
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px var(--space-2);
  white-space: nowrap;
}
.mvhelp-openic { width: 13px; height: 13px; flex: none; color: var(--muted); }

/* ---- contextual + quick links ---- */
.mvhelp-ctx, .mvhelp-quick, .mvhelp-cats { text-align: left; }
.mvhelp-ctx h2, .mvhelp-quick h2, .mvhelp-cats h2, .mvhelp-foot h2 {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--text);
  margin: 0 0 var(--space-3);
}
.mvhelp-ctx .mvhelp-hit,
.mvhelp-quick-grid .mvhelp-hit {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mvhelp-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-3);
}

/* ---- category grid ---- */
.mvhelp-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-3);
}
.mvhelp-cat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.mvhelp-cat:hover, .mvhelp-cat:focus-visible {
  background: var(--panel);
  border-color: var(--border-strong);
}
.mvhelp-cat strong { flex: 1; font-weight: 600; font-size: 13px; }
.mvhelp-cat-n { color: var(--text-3); font-size: 11px; white-space: nowrap; }

/* ---- footer ---- */
.mvhelp-foot {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.mvhelp-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.mvhelp-foot-txt h2 { margin: 0 0 var(--space-1); }
.mvhelp-foot-txt p { margin: 0; color: var(--text-2); }
.mvhelp-foot-btns { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.mvhelp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--brand);
  color: var(--on-brand);
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.12s ease;
}
.mvhelp-btn:hover, .mvhelp-btn:focus-visible { opacity: 0.9; }
.mvhelp-btn:disabled { opacity: 0.55; cursor: default; }
.mvhelp-btn .mvhelp-openic { color: var(--on-brand); }
.mvhelp-btn-ghost {
  background: none;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

/* ---- contact forms (report a bug / message us) ---- */
.mvhelp-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
}
.mvhelp-lab {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.mvhelp-in {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font);
  font-size: 13px;
}
.mvhelp-in:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.mvhelp-ta { resize: vertical; }
/* display:flex on the form beats the UA [hidden] rule — restate it. */
.mvhelp-form[hidden] { display: none; }
.mvhelp-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-1);
}
.mvhelp-note { font-size: 12px; color: var(--text-3); }
.mvhelp-sent {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}

/* ---- solo request views (sidebar: Report a Bug / Feature Request / …) ---- */
.mvhelp-solo-wrap { max-width: 640px; gap: var(--space-4); }
.mvhelp-form-solo {
  margin-top: 0;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.mvhelp-solo-wrap .mvhelp-sent { border-top: 0; text-align: center; }

@media (max-width: 720px) {
  .mvhelp-wrap { padding: var(--space-4) var(--space-3) var(--space-8); }
  .mvhelp-quick-grid, .mvhelp-cat-grid { grid-template-columns: 1fr; }
  .mvhelp-hit-cat { display: none; }
}
