.hm-cdnfaq * { box-sizing: border-box; }

/* ── Hero ── */
.hm-cdnfaq-hero {
    background: #0d1117;
    border-bottom: 1px solid #21262d;
    padding: 130px 0 48px;
    position: relative;
    overflow: hidden;
}
.hm-cdnfaq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
}
.hm-cdnfaq-hero__inner { position: relative; }
.hm-cdnfaq-hero__pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(56,97,251,.12); color: #7aa2f7;
    border: 1px solid rgba(56,97,251,.25); border-radius: 20px;
    padding: 5px 14px; font-size: 12px; font-weight: 600;
    margin-bottom: 20px;
}
.hm-cdnfaq-hero__pill i { font-size: 11px; }
.hm-cdnfaq-hero h1 {
    font-size: 38px; font-weight: 800; color: #fff;
    letter-spacing: -1px; margin: 0 0 14px;
    line-height: 1.15;
}
.hm-cdnfaq-hero h1 em { font-style: normal; color: #7aa2f7; }
.hm-cdnfaq-hero__desc { color: #8b949e; font-size: 15px; max-width: 580px; margin: 0 0 28px; line-height: 1.7; }
.hm-cdnfaq-hero__back {
    display: inline-flex; align-items: center; gap: 7px;
    color: #6b7280; font-size: 13px; font-weight: 600;
    text-decoration: none;
}
.hm-cdnfaq-hero__back:hover { color: #7aa2f7; }

/* ── Main layout ── */
.hm-cdnfaq-main { background: #f8fafc; padding: 56px 0 80px; }
.hm-cdnfaq-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 860px) {
    .hm-cdnfaq-layout { grid-template-columns: 1fr; }
    .hm-cdnfaq-sidebar { order: -1; }
}

/* ── FAQ accordion ── */
.hm-cdnfaq-list { display: flex; flex-direction: column; gap: 12px; }
.hm-cdnfaq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.hm-cdnfaq-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.hm-cdnfaq-item.open { border-color: #bfdbfe; }
.hm-cdnfaq-q {
    width: 100%; background: none; border: none; cursor: pointer;
    display: flex; align-items: center; gap: 14px;
    padding: 20px 22px; text-align: left;
}
.hm-cdnfaq-q__num {
    width: 28px; height: 28px; border-radius: 8px;
    background: #eff6ff; color: #3b82f6;
    font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hm-cdnfaq-item.open .hm-cdnfaq-q__num { background: #3b82f6; color: #fff; }
.hm-cdnfaq-q__text {
    flex: 1; font-size: 15px; font-weight: 600; color: #111827; line-height: 1.4;
}
.hm-cdnfaq-q__icon {
    font-size: 12px; color: #9ca3af; flex-shrink: 0;
    transition: transform .25s;
}
.hm-cdnfaq-item.open .hm-cdnfaq-q__icon { transform: rotate(180deg); color: #3b82f6; }
.hm-cdnfaq-a {
    display: none;
    padding: 0 22px 22px 64px;
    font-size: 14px; line-height: 1.8; color: #374151;
}
.hm-cdnfaq-item.open .hm-cdnfaq-a { display: block; }
.hm-cdnfaq-a p { margin: 0 0 10px; }
.hm-cdnfaq-a p:last-child { margin: 0; }
.hm-cdnfaq-a code {
    background: #f3f4f6; border: 1px solid #e5e7eb;
    border-radius: 5px; padding: 2px 7px;
    font-size: 13px; color: #1d4ed8; font-family: monospace;
}
.hm-cdnfaq-a pre {
    background: #0d1117; border-radius: 8px;
    padding: 14px 16px; margin: 10px 0;
    font-size: 13px; color: #c9d1d9; overflow-x: auto;
    line-height: 1.7;
}
.hm-cdnfaq-a pre .ct { color: #7ee787; }
.hm-cdnfaq-a pre .ca { color: #79c0ff; }
.hm-cdnfaq-a pre .cv { color: #a5d6ff; }
.hm-cdnfaq-a a { color: #3b82f6; text-decoration: none; font-weight: 600; }
.hm-cdnfaq-a a:hover { text-decoration: underline; }

/* ── Sidebar ── */
.hm-cdnfaq-sidebar { display: flex; flex-direction: column; gap: 20px; }
.hm-cdnfaq-card {
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; overflow: hidden;
}
.hm-cdnfaq-card__head {
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 12px; font-weight: 700; color: #6b7280;
    text-transform: uppercase; letter-spacing: .6px;
}
.hm-cdnfaq-card__body { padding: 14px 18px; }
.hm-cdnfaq-quicklinks { display: flex; flex-direction: column; gap: 6px; }
.hm-cdnfaq-quicklinks a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    background: #f9fafb; text-decoration: none;
    color: #374151; font-size: 13px; font-weight: 500;
    transition: background .15s, color .15s;
    border: 1px solid #f3f4f6;
}
.hm-cdnfaq-quicklinks a:hover { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.hm-cdnfaq-quicklinks a i { width: 16px; text-align: center; color: #6b7280; font-size: 12px; }
.hm-cdnfaq-quicklinks a:hover i { color: #3b82f6; }

.hm-cdnfaq-toc { display: flex; flex-direction: column; gap: 4px; }
.hm-cdnfaq-toc a {
    font-size: 12px; color: #6b7280; text-decoration: none;
    padding: 5px 8px; border-radius: 6px;
    display: flex; align-items: baseline; gap: 7px;
    transition: background .15s, color .15s;
}
.hm-cdnfaq-toc a:hover { background: #f3f4f6; color: #1d4ed8; }
.hm-cdnfaq-toc a span { flex: 1; line-height: 1.4; }
