/* Справочный центр /help */

.help-center-page {
    background: var(--bg);
    min-height: 100vh;
}

.help-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 0;
    min-height: calc(100vh - 64px);
}

.help-sidebar {
    background: var(--site-sidebar);
    border-right: 1px solid var(--border-soft);
    padding: 1.25rem 1rem 1.5rem;
    overflow: auto;
    position: sticky;
    top: 0;
    align-self: start;
    max-height: calc(100vh - 64px);
}

.help-sidebar__title {
    font-size: 1.15rem;
    margin: 0 0 .35rem;
}

.help-sidebar__lead {
    font-size: .85rem;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.help-sidebar__footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

.help-content {
    padding: 1.5rem 2rem 3rem;
    max-width: 52rem;
}

.help-tree {
    font-size: .9rem;
}

.help-tree__roots,
.help-tree__children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-tree__children {
    margin-left: .65rem;
    padding-left: .5rem;
    border-left: 1px solid var(--border-soft);
}

.help-tree__item {
    margin: .15rem 0;
}

.help-tree__link {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .5rem;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.35;
}

.help-tree__link:hover {
    background: var(--accent-soft);
    color: var(--text);
}

.help-tree__item.is-active > .help-tree__link {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.help-tree__link--section {
    font-weight: 600;
    color: var(--text);
}

.help-tree__tag {
    font-size: .65rem;
    padding: .1rem .35rem;
    border-radius: 4px;
    background: var(--bg-elevated);
    color: var(--muted);
    flex-shrink: 0;
}

.help-article__crumb {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 .5rem;
}

.help-article__title {
    margin: 0 0 .5rem;
    font-size: 1.75rem;
    line-height: 1.25;
}

.help-article__lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

.help-article__body.prose,
.help-print .prose {
    line-height: 1.65;
}

.help-article__body.prose h2,
.help-article__body.prose h3,
.help-print .prose h2,
.help-print .prose h3 {
    margin-top: 1.5rem;
    margin-bottom: .65rem;
}

.help-article__body.prose img,
.help-print .prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    margin: 1rem 0;
}

.help-article__children {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
}

.help-article__children li {
    margin: .5rem 0;
}

.help-article__footer {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.help-steps {
    margin: 1rem 0 1.5rem;
    padding-left: 1.35rem;
    line-height: 1.6;
}

.help-steps li {
    margin: .65rem 0;
}

.help-article__body figure,
.help-print .prose figure {
    margin: 1.25rem 0;
}

.help-article__body figcaption,
.help-print figcaption {
    font-size: .85rem;
    color: var(--muted);
    margin-top: .4rem;
    text-align: center;
}

@media (max-width: 900px) {
    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-sidebar {
        position: static;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--border-soft);
    }
}
