:root {
    color-scheme: light;
    --help-ink: #0c1a28;
    --help-muted: #576070;
    --help-blue: #165bcb;
    --help-blue-dark: #10499f;
    --help-border: #e6ebf2;
    --help-background: #f6f7f9;
    --help-blue-light: #f1f6fe;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f6f7f9 0%, #f1f2f5 100%);
    color: var(--help-ink);
    font-family: "Lufga", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: var(--help-blue);
}

a:hover {
    color: var(--help-blue-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #7baef8;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -5rem;
    left: 1rem;
    z-index: 5;
    padding: .7rem;
    background: #fff;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.help-header {
    background: #fff;
    border-bottom: 1px solid var(--help-border);
}

.help-header-inner,
.help-container,
.help-footer-inner {
    width: min(1120px, calc(100% - 48px));
    margin: auto;
}

.help-header-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.help-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--help-ink);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.help-brand:hover {
    color: var(--help-ink);
}

.brand-divider {
    margin: 0 .25rem;
    color: #a4acb8;
}

.help-header nav {
    display: flex;
    gap: 1.5rem;
}

.help-header nav a {
    color: var(--help-muted);
    font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
}

.help-header nav a:hover {
    color: var(--help-blue);
}

.help-hero {
    padding: 32px 0 0;
}

.help-surface {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--help-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(12, 26, 40, .04), 0 8px 24px rgba(12, 26, 40, .06);
}

.help-hero .help-surface {
    padding: 36px;
}

.help-hero h1,
.page-heading h1,
.article-body h1 {
    margin: 0 0 .6rem;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -.05em;
}

.help-hero p,
.page-heading > p:last-child,
.article-intro {
    margin: 0;
    color: var(--help-muted);
    font-size: 1rem;
}

.help-eyebrow {
    margin: 0 0 .65rem !important;
    color: var(--help-blue) !important;
    font-size: 1rem !important;
    font-weight: 400;
}

.help-search {
    display: flex;
    max-width: 650px;
    gap: .5rem;
    padding: .35rem;
    border: 1px solid #d7dfea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(12, 26, 40, .04);
}

.help-hero .help-search {
    margin-top: 1.75rem;
}

.help-search input {
    flex: 1;
    min-width: 0;
    padding: .75rem .85rem;
    border: 0;
    background: transparent;
    color: var(--help-ink);
    font: inherit;
}

.help-search input::placeholder {
    color: #737e8b;
}

.help-search button {
    padding: .7rem 1.35rem;
    border: 0;
    border-radius: 9px;
    background: var(--help-blue);
    color: #fff;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.help-search button:hover {
    background: var(--help-blue-dark);
}

.help-start {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.help-start a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    border: 1px solid #d7dfea;
    border-radius: 10px;
    background: #fff;
    color: var(--help-ink);
    font-size: .9rem;
    text-decoration: none;
}

.help-start a:hover {
    border-color: #b4cef5;
    color: var(--help-blue);
}

.help-start a span:last-child {
    color: var(--help-blue);
}

.help-section {
    padding: 20px 0 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading h2,
.help-popular h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.section-heading > p {
    margin: 0;
    color: var(--help-muted);
    font-size: .9rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    min-height: 205px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--help-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(12, 26, 40, .04);
    color: var(--help-ink);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}

.category-card:hover {
    border-color: #b4cef5;
    box-shadow: 0 4px 16px rgba(12, 26, 40, .07);
    color: var(--help-ink);
}

.category-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--help-blue-light);
    color: var(--help-blue);
    font-size: .8rem;
    font-weight: 500;
}

.category-card h3 {
    margin: 1rem 0 .25rem;
    font-size: 1.07rem;
    font-weight: 500;
    line-height: 1.35;
}

.category-card p {
    margin: .1rem 0 1rem;
    color: var(--help-muted);
    font-size: .9rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    color: var(--help-blue);
    font-size: .82rem;
    font-weight: 500;
}

