/* blog-post: page-specific styles, served from this origin so the CSP needs no 'unsafe-inline'. */
html { scroll-behavior: smooth; }
body { background: #f8fafc; }
.prose {
  max-width: none;
}
.prose h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.prose h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose p {
  margin-bottom: 1rem;
  line-height: 1.75;
}
.prose img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
}
.prose a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: #1e3a8a;
}
.prose ul, .prose ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose code {
  background-color: #f1f5f9;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}
.prose pre {
  background-color: #f1f5f9;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.prose .mermaid-card {
  margin: 2rem 0;
  overflow-x: auto;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  padding: 1rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}
.prose .mermaid {
  display: flex;
  min-width: 620px;
  justify-content: center;
}
.prose .mermaid svg {
  height: auto;
  max-width: 100%;
}
@media (max-width: 640px) {
  .prose .mermaid-card {
    border-radius: 0.75rem;
    padding: 0.75rem;
  }
  .prose .mermaid {
    min-width: 520px;
  }
}
.prose blockquote {
  border-left: 4px solid #e2e8f0;
  padding-left: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
}
.prose .table-frame {
  margin: 2rem 0;
  overflow-x: auto;
  border: 1px solid #dbeafe;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}
.prose table.content-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.prose table.content-table th,
.prose table.content-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
}
.prose table.content-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
  white-space: nowrap;
}
.prose table.content-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.72);
}
.prose table.content-table tbody tr:last-child td {
  border-bottom: 0;
}
.prose table.content-table code {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .prose .table-frame {
    margin: 1.5rem -0.25rem;
    border-radius: 0.5rem;
  }
  .prose table.content-table {
    min-width: 620px;
    font-size: 0.875rem;
  }
  .prose table.content-table th,
  .prose table.content-table td {
    padding: 0.75rem 0.85rem;
  }
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
