/* Blog-specific styles for Statulator static blog.
   Colours are driven by the shared design tokens in /css/statulator.css
   so light/dark mode is handled by a single Bootstrap theme switch. */

.blog-header {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--stat-border);
  margin-bottom: 2rem;
}

.blog-header h1 {
  font-size: 2rem;
  color: var(--bs-body-color);
}

.blog-post {
  margin-bottom: 2.5rem;
}

.blog-post h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.blog-post h2 a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.blog-post h2 a:hover {
  color: var(--stat-brand);
}

.blog-post-meta {
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-post-tags {
  margin-top: 1rem;
}

.blog-post-tags .badge {
  margin-right: 0.35rem;
  font-weight: 500;
}

.blog-post-content h2,
.blog-post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-post-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.blog-post-content ol,
.blog-post-content ul {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--stat-brand);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background-color: var(--stat-callout-bg);
  border-radius: 0 0.25rem 0.25rem 0;
}

.blog-card {
  border: 1px solid var(--stat-border);
  border-radius: 0.5rem;
  transition: box-shadow 0.2s ease;
  overflow: hidden;
  height: 100%;
  background-color: var(--stat-surface);
}

.blog-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.blog-card .card-body {
  padding: 1.25rem;
}

.blog-card .card-title a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.blog-card .card-title a:hover {
  color: var(--stat-brand);
}

.blog-card .card-text {
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-back-link {
  margin-bottom: 1.5rem;
}

.blog-back-link a {
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.blog-back-link a:hover {
  color: var(--stat-brand);
}

/* Notes / callout box used in blog posts */
.blog-notes {
  background-color: var(--stat-callout-bg);
  border: 1px solid var(--stat-border);
  border-radius: 0.375rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.blog-notes h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-notes ul {
  margin-bottom: 0;
}

/* Responsive table in descriptive-analysis post */
.blog-post-content table {
  width: auto;
  margin: 1rem 0;
}

.blog-post-content table th,
.blog-post-content table td {
  padding: 0.5rem 1rem;
  border: 1px solid var(--stat-border);
  text-align: center;
}

.blog-post-content table th {
  background-color: var(--stat-surface-muted);
}

.blog-nav-links {
  border-top: 1px solid var(--stat-border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* ── Dark mode ─────────────────────────────────────────────────
   Only rules that cannot be expressed via tokens live here:
   card hover shadow intensity, and secondary-text tweak. */
[data-bs-theme="dark"] .blog-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.35);
}
