.help-page {
    min-height: 100vh;
    overflow: hidden;
    background: var(--pp-app-bg);
    color: var(--pp-text);
}

.help-container { display: flex; height: 100vh; min-height: 0; }

.help-sidebar {
    width: 280px;
    flex: 0 0 280px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--pp-surface);
    color: var(--pp-text);
    border-inline-end: 1px solid var(--pp-border);
}
/* Scrollable nav area so the "Back to Application" footer stays pinned. */
.help-nav-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -.25rem; padding: .1rem .25rem; }
.help-nav-scroll::-webkit-scrollbar { width: 8px; }
.help-nav-scroll::-webkit-scrollbar-thumb { background: var(--pp-border-strong); border-radius: 8px; }
.help-nav-label {
    display: flex; align-items: center; gap: .4rem;
    margin: 1rem .55rem .3rem; font-size: .64rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .07em; color: var(--pp-text-muted);
}
.help-nav-label .bi { font-size: .7rem; opacity: .8; }
.help-search .input-group-text { background: var(--pp-input-bg); border-color: var(--pp-border-strong);
    color: var(--pp-text-muted); border-inline-end: 0; }
.help-search .form-control { border-inline-start: 0; }

.help-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* keep the theme toggle right next to the heading */
    gap: .55rem;
    margin-bottom: .9rem;
    position: relative;            /* anchor the theme dropdown to the header, not the tiny toggle */
}

.help-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    color: var(--pp-text);
    text-decoration: none;
}
.help-brand:hover { color: var(--pp-accent); }
.help-brand > span:first-child {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid color-mix(in srgb, var(--pp-accent) 42%, var(--pp-border));
    border-radius: 12px;
    background: var(--pp-accent-soft);
    color: var(--pp-accent);
}
.help-brand > span:last-child { display: grid; min-width: 0; }
.help-brand strong { color: inherit; font-size: .88rem; line-height: 1.2; }
.help-brand small { color: var(--pp-text-muted); font-size: .62rem; white-space: nowrap; }
/* A clean, compact round toggle that mirrors the brand chip — the full
   icon+label pill was cramped in the 280px sidebar. */
.help-sidebar-head .pp-theme-picker { margin-inline-start: auto; flex: 0 0 auto; }
.help-sidebar .pp-theme-toggle {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--pp-accent) 34%, var(--pp-border));
    border-radius: 12px;
    background: var(--pp-accent-soft);
    color: var(--pp-accent);
    box-shadow: 0 1px 2px var(--pp-shadow-color);
    transition: border-color .15s ease, background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.help-sidebar .pp-theme-toggle:hover,
.help-sidebar .pp-theme-toggle[aria-expanded="true"] {
    border-color: var(--pp-accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--pp-accent) 24%, transparent);
}
/* The icon fills the round button cleanly — no inner chip. */
.help-sidebar .pp-theme-toggle-icon { width: auto; height: auto; padding: 0; background: transparent; color: var(--pp-accent); font-size: 1.05rem; }
/* Bootstrap's d-xl-inline label is display:inline !important above 1200px, so
   this hide must be !important to win in the sidebar. */
.help-sidebar .pp-theme-toggle-label,
.help-sidebar .pp-theme-toggle-chevron { display: none !important; }
/* The 280px sidebar cannot fit the default 282px menu beside a small toggle, so
   anchor the dropdown to the whole header (position:static on the picker makes
   .help-sidebar-head the positioning parent) and let it span the header width. */
.help-sidebar .pp-theme-picker { position: static; }
.help-sidebar .pp-theme-menu { top: calc(100% + 8px); left: 0; right: 0; width: auto; }

