/*
 * Help Center FAQ redesign based on the supplied concept.
 * Scope: /faq on TEST only. Site header/footer and real FAQ content are retained.
 */
body.page-faq-index .main > .inner-page {
    padding: 0 0 76px;
}
.ke-help {
    --hc-bg: #f5f8f7;
    --hc-paper: #ffffff;
    --hc-ink: #14292a;
    --hc-sub: #4c6664;
    --hc-line: #d8e4e1;
    --hc-green: #006853;
    --hc-mint: #90f3d1;
    --hc-soft: #ddf5ed;
    --hc-selected: #d9f2e9;
    --hc-selected-ink: #085646;
    --hc-support: #e3f2ed;
    --hc-shadow: 0 4px 14px rgba(36,60,54,.04);
    color: var(--hc-ink);
    background: var(--hc-bg);
    font: 16px/1.55 system-ui, sans-serif;
    overflow: clip;
}
body.ke-themed.dark .ke-help {
    --hc-bg: #0d181e;
    --hc-paper: #17262e;
    --hc-ink: #edf5f3;
    --hc-sub: #b2c8c8;
    --hc-line: #405a60;
    --hc-green: #67e4c2;
    --hc-mint: #90f3d1;
    --hc-soft: #193f3e;
    --hc-selected: #194b44;
    --hc-selected-ink: #a1f6d8;
    --hc-support: #173b38;
    --hc-shadow: 0 5px 18px rgba(0,0,0,.12);
}
.ke-help *, .ke-help *::before, .ke-help *::after { box-sizing: border-box; }
.ke-help button, .ke-help input { font: inherit; }
.ke-help button { cursor: pointer; }
.ke-help button:focus-visible, .ke-help input:focus-visible,
.ke-help a:focus-visible, .ke-help summary:focus-visible {
    outline: 3px solid #38ba99;
    outline-offset: 3px;
}
.ke-help__visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap;
}
.ke-help__shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.ke-help__hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 62px;
    color: white;
    background:
        radial-gradient(ellipse at 85% 20%, #126b56 0, transparent 56%),
        linear-gradient(112deg, #0c222d, #113b37);
}
.ke-help__hero-inner { position: relative; }
.ke-help__hero h1 {
    margin: 0;
    max-width: 790px;
    font: 750 clamp(40px, 5.2vw, 68px)/1.05 system-ui, sans-serif;
    letter-spacing: -.075em;
    color: #f9fffd;
}
.ke-help__hero p {
    color: #c8e7e2;
    margin: 15px 0 22px;
    font-size: 17px;
}
.ke-help__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #294945;
    background: #fff;
    border-radius: 12px;
    min-height: 58px;
    width: min(615px, 100%);
    padding: 7px 16px;
    box-shadow: 0 10px 35px rgba(5,25,21,.21);
    border: 1px solid rgba(255,255,255,.35);
}
.ke-help__search > i { font-size: 22px; color: #2b7465; flex-shrink: 0; }
body.ke-themed .main .ke-help__search > input,
body.ke-themed .main .ke-help__search > input:not([disabled]) {
    flex: 1;
    display: block;
    min-width: 0;
    width: 100%;
    min-height: 40px;
    border: 0;
    outline: 0;
    border-radius: 0;
    color: #14292a;
    background: transparent;
    box-shadow: none;
    caret-color: #006853;
    padding: 6px 0;
    font: 400 16px/1.45 system-ui, sans-serif;
}
body.ke-themed .main .ke-help__search > input::placeholder { color: #627c77; opacity: 1; }
body.ke-themed .main .ke-help__search > input:focus-visible { outline: none; }
.ke-help__search:focus-within { outline: 3px solid #90f3d1; outline-offset: 3px; }
.ke-help__search-shortcut {
    flex-shrink: 0;
    border: 1px solid #d3e2de;
    border-radius: 5px;
    padding: 2px 6px;
    color: #718982;
    font: 600 11px/1.4 system-ui, sans-serif;
}
.ke-help__keycaps {
    position: absolute;
    right: 14px;
    top: 12px;
    display: grid;
    grid-template-columns: repeat(3, 64px);
    gap: 10px;
    transform: rotate(-9deg);
    pointer-events: none;
}
.ke-help__keycaps span {
    display: grid;
    place-items: center;
    height: 54px;
    border: 1px solid rgba(154,247,214,.37);
    border-bottom: 4px solid rgba(154,247,214,.31);
    border-radius: 11px;
    background: rgba(12,59,53,.36);
    color: #9af7d6;
    font: 600 22px ui-monospace, monospace;
}
.ke-help__keycaps span:last-child { grid-column: span 2; font-size: 17px; }

.ke-help__shortcuts {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: -25px;
}
.ke-help__jump {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-width: 0;
    padding: 15px;
    text-align: left;
    border: 1px solid var(--hc-line);
    border-radius: 14px;
    color: var(--hc-ink);
    background: var(--hc-paper);
    box-shadow: var(--hc-shadow);
    transition: border-color .16s, transform .16s, background-color .16s;
}
.ke-help__jump:hover {
    border-color: #55a992;
    transform: translateY(-2px);
}
.ke-help__jump-icon {
    display: grid;
    place-items: center;
    height: 42px;
    width: 42px;
    color: var(--hc-green);
    background: var(--hc-soft);
    border-radius: 9px;
    font-size: 21px;
}
.ke-help__jump-copy { min-width: 0; }
.ke-help__jump-copy strong {
    display: block;
    font-weight: 750;
    font-size: 15px;
    line-height: 1.3;
    color: var(--hc-ink);
}
.ke-help__jump-copy small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--hc-sub);
}
.ke-help__jump-arrow { font-size: 14px; color: var(--hc-green); }

.ke-help__layout {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 40px;
    padding: 38px 0 44px;
}
.ke-help__topics h2 {
    margin: 3px 0 12px;
    color: var(--hc-sub);
    font: 700 14px/1.45 system-ui, sans-serif;
}
.ke-help__topics nav { display: grid; gap: 5px; }
.ke-help__topic {
    min-width: 0;
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    background: transparent;
    color: var(--hc-sub);
    text-align: left;
    font-size: 15px;
    line-height: 1.35;
}
.ke-help__topic:hover { background: var(--hc-soft); color: var(--hc-ink); }
.ke-help__topic[aria-pressed="true"] {
    background: var(--hc-selected);
    color: var(--hc-selected-ink);
    font-weight: 750;
}
.ke-help__answers { min-width: 0; }
.ke-help__answers > h2 {
    margin: 0 0 13px;
    font: 750 26px/1.2 system-ui, sans-serif;
    letter-spacing: -.025em;
    color: var(--hc-ink);
}
.ke-help__results {
    margin: 0 0 10px;
    color: var(--hc-sub);
    font-size: 14px;
}
.ke-help__results:empty { display: none; }
.ke-help__item {
    display: block;
    margin-bottom: 9px;
    border: 1px solid var(--hc-line);
    border-radius: 11px;
    background: var(--hc-paper);
    scroll-margin-top: 25px;
    overflow: hidden;
}
.ke-help__item[hidden] { display: none !important; }
.ke-help__item[open] { border-color: #78baa8; }
.ke-help__item > summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    color: var(--hc-ink);
    cursor: pointer;
    font: 700 16px/1.45 system-ui, sans-serif;
}
.ke-help__item > summary::-webkit-details-marker { display: none; }
.ke-help__item > summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--hc-green);
    font: 500 24px/1 system-ui, sans-serif;
}
.ke-help__item[open] > summary::after { content: "−"; }
.ke-help__item > summary:hover { color: var(--hc-green); }
.ke-help__answer {
    border-top: 1px solid var(--hc-line);
    padding: 12px 16px 16px;
    color: var(--hc-sub);
    font: 400 15px/1.6 system-ui, sans-serif;
    overflow-wrap: anywhere;
}
.ke-help__answer p { margin: 5px 0 10px; }
.ke-help__answer p:last-child { margin-bottom: 0; }
.ke-help__answer h2, .ke-help__answer h3, .ke-help__answer h4 { color: var(--hc-ink); }
.ke-help__answer a { color: var(--hc-green); text-decoration: underline; text-underline-offset: 2px; }
.ke-help__answer img, .ke-help__answer video, .ke-help__answer iframe {
    max-width: 100%;
    height: auto;
}
.ke-help__answer pre, .ke-help__answer table { max-width: 100%; overflow-x: auto; }
.ke-help__answer ul, .ke-help__answer ol { padding-left: 23px; margin: 8px 0; }
.ke-help__empty {
    padding: 18px;
    border: 1px solid var(--hc-line);
    border-radius: 10px;
    background: var(--hc-paper);
    color: var(--hc-sub);
    margin: 12px 0;
}
.ke-help__empty[hidden] { display: none !important; }
.ke-help__support {
    margin-top: 24px;
    padding: 17px 19px;
    border-radius: 12px;
    background: var(--hc-support);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}
