/* Help pages (/support and /support/<topic>/), generated by help-src/generate.js.
   Loaded after styles.css, so the site's fonts and colour tokens apply. */

.help-nav {
    justify-content: flex-start;
}

.help-brand {
    text-decoration: none;
}

.help-main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 2rem auto;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.help-main h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.help-main h2 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
}

.help-main h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
}

.help-main p,
.help-main li {
    font-size: 1.05rem;
    line-height: 1.7;
}

.help-main a,
.help-main a:visited {
    color: var(--ion-color-primary);
    font-weight: 600;
    text-decoration: none;
}

.help-main a:hover {
    text-decoration: underline;
}

/* Long store URLs shown as link text must wrap rather than widen the page on a phone. */
.help-main p,
.help-main li {
    overflow-wrap: anywhere;
}

.help-lede {
    color: var(--color-text-mid);
}

.help-section {
    scroll-margin-top: 90px;
}

/* Topic list on /support */
.help-topics {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: topic;
}

.help-topics li {
    counter-increment: topic;
    border-top: 1px solid var(--color-divider);
    scroll-margin-top: 90px;
}

.help-topics li:last-child {
    border-bottom: 1px solid var(--color-divider);
}

.help-main .help-topics a {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    column-gap: 0.5rem;
    padding: 0.9rem 0.25rem;
    color: var(--app-color-black);
    font-weight: 400;
}

.help-main .help-topics a:hover {
    background: var(--app-color-light-champagne);
    text-decoration: none;
}

.help-topics a::before {
    content: counter(topic);
    grid-row: 1 / span 2;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ion-color-primary);
}

.help-topic-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--app-color-dark-red);
}

.help-topic-summary {
    color: var(--color-text-secondary);
    font-size: 0.98rem;
    line-height: 1.5;
}

.help-has-video {
    color: var(--ion-color-primary);
    margin-left: 0.35rem;
}

.help-anchor {
    display: block;
    position: relative;
    top: -90px;
}

.help-contact-email {
    font-size: 1.15rem;
}

/* Topic pages */
.help-crumb {
    margin: 0 0 1rem;
}

.help-plan {
    background: var(--app-color-light-champagne);
    border-left: 4px solid var(--ion-color-primary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

.help-video {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 1rem auto 1.5rem;
    border-radius: 12px;
    background: var(--app-color-black);
}

.help-body ol,
.help-body ul {
    padding-left: 1.6rem;
    margin: 0 0 1.25rem;
}

.help-body ol > li {
    margin-bottom: 1rem;
    padding-left: 0.25rem;
}

.help-body ol > li::marker {
    font-weight: 700;
    color: var(--ion-color-primary);
}

.help-body li > p {
    margin: 0.5rem 0 0;
}

.help-shot {
    margin: 0.75rem 0 0.5rem;
}

.help-shot img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 300px);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
}

.help-tip {
    background: var(--color-surface-warm);
    border-left: 4px solid var(--app-color-champagne);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0 0 1.25rem;
}

.help-tip p {
    margin: 0.4rem 0;
}

.help-platform {
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 0.25rem 1rem 0.25rem;
    margin: 0 0 1.25rem;
}

.help-platform-label {
    margin: 0.6rem 0 0.25rem;
    font-size: 0.85rem !important;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--app-color-dark-red);
}

.help-stuck {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-divider);
}

.help-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.help-pager a {
    display: flex;
    flex-direction: column;
    max-width: 48%;
}

.help-pager .help-next {
    text-align: right;
}

.help-pager a span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-meta);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.help-footer .copyright-info {
    text-align: center;
}

@media (max-width: 768px) {
    .help-main {
        margin: 0;
        padding: 1.25rem 1rem 2rem;
        border-radius: 0;
        box-shadow: none;
    }

    .help-nav {
        padding: 0.75rem 1rem;
    }

    .help-main h1 {
        font-size: 1.7rem;
    }
}
