/* ==========================================================
   Blueprints — the journey layer above playbooks.
   Tool → Resource → Playbook → Blueprint. Shares the NewPrompt
   tokens but uses its own np-bp-* namespace and a warm gold
   accent to read as the apex "build journey" tier.
   ========================================================== */
:root {
    --np-bp-accent:      #f5b73c;
    --np-bp-accent-soft: #ffd27a;
    --np-bp-accent-dim:  rgba(245,183,60,0.12);
    --np-bp-accent-bd:   rgba(245,183,60,0.32);
}

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

/* ── Hero ─────────────────────────────────────────────── */
.np-bp-hero { max-width: 780px; margin: 0 auto 2.25rem; text-align: center; }
.np-bp-hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.8rem; margin-bottom: 1.1rem;
    font-size: 0.78rem; font-weight: 600;
    color: var(--np-bp-accent-soft); background: var(--np-bp-accent-dim);
    border: 1px solid var(--np-bp-accent-bd); border-radius: 999px;
}
.np-bp-hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--np-bp-accent-soft); box-shadow: 0 0 0 3px rgba(245,183,60,0.18); }
.np-bp-hero-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.np-bp-hero-sub { font-size: 1.02rem; line-height: 1.6; color: var(--np-text-secondary); margin: 0; }

/* ── Section header ───────────────────────────────────── */
.np-bp-section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.np-bp-section-title { font-size: 1.25rem; font-weight: 700; margin: 0; }
.np-bp-count { font-size: 0.85rem; color: var(--np-text-muted); margin: 0; }

/* ── Card grid ────────────────────────────────────────── */
.np-bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.1rem; }
.np-bp-card {
    position: relative;
    display: flex; flex-direction: column; gap: 0.7rem;
    padding: 1.3rem; background: var(--np-bg-card);
    border: 1px solid var(--np-border); border-radius: var(--np-radius);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.np-bp-card:hover { border-color: var(--np-bp-accent); transform: translateY(-2px); }
.np-bp-card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.np-bp-badge { display: inline-flex; align-items: center; padding: 0.22rem 0.6rem; font-size: 0.72rem; font-weight: 600; border-radius: 999px; }
.np-bp-badge--type { color: var(--np-bp-accent-soft); background: var(--np-bp-accent-dim); border: 1px solid var(--np-bp-accent-bd); }
.np-bp-badge--diff { color: var(--np-text-secondary); background: var(--np-bg-hover); border: 1px solid var(--np-border); }
.np-bp-card-title { font-size: 1.15rem; font-weight: 700; margin: 0; line-height: 1.3; }
.np-bp-card-link { color: var(--np-text-primary); text-decoration: none; }
.np-bp-card-link:hover { color: var(--np-bp-accent-soft); text-decoration: none; }
/* Stretched link: the title's ::after covers the whole card so the entire card
   is clickable (navigates to the blueprint), while real links/buttons sit above. */
.np-bp-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.np-bp-card-summary { font-size: 0.9rem; line-height: 1.55; color: var(--np-text-secondary); margin: 0; flex: 1; }
.np-bp-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 0.3rem; padding-top: 0.8rem; border-top: 1px solid var(--np-border); }
.np-bp-card-stat { font-size: 0.8rem; color: var(--np-text-muted); display: inline-flex; align-items: center; gap: 0.3rem; }
.np-bp-card-cta { position: relative; z-index: 2; margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--np-bp-accent-soft); text-decoration: none; }
.np-bp-card-cta:hover { color: var(--np-bp-accent); text-decoration: none; }

.np-bp-emptystate { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--np-border); border-radius: var(--np-radius); }
.np-bp-emptystate-icon { font-size: 2rem; color: var(--np-text-muted); }
.np-bp-emptystate h3 { margin: 0.6rem 0 0.4rem; }
.np-bp-emptystate p { color: var(--np-text-secondary); margin: 0; }
.np-bp-emptystate a { color: var(--np-bp-accent-soft); }

/* ── Breadcrumb + detail hero ─────────────────────────── */
.np-bp-breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--np-text-muted); margin-bottom: 1.4rem; }
.np-bp-breadcrumb a { color: var(--np-text-secondary); text-decoration: none; }
.np-bp-breadcrumb a:hover { color: var(--np-bp-accent-soft); }
.np-bp-detail-hero { margin-bottom: 2rem; }
.np-bp-detail-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.np-bp-detail-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.7rem; }
.np-bp-detail-summary { font-size: 1.05rem; line-height: 1.6; color: var(--np-text-secondary); max-width: 760px; margin: 0; }