.help-sidebar .form-control,
.help-sidebar .input-group .btn {
    min-height: 38px;
    border-color: var(--pp-border-strong);
    background: var(--pp-input-bg);
    color: var(--pp-text);
}
.help-sidebar .form-control::placeholder { color: var(--pp-text-muted); }
.help-sidebar .input-group .btn:hover { border-color: var(--pp-accent); background: var(--pp-accent-soft); color: var(--pp-accent); }
.help-sidebar hr { border-color: var(--pp-border); opacity: 1; }
.help-sidebar .nav { gap: .18rem; }
.help-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .65rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--pp-text-muted);
    font-size: .8rem;
    font-weight: 650;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.help-sidebar .nav-link i { color: var(--pp-accent); }
.help-sidebar .nav-link:hover,
.help-sidebar .nav-link:focus-visible {
    outline: none;
    border-color: var(--pp-border);
    background: var(--pp-surface-soft);
    color: var(--pp-text);
}
.help-sidebar .nav-link.active {
    color: var(--pp-accent);
    background: var(--pp-accent-soft);
    border-color: color-mix(in srgb, var(--pp-accent) 40%, var(--pp-border));
    box-shadow: inset 3px 0 0 var(--pp-accent);
}
.help-sidebar .nav-link.active i { color: var(--pp-accent); }

/* ── Sidebar footer: Back to Application ─────────────────────────────── */
.help-sidebar-foot { flex: 0 0 auto; padding-top: .7rem; margin-top: .5rem; border-top: 1px solid var(--pp-border); }
.help-back-app {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; padding: .62rem .8rem; border-radius: 11px;
    font-size: .82rem; font-weight: 700; text-decoration: none;
    color: var(--pp-text); background: var(--pp-surface-soft);
    border: 1px solid var(--pp-border-strong);
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.help-back-app i { font-size: .95rem; color: var(--pp-accent); }
.help-back-app:hover { color: var(--pp-accent); background: var(--pp-accent-soft);
    border-color: color-mix(in srgb, var(--pp-accent) 45%, var(--pp-border)); }
.help-back-app:active { transform: translateY(1px); }

/* ── Floating actions (always visible) ───────────────────────────────── */
.help-fab-stack { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
    z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.help-fab {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    height: 50px; min-width: 50px; padding: 0; border-radius: 999px;
    background: var(--pp-surface); color: var(--pp-text);
    /* An accent-tinted border + glow so the chip is clearly visible on ANY
       background — a plain surface chip vanishes on a dark page. */
    border: 1.5px solid color-mix(in srgb, var(--pp-accent) 32%, var(--pp-border-strong));
    box-shadow: 0 10px 26px color-mix(in srgb, var(--pp-accent) 24%, transparent), 0 3px 10px rgba(0, 0, 0, .22);
    cursor: pointer; text-decoration: none;
    transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, color .14s ease, border-color .14s ease, opacity .18s ease;
}
.help-fab i { font-size: 1.2rem; line-height: 1; }
.help-fab:hover { transform: translateY(-2px);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--pp-accent) 34%, transparent), 0 4px 12px rgba(0, 0, 0, .26); }

/* Back to Projects — the prominent one. Uses the accent-SOFT + accent PAIR,
   which is designed to be readable together in every theme (light, dark,
   dracula, gruvbox), instead of white-on-accent which vanishes on the light
   accents the dark themes use. */
.help-fab-home {
    padding: 0 15px;
    background: var(--pp-accent-soft);
    color: var(--pp-accent);
    border-color: color-mix(in srgb, var(--pp-accent) 55%, transparent);
}
.help-fab-home i, .help-fab-home .help-fab-label { color: var(--pp-accent); }
.help-fab-home:hover, .help-fab-home:focus-visible {
    color: var(--pp-accent);
    background: color-mix(in srgb, var(--pp-accent) 20%, var(--pp-surface));
    border-color: var(--pp-accent);
}
.help-fab-home .help-fab-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
    font-size: .84rem; font-weight: 800; transition: max-width .22s ease, opacity .18s ease, margin .22s ease; }
.help-fab-home:hover .help-fab-label, .help-fab-home:focus-visible .help-fab-label { max-width: 170px; opacity: 1; margin-inline-start: .1rem; }

