/**
 * Playbook Detail — World-Class Editorial Reader Shell v1.2.2.7
 * Premium dark hero + warm reading canvas + glass TOC rail.
 * Modern 2026 design: depth, hierarchy, editorial authority.
 */

.pb-detail {
    --pb-accent: #4f46e5;
    --pb-accent-rgb: 79, 70, 229;
    --pb-obsidian: #06070c;
    --pb-ink: #0b1220;
    --pb-cyan: #22d3ee;
    --pb-border: rgba(15, 23, 42, 0.07);
    --pb-text: #1e293b;
    --pb-muted: #64748b;
    --pb-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --pb-nav-offset: clamp(5.5rem, 11vw, 7rem);
    --pb-content-max: 46rem;
    --pb-rail-w: 280px;
    background: #eef2f7;
}

.pb-detail #za-pb-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 9000;
    background: linear-gradient(90deg, var(--pb-accent), var(--pb-cyan), #10b981);
    pointer-events: none;
    box-shadow: 0 0 8px rgba(var(--pb-accent-rgb), 0.6);
}

body:has(#playbook-detail) .navbar-wrapper {
    z-index: 10150;
}

/* ── HERO: Full-Bleed Cinematic Dark ── */
.pb-hero {
    background: var(--pb-obsidian);
    color: #fff;
    padding: var(--pb-nav-offset) 0 0;
    position: relative;
    overflow: hidden;
}

.pb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 95% 5%, rgba(var(--pb-accent-rgb), 0.28), transparent 55%),
        radial-gradient(ellipse 60% 50% at 5% 92%, rgba(34, 211, 238, 0.18), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(16, 185, 129, 0.06), transparent 70%),
        linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.pb-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 90%);
    pointer-events: none;
}

.pb-hero-top {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem clamp(1rem, 5vw, 2.5rem) 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pb-hero-back,
.pb-hero-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s var(--pb-ease);
    cursor: pointer;
}

.pb-hero-back:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(34, 211, 238, 0.5);
    transform: translateX(-3px);
    color: #fff;
}

.pb-hero-export {
    margin-left: auto;
    font-family: var(--ff-mono, 'JetBrains Mono', monospace);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pb-hero-export:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.55);
    color: #fff;
}

.pb-hero-export svg { color: var(--pb-cyan); }

.pb-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2.5rem) 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: end;
}

.pb-hero-copy { max-width: 58ch; }

.pb-hero-eyebrow {
    font-family: var(--ff-mono, 'JetBrains Mono', monospace);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--pb-cyan);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.pb-hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pb-cyan);
    box-shadow: 0 0 16px var(--pb-cyan), 0 0 32px rgba(34, 211, 238, 0.4);
    animation: pb-dot-pulse 2.5s ease-in-out infinite;
}

@keyframes pb-dot-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--pb-cyan), 0 0 16px rgba(34, 211, 238, 0.3); }
    50% { box-shadow: 0 0 20px var(--pb-cyan), 0 0 40px rgba(34, 211, 238, 0.6); }
}

.pb-hero-title {
    font-family: var(--ff-head, 'Sora', sans-serif);
    font-size: clamp(1.65rem, 5vw, 2.9rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.045em;
    margin: 0 0 1.1rem;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.5);
}

.pb-hero-desc {
    margin: 0 0 1.5rem;
    font-size: clamp(0.94rem, 2.2vw, 1.08rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.58);
    max-width: 52ch;
}

.pb-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pb-hero-stat-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    min-width: 5rem;
    transition: border-color 0.3s;
}

.pb-hero-stat-pill:hover {
    border-color: rgba(var(--pb-accent-rgb), 0.35);
}

.pb-hero-stat-val {
    font-family: var(--ff-mono, 'JetBrains Mono', monospace);
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.pb-hero-stat-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.35);
}

/* Hero media — much taller on wide screens */
.pb-hero-media {
    width: 100%;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    aspect-ratio: 16 / 9;
    max-height: min(45vw, 280px);
    background: linear-gradient(135deg, #0c0c18, #0f1024);
    position: relative;
}

.pb-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(6, 7, 12, 0.4));
    pointer-events: none;
}

.pb-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    transition: transform 0.6s var(--pb-ease);
}

.pb-hero-media:hover img {
    transform: scale(1.03);
}

@media (min-width: 960px) {
    .pb-hero-inner {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3rem;
        padding-bottom: 3.5rem;
        align-items: center;
    }

    .pb-hero-media {
        max-height: 280px;
        max-width: 560px;
        justify-self: end;
        align-self: center;
    }
}

