:root {
    --help-bg: #f4f7fc;
    --help-panel: #ffffff;
    --help-ink: #1c2753;
    --help-muted: #5f6b8f;
    --help-brand: #0f4dd6;
    --help-accent: #0ba59f;
    --help-line: #dfe5f5;
    --help-shadow: 0 12px 30px rgba(14, 34, 84, 0.1);
}

* {
    box-sizing: border-box;
}

body.help-body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: var(--help-ink);
    background:
        radial-gradient(circle at 8% -6%, #d7e6ff 0, transparent 32%),
        radial-gradient(circle at 92% 2%, #d5f3ef 0, transparent 24%),
        var(--help-bg);
}

.help-shell {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.help-topbar {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--help-line);
    border-radius: 14px;
    box-shadow: var(--help-shadow);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.help-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-logo {
    width: 148px;
    background: #ffffff;
    border: 1px solid #dfe5f7;
    border-radius: 8px;
    padding: 4px 6px;
}

.help-topbar h1 {
    margin: 0;
    font-size: 20px;
}

.help-topbar p {
    margin: 0;
    color: var(--help-muted);
    font-size: 13px;
}

.help-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.help-link {
    border: 1px solid var(--help-line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--help-ink);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.help-link:hover {
    border-color: #b7c7ef;
    background: #f8fbff;
}

.help-hero {
    background: linear-gradient(135deg, #0f2f88 0%, #1b57dd 64%, #22bbb4 100%);
    color: #f5f8ff;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--help-shadow);
}

.help-hero h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.help-hero p {
    margin: 0;
    max-width: 880px;
    line-height: 1.5;
}

.help-filters {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr auto;
    gap: 10px;
}

.help-input,
.help-select,
.help-button {
    border: 1px solid #d7deef;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

.help-button {
    cursor: pointer;
    background: #ffffff;
    color: var(--help-ink);
    font-weight: 600;
}

.help-button:hover {
    background: #eef3ff;
}

.help-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 14px;
}

.help-sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    background: var(--help-panel);
    border: 1px solid var(--help-line);
    border-radius: 14px;
    box-shadow: var(--help-shadow);
    padding: 12px;
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.help-sidebar h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--help-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.help-index {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-index li {
    margin-bottom: 4px;
}

.help-index a {
    display: block;
    text-decoration: none;
    border-radius: 9px;
    padding: 8px;
    color: #203066;
    font-size: 13px;
}

.help-index a:hover {
    background: #eff4ff;
}

.help-index a.active {
    background: #dbe7ff;
    color: #0c2f92;
    font-weight: 600;
}

.help-count {
    margin-top: 10px;
    font-size: 12px;
    color: var(--help-muted);
}

.help-content {
    display: grid;
    gap: 12px;
}

.help-section {
    background: var(--help-panel);
    border: 1px solid var(--help-line);
    border-radius: 14px;
    box-shadow: var(--help-shadow);
    padding: 16px;
    scroll-margin-top: 24px;
}

.help-section h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.help-section p,
.help-section li {
    color: #34416f;
    line-height: 1.5;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.help-card {
    border: 1px solid #dfe6f6;
    border-radius: 12px;
    background: #f9fbff;
    padding: 12px;
}

.help-card h4 {
    margin: 0 0 6px;
    font-size: 15px;
}

.help-table-wrap {
    overflow-x: auto;
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.help-table th,
.help-table td {
    border-bottom: 1px solid #e3e9f8;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.help-table th {
    background: #f3f7ff;
    color: #22356f;
}

.help-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.help-shot {
    background: #f9fbff;
    border: 1px solid #e2e8f8;
    border-radius: 12px;
    padding: 8px;
}

.help-shot img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d8e0f5;
}

.help-shot figcaption {
    margin-top: 6px;
    color: #445483;
    font-size: 12px;
}

.help-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.help-tag {
    border-radius: 999px;
    border: 1px solid #c9d8f7;
    background: #eff4ff;
    padding: 4px 10px;
    color: #163a96;
    font-size: 12px;
    font-weight: 600;
}

.help-section.is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 760px) {
    .help-shell {
        padding: 12px;
    }

    .help-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .help-hero h2 {
        font-size: 24px;
    }

    .help-filters {
        grid-template-columns: 1fr;
    }
}