/* The Help Center (/help): a home page with search, tasks and topic groups,
   one page per topic, search results, and every topic A to Z. Colours, type,
   spacing and radii come from the Wyldcards Jungle design system; the page
   wiring is in help-center.js. */

.help-center {
    --help-accent: var(--jungle-700);          /* jungle-700 */
    --help-accent-hover: var(--jungle-800);    /* jungle-800 */
    --help-on-accent: #ffffff;
    --help-tint: var(--jungle-50);            /* accent-tint */
    --help-select: var(--jungle-100);          /* jungle-100 */
    --help-wash: #eef6f2;
    --help-ink: #0c1f1a;             /* landing-ink: headlines */
    --help-fg: #0f1420;
    --help-muted: #56606e;
    --help-bg: var(--slate-50);
    --help-surface: #ffffff;
    --help-border: var(--slate-300);
    --help-script-bg: #10231d;
    --help-script-fg: #d5ebe1;
    --help-script-key: #8fdcbc;
    --help-shadow: 0 14px 32px -20px rgba(19, 92, 73, 0.45);
    --help-display: Nunito, "Nunito Fallback", "Avenir Next", "Segoe UI", sans-serif;
    --help-mono: var(--wc-font-mono);
    --help-radius-sm: 0.4rem;
    --help-radius-md: 0.65rem;
    --help-radius-lg: 0.9rem;

    display: block;
    max-width: none;
    margin: 0;
    padding: 0 0 var(--wc-space-7);
    color: var(--help-fg);
    background: var(--help-bg);
}

:root.-dark-theme .help-center {
    --help-accent: var(--jungle-300);
    --help-accent-hover: var(--jungle-200);
    --help-on-accent: #0f1420;
    --help-tint: #123a30;
    --help-select: #123a30;
    --help-wash: #08171a;
    --help-ink: #eef7f2;
    --help-fg: #e9eef4;
    --help-muted: #a3aebb;
    --help-bg: #0f1420;
    --help-surface: #171d28;
    --help-border: #3a4453;
    --help-shadow: 0 14px 32px -20px rgba(111, 202, 169, 0.35);
}

@media (prefers-color-scheme: dark) {
    :root:not(.-no-dark-theme) .help-center {
        --help-accent: var(--jungle-300);
        --help-accent-hover: var(--jungle-200);
        --help-on-accent: #0f1420;
        --help-tint: #123a30;
        --help-select: #123a30;
        --help-wash: #08171a;
        --help-ink: #eef7f2;
        --help-fg: #e9eef4;
        --help-muted: #a3aebb;
        --help-bg: #0f1420;
        --help-surface: #171d28;
        --help-border: #3a4453;
        --help-shadow: 0 14px 32px -20px rgba(111, 202, 169, 0.35);
    }
}

/* High contrast (design-system.css): Help keeps its own palette, so it is
   strengthened from Help's own text and page colours. */
:root[data-contrast="more"] .help-center.help-center {
    --help-muted: color-mix(in srgb, var(--help-fg) 82%, var(--help-bg));
    --help-border: color-mix(in srgb, var(--help-fg) 58%, var(--help-bg));
}
@media (prefers-contrast: more) {
    :root:not([data-contrast="normal"]) .help-center.help-center {
        --help-muted: color-mix(in srgb, var(--help-fg) 82%, var(--help-bg));
        --help-border: color-mix(in srgb, var(--help-fg) 58%, var(--help-bg));
    }
}

.help-center [hidden] {
    display: none !important;
}

.help-center a {
    color: var(--help-accent);
    text-decoration: none;
}

.help-center a:hover {
    color: var(--help-accent-hover);
    text-decoration: underline;
}

/* Help's links shaped like controls (task and "more" cards, search results,
   sidebar entries, the Popular chips, the pager) do not underline on hover;
   their border or background already answers. Links in text keep it. */
