/* Public playbooks have no connection to the reader's private scenario labels. */
.career-modes { max-width: var(--width); width: calc(100% - 48px); margin: 24px auto 0; }
.playbook-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.playbook-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; overflow-wrap: anywhere; }
.playbook-card .story-meta { margin-bottom: 0; }
.playbook-card h3, .playbook-card p { margin: 0; }
.playbook-card > .button { align-self: flex-start; margin-top: auto; }
.playbook-result { font-size: 14px; color: var(--muted); }
.playbook-verification { font-size: 12px; color: var(--muted); }
.playbook-detail { max-width: 900px; width: calc(100% - 48px); margin: 28px auto 0; min-width: 0; }
.playbook-detail > .page-heading { width: 100%; }
.playbook-detail h1, .playbook-detail h3, .playbook-detail h4, .playbook-detail a { overflow-wrap: anywhere; }
.playbook-detail .project-card { min-width: 0; margin-bottom: 24px; }
.playbook-prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.playbook-item + .playbook-item { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.playbook-steps { padding-left: 24px; }
.playbook-steps > li { padding-left: 8px; margin-bottom: 28px; min-width: 0; }
.playbook-steps h4 { margin-bottom: 8px; }
.playbook-detail pre { max-width: 100%; min-width: 0; overflow-x: auto; padding: 16px; border-radius: 8px; background: var(--surface-soft, #f5f5f7); }
.playbook-detail code { white-space: pre; }
@media (max-width: 1000px) { .playbook-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .playbook-grid { grid-template-columns: minmax(0,1fr); gap: 14px; } .playbook-detail .project-card { padding: 18px; } }

.membership-offer { border: 1px solid var(--blue); }
.membership-lock { padding: 20px 0; }
.membership-agreement { display:flex; gap:10px; align-items:flex-start; margin:18px 0; }
.membership-agreement input { width:auto; flex-shrink:0; margin-top:5px; }
.membership-order-no, .membership-terms { overflow-wrap:anywhere; word-break:break-word; }
.membership-terms { white-space:pre-wrap; max-width:100%; }

.membership-contact { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.membership-contact h3 { font-size: 22px; margin-bottom: 12px; }
.membership-contact-image { max-width: 340px; width: 100%; margin: 24px auto 0; }
.membership-contact-image img { display: block; width: 100%; height: auto; border-radius: 12px; }
.membership-contact-image figcaption { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 16px; }
.membership-contact-only .membership-contact-image { margin-top: 0; }
.membership-contact-only .wechat-contact { justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.membership-contact-only .wechat-contact > span:first-of-type { display: none; }
.coding-guide-card { border-top: 3px solid var(--color-accent); }
.coding-card-mark { font: 36px/1.4 var(--font-mono); color: var(--color-accent); padding: 12px 0; }
.coding-guide-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.coding-guide-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.coding-guide-nav a:hover { border-color: var(--blue); }
.coding-guide section[id] { scroll-margin-top: 124px; }
.coding-guide .project-card > h2 { color: var(--color-accent); }
@media(max-width:760px) { .coding-guide section[id] { scroll-margin-top: 88px; } }
.coding-guide-card { position: relative; }
.coding-guide-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.coding-guide-card > .button { position: relative; z-index: 1; }

.guide-section > h2 { margin-bottom: 14px; }
.guide-markdown { line-height: 1.85; overflow-wrap: anywhere; color: var(--ink); }
.guide-markdown > *:first-child { margin-top: 0; }
.guide-markdown > *:last-child { margin-bottom: 0; }
.guide-markdown h3 { margin-top: 28px; color: var(--ink); }
.guide-markdown p, .guide-markdown ul, .guide-markdown ol, .guide-markdown blockquote, .guide-markdown table { margin: 14px 0; }
.guide-markdown ul, .guide-markdown ol { padding-left: 1.4rem; }
.guide-markdown blockquote { border-left: 3px solid var(--color-accent); padding-left: 16px; color: var(--muted); }
.guide-markdown table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.guide-markdown th, .guide-markdown td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.guide-markdown th { background: var(--surface-soft); }
.guide-markdown img { max-width: 100%; height: auto; border-radius: 8px; }
.guide-video { margin: 20px 0; }
.guide-video video, .guide-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 8px; background: #05070c; }
.guide-video iframe { height: auto; }
.guide-video summary { cursor: pointer; color: var(--color-accent); font-weight: 700; margin-bottom: 12px; }

/* Articles keep a continuous reading surface; media and code have their own frames. */
.coding-guide .guide-section { padding: 20px 0 32px; border: 0; border-bottom: 1px solid var(--line); background: transparent; box-shadow: none; border-radius: 0; }
.coding-guide .guide-section:last-child { border-bottom: 0; }
.guide-markdown pre { border: 1px solid var(--line); line-height: 1.6; }
.guide-markdown :not(pre) > code { padding: 2px 6px; background: var(--surface-soft); border-radius: 4px; font-family: var(--font-mono); }
.guide-video-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #080e13; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.guide-video-stage iframe { width: 100%; height: 100%; border: 0; border-radius: 0; }
.guide-video-load { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--surface); color: var(--ink); border: 0; border-radius: 0; }
.guide-video-load[hidden] { display: none; }
.guide-video-load:hover { color: var(--blue); background: var(--surface-soft); }
.guide-video-load span { font-size: 28px; }
.guide-video figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
