/* ═══ Centro de ayuda (HelpController) ═══
   Mobile-first; usa los tokens de app.css (--surface, --line, --accent…); respeta
   prefers-reduced-motion. Los colores de marca NO se hardcodean aquí. */

/* ── Hub: héroe breve + grilla de tarjetas por rol ── */
.help-hero .lede { max-width: 62ch; font-size: 1.08rem; line-height: 1.55; color: var(--muted); }
.help-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.help-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.help-card:hover, .help-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    outline: none;
}
.help-card h2 { margin: 0; font-size: 1.12rem; }
.help-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.help-more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .9rem; }

/* Chip de rol (se usa en el hub y en el encabezado del artículo) */
.help-role {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ── Artículo ── */
/* La columna la abre sólo `.prose` (el section ya no usa .narrow): 790 px de caja, tipografía
   de lectura un punto mayor y aire suficiente — sin el doble estrechamiento que la apretaba. */
.help-article { max-width: 880px; }
.help-crumb { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }    
.help-crumb a { color: var(--accent); text-decoration: none; }
.help-crumb a:hover { text-decoration: underline; }
.help-article > .help-role { margin-bottom: 6px; }
.help-article .prose { max-width: none; font-size: 16.5px; line-height: 1.75; }
.help-article .prose h2 { font-size: 27px; margin-top: 34px; }
.help-article .prose h3 { font-size: 19px; margin-top: 26px; }
.help-article .prose li { margin: 6px 0; }
.help-article .prose blockquote { margin: 18px 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--line); color: var(--muted); }
.help-pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.help-pager-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.help-pager-link:hover { text-decoration: underline; }
.help-pager-next { margin-inline-start: auto; }

@media (prefers-reduced-motion: reduce) {
    .help-card, .help-card:hover, .help-card:focus-visible { transition: none; transform: none; }
}
