.header-help-btn {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-inline-start: auto;
    color: #e1b4ee;
    background: #292033;
    border: 1px solid #513b5c;
    border-radius: 12px;
    cursor: pointer;
}

.header-help-btn svg { width: 22px; height: 22px; }
.header-content > .header-help-btn + .header-gallery-btn { margin-inline-start: 0; }

#page-help .help-content {
    width: min(100%, 720px);
    margin-inline: auto;
}

.help-intro {
    padding-block: 10px 20px;
}

.help-intro h3 {
    margin-bottom: 16px;
    color: #f6edf8;
    font: 700 clamp(27px, 7vw, 40px)/1.08 system-ui, sans-serif;
    letter-spacing: -0.035em;
}

.help-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding-inline: 14px 5px;
    background: #201824;
    border: 1px solid #62496e;
    border-radius: 14px;
}

.help-search:focus-within { border-color: #d3a0e5; }
.help-search > svg { flex: 0 0 21px; width: 21px; height: 21px; color: #d3a0e5; }

.help-search input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    border: 0;
    padding: 0;
    outline: 0;
    color: #f6edf8;
    background: none;
    font: inherit;
    font-size: 16px;
    line-height: 1.2;
}

.help-search input:focus-visible { outline: 0; }
.help-search input::placeholder { color: #bba9c1; }
.help-search input::-webkit-search-cancel-button { display: none; }

#help-clear {
    flex: 0 0 40px;
    min-height: 42px;
    color: #e1b4ee;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font: 400 23px/1 system-ui, sans-serif;
    cursor: pointer;
}

.help-topics {
    display: grid;
    gap: 8px;
}

.help-topic {
    min-width: 0;
    border: 1px solid #47364e;
    border-radius: 13px;
    background: #211a27;
}

.help-topic[open] { border-color: #634973; }
.help-topic[open] > summary { border-bottom: 1px solid #47364e; }

.help-topic > summary,
.help-question > summary {
    display: grid;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    list-style: none;
    cursor: pointer;
}

.help-topic > summary::-webkit-details-marker,
.help-question > summary::-webkit-details-marker { display: none; }

.help-topic > summary {
    grid-template-columns: 24px minmax(0, 1fr) 14px;
    padding: 12px 14px;
    font-weight: 650;
    color: #f6edf8;
}

.help-topic > summary svg { width: 22px; height: 22px; color: #d3a0e5; }

.help-topic > summary::after,
.help-question > summary::after {
    content: "";
    justify-self: end;
    width: 8px;
    height: 8px;
    margin-right: 2px;
    border-right: 2px solid #d3a0e5;
    border-bottom: 2px solid #d3a0e5;
    transform: translateY(-2px) rotate(45deg);
}

.help-topic[open] > summary::after,
.help-question[open] > summary::after { transform: translateY(2px) rotate(225deg); }

.help-question { margin-inline: 14px; }
.help-question + .help-question { border-top: 1px solid #3b2e41; }

.help-question > summary {
    grid-template-columns: minmax(0, 1fr) 14px;
    padding-block: 9px;
    color: #eadcee;
    font-size: 14px;
    font-weight: 600;
}

.help-question > p,
.help-empty,
.help-contact p {
    color: #cfc0d3;
    font-size: 14px;
    line-height: 1.5;
}

.help-question > p { padding: 0 16px 13px 0; overflow-wrap: anywhere; }
.help-empty { padding: 14px 0; }

.help-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #47364e;
}

.help-contact p { margin-top: 3px; }

.help-contact button {
    min-height: 42px;
    padding-inline: 13px;
    color: #f5e8fa;
    background: #392749;
    border: 1px solid #6b4c80;
    border-radius: 11px;
    font: inherit;
    cursor: pointer;
}

#page-help [hidden] { display: none; }

.help-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 350px) {
    .header-help-btn { width: 31px; height: 34px; flex-basis: 31px; }
    .header-content .logo-text em { font-size: 24px; }
}

.support-intro-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.support-intro-actions button { flex: 1 1 auto; width: auto; }
