/* Help center */
.help-body {
  overflow-y: auto; min-height: 100vh; font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif;
  background: radial-gradient(1000px 420px at 10% -10%, rgba(143,116,51,.14), transparent 60%), radial-gradient(800px 420px at 100% 0%, rgba(99,102,241,.1), transparent 60%), var(--bg);
}
html[dir="rtl"] .help-body { font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.help-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.help-brand { display: flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; }
.help-brand b { display: block; color: var(--text); font-size: 14.5px; }
.help-brand small { display: block; color: var(--muted); font-size: 12px; }
.help-actions { display: flex; gap: 8px; }
.help-pill, .help-icon { height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 13px inherit; text-decoration: none; cursor: pointer; }
.help-icon { width: 36px; justify-content: center; padding: 0; }
.help-pill:hover, .help-icon:hover { border-color: var(--accent); color: var(--accent); }
html[dir="rtl"] .help-pill .ic { transform: scaleX(-1); }

.help-hero { text-align: center; padding: 42px 24px 26px; max-width: 820px; margin: 0 auto; }
.help-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.help-hero p { margin: 10px auto 22px; color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 640px; }
.help-search { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 14px 34px -18px rgba(0,0,0,.35); cursor: text; transition: border-color .2s, box-shadow .2s; }
.help-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 14px 34px -18px rgba(0,0,0,.35); }
.help-search .ic { width: 20px; height: 20px; color: var(--muted); }
.help-search input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; outline: none; background: none; font-size: 15.5px; padding: 0; }
.help-search kbd { font: 600 11px inherit; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
.help-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.help-chip { padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.help-chip:hover { border-color: var(--accent); color: var(--accent-2); }

.help-main { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; max-width: 1180px; margin: 0 auto; padding: 8px 28px 80px; }
.help-toc { position: sticky; top: 74px; align-self: start; max-height: calc(100vh - 92px); overflow-y: auto; padding-inline-end: 6px; }
.toc-sec { margin-bottom: 8px; }
.toc-head { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: var(--text); font-weight: 700; font-size: 13px; text-decoration: none; }
.toc-head .ic { color: var(--accent); width: 17px; height: 17px; }
.toc-head small { margin-inline-start: auto; color: var(--muted); font-weight: 600; }
.toc-head:hover { background: var(--surface); }
.toc-items { display: flex; flex-direction: column; margin-inline-start: 17px; padding-inline-start: 10px; border-inline-start: 2px solid var(--border); }
.toc-items a { padding: 4px 8px; font-size: 12.5px; color: var(--text-2); text-decoration: none; border-radius: 6px; transition: color .15s, background .15s; }
.toc-items a:hover { color: var(--accent-2); background: var(--surface); }
.toc-items a.on { color: var(--accent-2); font-weight: 700; background: var(--accent-soft); }
.toc-items a.dim { opacity: .35; }

.help-count { color: var(--muted); font-size: 13px; margin: 6px 2px 12px; }
.help-sec { margin-bottom: 28px; scroll-margin-top: 80px; }
.help-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 12px; }
.sec-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.sec-ic .ic { width: 19px; height: 19px; }
.help-card { scroll-margin-top: 84px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: box-shadow .2s, border-color .2s; }
.help-card:hover { box-shadow: 0 10px 28px -18px rgba(0,0,0,.35); }
.help-card.flash { animation: cardFlash 1.6s ease; }
@keyframes cardFlash { 0%, 50% { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); } }
.help-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.help-card h3 { margin: 0; font-size: 15.5px; }
.copy-link { width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .2s; display: grid; place-items: center; }
.help-card:hover .copy-link, .copy-link:focus-visible { opacity: 1; }
.copy-link:hover { background: var(--surface-2); color: var(--accent-2); }
.copy-link.done { color: #16a34a; opacity: 1; }
.help-text { color: var(--text-2); font-size: 14px; line-height: 1.65; }
.help-text p { margin: 8px 0 0; }
.help-text ul, .help-text ol { margin: 8px 0 0; padding-inline-start: 20px; }
.help-text li { margin: 4px 0; }
.help-text b { color: var(--text); }
.help-text mark, .help-card h3 mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 2px; }
html[data-theme="dark"] .help-text mark, html[data-theme="dark"] .help-card h3 mark { background: rgba(245,158,11,.4); }
kbd { display: inline-block; font: 600 11.5px 'Inter', monospace; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); border-bottom-width: 2px; background: var(--surface-2); color: var(--text); }
.kbd-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.kbd-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: top; }
.kbd-table td:first-child { white-space: nowrap; width: 40%; }
.help-empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.help-empty .ic { width: 40px; height: 40px; opacity: .5; }
@media (max-width: 860px) { .help-main { grid-template-columns: 1fr; } .help-toc { position: static; max-height: none; } }