.help-center :is(a.help-task, a.help-more-card, a.help-result, a.help-sidebar-link, a.help-sidebar-category, a.help-sidebar-back, .help-popular a, a.help-pager-prev, a.help-pager-next):is(:hover, :focus-visible) {
    text-decoration: none;
}

.help-center a:focus-visible,
.help-center button:focus-visible,
.help-center input:focus-visible {
    outline: var(--wc-focus-width) solid var(--help-accent);
    outline-offset: var(--wc-focus-offset);
}

.help-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.help-eyebrow {
    font-size: var(--wc-text-2xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--help-muted);
}

.help-section-title {
    margin: 0;
    font-family: var(--help-display);
    font-weight: 800;
    font-size: var(--wc-text-2xl);
    letter-spacing: -0.02em;
    color: var(--help-ink);
}

.help-center mark {
    display: inline;
    margin: 0;
    padding: 0;
    border-radius: var(--wc-radius-xs);
    background: var(--help-select);
    color: var(--help-ink);
}

/* ---- Hero and search ---- */

.help-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wc-space-5);
    padding: calc(4.5rem * var(--wc-density)) var(--wc-space-4) calc(3.5rem * var(--wc-density));
    text-align: center;
    background: linear-gradient(180deg, var(--help-wash) 0%, var(--help-bg) 100%);
}

.help-hero h1 {
    margin: 0;
    font-family: var(--help-display);
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--help-ink);
}

.help-hero > p {
    margin: 0;
    font-size: var(--wc-text-base);
    color: var(--help-muted);
}

.help-search {
    box-sizing: border-box;
    width: min(720px, 100%);
    height: 60px;
    margin: var(--wc-space-2) 0 0;
    padding: 0 12px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--wc-hud-glass-bg);
    backdrop-filter: var(--wc-hud-glass-blur);
    -webkit-backdrop-filter: var(--wc-hud-glass-blur);
    border: 1px solid var(--wc-hud-glass-border);
    border-radius: var(--help-radius-lg);
    box-shadow: var(--wc-hud-glow);
    transition: border-color var(--wc-duration) ease, box-shadow var(--wc-duration) ease;
}

.help-search-icon {
    flex-shrink: 0;
    color: var(--help-muted);
}

.help-center .help-search-input {
    flex-grow: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: var(--wc-text-lg);
    color: var(--help-fg);
}

/* The field is borderless inside the rounded bar; the bar shows focus
   instead, so there is no second box inside it. The app-wide focus ring is
   !important, hence these. */
.help-center .help-search .help-search-input,
.help-center .help-search .help-search-input:focus,
.help-center .help-search .help-search-input:focus-visible {
    outline: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.help-center .help-search:focus-within {
    border-color: var(--help-accent);
    box-shadow: var(--wc-shadow-selection);
}

.help-search-input::-webkit-search-cancel-button {
    display: none;
}

.help-center .help-search-clear {
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--wc-radius-round);
    background: transparent;
    color: var(--help-muted);
    cursor: pointer;
}

.help-center .help-search-clear:hover {
    background: var(--help-tint);
    color: var(--help-accent);
}

.help-center .help-search-key {
    flex-shrink: 0;
    padding: 4px 8px;
    font-family: var(--help-mono);
    font-size: var(--wc-text-xs);
    font-weight: 400;
    color: var(--help-muted);
    background: var(--help-bg);
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius-sm);
    box-shadow: none;
}

.help-search-input:not(:placeholder-shown) ~ .help-search-key {
    display: none;
}

