/**
 * Documentation + support (help center)
 */

.help {
    background: var(--bg-primary);
    min-height: calc(100vh - 88px);
}

.help-top {
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    padding: 2.25rem 0 1.75rem;
}

[data-theme="dark"] .help-top {
    background: var(--bg-primary);
}

.help-top-inner {
    max-width: 72rem;
}

.help-crumb {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    color: var(--text-tertiary);
    font-size: 0.82rem;
}

.help-crumb a {
    color: var(--text-secondary);
}

.help-top h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.help-top p {
    max-width: 38rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.15rem;
}

.help-search {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 34rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.7rem;
    background: var(--bg-card);
}

.help-search:focus-within {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.help-search i {
    color: var(--text-tertiary);
}

.help-search input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    outline: none;
}

.help-shell {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 2.75rem;
    max-width: 72rem;
    padding-top: 2rem;
    padding-bottom: 4.5rem;
}

.help-nav-toggle {
    display: none;
    margin-bottom: 1rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.6rem;
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
}

.help-nav {
    position: sticky;
    top: 5.5rem;
    align-self: start;
    padding-bottom: 2rem;
}

.help-nav-label {
    margin: 1.15rem 0 0.35rem;
    color: var(--text-tertiary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.help-nav-label:first-child {
    margin-top: 0;
}

.help-nav a {
    display: block;
    padding: 0.38rem 0.55rem;
    margin-left: -0.55rem;
    border-radius: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.35;
}

.help-nav a:hover,
.help-nav a.is-active {
    background: var(--primary-50);
    color: var(--primary-700);
}

[data-theme="dark"] .help-nav a:hover,
[data-theme="dark"] .help-nav a.is-active {
    background: rgba(99, 102, 241, 0.14);
    color: var(--primary-200);
}

.help-article {
    padding: 0 0 2.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-primary);
}

.help-article:last-of-type {
    border-bottom: 0;
}

.help-kicker {
    margin-bottom: 0.35rem;
    color: var(--primary-600);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.help-article h2 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.help-article p,
.help-article li {
    color: var(--text-secondary);
    line-height: 1.75;
}

.help-article a {
    color: var(--primary-600);
    font-weight: 600;
}

.help-article code {
    padding: 0.12rem 0.35rem;
    border-radius: 0.35rem;
    background: var(--bg-tertiary);
    font-size: 0.86em;
}

.help-steps {
    margin: 0.9rem 0 0;
    padding-left: 1.15rem;
}

.help-steps li {
    margin-bottom: 0.7rem;
}

.help-steps strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.help-note {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--primary-100);
    border-radius: 0.75rem;
    background: var(--primary-50);
}

[data-theme="dark"] .help-note {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.28);
}

.help-note i {
    color: var(--primary-600);
    margin-top: 0.2rem;
}

.help-note p {
    margin: 0;
}

.help-empty {
    padding: 1.5rem 0 3rem;
    color: var(--text-secondary);
}

.help-support-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 2rem;
    max-width: 72rem;
    padding-top: 2rem;
    padding-bottom: 4.5rem;
}

.help-topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.help-topic {
    padding: 1.2rem 1.2rem 1.05rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.9rem;
    background: var(--bg-card);
}

.help-topic header {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.help-topic-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 0.6rem;
    background: var(--primary-50);
    color: var(--primary-700);
    flex-shrink: 0;
}

[data-theme="dark"] .help-topic-icon {
    background: rgba(99, 102, 241, 0.16);
    color: var(--primary-200);
}

.help-topic h2 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0 0 0.15rem;
}

.help-topic header p {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 0.82rem;
}

.help-topic ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-topic li + li {
    border-top: 1px solid var(--border-primary);
}

.help-topic a {
    display: block;
    padding: 0.55rem 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.help-topic a:hover {
    color: var(--primary-600);
}

.help-contact {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.help-contact-card {
    padding: 1.25rem 1.25rem 1.3rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.9rem;
    background: var(--bg-card);
}

.help-contact-card--soft {
    background: var(--bg-secondary);
}

.help-contact-card h2,
.help-contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
    color: var(--text-primary);
}

.help-contact-card > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.help-contact-card dl {
    margin: 0 0 1.1rem;
}

.help-contact-card dt {
    color: var(--text-tertiary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.help-contact-card dd {
    margin: 0.15rem 0 0.75rem;
    color: var(--text-primary);
}

.help-contact-card .btn {
    width: 100%;
    justify-content: center;
}

.help-contact-hint {
    margin: 0.75rem 0 0 !important;
    font-size: 0.82rem !important;
}

.help-contact-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-contact-card li + li {
    margin-top: 0.45rem;
}

.help-contact-card li a {
    color: var(--primary-600);
    font-weight: 600;
}

@media (max-width: 980px) {
    .help-shell,
    .help-support-body,
    .help-topics {
        grid-template-columns: 1fr;
    }

    .help-nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
    }

    .help-nav {
        position: static;
        display: none;
        padding: 0.5rem 0 1.25rem;
    }

    .help-nav.is-open {
        display: block;
    }
}