/* ── Detail layout ────────────────────────────────────── */
.np-bp-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.np-bp-detail-main { min-width: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.np-bp-detail-aside { display: flex; flex-direction: column; gap: 1.1rem; position: sticky; top: 1.5rem; }

.np-bp-block { background: var(--np-bg-card); border: 1px solid var(--np-border); border-radius: var(--np-radius); padding: 1.4rem 1.5rem; }
.np-bp-block-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.8rem; }
.np-bp-block-body { font-size: 0.97rem; line-height: 1.65; color: var(--np-text-secondary); margin: 0; }
.np-bp-block-intro { font-size: 0.92rem; line-height: 1.6; color: var(--np-text-muted); margin: 0 0 1.3rem; }
.np-bp-block--outcome { border-color: var(--np-bp-accent-bd); background: linear-gradient(180deg, var(--np-bp-accent-dim), var(--np-bg-card)); }

/* ── Journey steps (numbered, connected) ──────────────── */
.np-bp-steps { list-style: none; margin: 0; padding: 0; }
.np-bp-step { position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 1rem; padding-bottom: 1.7rem; }
.np-bp-step:last-child { padding-bottom: 0; }
.np-bp-step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--np-border); }
.np-bp-step:last-child::before { display: none; }
.np-bp-step-num {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; color: #1a1206;
    background: var(--np-bp-accent); border: 3px solid var(--np-bg); position: relative; z-index: 1;
}
.np-bp-step-body { min-width: 0; padding-top: 0.2rem; }
.np-bp-step-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.4rem; }
.np-bp-step-desc { font-size: 0.94rem; line-height: 1.6; color: var(--np-text-secondary); margin: 0 0 0.7rem; }
.np-bp-step-goal { display: flex; gap: 0.55rem; align-items: baseline; font-size: 0.88rem; line-height: 1.5; color: var(--np-text-secondary); padding: 0.55rem 0.75rem; margin: 0 0 0.85rem; background: var(--np-bp-accent-dim); border-left: 2px solid var(--np-bp-accent); border-radius: var(--np-radius-sm); }
.np-bp-step-goal-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--np-bp-accent-soft); flex-shrink: 0; }

.np-bp-step-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.np-bp-step-link { display: flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.7rem; font-size: 0.85rem; background: var(--np-bg-input); border: 1px solid var(--np-border); border-radius: var(--np-radius-sm); text-decoration: none; transition: border-color 0.15s ease; }
.np-bp-step-link:hover { border-color: var(--np-bp-accent); text-decoration: none; }
.np-bp-step-link-kind { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.12rem 0.4rem; border-radius: 4px; }
.np-bp-step-link--pb .np-bp-step-link-kind { color: #6ee7a8; background: rgba(34,197,94,0.12); }
.np-bp-step-link--res .np-bp-step-link-kind { color: var(--np-accent-light); background: var(--np-accent-dim); }
.np-bp-step-link--tool .np-bp-step-link-kind { color: var(--np-text-secondary); background: var(--np-bg-hover); }
.np-bp-step-link-title { font-weight: 600; color: var(--np-text-primary); }
.np-bp-step-link:hover .np-bp-step-link-title { color: var(--np-bp-accent-soft); }

/* ── Aside ────────────────────────────────────────────── */
.np-bp-aside-card { padding: 1.1rem 1.2rem; }
.np-bp-aside-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--np-text-muted); margin-bottom: 0.75rem; }
.np-bp-glance { margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.np-bp-glance-row { display: grid; grid-template-columns: 60px 1fr; gap: 0.6rem; align-items: baseline; }
.np-bp-glance-row dt { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--np-text-muted); margin: 0; }
.np-bp-glance-row dd { font-size: 0.9rem; color: var(--np-text-secondary); margin: 0; line-height: 1.45; }

