.help-main {
    padding: 18px 0 34px;
}

.help-wrap {
    max-width: 1440px;
}

.help-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(180px, 220px);
    gap: 24px;
    align-items: start;
}

.help-sidebar,
.help-page-sidebar {
    position: sticky;
    top: 88px;
}

.help-sidebar-card,
.help-page-card,
.help-article-card {
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    background: #ffffff;
}

.help-sidebar-card,
.help-page-card {
    padding: 18px 16px;
}

.help-sidebar-card {
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.help-article-card {
    padding: 20px 24px 24px;
    min-height: 420px;
}

.help-sidebar-title,
.help-page-title {
    margin: 0 0 12px;
    color: #7b8794;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.help-nav-list,
.help-nav-sublist,
.help-page-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-nav-item + .help-nav-item,
.help-page-item + .help-page-item {
    margin-top: 4px;
}

.help-nav-sublist {
    margin-top: 6px;
    padding-left: 16px;
}

.help-nav-link,
.help-page-link {
    display: block;
    color: #3e4c59;
    text-decoration: none;
    line-height: 1.35;
}

.help-nav-link {
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.92rem;
}

.help-nav-link:hover,
.help-page-link:hover {
    color: #1f5f99;
}

.help-nav-link.is-active {
    background: #e9f1fb;
    color: #143d63;
    font-weight: 700;
}

.help-page-item.is-child .help-page-link {
    padding-left: 12px;
    font-size: 0.9rem;
}

.help-page-item.is-root .help-page-link {
    font-weight: 700;
}

.help-page-link {
    padding: 4px 0;
    font-size: 0.92rem;
}

.help-loading,
.help-error {
    margin: 0;
    color: #52606d;
}

.help-error {
    color: #b42318;
}

.help-content {
    color: #243b53;
}

.help-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 10px;
    border: 1px solid #e4e7eb;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.help-markdown h1,
.help-markdown h2,
.help-markdown h3 {
    color: #243b53;
    font-weight: 700;
}

.help-markdown h1 {
    margin: 0 0 18px;
    font-size: clamp(1.9rem, 2vw, 2.4rem);
}

.help-markdown h2 {
    margin: 26px 0 12px;
    font-size: 1.38rem;
    scroll-margin-top: 100px;
}

.help-markdown h3 {
    margin: 22px 0 10px;
    font-size: 1.08rem;
    scroll-margin-top: 100px;
}

.help-markdown p,
.help-markdown li {
    color: #3e4c59;
    font-size: 0.98rem;
    line-height: 1.7;
}

.help-markdown ul,
.help-markdown ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.help-markdown a {
    color: #1f5f99;
}

.help-markdown blockquote {
    margin: 18px 0;
    padding: 12px 16px;
    border-left: 4px solid #9fb3c8;
    background: #f8fbff;
    border-radius: 0 8px 8px 0;
}

.help-markdown code {
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    background: #f0f4f8;
    color: #334e68;
}

.help-markdown table {
    width: 100%;
    margin: 18px 0 24px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    border: 1px solid #d9e2ec;
    background: #ffffff;
}

.help-markdown thead th,
.help-markdown tbody td {
    padding: 14px 16px;
    border: 0;
    color: #334e68;
    text-align: left;
    vertical-align: top;
    font-size: 0.98rem;
    line-height: 1.45;
}

.help-markdown thead th {
    background: #f8fafc;
    font-weight: 700;
}

.help-markdown thead th + th,
.help-markdown tbody td + td {
    border-left: 1px solid #d9e2ec;
}

.help-markdown tbody td:first-child,
.help-markdown thead th:first-child {
    width: 24%;
    font-weight: 700;
    color: #243b53;
}

.help-markdown tbody tr:nth-child(odd) td {
    background: #f8fafc;
}

.help-markdown tbody tr:nth-child(even) td {
    background: #ffffff;
}

.help-markdown tbody tr + tr td {
    border-top: 1px solid #d9e2ec;
}

.help-markdown table p,
.help-markdown table li {
    margin: 0;
}

@media (max-width: 1200px) {
    .help-layout {
        grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    }

    .help-page-sidebar {
        display: none;
    }
}

@media (max-width: 900px) {
    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-sidebar,
    .help-page-sidebar {
        position: static;
    }

    .help-sidebar {
        order: 1;
    }

    .help-sidebar-card {
        max-height: none;
        overflow: visible;
    }

    .help-content-shell {
        order: 2;
    }

    .help-article-card {
        padding: 18px 18px 22px;
    }

    .help-markdown table {
        table-layout: auto;
    }

    .help-markdown thead th,
    .help-markdown tbody td {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
}