﻿/* =========================================================
   Help & Getting Started Styles
   Safe for XAF + Syncfusion RichTextEditor
   ========================================================= */
.help-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   Sections / Cards
   --------------------------------------------------------- */
.help-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}

/* ---------------------------------------------------------
   Headings
   --------------------------------------------------------- */
.help-container h1 {
    font-size: 22px !important;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.help-container h2 {
    font-size: 18px !important;
    margin: 18px 0 10px;
}

.help-container h3 {
    font-size: 15px !important;
    margin: 14px 0 6px;
}

/* ---------------------------------------------------------
   Text
   --------------------------------------------------------- */
.help-container p {
    margin: 0 0 10px;
    color: #374151;
}

.help-muted {
    color: #6b7280;
    font-size: 14px;
}

/* ---------------------------------------------------------
   Lists
   --------------------------------------------------------- */
.help-container ul,
.help-container ol {
    margin: 6px 0 0 18px;
    padding: 0;
}

.help-container li {
    margin: 6px 0;
}

/* ---------------------------------------------------------
   Step List (GRID-BASED, SAFE)
   --------------------------------------------------------- */
.help-steps {
    list-style: none;
    counter-reset: step;
    margin: 12px 0;
    padding: 0;
}

    .help-steps li {
        counter-increment: step;
        display: grid;
        grid-template-columns: 32px 1fr;
        gap: 12px;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        margin-bottom: 10px;
        background: #f9fafb;
        line-height: 1.55;
        min-width: 0; /* CRITICAL for grid text wrapping */
    }

        .help-steps li::before {
            content: counter(step);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #2563eb;
            color: #ffffff;
            font-weight: 700;
            font-size: 14px;
        }

/* Step content wrapper */
.help-step-content {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* ---------------------------------------------------------
   Inline UI Elements (Action Buttons / Tokens)
   --------------------------------------------------------- */
.help-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: baseline;
    white-space: nowrap;
    padding: 0.18rem 0.55rem;
    margin: 0 0.35rem 0.2rem 0;
    border-radius: 0.55rem;
    border: 1px solid rgba(0,0,0,0.16);
    background: #ffffff;
    font-size: 0.95em;
    font-weight: 600;
    line-height: 1.1;
    /* Neutralise hostile global styles */
    position: static !important;
    float: none !important;
    transform: none !important;
}

/* ---------------------------------------------------------
   Callouts
   --------------------------------------------------------- */
.help-callout {
    padding: 12px 14px;
    border-radius: 10px;
    margin-top: 12px;
    font-size: 14px;
    background: #eff6ff;
    border-left: 4px solid #2563eb;
}

    .help-callout.warning {
        background: #fffbeb;
        border-left-color: #d97706;
    }

    .help-callout.success {
        background: #ecfdf5;
        border-left-color: #16a34a;
    }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.help-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}
