/* =============================================================
   blog.css  — shared styles for blog posts and content pages
   Used by: mcp-guide.html, /blog/index.html, /blog/*.html
   ============================================================= */

/* ── Content card — white box matching app UI ── */
.prose-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 48px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .prose-card { padding: 24px 20px; }
}

/* ── Layout: collapse sidebar for logged-out visitors ── */
.sidebar:empty { display: none; }
.app:has(.sidebar:empty) .main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--text-sec); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb-sep { opacity: 0.35; }

/* ── Article prose ── */
.prose { max-width: 720px; }

.prose-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 10px;
}

.prose h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.prose .lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-sec);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.prose h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}

.prose h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.prose h4 {
  font-size: 13.5px;
  font-weight: 600;
  margin: 20px 0 6px;
}

.prose p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #2a2a2a;
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  margin: 0 0 16px 20px;
}

.prose li {
  font-size: 14.5px;
  line-height: 1.75;
  color: #2a2a2a;
  margin-bottom: 6px;
}

.prose li strong { color: var(--navy); }

.prose a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose blockquote {
  border-left: 3px solid var(--border);
  padding-left: 16px;
  color: var(--text-sec);
  margin: 0 0 16px;
  font-style: italic;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.prose figure {
  margin: 8px 0 24px;
}

.prose figure figcaption {
  font-size: 12.5px;
  color: var(--text-sec);
  margin-top: 8px;
  text-align: center;
}

/* ── Code ── */
.prose code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12.5px;
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  color: #c7254e;
}

.prose pre {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 4px 0 20px;
}

.prose pre code {
  background: none;
  color: #e2e8f0;
  font-size: 13px;
  padding: 0;
  border-radius: 0;
}

/* ── Callout boxes ── */
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 4px 0 20px;
  font-size: 13.5px;
  line-height: 1.6;
}

.callout-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a5f;
}

.callout-warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
}

.callout-icon { flex-shrink: 0; font-size: 15px; line-height: 1.6; }

/* ── Section divider label ── */
.section-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sec);
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 40px;
  margin-bottom: 4px;
}

/* ── Post meta (date on individual posts) ── */
.post-meta {
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 24px;
}

/* ── Blog index ── */
.blog-header {
  max-width: 720px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.blog-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.blog-sub {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.6;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 860px;
}

.post-card {
  display: block;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.post-card:hover {
  border-color: #aaa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.post-card-meta {
  font-size: 12px;
  color: var(--text-sec);
  margin-bottom: 8px;
}

.post-card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.35;
}

.post-card-excerpt {
  font-size: 13.5px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
