/* ===== Help Center (used with /css/site.css) ===== */

/* SHELL: sticky sidebar + article */
.help-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; max-width: 1140px; margin: 0 auto; padding: 48px 5% 96px; align-items: start; }

/* SIDEBAR */
.help-sidebar nav { position: sticky; top: 88px; }
.help-sidebar .help-nav-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.help-sidebar .help-nav-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 20px 0 6px; padding-left: 12px; }
.help-sidebar ul { list-style: none; }
.help-sidebar ul + .help-nav-group { margin-top: 20px; }
.help-sidebar li { margin: 0; }
.help-sidebar a { display: block; padding: 7px 12px; border-radius: 6px; font-size: 14px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; transition: color 0.15s, background 0.15s; }
.help-sidebar a:hover { color: var(--primary); background: var(--bg); }
.help-sidebar a.active { color: var(--primary); font-weight: 600; background: var(--bg); border-left-color: var(--accent); border-radius: 0 6px 6px 0; }

/* ARTICLE TYPOGRAPHY */
.help-article { max-width: 72ch; min-width: 0; }
.help-article h1 { font-size: 34px; font-weight: 800; color: var(--primary); line-height: 1.2; margin-bottom: 12px; }
.help-article .lead { font-size: 17px; color: var(--muted); margin-bottom: 32px; }
.help-article h2 { font-size: 22px; font-weight: 700; color: var(--primary); margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.help-article h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin: 24px 0 8px; }
.help-article p { margin-bottom: 14px; color: #374151; font-size: 15px; }
.help-article ul, .help-article ol { margin: 0 0 16px 22px; color: #374151; font-size: 15px; }
.help-article li { margin-bottom: 6px; }
.help-article a { color: var(--primary); font-weight: 600; }
.help-article strong { color: var(--text); }

/* CODE / KBD */
.help-article code { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 13px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; color: var(--primary); white-space: nowrap; }
.help-article kbd { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 12px; background: var(--white); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; color: var(--text); }
/* A <pre><code> listing must keep its line breaks — the inline `code` rule above sets nowrap. */
.help-article pre { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 14px 0 18px; overflow-x: auto; }
.help-article pre code { display: block; background: none; border: 0; border-radius: 0; padding: 0; white-space: pre; color: var(--text); font-size: 13px; line-height: 1.55; }

/* PROMPT EXAMPLE BLOCKS */
.prompt-example { background: linear-gradient(135deg, #f0f4ff 0%, #e8f5f0 100%); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 14px 18px 12px; margin: 14px 0 18px; font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 14px; color: var(--text); line-height: 1.5; overflow-wrap: break-word; }
.prompt-example::before { content: "Example prompt"; display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #0a8a6a; margin-bottom: 6px; }

/* NOTE CALLOUT */
.help-note { background: rgba(22, 199, 154, 0.08); border: 1px solid rgba(22, 199, 154, 0.3); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; font-size: 14px; color: #374151; }

/* TOPIC CARDS (overview page) */
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 24px; }
.help-card { display: block; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 22px; text-decoration: none; transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s; }
.help-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07); transform: translateY(-2px); }
.help-card h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.help-card p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* FAQ BLOCKS */
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 16px; }
.faq-item h3 { margin: 0 0 8px; font-size: 16px; }
.faq-item p:last-child, .faq-item ul:last-child { margin-bottom: 0; }

/* RESPONSIVE: sidebar collapses above the article */
@media (max-width: 900px) {
    .help-shell { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
    .help-sidebar nav { position: static; }
    .help-sidebar ul { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
    .help-sidebar .help-nav-group { margin: 14px 0 4px; padding-left: 0; }
    .help-sidebar a { border: 1px solid var(--border); border-radius: 16px; padding: 5px 14px; font-size: 13px; }
    .help-sidebar a.active { border-color: var(--accent); border-radius: 16px; }
    .help-article h1 { font-size: 28px; }
}

/* ---- Figures / screenshots -------------------------------------------- */
.help-figure {
    margin: 20px 0 24px;
    padding: 0;
}
.help-figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
    background: #fff;
}
.help-figure figcaption {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #5b6673;
}
.help-figure.help-figure-narrow img { max-width: 460px; }

/* Inline SVG flow diagrams (channel connection flows) */
.help-diagram {
    margin: 20px 0 24px;
    padding: 16px;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    background: #fafbfc;
    overflow-x: auto;
}
.help-diagram svg { display: block; max-width: 100%; height: auto; }

/* Numbered walkthroughs where each step may carry a figure */
.help-steps { counter-reset: helpstep; list-style: none; padding-left: 0; }
.help-steps > li {
    counter-increment: helpstep;
    position: relative;
    padding: 0 0 18px 40px;
    margin: 0;
}
.help-steps > li::before {
    content: counter(helpstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.help-steps > li > :first-child { margin-top: 2px; }

/* "who does what" callout used by the channel setup pages */
.help-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 8px;
    vertical-align: middle;
}
.help-role-admin { background: #eef2ff; color: #3730a3; }
.help-role-user { background: #ecfdf5; color: #065f46; }
.help-role-it { background: #fff7ed; color: #9a3412; }

/* ---- Capability / comparison tables ----------------------------------- */
.cap-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0 22px; display: block; overflow-x: auto; }
.cap-table th, .cap-table td { border: 1px solid #e5e7eb; padding: 7px 10px; text-align: left; vertical-align: top; }
.cap-table th { background: #f9fafb; font-weight: 700; color: #0f172a; }
