/* ─────────────────────────────────────────────────────────────────────────────
   Guides surface — hub (/guides) + detail (/guides/{slug}).
   A guide is a practical "how to …" article that routes into the real tool/resource/
   workflow/project assets. Single-column article layout (NO sticky aside) so there is
   no sticky-jump risk; related assets render full-width below via the shared _DiscoverySection,
   FAQ via _FaqList. Uses the house indigo accent + existing tokens (no new design system).
   ───────────────────────────────────────────────────────────────────────────── */

.np-guide-page { padding: 2.5rem 0 4rem; color: var(--np-text-primary); }

/* Breadcrumb — its own "gd" accent so it is fully styled on guide pages (resources.css is not loaded
   here). Matches the Blueprint breadcrumb: muted text, the link goes soft-indigo on hover, and it is
   never underlined (the base rule's specificity beats the global a:hover underline). */
.np-gd-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; color: var(--np-text-muted); margin-bottom: 1.6rem;
}
.np-gd-breadcrumb a { color: var(--np-text-secondary); text-decoration: none; }
.np-gd-breadcrumb a:hover { color: var(--np-res-soft); text-decoration: none; }
.np-gd-breadcrumb span[aria-current] { color: var(--np-text-secondary); }

/* ── Shared accent bits ─────────────────────────────────────── */
.np-guide-tag,
.np-guide-card-cluster {
    display: inline-flex; align-items: center;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
    padding: 0.24rem 0.62rem; border-radius: 999px;
    color: var(--np-res-soft);
    background: rgba(99, 91, 255, 0.12);
    border: 1px solid rgba(99, 91, 255, 0.25);
}

/* ══════════════════════════ HUB (/guides) ══════════════════════════ */
.np-guide-index-hero { max-width: 720px; margin-bottom: 2.5rem; }
.np-guide-hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 600; color: var(--np-text-muted);
    margin-bottom: 1.1rem;
}
.np-guide-hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--np-res-accent); box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.16);
}
.np-guide-hero-title { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.9rem; }
.np-guide-hero-sub { font-size: 1.02rem; line-height: 1.7; color: var(--np-text-secondary); margin: 0; }
.np-guide-hero-sub a { color: var(--np-res-soft); text-decoration: none; }
.np-guide-hero-sub a:hover { text-decoration: underline; }

.np-guide-section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.np-guide-section-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.np-guide-count { font-size: 0.82rem; color: var(--np-text-muted); margin: 0; }

.np-guide-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.1rem;
}
.np-guide-card {
    display: flex; flex-direction: column; gap: 0.55rem;
    min-width: 0; padding: 1.3rem 1.4rem;
    background: var(--np-bg-card);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    text-decoration: none; color: inherit;
    transition: border-color 0.16s ease, transform 0.14s ease, background 0.16s ease;
}
.np-guide-card:hover {
    border-color: rgba(99, 91, 255, 0.45);
    background: #14151d;
    transform: translateY(-2px);
    text-decoration: none;   /* whole card is the link — never underline its text on hover */
}
.np-guide-card-cluster { align-self: flex-start; margin-bottom: 0.15rem; }
.np-guide-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0; color: var(--np-text-primary); }
.np-guide-card-desc { font-size: 0.9rem; line-height: 1.6; color: var(--np-text-secondary); margin: 0; }
.np-guide-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.4rem; font-size: 0.78rem; color: var(--np-text-muted); }
.np-guide-card-arrow { color: var(--np-res-soft); font-weight: 700; transition: transform 0.14s ease; }
.np-guide-card:hover .np-guide-card-arrow { transform: translateX(3px); }

.np-guide-emptystate { padding: 3rem 1rem; text-align: center; color: var(--np-text-muted); border: 1px dashed var(--np-border); border-radius: var(--np-radius); }
.np-guide-emptystate h3 { margin: 0 0 0.5rem; color: var(--np-text-secondary); }
.np-guide-emptystate a { color: var(--np-res-soft); text-decoration: none; }

/* ══════════════════════════ DETAIL (/guides/{slug}) ══════════════════════════ */
/* The article is a single readable column; discovery + FAQ go full-width below it. */
.np-guide { max-width: 760px; margin: 0.5rem 0 2.5rem; }

.np-guide-hero { margin-bottom: 2rem; }
.np-guide-metarow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.np-guide-metaitem { font-size: 0.8rem; color: var(--np-text-muted); }
.np-guide-metaitem::before { content: "·"; margin-right: 0.7rem; color: var(--np-border); }
.np-guide-metarow > .np-guide-metaitem:first-of-type::before { content: none; }
.np-guide-title { font-size: clamp(1.9rem, 4vw, 2.55rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 1rem; }
.np-guide-lead { font-size: 1.1rem; line-height: 1.65; color: var(--np-text-secondary); margin: 0 0 1.5rem; }

.np-guide-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.72rem 1.3rem; border-radius: 10px;
    background: rgba(99, 91, 255, 0.9);
    border: 1px solid rgba(99, 91, 255, 0.95);
    color: #fff; font-weight: 700; font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.14s ease;
}
.np-guide-cta:hover { background: var(--np-res-accent); transform: translateY(-1px); text-decoration: none; }

/* Table of contents — quiet, bordered, jump links. */
.np-guide-toc {
    margin: 0 0 2rem; padding: 1rem 1.25rem;
    background: var(--np-bg-card); border: 1px solid var(--np-border); border-radius: var(--np-radius-sm);
}
.np-guide-toc-label { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--np-text-muted); margin-bottom: 0.6rem; }
.np-guide-toc ol { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.np-guide-toc a { color: var(--np-text-secondary); text-decoration: none; font-size: 0.9rem; }
.np-guide-toc a:hover { color: var(--np-res-soft); text-decoration: underline; }

/* Article body typography. */
.np-guide-section { margin-bottom: 1.9rem; scroll-margin-top: calc(var(--np-detail-sticky-top, 75px)); }
.np-guide-h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.8rem; color: var(--np-text-primary); }
.np-guide-p { font-size: 1rem; line-height: 1.75; color: var(--np-text-secondary); margin: 0 0 0.9rem; }
.np-guide-p a,
.np-guide-list a { color: var(--np-res-soft); text-decoration: none; font-weight: 600; }
.np-guide-p a:hover,
.np-guide-list a:hover { text-decoration: underline; }
.np-guide-list { margin: 0 0 0.9rem; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.np-guide-list li { font-size: 1rem; line-height: 1.7; color: var(--np-text-secondary); }

.np-guide-code-label { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--np-text-muted); margin: 0.2rem 0 0.4rem; }
.np-guide-code {
    margin: 0 0 1rem; padding: 1rem 1.1rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--np-border); border-radius: 10px;
    font-family: var(--np-font-mono); font-size: 0.82rem; line-height: 1.6;
    color: var(--np-text-secondary);
    overflow-x: auto;            /* premium scrollbar via the shared .np-scroll utility on the element */
    white-space: pre;
}
.np-guide-code code { background: none; padding: 0; font: inherit; color: inherit; }

/* FAQ heading spacing — the accordion itself is the shared _FaqList (np-faq--res). */
.np-guide-faq { margin-top: 2.5rem; max-width: 760px; }
.np-guide-faq .np-guide-h2 { margin-bottom: 1rem; }

@media (max-width: 640px) {
    .np-guide-page { padding: 1.5rem 0 3rem; }
    .np-guide-code { font-size: 0.76rem; }
}
