/* ============ HELP CENTER (module: help — www/inc/modules/help) ============
 * Ported + de-branded from excplan's excellence.css .help-* rules: uses kit's own tokens
 * (tokens.css: --primary --accent --accent-soft --surface --line --muted --ink) instead of
 * excellence's navy/gold hex. Loaded via app_style_add() in register.php, after components.css
 * (see render_page() in www/inc/view.php) so these rules can safely override .card/.eyebrow/.muted. */

.help-hero{text-align:center;padding:14px 0 4px}
.help-hero .eyebrow{display:block}
.help-hero h1{font-size:26px;margin:6px 0 8px}
.help-hero p{max-width:560px;margin:0 auto}

/* hero search box (module-scoped — kit's own .navsearch lives in the nav bar, not the hub) */
.help-search{max-width:520px;margin:18px auto 0}
.help-searchbar{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-pill);padding-inline-start:18px;padding-inline-end:4px;box-shadow:var(--shadow-sm)}
.help-searchbar .help-ic{color:var(--muted);flex:none}
.help-searchbar input{flex:1;border:0;background:transparent;outline:0;font:inherit;color:var(--ink);padding:11px 8px;margin:0}

/* "for your role" spotlight card (combines with the kit's own .card) */
.help-role{display:flex;align-items:center;gap:14px;padding:16px 18px;margin-top:20px;border-inline-start:3px solid var(--accent);text-decoration:none;color:inherit}
.help-role>svg:first-child{width:26px;height:26px;color:var(--accent);flex:none}
.help-role>div{display:flex;flex-direction:column;min-width:0}
.help-role .eyebrow{display:block;margin-bottom:3px}
.help-role b{display:block;font-size:16px;line-height:1.4}
.help-role>svg:last-child{width:18px;height:18px;color:var(--muted);margin-inline-start:auto;flex:none}

/* category sections + article cards */
.help-cat{margin-top:26px}
.help-cat-h{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.help-cat-h>svg{width:22px;height:22px;color:var(--primary);flex:none}
.help-cat-h h2{font-size:17px;margin:0}
.help-arts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.help-art{display:flex;align-items:center;gap:12px;padding:13px 15px;background:var(--surface);border:1px solid var(--line);border-radius:14px;text-decoration:none;color:inherit;transition:border-color .15s,transform .15s}
.help-art:hover{border-color:var(--accent);transform:translateY(-1px)}
.help-art-ic{display:inline-flex;width:36px;height:36px;border-radius:10px;background:var(--accent-soft);align-items:center;justify-content:center;flex:none}
.help-art-ic svg{width:20px;height:20px;color:var(--primary)}
.help-art-t{flex:1;font-weight:700;font-size:14.5px}
.help-art>svg:last-child{width:16px;height:16px;color:var(--muted);flex:none}
@media(max-width:640px){.help-arts{grid-template-columns:1fr}}

/* single article */
.help-arthead{display:flex;align-items:center;gap:12px;margin:6px 0 6px}
.help-arthead>svg{width:26px;height:26px;color:var(--accent);flex:none}
.help-arthead h1{font-size:23px;margin:0}
.help-body{max-width:720px;font-size:15px;line-height:1.85}
.help-body h4{font-size:15.5px;margin:18px 0 6px;font-weight:800}
.help-body p{margin:0 0 12px}
.help-body ul,.help-body ol{margin:0 0 14px;padding-inline-start:22px}
.help-body li{margin-bottom:6px}
.help-body b{font-weight:800}
.help-tip{background:var(--accent-soft);border-inline-start:3px solid var(--accent);border-radius:10px;padding:10px 14px;margin:14px 0;font-size:14px}
.help-gloss{margin:0}
.help-gloss dt{font-weight:800;margin-top:12px}
.help-gloss dd{margin:2px 0 0;color:var(--muted)}

/* related articles */
.help-related{margin-top:28px;max-width:720px}
.help-related h3{font-size:15px;margin-bottom:10px}
.help-rel-list{display:flex;flex-direction:column;gap:8px}
.help-rel-list a{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:inherit;font-weight:600;font-size:14px}
.help-rel-list a:hover{border-color:var(--accent)}
.help-rel-list svg{width:18px;height:18px;color:var(--primary);flex:none}

/* empty / no-results state */
.help-empty{text-align:center;padding:40px 0;color:var(--muted)}
.help-empty svg{width:32px;height:32px;opacity:.5}

/* breadcrumb back-link (module-scoped — kit ships no global .backlink) */
.help-back{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--muted);margin-bottom:10px}
.help-back:hover{color:var(--primary)}
.help-back .help-chev{width:16px;height:16px}

/* chevrons auto-mirror under RTL so callers never branch on language for direction */
.help-chev{flex:none}
[dir=rtl] .help-chev{transform:scaleX(-1)}
