/* Playbooks directory and playbook pages, in the same style as the Playbook Vault. */
.pb-page {
  --pb-panel: #141d33;
  --pb-panel-2: #1a2540;
  --pb-line: #3d5277;
  --pb-line-soft: #2a3a5a;
  --pb-text: #eef2f8;
  --pb-muted: #a9b8d0;
  --pb-coral: #f2878a;
  --pb-green: #8fd6a8;
  color: var(--pb-text);
  padding-bottom: 72px;
}
.pb-page .home-pixel { width: 20px; height: 20px; flex: none; }
.pb-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--pb-coral); font: 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pb-kicker .home-pixel { width: 16px; height: 16px; }
.pb-section { margin-top: clamp(40px, 6vw, 72px); }
.pb-page h2 { margin: 0 0 22px; font: 800 clamp(24px, 2.8vw, 36px)/1.1 var(--body); letter-spacing: -.035em; color: var(--pb-text); }
.pb-lead { margin: 16px 0 0; max-width: 56ch; color: var(--pb-muted); font-size: 18px; line-height: 1.55; }
.pb-page :is(a, summary, button, video):focus-visible { outline: 3px solid var(--pb-coral); outline-offset: 3px; }
.pb-button { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 10px; background: var(--pb-coral); color: #1a1020 !important; font-weight: 800; text-decoration: none; box-shadow: 3px 4px #070b16; }
.pb-button:hover { background: #f6a1a3; }
.pb-link { color: var(--pb-text) !important; font-weight: 700; }
.pb-link-button { padding: 0; border: 0; background: none; color: var(--pb-text); font: 700 15px var(--body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* Panels follow the owner's sketch: video and info, mind map, then details. */
.pb-panel { margin-top: 22px; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--pb-line); border-radius: 16px; background: var(--pb-panel); box-shadow: 5px 7px #070b16; }
.pb-crumbs { display: flex; gap: 8px; padding-top: clamp(24px, 4vw, 40px); color: var(--pb-muted); font-size: 14px; }
.pb-crumbs a { color: var(--pb-muted); }

/* Panel 1: preview video and info */
.pb-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.pb-hero h1 { margin: 0; color: var(--pb-text); font: 800 clamp(32px, 4vw, 54px)/1.02 var(--body); letter-spacing: -.05em; text-wrap: balance; }
.pb-video { position: relative; margin: 0; }
.pb-video video, .pb-video-pending { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--pb-line); border-radius: 10px; background: #0b1120; }
.pb-video-pending { display: grid; place-content: center; justify-items: center; gap: 10px; background: repeating-linear-gradient(90deg, #7997be12 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, #7997be12 0 1px, transparent 1px 28px), #0b1120; color: var(--pb-muted); text-align: center; }
.pb-video-pending[hidden] { display: none; }
.pb-video-pending .home-pixel { width: 34px; height: 34px; color: var(--pb-coral); }
.pb-video-pending p { margin: 0; font-weight: 700; }
.pb-video figcaption { margin-top: 8px; color: var(--pb-muted); font: 12px var(--mono); }
.pb-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pb-facts li { margin: 0; padding: 6px 12px; border: 1px solid var(--pb-line); border-radius: 8px; color: var(--pb-muted); font-size: 14px; }
.pb-facts strong { color: var(--pb-text); font: 700 15px var(--mono); margin-right: 4px; }
.pb-buy { margin-top: 22px; }
.pb-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; color: var(--pb-muted); }
.pb-price strong { color: var(--pb-text); font: 800 38px/1 var(--body); letter-spacing: -.03em; }
.pb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

/* Panel 2: mind map */
.pb-map-panel { display: grid; gap: 18px; }
.pb-map-panel .mm-svg { max-width: 980px; margin: 0 auto; }
.pb-map-copy h2 { margin-bottom: 12px; }
.pb-map-copy p:last-child { margin: 0; color: var(--pb-muted); line-height: 1.55; }
.pb-map-pending { display: grid; place-items: center; min-height: 220px; border: 1px dashed var(--pb-line); border-radius: 10px; background: repeating-linear-gradient(90deg, #7997be12 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, #7997be12 0 1px, transparent 1px 28px), #0f1628; }
.pb-map-pending p { margin: 0; padding: 8px 14px; border: 1px solid var(--pb-line); border-radius: 999px; background: var(--pb-panel-2); color: var(--pb-muted); font: 600 14px var(--body); }

/* Panel 3: details */
.pb-unlocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pb-unlocks li { position: relative; margin: 0; padding: 22px 20px; border: 1px solid var(--pb-line); border-radius: 12px; background: var(--pb-panel-2); }
.pb-unlocks li.is-coming { border-style: dashed; background: #111a2e; }
.pb-unlocks .home-pixel { width: 26px; height: 26px; color: var(--pb-coral); }
.pb-unlocks h3 { margin: 14px 0 8px; color: var(--pb-text); font: 700 18px/1.25 var(--body); }
.pb-unlocks p { margin: 0 0 30px; color: var(--pb-muted); font-size: 15px; line-height: 1.5; }
.pb-tag { position: absolute; left: 20px; bottom: 16px; padding: 2px 9px; border: 1px solid #3f7a5a; border-radius: 999px; color: var(--pb-green); font: 11px/1.6 var(--mono); }
.is-coming .pb-tag { border-color: var(--pb-line); color: var(--pb-muted); }
.pb-chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.pb-chapters > li { margin: 0; }
.pb-chapters details { border: 1px solid var(--pb-line); border-radius: 12px; background: var(--pb-panel-2); }
.pb-chapters details[open] { border-color: var(--pb-coral); }
.pb-chapters summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.pb-chapters summary::-webkit-details-marker { display: none; }
.pb-chapters summary::after { content: '+'; margin-left: 8px; color: var(--pb-muted); font: 700 18px var(--mono); }
.pb-chapters details[open] summary::after { content: '−'; color: var(--pb-coral); }
.pb-num { color: var(--pb-coral); font: 600 14px var(--mono); flex: none; }
.pb-chapter-title { font-weight: 700; line-height: 1.3; }
.pb-count { margin-left: auto; color: var(--pb-muted); font: 12px var(--mono); white-space: nowrap; }
.pb-chapters details ol { margin: 0; padding: 0 18px 16px 52px; color: var(--pb-muted); }
.pb-chapters details li { margin: 0 0 6px; }
.pb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pb-steps li { margin: 0; padding: 22px 20px; border: 1px solid var(--pb-line); border-radius: 12px; background: var(--pb-panel-2); }
.pb-steps .pb-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--pb-coral); border-radius: 50%; }
.pb-steps h3 { margin: 14px 0 6px; color: var(--pb-text); font: 700 18px/1.25 var(--body); }
.pb-steps p { margin: 0; color: var(--pb-muted); line-height: 1.5; }
.pb-faq { display: grid; gap: 10px; max-width: 820px; }
.pb-faq details { border: 1px solid var(--pb-line); border-radius: 10px; background: var(--pb-panel-2); }
.pb-faq summary { padding: 16px 18px; cursor: pointer; font-weight: 700; }
.pb-faq p { margin: 0; padding: 0 18px 16px; color: var(--pb-muted); line-height: 1.55; }
.pb-faq a { color: var(--pb-text); }
.pb-final { padding: clamp(28px, 4vw, 44px); border: 1px solid var(--pb-coral); border-radius: 14px; background: var(--pb-panel); text-align: center; }
.pb-final h2 { margin-bottom: 8px; }
.pb-final p { margin: 0 0 20px; color: var(--pb-muted); }

/* Directory */
.pb-dir-head { padding-top: clamp(36px, 6vw, 72px); }
.pb-dir-head h1 { margin: 0; color: var(--pb-text); font: 800 clamp(40px, 5vw, 66px)/1 var(--body); letter-spacing: -.05em; }
.pb-status { align-self: flex-start; padding: 2px 9px; border: 1px solid var(--pb-line); border-radius: 999px; color: var(--pb-muted) !important; font: 11px/1.6 var(--mono) !important; }
.pb-status.is-live { border-color: #3f7a5a; color: var(--pb-green) !important; }
.pb-cover { position: relative; display: block; aspect-ratio: 16 / 9; padding: 22px; background: linear-gradient(135deg, #24365b, #121b31); border-bottom: 1px solid var(--pb-line); color: var(--pb-text); }
.pb-cover.is-muted { background: linear-gradient(135deg, #1b2740, #10172a); color: #9fb0ca; }
.pb-cover-title { display: block; font: 700 clamp(22px, 2.4vw, 30px)/1 var(--desk-display, monospace); letter-spacing: .02em; }
.pb-cover-title b { color: var(--pb-coral); }
.pb-cover .pb-cover-icon { position: absolute; right: 22px; bottom: 20px; width: 40px; height: 40px; color: var(--pb-coral); opacity: .8; }
.pb-cover-brand { position: absolute; left: 22px; bottom: 18px; color: var(--pb-muted); font: 12px var(--mono); }

@media (max-width: 960px) {
  .pb-hero { grid-template-columns: minmax(0, 1fr); }
  .pb-unlocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pb-unlocks, .pb-chapters, .pb-steps { grid-template-columns: minmax(0, 1fr); }
  .pb-count { display: none; }
}

/* Directory: spotlight for the live playbook. */
.pb-spot { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: clamp(24px, 3vw, 36px); border-color: #56709a; background: radial-gradient(120% 140% at 100% 0, #23325a 0, var(--pb-panel) 55%); }
.pb-spot h2 { margin: 12px 0 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.04; text-wrap: balance; }
.pb-spot h2 a { color: var(--pb-text); text-decoration: none; }
.pb-spot h2 a:hover { text-decoration: underline; text-underline-offset: .15em; }
.pb-spot-lead { margin: 14px 0 0; color: var(--pb-muted); font-size: 17px; line-height: 1.55; }
.pb-spot-kinds { margin: 12px 0 0; color: var(--pb-muted); font: 13px/1.5 var(--mono); }
.pb-section-lead { margin: -8px 0 22px; max-width: 60ch; color: var(--pb-muted); line-height: 1.55; }

/* Inside every playbook: four parts around one cover, joined by lines. */
.pb-anatomy-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr); grid-template-areas: "lessons core files" "video core map"; gap: 18px clamp(28px, 4vw, 56px); align-items: center; }
.pb-part { position: relative; padding: 20px; border: 1px solid var(--pb-line); border-radius: 12px; background: var(--pb-panel-2); }
.pb-part .home-pixel { width: 28px; height: 28px; }
.pb-part h3 { margin: 12px 0 6px; color: var(--pb-text); font: 700 18px/1.25 var(--body); }
.pb-part p { margin: 0; color: var(--pb-muted); line-height: 1.5; }
.pb-part-lessons { grid-area: lessons; } .pb-part-files { grid-area: files; } .pb-part-video { grid-area: video; } .pb-part-map { grid-area: map; }
.pb-anatomy-core { grid-area: core; position: relative; }
.pb-anatomy-core .pb-cover { border: 1px solid #56709a; border-radius: 12px; box-shadow: 5px 7px #070b16; }
/* Connector from each part towards the cover, with a light travelling inwards. */
.pb-part::after { content: ""; position: absolute; top: 50%; width: clamp(28px, 4vw, 56px); height: 2px; background: linear-gradient(90deg, var(--pb-line) 0 100%); }
.pb-part-lessons::after, .pb-part-video::after { left: 100%; }
.pb-part-files::after, .pb-part-map::after { right: 100%; }
.pb-part::before { content: ""; position: absolute; top: calc(50% - 1px); z-index: 1; width: 10px; height: 4px; border-radius: 2px; background: var(--pb-coral); box-shadow: 0 0 8px var(--pb-coral); opacity: 0; }
.pb-part-lessons::before, .pb-part-video::before { left: 100%; animation: pb-in-right 3.2s ease-in-out infinite; }
.pb-part-files::before, .pb-part-map::before { right: 100%; animation: pb-in-left 3.2s ease-in-out infinite; }
.pb-part-video::before, .pb-part-map::before { animation-delay: 1.6s; }
@keyframes pb-in-right { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 60% { transform: translateX(calc(clamp(28px, 4vw, 56px) - 10px)); opacity: 1; } 70%, 100% { transform: translateX(calc(clamp(28px, 4vw, 56px) - 10px)); opacity: 0; } }
@keyframes pb-in-left { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 60% { transform: translateX(calc(-1 * clamp(28px, 4vw, 56px) + 10px)); opacity: 1; } 70%, 100% { transform: translateX(calc(-1 * clamp(28px, 4vw, 56px) + 10px)); opacity: 0; } }

/* Research shelf. */
.pb-bench-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pb-bench-card { display: flex; flex-direction: column; margin: 0; border: 1px dashed var(--pb-line); border-radius: 14px; background: #111a2e; overflow: hidden; }
.pb-bench-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 20px; }
.pb-bench-body h3 { margin: 0; color: var(--pb-text); font: 800 22px/1.2 var(--body); letter-spacing: -.02em; }
.pb-bench-body > p { margin: 0; color: var(--pb-muted); line-height: 1.5; }
.pb-flow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.pb-flow li { margin: 0; padding: 5px 10px; border: 1px solid var(--pb-line-soft); border-radius: 999px; background: var(--pb-panel-2); color: #c9d5e8; font-size: 13px; }
.pb-flow li + li::before { content: "→ "; color: var(--pb-coral); }
.pb-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.pb-stages li { margin: 0; padding-top: 8px; border-top: 3px solid var(--pb-line-soft); color: #7f8fab; font: 11px/1.3 var(--mono); }
.pb-stages li.is-current { border-color: var(--pb-coral); color: var(--pb-text); }
.pb-ghost-button { align-self: flex-start; margin-top: auto; padding: 11px 16px; border: 1px solid var(--pb-coral); border-radius: 10px; background: transparent; color: var(--pb-text); font: 700 15px var(--body); cursor: pointer; }
.pb-ghost-button:hover { background: #f2878a1f; }

@media (max-width: 960px) {
  .pb-spot { grid-template-columns: minmax(0, 1fr); }
  .pb-anatomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "core core" "lessons files" "video map"; }
  .pb-anatomy-core { max-width: 360px; width: 100%; justify-self: center; }
  .pb-part::before, .pb-part::after { display: none; }
}
@media (max-width: 640px) {
  .pb-anatomy-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lessons" "files" "video" "map"; }
  .pb-anatomy-core { display: none; }
  .pb-bench-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .pb-part::before { animation: none; display: none; } }
.pb-bench-card .pb-cover { aspect-ratio: auto; min-height: 120px; }
.pb-final p { margin-inline: auto; }
