/* =============================================================================
   public/src/features/documents/doc-steps.css
   Step-by-step guide blocks with screenshots (how-to-connect-mcp.html).
   Uses only the tokens from documents.css, so light/dark follows that file.
   ============================================================================= */

/* quick links under the intro */
.doc-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 36px; }
.doc-quick a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--rule-heavy); border-radius: 10px; background: var(--bg-wash); color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.doc-quick a:hover, .doc-quick a:focus-visible { border-color: var(--accent); background: var(--bg-tint); }
.doc-quick strong { font-size: .98rem; }
.doc-quick span { font-size: .76rem; color: var(--ink-muted); }

/* "what you get" cards */
.doc-cards { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.doc-cards li { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-wash); font-size: .9rem; line-height: 1.7; }
.doc-cards li::marker { content: ""; }
.doc-cards strong { display: block; margin-bottom: 2px; color: var(--ink); }

/* numbered steps */
.doc-steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: none; }
.doc-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 0 0 28px; position: relative; }
.doc-step:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 4px; width: 2px; background: var(--rule); }
.doc-step__num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem; }
.doc-step__body { min-width: 0; }
.doc-step__body h3 { margin: 6px 0 8px; border: 0; padding: 0; }
.doc-step__body p { text-align: start; }

/* screenshots */
.doc-shot { margin: 12px 0 0; }
.doc-shot__zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--rule-heavy); border-radius: 10px; overflow: hidden; background: #111; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.doc-shot__zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.doc-shot img { display: block; width: 100%; height: auto; }
.doc-shot figcaption { margin-top: 6px; font-size: .8rem; color: var(--ink-muted); line-height: 1.6; }
.doc-shots-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 14px 0 6px; }
.doc-shots-row .doc-shot { margin: 0; }

/* copyable URL */
.doc-copy { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 8px 8px 8px 12px; border: 1px solid var(--rule-heavy); border-radius: 8px; background: var(--bg-tint); max-width: 100%; }
.doc-copy code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: .85rem; color: var(--ink); background: none; border: 0; padding: 0; }
.doc-copy__btn { flex-shrink: 0; padding: 5px 14px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; font-size: .8rem; cursor: pointer; }
.doc-copy__btn:hover { background: var(--accent-mid); }
.doc-copy__btn.is-done { background: #15803d; }

/* example prompts + flow */
.doc-prompts li { padding: 10px 14px; border-inline-start: 3px solid var(--accent); background: var(--bg-wash); border-radius: 6px; list-style: none; }
.doc-prompts { padding-right: 0; }
.doc-flow { padding-right: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-soft); }

/* FAQ */
.doc-faq { border: 1px solid var(--rule); border-radius: 10px; margin-bottom: 10px; background: var(--bg-wash); }
.doc-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--ink); }
.doc-faq p { padding: 0 16px 14px; margin: 0; text-align: start; }

/* lightbox */
.doc-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.doc-lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.doc-lightbox img { display: block; max-width: 96vw; max-height: 90vh; border-radius: 10px; }
.doc-lightbox__close { position: absolute; top: -14px; inset-inline-end: -6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 1.3rem; line-height: 1; cursor: pointer; }

@media (max-width: 720px) {
  .doc-quick { grid-template-columns: repeat(2, 1fr); }
  .doc-cards, .doc-shots-row { grid-template-columns: 1fr; }
  .doc-step { grid-template-columns: 32px 1fr; gap: 10px; }
  .doc-step__num { width: 32px; height: 32px; font-size: .85rem; }
  .doc-step:not(:last-child)::before { inset-inline-start: 15px; top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .doc-quick a { transition: none; } }
