/* IMP-1732: the help center index — search panel and topic listing. Article pages keep
   legal.css's .legal-page shell; only the index needs these. */

.help-search {
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border, #ddd);
    border-radius: var(--radius-md, 10px);
}

.help-search-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.help-search-input {
    flex: 1 1 14rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border, #ddd);
    border-radius: var(--radius-md, 10px);
    font: inherit;
}

.help-search-status {
    margin: 0.6rem 0 0;
    color: var(--text-muted, #666);
}

.help-search-empty {
    margin: 0.6rem 0 0;
    color: var(--text-muted, #666);
}

.help-search-results {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.help-result {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border, #ddd);
    border-radius: var(--radius-md, 10px);
    color: inherit;
    text-decoration: none;
}

.help-result:hover,
.help-result:focus-visible {
    border-color: var(--theme-primary, #6d28d9);
}

.help-result-title {
    font-weight: 700;
}

.help-result-source {
    font-size: 0.85rem;
    color: var(--text-muted, #666);
}

.help-result-excerpt {
    color: var(--text-muted, #444);
}

.help-topic {
    margin: 1.5rem 0;
}

.help-topic h2 {
    margin-bottom: 0.6rem;
}

.help-topic-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.help-topic-list a {
    display: inline-block;
    min-height: 2rem;
    padding: 0.35rem 0;
    color: var(--theme-primary, #6d28d9);
    text-decoration: none;
}

.help-topic-list a:hover,
.help-topic-list a:focus-visible {
    text-decoration: underline;
}
