/* The help section (docs/design/help.md). It uses the portal's tokens (app.css), so light and dark follow the theme; it works at
   phone width, since crews read it in the app. */
.help-shell { min-height: 100vh; background: var(--page); color: var(--bs-body-color); }
.help-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.help-header-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding-block: .5rem; }
.help-back { text-decoration: none; font-weight: 600; }
.help-header .theme-toggle { margin: 0; }
.help-header .btn-header { color: var(--bs-body-color); border-color: var(--border); background: transparent; }
.help-header .btn-header[aria-pressed=true] { background: var(--bs-secondary-bg); }

/* The body is fluid like the portal (docs/design/layout-width.md): the home and search lists fill the width, the article keeps .reading. */
.help-body { padding-block: 1.25rem 2.5rem; }
.help-app .help-body { padding-block: .75rem 1.5rem; }
.help-top { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.help-title { font-size: 1.15rem; font-weight: 700; text-decoration: none; margin-right: auto; }
.help-search { flex: 1 1 14rem; max-width: 24rem; margin: 0; }

.help-roles { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.help-roles a {
    padding: .25rem .7rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none;
    background: var(--surface); font-size: .9rem; color: var(--bs-body-color);
}
.help-roles a[aria-current=true] { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); font-weight: 600; }

.help-lead { color: var(--text-muted); font-size: .95rem; }
.help-group { margin-bottom: 1rem; }
.help-list { list-style: none; margin: 0; padding: 0; }
.help-list li { padding: .4rem 0; border-top: 1px solid var(--border); }
.help-list li:first-child { border-top: 0; }
.help-tag { margin-left: .5rem; padding: .05rem .45rem; border: 1px solid var(--border); border-radius: 999px; font-size: .75rem; color: var(--text-muted); }

.help-results ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.help-results li { padding: .6rem 0; border-top: 1px solid var(--border); }
.help-results li:first-child { border-top: 0; }
.help-results .help-hit-title { font-weight: 600; }
.help-results .help-hit-area { margin-left: .5rem; font-size: .8rem; color: var(--text-muted); }
.help-results .help-hit-summary { display: block; margin-top: .15rem; font-size: .9rem; color: var(--text-muted); }

.help-article { padding: 1.25rem 1.5rem; }
.help-meta { margin-bottom: 1rem; }
.help-content { line-height: 1.6; overflow-wrap: anywhere; }
.help-content h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.help-content h3 { font-size: 1rem; margin-top: 1.25rem; }
.help-content img { max-width: 100%; height: auto; }
.help-content table { width: 100%; display: block; overflow-x: auto; }
.help-content table th, .help-content table td { padding: .3rem .6rem; border: 1px solid var(--border); }
.help-content blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 4px solid var(--warn-line); background: var(--flag-bg); color: var(--flag-text); }
.help-content blockquote p:last-child { margin-bottom: 0; }
.help-content code { color: inherit; background: var(--bs-secondary-bg); padding: .05rem .3rem; border-radius: 4px; }
.help-footer { margin-top: 2rem; }

@media (max-width: 575.98px) {
    .help-article { padding: 1rem; }
    .help-search { max-width: none; }
}