.help-popular {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.help-popular > span {
    font-size: var(--wc-text-sm);
    color: var(--help-muted);
}

.help-center .help-popular a {
    padding: 6px 14px;
    font-size: var(--wc-text-sm);
    background: var(--wc-hud-glass-bg);
    backdrop-filter: var(--wc-hud-glass-blur);
    -webkit-backdrop-filter: var(--wc-hud-glass-blur);
    border: 1px solid var(--wc-hud-glass-border);
    border-radius: var(--wc-radius-pill);
    box-shadow: var(--wc-shadow-sm);
    transition: border-color var(--wc-duration) ease, box-shadow var(--wc-duration) ease, transform var(--wc-duration) ease;
}

.help-center .help-popular a:hover {
    border-color: var(--help-accent);
    box-shadow: var(--wc-shadow-sm);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ---- Home ---- */

.help-home,
.help-results,
.help-all {
    box-sizing: border-box;
    width: min(1152px, 100%);
    margin: 0 auto;
    padding: var(--wc-space-4) var(--wc-space-5) 0;
    display: flex;
    flex-direction: column;
    gap: var(--wc-space-7);
}

.help-home > section,
.help-group,
.help-article,
.help-aside {
    margin: 0;
}

.help-home > section {
    display: flex;
    flex-direction: column;
    gap: var(--wc-space-4);
}

.help-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--wc-space-2) var(--wc-space-4);
}

.help-section-head a {
    font-size: var(--wc-text-sm);
    font-weight: 600;
}

.help-tasks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--wc-space-4);
}

.help-center a.help-task {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--wc-hud-glass-bg);
    backdrop-filter: var(--wc-hud-glass-blur);
    -webkit-backdrop-filter: var(--wc-hud-glass-blur);
    border: 1px solid var(--wc-hud-glass-border);
    border-radius: var(--help-radius-lg);
    color: var(--help-fg);
    text-decoration: none;
    transition: border-color var(--wc-duration) ease, box-shadow var(--wc-duration) ease, transform var(--wc-duration) ease;
}

.help-center a.help-task:hover {
    border-color: var(--help-accent);
    box-shadow: var(--wc-shadow-card);
    color: var(--help-fg);
    transform: translateY(-2px);
}

.help-task-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--help-radius-md);
    background: var(--help-tint);
    color: var(--help-accent);
}

.help-task strong {
    font-size: var(--wc-text-base);
}

.help-task > span:last-child {
    font-size: var(--wc-text-sm);
    line-height: 1.5;
    color: var(--help-muted);
}

.help-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--wc-space-4);
}

.help-group {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--wc-hud-glass-bg);
    backdrop-filter: var(--wc-hud-glass-blur);
    -webkit-backdrop-filter: var(--wc-hud-glass-blur);
    border: 1px solid var(--wc-hud-glass-border);
    border-radius: var(--help-radius-lg);
    box-shadow: var(--wc-hud-glow);
}

.help-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--help-accent);
}

.help-group-head h3 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: var(--wc-text-lg);
    font-weight: 700;
    color: var(--help-fg);
}

.help-group-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: var(--wc-text-base);
}

.help-group-list li {
    margin: 0;
}

.help-more {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.help-center a.help-more-card {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--wc-hud-glass-bg);
    backdrop-filter: var(--wc-hud-glass-blur);
    -webkit-backdrop-filter: var(--wc-hud-glass-blur);
    border: 1px solid var(--wc-hud-glass-border);
    border-radius: var(--help-radius-lg);
    color: var(--help-accent);
    text-decoration: none;
    transition: border-color var(--wc-duration) ease, box-shadow var(--wc-duration) ease, transform var(--wc-duration) ease;
}

.help-center a.help-more-card:hover {
    border-color: var(--help-accent);
    box-shadow: var(--wc-shadow-sm);
    transform: translateY(-1px);
}

.help-more-card svg {
    flex-shrink: 0;
}

.help-more-card > span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-more-card strong {
    font-size: var(--wc-text-base);
    color: var(--help-fg);
}

.help-more-card > span > span {
    font-size: var(--wc-text-sm);
    line-height: 1.45;
    color: var(--help-muted);
}

.help-center a.help-more-card--script {
    background: var(--help-script-bg);
    border-color: var(--help-script-bg);
    color: var(--help-script-key);
}