/* Scroll-to-top — accent icon on a solid surface chip; hidden until scrolled. */
.help-fab-top { color: var(--pp-accent); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }
.help-fab-top i { color: var(--pp-accent); }
.help-fab-top.show { opacity: 1; transform: none; pointer-events: auto; }
.help-fab-top:hover { color: var(--pp-accent); background: var(--pp-accent-soft); border-color: var(--pp-accent); }
@media (prefers-reduced-motion: reduce) {
    .help-fab, .help-fab-home .help-fab-label, .help-fab-top { transition: none; }
}

.help-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: clamp(1rem, 3vw, 2.5rem);
    overflow-y: auto;
    background: var(--pp-app-bg);
    color: var(--pp-text);
}
.help-content-inner { width: min(100%, 1120px); margin: 0 auto; padding-bottom: 3.5rem; }

/* ── Home / landing page ─────────────────────────────────────────────
   The home content sets .help-home; strip the article card chrome so the
   landing can present its own hero + cards edge to edge. */
.help-article:has(.help-home) { padding: 0; border: 0; background: transparent; box-shadow: none; }
.help-home { display: block; }
.help-hero {
    position: relative; overflow: hidden;
    padding: clamp(1.6rem, 4vw, 2.8rem);
    border: 1px solid var(--pp-border); border-radius: 20px;
    background:
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--pp-accent) 20%, transparent), transparent 60%),
        linear-gradient(135deg, color-mix(in srgb, var(--pp-accent) 12%, var(--pp-surface)), var(--pp-surface));
    box-shadow: 0 14px 34px var(--pp-shadow-color);
}
.help-hero .help-eyebrow { display: inline-flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
    color: var(--pp-accent); background: var(--pp-accent-soft);
    border: 1px solid color-mix(in srgb, var(--pp-accent) 35%, var(--pp-border));
    padding: .28rem .7rem; border-radius: 999px; }
.help-hero h1 { margin: .9rem 0 .5rem; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 850; line-height: 1.12; }
.help-hero p { margin: 0; max-width: 60ch; color: var(--pp-text-muted); font-size: clamp(.95rem, 2vw, 1.06rem); line-height: 1.6; }
.help-hero-stats { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.3rem; }
.help-hero-stats div { display: grid; }
.help-hero-stats b { font-size: 1.35rem; font-weight: 850; line-height: 1; color: var(--pp-text); }
.help-hero-stats span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--pp-text-muted); font-weight: 700; margin-top: .25rem; }

.help-sec-head { margin: 2.4rem 0 1rem; }
.help-sec-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.help-sec-head h2 .bi { color: var(--pp-accent); }
.help-sec-head p { margin: .25rem 0 0; color: var(--pp-text-muted); font-size: .88rem; }

.help-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.help-tile {
    display: flex; flex-direction: column; gap: .55rem; height: 100%;
    padding: 1.15rem 1.2rem; border: 1px solid var(--pp-border); border-radius: 16px;
    background: var(--pp-surface); color: var(--pp-text); text-decoration: none;
    box-shadow: 0 1px 2px var(--pp-shadow-color);
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.help-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pp-accent) 45%, var(--pp-border));
    box-shadow: 0 16px 34px var(--pp-shadow-color); color: var(--pp-text); }
.help-tile-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem;
    background: var(--pp-accent-soft); color: var(--pp-accent);
    border: 1px solid color-mix(in srgb, var(--pp-accent) 30%, var(--pp-border)); }
.help-tile h3 { margin: 0; font-size: .98rem; font-weight: 800; display: flex; align-items: center; gap: .45rem; }
.help-tile p { margin: 0; font-size: .83rem; line-height: 1.55; color: var(--pp-text-muted); }
.help-tile .help-tile-go { margin-top: auto; font-size: .78rem; font-weight: 800; color: var(--pp-accent);
    display: inline-flex; align-items: center; gap: .3rem; }
