.help-page,
.help-article {
    --hc-bg: #f4f7fc;
    --hc-surface: #ffffff;
    --hc-text: #0f172a;
    --hc-muted: #52627a;
    --hc-line: #dfe8f5;
    --hc-primary: #1e63ff;
    --hc-primary-dark: #1554e0;
    --hc-shade: #eef3fb;
    --hc-radius: 18px;
    --hc-radius-sm: 12px;
    --hc-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.help-page {
    background: var(--hc-bg);
    min-height: 60vh;
}

.help-page__hero {
    background: linear-gradient(165deg, #eef4ff 0%, var(--hc-bg) 58%);
    border-bottom: 1px solid var(--hc-line);
    padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.25rem, 5vw, 3rem) 2rem;
    text-align: center;
}

.help-page__hero-inner {
    max-width: 46rem;
    margin: 0 auto;
}

.help-page__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1.15rem;
    font-size: 0.875rem;
    color: var(--hc-muted);
}

.help-page__breadcrumb--left {
    justify-content: flex-start;
}

.help-page__breadcrumb a {
    color: var(--hc-primary);
    text-decoration: none;
}

.help-page__breadcrumb a:hover {
    text-decoration: underline;
}

.help-page__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hc-primary);
}

.help-page__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.85rem, 4vw + 0.7rem, 2.85rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--hc-text);
    text-wrap: balance;
}

.help-page__lead {
    margin: 0 auto 1.5rem;
    max-width: 40rem;
    font-size: clamp(1rem, 1.3vw + 0.8rem, 1.15rem);
    line-height: 1.65;
    color: var(--hc-muted);
}

.help-search {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 34rem;
    margin: 0 auto 1.25rem;
}

.help-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.help-search__field {
    position: relative;
    display: flex;
    align-items: center;
}

.help-search__icon {
    position: absolute;
    left: 1rem;
    color: var(--hc-muted);
    pointer-events: none;
}

.help-search__input {
    width: 100%;
    padding: 0.9rem 2.75rem;
    font: inherit;
    font-size: 1rem;
    color: var(--hc-text);
    background: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.help-search__input:focus {
    outline: none;
    border-color: var(--hc-primary);
    box-shadow: 0 0 0 3px rgba(30, 99, 255, 0.16);
}

.help-search__clear {
    position: absolute;
    right: 0.75rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-muted);
    text-decoration: none;
    border-radius: 50%;
}

.help-search__submit {
    align-self: center;
    padding: 0.65rem 1.4rem;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--hc-primary);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.help-search__submit:hover {
    background: var(--hc-primary-dark);
}

.help-chips {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0 auto 1rem;
    max-width: 46rem;
    overflow-x: auto;
    padding: 0.15rem 0.15rem 0.6rem;
    scrollbar-width: thin;
}

.help-chips__item {
    flex: 0 0 auto;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hc-muted);
    text-decoration: none;
    background: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: 999px;
    white-space: nowrap;
}

.help-chips__item:hover,
.help-chips__item.is-active {
    color: var(--hc-primary);
    border-color: rgba(30, 99, 255, 0.35);
    background: #f4f8ff;
}

.help-chips__item.is-active {
    box-shadow: 0 0 0 3px rgba(30, 99, 255, 0.1);
}

.help-page__stats {
    margin: 0;
    font-size: 0.875rem;
    color: var(--hc-muted);
}

.help-page__body {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem clamp(1.25rem, 5vw, 3rem) 1rem;
}

.help-section {
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.help-section.is-hidden {
    display: none;
}

.help-section__head {
    margin-bottom: 1.1rem;
}

.help-section__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.25rem, 2vw + 0.8rem, 1.6rem);
    color: var(--hc-text);
}

.help-section__lead {
    margin: 0;
    max-width: 40rem;
    color: var(--hc-muted);
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-card.is-hidden {
    display: none;
}

.help-card__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.help-card__inner:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 99, 255, 0.28);
    box-shadow: var(--hc-shadow);
}

.help-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--hc-shade);
    overflow: hidden;
}

.help-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.help-card__media--plain {
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-card__media-mark {
    font-size: 1.5rem;
    color: var(--hc-primary);
}

.help-card__play {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 23, 42, 0.78);
    border-radius: 999px;
}

.help-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.1rem 1.15rem 1.2rem;
    flex: 1;
}

.help-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.help-card__topic {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hc-primary);
    text-decoration: none;
}

.help-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hc-muted);
    background: var(--hc-shade);
    border-radius: 999px;
}

.help-pill--video {
    color: #1554e0;
    background: #e8f0ff;
}

.help-pill--audio {
    color: #0f766e;
    background: #e6f7f4;
}

.help-card__title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}

.help-card__title a {
    color: var(--hc-text);
    text-decoration: none;
}

