.cs-help {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .cs-help {
        grid-template-columns: 14rem minmax(0, 1fr);
    }
}

.cs-help-toc {
    display: none;
}

@media (min-width: 1024px) {
    .cs-help-toc {
        display: block;
        position: sticky;
        top: 5rem;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        font-size: 0.875rem;
    }
}

.cs-help-toc-group + .cs-help-toc-group {
    margin-top: 1.25rem;
}

.cs-help-toc-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.6;
    margin-bottom: 0.375rem;
}

.cs-help-toc ul {
    display: grid;
    gap: 0.125rem;
}

.cs-help-toc a {
    display: block;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    border-left: 2px solid transparent;
    opacity: 0.8;
}

.cs-help-toc a:hover {
    opacity: 1;
    background: rgba(148, 163, 184, 0.12);
}

.cs-help-toc a.is-active {
    opacity: 1;
    font-weight: 600;
    border-left-color: var(--primary-500);
    background: rgba(148, 163, 184, 0.12);
}

.cs-help-content {
    display: grid;
    gap: 2.5rem;
    min-width: 0;
}

.cs-help-group {
    display: grid;
    gap: 1rem;
}

.cs-help-group-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.cs-help-section {
    scroll-margin-top: 5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-white, #fff);
}

.dark .cs-help-section {
    background: rgba(255, 255, 255, 0.03);
}

.cs-help-section h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cs-help-section--highlight {
    animation: cs-help-highlight 2.4s ease-out;
}

@keyframes cs-help-highlight {
    0%,
    40% {
        border-color: var(--primary-500);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-500) 25%, transparent);
    }

    100% {
        border-color: rgba(148, 163, 184, 0.25);
        box-shadow: 0 0 0 0 transparent;
    }
}

.cs-help-body {
    font-size: 0.9375rem;
    line-height: 1.65;
    display: grid;
    gap: 0.75rem;
}

.cs-help-body h4 {
    font-weight: 600;
    margin-top: 0.25rem;
}

.cs-help-body ul,
.cs-help-body ol {
    padding-left: 1.25rem;
    display: grid;
    gap: 0.25rem;
}

.cs-help-body ul {
    list-style: disc;
}

.cs-help-body ol {
    list-style: decimal;
}

.cs-help-body strong {
    font-weight: 600;
}

.cs-help-body a {
    color: var(--primary-600);
    text-decoration: underline;
}

.dark .cs-help-body a {
    color: var(--primary-400);
}

.cs-help-body code {
    font-size: 0.85em;
    padding: 0.1em 0.35em;
    border-radius: 0.3rem;
    background: rgba(148, 163, 184, 0.18);
}

.cs-help-tip {
    border-left: 3px solid var(--primary-500);
    padding: 0.5rem 0.875rem;
    border-radius: 0 0.5rem 0.5rem 0;
    background: rgba(148, 163, 184, 0.1);
}

.cs-help-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
}

.cs-help-flow span {
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.cs-help-flow span.cs-help-flow-arrow {
    border: 0;
    padding: 0;
    opacity: 0.5;
}

.cs-help-table {
    overflow-x: auto;
}

.cs-help-table table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.cs-help-table th,
.cs-help-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.4rem 0.75rem 0.4rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.cs-help-table th {
    font-weight: 600;
}
