/* Veltra MCP Help — page chrome, typography, layout.
   Loaded after veltra-design-system.css; that file defines :root tokens
   (--color-blue, --color-black, etc.) and base components (.veltra-button,
   .veltra-chip, .veltra-link). This file does NOT redefine those — it adds
   help-page-specific layout. */

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--color-white);
  color: var(--color-black);
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-blue); }
a:hover { color: var(--color-blue-dark); }

/* ----- Skip link (a11y) ----- */
.vt-help-skip {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.vt-help-skip:focus {
  position: static; width: auto; height: auto;
  padding: 8px 12px; background: var(--color-blue); color: var(--color-white);
}

/* ----- Header ----- */
.vt-help-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light-gray);
}
.vt-help-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--color-black); text-decoration: none;
  font-size: 1rem;
}
.vt-help-brand img { display: block; }
.vt-help-nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
.vt-help-nav a {
  color: var(--color-black); text-decoration: none;
  padding: 6px 4px; font-size: 0.95rem;
}
.vt-help-nav a:hover { color: var(--color-blue); }
.vt-help-nav a[aria-current="page"] {
  color: var(--color-blue);
  border-bottom: 2px solid var(--color-blue);
}
.vt-help-lang {
  color: var(--color-blue); text-decoration: none; font-size: 0.95rem;
}
.vt-help-lang:hover { text-decoration: underline; }

/* ----- Mobile nav toggle (CSS-only, :checked pattern) ----- */
.vt-help-nav-toggle { display: none; }
.vt-help-nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 6px 10px; border: 1px solid var(--color-light-gray); border-radius: 4px;
  font-size: 0.85rem;
}

/* ----- Main content ----- */
.vt-help-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.vt-help-main h1 { font-size: 2rem;   line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
.vt-help-main h2 { font-size: 1.375rem; line-height: 1.3;  margin: 32px 0 12px; font-weight: 700; }
.vt-help-main h3 { font-size: 1.125rem; line-height: 1.35; margin: 24px 0 8px; font-weight: 600; }
.vt-help-main p { margin: 0 0 16px; }
.vt-help-main ul, .vt-help-main ol { margin: 0 0 16px; padding-left: 24px; }
.vt-help-main li { margin-bottom: 6px; }

/* Tag row under H1 */
.vt-help-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0 0 24px;
}

/* CTA row (Overview page) */
.vt-help-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 24px 0 32px;
}

/* Info callout */
.vt-help-callout {
  background: var(--color-blue-light);
  border-left: 4px solid var(--color-blue);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 4px 4px 0;
}
.vt-help-callout p:last-child { margin-bottom: 0; }

/* Code & pre */
.vt-help-main code {
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}
.vt-help-main pre {
  background: var(--color-blue-light);
  color: var(--color-black);
  padding: 12px 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.9rem;
}
.vt-help-main pre code { background: transparent; padding: 0; }

/* Copy block (server URL, prompt cards) */
.vt-help-copy-block {
  display: flex; gap: 8px; align-items: stretch;
  margin: 16px 0;
}
.vt-help-copy-block pre { flex: 1; }
.vt-help-copy-block .veltra-button { white-space: nowrap; }

/* Example / prompt card */
.vt-help-example-card {
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  padding: 16px;
  margin: 16px 0;
}
.vt-help-example-card h3 { margin-top: 0; }

/* Screenshot frame */
.vt-help-figure {
  margin: 24px 0;
}
.vt-help-figure img,
.vt-help-figure svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.vt-help-figure figcaption {
  margin-top: 8px;
  color: var(--color-dark-gray);
  font-size: 0.875rem;
  font-style: italic;
}

/* ----- Footer ----- */
.vt-help-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--color-black);
  color: var(--color-white);
  padding: 24px;
  margin-top: 64px;
}
.vt-help-footer-links {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
}
.vt-help-footer-links a {
  color: var(--color-white);
  text-decoration: none;
}
.vt-help-footer-links a:hover { text-decoration: underline; }
.vt-help-footer small { color: var(--color-gray); }

/* ----- Mobile breakpoint ----- */
@media (max-width: 720px) {
  .vt-help-header { gap: 12px; padding: 10px 16px; flex-wrap: wrap; }
  .vt-help-nav-toggle-label { display: inline-block; margin-left: auto; }
  .vt-help-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    border-top: 1px solid var(--color-light-gray);
    margin-top: 8px;
  }
  .vt-help-nav-toggle:checked ~ .vt-help-nav { display: flex; }
  .vt-help-lang { order: 1; }
  .vt-help-main { padding: 24px 16px 48px; }
  .vt-help-main h1 { font-size: 1.625rem; }
  .vt-help-cta-row .veltra-button { flex: 1 1 100%; justify-content: center; }
}