.help-more-card--script strong,
.help-more-card--script > span > span {
    color: var(--help-script-fg);
}

.help-more-card kbd,
.help-more-card code {
    padding: 0 4px;
    font-family: var(--help-mono);
    font-size: var(--wc-text-caption);
    font-weight: 400;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: inherit;
}

.help-more-card--script kbd {
    color: var(--help-script-key);
}

/* ---- Search results ---- */

.help-results {
    gap: var(--wc-space-4);
    max-width: 820px;
}

.help-results-summary,
.help-results-empty {
    margin: 0;
    font-size: var(--wc-text-sm);
    color: var(--help-muted);
}

.help-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.help-center .help-chip {
    min-height: 36px;
    margin: 0;
    padding: 0 14px;
    font: inherit;
    font-size: var(--wc-text-sm);
    color: var(--help-fg);
    background: var(--wc-hud-glass-bg);
    backdrop-filter: var(--wc-hud-glass-blur);
    -webkit-backdrop-filter: var(--wc-hud-glass-blur);
    border: 1px solid var(--wc-hud-glass-border);
    border-radius: var(--wc-radius-pill);
    cursor: pointer;
    transition: border-color var(--wc-duration) ease, box-shadow var(--wc-duration) ease;
}

.help-center .help-chip[aria-pressed="true"] {
    font-weight: 600;
    color: var(--help-on-accent);
    background: var(--help-accent);
    border-color: var(--help-accent);
    box-shadow: var(--wc-shadow-sm);
}

.help-result-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-result-list li {
    margin: 0;
}

.help-center a.help-result {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--wc-hud-glass-bg);
    backdrop-filter: var(--wc-hud-glass-blur);
    -webkit-backdrop-filter: var(--wc-hud-glass-blur);
    border: 1px solid var(--wc-hud-glass-border);
    border-radius: var(--help-radius-lg);
    color: var(--help-fg);
    text-decoration: none;
    transition: border-color var(--wc-duration) ease, box-shadow var(--wc-duration) ease, transform var(--wc-duration) ease;
}

.help-center a.help-result:hover,
.help-center a.help-result:focus-visible {
    border-color: var(--help-accent);
    box-shadow: var(--wc-shadow-sm);
    color: var(--help-fg);
    transform: translateY(-1px);
}

.help-result-title {
    font-size: var(--wc-text-base);
}

.help-result-excerpt {
    font-size: var(--wc-text-sm);
    line-height: 1.45;
    color: var(--help-muted);
}

.help-callout {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--help-tint);
    border-radius: var(--help-radius-md);
    color: var(--help-accent);
    font-size: var(--wc-text-sm);
}

.help-callout > span {
    color: var(--help-fg);
}

.help-center .help-link-button {
    margin: 0;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--help-accent);
    background: none;
    border: 0;
    cursor: pointer;
}

.help-center .help-link-button:hover {
    color: var(--help-accent-hover);
    text-decoration: underline;
}

/* ---- Every topic, A to Z ---- */

.help-all {
    gap: var(--wc-space-4);
}

.help-all-list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 3 260px;
    column-gap: var(--wc-space-6);
}

.help-all-list li {
    margin: 0 0 calc(0.35rem * var(--wc-density));
    break-inside: avoid;
}

.help-center a.help-all-link {
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.help-all-link strong {
    font-weight: 600;
}

/* ---- One topic ---- */

.help-center .help-breadcrumb {
    margin: 0;
    font-size: var(--wc-text-sm);
    color: var(--help-muted);
}

.help-center .help-breadcrumb ol {
    margin: 0;
    padding: 0;
}

.help-article-view {
    display: grid;
    grid-template-columns: 280px minmax(0, 720px) 240px;
    gap: 48px;
    min-height: calc(100vh - 4rem);
}

.help-sidebar {
    box-sizing: border-box;
    padding: 28px 20px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--help-surface);
    border-right: 1px solid var(--help-border);
}

