/* ============================================================================
   RokuChannel Platform - Help Module Styles
   ALL rem units. ZERO px values.
   Dark theme inheriting from app.css CSS variables.
   ============================================================================ */

/* --------------------------------------------------------------------------
   CSS Variables - Help Module
   -------------------------------------------------------------------------- */
:root {
    --help-sidebar-width: 18rem;
    --help-content-max: 60rem;
    --help-header-height: 3.5rem;
    --help-touch-min: 2.75rem;
    --help-transition-speed: 0.25s;
    --help-radius: 0.5rem;
    --help-radius-lg: 0.75rem;
    --help-gap: 1rem;
    --help-gap-sm: 0.5rem;
    --help-gap-lg: 1.5rem;
    --help-font-xs: 0.75rem;
    --help-font-sm: 0.8125rem;
    --help-font-base: 0.9375rem;
    --help-font-lg: 1.125rem;
    --help-font-xl: 1.5rem;
    --help-font-2xl: 2rem;
}

/* --------------------------------------------------------------------------
   Help Layout Shell
   -------------------------------------------------------------------------- */
.help-layout {
    display: flex;
    min-height: 100vh;
    background: var(--color-primary, #1a1a2e);
    color: var(--color-text, #e2e8f0);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   Help Sidebar
   -------------------------------------------------------------------------- */
.help-sidebar {
    width: var(--help-sidebar-width);
    min-height: 100vh;
    background: var(--color-secondary, #16213e);
    border-right: 0.0625rem solid var(--color-border, #2a3a4e);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--help-transition-speed) ease;
}

.help-sidebar__header {
    display: flex;
    align-items: center;
    gap: var(--help-gap-sm);
    padding: var(--help-gap) var(--help-gap);
    border-bottom: 0.0625rem solid var(--color-border, #2a3a4e);
    min-height: var(--help-header-height);
    flex-shrink: 0;
}

.help-sidebar__header-icon {
    font-size: var(--help-font-lg);
    color: var(--color-highlight, #e94560);
}

.help-sidebar__title {
    font-size: var(--help-font-base);
    font-weight: 700;
    color: var(--color-text, #e2e8f0);
    white-space: nowrap;
}

.help-sidebar__search {
    padding: var(--help-gap-sm) var(--help-gap);
    flex-shrink: 0;
}

.help-sidebar__search-input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.25rem;
    background: var(--color-primary, #1a1a2e);
    border: 0.0625rem solid var(--color-border, #2a3a4e);
    border-radius: var(--help-radius);
    color: var(--color-text, #e2e8f0);
    font-size: var(--help-font-sm);
    outline: none;
    transition: border-color var(--help-transition-speed) ease,
                box-shadow var(--help-transition-speed) ease;
    min-height: var(--help-touch-min);
}

.help-sidebar__search-input:focus {
    border-color: var(--color-highlight, #e94560);
    box-shadow: 0 0 0 0.1875rem rgba(233, 69, 96, 0.15);
}

.help-sidebar__search-input::placeholder {
    color: var(--color-text-muted, #94a3b8);
}

.help-sidebar__search-wrap {
    position: relative;
}

.help-sidebar__search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted, #94a3b8);
    font-size: var(--help-font-sm);
    pointer-events: none;
}

.help-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--help-gap-sm) 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent, #0f3460) transparent;
}

.help-sidebar__footer {
    padding: var(--help-gap-sm) var(--help-gap);
    border-top: 0.0625rem solid var(--color-border, #2a3a4e);
    flex-shrink: 0;
}

.help-sidebar__back-link {
    display: flex;
    align-items: center;
    gap: var(--help-gap-sm);
    color: var(--color-text-muted, #94a3b8);
    text-decoration: none;
    font-size: var(--help-font-sm);
    min-height: var(--help-touch-min);
    padding: 0 var(--help-gap-sm);
    border-radius: var(--help-radius);
    transition: color var(--help-transition-speed) ease,
                background var(--help-transition-speed) ease;
}

.help-sidebar__back-link:hover {
    color: var(--color-text, #e2e8f0);
    background: var(--color-surface-hover, #253547);
}

/* --------------------------------------------------------------------------
   Sidebar Category Tree
   -------------------------------------------------------------------------- */
.help-tree__category {
    margin: 0.125rem 0;
}

.help-tree__category-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem var(--help-gap);
    background: none;
    border: none;
    color: var(--color-text-muted, #94a3b8);
    font-size: var(--help-font-sm);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    min-height: var(--help-touch-min);
    border-radius: 0;
    transition: color var(--help-transition-speed) ease,
                background var(--help-transition-speed) ease;
}

.help-tree__category-btn:hover {
    color: var(--color-text, #e2e8f0);
    background: var(--color-surface-hover, #253547);
}

.help-tree__category-btn.active {
    color: var(--color-highlight, #e94560);
}

.help-tree__category-icon {
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    font-size: var(--help-font-sm);
}

.help-tree__category-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.help-tree__chevron {
    font-size: 0.625rem;
    transition: transform var(--help-transition-speed) ease;
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
}

.help-tree__category.expanded .help-tree__chevron {
    transform: rotate(90deg);
}

.help-tree__topics {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.help-tree__category.expanded .help-tree__topics {
    max-height: 31.25rem;
}

.help-tree__topic-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem var(--help-gap) 0.5rem 3.125rem;
    color: var(--color-text-muted, #94a3b8);
    text-decoration: none;
    font-size: var(--help-font-sm);
    min-height: var(--help-touch-min);
    transition: color var(--help-transition-speed) ease,
                background var(--help-transition-speed) ease;
    position: relative;
}

.help-tree__topic-link::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--color-border, #2a3a4e);
    transition: background var(--help-transition-speed) ease;
}

.help-tree__topic-link:hover {
    color: var(--color-text, #e2e8f0);
    background: var(--color-surface-hover, #253547);
}

.help-tree__topic-link:hover::before {
    background: var(--color-text-muted, #94a3b8);
}

.help-tree__topic-link.active {
    color: var(--color-highlight, #e94560);
    background: rgba(233, 69, 96, 0.08);
}

.help-tree__topic-link.active::before {
    background: var(--color-highlight, #e94560);
}

/* --------------------------------------------------------------------------
   Sidebar Overlay (mobile)
   -------------------------------------------------------------------------- */
.help-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 35;
    opacity: 0;
    transition: opacity var(--help-transition-speed) ease;
}

.help-sidebar-overlay.visible {
    display: block;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Help Main Content Area
   -------------------------------------------------------------------------- */
.help-main {
    margin-left: var(--help-sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--help-transition-speed) ease;
}

/* --------------------------------------------------------------------------
   Mobile Header Bar (hidden on desktop)
   -------------------------------------------------------------------------- */
.help-mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--color-secondary, #16213e);
    border-bottom: 0.0625rem solid var(--color-border, #2a3a4e);
    padding: 0 var(--help-gap);
    min-height: var(--help-header-height);
    align-items: center;
    gap: var(--help-gap-sm);
}

.help-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--help-touch-min);
    height: var(--help-touch-min);
    background: none;
    border: none;
    color: var(--color-text, #e2e8f0);
    font-size: var(--help-font-lg);
    cursor: pointer;
    border-radius: var(--help-radius);
    transition: background var(--help-transition-speed) ease;
}

.help-mobile-toggle:hover {
    background: var(--color-surface-hover, #253547);
}

.help-mobile-title {
    font-size: var(--help-font-base);
    font-weight: 700;
    color: var(--color-text, #e2e8f0);
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.help-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: var(--help-gap) var(--help-gap-lg) 0;
    font-size: var(--help-font-sm);
    flex-wrap: wrap;
}

.help-breadcrumb__link {
    color: var(--color-text-muted, #94a3b8);
    text-decoration: none;
    transition: color var(--help-transition-speed) ease;
}

.help-breadcrumb__link:hover {
    color: var(--color-highlight, #e94560);
}

.help-breadcrumb__separator {
    color: var(--color-border, #2a3a4e);
    font-size: 0.625rem;
}

.help-breadcrumb__current {
    color: var(--color-text, #e2e8f0);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Help Content
   -------------------------------------------------------------------------- */
.help-content {
    flex: 1;
    max-width: var(--help-content-max);
    width: 100%;
    padding: var(--help-gap-lg);
    margin: 0 auto;
}

.help-content h1 {
    font-size: var(--help-font-2xl);
    font-weight: 800;
    margin-bottom: var(--help-gap);
    color: var(--color-text, #e2e8f0);
    line-height: 1.2;
}

.help-content h2 {
    font-size: var(--help-font-xl);
    font-weight: 700;
    margin-top: var(--help-gap-lg);
    margin-bottom: var(--help-gap);
    color: var(--color-text, #e2e8f0);
    line-height: 1.3;
}

.help-content h3 {
    font-size: var(--help-font-lg);
    font-weight: 600;
    margin-top: var(--help-gap);
    margin-bottom: var(--help-gap-sm);
    color: var(--color-text, #e2e8f0);
}

.help-content p {
    font-size: var(--help-font-base);
    line-height: 1.7;
    color: var(--color-text-muted, #94a3b8);
    margin-bottom: var(--help-gap);
}

.help-content a {
    color: var(--color-highlight, #e94560);
    text-decoration: none;
    transition: opacity var(--help-transition-speed) ease;
}

.help-content a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.help-content ul,
.help-content ol {
    padding-left: 1.5rem;
    margin-bottom: var(--help-gap);
}

.help-content li {
    font-size: var(--help-font-base);
    line-height: 1.7;
    color: var(--color-text-muted, #94a3b8);
    margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   Quick Links Grid (Home Page)
   -------------------------------------------------------------------------- */
.help-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: var(--help-gap);
    margin-top: var(--help-gap-lg);
}

.help-quick-card {
    background: var(--color-surface, #1e2a3a);
    border: 0.0625rem solid var(--color-border, #2a3a4e);
    border-radius: var(--help-radius-lg);
    padding: var(--help-gap-lg);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: var(--help-gap-sm);
    transition: border-color var(--help-transition-speed) ease,
                transform var(--help-transition-speed) ease,
                box-shadow var(--help-transition-speed) ease;
    cursor: pointer;
    min-height: var(--help-touch-min);
}

.help-quick-card:hover {
    border-color: var(--color-highlight, #e94560);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
}

.help-quick-card__icon {
    font-size: var(--help-font-xl);
    color: var(--color-highlight, #e94560);
}

.help-quick-card__title {
    font-size: var(--help-font-base);
    font-weight: 700;
    color: var(--color-text, #e2e8f0);
}

.help-quick-card__desc {
    font-size: var(--help-font-sm);
    color: var(--color-text-muted, #94a3b8);
    line-height: 1.5;
}

.help-quick-card__count {
    font-size: var(--help-font-xs);
    color: var(--color-text-muted, #94a3b8);
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   Code Blocks
   -------------------------------------------------------------------------- */
.help-code-block {
    position: relative;
    background: var(--color-primary, #1a1a2e);
    border: 0.0625rem solid var(--color-border, #2a3a4e);
    border-radius: var(--help-radius);
    padding: var(--help-gap);
    margin-bottom: var(--help-gap);
    overflow-x: auto;
    font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
    font-size: var(--help-font-sm);
    line-height: 1.6;
    color: var(--color-text, #e2e8f0);
}

.help-code-block__copy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--color-surface, #1e2a3a);
    border: 0.0625rem solid var(--color-border, #2a3a4e);
    border-radius: 0.25rem;
    color: var(--color-text-muted, #94a3b8);
    cursor: pointer;
    font-size: var(--help-font-sm);
    opacity: 0;
    transition: opacity var(--help-transition-speed) ease,
                color var(--help-transition-speed) ease;
}

.help-code-block:hover .help-code-block__copy {
    opacity: 1;
}

.help-code-block__copy:hover {
    color: var(--color-highlight, #e94560);
}

.help-code-block__copy.copied {
    color: var(--color-success, #10b981);
}

.help-code-inline {
    background: var(--color-primary, #1a1a2e);
    border: 0.0625rem solid var(--color-border, #2a3a4e);
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85em;
    color: var(--color-highlight, #e94560);
}

/* --------------------------------------------------------------------------
   Step-by-Step Instructions (Numbered Circles)
   -------------------------------------------------------------------------- */
.help-steps {
    counter-reset: help-step;
    list-style: none;
    padding: 0;
    margin: var(--help-gap) 0;
}

.help-steps__item {
    display: flex;
    align-items: flex-start;
    gap: var(--help-gap);
    margin-bottom: var(--help-gap);
    counter-increment: help-step;
    position: relative;
}

.help-steps__item::before {
    content: counter(help-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--color-highlight, #e94560);
    color: white;
    border-radius: 50%;
    font-size: var(--help-font-sm);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.help-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.96875rem;
    top: 2.25rem;
    bottom: -0.5rem;
    width: 0.125rem;
    background: var(--color-border, #2a3a4e);
}

.help-steps__content {
    flex: 1;
    padding-top: 0.25rem;
}

.help-steps__content p {
    margin-bottom: 0.375rem;
}

/* --------------------------------------------------------------------------
   SVG / Diagram Containers
   -------------------------------------------------------------------------- */
.help-diagram {
    background: var(--color-surface, #1e2a3a);
    border: 0.0625rem solid var(--color-border, #2a3a4e);
    border-radius: var(--help-radius-lg);
    padding: var(--help-gap-lg);
    margin: var(--help-gap) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    max-width: 100%;
}

.help-diagram svg {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Callout / Alert Boxes
   -------------------------------------------------------------------------- */
.help-callout {
    border-left: 0.25rem solid;
    border-radius: 0 var(--help-radius) var(--help-radius) 0;
    padding: var(--help-gap);
    margin: var(--help-gap) 0;
    font-size: var(--help-font-sm);
    line-height: 1.6;
}

.help-callout--info {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
}

.help-callout--warning {
    border-color: var(--color-warning, #f59e0b);
    background: rgba(245, 158, 11, 0.08);
    color: #fcd34d;
}

.help-callout--danger {
    border-color: var(--color-danger, #ef4444);
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
}

.help-callout--success {
    border-color: var(--color-success, #10b981);
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
}

.help-callout__title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* --------------------------------------------------------------------------
   Search Results Dropdown
   -------------------------------------------------------------------------- */
.help-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-secondary, #16213e);
    border: 0.0625rem solid var(--color-border, #2a3a4e);
    border-radius: 0 0 var(--help-radius) var(--help-radius);
    max-height: 18.75rem;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
}

.help-search-results.visible {
    display: block;
}

.help-search-results__item {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--color-text-muted, #94a3b8);
    text-decoration: none;
    font-size: var(--help-font-sm);
    min-height: var(--help-touch-min);
    display: flex;
    align-items: center;
    transition: background var(--help-transition-speed) ease,
                color var(--help-transition-speed) ease;
}

.help-search-results__item:hover,
.help-search-results__item.focused {
    background: var(--color-surface-hover, #253547);
    color: var(--color-text, #e2e8f0);
}

.help-search-results__empty {
    padding: var(--help-gap);
    text-align: center;
    color: var(--color-text-muted, #94a3b8);
    font-size: var(--help-font-sm);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.help-footer {
    padding: var(--help-gap-lg);
    border-top: 0.0625rem solid var(--color-border, #2a3a4e);
    text-align: center;
    font-size: var(--help-font-xs);
    color: var(--color-text-muted, #94a3b8);
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   Responsive - Tablet and below (< 48rem / 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 48rem) {
    .help-sidebar {
        transform: translateX(-100%);
    }

    .help-sidebar.open {
        transform: translateX(0);
    }

    .help-main {
        margin-left: 0;
    }

    .help-mobile-header {
        display: flex;
    }

    .help-content {
        padding: var(--help-gap);
    }

    .help-breadcrumb {
        padding: var(--help-gap) var(--help-gap) 0;
    }

    .help-quick-links {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Responsive - Small phones (< 22.5rem / 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 22.5rem) {
    .help-sidebar {
        width: 100%;
    }

    .help-content h1 {
        font-size: var(--help-font-xl);
    }

    .help-content h2 {
        font-size: var(--help-font-lg);
    }
}

/* --------------------------------------------------------------------------
   Scrollspy Active Heading
   -------------------------------------------------------------------------- */
.help-content [data-section].active-section {
    scroll-margin-top: 4rem;
}

/* --------------------------------------------------------------------------
   Keyboard Focus Styles
   -------------------------------------------------------------------------- */
.help-tree__category-btn:focus-visible,
.help-tree__topic-link:focus-visible,
.help-sidebar__search-input:focus-visible,
.help-mobile-toggle:focus-visible,
.help-quick-card:focus-visible {
    outline: 0.125rem solid var(--color-highlight, #e94560);
    outline-offset: 0.125rem;
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .help-sidebar,
    .help-sidebar-overlay,
    .help-mobile-header,
    .help-breadcrumb,
    .help-code-block__copy,
    .help-sidebar__search {
        display: none !important;
    }

    .help-main {
        margin-left: 0 !important;
    }

    .help-content {
        max-width: 100%;
        padding: 0;
    }

    .help-layout {
        background: white;
        color: black;
    }

    .help-content h1,
    .help-content h2,
    .help-content h3 {
        color: black;
    }

    .help-content p,
    .help-content li {
        color: #333;
    }

    .help-code-block {
        border: 0.0625rem solid #ccc;
        background: #f5f5f5;
        color: #333;
    }

    .help-callout {
        border-left-width: 0.1875rem;
    }

    .help-quick-card {
        break-inside: avoid;
        border: 0.0625rem solid #ccc;
    }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes helpFadeIn {
    from { opacity: 0; transform: translateY(0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

.help-content--animate {
    animation: helpFadeIn 0.3s ease;
}

@keyframes helpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.help-loading {
    animation: helpPulse 1.5s ease-in-out infinite;
}

/* ============================================================================
   Pattern B: Content Page Classes
   Used by standalone guide/help content pages
   ============================================================================ */

/* Page titles and subtitles */
.help-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.help-page-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Section headings */
.help-h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.0625rem solid var(--color-border, #1e293b);
}

.help-h2 i {
    color: #e94560;
    font-size: 1.125rem;
}

/* Prose content wrapper */
.help-prose p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.help-prose ul, .help-prose ol {
    color: #cbd5e1;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.help-prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.help-prose strong {
    color: #e2e8f0;
    font-weight: 600;
}

/* Feature grids */
.help-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.help-feature-item {
    background: var(--color-surface, #1e293b);
    border: 0.0625rem solid var(--color-border, #334155);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: border-color 0.2s, transform 0.2s;
}

.help-feature-item:hover {
    border-color: #e94560;
    transform: translateY(-0.125rem);
}

.help-feature-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.help-feature-item p {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.6;
}

.help-feature-item i {
    color: #e94560;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* Tables */
.help-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    border: 0.0625rem solid var(--color-border, #334155);
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.help-table th {
    background: var(--color-surface, #1e293b);
    color: #e2e8f0;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 0.0625rem solid var(--color-border, #334155);
}

.help-table td {
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    border-bottom: 0.0625rem solid var(--color-border, #1e293b);
}

.help-table tr:hover td {
    background: rgba(233, 69, 96, 0.05);
}

/* Callout variants (flat style for content pages) */
.help-callout-info {
    background: rgba(96, 165, 250, 0.1);
    border-left: 0.25rem solid #60a5fa;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #93c5fd;
}

.help-callout-tip {
    background: rgba(34, 197, 94, 0.1);
    border-left: 0.25rem solid #22c55e;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #86efac;
}

.help-callout-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 0.25rem solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #fde68a;
}

.help-callout-info strong,
.help-callout-tip strong,
.help-callout-warning strong {
    display: block;
    margin-bottom: 0.375rem;
    color: inherit;
    font-weight: 700;
}

/* Inline code */
.help-inline-code {
    background: rgba(233, 69, 96, 0.15);
    color: #f9a8b8;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: "Fira Code", "Consolas", monospace;
    font-size: 0.8125rem;
}

/* Prerequisite list */
.help-prereq-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.help-prereq-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: #cbd5e1;
}

.help-prereq-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #22c55e;
    font-size: 0.875rem;
}

/* Page navigation (prev/next) */
.help-page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 0.0625rem solid var(--color-border, #1e293b);
    gap: 1rem;
}

.help-page-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-surface, #1e293b);
    border: 0.0625rem solid var(--color-border, #334155);
    border-radius: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    min-height: 2.75rem;
    transition: all 0.2s;
}

.help-page-nav a:hover {
    border-color: #e94560;
    color: #e2e8f0;
}

/* Pattern B sidebar classes */
.help-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-bottom: 0.0625rem solid var(--color-border, #1e293b);
}

.help-sidebar-brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #e94560, #0f3460);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.help-sidebar-brand-text h2 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.help-sidebar-brand-text p {
    font-size: 0.6875rem;
    color: #64748b;
    margin: 0;
}

.help-sidebar-section {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    padding: 1.25rem 1.25rem 0.5rem;
}

.help-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    min-height: 2.75rem;
    transition: all 0.15s;
}

.help-sidebar-link:hover {
    background: rgba(233, 69, 96, 0.1);
    color: #e2e8f0;
}

.help-sidebar-link.active {
    background: rgba(233, 69, 96, 0.15);
    color: #e94560;
    font-weight: 500;
}

.help-sidebar-link i {
    width: 1.125rem;
    text-align: center;
    font-size: 0.8125rem;
}

.help-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 0.0625rem solid var(--color-border, #1e293b);
}

.help-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.8125rem;
    min-height: 2.75rem;
    transition: color 0.15s;
}

.help-sidebar-footer a:hover {
    color: #e94560;
}

/* Sections */
.help-section {
    margin-bottom: 2.5rem;
}