.help-card__title a:hover {
    color: var(--hc-primary);
}

.help-card__excerpt {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--hc-muted);
}

.help-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hc-primary);
    text-decoration: none;
}

.help-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--hc-surface);
    border: 1px dashed var(--hc-line);
    border-radius: var(--hc-radius);
    color: var(--hc-muted);
}

.help-empty a {
    color: var(--hc-primary);
}

.help-empty--filter {
    margin-top: 1rem;
}

.help-cta {
    background: #10203d;
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
}

.help-cta__inner {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.help-cta__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #93c5fd;
}

.help-cta__title {
    margin: 0 0 0.65rem;
    color: #fff;
}

.help-cta__body {
    margin: 0 0 1.35rem;
    color: #cbd5e1;
}

.help-cta__actions,
.help-article__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}

.help-btn--primary {
    color: #10203d;
    background: #fff;
}

.help-btn--ghost {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.help-btn--secondary {
    color: var(--hc-primary);
    background: var(--hc-surface);
    border: 1.5px solid var(--hc-line);
}

.help-article {
    background: linear-gradient(180deg, #f8fbff 0%, var(--hc-bg) 100%);
}

.help-article__container {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 2rem) clamp(2.75rem, 6vw, 4rem);
    display: grid;
    gap: 1.35rem;
}

.help-article__header {
    display: grid;
    gap: 0.75rem;
}

.help-article__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.help-article__title {
    margin: 0;
    font-size: clamp(1.75rem, 3.4vw + 0.75rem, 2.55rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.help-article__lead {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.65;
    color: #334155;
}

.help-article__updated {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--hc-muted);
}

.help-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.help-jump a {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hc-primary);
    text-decoration: none;
    background: #f4f8ff;
    border: 1px solid rgba(30, 99, 255, 0.18);
    border-radius: 999px;
}

.help-media,
.help-audio,
.help-guide {
    background: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
    overflow: hidden;
}

.help-media {
    margin: 0;
}

.help-media__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.help-media__frame iframe,
.help-media__player,
.help-media img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.help-media__player,
.help-media img {
    height: auto;
    max-height: min(460px, 56vh);
    object-fit: cover;
}

.help-media figcaption,
.help-audio__caption {
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    font-size: 0.875rem;
    color: var(--hc-muted);
}

.help-audio,
.help-guide {
    padding: clamp(1.15rem, 3vw, 1.75rem);
}

.help-audio__title,
.help-guide__title,
.help-related__title {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
}

.help-audio__player {
    width: 100%;
    margin: 0.5rem 0 0.75rem;
}

.help-transcript summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--hc-primary);
}

.help-transcript__body {
    margin-top: 0.75rem;
    color: var(--hc-muted);
}

.help-guide__prose {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--hc-muted);
}

.help-guide__prose.rich-text img,
.help-guide__prose.rich-text iframe,
.help-guide__prose.rich-text video {
    max-width: 100%;
    height: auto;
    border-radius: var(--hc-radius-sm);
}

.help-article__footer {
    justify-content: space-between;
    align-items: center;
}

.help-article__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--hc-muted);
    text-decoration: none;
}

.help-article__back:hover {
    color: var(--hc-primary);
}

.help-pager {
    display: grid;
    gap: 0.75rem;
}

.help-pager__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    background: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-sm);
    text-decoration: none;
    color: var(--hc-muted);
}

.help-pager__link:hover {
    border-color: rgba(30, 99, 255, 0.3);
    color: var(--hc-primary);
}

.help-pager__link--next {
    justify-content: flex-end;
    text-align: right;
}

.help-pager__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.help-pager__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hc-primary);
}

.help-pager__title {
    font-weight: 700;
    color: var(--hc-text);
}

.help-related {
    padding-top: 1.25rem;
    border-top: 1px solid var(--hc-line);
}

.help-related__list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-related__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    background: var(--hc-surface);
    border: 1px solid var(--hc-line);
    border-radius: var(--hc-radius-sm);
    text-decoration: none;
    color: inherit;
}

.help-related__card:hover {
    border-color: rgba(30, 99, 255, 0.3);
}

.help-related__copy {
    display: grid;
    gap: 0.2rem;
}

.help-related__topic {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hc-primary);
}

.help-related__name {
    font-weight: 700;
    color: var(--hc-text);
}

.help-related__excerpt {
    font-size: 0.9rem;
    color: var(--hc-muted);
}

@media (min-width: 640px) {
    .help-search {
        flex-direction: row;
        align-items: center;
    }

    .help-search__field {
        flex: 1;
    }

    .help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .help-pager {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .help-pager__link--next {
        grid-column: 2;
    }

    .help-chips {
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
    }
}

@media (min-width: 960px) {
    .help-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