.help-popular {
    padding-bottom: 4rem;
}

.help-popular .help-section {
    padding-top: 20px;
}

.help-popular h2 {
    margin-bottom: 1.5rem;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.popular-link {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--help-border);
    border-radius: 12px;
    color: var(--help-ink);
    font-weight: 500;
    text-decoration: none;
}

.popular-link:hover {
    border-color: #b4cef5;
    color: var(--help-blue);
}

.popular-link span:last-child {
    color: var(--help-blue);
}

.help-page {
    min-height: 60vh;
    padding: 2rem 0 5rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.5rem;
    color: var(--help-muted);
    font-size: .85rem;
}

.breadcrumbs a {
    text-decoration: none;
}

.page-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.article-list {
    max-width: 800px;
    margin-top: 2rem;
}

.article-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem .3rem;
    border-bottom: 1px solid var(--help-border);
    color: var(--help-ink);
    text-decoration: none;
}

.article-card:hover {
    color: var(--help-blue);
}

.article-card h2 {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.article-card p {
    margin: 0 0 .3rem;
    color: var(--help-muted);
    font-size: .94rem;
}

.article-audience,
.results-count {
    color: var(--help-muted);
    font-size: .9rem;
}

.results-count {
    margin-top: 2rem;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 20px;
}

.article-body {
    width: 100%;
}

.article-body section {
    margin-top: 2.5rem;
}

.article-body h2 {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.3;
}

.article-body p,
.article-body li {
    line-height: 1.6;
}

.article-body li {
    margin: .5rem 0;
    padding-left: .25rem;
}

.article-aside {
    padding: 24px;
}

.article-aside-title {
    margin: 0 0 12px;
    font-size: .95rem;
    font-weight: 500;
}

.article-aside .help-search {
    max-width: none;
    box-shadow: none;
}

.article-aside .help-search input {
    padding: .65rem .5rem;
}

.article-aside .help-search button {
    padding: .65rem .8rem;
}

.article-related {
    margin-top: 26px;
}

.article-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-related-list li + li {
    border-top: 1px solid var(--help-border);
}

.article-related-list a {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    color: var(--help-ink);
    font-size: .9rem;
    line-height: 1.5;
    text-decoration: none;
}

.article-related-list a:hover {
    color: var(--help-blue);
}

.article-related-list a span:first-child {
    overflow-wrap: anywhere;
}

.article-related-list a span:last-child {
    flex-shrink: 0;
    color: var(--help-blue);
}

.article-back-link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--help-border);
    font-size: .9rem;
    text-decoration: none;
}

.article-back-link:hover {
    text-decoration: underline;
}

.help-footer {
    border-top: 1px solid var(--help-border);
    background: #fff;
}

.help-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding: 2.5rem 0;
}

.help-footer-inner strong {
    font-weight: 500;
}

.help-footer p {
    max-width: 680px;
    margin: .5rem 0;
    color: var(--help-muted);
    font-size: .9rem;
}

.help-footer nav {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .9rem;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

}

@media (max-width: 540px) {
    .help-header-inner,
    .help-container,
    .help-footer-inner {
        width: calc(100% - 32px);
    }

    .help-header nav {
        gap: .7rem;
    }

    .help-header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .help-header nav a {
        font-size: .8rem;
    }

    .help-brand {
        font-size: .9rem;
    }

    .help-hero {
        padding: 20px 0 0;
    }

    .help-surface,
    .help-hero .help-surface,
    .article-aside {
        padding: 20px;
    }

    .help-start a {
        width: 100%;
    }

    .category-grid,
    .popular-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .help-footer-inner {
        display: block;
    }

    .section-heading > p {
        margin-top: .7rem;
    }

    .help-footer nav {
        margin-top: 1.5rem;
    }

    .help-search button {
        padding: .7rem 1rem;
    }
}