/* ── Discovery sections (recommended playbooks/resources/tools/blueprints) ── */
.np-bp-disc { margin-top: 2rem; }
.np-bp-disc-hdr { font-size: 1.2rem; font-weight: 700; margin: 0 0 1rem; }
.np-bp-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.np-bp-rel-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.2rem; background: var(--np-bg-card); border: 1px solid var(--np-border); border-radius: var(--np-radius); text-decoration: none; transition: border-color 0.15s ease, transform 0.12s ease; }
.np-bp-rel-card:hover { border-color: var(--np-bp-accent); transform: translateY(-2px); text-decoration: none; }
.np-bp-rel-kind { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--np-bp-accent-soft); }
.np-bp-rel-title { font-size: 1rem; font-weight: 700; color: var(--np-text-primary); line-height: 1.3; }
.np-bp-rel-summary { font-size: 0.85rem; line-height: 1.5; color: var(--np-text-secondary); flex: 1; }
.np-bp-rel-cta { font-size: 0.84rem; font-weight: 600; color: var(--np-bp-accent-soft); }

/* Recommended next blueprint — the prominent directed "build this next" card */
.np-bp-next-card {
    display: flex; flex-direction: column; gap: 0.45rem;
    padding: 1.3rem 1.45rem; text-decoration: none;
    background: linear-gradient(135deg, var(--np-bp-accent-dim), var(--np-bg-card));
    border: 1px solid var(--np-bp-accent-bd); border-radius: var(--np-radius);
    transition: border-color 0.15s ease, transform 0.12s ease;
}
.np-bp-next-card:hover { border-color: var(--np-bp-accent); transform: translateY(-2px); text-decoration: none; }
.np-bp-next-kind { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--np-bp-accent-soft); }
.np-bp-next-title { font-size: 1.2rem; font-weight: 700; color: var(--np-text-primary); line-height: 1.3; }
.np-bp-next-summary { font-size: 0.9rem; line-height: 1.55; color: var(--np-text-secondary); }
.np-bp-next-cta { font-size: 0.88rem; font-weight: 600; color: #1a1206; background: var(--np-bp-accent); align-self: flex-start; padding: 0.45rem 0.95rem; border-radius: var(--np-radius-sm); margin-top: 0.35rem; }
.np-bp-next-card:hover .np-bp-next-cta { background: var(--np-bp-accent-soft); }

.np-bp-rel-list { display: flex; flex-direction: column; gap: 0.5rem; }
.np-bp-rel-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; background: var(--np-bg-card); border: 1px solid var(--np-border); border-radius: var(--np-radius-sm); text-decoration: none; transition: border-color 0.15s ease; }
.np-bp-rel-row:hover { border-color: var(--np-bp-accent); text-decoration: none; }
.np-bp-rel-row-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--np-accent-dim); color: var(--np-accent-light); font-size: 0.85rem; flex-shrink: 0; }
.np-bp-rel-row-icon--tool { background: var(--np-bp-accent-dim); color: var(--np-bp-accent-soft); }
.np-bp-rel-row-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.np-bp-rel-row-title { font-size: 0.9rem; font-weight: 600; color: var(--np-text-primary); }
.np-bp-rel-row-cat { font-size: 0.74rem; color: var(--np-text-muted); }
.np-bp-rel-arrow { color: var(--np-text-muted); }

/* ── Tip bar ──────────────────────────────────────────── */
.np-bp-tipbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 2rem; padding: 1rem 1.3rem; background: linear-gradient(180deg, var(--np-bp-accent-dim), var(--np-bg-card)); border: 1px solid var(--np-bp-accent-bd); border-radius: var(--np-radius); }
.np-bp-tipbar-icon { color: var(--np-bp-accent-soft); display: inline-flex; flex-shrink: 0; }
.np-bp-tipbar-text { flex: 1; min-width: 200px; margin: 0; font-size: 0.9rem; color: var(--np-text-secondary); }
.np-bp-tipbar-btn { font-size: 0.88rem; font-weight: 600; color: #1a1206; background: var(--np-bp-accent); padding: 0.5rem 1rem; border-radius: var(--np-radius-sm); text-decoration: none; white-space: nowrap; }
.np-bp-tipbar-btn:hover { background: var(--np-bp-accent-soft); text-decoration: none; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
    .np-bp-detail-layout { grid-template-columns: 1fr; }
    .np-bp-detail-aside { position: static; }
}
@media (max-width: 560px) {
    .np-bp-grid { grid-template-columns: 1fr; }
    .np-bp-rel-grid { grid-template-columns: 1fr; }
}
