*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    background: #0f172a;
    color: #e2e8f0;
}

/* ── Header ─────────────────────────────────────────── */
#faq-header {
    background: #1e293b;
    border-bottom: 1px solid #0f172a;
    padding: 14px 32px;
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-shrink: 0;
}

#faq-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
}

#faq-version {
    font-size: 12px;
    color: #64748b;
}

/* ── Content ─────────────────────────────────────────── */
#faq-content {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 32px 64px;
}

#faq-content > h2 {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}

#faq-content > .subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 40px;
}

/* ── FAQ Items ──────────────────────────────────────── */
.faq-item {
    margin-bottom: 28px;
    border: 1px solid #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background: #1e293b;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: #263347;
}

.faq-question .chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-question .chevron {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 18px 20px;
    background: #0f1a2e;
    border-top: 1px solid #1e293b;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    color: #cbd5e1;
    line-height: 1.75;
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    list-style: none;
    margin: 8px 0 10px 0;
}

.faq-answer ul li {
    color: #cbd5e1;
    line-height: 1.6;
    padding: 2px 0 2px 20px;
    position: relative;
}

.faq-answer ul li::before {
    content: '•';
    color: #3b82f6;
    position: absolute;
    left: 6px;
    font-weight: 700;
}

.faq-answer kbd {
    display: inline-block;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
    font-family:
        'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #94a3b8;
}

.shortcut-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
    color: #cbd5e1;
}

.shortcut-row .desc {
    color: #94a3b8;
}

/* ── Divider ─────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid #1e293b;
    margin: 36px 0;
}

/* ── Footer links ────────────────────────────────────── */
.footer-links {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.footer-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    text-decoration: underline;
}
