/* ── Claude Code Guide ── */

.ccg-page {
  min-height: 100vh;
  background: #ffffff;
  color: #334155;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
}

/* ── Top Nav ── */
.ccg-topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 0;
}
.ccg-topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ccg-brand { font-weight: 700; color: #0f172a; font-size: 14px; }
.ccg-breadcrumb { color: #94a3b8; font-size: 13px; }
.ccg-updated { font-size: 12px; color: #94a3b8; font-family: 'JetBrains Mono', monospace; }
.ccg-cta-btn {
  background: #0f172a; color: #fff;
  padding: 7px 14px; border-radius: 7px;
  font-size: 12px; font-weight: 600;
  text-decoration: none;
}
.ccg-cta-btn:hover { background: #1e293b; color: #fff; }
.ccg-menu-btn {
  display: none; background: none; border: none;
  font-size: 20px; cursor: pointer; color: #64748b; padding: 4px;
}

/* ── Layout ── */
.ccg-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 52px;
}
.ccg-content-area {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 24px;
}

/* ── Right Ad Sidebar ── */
.ccg-right-ad {
  width: 300px;
  flex-shrink: 0;
  padding: 48px 20px 60px 0;
}
.ccg-right-ad-sticky {
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Sidebar ── */
.ccg-sidebar {
  width: 220px; flex-shrink: 0;
  position: sticky; top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  padding: 24px 20px;
  border-right: 1px solid #f1f5f9;
}
.ccg-toc-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #94a3b8; margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
}
.ccg-toc-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; background: none; border: none;
  padding: 6px 0; font-size: 13px; color: #64748b;
  cursor: pointer; text-align: left;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.15s;
}
.ccg-toc-item:hover { color: #334155; }
.ccg-toc-item.active { color: #0f172a; font-weight: 600; }
.ccg-toc-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #e2e8f0; flex-shrink: 0;
  transition: all 0.2s;
}
.ccg-toc-item.active .ccg-toc-dot {
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.ccg-toc-footer {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex; flex-direction: column; gap: 8px;
}
.ccg-toc-link { font-size: 12px; color: #94a3b8; text-decoration: none; }
.ccg-toc-link:hover { color: #64748b; }

/* ── Main ── */
.ccg-main {
  flex: 1; min-width: 0;
  padding: 0 48px 60px;
  max-width: 820px;
}

/* ── Hero ── */
.ccg-hero { padding: 48px 0 0; }
.ccg-hero-eyebrow {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #3b82f6; margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.ccg-h1 {
  font-size: 40px; font-weight: 700; color: #0f172a;
  margin: 0 0 16px; line-height: 1.15;
  font-family: 'Source Serif 4', Georgia, serif;
  letter-spacing: -0.02em;
}
.ccg-hero-desc {
  font-size: 16.5px; color: #475569;
  line-height: 1.65; max-width: 580px; margin: 0 0 20px;
}
.ccg-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.ccg-meta-chip {
  font-size: 12px; color: #64748b;
  background: #f8fafc; border: 1px solid #f1f5f9;
  padding: 4px 12px; border-radius: 100px; font-weight: 500;
}

/* ── Section Headings ── */
.ccg-section-head { padding-top: 8px; margin-bottom: 20px; scroll-margin-top: 70px; }
.ccg-h2 {
  font-size: 26px; font-weight: 700; color: #0f172a;
  margin: 0 0 6px;
  font-family: 'Source Serif 4', Georgia, serif;
  letter-spacing: -0.01em;
}
.ccg-h3 {
  font-size: 17px; font-weight: 700; color: #0f172a;
  margin: 28px 0 10px;
  font-family: 'DM Sans', sans-serif;
}
.ccg-section-sub { font-size: 14.5px; color: #64748b; margin: 0; line-height: 1.5; }

/* ── Text ── */
.ccg-p { color: #334155; margin-bottom: 16px; line-height: 1.7; }
.ccg-ic {
  background: #f1f5f9; color: #475569;
  padding: 2px 6px; border-radius: 4px;
  font-size: 13px; font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

/* ── External Link ── */
.ccg-ext-link {
  color: #3b82f6;
  font-weight: 700;
  text-decoration: none;
}
.ccg-ext-link:hover { text-decoration: underline; color: #2563eb; }

/* ── Screenshot ── */
.ccg-screenshot {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #e8ecf1;
  margin-bottom: 16px;
}

/* ── Divider ── */
.ccg-divider { height: 1px; background: #f1f5f9; margin: 36px 0; }

/* ── Code Blocks ── */
.ccg-code-wrap {
  border-radius: 10px; overflow: hidden;
  border: 1px solid #e8ecf1;
  margin-bottom: 14px; position: relative;
  background: #1e293b;
}
.ccg-code-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 14px;
  background: #15202e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ccg-code-lbl {
  font-size: 11px; font-weight: 600;
  color: rgba(148,163,184,0.7);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.ccg-copy-btn {
  background: rgba(148,163,184,0.1);
  border: 1px solid rgba(148,163,184,0.15);
  color: #94a3b8; padding: 3px 10px;
  border-radius: 5px; font-size: 11px;
  font-weight: 600; cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
}
.ccg-copy-btn:hover { background: rgba(148,163,184,0.2); }
.ccg-copy-btn.floating {
  position: absolute; top: 10px; right: 10px; z-index: 2;
}
.ccg-code-pre {
  margin: 0; padding: 14px 18px;
  font-size: 13px; line-height: 1.65;
  color: #c9d1d9;
  font-family: 'JetBrains Mono', monospace;
  overflow-x: auto; white-space: pre-wrap;
  word-break: break-word;
}

/* ── Callout ── */
.ccg-callout {
  padding: 14px 18px; border-radius: 8px;
  border-left: 3px solid; margin-bottom: 16px;
  font-size: 13.5px; color: #334155;
}
.ccg-callout.tip { border-left-color: #3b82f6; background: #eff6ff; }
.ccg-callout.warning { border-left-color: #f59e0b; background: #fffbeb; }
.ccg-callout.pro { border-left-color: #8b5cf6; background: #f5f3ff; }
.ccg-callout-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.ccg-callout.tip .ccg-callout-label { color: #3b82f6; }
.ccg-callout.warning .ccg-callout-label { color: #f59e0b; }
.ccg-callout.pro .ccg-callout-label { color: #8b5cf6; }
.ccg-callout > div:last-child { line-height: 1.6; }

/* ── Tables ── */
.ccg-table-wrap {
  overflow-x: auto; border-radius: 10px;
  border: 1px solid #e8ecf1; margin-bottom: 16px;
}
.ccg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ccg-table th {
  text-align: left; padding: 10px 16px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #94a3b8; background: #f8fafc;
  border-bottom: 1px solid #e8ecf1;
}
.ccg-table td {
  padding: 9px 16px; color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.ccg-table tr:nth-child(even) { background: #fafbfc; }
.ccg-cmd-code {
  background: #f1f5f9; color: #0f172a;
  padding: 2px 7px; border-radius: 4px;
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* ── Shortcuts Grid ── */
.ccg-shortcut-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 8px;
}
.ccg-shortcut-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; background: #f8fafc;
  border-radius: 8px; border: 1px solid #f1f5f9;
}
.ccg-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600; color: #0f172a;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 5px; padding: 3px 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  white-space: nowrap;
}
.ccg-shortcut-desc { font-size: 13px; color: #64748b; }

/* ── Skill Chips ── */
.ccg-chip-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 8px;
}
.ccg-skill-chip {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 14px; background: #f8fafc;
  border-radius: 8px; border: 1px solid #f1f5f9;
}

/* ── Tri Grid ── */
.ccg-tri-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px; margin-bottom: 20px;
}
.ccg-mini-card {
  padding: 16px; background: #f8fafc;
  border-radius: 8px; border: 1px solid #f1f5f9;
  border-top: 3px solid #e2e8f0;
}
.ccg-mini-card.amber { border-top-color: #f59e0b; }
.ccg-mini-card.blue { border-top-color: #3b82f6; }
.ccg-mini-card.purple { border-top-color: #8b5cf6; }
.ccg-mini-card-title {
  font-weight: 700; color: #0f172a;
  font-size: 14px; margin-bottom: 6px;
}
.ccg-mini-card-body { color: #475569; font-size: 13.5px; line-height: 1.55; }

/* ── Pillars ── */
.ccg-pillar {
  padding: 20px; background: #f8fafc;
  border-radius: 10px; border: 1px solid #f1f5f9;
}
.ccg-pillar-num {
  font-size: 28px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}
.ccg-pillar-num.blue { color: #3b82f6; }
.ccg-pillar-num.purple { color: #7c3aed; }
.ccg-pillar-num.amber { color: #f59e0b; }
.ccg-pillar-title {
  margin: 10px 0 6px; color: #0f172a;
  font-size: 15px; font-weight: 700;
}
.ccg-pillar-desc { margin: 0; color: #475569; font-size: 13.5px; line-height: 1.5; }

/* ── Cycle ── */
.ccg-cycle-visual {
  display: flex; align-items: stretch;
  justify-content: center; gap: 0;
  flex-wrap: nowrap; margin: 16px 0 20px;
}
.ccg-cycle-step {
  text-align: center; padding: 14px 10px 12px;
  background: #f8fafc; border-radius: 10px;
  border: 1px solid #e8ecf1;
  border-top: 3px solid #e2e8f0;
  min-width: 0; flex: 1;
}
.ccg-cycle-step-num {
  font-size: 20px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}
.ccg-cycle-step-label {
  font-weight: 700; color: #0f172a;
  font-size: 14px; margin: 6px 0 4px;
}
.ccg-cycle-step-desc {
  font-size: 11.5px; color: #94a3b8;
  line-height: 1.3;
}
.ccg-cycle-arrow {
  color: #cbd5e1; font-size: 18px;
  font-weight: 700; margin: 0 3px;
  font-family: monospace;
  display: flex; align-items: center;
  flex-shrink: 0;
}

/* ── Comparison ── */
.ccg-comparison-box {
  display: flex; gap: 0;
  background: #f8fafc; border: 1px solid #e8ecf1;
  border-radius: 10px; overflow: hidden; margin-bottom: 20px;
}
.ccg-comparison-col { flex: 1; padding: 20px; }
.ccg-comparison-divider { width: 1px; background: #e8ecf1; }
.ccg-comparison-header {
  font-weight: 700; color: #0f172a;
  font-size: 15px; margin-bottom: 10px;
}
.ccg-comparison-header.purple { color: #7c3aed; }
.ccg-comparison-list {
  margin: 0; padding-left: 18px;
  color: #475569; font-size: 13.5px;
  line-height: 1.8; list-style: disc;
}

/* ── Prompt Blocks ── */
.ccg-prompt-block {
  border: 1px solid #e8ecf1;
  border-radius: 10px; overflow: hidden;
  margin-bottom: 12px;
}
.ccg-prompt-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #fafbfc;
  border-bottom: 1px solid #f1f5f9;
}
.ccg-prompt-title {
  font-weight: 700; color: #0f172a;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
}
.ccg-prompt-when { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.ccg-prompt-pre {
  margin: 0; padding: 14px 16px;
  font-size: 13px; line-height: 1.6;
  color: #475569; font-family: 'JetBrains Mono', monospace;
  white-space: pre-wrap; word-break: break-word;
}

/* ── FAQ ── */
.ccg-faq-item { border-bottom: 1px solid #f1f5f9; }
.ccg-faq-q {
  width: 100%; background: none; border: none;
  padding: 14px 0; display: flex;
  justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 14.5px;
  font-weight: 600; color: #0f172a;
  text-align: left; font-family: 'DM Sans', sans-serif;
}
.ccg-faq-icon {
  color: #94a3b8; font-size: 18px;
  transition: transform 0.2s;
}
.ccg-faq-item.open .ccg-faq-icon { transform: rotate(45deg); }
.ccg-faq-a {
  display: none; padding: 0 0 14px;
  color: #475569; font-size: 13.5px; line-height: 1.65;
}
.ccg-faq-item.open .ccg-faq-a { display: block; }

/* ── Footer CTA ── */
.ccg-footer-cta {
  margin-top: 48px; background: #f8fafc;
  border: 1px solid #e8ecf1; border-radius: 12px;
  overflow: hidden;
}
.ccg-footer-cta-inner { padding: 32px; }
.ccg-footer-cta-inner h3 {
  margin: 0 0 8px; color: #0f172a;
  font-size: 20px; font-family: 'Source Serif 4', Georgia, serif;
}
.ccg-footer-cta-inner p {
  margin: 0 0 20px; color: #475569; line-height: 1.6;
}
.ccg-cta-btn-large {
  display: inline-block; background: #0f172a;
  color: #fff; padding: 10px 22px;
  border-radius: 8px; font-size: 14px;
  font-weight: 700; text-decoration: none;
}
.ccg-cta-btn-large:hover { background: #1e293b; color: #fff; }

/* ── Credit ── */
.ccg-credit {
  text-align: center; padding: 32px 0;
  font-size: 12px; color: #94a3b8;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ccg-right-ad { display: none; }
}

@media (max-width: 900px) {
  .ccg-tri-grid { grid-template-columns: 1fr; }
  .ccg-shortcut-grid { grid-template-columns: 1fr; }
  .ccg-chip-row { grid-template-columns: 1fr; }
  .ccg-comparison-box { flex-direction: column; }
  .ccg-comparison-divider { width: 100%; height: 1px; }
  .ccg-cycle-visual { flex-wrap: wrap; justify-content: center; }
  .ccg-cycle-step { min-width: 80px; flex: 0 1 auto; }
  .ccg-cycle-arrow { margin: 4px 2px; }
}

@media (max-width: 768px) {
  .ccg-menu-btn { display: block; }
  .ccg-sidebar {
    position: fixed; left: -280px;
    width: 260px; top: 52px;
    height: calc(100vh - 52px);
    background: #fff; z-index: 90;
    transition: left 0.25s ease;
    box-shadow: none;
  }
  .ccg-sidebar.open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.08);
  }
  .ccg-main { padding: 0 20px 60px; }
  .ccg-h1 { font-size: 30px; }
  .ccg-topnav-right { display: none; }
}
