:root {
    --help-surface: var(--bs-body-bg, #fff);
    --help-surface-soft: var(--bs-light-bg-subtle, #f8f9fa);
    --help-border: var(--bs-border-color, #dee2e6);
    --help-text: var(--bs-body-color, #212529);
    --help-muted: var(--bs-secondary-color, #667085);
    --help-primary: var(--bs-primary, #556ee6);
    --help-primary-soft: rgba(var(--bs-primary-rgb, 85, 110, 230), .09);
    --help-shadow: 0 16px 40px rgba(22, 34, 51, .08);
}

html { scroll-behavior: smooth; }

.help-site {
    min-height: 100vh;
    margin: 0;
    background: var(--help-surface);
    color: var(--help-text);
}

.help-site a { text-underline-offset: .2em; }

.help-skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 1100;
    padding: .7rem 1rem;
    border-radius: .6rem;
    background: var(--help-text);
    color: var(--help-surface);
}

.help-skip-link:focus { top: 1rem; }

.help-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--help-border);
    background: color-mix(in srgb, var(--help-surface) 92%, transparent);
    backdrop-filter: blur(14px);
}

.help-nav,
.help-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.help-nav { min-height: 72px; }

.help-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--help-text);
    text-decoration: none;
}

.help-brand img { width: auto; max-width: 126px; object-fit: contain; }

.help-brand > span {
    width: 1px;
    height: 24px;
    background: var(--help-border);
}

.help-brand strong { white-space: nowrap; font-size: .96rem; }

.help-nav-actions { display: flex; align-items: center; gap: 1rem; }
.help-nav-link { color: var(--help-muted); font-weight: 600; text-decoration: none; }
.help-nav-link:hover { color: var(--help-primary); }

.help-hero {
    overflow: hidden;
    border-bottom: 1px solid var(--help-border);
    background:
        radial-gradient(circle at 15% 10%, rgba(var(--bs-primary-rgb, 85, 110, 230), .15), transparent 32rem),
        linear-gradient(180deg, var(--help-primary-soft), var(--help-surface));
}

.help-hero-inner { max-width: 850px; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 8vw, 6.5rem); text-align: center; }
.help-eyebrow { margin: 0 0 .55rem; color: var(--help-primary); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.help-hero h1 { margin: 0; font-size: clamp(2.35rem, 7vw, 4.5rem); font-weight: 750; letter-spacing: -.055em; }
.help-hero-copy { margin: 1rem auto 1.8rem; color: var(--help-muted); font-size: clamp(1rem, 2vw, 1.2rem); }

.help-search {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    max-width: 740px;
    margin: 0 auto;
    padding: .55rem;
    border: 1px solid var(--help-border);
    border-radius: 1rem;
    background: var(--help-surface);
    box-shadow: var(--help-shadow);
}

.help-search > svg { margin-left: .65rem; color: var(--help-muted); }
.help-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--help-text); font-size: 1.03rem; }
.help-search input::placeholder { color: var(--help-muted); }
.help-search:focus-within { border-color: var(--help-primary); box-shadow: 0 0 0 .22rem rgba(var(--bs-primary-rgb, 85, 110, 230), .16), var(--help-shadow); }

.help-main-grid {
    display: grid;
    grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.help-category-panel h2 { margin: 0 0 1.1rem; font-size: 1rem; }
.help-category-list { display: grid; gap: .35rem; }
.help-category-link { display: flex; align-items: center; gap: .8rem; padding: .7rem; border: 1px solid transparent; border-radius: .8rem; color: var(--help-muted); text-decoration: none; }
.help-category-link:hover { color: var(--help-primary); background: var(--help-primary-soft); }
.help-category-link.is-active { border-color: rgba(var(--bs-primary-rgb, 85, 110, 230), .22); background: var(--help-primary-soft); color: var(--help-primary); }
.help-category-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: .65rem; background: var(--help-surface-soft); }
.help-category-icon svg { width: 17px; }
.help-category-link strong,
.help-category-link small { display: block; }
.help-category-link small { margin-top: .1rem; color: var(--help-muted); font-size: .72rem; }

.help-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.help-section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.025em; }
.help-clear-link { flex: 0 0 auto; font-weight: 600; }
.help-article-list { overflow: hidden; border: 1px solid var(--help-border); border-radius: 1rem; background: var(--help-surface); box-shadow: 0 10px 30px rgba(22, 34, 51, .05); }
.help-article-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--help-border); color: var(--help-text); text-decoration: none; transition: background-color .16s ease, padding-left .16s ease; }
.help-article-card:last-child { border-bottom: 0; }
.help-article-card:hover { padding-left: 1.65rem; background: var(--help-primary-soft); }
.help-article-card > svg { flex: 0 0 auto; color: var(--help-primary); }
.help-article-copy { display: grid; gap: .28rem; }
.help-article-copy small { color: var(--help-primary); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.help-article-copy strong { font-size: 1.08rem; }
.help-article-copy > span { color: var(--help-muted); line-height: 1.5; }

.help-empty { padding: clamp(2.5rem, 7vw, 5rem) 1rem; border: 1px dashed var(--help-border); border-radius: 1rem; text-align: center; }
.help-empty-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 1rem; place-items: center; border-radius: 1rem; background: var(--help-primary-soft); color: var(--help-primary); }
.help-empty h3 { margin-bottom: .45rem; }
.help-empty p { max-width: 470px; margin: 0 auto 1.3rem; color: var(--help-muted); }