.help-tile .help-badge-dev { font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    color: var(--pp-accent); background: var(--pp-accent-soft); border-radius: 999px; padding: .1rem .4rem;
    border: 1px solid color-mix(in srgb, var(--pp-accent) 30%, var(--pp-border)); }

/* "How to use Help" steps */
.help-steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.help-step { padding: 1.1rem 1.2rem; border: 1px solid var(--pp-border); border-radius: 16px; background: var(--pp-surface-soft); }
.help-step .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-weight: 850; font-size: .9rem;
    background: var(--pp-accent); color: var(--pp-on-accent, #fff); margin-bottom: .6rem; }
.help-step h4 { margin: 0 0 .3rem; font-size: .92rem; font-weight: 800; }
.help-step p { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--pp-text-muted); }
.help-callout { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.4rem;
    padding: 1rem 1.15rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--pp-accent) 30%, var(--pp-border));
    background: var(--pp-accent-soft); font-size: .88rem; }
.help-callout .bi { color: var(--pp-accent); font-size: 1.2rem; flex: none; }
/* Callout tones + component-guide building blocks (reused by every component guide). */
.help-callout-info { border-color: color-mix(in srgb, #3b82f6 34%, var(--pp-border)); background: color-mix(in srgb, #3b82f6 9%, var(--pp-surface)); }
.help-callout-info > .bi { color: #3b82f6; }
.help-callout-warn { border-color: color-mix(in srgb, #f59e0b 42%, var(--pp-border)); background: color-mix(in srgb, #f59e0b 11%, var(--pp-surface)); }
.help-callout-warn > .bi { color: #d97706; }
.help-article p.lead { font-size: 1.05rem; line-height: 1.65; color: var(--pp-text); }
.help-article table.help-table { width: 100%; border-collapse: collapse; margin: 1.1rem 0; font-size: .88rem; display: block; overflow-x: auto; }
.help-article table.help-table th,
.help-article table.help-table td { border: 1px solid var(--pp-border); padding: .55rem .72rem; text-align: left; vertical-align: top; }
.help-article table.help-table thead th { background: var(--pp-surface-soft); font-weight: 700; white-space: nowrap; }
.help-article table.help-table code { white-space: nowrap; }

.help-article {
    padding: clamp(1.15rem, 2.5vw, 2rem);
    border: 1px solid var(--pp-border);
    border-radius: 16px;
    background: var(--pp-surface);
    color: var(--pp-text);
    box-shadow: 0 14px 34px var(--pp-shadow-color);
}
.help-article :where(h1, h2, h3, h4, h5, h6, p, li, strong, th, td) { color: var(--pp-text); }
.help-article h1 { margin-bottom: .9rem; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.help-article h2 { margin-top: 2rem; padding-bottom: .45rem; border-bottom: 1px solid var(--pp-border); font-size: 1.25rem; }
.help-article h3 { margin-top: 1.35rem; font-size: 1rem; }
.help-article p,
.help-article li { line-height: 1.7; }
.help-article a:not(.btn) { color: var(--pp-accent); text-underline-offset: 3px; }
.help-article a:not(.btn):hover { color: color-mix(in srgb, var(--pp-accent) 72%, var(--pp-text)); }

/* Related-topic link buttons: theme accent (not Bootstrap blue), readable in
   every theme, with a soft accent-tint on hover instead of a hard fill. */
.help-article .btn-outline-primary {
    --bs-btn-color: var(--pp-accent);
    --bs-btn-border-color: color-mix(in srgb, var(--pp-accent) 45%, var(--pp-border));
    --bs-btn-hover-color: var(--pp-accent);
    --bs-btn-hover-bg: color-mix(in srgb, var(--pp-accent) 15%, var(--pp-surface));
    --bs-btn-hover-border-color: var(--pp-accent);
    --bs-btn-active-color: var(--pp-accent);
    --bs-btn-active-bg: color-mix(in srgb, var(--pp-accent) 20%, var(--pp-surface));
    --bs-btn-active-border-color: var(--pp-accent);
    --bs-btn-focus-shadow-rgb: transparent;
    color: var(--pp-accent);
    border-color: color-mix(in srgb, var(--pp-accent) 45%, var(--pp-border));
    background: transparent;
    border-radius: 9px;
    font-weight: 650;
    margin-bottom: .35rem;
}
.help-article .btn-outline-primary:hover,
.help-article .btn-outline-primary:focus-visible {
    color: var(--pp-accent);
    background: color-mix(in srgb, var(--pp-accent) 15%, var(--pp-surface));
    border-color: var(--pp-accent);
    box-shadow: none;
}

.help-article code {
    padding: .14em .38em;
    border: 1px solid var(--pp-border);
    border-radius: 5px;
    background: var(--pp-surface-muted);
    color: var(--pp-accent);
    font-size: .88em;
}
.help-article pre {
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid var(--pp-border);
    border-inline-start: 4px solid var(--pp-accent);
    border-radius: 10px;
    background: var(--pp-input-bg);
    color: var(--pp-text);
}
.help-article pre code { padding: 0; border: 0; background: transparent; color: inherit; }
.help-article :where(table, .table) {
    display: table;
    width: 100%;
    margin-block: 1rem;
    border-collapse: collapse;
    color: var(--pp-text);
}
.help-article :where(th, td) { padding: .65rem .75rem; border: 1px solid var(--pp-border); }
.help-article th { background: var(--pp-surface-soft); }
.help-article tr:nth-child(even) td { background: color-mix(in srgb, var(--pp-surface-soft) 66%, transparent); }
.help-article :where(.list-group-item, .card) { border-color: var(--pp-border); background: var(--pp-surface-soft); color: var(--pp-text); }
.help-article .list-group-item:hover { background: var(--pp-surface-muted); }
.help-article .text-muted { color: var(--pp-text-muted) !important; }
.help-article .alert { border-color: var(--pp-border-strong); color: var(--pp-text); }
.help-article .alert-info { background: color-mix(in srgb, #0ea5e9 14%, var(--pp-surface)); }
.help-article .alert-warning { background: color-mix(in srgb, #f59e0b 15%, var(--pp-surface)); }
.help-article .alert-danger { background: color-mix(in srgb, #ef4444 14%, var(--pp-surface)); }

@media (max-width: 767.98px) {
    .help-page { overflow: auto; }
    .help-container { display: block; height: auto; min-height: 100vh; }
    .help-sidebar {
        position: sticky;
        z-index: 20;
        top: 0;
        width: 100%;
        padding: .75rem;
        border-inline-end: 0;
        border-bottom: 1px solid var(--pp-border);
        box-shadow: 0 8px 22px var(--pp-shadow-color);
    }
    .help-sidebar-head { margin-bottom: .55rem; }
    .help-search { margin-bottom: .45rem !important; }
    .help-nav-scroll { display: flex; flex-flow: row nowrap; overflow-x: auto; overflow-y: hidden;
        gap: .35rem; margin: 0; padding: 0 0 .25rem; }
    .help-nav-scroll .nav-link { white-space: nowrap; flex: 0 0 auto; }
    .help-nav-scroll .nav-link.active { box-shadow: none; }
    .help-nav-label { display: none; }
    .help-sidebar-foot { display: none; }        /* the floating FAB covers this on mobile */
    .help-content { overflow: visible; }
    .help-fab-home .help-fab-label { display: none; }   /* keep the FAB compact on phones */
}

@media (prefers-reduced-motion: reduce) {
    .help-sidebar .nav-link { transition: none; }
}

/* ============================================================
   Help engine v2 — grouped sidebar · "On this page" TOC rail ·
   heading anchors · Prev/Next navigation
   ============================================================ */
.help-nav-label { display: flex; align-items: center; gap: .45rem; }
.help-nav-label > .bi:first-child { opacity: .6; font-size: .9em; }

/* Two-column article + sticky TOC on wide screens. */
.help-content-inner.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1.8rem; align-items: start; }
@media (max-width: 1100px) { .help-content-inner.has-toc { grid-template-columns: 1fr; } .help-toc { display: none !important; } }

.help-toc { position: sticky; top: 1.2rem; align-self: start; font-size: .82rem; }
.help-toc-h { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-text-muted); padding: 0 0 .5rem .8rem; }
.help-toc-list { display: flex; flex-direction: column; border-left: 2px solid var(--pp-border); }
.help-toc-item { display: block; padding: .28rem 0 .28rem .8rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--pp-text-muted); text-decoration: none; line-height: 1.35; transition: color .12s, border-color .12s; }
.help-toc-item.lvl-h3 { padding-left: 1.6rem; font-size: .95em; }
.help-toc-item:hover { color: var(--pp-text); }
.help-toc-item.active { color: var(--pp-accent); border-left-color: var(--pp-accent); font-weight: 600; }

/* Hover-to-reveal anchor link on headings (deep-linking). */
.help-article :where(h2, h3) { position: relative; }
.help-anchor { position: absolute; left: -1.1rem; top: 0; opacity: 0; text-decoration: none; color: var(--pp-accent); font-weight: 400; transition: opacity .12s; }
.help-article :where(h2, h3):hover .help-anchor, .help-anchor:focus { opacity: .6; }
.help-anchor:hover { opacity: 1 !important; }
.help-article :where(h2, h3):target { scroll-margin-top: 1rem; }

/* Prev / Next between guides. */
.help-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--pp-border); }
@media (max-width: 560px) { .help-prevnext { grid-template-columns: 1fr; } }
.help-pn { display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1.05rem; border: 1px solid var(--pp-border); border-radius: 12px; text-decoration: none !important; background: var(--pp-surface); transition: border-color .12s, transform .12s; }
.help-pn:hover { border-color: color-mix(in srgb, var(--pp-accent) 55%, var(--pp-border)); transform: translateY(-1px); }
.help-pn-next { text-align: right; align-items: flex-end; }
.help-pn-dir { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pp-text-muted); }
.help-pn-title { font-weight: 700; color: var(--pp-accent); }

/* ============================================================
   "Where do I paste this?" — a label above every example that
   names the exact event / location + language.
   ============================================================ */
.help-where { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 1.1rem 0 .1rem;
    padding: .5rem .75rem; border: 1px solid color-mix(in srgb, var(--pp-accent) 32%, var(--pp-border));
    border-left: 3px solid var(--pp-accent); border-radius: 10px; background: color-mix(in srgb, var(--pp-accent) 7%, var(--pp-surface));
    font-size: .85rem; }
.help-where-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .66rem; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; color: var(--pp-accent); }
.help-where-path { color: var(--pp-text); }
.help-where-path b { color: var(--pp-text); font-weight: 700; }
.help-where-lang { margin-left: auto; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .66rem;
    font-weight: 700; padding: .12rem .45rem; border-radius: 5px; }
.help-where-lang.php { color: #a99cf0; background: color-mix(in srgb, #7c6cd8 16%, transparent); }
.help-where-lang.js  { color: #d9a441; background: color-mix(in srgb, #e0a63c 16%, transparent); }
.help-where + pre { margin-top: .4rem; }
/* Page-lifecycle strip */
.help-life { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 1.2rem 0; padding: .9rem 1rem;
    border: 1px solid var(--pp-border); border-radius: 12px; background: var(--pp-surface-soft); font-size: .82rem; }
.help-life .step { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .6rem; border-radius: 999px;
    background: var(--pp-surface); border: 1px solid var(--pp-border); font-family: ui-monospace, Menlo, monospace; font-size: .74rem; }
.help-life .arw { color: var(--pp-text-muted); }
.help-life .step.php { border-color: color-mix(in srgb, #7c6cd8 45%, var(--pp-border)); }
.help-life .step.js  { border-color: color-mix(in srgb, #e0a63c 45%, var(--pp-border)); }
