.help-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.help-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #111827;
    border-radius: 0 0 0.5rem 0;
}

.help-skip-link:focus {
    left: 0;
}

.help-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin: 0 0 1.25rem;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.help-breadcrumbs a,
.help-inline-link {
    color: #60a5fa;
    text-underline-offset: 0.2em;
}

.help-hero {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.18), rgba(15, 15, 18, 0.25));
    margin-bottom: 1.5rem;
}

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

.help-hero h1,
.help-article h1 {
    margin: 0 0 0.75rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
}

.help-lede {
    max-width: 760px;
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.help-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

.help-search label {
    grid-column: 1 / -1;
    font-weight: 700;
}

.help-search input {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #52525b;
    border-radius: 0.55rem;
    background: #111116;
    color: var(--text-primary);
    font: inherit;
}

.help-search button,
.help-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border: 1px solid #3b82f6;
    border-radius: 0.55rem;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.help-search input:focus-visible,
.help-search button:focus-visible,
.help-button:focus-visible,
.help-card a:focus-visible,
.help-breadcrumbs a:focus-visible,
.help-article a:focus-visible,
.help-inline-link:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}

.help-section {
    margin: 2rem 0;
}

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

.help-section-heading h2,
.help-section-heading h3,
.help-article h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.help-section-heading p {
    max-width: 620px;
    margin: 0;
    color: var(--text-secondary);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
}

.help-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background: var(--bg-card);
}

.help-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.help-card h3 a {
    color: var(--text-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.help-card h4 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.help-card h4 a {
    color: var(--text-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.help-card p {
    margin: 0;
    color: var(--text-secondary);
}

.help-card-meta,
.help-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: #a1a1aa;
    font-size: 0.86rem;
}

.help-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.help-badge-live { color: #6ee7b7; }
.help-badge-restricted { color: #fcd34d; }
.help-badge-future { color: #c4b5fd; }

.help-status-legend,
.help-callout,
.help-empty,
.help-support {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: var(--bg-secondary);
}

.help-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.help-empty h2,
.help-support h2 {
    margin-top: 0;
}

.help-article-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.help-article-body {
    max-width: 800px;
}

.help-article-section {
    padding: 1.7rem 0;
    border-bottom: 1px solid var(--border-color);
}

.help-article-section p,
.help-article-section li {
    color: var(--text-secondary);
}

.help-article-section ol,
.help-article-section ul {
    padding-left: 1.4rem;
}

.help-article-section li + li {
    margin-top: 0.65rem;
}

.help-link-list {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.2rem;
}

.help-figure {
    margin: 1.5rem 0;
}

.help-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: #fff;
}

.help-figure figcaption {
    margin-top: 0.55rem;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.help-full-size-link {
    display: inline-block;
    margin-top: 0.65rem;
    color: #60a5fa;
    font-weight: 700;
    text-underline-offset: 0.2em;
}

.help-support {
    margin-top: 2rem;
}

.help-support p {
    color: var(--text-secondary);
}

@media (max-width: 520px) {
    .help-search {
        grid-template-columns: 1fr;
    }

    .help-search label {
        grid-column: auto;
    }

    .help-search button,
    .help-button {
        width: 100%;
    }

    .help-hero {
        padding: 1.1rem;
    }

    .help-status-legend {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    .help-shell *,
    .help-shell *::before,
    .help-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