.help-center a.help-sidebar-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--wc-text-sm);
    font-weight: 600;
}

.help-search--compact {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 10px;
    gap: 8px;
    border-radius: var(--help-radius-sm);
    background: var(--help-bg);
    box-shadow: none;
}

.help-search--compact .help-search-input {
    font-size: var(--wc-text-sm);
}

#help-sidebar-groups {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.help-sidebar-open {
    margin: 4px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.help-sidebar-category-title {
    padding: 0 10px;
    font-size: var(--wc-text-base);
    font-weight: 700;
    color: var(--help-ink);
}

.help-sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.help-sidebar-group .help-eyebrow {
    padding: 0 10px 4px;
}

.help-center a.help-sidebar-link,
.help-center a.help-sidebar-category {
    padding: 7px 10px;
    font-size: var(--wc-text-sm);
    line-height: 1.3;
    color: var(--help-fg);
    border-radius: var(--help-radius-sm);
}

.help-center a.help-sidebar-category {
    color: var(--help-muted);
}

.help-center a.help-sidebar-link:hover,
.help-center a.help-sidebar-category:hover {
    background: var(--help-bg);
    color: var(--help-fg);
    text-decoration: none;
}

.help-center a.help-sidebar-link[aria-current="page"] {
    font-weight: 600;
    color: var(--help-ink);
    background: var(--help-tint);
    box-shadow: inset 3px 0 0 var(--help-accent);
}

.help-article {
    padding: 28px 0 64px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* The topic card itself, shown as a page rather than a tile. */
.help-article .help-card {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
    font-size: var(--wc-text-base);
    line-height: var(--wc-leading-reading);
    color: var(--help-fg);
}

.help-article .help-card:hover {
    transform: none;
    box-shadow: none;
}

.help-article .help-card,
.help-article .help-card:focus,
.help-article :target {
    outline: none;
}

.help-article .help-card > h2:first-child,
.help-article .help-card > h3:first-child {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    font-family: var(--help-display);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--help-ink);
}

.help-article .help-card > h2:first-child:focus,
.help-article .help-card > h3:first-child:focus,
.help-article .help-card > h2:first-child:focus-visible,
.help-article .help-card > h3:first-child:focus-visible {
    outline: none;
}

.help-article-lede {
    margin: 0 0 var(--wc-space-5) !important;
    font-size: var(--wc-text-lg);
    line-height: 1.55;
    color: var(--help-muted);
}

.help-article .help-card p,
.help-article .help-card ul,
.help-article .help-card ol {
    max-inline-size: var(--wc-measure);
    margin: 0 0 var(--wc-space-4);
    text-wrap: pretty;
}
/* Titles and ledes do not end on one short word. */
.help-article .help-card > :is(h2, h3):first-child,
.help-article-lede {
    max-inline-size: var(--wc-measure);
    text-wrap: balance;
}

.help-article .help-card h4 {
    margin: var(--wc-space-6) 0 var(--wc-space-3);
    font-size: var(--wc-text-2xl);
    font-weight: 700;
    color: var(--help-ink);
    scroll-margin-top: 5rem;
}

.help-article .help-card [id] {
    scroll-margin-top: 5rem;
}

.help-article .help-card code {
    font-family: var(--help-mono);
    font-size: 0.88em;
}

.help-article .help-card pre {
    padding: var(--wc-space-4);
    overflow-x: auto;
    border-radius: var(--help-radius-md);
    background: var(--help-script-bg);
    color: var(--help-script-fg);
}

.help-article .help-card kbd {
    font-family: var(--help-mono);
    font-weight: 400;
    color: var(--help-fg);
    background: var(--help-surface);
    border: 1px solid var(--help-border);
    border-bottom-width: 2px;
    border-radius: var(--help-radius-sm);
    box-shadow: none;
}

.help-feedback {
    margin-top: var(--wc-space-5);
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    background: var(--help-surface);
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius-lg);
}