/* ── READING SHELL ── */
.pb-read-shell {
    max-width: 1280px;
    margin: -24px auto 0;
    padding: 0 clamp(1rem, 4vw, 2.5rem) 6rem;
    position: relative;
    z-index: 2;
}

.pb-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: linear-gradient(180deg, #fafbfd 0%, #f1f5f9 100%);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 28px 28px 0 0;
    padding: 2.5rem clamp(1rem, 3.5vw, 2.5rem) 3.5rem;
    box-shadow:
        0 -16px 48px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

@media (min-width: 1140px) {
    .pb-layout {
        grid-template-columns: minmax(0, 1fr) var(--pb-rail-w);
        gap: 2.5rem;
        padding-top: 3rem;
    }
}

/* ── ARTICLE CARD ── */
.pb-article {
    min-width: 0;
    max-width: var(--pb-content-max);
    margin-inline: auto;
    width: 100%;
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: 24px;
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 24px 60px rgba(15, 23, 42, 0.08);
}

@media (min-width: 1140px) {
    .pb-article {
        margin-inline: 0;
        max-width: none;
    }
}

/* ── PRACTITIONER CARD ── */
.pb-practitioner-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.25rem;
    align-items: start;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid rgba(var(--pb-accent-rgb), 0.12);
    border-radius: 20px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 2.25rem;
    box-shadow:
        0 8px 32px rgba(var(--pb-accent-rgb), 0.06),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    position: relative;
    overflow: hidden;
}

.pb-practitioner-card::before {
    content: 'GUIDE';
    grid-column: 2;
    grid-row: 1;
    font-family: var(--ff-mono, 'JetBrains Mono', monospace);
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pb-accent);
    margin-bottom: -0.4rem;
}

.pb-practitioner-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pb-accent), var(--pb-cyan));
    border-radius: 20px 20px 0 0;
}

.pb-practitioner-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    object-fit: cover;
    grid-row: 1 / span 2;
    border: 2px solid rgba(var(--pb-accent-rgb), 0.2);
    box-shadow: 0 8px 24px rgba(var(--pb-accent-rgb), 0.18);
}

.pb-practitioner-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--pb-ink);
}

.pb-practitioner-role {
    font-size: 0.78rem;
    color: var(--pb-muted);
    margin-bottom: 0.4rem;
}

.pb-practitioner-text {
    grid-column: 1 / -1;
    font-size: 0.93rem;
    line-height: 1.65;
    color: #475569;
    margin: 0;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
}

/* ── CHAPTERS — Timeline Editorial Cards ── */
.pb-detail .za-pb-chapter {
    scroll-margin-top: clamp(5.5rem, 12vw, 7.5rem);
    position: relative;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.35rem, 3vw, 1.85rem) clamp(1.5rem, 3vw, 2rem) clamp(1.65rem, 3.5vw, 2.1rem);
    margin-bottom: 1.5rem;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.04),
        0 12px 36px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.3s var(--pb-ease), border-color 0.3s;
}

.pb-detail .za-pb-chapter:hover {
    border-color: rgba(var(--pb-accent-rgb), 0.15);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.04),
        0 20px 48px rgba(15, 23, 42, 0.09);
}

.pb-detail .za-pb-chapter::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.35rem;
    bottom: 1.35rem;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, var(--pb-accent), var(--pb-cyan));
    opacity: 0.9;
}

.pb-detail .za-pb-intro {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-color: rgba(var(--pb-accent-rgb), 0.1);
    margin-bottom: 2rem;
}

.pb-detail .za-pb-chapter-heading {
    font-family: var(--ff-head, 'Sora', sans-serif);
    font-size: clamp(1.22rem, 3.5vw, 1.65rem);
    font-weight: 900;
    color: var(--pb-ink);
    line-height: 1.18;
    margin: 0 0 1.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.7rem;
    letter-spacing: -0.02em;
}

.pb-detail .za-pb-ch-num {
    font-family: var(--ff-mono, 'JetBrains Mono', monospace);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--pb-accent);
    background: rgba(var(--pb-accent-rgb), 0.09);
    border: 1px solid rgba(var(--pb-accent-rgb), 0.22);
    padding: 5px 11px;
    border-radius: 8px;
}

/* Rich text typography */
.pb-detail .za-p-rich,
.pb-detail .za-pb-chapter-body {
    font-size: 1.04rem;
    line-height: 1.85;
    color: var(--pb-text);
}

