/* s48-help.css — Help Center page + F1 drawer. Theme via CSS variables only (Day/Night safe). */
.help-search-card { padding: 16px; margin-bottom: 24px; }
.help-search { display: flex; align-items: center; gap: 8px; }
.help-search-icon { width: 20px; height: 20px; color: var(--text-muted); flex: 0 0 20px; }
.help-search-icon svg { width: 100%; height: 100%; }
.help-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; padding: 8px 0; }

.help-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
@media (min-width: 768px)  { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .help-grid { grid-template-columns: repeat(3, 1fr); } }
.help-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px; text-decoration: none; color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease; }
.help-card:hover { transform: translateY(-2px); }
.help-card-icon { width: 40px; height: 40px; flex: 0 0 40px; padding: 8px; border-radius: 12px; color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent); }
.help-card-icon svg { width: 100%; height: 100%; }
.help-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.help-card-body small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.help-empty { text-align: center; margin: 24px 0; }

.help-shortcuts { padding: 16px 24px; }
.help-shortcut-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.help-shortcut-list li { display: flex; align-items: center; gap: 16px; }
.help-shortcut-list kbd, .help-drawer kbd { display: inline-block; min-width: 56px; text-align: center; padding: 2px 8px; border-radius: 6px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 12px/1.6 ui-monospace, Consolas, monospace; }

.help-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 992px) { .help-layout { grid-template-columns: 260px 1fr; align-items: start; } }
.help-toc { padding: 8px; }
.help-toc ul { list-style: none; margin: 0; padding: 0; }
.help-toc a { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; color: var(--text); text-decoration: none; }
.help-toc a svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--text-muted); }
.help-toc a:hover { background: var(--surface); }
.help-toc a.active { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 600; }
.help-article { padding: 24px; }
.help-article h2 { font-size: 1.05em; margin: 0 0 16px; }
.help-article h2:not(:first-child) { margin-top: 32px; }
.help-steps, .help-tips { margin: 0; padding-left: 24px; display: grid; gap: 12px; line-height: 1.7; }
.help-tips { list-style: "💡 "; }

/* ── F1 drawer ─────────────────────────────────────────────── */
.help-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.help-overlay.open { opacity: 1; pointer-events: auto; }
.help-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column;
    background: var(--bg); color: var(--text); border-left: 1px solid var(--border); box-shadow: -12px 0 32px rgba(0,0,0,.2);
    transform: translateX(100%); transition: transform .24s ease; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.help-overlay.open .help-drawer { transform: translateX(0); }
.help-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.help-drawer-head h2 { margin: 0; font-size: 1.1em; }
.help-drawer-body { flex: 1; overflow-y: auto; padding: 24px; -webkit-overflow-scrolling: touch; }
.help-drawer-body h3 { font-size: .95em; margin: 24px 0 8px; }
.help-drawer-body p { margin: 0; line-height: 1.7; color: var(--text-muted); }
.help-drawer-body ol, .help-drawer-body ul { margin: 0; padding-left: 24px; display: grid; gap: 8px; line-height: 1.7; }
.help-drawer-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border); }
.help-sc { list-style: none; padding: 0 !important; }
.help-sc li { display: flex; align-items: center; gap: 16px; }
.help-fab-hint { color: var(--text-muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .help-overlay, .help-drawer, .help-card { transition: none; } }
