/* Rigwire help pages - matches engine.x dark theme (warning gold, info cyan, panel borders). */
:root {
    --help-bg: #0f0f19;
    --help-panel: #0a0a12;
    --help-panel-border: #787896;
    --help-text: #dcdcdc;
    --help-text-muted: #b4b4c8;
    --help-accent: #ffc107;
    --help-info: #9ecfff;
    --help-link: #6edff6;
}

html,
body.rigwire-help-page {
    margin: 0;
    min-height: 100%;
    background: var(--help-bg);
    color: var(--help-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
}

.help-page-wrap {
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}

.help-header {
    text-align: center;
    margin-bottom: 1.75rem;
    padding: 1.25rem 1rem 1.5rem;
    border: 4px solid var(--help-panel-border);
    border-radius: 1rem;
    background: var(--help-panel);
}

.help-brand {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--help-text-muted);
}

.help-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 700;
    color: var(--help-accent);
    text-shadow: 0 0 17px rgba(255, 193, 7, 0.35);
}

.help-lead {
    margin: 0 auto;
    max-width: 42rem;
    font-size: 1.02rem;
    color: var(--help-text);
}

.help-lead p:last-child {
    margin-bottom: 0;
}

.help-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-section {
    border: 1px solid var(--help-panel-border);
    border-radius: 0.65rem;
    background: var(--help-panel);
    padding: 1rem 1.15rem 1.1rem;
}

.help-section-title {
    margin: 0 0 0.65rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(120, 120, 150, 0.45);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--help-info);
    letter-spacing: 0.02em;
}

.help-section-body > *:first-child {
    margin-top: 0;
}

.help-section-body > *:last-child {
    margin-bottom: 0;
}

.help-section-body p {
    margin: 0 0 0.65rem;
    color: var(--help-text);
}

.help-subhead {
    margin: 0.85rem 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--help-accent);
}

.help-section-body .help-subhead:first-child {
    margin-top: 0;
}

.help-list {
    margin: 0 0 0.65rem;
    padding-left: 1.25rem;
}

.help-list li {
    margin-bottom: 0.35rem;
}

.help-list li:last-child {
    margin-bottom: 0;
}

.help-list-nested {
    margin-top: 0.25rem;
    margin-bottom: 0.65rem;
}

.help-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(120, 120, 150, 0.35);
    text-align: center;
    font-size: 0.8rem;
    color: var(--help-text-muted);
}

.help-footer p {
    margin: 0;
}

a {
    color: var(--help-link);
}

a:hover {
    color: #fff;
}

@media (max-width: 576px) {
    .help-page-wrap {
        padding: 0.75rem 0.65rem 2rem;
    }

    .help-header {
        padding: 1rem 0.75rem 1.15rem;
    }

    .help-section {
        padding: 0.85rem 0.85rem 0.95rem;
    }
}