.pb-detail .za-p-rich h2 {
    font-size: 1.26rem;
    font-weight: 800;
    margin: 2rem 0 0.7rem;
    padding-left: 0.9rem;
    border-left: 3px solid var(--pb-accent);
    color: var(--pb-ink);
    letter-spacing: -0.02em;
}

.pb-detail .za-p-rich h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 1.6rem 0 0.55rem;
    color: #1e2d3d;
}

.pb-detail .za-p-rich h4 {
    font-size: 0.96rem;
    font-weight: 700;
    margin: 1.2rem 0 0.4rem;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pb-detail .za-p-rich p { margin: 0 0 1.15rem; }

.pb-detail .za-p-rich a {
    color: var(--pb-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(var(--pb-accent-rgb), 0.35);
    transition: text-decoration-color 0.2s;
}

.pb-detail .za-p-rich a:hover {
    text-decoration-color: var(--pb-accent);
}

.pb-detail .za-p-rich strong {
    color: #0f172a;
    font-weight: 700;
}

.pb-detail .za-p-rich ul,
.pb-detail .za-p-rich ol {
    padding-left: 1.5rem;
    margin: 0 0 1.15rem;
}

.pb-detail .za-p-rich li {
    margin-bottom: 0.4rem;
    line-height: 1.75;
}

.pb-detail .za-p-rich ul > li::marker {
    color: var(--pb-accent);
}

/* Images */
.pb-detail #pb-content .md-image,
.pb-detail #pb-content figure.md-image,
.pb-detail #pb-content figure.md-image-showcase {
    margin: 2rem auto;
    width: min(100%, calc(100% * var(--ds-diagram-showcase-scale, 0.78)));
    max-width: var(--ds-diagram-showcase-max, min(860px, calc((100vw - 2rem) * 0.78)));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--pb-border);
    background: #fff;
    box-shadow:
        0 4px 28px rgba(15, 23, 42, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    padding: 0.5rem;
}

.pb-detail #pb-content .md-image img,
.pb-detail #pb-content figure.md-image-showcase img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 12px;
    cursor: zoom-in;
}

/* Tables */
.pb-detail .za-p-rich .table-wrapper,
.pb-detail .za-p-rich .za-table-container { margin: 1.75rem 0; }

.pb-detail .za-p-rich table:not(.za-luxury-table),
.pb-detail .za-p-rich .za-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff !important;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.pb-detail .za-p-rich table:not(.za-luxury-table) th,
.pb-detail .za-p-rich .za-comparison-table th,
.pb-detail .za-p-rich .za-luxury-table th {
    background: #e8ecf4 !important;
    color: #0f172a !important;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.8rem 1rem;
}

.pb-detail .za-p-rich table:not(.za-luxury-table) td,
.pb-detail .za-p-rich .za-comparison-table td,
.pb-detail .za-p-rich .za-luxury-table td {
    color: #334155 !important;
    background: #fff !important;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.pb-detail .za-p-rich tr:last-child td {
    border-bottom: none;
}

/* Blockquotes */
.pb-detail .za-p-rich blockquote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--pb-accent);
    background: rgba(var(--pb-accent-rgb), 0.04);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ── CONTENTS RAIL ── */
.pb-toc-col {
    position: sticky;
    top: calc(var(--pb-nav-offset) + 16px);
    align-self: start;
    max-height: calc(100vh - var(--pb-nav-offset) - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--pb-accent-rgb), 0.2) transparent;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pb-toc-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 12px 40px rgba(15, 23, 42, 0.09),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pb-toc-header {
    padding: 1rem 1.1rem 0.8rem;
    font-family: var(--ff-mono, 'JetBrains Mono', monospace);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pb-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.pb-toc-header-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pb-ink);
}

.pb-toc-read-pct {
    font-size: 0.6rem;
    color: var(--pb-accent);
    font-weight: 800;
    background: rgba(var(--pb-accent-rgb), 0.08);
    padding: 2px 8px;
    border-radius: 999px;
}

.pb-toc-progress {
    height: 3px;
    background: rgba(var(--pb-accent-rgb), 0.08);
}

.pb-toc-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--pb-accent), var(--pb-cyan));
    transition: width 0.4s var(--pb-ease);
}

.pb-toc-list-scroll {
    max-height: min(50vh, 28rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--pb-accent-rgb), 0.15) transparent;
}

.pb-toc-list {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0 0.6rem;
}

