:root {
    --bg: #f2f6fa;
    --bg-alt: #e8eef5;
    --panel: #ffffff;
    --panel-alt: #f8fafd;
    --line: #d2dce9;
    --line-strong: #9fb0c5;
    --ink: #0f172a;
    --ink-soft: #334155;
    --ink-muted: #64748b;
    --blue: #0f4c81;
    --blue-strong: #0a3b64;
    --blue-soft: #dceafb;
    --focus-ring: 0 0 0 3px rgba(15, 76, 129, 0.24);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body.help-body {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    line-height: 1.6;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 76, 129, 0.03) 0%, rgba(15, 76, 129, 0) 36%),
        linear-gradient(180deg, #f9fbfd 0%, var(--bg) 100%);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-family: "Space Grotesk", sans-serif;
    color: var(--ink);
}

p {
    margin: 0;
}

a {
    color: inherit;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

.help-skip-link {
    position: absolute;
    z-index: 300;
    top: -48px;
    left: 12px;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    text-decoration: none;
}

.help-skip-link:focus {
    top: 10px;
}

.help-header {
    z-index: 120;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(5px);
}

.help-header-shell {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px clamp(16px, 3.5vw, 56px);
}

.help-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.help-brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: var(--blue);
    border: 1px solid var(--blue-strong);
    font-size: 15px;
    font-weight: 800;
}

.help-brand-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.help-brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.help-brand-sub {
    font-size: 12px;
    color: var(--ink-muted);
}

.help-main {
    min-height: 0;
}

.help-layout {
    height: 100%;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 0;
}

.help-sidebar {
    min-height: 0;
    overflow: auto;
    border-right: 1px solid var(--line);
    background: #ffffff;
    padding: 14px 0;
}

.help-nav-label {
    margin: 0 14px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f6e8a;
}

.help-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-category-item {
    margin: 0;
    border: 0;
    background: transparent;
}

.help-category-item + .help-category-item {
    border-top: 1px solid #bfd0e2;
}

.help-category-toggle {
    width: 100%;
    border: 0;
    margin: 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    background: #ffffff;
    color: #1e4d77;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.help-category-toggle:hover {
    background: #f4f8fc;
}

.help-category-toggle-icon {
    position: relative;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.help-category-toggle-icon::before,
.help-category-toggle-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 2px;
    background: #346289;
    transition: transform 0.16s ease;
}

.help-category-toggle-icon::after {
    transform: rotate(90deg);
}

.help-category-item.is-open .help-category-toggle-icon::after {
    transform: rotate(0deg);
}

.help-category-sections {
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    transition: max-height 0.22s ease;
}

.help-category-sections.is-open {
    max-height: 12000px;
}

.help-group-list {
    margin: 0;
    padding: 0;
}

.help-group-item {
    margin: 0;
    padding: 0;
}

.help-group-toggle {
    width: 100%;
    border: 0;
    margin: 0;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    background: #ffffff;
    color: #315372;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.help-group-toggle:hover {
    background: #f4f8fc;
}

.help-group-toggle-icon {
    position: relative;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
}

.help-group-toggle-icon::before,
.help-group-toggle-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 2px;
    background: #4b6a88;
    transition: transform 0.16s ease;
}

.help-group-toggle-icon::after {
    transform: rotate(90deg);
}

.help-group-item.is-open > .help-group-toggle .help-group-toggle-icon::after {
    transform: rotate(0deg);
}

.help-group-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
}

.help-group-panel.is-open {
    max-height: 6000px;
}

.help-group-level-1 > .help-group-toggle {
    padding-left: 18px;
}

.help-group-level-2 > .help-group-toggle {
    padding-left: 30px;
}

.help-group-level-3 > .help-group-toggle {
    padding-left: 42px;
}

.help-group-level-4 > .help-group-toggle {
    padding-left: 54px;
}

.help-group-level-5 > .help-group-toggle {
    padding-left: 66px;
}

.help-forum-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-forum-links li {
    margin: 0;
    padding: 0;
}

.help-forum-link {
    display: block;
    width: 100%;
    border: 0;
    background: #ffffff;
    color: #173e62;
    text-decoration: none;
    padding: 7px 12px 7px 30px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.help-forum-link-level-2 {
    padding-left: 30px;
}

.help-forum-link-level-3 {
    padding-left: 42px;
}

.help-forum-link-level-4 {
    padding-left: 54px;
}

.help-forum-link-level-5 {
    padding-left: 66px;
}

.help-forum-link-level-6 {
    padding-left: 78px;
}

.help-forum-link:hover {
    background: #f4f8fc;
    color: #123f63;
}

.help-forum-link.active {
    background: #eef4fa;
    color: #123d63;
    font-weight: 800;
}

.help-panel {
    min-height: 0;
    overflow: auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: var(--panel);
}

.help-panel-header {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    padding: 20px clamp(18px, 4vw, 56px) 14px;
}

.help-panel-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 800;
    color: var(--blue);
}

.help-panel-title {
    margin-top: 6px;
    font-size: clamp(24px, 3vw, 38px);
}

.help-panel-description {
    margin-top: 8px;
    font-size: 14px;
    color: var(--ink-soft);
    max-width: 82ch;
}

.help-panel-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.help-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #93c5fd;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #17426a;
    background: var(--blue-soft);
}

.help-updated {
    font-size: 12px;
    color: var(--ink-muted);
}

.help-content {
    padding: 20px clamp(18px, 4vw, 56px) 36px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.help-block-header-1 {
    font-size: clamp(23px, 2.9vw, 32px);
}

.help-block-header-2 {
    font-size: clamp(18px, 2.3vw, 25px);
}

.help-block-text {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
}

.help-block-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 7px;
    font-size: 14px;
    color: var(--ink-soft);
}

.help-block-card {
    margin: 0;
    border: 1px solid var(--line);
    background: var(--panel-alt);
    padding: 12px;
    display: grid;
    gap: 9px;
}

.help-block-card-title {
    font-size: 18px;
}

.help-block-caption {
    font-size: 12px;
    color: var(--ink-muted);
}

.help-block-video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.help-block-image img {
    border: 1px solid var(--line);
    background: #ffffff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 0;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-secondary {
    color: var(--ink);
    background: #ffffff;
    border-color: var(--line);
}

.btn-secondary:hover {
    background: var(--panel-alt);
    border-color: var(--line-strong);
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

@media (max-width: 1080px) {
    body.help-body {
        overflow: auto;
        grid-template-rows: auto auto;
    }

    .help-main {
        min-height: auto;
    }

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

    .help-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        max-height: 50vh;
    }

    .help-panel {
        overflow: visible;
    }

    .help-panel-header {
        position: static;
    }

    .help-panel-meta {
        justify-items: start;
    }
}

@media (max-width: 840px) {
    .help-header-shell {
        grid-template-columns: 1fr;
    }

    .help-header-actions {
        width: 100%;
    }

    .help-header-actions .btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .help-panel-header,
    .help-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .help-panel-title {
        font-size: 27px;
    }

    .help-sidebar {
        padding: 10px 0;
    }
}
