:root {
    --bg:      #111;
    --panel:   #181818;
    --border:  #2a2a2a;
    --text:    #d8d8d8;
    --accent:  #f0c040;
    --link:    #60aaff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body.help-page {
    font-family: system-ui, sans-serif; font-size: 15px; line-height: 1.7;
    color: var(--text); background: var(--bg);
}

.help-topbar {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    padding: 16px 32px; background: var(--panel); border-bottom: 1px solid var(--border);
}
.help-topbar__logo { font-weight: 700; color: var(--accent); text-decoration: none; letter-spacing: .05em; }
.help-topbar__nav { display: flex; gap: 4px; flex-wrap: wrap; }
.help-topbar__nav a {
    color: var(--text); text-decoration: none; font-size: .9em; padding: 6px 12px;
    border-radius: 4px; border-bottom: 2px solid transparent;
}
.help-topbar__nav a:hover  { color: #fff; background: #222; }
.help-topbar__nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.help-breadcrumb { padding: 12px 32px; font-size: .85em; color: #999; }
.help-breadcrumb a { color: var(--link); text-decoration: none; }
.help-breadcrumb a:hover { text-decoration: underline; }
.help-breadcrumb__sep { margin: 0 8px; color: #555; }

.help-home { max-width: 860px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.help-home__title { font-size: 1.8em; color: var(--accent); margin-bottom: 24px; }
.help-home__search { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; position: relative; }
.help-home__search input {
    flex: 1; max-width: 420px; padding: 10px 14px; border-radius: 4px;
    border: 1px solid var(--border); background: #1a1a1a; color: var(--text); font-size: 1em;
}
.help-home__search button {
    padding: 10px 18px; border-radius: 4px; border: none; background: var(--accent);
    color: #111; font-weight: 600; cursor: pointer;
}
.help-home__search-results {
    position: absolute; top: 100%; left: 0; right: 0; margin-top: 8px; text-align: left;
    background: var(--panel); border: 1px solid var(--border); border-radius: 4px; max-height: 320px;
    overflow-y: auto; z-index: 10;
}
.help-home__search-results a { display: block; padding: 10px 14px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.help-home__search-results a:hover { background: #222; }
.help-home__boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.help-home__box {
    display: block; padding: 20px; border-radius: 6px; background: var(--panel);
    border: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.help-home__box:hover { border-color: var(--accent); }
.help-home__box-label { display: block; font-size: 1.15em; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.help-home__box-count { display: block; font-size: .85em; color: #999; }

.help-category { max-width: 860px; margin: 0 auto; padding: 24px 24px 48px; }
.help-category h1 { font-size: 1.6em; color: var(--accent); margin-bottom: 20px; }
.help-category__list { list-style: none; }
.help-category__list li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.help-category__list a { color: var(--link); text-decoration: none; font-size: 1.1em; }
.help-category__list a:hover { text-decoration: underline; }
.help-category__list p { margin-top: 4px; color: #999; font-size: .9em; }

.help-article { max-width: 860px; margin: 0 auto; padding: 24px 24px 48px; }
.help-article h1 { font-size: 1.8em; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: .4em; margin-bottom: 1em; }
.help-article h2 { font-size: 1.25em; color: #d4a830; margin-top: 1.8em; margin-bottom: .5em; }
.help-article h3 { font-size: 1em; color: #aaa; margin-top: 1.2em; }
.help-article p  { margin-bottom: .9em; }
.help-article a  { color: var(--link); }
.help-article ul, .help-article ol { padding-left: 1.4em; margin-bottom: .9em; }
.help-article li { margin-bottom: .25em; }
.help-article table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .9em; }
.help-article th, .help-article td { border: 1px solid var(--border); padding: 6px 10px; }
.help-article th { background: #1e1e1e; color: #ccc; text-align: left; }
.help-article code { background: #1e1e1e; padding: 2px 6px; border-radius: 3px; font-size: .88em; }
.help-article pre { background: #1a1a1a; border: 1px solid var(--border); padding: 14px; border-radius: 5px; overflow-x: auto; margin: 1em 0; }
.help-article pre code { background: none; padding: 0; }
.help-article blockquote { border-left: 3px solid #444; padding-left: 14px; color: #999; margin: 1em 0; }

.help-article p:has(> a > img),
.help-article p:has(> img) {
    display: inline-block; vertical-align: top; text-align: center;
    margin: 0 12px 16px 0; color: #999; font-size: .85em;
}
.help-article p:has(> a > img) img,
.help-article p:has(> img) img {
    display: block; width: 220px; max-width: 100%; height: auto; max-height: none;
    border-radius: 4px; border: 1px solid var(--border); margin-bottom: 6px;
}

@media (max-width: 680px) {
    .help-topbar { padding: 12px 16px; }
    .help-home__boxes { grid-template-columns: 1fr; }
    .help-category, .help-article { padding: 16px 16px 32px; }
}