.pb-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pb-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    border-radius: 0 8px 8px 0;
    margin-right: 0.5rem;
}

.pb-toc-link:hover,
.pb-toc-link.is-active {
    color: var(--pb-accent);
    background: rgba(var(--pb-accent-rgb), 0.07);
    border-left-color: var(--pb-accent);
}

.pb-toc-num {
    flex-shrink: 0;
    font-family: var(--ff-mono, 'JetBrains Mono', monospace);
    font-size: 0.58rem;
    font-weight: 800;
    opacity: 0.6;
    min-width: 1.4rem;
    padding-top: 0.15rem;
}

.pb-toc-link--overview .pb-toc-num {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    color: var(--pb-cyan);
}

/* Author card in rail */
.pb-author-card {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--pb-border);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.pb-author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(var(--pb-accent-rgb), 0.18);
}

/* ── MOBILE TOC ── */
.pb-mobile-toc-btn {
    display: none;
    position: fixed;
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--pb-obsidian);
    color: #fff;
    font-family: var(--ff-mono, 'JetBrains Mono', monospace);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
}

@media (max-width: 1139px) {
    .pb-toc-col { display: none; }
    .pb-mobile-toc-btn { display: inline-flex; }
}

.pb-toc-drawer {
    position: fixed;
    inset: 0;
    z-index: 1300;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.pb-toc-drawer.is-open {
    pointer-events: auto;
    opacity: 1;
}

.pb-toc-drawer-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.pb-toc-drawer-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 1.35rem 1.1rem 2.75rem;
    transform: translateY(100%);
    transition: transform 0.4s var(--pb-ease);
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.2);
}

.pb-toc-drawer.is-open .pb-toc-drawer-panel {
    transform: translateY(0);
}

.pb-toc-drawer-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 0 auto 1.25rem;
}

/* ── CTA STRIP ── */
.pb-cta-strip {
    margin-top: 2.75rem;
    padding: 2.25rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid rgba(var(--pb-accent-rgb), 0.12);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.pb-cta-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pb-accent), var(--pb-cyan));
}

.pb-cta-strip h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--pb-ink);
    letter-spacing: -0.02em;
}

.pb-cta-strip p {
    color: var(--pb-muted);
    margin-bottom: 1.25rem;
}

/* ── END MARKER ── */
.za-pb-end-marker {
    text-align: center;
    font-family: var(--ff-mono, 'JetBrains Mono', monospace);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.2);
    padding: 2.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.za-pb-end-marker::before,
.za-pb-end-marker::after {
    content: '';
    height: 1px;
    width: 2.5rem;
    background: rgba(15, 23, 42, 0.15);
}

/* ── CHECKLIST ── */
.pb-detail .za-pb-checklist {
    margin: 1.75rem 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.18);
    background: linear-gradient(180deg, #0c0c12, #0f1018);
}

/* ── AI SUMMARY / TLDR ── */
.pb-detail .za-pb-ai-summary,
.pb-detail .za-tldr-box {
    margin: 1.35rem 0;
    padding: 1.25rem 1.4rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--pb-accent-rgb), 0.14);
    background: linear-gradient(165deg, #fafbff 0%, #f5f8ff 100%);
    position: relative;
    overflow: hidden;
}

.pb-detail .za-tldr-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--pb-accent), var(--pb-cyan));
}

.pb-detail .za-author-nexus { margin-top: 2.75rem; }

/* ── BREADCRUMB ── */
.pb-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.pb-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.pb-hero-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.pb-hero-breadcrumb .sep {
    opacity: 0.35;
}

.pb-hero-breadcrumb .current {
    color: var(--pb-cyan);
    font-weight: 600;
}

/* ── MOBILE HERO ── */
@media (max-width: 480px) {
    .pb-hero-export-label,
    .pb-hero-back span { display: none; }
    .pb-hero-export { padding: 9px 13px; }
    .pb-hero-back { padding: 9px 12px; }
    .pb-hero-title { font-size: 1.5rem; }
}

/* ── PRINT ── */
.za-print-cover { display: none; }

@media print {
    .pb-hero-top,
    .pb-toc-col,
    .pb-mobile-toc-btn,
    .navbar-wrapper,
    .footer { display: none !important; }
    .za-print-cover { display: block !important; }
    .pb-detail { background: #fff; }
    .pb-article { box-shadow: none; border: 1px solid #ddd; }
}

/* ── SIDEBAR UTILITIES ── */
.sidebar-utilities {
    margin-top: 0.25rem;
}
