/* Playbook hub — Notion-like docs styling, reuses site tokens (dark/light via data-theme) */
:root {
  --doc-max: 780px;
  --divider: rgba(127,127,127,0.18);
  --callout-info: rgba(59,130,246,0.12);
  --callout-warn: rgba(245,158,11,0.14);
  --callout-pitch: rgba(220,38,38,0.10);
  --inline-code-bg: rgba(127,127,127,0.14);
}
[data-theme="light"] {
  --divider: rgba(0,0,0,0.10);
  --inline-code-bg: rgba(0,0,0,0.06);
}
.playbook-page { font-synthesis: none; }
.playbook-main {
  max-width: var(--doc-max);
  margin: 0 auto;
  padding: 96px 24px 120px;
}
.playbook-hero { margin-bottom: 48px; }
.playbook-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.playbook-hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--text-primary);
}
.playbook-hero .lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 620px;
}
.playbook-hero .hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* table of contents */
.playbook-toc {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 40px 0 56px;
  background: var(--bg-card);
}
.playbook-toc .toc-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.playbook-toc ol { margin: 0; padding-left: 20px; }
.playbook-toc li { margin: 6px 0; }
.playbook-toc a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.playbook-toc a:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* doc sections */
.doc-section { padding: 40px 0; border-bottom: 1px solid var(--divider); }
.doc-section:last-of-type { border-bottom: none; }
.doc-section h2 {
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.doc-section h3 {
  font-size: 19px;
  margin: 28px 0 8px;
  color: var(--text-primary);
}
.doc-section p, .doc-section li {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15.5px;
}
.doc-section a { color: var(--accent); }
.doc-section code {
  background: var(--inline-code-bg);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 88%;
}

/* callouts */
.callout {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.callout strong { color: var(--text-primary); }
.callout.tip { background: var(--callout-info); }
.callout.warn { background: var(--callout-warn); }
.callout.pitch { background: var(--callout-pitch); border: 1px solid var(--accent-glow); }

/* the DM/message sample blocks — key feature: looks like a real chat draft */
.msg-sample {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 16px 0;
  background: var(--bg-card);
  white-space: pre-line;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.msg-sample .msg-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* niche cards on hub home */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.niche-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  display: block;
}
.niche-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.niche-card .niche-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.niche-card h4 { color: var(--text-primary); margin: 0 0 6px; font-size: 15px; }
.niche-card p { color: var(--text-muted); font-size: 13px; margin: 0; line-height: 1.55; }

/* step list (the cadence visual) */
.step-list { list-style: none; margin: 16px 0; padding: 0; counter-reset: step; }
.step-list li {
  position: relative;
  padding: 0 0 18px 44px;
  counter-increment: step;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-glow);
}
.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14.5px;
  top: 32px;
  bottom: 4px;
  width: 1px;
  background: var(--divider);
}
.step-list .step-day {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.step-list strong { color: var(--text-primary); }

/* back link */
.doc-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.doc-back:hover { color: var(--accent); }

@media (max-width: 640px) {
  .playbook-main { padding: 76px 18px 80px; }
  .playbook-hero h1 { font-size: 30px; }
}
