/* help-page.css — Read-only Drawflow visualisation + help-page chrome.
 * Reuses .drawflow + .drawflow-node styles from drawflow-editor.css for the
 * canvas. Surrounding chrome uses the global qb-page tokens (Carbon mint).
 * Loaded only on /help/* pages. */

/* =====================================================================
   Drawflow read-only canvas
   ===================================================================== */
.help-canvas {
    position: relative;
    height: 460px;
    width: 100%;
    border: 1px solid var(--qb-rule-2);
    background-color: var(--qb-bg);
    overflow: hidden;
}

@media (min-width: 768px) {
    .help-canvas { height: 520px; }
}

.help-canvas #drawflow {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Hide editor chrome that should never appear in the help visualisation. */
.help-canvas .drawflow-delete,
.help-canvas .menubar { display: none !important; }

/* Cursor: nodes are not draggable in fixed mode, ports are inert. */
.help-canvas .drawflow .drawflow-node { cursor: default !important; }
.help-canvas .drawflow .drawflow-node:active { transform: none !important; }
.help-canvas .drawflow .drawflow-node .input,
.help-canvas .drawflow .drawflow-node .output { cursor: default !important; }
.help-canvas .drawflow .drawflow-node .input:hover,
.help-canvas .drawflow .drawflow-node .output:hover { transform: none !important; }
.help-canvas .drawflow .connection .main-path { cursor: default !important; }
.help-canvas .drawflow .connection .main-path:hover {
    stroke: #3f3f46 !important;
    stroke-width: 2 !important;
}

/* Inputs visible at a glance but inactive */
.help-canvas .node-body input,
.help-canvas .node-body select {
    cursor: default !important;
    opacity: 0.92;
    pointer-events: none;
}
.help-canvas .node-info-btn { pointer-events: none; }

/* =====================================================================
   Help-step list — numbered cards
   ===================================================================== */
.qb-help-steps {
    counter-reset: helpstep;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}
.qb-help-step {
    counter-increment: helpstep;
    position: relative;
    padding: 16px 20px 16px 60px;
    border: 1px solid var(--qb-rule-2);
    background: var(--qb-elev-1);
}
.qb-help-step::before {
    content: counter(helpstep, decimal-leading-zero);
    position: absolute;
    left: 20px;
    top: 18px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--qb-mint);
    letter-spacing: 0.06em;
}
.qb-help-step h3 {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--qb-text);
    margin: 0 0 4px;
    letter-spacing: -0.005em;
    line-height: 1.3;
}
.qb-help-step p {
    margin: 0;
    color: var(--qb-text-dim);
    font-size: 14px;
    line-height: 1.6;
}
.qb-help-step a {
    color: var(--qb-mint);
    text-decoration: none;
    transition: color 0.12s ease;
}
.qb-help-step a:hover { color: var(--qb-mint-hover); text-decoration: underline; text-underline-offset: 3px; }

.qb-help-step ul {
    margin: 8px 0 0;
    padding-left: 0;
    list-style: none;
}
.qb-help-step ul li {
    position: relative;
    padding-left: 16px;
    color: var(--qb-text-dim);
    font-size: 13px;
    line-height: 1.5;
    margin: 4px 0;
}
.qb-help-step ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 1px;
    background: var(--qb-mint);
    opacity: 0.7;
}
.qb-help-step code {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.875em;
    background: var(--qb-elev-2);
    border: 1px solid var(--qb-rule-2);
    padding: 1px 6px;
    color: var(--qb-text);
}

.qb-help-section-title {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--qb-text);
    margin: 36px 0 14px;
    letter-spacing: -0.005em;
}

.qb-help-section-lede {
    color: var(--qb-text-dim);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
}

/* Bullet-prompts list — used on /help/mcp */
.qb-help-prompts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qb-help-prompts li {
    padding: 12px 16px;
    border: 1px solid var(--qb-rule-2);
    background: var(--qb-elev-1);
    color: var(--qb-text-soft);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 36px;
}
.qb-help-prompts li::before {
    content: "›";
    position: absolute;
    left: 16px;
    color: var(--qb-mint);
    font-weight: 600;
}
