/* Help page in tabs (web 3.51.0): get started, commands, progression, badges, website, management, FAQ, links */
.help-hero { margin-bottom: 6px; }
.help-lead { margin: 4px 0 0; color: var(--ar-muted, #a3a6b0); font-size: 0.98rem; }
.help-tabs { margin: 18px 0 4px; }
/* Eight tabs: tighter than on the profiles so they fit on one line on a computer */
.help-tabs .graphs-tab-btn { padding-left: 12px; padding-right: 12px; }
@media (min-width: 1100px) { .help-tabs .graphs-tab-btn { flex: 1 1 auto; justify-content: center; } }
.help-pane { display: block; }
.help-pane[hidden] { display: none !important; }
.help-card { padding: 22px 24px !important; margin: 16px 0 0 !important; }
.help-card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.1rem; }
.help-card-title > svg { flex: none; color: var(--ar-accent, #717cf8); }
.help-desc { margin: -6px 0 16px; color: var(--ar-muted, #a3a6b0); font-size: 0.92rem; }
.help-note { margin: 14px 0 0; color: var(--ar-dim, #72767d); font-size: 0.84rem; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.help-grid > .help-card { margin: 0 !important; }
.help-card .help-grid { margin-top: 0; }

/* "?" with the details on hover */
.help-info {
    display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none;
    background: rgba(113, 124, 248, 0.14); color: #a5acff; cursor: help;
    font: 700 0.74rem/1 var(--ar-display, sans-serif); letter-spacing: 0; text-transform: none;
    clip-path: var(--slant, none);
}
.help-info:hover, .help-info:focus-visible { background: var(--ar-accent-soft, rgba(113, 124, 248, 0.16)); color: #fff; outline: none; }

.help-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 16px;
    background: var(--ar-accent, #717cf8); color: #fff; font-weight: 600; font-size: 0.9rem; text-decoration: none;
    clip-path: var(--slant, none);
}
.help-btn:hover { background: #5f6af0; color: #fff; }

/* Get started */
.help-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.help-steps li { display: flex; gap: 12px; padding: 14px 16px; background: var(--ar-panel-2, #292c33); clip-path: var(--cut-s); }
.help-steps h3 { margin: 2px 0 4px; color: var(--ar-fg, #f2f3f5); font: 700 1rem var(--ar-display, inherit); }
.help-steps p { margin: 0; color: var(--ar-muted, #a3a6b0); font-size: 0.88rem; line-height: 1.45; }
.help-step-num {
    flex: none; display: grid; place-items: center; width: 30px; height: 30px;
    background: var(--ar-accent-soft, rgba(113, 124, 248, 0.16)); color: var(--ar-accent-hi, #a5acff);
    font: 700 1rem var(--ar-display, inherit); clip-path: var(--slant, none);
}
.help-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.help-list li { position: relative; padding-left: 18px; color: #d0d2d8; font-size: 0.9rem; line-height: 1.45; }
.help-list li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 7px; height: 7px; background: #3fd1a0; clip-path: var(--slant, none); }
.help-list.is-off li::before { background: var(--ar-dim, #72767d); }
.help-list b { color: var(--ar-fg, #f2f3f5); }
.help-perms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.help-perms li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--ar-panel-2, #292c33); box-shadow: inset 3px 0 0 var(--ar-accent, #717cf8); }
.help-perms b { color: var(--ar-fg, #f2f3f5); font-size: 0.9rem; }
.help-perms span { color: var(--ar-muted, #a3a6b0); font-size: 0.82rem; }

/* Commands */
.help-cmds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.help-cmd { position: relative; padding: 12px 14px; background: var(--ar-panel-2, #292c33); clip-path: var(--cut-s); }
.help-cmd-name { display: block; padding: 0; background: none; color: var(--ar-accent-hi, #a5acff); font: 700 1rem var(--ar-display, monospace); }
.help-cmd-name span { color: var(--ar-dim, #72767d); font-weight: 500; font-size: 0.84rem; }
.help-cmd p { margin: 6px 0 0; color: #d0d2d8; font-size: 0.88rem; line-height: 1.45; }
.help-chip { position: absolute; top: 12px; right: 12px; padding: 2px 8px; background: rgba(255, 255, 255, 0.06); color: var(--ar-muted, #a3a6b0); font-size: 0.7rem; clip-path: var(--slant, none); }

/* Colors of the tiles */
.is-cyan { --c: #38bdf8; }
.is-blurple { --c: #717cf8; }
.is-pink { --c: #f472b6; }
.is-gold { --c: #f5c542; }
.is-purple { --c: #b07cff; }
.is-green { --c: #3fd1a0; }

/* Progression */
.help-xp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-xp-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--ar-panel-2, #292c33); box-shadow: inset 0 3px 0 var(--c); }
.help-xp-item > svg { color: var(--c); }
.help-xp-item b { color: var(--ar-fg, #f2f3f5); font: 700 1.25rem var(--ar-display, inherit); }
.help-xp-item span { display: flex; align-items: center; gap: 6px; color: var(--ar-muted, #a3a6b0); font-size: 0.88rem; }
.help-xp-item a { color: var(--c); font-size: 0.84rem; text-decoration: none; }
.help-xp-item a:hover { text-decoration: underline; }
.help-duo { padding: 14px 16px; background: var(--ar-panel-2, #292c33); box-shadow: inset 3px 0 0 var(--c); }
.help-duo h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--c); font: 700 1rem var(--ar-display, inherit); text-transform: uppercase; letter-spacing: 0.04em; }
.help-duo p { margin: 0; color: #d0d2d8; font-size: 0.9rem; line-height: 1.5; }
.help-duo p::first-letter { text-transform: uppercase; }

/* Website and management: one tile per feature */
.help-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.help-tile { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--ar-panel, #212329); border: 1px solid var(--ar-line, #2e3138); box-shadow: inset 0 3px 0 var(--c); clip-path: var(--cut-s); }
.help-tile-head { display: flex; align-items: center; gap: 10px; }
.help-tile-head h3 { flex: 1; margin: 0; color: var(--ar-fg, #f2f3f5); font: 700 1rem var(--ar-display, inherit); }
.help-tile-icon { display: inline-flex; padding: 6px; background: rgba(255, 255, 255, 0.05); color: var(--c); clip-path: var(--cut-s); }
.help-tile p { flex: 1; margin: 0; color: var(--ar-muted, #a3a6b0); font-size: 0.88rem; line-height: 1.5; }
.help-tile-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--c); font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.help-tile-link:hover { color: #fff; }
.help-beta { padding: 3px 8px; background: rgba(245, 158, 11, 0.14); color: #f59e0b; font-size: 0.68rem; letter-spacing: 0.06em; clip-path: var(--slant, none); }
.help-path { margin: 0; padding-left: 20px; color: #d0d2d8; font-size: 0.9rem; line-height: 1.7; }
.help-path li::marker { color: var(--ar-accent-hi, #a5acff); font-weight: 700; }

/* FAQ */
.help-faq { display: flex; flex-direction: column; gap: 8px; }
.help-faq-item { background: var(--ar-panel-2, #292c33); clip-path: var(--cut-s); }
.help-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; color: var(--ar-fg, #f2f3f5); font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; }
.help-faq-item summary::-webkit-details-marker { display: none; }
.help-faq-item summary svg { flex: none; color: var(--ar-muted, #a3a6b0); transition: transform 0.15s; }
.help-faq-item[open] summary svg { transform: rotate(180deg); }
.help-faq-item summary:hover { color: var(--ar-accent-hi, #a5acff); }
.help-faq-item p { margin: 0; padding: 0 16px 14px; color: #c3c6ce; font-size: 0.9rem; line-height: 1.55; }

@media (max-width: 900px) {
    .help-steps, .help-xp, .help-grid, .help-cmds { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .help-card { padding: 18px 16px !important; }
}

/* Titles: one tile per step, colored by group */
.help-titles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}
.help-title {
    --group: #a3a6b0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    background: var(--ar-panel-2, #292c33);
    box-shadow: inset 3px 0 0 var(--group);
    clip-path: var(--cut-s);
}
.help-title.group-adept { --group: #4f9dff; }
.help-title.group-master { --group: #b07cff; }
.help-title.group-legend { --group: #f5b03b; }
.help-title-level {
    color: var(--group);
    font-family: var(--ar-display, inherit);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.help-title-name {
    color: #f2f3f5;
    font-family: var(--ar-display, inherit);
    font-size: 1.05rem;
    font-weight: 700;
}
.help-title-req {
    color: #a3a6b0;
    font-size: 0.8rem;
}

/* Badge tiers: a row per badge, a column per tier (stacked on phones) */
.help-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.help-badges-head,
.help-badge-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.6fr) repeat(7, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
}
.help-tier-name {
    color: var(--tier);
    font-family: var(--ar-display, inherit);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}
.help-badge-row {
    padding: 8px 10px;
    background: var(--ar-panel-2, #292c33);
    clip-path: var(--cut-s);
}
.help-badge-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.help-badge-name > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.help-badge-name strong {
    color: #f2f3f5;
    font-size: 0.92rem;
}
.help-badge-name small {
    color: #a3a6b0;
    font-size: 0.74rem;
    line-height: 1.25;
}
.help-badge-icon {
    flex-shrink: 0;
    display: inline-flex;
    padding: 6px;
    color: var(--ar-accent, #717cf8);
    background: rgba(113, 124, 248, 0.12);
    clip-path: var(--cut-s);
}
.help-badge-tier {
    color: #e3e5e8;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    padding: 6px 2px;
    box-shadow: inset 0 2px 0 var(--tier);
    background: rgba(255, 255, 255, 0.03);
}
.help-badge-tier em {
    display: none;
}

@media (max-width: 900px) {
    .help-badges-head {
        display: none;
    }
    .help-badge-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .help-badge-name {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }
    .help-badge-tier em {
        display: block;
        color: var(--tier);
        font-style: normal;
        font-size: 0.66rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
}
@media (max-width: 420px) {
    .help-badge-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .help-titles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .help-title {
        padding: 10px 12px;
    }
}