.ke-help__support strong { display: block; color: var(--hc-ink); font-size: 16px; }
.ke-help__support span { display: block; color: var(--hc-sub); font-size: 13px; margin-top: 2px; }
.ke-help__support a {
    background: #075e4c;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    padding: 9px 13px;
    white-space: nowrap;
    font: 700 14px/1.4 system-ui, sans-serif;
}
.ke-help__support a:hover { background: #064c3e; }
.ke-help__support a > i { margin-left: 5px; font-size: 12px; }

@media (max-width: 900px) {
    .ke-help__keycaps { opacity: .35; right: -20px; }
    .ke-help__layout { grid-template-columns: 185px minmax(0,1fr); gap: 26px; }
    .ke-help__jump { padding: 12px; gap: 10px; }
}
@media (max-width: 780px) {
    .ke-help__keycaps { display: none; }
    .ke-help__hero { padding: 42px 0 58px; }
    .ke-help__shortcuts { gap: 8px; }
    .ke-help__jump { grid-template-columns: 1fr; align-content: start; gap: 8px; }
    .ke-help__jump-arrow, .ke-help__jump-copy small { display: none; }
    .ke-help__jump-copy strong { font-size: 13px; }
    .ke-help__layout { grid-template-columns: 1fr; gap: 23px; padding-top: 24px; }
    .ke-help__topics nav { display: flex; flex-wrap: wrap; gap: 7px; }
    .ke-help__topic { background: var(--hc-paper); border: 1px solid var(--hc-line); font-size: 13px; }
}
@media (max-width: 420px) {
    .ke-help__shell { width: calc(100% - 30px); }
    .ke-help__hero h1 { font-size: clamp(34px, 9vw, 42px); }
    .ke-help__hero p { font-size: 14px; }
    .ke-help__jump { padding: 10px; border-radius: 10px; }
    .ke-help__jump-icon { width: 36px; height: 36px; font-size: 18px; }
    .ke-help__jump-copy strong { font-size: 12px; }
    .ke-help__search-shortcut { display: none; }
    .ke-help__answers > h2 { font-size: 23px; }
    .ke-help__support { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .ke-help__jump { transition: none; }
    .ke-help__jump:hover { transform: none; }
}
