/* Public help pages (/pomoc/, /help/), on top of site.css. */
.help { max-width: 780px; padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.help h1 { font-size: clamp(32px, 5vw, 44px); }
.help h2 { font-size: 22px; margin-bottom: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.help-bot { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.help-bot h2 { margin: 0; }
.help-bot__log { display: flex; flex-direction: column; gap: 8px; max-height: 440px; overflow-y: auto; padding: 4px 2px; }
.help-bot__form { display: flex; gap: 8px; }
.help-bot__form input, .help-filter input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 16px var(--font); }
.help-filter input { width: 100%; }
.help-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; overflow-wrap: anywhere; }
.help-msg p, .help-a p { margin: 0 0 8px; }
.help-msg ul, .help-a ul { margin: 0 0 8px; padding-left: 20px; }
.help-msg > :last-child, .help-a > :last-child { margin-bottom: 0; }
.help-msg--bot { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.help-msg--you { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.help-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.help-chip { min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 600 13px var(--font); text-align: left; cursor: pointer; }
.help-chip:hover { background: var(--bg-soft); }

/* topics at a glance, linking down to each section */
.help-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.help-toc a { display: inline-flex; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.help-toc a:hover { background: var(--bg-soft); }

.help-topic { display: flex; flex-direction: column; scroll-margin-top: 80px; }
.help-list { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.help-q { scroll-margin-top: 80px; }
.help-q + .help-q { border-top: 1px solid var(--line); }
.help-q summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 7px; align-self: flex-start; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(-45deg); transition: transform 0.15s; }
.help-q[open] summary::before { transform: rotate(45deg); }
.help-q[open] summary { color: var(--accent-ink); }
.help-a { padding: 0 18px 16px 37px; color: var(--ink-2); }
.help-a strong, .help-msg--bot strong { color: var(--ink); }
.help-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
