/*
 * P2P Living Node Cluster page (V78). SITE tokens only (base.css :root) —
 * console tokens stay Astro-side (.system-viewport), house rule.
 * Loaded after base.css via $pageCss (dm_asset ?v= busting is automatic).
 */

/* hero image is an anchor now — block display kills the inline descender
   gap; the hover scale already lives on base.css .book-cover-wrapper img */
.book-cover-wrapper a {
    display: block;
}
.book-cover-wrapper a:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- FAQ accordion (DB-driven; the stack.php acc idiom re-expressed on
        site tokens: mono summary, +/- toggle, no marker) ---- */
.faq-list {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-light);
    margin: 15px 0 40px;
}
.faq-item + .faq-item {
    border-top: 1px solid var(--border-color);
}
.faq-item summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-code);
    font-size: 0.95em;
    color: var(--dark-teal);
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    margin-left: auto;
    font-weight: 700;
    color: var(--brand-orange);
}
.faq-item[open] summary::after {
    content: '\2212';
}
.faq-item summary:hover {
    background: rgba(var(--brand-blue-rgb), 0.06);
}
.faq-item summary:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: -2px;
}
.faq-cat {
    font-weight: 700;
    color: var(--brand-orange);
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.faq-q {
    font-weight: 600;
}
.faq-body {
    color: var(--text-dim);
    border-left: 3px solid rgba(var(--brand-orange-rgb), 0.4);
    margin: 0 16px 14px;
    padding: 2px 0 2px 13px;
}
.faq-body p {
    margin: 0 0 10px;
}
.faq-body p:last-child {
    margin-bottom: 0;
}

/* ---- Initialization Protocol: numbered boot steps (the ul.list-protocol
        ">" caret idiom would fight ol numbering — mono counters instead) */
.protocol-steps {
    list-style: none;
    counter-reset: boot;
    margin: 15px 0 40px;
    padding: 0;
}
.protocol-steps li {
    counter-increment: boot;
    padding: 6px 0 6px 52px;
    position: relative;
}
.protocol-steps li::before {
    content: '[0' counter(boot) ']';
    position: absolute;
    left: 0;
    top: 6px;
    font-family: var(--font-code);
    font-weight: 700;
    color: var(--brand-blue);
}
