/* ─── Cover tools grid ───────────────────────────────────────────────────── */
.ai-cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.ai-cover-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.6rem;
  text-align: center;
}
.ai-cover-card .acc-icon {
  display: block;
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.ai-cover-card .acc-name {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* ─── Prompt anatomy grid ────────────────────────────────────────────────── */
.ai-prompt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.ai-prompt-card {
  border-radius: 10px;
  border: 1.5px solid var(--border);
  padding: 0.85rem;
  background: var(--surface);
}
.ai-prompt-card h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.35rem;
}
.ai-prompt-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.ai-prompt-card .apc-tag {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-bottom: 0.4rem;
}
.ai-prompt-card--context  { border-color: #93c5fd; }
.ai-prompt-card--context  h4 { color: #1d4ed8; }
.ai-prompt-card--context  .apc-tag { background: #dbeafe; color: #1d4ed8; }
.ai-prompt-card--constraint { border-color: #fca5a5; }
.ai-prompt-card--constraint h4 { color: #b91c1c; }
.ai-prompt-card--constraint .apc-tag { background: #fee2e2; color: #b91c1c; }
.ai-prompt-card--goal     { border-color: #86efac; }
.ai-prompt-card--goal     h4 { color: #15803d; }
.ai-prompt-card--goal     .apc-tag { background: #dcfce7; color: #15803d; }
.ai-prompt-card--format   { border-color: #c4b5fd; }
.ai-prompt-card--format   h4 { color: #6d28d9; }
.ai-prompt-card--format   .apc-tag { background: #ede9fe; color: #6d28d9; }

/* ─── Tool comparison cards ──────────────────────────────────────────────── */
.ai-tools-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}
@media (min-width: 640px) {
  .ai-tools-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.ai-tool-card {
  border-radius: 12px;
  border: 1.5px solid var(--border);
  padding: 1rem;
  background: var(--surface);
}
.ai-tool-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.ai-tool-icon {
  font-size: 1.3rem;
  line-height: 1;
}
.ai-tool-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}
.ai-tool-tag {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-bottom: 0.5rem;
}
.ai-tool-card ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.ai-tool-card--cursor  { border-color: #93c5fd; }
.ai-tool-card--cursor  .ai-tool-name { color: #1d4ed8; }
.ai-tool-card--cursor  .ai-tool-tag  { background: #dbeafe; color: #1d4ed8; }
.ai-tool-card--claude  { border-color: #f97316; }
.ai-tool-card--claude  .ai-tool-name { color: #c2410c; }
.ai-tool-card--claude  .ai-tool-tag  { background: #ffedd5; color: #c2410c; }
.ai-tool-card--codex   { border-color: #86efac; }
.ai-tool-card--codex   .ai-tool-name { color: #15803d; }
.ai-tool-card--codex   .ai-tool-tag  { background: #dcfce7; color: #15803d; }

/* ─── MCP architecture ───────────────────────────────────────────────────── */
.ai-mcp-wrap {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.ai-mcp-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}

.ai-mcp-examples {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.ai-mcp-example {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.35rem;
  text-align: center;
}
.ai-mcp-example .ame-icon {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.ai-mcp-example .ame-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Subagents diagram ──────────────────────────────────────────────────── */
.ai-agents-wrap {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.ai-agents-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

/* ─── Steps list ─────────────────────────────────────────────────────────── */
.ai-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.ai-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
.ai-step-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}
.ai-step-body strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.ai-step-body span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Skills benefits grid ───────────────────────────────────────────────── */
.ai-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.ai-benefit-card {
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  padding: 0.85rem;
  text-align: center;
}
.ai-benefit-card .abc-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.ai-benefit-card h4 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.ai-benefit-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── Skill example header ───────────────────────────────────────────────── */
.ai-skill-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.ai-skill-path {
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
}

/* ─── Skill anatomy labels ───────────────────────────────────────────────── */
.tok-fm  { color: #fbbf24; }   /* frontmatter keys */
.tok-val { color: #c084fc; }   /* frontmatter values */
.tok-cmt { color: #64748b; font-style: italic; }
.tok-hd  { color: #7dd3fc; font-weight: 700; }   /* markdown headings */
.tok-arg { color: #f97316; font-weight: 700; }   /* $ARGUMENTS */
