/* static-page--faq */
body.static-page--faq {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-rgb: 37, 99, 235;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-rgb: 37, 99, 235;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: rgba(148, 163, 184, 0.26);
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-soft: #f8fafc;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at top center, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 36%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
body.static-page--faq header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}
body.static-page--faq nav a:hover {
    color: var(--accent-blue);
}
body.static-page--faq .btn-outline {
    background: rgba(255, 255, 255, 0.92);
}

body.static-page--faq.dark-mode .page-nav-fab,
body.static-page--faq.dark-mode .page-nav-drawer-close {
    color: #c4d4f6;
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(96, 122, 166, 0.36);
}

body.static-page--faq.dark-mode .page-nav-backdrop {
    background: rgba(2, 8, 23, 0.56);
}

body.static-page--faq.dark-mode .faq-toolbar {
    background: linear-gradient(180deg, rgba(8, 17, 31, 0.98) 0%, rgba(8, 17, 31, 0.92) 72%, rgba(8, 17, 31, 0) 100%);
}

body.static-page--faq.dark-mode .faq-sidebar.page-nav-drawer {
    background: rgba(11, 19, 33, 0.96);
    border-color: rgba(96, 122, 166, 0.36);
}

.faq-hero {
    padding: 58px 0 28px;
}
.faq-hero-card {
    padding: 48px 40px 38px;
    border-radius: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
    text-align: center;
}
.faq-hero-card h1 {
    margin-bottom: 16px;
}
.faq-hero-card p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}
.faq-search-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 760px;
    margin: 30px auto 12px;
    padding: 0 20px;
    min-height: 72px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}
.faq-search-icon {
    color: #94a3b8;
    flex-shrink: 0;
}
.faq-search-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 18px;
}
.faq-search-input::placeholder {
    color: #94a3b8;
}
.faq-search-helper {
    font-size: 14px;
}

.faq-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 42px;
}
.faq-main-column {
    display: grid;
    gap: 18px;
}
.faq-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    min-width: 0;
}
.faq-category-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}
.faq-category-pill {
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #ffffff;
    color: #64748b;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.faq-category-pill:hover,
.faq-category-pill.is-active {
    color: var(--accent-blue);
    border-color: rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}
.faq-results-meta {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}
.faq-empty-state {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: var(--shadow-sm);
}
.faq-empty-state strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}
.faq-empty-state p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}
.faq-reset-btn {
    margin-top: 16px;
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--accent-blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.faq-accordion {
    display: grid;
    gap: 16px;
}
.faq-accordion-item {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-sm);
}
.faq-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease;
}
.faq-accordion-summary::-webkit-details-marker {
    display: none;
}
.faq-accordion-item[open] .faq-accordion-summary,
.faq-accordion-summary:hover {
    background: #f8fafc;
}
.faq-summary-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.faq-summary-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.faq-accordion-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.faq-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-blue);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.faq-accordion-item[open] .faq-accordion-icon {
    transform: rotate(180deg);
}
.faq-accordion-answer {
    padding: 0 26px 24px;
    min-width: 0;
}
.faq-accordion-answer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}
.faq-answer-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.faq-answer-tags span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.faq-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 108px;
}
.faq-support-card,
.faq-sidebar-card {
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}
.faq-support-card {
    padding: 30px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}
.faq-support-card h2,
.faq-sidebar-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.25;
}
.faq-support-card p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
}
.faq-support-btn {
    width: 100%;
    border: 0;
    background: #ffffff;
    color: var(--accent-blue);
    box-shadow: none;
}
.faq-sidebar-card {
    padding: 26px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
}
.faq-link-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}
.faq-link-list li {
    margin: 0;
}
.faq-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    color: var(--accent-blue);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}
.faq-link-list a::after {
    content: '\2192';
    color: currentColor;
}
.faq-link-list a:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(2px);
}

body.static-page--faq.dark-mode {
    --text-main: #e6eefc;
    --text-muted: #a7b6cc;
    --border: rgba(96, 122, 166, 0.36);
    --bg-body: #08111f;
    --bg-card: rgba(11, 19, 33, 0.96);
    --bg-soft: #0e1a2d;
    background-image:
        radial-gradient(circle at top center, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0) 38%),
        linear-gradient(180deg, #08111f 0%, #0e1728 100%);
}
body.static-page--faq.dark-mode header,
body.static-page--faq.dark-mode .faq-hero-card,
body.static-page--faq.dark-mode .faq-accordion-item,
body.static-page--faq.dark-mode .faq-sidebar-card,
body.static-page--faq.dark-mode .faq-empty-state {
    background: rgba(11, 19, 33, 0.94);
}
body.static-page--faq.dark-mode .faq-search-shell,
body.static-page--faq.dark-mode .faq-link-list a,
body.static-page--faq.dark-mode .faq-answer-tags span,
body.static-page--faq.dark-mode .faq-accordion-item[open] .faq-accordion-summary,
body.static-page--faq.dark-mode .faq-accordion-summary:hover {
    background: rgba(15, 23, 42, 0.94);
}
body.static-page--faq.dark-mode .faq-category-pill,
body.static-page--faq.dark-mode .btn-outline,
body.static-page--faq.dark-mode .theme-toggle {
    background: rgba(15, 23, 42, 0.9);
}
body.static-page--faq.dark-mode .faq-link-list a,
body.static-page--faq.dark-mode .faq-category-pill,
body.static-page--faq.dark-mode .faq-answer-tags span {
    color: #c4d4f6;
}
body.static-page--faq.dark-mode .faq-category-pill.is-active,
body.static-page--faq.dark-mode .faq-category-pill:hover {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.18);
}

@media (max-width: 920px) {
    .faq-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 640px) {
    .faq-hero {
        padding: 24px 0 20px;
    }

    .faq-hero-card {
        padding: 30px 16px 24px;
        border-radius: 24px;
    }

    .faq-hero-card p {
        font-size: 16px;
        line-height: 1.7;
    }

    .faq-search-shell {
        margin-top: 22px;
        min-height: 60px;
        padding: 0 14px;
    }

    .faq-search-input {
        font-size: 16px;
    }

    .faq-toolbar {
        align-items: stretch;
    }

    .faq-results-meta {
        width: 100%;
    }

    .faq-accordion-summary {
        align-items: flex-start;
        gap: 14px;
        padding: 18px 16px;
    }

    .faq-accordion-title {
        font-size: 18px;
    }

    .faq-accordion-answer {
        padding: 0 16px 18px;
    }

    .faq-support-card,
    .faq-sidebar-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .faq-link-list a {
        align-items: flex-start;
    }
}
