.help-hero,
.help-topic-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px;
    border-left: 4px solid var(--accent);
}

.help-hero > div,
.help-topic-heading > div:first-child {
    min-width: 0;
    max-width: 780px;
}

.help-search {
    display: flex;
    width: min(430px, 100%);
    gap: 7px;
}

.help-search input {
    flex: 1 1 auto;
}

.help-section {
    margin-top: 16px;
}

.help-card-grid,
.help-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.help-card,
.help-result {
    display: flex;
    min-height: 150px;
    flex-direction: column;
}

.help-card .button,
.help-result .button {
    width: fit-content;
    margin-top: auto;
}

.help-card h3 a,
.help-result h3 a {
    text-decoration: none;
}

.help-back {
    display: inline-block;
    margin-bottom: 7px;
    font-weight: 700;
    text-decoration: none;
}

.help-layout {
    display: grid;
    grid-template-columns: minmax(210px, .28fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
    align-items: start;
}

.help-layout-full {
    grid-template-columns: 1fr;
}

.help-toc {
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 95px);
    overflow: auto;
}

.help-toc nav {
    display: grid;
    gap: 2px;
}

.help-toc a {
    padding: 5px 7px;
    border-radius: 5px;
    color: var(--muted);
    font-size: .87rem;
    text-decoration: none;
}

.help-toc a:hover {
    color: var(--primary);
    background: var(--surface-soft);
}

.help-toc-level-3 {
    margin-left: 12px;
    font-size: .82rem !important;
}

.help-article {
    min-width: 0;
    padding: 22px;
}

.help-article h2,
.help-article h3 {
    scroll-margin-top: 82px;
    margin-top: 1.4em;
}

.help-article h2:first-child,
.help-article h3:first-child {
    margin-top: 0;
}

.help-article pre {
    max-width: 100%;
    overflow: auto;
    padding: 12px;
    border-radius: 7px;
    background: #12202d;
    color: #eef5fa;
}

.help-article blockquote {
    margin: 12px 0;
    padding: 9px 14px;
    border-left: 4px solid var(--accent);
    background: var(--surface-soft);
}

.help-article table {
    display: block;
    overflow-x: auto;
}

@media (max-width: 820px) {
    .help-hero,
    .help-topic-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-toc {
        position: static;
        max-height: none;
    }
}

@media print {
    .help-hero .help-search,
    .help-topic-heading .actions,
    .help-toc {
        display: none !important;
    }

    .help-layout {
        display: block;
    }
}