.help-feedback-question {
    font-size: var(--wc-text-base);
    font-weight: 600;
}

.help-feedback-actions {
    display: flex;
    gap: 8px;
}

.help-feedback-thanks {
    flex-basis: 100%;
    margin: 0;
    font-size: var(--wc-text-sm);
    color: var(--help-muted);
}

.help-feedback-thanks:empty {
    display: none;
}

.help-center .help-button {
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    font: inherit;
    font-size: var(--wc-text-base);
    font-weight: 600;
    color: var(--help-accent);
    background: var(--help-surface);
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius-md);
    cursor: pointer;
}

.help-center .help-button--primary {
    color: var(--help-on-accent);
    background: var(--help-accent);
    border-color: var(--help-accent);
}

.help-center .help-button--primary:hover {
    background: var(--help-accent-hover);
    border-color: var(--help-accent-hover);
}

.help-center .help-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.help-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--wc-space-4);
}

.help-center a.help-pager-link {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--help-surface);
    border: 1px solid var(--help-border);
    border-radius: var(--help-radius-lg);
    text-decoration: none;
}

.help-center a.help-pager-link:hover {
    border-color: var(--help-accent);
}

.help-pager-next {
    grid-column: 2;
    align-items: flex-end;
    text-align: right;
}

.help-pager-label {
    font-size: var(--wc-text-sm);
    color: var(--help-muted);
}

.help-pager-link strong {
    font-size: var(--wc-text-base);
}

.help-aside {
    float: none;
    width: auto;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    padding: 104px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.help-toc,
.help-related {
    position: sticky;
    top: 5rem;
}

.help-toc {
    padding-left: 16px;
    border-left: 1px solid var(--help-border);
}

.help-toc,
.help-related,
#help-toc-links,
#help-related-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-related {
    top: auto;
    position: static;
}

.help-center #help-toc-links a {
    font-size: var(--wc-text-sm);
    color: var(--help-muted);
}

.help-center #help-toc-links a:hover {
    color: var(--help-ink);
}

.help-center #help-related-links a {
    font-size: var(--wc-text-sm);
}

/* ---- Narrower screens ---- */

@media (max-width: 1180px) {
    .help-article-view {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 40px;
        padding-right: var(--wc-space-5);
    }

    .help-aside {
        grid-column: 2;
        padding: 0 0 var(--wc-space-6);
    }

    .help-toc {
        display: none;
    }

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

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

@media (max-width: 760px) {
    .help-hero {
        padding: calc(2.5rem * var(--wc-density)) var(--wc-space-4) var(--wc-space-6);
        gap: var(--wc-space-4);
    }

    .help-hero h1 {
        font-size: 2rem;
    }

    .help-search {
        height: 52px;
        padding: 0 8px 0 14px;
    }

    .help-search-key {
        display: none;
    }

    .help-home,
    .help-results,
    .help-all {
        padding: var(--wc-space-2) var(--wc-space-4) 0;
        gap: var(--wc-space-6);
    }

    /* One row of topic filters that scrolls sideways, not four rows of chips. */
    .help-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 calc(-1rem * var(--wc-density));
        padding: 2px var(--wc-space-4);
        scrollbar-width: none;
    }

    .help-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .help-tasks,
    .help-groups,
    .help-more {
        grid-template-columns: minmax(0, 1fr);
    }

    .help-article-view {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    /* On a phone the article comes first; the topic list follows it. */
    .help-sidebar {
        order: 3;
        padding: 20px 16px;
        border-right: 0;
        border-top: 1px solid var(--help-border);
    }

    .help-article {
        order: 1;
        padding: 16px 16px 32px;
    }

    .help-aside {
        order: 2;
        padding: 0 16px 24px;
    }

    .help-article .help-card > h2:first-child,
    .help-article .help-card > h3:first-child {
        font-size: 2rem;
    }

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

    .help-pager-next {
        grid-column: auto;
    }
}
