/* Terminal demo blocks — matches deciduous.dev landing page */
.terminal {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.terminal-header {
  background: #2d2d2d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  color: #888;
  font-size: 0.85rem;
  margin-left: 8px;
}

.terminal-body {
  padding: 20px;
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-x: auto;
}

/* Conversation-style steps inside terminals */
.step { margin-bottom: 16px; }
.step:last-child { margin-bottom: 0; }

.step-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-label.user { background: #3b82f6; color: #fff; }
.step-label.claude { background: #d97706; color: #fff; }
.step-label.system { background: #6b7280; color: #fff; }

.step-content { color: #e5e5e5; padding-left: 4px; }
.step-content.cmd { color: #7ee787; }

.step-output {
  color: #8b949e;
  font-size: 0.85rem;
  margin-top: 4px;
  padding-left: 4px;
}

.step-result {
  background: #1a3a1a;
  border: 1px solid #22543d;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
  color: #86efac;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Simple command + output blocks (no conversation) */
.terminal-body .cmd { color: #7ee787; }
.terminal-body .prompt { color: #8b949e; }
.terminal-body .output { color: #c9d1d9; }
.terminal-body .highlight { color: #ffa657; }
.terminal-body .info { color: #79c0ff; }
.terminal-body .success { color: #3fb950; font-weight: 600; }
.terminal-body .warning { color: #d29922; }
.terminal-body .muted { color: #6e7681; }

/* Config blocks */
.config-block {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 16px 0;
}

.config-block h4 {
  font-size: 0.85rem;
  color: #57606a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* Node type badges */
.node-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.node-type.goal { background: #fef3c7; color: #92400e; }
.node-type.option { background: #ede9fe; color: #5b21b6; }
.node-type.decision { background: #dbeafe; color: #1e40af; }
.node-type.action { background: #dcfce7; color: #166534; }
.node-type.outcome { background: #f3f4f6; color: #374151; }
.node-type.observation { background: #fef9c3; color: #854d0e; }
.node-type.revisit { background: #fce7f3; color: #9d174d; }

/* Flow diagrams in text */
.flow {
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.9rem;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Override mdbook content width for readability */
.content main {
  max-width: 900px;
}