.help-support-strip { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.help-support-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; padding: clamp(1.5rem, 4vw, 2.2rem); border: 1px solid rgba(var(--bs-primary-rgb, 85, 110, 230), .2); border-radius: 1.2rem; background: var(--help-primary-soft); }
.help-support-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: .9rem; background: var(--help-surface); color: var(--help-primary); }
.help-support-card h2 { margin: 0 0 .25rem; font-size: 1.25rem; }
.help-support-card p { margin: 0; color: var(--help-muted); }

.help-footer { border-top: 1px solid var(--help-border); background: var(--help-surface-soft); }
.help-footer-inner { min-height: 150px; }
.help-footer p { margin: .35rem 0 0; color: var(--help-muted); }
.help-footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.help-footer-links a { color: var(--help-muted); font-weight: 600; text-decoration: none; }
.help-footer-links a:hover { color: var(--help-primary); }

.help-article-layout { max-width: 930px; padding-top: 2rem; padding-bottom: clamp(4rem, 8vw, 7rem); }
.help-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 2.5rem; padding: 0; list-style: none; color: var(--help-muted); font-size: .86rem; }
.help-breadcrumb li:not(:last-child)::after { margin-left: .35rem; content: "/"; color: var(--help-border); }
.help-breadcrumb a { color: var(--help-muted); text-decoration: none; }
.help-breadcrumb a:hover { color: var(--help-primary); }
.help-preview-notice { display: flex; align-items: center; gap: .65rem; }
.help-preview-notice svg { width: 18px; }
.help-article { max-width: 760px; margin: 0 auto; }
.help-topic-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: 999px; background: var(--help-primary-soft); color: var(--help-primary); font-size: .78rem; font-weight: 700; text-decoration: none; }
.help-topic-chip svg { width: 15px; }
.help-article-header h1 { margin: 1.2rem 0; font-size: clamp(2.25rem, 7vw, 4.3rem); font-weight: 750; letter-spacing: -.05em; line-height: 1.06; }
.help-direct-answer { margin: 0; color: var(--help-muted); font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.65; }
.help-reviewed { display: flex; align-items: center; gap: .4rem; margin: 1.2rem 0 0; color: var(--help-muted); font-size: .8rem; }
.help-reviewed svg { width: 15px; color: var(--bs-success, #34c38f); }
.help-rich-text { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--help-border); font-size: 1.03rem; line-height: 1.78; }
.help-rich-text h2 { margin: 2.6rem 0 .85rem; font-size: 1.65rem; letter-spacing: -.025em; }
.help-rich-text h3 { margin: 2rem 0 .7rem; font-size: 1.25rem; }
.help-rich-text p,
.help-rich-text li { color: color-mix(in srgb, var(--help-text) 84%, var(--help-muted)); }
.help-rich-text li { padding-left: .35rem; margin-bottom: .6rem; }
.help-rich-text a { font-weight: 600; }

.help-related { margin-top: 5rem; padding-top: 2.5rem; border-top: 1px solid var(--help-border); }
.help-related h2 { margin: 0 0 1.25rem; }
.help-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.help-related-card { position: relative; display: grid; min-height: 150px; padding: 1.2rem; border: 1px solid var(--help-border); border-radius: .9rem; color: var(--help-text); text-decoration: none; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.help-related-card:hover { transform: translateY(-2px); border-color: rgba(var(--bs-primary-rgb, 85, 110, 230), .4); box-shadow: 0 10px 24px rgba(22, 34, 51, .08); }
.help-related-card small { color: var(--help-primary); font-weight: 700; }
.help-related-card strong { align-self: center; }
.help-related-card svg { position: absolute; right: 1rem; bottom: 1rem; width: 18px; color: var(--help-primary); }
.help-article-support { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding: 1.4rem; border-radius: 1rem; background: var(--help-surface-soft); }
.help-article-support p { margin: .25rem 0 0; color: var(--help-muted); }

.help-site a:focus-visible,
.help-site button:focus-visible,
.help-site input:focus-visible { outline: 3px solid rgba(var(--bs-primary-rgb, 85, 110, 230), .28); outline-offset: 3px; }

@media (max-width: 767.98px) {
    .help-nav-link { display: none; }
    .help-main-grid { grid-template-columns: 1fr; }
    .help-category-panel { overflow-x: auto; margin-inline: calc(var(--bs-gutter-x) * -.5); padding-inline: calc(var(--bs-gutter-x) * .5); }
    .help-category-list { display: flex; min-width: max-content; padding-bottom: .5rem; }
    .help-category-link { max-width: 230px; }
    .help-support-card { grid-template-columns: auto 1fr; }
    .help-support-card .btn { grid-column: 1 / -1; width: 100%; }
    .help-related-grid { grid-template-columns: 1fr; }
    .help-article-support { align-items: stretch; flex-direction: column; }
    .help-footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 2.5rem; }
}

@media (max-width: 575.98px) {
    .help-brand img { max-width: 92px; }
    .help-brand strong { display: none; }
    .help-brand > span { display: none; }
    .help-search { grid-template-columns: auto 1fr; }
    .help-search .btn { grid-column: 1 / -1; width: 100%; }
    .help-article-card { padding: 1.05rem; }
    .help-article-card:hover { padding-left: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .help-site *,
    .help-site *::before,
    .help-site *::after { animation: none !important; transition: none !important; }
}

@supports not (color: color-mix(in srgb, white, black)) {
    .help-header { background: var(--help-surface); }
    .help-rich-text p,
    .help-rich-text li { color: var(--help-text); }
}
